//bill generating part

        public bool insertInvoice(int BillNo, int ItemID, string ItemName, int ItemQty, int ItemUnitPrice, int ItemSumPrice, string Cashier, string Branch, string date)
        {
            invoiceTB newInvoice = new invoiceTB();

            newInvoice.BillNo        = BillNo;
            newInvoice.ItemID        = ItemID;
            newInvoice.ItemName      = ItemName;
            newInvoice.ItemQty       = ItemQty;
            newInvoice.ItemUnitPrice = ItemUnitPrice;
            newInvoice.ItemSumPrice  = ItemSumPrice;
            newInvoice.Cashier       = Cashier;
            newInvoice.Branch        = Branch;
            newInvoice.Date          = date;

            myCashDB.invoiceTBs.InsertOnSubmit(newInvoice);
            myCashDB.SubmitChanges();
            return(true);
        }
Exemplo n.º 2
0
 partial void DeleteinvoiceTB(invoiceTB instance);
Exemplo n.º 3
0
 partial void UpdateinvoiceTB(invoiceTB instance);
Exemplo n.º 4
0
 partial void InsertinvoiceTB(invoiceTB instance);