private void btnXem_Click(object sender, EventArgs e)
 {
     try
     {
         rptThanhToanGioDayDTO rptDTO = new rptThanhToanGioDayDTO();
         rptDTO.MaGV        = gridViewGV.GetRowCellValue(rowHandle, "MaGV").ToString();
         rptDTO.NgayBD      = dateNgayBD.DateTime;
         rptDTO.NgayKT      = dateNgayKT.DateTime;
         rptDTO.TenGV       = txtGiangVien.Text;
         rptDTO.ThucDay     = int.Parse(txtThucDay.EditValue.ToString());
         rptDTO.ThuLao      = int.Parse(txtDonGia.EditValue.ToString());
         rptDTO.TrinhDo     = gridViewGV.GetRowCellDisplayText(rowHandle, "TenTrinhDo");
         rptDTO.NguonDuLieu = ThoiKhoaBieuBUS.ThongTinThanhToan(rptDTO.MaGV, rptDTO.NgayBD, rptDTO.NgayKT).Where(i => i.CoDay && i.DaThanhToan == false);
         frmInBangLuong frm = new frmInBangLuong(rptDTO);
         StaticClass.Log.GhiFile("In bảng thanh toán tiền lương cho giảng viên " + rptDTO.MaGV + " từ " + dateNgayBD.DateTime.ToString("dd/MM/yyyy") + " đến " + dateNgayKT.DateTime.ToString("dd/MM/yyyy"));
         if (truyen != null)
         {
             truyen(frm);
         }
     }
     catch (Exception ex)
     {
         ExceptionUtil.ThrowMsgBox(ex.Message);
     }
 }
Пример #2
0
 public frmInBangLuong(rptThanhToanGioDayDTO source)
 {
     try
     {
         InitializeComponent();
         nguon     = source;
         this.Text = string.Format("Bảng lương {0}:{1}", nguon.MaGV, nguon.TenGV);
     }
     catch (Exception ex)
     {
         ExceptionUtil.ThrowMsgBox(ex.Message);
     }
 }
 public rptThanhToan(rptThanhToanGioDayDTO source)
 {
     InitializeComponent();
     this.source = source;
     CreateReport();
 }