public frmBH_LapPhieuXuatKhoChiTiet(int loaiChungTu) { InitializeComponent(); Common.LoadStyle(this); this.LoaiChungTu = loaiChungTu; Business = new XuatKhoHangBanBusiness(LoaiChungTu, nguoiDung.IdNhanVien, IdKhoSelected); }
private void btnTimOrderKH_Click(object sender, EventArgs e) { try { if (Updating) { if (MessageBox.Show("Dữ liệu đang cập nhật, bạn có muốn hủy bỏ không?", "Thông báo", MessageBoxButtons.YesNo) == DialogResult.No) { return; } } ChungTuBanHangInfor ctu = BanHangDataProvider.Instance.LoadChungTu(-1, txtSoOrderKH.Text.Trim(), 1, 0); if (ctu != null) { Business = new XuatKhoHangBanBusiness(ctu); LoadChungTuInstance(); Updating = false; setEDItems(); setEDFunctions(); ShowInfors(); } else { MessageBox.Show("Không tìm thấy chứng từ thích hợp!"); txtSoOrderKH.Text = Business.ChungTu.SoChungTu; } } catch (Exception ex) { #if DEBUG MessageBox.Show("Lỗi thao tác\n" + ex.ToString(), Declare.titleError, MessageBoxButtons.OK, MessageBoxIcon.Error); #else MessageBox.Show("Lỗi thao tác", Declare.titleError, MessageBoxButtons.OK, MessageBoxIcon.Error); #endif } }
public frmBH_LapPhieuXuatKhoChiTiet(ChungTuBanHangInfor chungTuBanHangInfor) { InitializeComponent(); Common.LoadStyle(this); Business = new XuatKhoHangBanBusiness(chungTuBanHangInfor); }
public frmBH_XuatKhoHangBan() { InitializeComponent(); Common.LoadStyle(this); Business = new XuatKhoHangBanBusiness(LoaiChungTu, nguoiDung.IdNhanVien, IdKhoSelected); }