public frm_PhieuNhapTieuHao(int oid, string sochungtu, string ngaylap, string sopo) { InitializeComponent(); ChungTuXuatTieuHaoInfornew chungTuXuatTieuHaoInfor = XuatTieuHaoProvider.Instance.GetChungTuBySoChungTu <ChungTuXuatTieuHaoInfornew>(sochungtu); if (chungTuXuatTieuHaoInfor != null) { chungTuXuatTieuHaoInfor.LoaiChungTu = Convert.ToInt32(TransactionType.NHAP_TIEU_HAO); business = new NhapKhoTieuHaoBusiness(chungTuXuatTieuHaoInfor); } else { throw new ManagedException(String.Format("Chứng từ số {0} không tồn tại.", sochungtu)); } }
public frm_PhieuNhapTieuHao(int oid, string sochungtu, string ngayxuat, string sopo, int idChungTuGoc, int trangThai, string nguoiLap, string TenTrungTam, string TenKho, string NguoiXuat, string GhiChu, int IdNhanVienGiao, string ngayLap, int idKho) { InitializeComponent(); this.OID = oid; this.TenTrungTam = TenTrungTam; this.TenKho = TenKho; this.SoChungTu = sochungtu; this.NgayXuat = ngayxuat; this.idChungTuGoc = idChungTuGoc; this.trangThai = trangThai; this.NguoiLap = nguoiLap; this.NguoiXuat = NguoiXuat; this.GhiChu = GhiChu; this.IdNhanVienGiao = IdNhanVienGiao; this.NgayLap = ngayLap; ChungTuXuatTieuHaoInfornew chungTuXuatTieuHaoInfor = XuatTieuHaoProvidernew.Instance.GetChungTuBySoChungTu <ChungTuXuatTieuHaoInfornew>(sochungtu); if (chungTuXuatTieuHaoInfor != null) { chungTuXuatTieuHaoInfor.LoaiChungTu = Convert.ToInt32(TransactionType.NHAP_TIEU_HAO); business = new NhapKhoTieuHaoBusiness(chungTuXuatTieuHaoInfor); } }