예제 #1
0
 private void toolStripButton7_Click(object sender, EventArgs e)
 {
     Report.PrintReceipt frm = new Report.PrintReceipt();
     frm.MdiParent = MdiParent;
     if (ProdListV.SelectedItems.Count == 1)
     {
         int index = Convert.ToInt32(ProdListV.SelectedItems[0].Text);
         List <DeliveryReceipt> trxn = new List <DeliveryReceipt>();
         trxn              = rclass.CustomerReceipt(index);
         frm.trx           = trxn;
         frm.isOldTemplate = false;
         frm.Show();
     }
     loadinformation();
 }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            UpdateRecord();
            if (MessageBox.Show("Print Receipt?", "Information", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                //call the printeceipt form on this area.

                Report.PrintReceipt frm = new Report.PrintReceipt();
                frm.MdiParent = MdiParent;
                int index = Convert.ToInt32(lblorderid.Text);
                List <DeliveryReceipt> trxn = new List <DeliveryReceipt>();
                trxn              = rclass.CustomerReceipt(index);
                frm.trx           = trxn;
                frm.isOldTemplate = false;
                frm.Show();
            }
            else
            {
                MessageBox.Show("You can still print receipt on order lists form");
                this.Close();
            }
        }