WF4.0 actual Combat (ii): Supermarket cashier Software

Source: Internet
Author: User

Today, I turned to the "second chapter of the mall promotion-strategy model" in the design model of the big talk of the elder of Wu fan. I feel with WF to achieve, relatively simple and intuitive, I like to do simple things. So he wrote this blog using the two main characters of the Wood Fan's predecessor, small dishes and big birds.

Time: April 16 location: Big Bird Room characters: Big Bird, vegetable

The Big Bird gave a piece of cake a problem, do a cashier software. The side dishes used WF4 less than 20 minutes to write the first version, the function is also very simple, as follows:

Define a Productitem class and Order class, as follows:

1   public class ProductItem
2     {
3       public   decimal ProductPrice
4        {
5           get;
6           set;
7       }
8       public int  ProductNumber
9       {
10           get;
11           set;
12       }
13       public string ProductName
14       {
15           get;
16            set;
17       }
18 
19     }
20 
21   public class Order
22   {
23        public Order()
24       {
25           ProductList = new List<ProductItem> ();
26        }
27       public List<ProductItem> ProductList
28       {
29            get;
30           set;
31       }
32   }

To set up the processing process:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.