Пример #1
0
 private void reset_ls_cthd()
 {
     if (isNew)
     {
         ls_cthd.Clear();
     }
     else
     {
         ls_cthd = CT_HoaDonNhap_DAL.get_CTHoaDonNhap_By_MaHD_TT01(hoadonnhap.MaHoaDon);
     }
 }
Пример #2
0
 private void setDataLoad()
 {
     txtMaPhieu.Text   = hoadonnhap.MaHoaDon;
     txtNhanVien.Text  = hoadonnhap.NhanVien;
     dateNgayBan.Value = hoadonnhap.NgayLap;
     txtGhiChu.Text    = hoadonnhap.GhiChu;
     setGroupBox_NCC();
     if (isNew)
     {
         ls_cthd = new List <CT_HoaDonNhap_View>();
     }
     else
     {
         ls_cthd = CT_HoaDonNhap_DAL.get_CTHoaDonNhap_By_MaHD_TT01(hoadonnhap.MaHoaDon);
     }
     gridControl1.DataSource = ls_cthd;
     count_TongTien();
 }