Exemplo n.º 1
0
        public void Preview()
        {
            SchoolManagement.salesbillno   = invoiceno.ToString();
            SchoolManagement.sladmno       = admno;
            SchoolManagement.slname        = sname;
            SchoolManagement.sldiscount    = Convert.ToDouble(txt_discount.Text);
            SchoolManagement.sltotal       = Convert.ToDouble(txt_Amount.Text);
            tbsPreview.Enabled             = false;
            tsbPrint.Enabled               = false;
            tsbNewInvoice.Enabled          = true;
            groupBox1.Enabled              = false;
            groupBox2.Enabled              = false;
            groupBox3.Enabled              = false;
            groupBox4.Enabled              = false;
            groupBox5.Enabled              = false;
            dgv_PurchaseDetails.DataSource = "";
            dataGridView1.DataSource       = "";
            dgv_Studentlist.DataSource     = "";
            dgv_itemlist.DataSource        = "";
            txt_Amount.Text  = "0";
            lbl_billamt.Text = "0";
            SalesBillPrivew s = new SalesBillPrivew();

            d.con_close();
            s.Show();
        }
Exemplo n.º 2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            SchoolManagement.salesbillno = invoiceno.ToString();
            SchoolManagement.sladmno     = admno;
            SchoolManagement.slname      = sname;
            SchoolManagement.sldiscount  = Convert.ToDouble(txt_discount.Text);
            SchoolManagement.sltotal     = Convert.ToDouble(txt_Amount.Text);
            SalesBillPrivew s = new SalesBillPrivew();

            d.con_close();
            s.Show();
        }