Пример #1
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     /*Lưu thông tin vào cơ sở dữ liệu*/
     if (!(SingleRowInsert(true) & (SingleRowInsert(false))))
     {
         MessageBox.Show("Thông tin ngày tháng đầu vào sai", "Thông báo");
         return;
     }
     /*Hiển thị báo cáo*/
     int IQuarter = int.Parse(cboQuarter.Text);
     int IYear = int.Parse(cboYear.Text);
     string SocialInsuranceOffice = txtSocialInsuranceOffice.Text;
     string ComName = txtComName.Text;
     string ComAddress = txtComAddress.Text;
     string ComAcc = txtComAcc.Text;
     string ComBank = txtComBank.Text;
     string ComTel = txtComTel.Text;
     string ComFax = txtComFax.Text;
     string YC1 = txtYC1.Text;
     string YC2 = txtYC2.Text;
     string YC3 = txtYC3.Text;
     string YC4 = txtYC4.Text;
     string YC5 = txtYC5.Text;
     string YC6 = txtYC6.Text;
     string YC7 = txtYC7.Text;
     string YC8 = txtYC8.Text;
     DateTime CreateDate = dtCreateDate.Value;
     string CopyNum = txtCopyNum.Text;
     string ComID = txtComID.Text;
     frmReport frm = new frmReport();
     frm.ShowInsuranceC46(IQuarter, IYear, SocialInsuranceOffice, ComName, ComAddress, ComAcc, ComBank, ComTel, ComFax, YC1, YC2, YC3, YC4, YC5, YC6, YC7, YC8, CreateDate, CopyNum, ComID);
 }
Пример #2
0
        private void LoadReport(dsInsurance ds)
        {
            //ReportDocument rptDoc = new ReportDocument();
            //rptDoc.SetDataSource(ds);

            frmReport frm = new frmReport();
            //frm.SetReportDocument = rptDoc;
            frm.ShowInsuranceC47(ds,dtIDate.Value.Month,dtIDate.Value.Year);
        }