示例#1
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            rptPurchaseInv rpt = new rptPurchaseInv();

            rpt.MdiParent = this.MdiParent;
            rpt.invioceno = txtinvoice.Text;
            rpt.Show();
        }
示例#2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (this.SetData())
     {
         if (this.purchase.GetItems())
         {
             this.purchase.Edit();
         }
         else
         {
             this.purchase.Add();
         }
         if (chkPrint.Checked)
         {
             rptPurchaseInv rptpur = new rptPurchaseInv();
             rptpur.invioceno = txtinvoice.Text;
             rptpur.MdiParent = this.MdiParent;
             rptpur.Show();
         }
         this.Clear();
         this.errorProvider.Clear();
         items.TempId = null;
     }
 }