public frm_PhieuXuatTieuHaoNew(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; this.IdKho = idKho; ChungTuXuatTieuHaoInfornew chungTuXuatTieuHaoInfor = XuatTieuHaoProvidernew.Instance.GetChungTuBySoChungTu <ChungTuXuatTieuHaoInfornew>(sochungtu); if (chungTuXuatTieuHaoInfor != null) { chungTuXuatTieuHaoInfor.LoaiChungTu = Convert.ToInt32(TransactionType.XUAT_HUY_TIEU_HAO); business = new XuatKhoTieuHaoBusinessnew(chungTuXuatTieuHaoInfor); } }
public void Delete() { XuatKhoTieuHaoBusinessnew XuatTieuHaoBusiness; //- lay infor nhap noi bo tren danh sach grid if (grvDanhSach.FocusedRowHandle < 0) { return; } XuatTieuHaoBusiness = new XuatKhoTieuHaoBusinessnew((ChungTuXuatTieuHaoInfornew)grvDanhSach.GetFocusedRow()); XuatTieuHaoBusiness.ChungTu.TrangThai = 0; XuatTieuHaoBusiness.DeleteChungTu(); }
public frm_PhieuXuatTieuHaoNew(int oid, string sochungtu, string ngaylap, string sopo) { InitializeComponent(); ChungTuXuatTieuHaoInfornew chungTuXuatTieuHaoInfor = XuatTieuHaoProvider.Instance.GetChungTuBySoChungTu <ChungTuXuatTieuHaoInfornew>(sochungtu); if (chungTuXuatTieuHaoInfor != null) { chungTuXuatTieuHaoInfor.LoaiChungTu = Convert.ToInt32(TransactionType.XUAT_HUY_TIEU_HAO); business = new XuatKhoTieuHaoBusinessnew(chungTuXuatTieuHaoInfor); } else { throw new ManagedException(String.Format("Chứng từ số {0} không tồn tại.", sochungtu)); } }