Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Asking about collecting inputs

Asking about collecting inputs

Scheduled Pinned Locked Moved C#
tutorialcsharpdockerhelp
13 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Member 12356782

    Dear Richard MacCutchan, I would like to say thank you for your response. But, I need some example that how to reduce and count if you have any link for the database tutorials which matches the question I am asking. Thank you Very much.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #4

    You first need to decide which database you wish to use. Google will find you many samples, tutorials etc.

    M 1 Reply Last reply
    0
    • L Lost User

      The obvious answer would be to use a database. You would need to keep a table of ingredients in the database which includes counts of current stock. Then as you create a food item you get the count values from the database, reduce them by the amount used and update the counts. There are many database tutorials to be found.

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #5

      Remind me never to eat Ethiopian Pizza - I'm not sure Potato or Green Paper belong in there, any more than Ham and Pineapple... :laugh:

      Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      M 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Remind me never to eat Ethiopian Pizza - I'm not sure Potato or Green Paper belong in there, any more than Ham and Pineapple... :laugh:

        Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #6

        OriginalGriff wrote:

        any more than Ham and Pineapple

        Do NOT denigrate the great Oz pizza, the Hawaiian, I have no idea of the origin of this pizza but Oz has claimed it apparently

        Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

        OriginalGriffO 1 Reply Last reply
        0
        • M Member 12356782

          Hi My name is Teame. I want to develop a cafeteria management system using C#. But, I want to compose the consumption and to reduce from master inputs balance. For example, when I want to make an output called pizza, I have to use a potato, tomato, oil, green paper, and so on inputs. Then the inputs I have used should be reduced from the master inputs balance and will made as an output product called Pizza. So, please, help me to how to reduce the input consumption automatically when the waiter orders a Pizza using C#. I would like to say thank you for your support.

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #7

          Look into "Bill of Materials" databases and tutorials, you might want to look at these structures http://www.databaseanswers.org/data_models/[^]

          Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

          B 1 Reply Last reply
          0
          • M Mycroft Holmes

            Look into "Bill of Materials" databases and tutorials, you might want to look at these structures http://www.databaseanswers.org/data_models/[^]

            Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

            B Offline
            B Offline
            BillWoodruff
            wrote on last edited by
            #8

            thanks, MyCroft ! that's a good resource.

            «Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

            M 1 Reply Last reply
            0
            • B BillWoodruff

              thanks, MyCroft ! that's a good resource.

              «Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #9

              Someone here recommended it and it was so instructive I have it booked marked so I can pass it on. There has been a serious amount of work put into the database structures.

              Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

              1 Reply Last reply
              0
              • M Mycroft Holmes

                OriginalGriff wrote:

                any more than Ham and Pineapple

                Do NOT denigrate the great Oz pizza, the Hawaiian, I have no idea of the origin of this pizza but Oz has claimed it apparently

                Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #10

                You are talking about a continent whose major addition to global cuisine is the "meat pie floater": an "unnamed meat" pie in a bowl of pea soup ... :~

                Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                1 Reply Last reply
                0
                • L Lost User

                  You first need to decide which database you wish to use. Google will find you many samples, tutorials etc.

                  M Offline
                  M Offline
                  Member 12356782
                  wrote on last edited by
                  #11

                  Hi Rechard, I am using Microsoft SQL Server to create the database for the cafeteria management system. If you have a link which will help me to refer and to get some tutorial, please, give me the link. Thank you for your help.

                  L 1 Reply Last reply
                  0
                  • M Member 12356782

                    Hi Rechard, I am using Microsoft SQL Server to create the database for the cafeteria management system. If you have a link which will help me to refer and to get some tutorial, please, give me the link. Thank you for your help.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #12

                    Google will find you hundreds of tutorials.

                    1 Reply Last reply
                    0
                    • M Member 12356782

                      Hi My name is Teame. I want to develop a cafeteria management system using C#. But, I want to compose the consumption and to reduce from master inputs balance. For example, when I want to make an output called pizza, I have to use a potato, tomato, oil, green paper, and so on inputs. Then the inputs I have used should be reduced from the master inputs balance and will made as an output product called Pizza. So, please, help me to how to reduce the input consumption automatically when the waiter orders a Pizza using C#. I would like to say thank you for your support.

                      C Offline
                      C Offline
                      Chris Quinn
                      wrote on last edited by
                      #13

                      I've never seen potato in a pizza before!

                      ========================================================= I'm an optoholic - my glass is always half full of vodka. =========================================================

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups