Example #1
0
 private void setDataLoad()
 {
     phanTramChietKhau_DB = decimal.Parse(HeThong_DAL.getHeThongByMa("HT001").GiaTri);
     phanTramChietKhau    = 0;
     txtMaPhieu.Text      = hoadon.MaHoaDon;
     txtNhanVien.Text     = hoadon.NhanVien;
     dateNgayBan.Value    = hoadon.NgayLap;
     txtGhiChu.Text       = hoadon.GhiChu;
     setGroupBox_KhachHang();
     setGridCtrl_LinhKien();
     if (isNew)
     {
         ls_cthd = new List <CT_HoaDon_View>();
     }
     else
     {
         ls_cthd = CT_HoaDon_DAL.get_CTHoaDon_By_MaHD_TT01(hoadon.MaHoaDon);
     }
     gridControl1.DataSource = ls_cthd;
     count_TongTien();
 }