示例#1
0
 private void btnTim_Click(object sender, EventArgs e)
 {
     if (liChiTiet.Count > 0)
     {
         frmTimKiemMaVach frm = new frmTimKiemMaVach(this.MaTrungTam);
         frm.ShowDialog();
     }
 }
示例#2
0
 public frmChiTietNhapThanhPham(frmTimKiemMaVach frm, string maLenh, List <ChungTuNhapNccChiTietHangHoaInfo> liMaVach, ChungTuXuatNhapNccInfo ct, int check)
 {
     InitializeComponent();
     this.frm1            = frm;
     this.MaLenh          = maLenh;
     this.MaThanhPham     = frm.MaThanhPham;
     this.MaTrungTam      = frm.MaTrungTam;
     this.TenThanhPham    = frm.TenThanhPham;
     this.SoLuongYC       = frm.SoLuongYC;
     this.SLCT            = frm.SoLuongDN;
     this.MaVachThanhPham = frm.MaVachThanhPham;
     this.liMaVach        = liMaVach;
     this.check           = check; //0: them moi, 2: sua
     XLKBussiness         = new XuatLinhKienSanXuatBussiness(new ChungTuXuatNhapNccInfo {
         IdChungTu = liMaVach[0].IdChungTu, SoChungTu = liMaVach[0].SoChungTu, IdKho = liMaVach[0].IdKho
     });
     NTPBussiness   = new NhapThanhPhamSanXuatBussiness(ct);
     XNNTPBussiness = new XacNhanNhapThanhPhanSanXuatBussiness(ct);
 }