Beispiel #1
0
 public static void fillViewHDSX3(string hoaDonID, ViewInvoiceSX3 hd)
 {
     hd.SetDataSource(DataTier.fillHoaDon(hoaDonID));
     hd.SetParameterValue("ngayBatDau", ngayBatDau);
     hd.SetParameterValue("ngayKetThuc", ngayKetThuc);
     hd.SetParameterValue("giaDien1", giaDien);
     hd.SetParameterValue("giaDien2", giaDienSX3_2);
     hd.SetParameterValue("ngayKyHD", "Ngày " + ngayKy + "/" + thangKy + "/" + namKy);
     hd.SetParameterValue("ngayKyHD2", "Ngày " + ngayKy + " tháng " + thangKy + " năm " + namKy);
     hd.SetParameterValue("tongTienBangChu", docChu);
 }
Beispiel #2
0
 private void xemHoaDonForm_Load(object sender, EventArgs e)
 {
     if (hoaDonSX3 == true)
     {
         xemHDSX3 = new ViewInvoiceSX3();
         xemHDSX3.PrintOptions.PaperSize        = CrystalDecisions.Shared.PaperSize.PaperA5;
         xemHDSX3.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape;
         Program.fillViewHDSX3(hoaDonID, xemHDSX3);
         crystalReportViewer1.ReportSource = xemHDSX3;
     }
     else
     {
         xemHD = new ViewInvoice();
         xemHD.PrintOptions.PaperSize        = CrystalDecisions.Shared.PaperSize.PaperA5;
         xemHD.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape;
         Program.fillViewHD(hoaDonID, xemHD);
         crystalReportViewer1.ReportSource = xemHD;
     }
 }