Holds identification details of all Users(Clients+Sellers) with their assigned roles
示例#1
0
        /// <summary>
        /// Method to create the invoice using the details of the user and his shopping cart
        /// </summary>
        /// <param name="user"></param>
        /// <param name="cart"></param>
        /// <param name="address"></param>
        /// <returns></returns>
        public DataTable MakeInvoice(User user, Cart cart, Address address)
        {
            DataTable invoice_details = new DataTable();
            invoice_details.Columns.Add("Number", typeof(int));
            invoice_details.Columns.Add("Name", typeof(User));
            invoice_details.Columns.Add("Item", typeof(string));
            invoice_details.Columns.Add("Price", typeof(float));

            invoice_details.Rows.Add(Invoice_no);
            invoice_details.Rows.Add(user.name);
            invoice_details.Rows.Add(product.Name);
            invoice_details.Rows.Add(product.Price);

            return invoice_details;
        }
示例#2
0
 public Invoice()
 {
     User    user    = new User();
     Cart    cart    = new Cart(user.id);
     Product product = new Product();
 }
示例#3
0
 public Invoice()
 {
     User user = new User();
     Cart cart = new Cart(user.id);
     Product product = new Product();
 }