Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            //   BllGeneration bills = new BllGeneration (usrname,countr,total,totalaftervat,grandtotal);
            //  MessageBox.Show(usrname + " " +   countr + "   "+total + "   "+totalaftervat +"  "+ grandtotal);
            //  bills.ShowDialog();

            Billing bill = new Billing();

            bill.Cname      = customername.Text;
            bill.Ename      = empname.Text;
            bill.Date       = datenow.Text;
            bill.Grandtotal = grandtotal;

            bill.addbill();

            bill_id = bill.getbillid();


            for (int i = 0; i < items.Count; i++)
            {
                bill.Itemid = items[i];
                bill.Qty    = quantity[i];
                bill.Billid = bill_id;
                bill.addordered();
            }

            BllGeneration customerbill = new BllGeneration(/*usrname,total,totalaftervat,grandtotal,bill_id*/);

            customerbill.ShowDialog();
        }
        private void viewBillToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BllGeneration b = new BllGeneration();

            b.ShowDialog();
        }