private void btnSearchPhieuNhap_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; } NhapHangTraMuaInfor ct = NhapTraHangMuaDataProvider.Instance.SearchChungTuBanHangByPN(txtSoPhieuNhap.Text.Trim().ToUpper(), (int)TransactionType.DON_HANG_NHAP_LAI); if (ct != null) { Business = new XacNhanNhapLaiKhacBussiness(ct); LoadChungTuInstance(); } else { MessageBox.Show("Không tìm thấy chứng từ thích hợp!"); txtSoPhieuNhap.Text = Business.ChungTu.SoChungTu; } } catch (Exception ex) { EventLogProvider.Instance.WriteLog(ex.ToString() + "\nUser: "******"\nMay: " + Declare.TenMay, this.Name); #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 frmChiTietXacNhapLaiKhac(ChungTuBanHangInfor ctu) { InitializeComponent(); Common.LoadStyle(this); this.Business = new XacNhanNhapLaiKhacBussiness(ctu); }
public frmChiTietXacNhapLaiKhac() { InitializeComponent(); Common.LoadStyle(this); this.Business = new XacNhanNhapLaiKhacBussiness(LoaiChungTu, nguoiDung.IdNhanVien, _IdKho); }