示例#1
0
        private RecordForOrder GetRecord(int i)
        {
            int orderID = GetOrderID.GetHigherOrder();

            RecordForOrder recordForOrder = new RecordForOrder()
            {
                ItemID   = listView1.Items[i].SubItems[0].Text,
                Quantity = listView1.Items[i].SubItems[1].Text,
                Price    = listView1.Items[i].SubItems[2].Text,
                Index    = i,
                OrderID  = orderID
            };

            return(recordForOrder);
        }
 public InsertOrderDetails(RecordForOrder recordForOrder)
 {
     this.recordForOrder = recordForOrder;
     ExecuteCommand(CreateCommand());
 }