public void SetProperty(VnsChungTu des)
 {
     //ID Field
     Id = des.Id;
     //Non ID Field
     _NgayCt     = des.NgayCt;
     _NgayHt     = des.NgayHt;
     _SoChungTu  = des.SoChungTu;
     _LoaiCt     = des.LoaiCt;
     _NoiDung    = des.NoiDung;
     _DonViId    = des.DonViId;
     _NguoiTao   = des.NguoiTao;
     _NguoiDuyet = des.NguoiDuyet;
 }
예제 #2
0
        public RpChiTietNganSach(VnsChungTu h, VnsGiaoDich d)
        {
            _Id             = h.Id;
            _IDDetail       = d.Id;
            _MaCt           = h.MaCt;
            _NgayCt         = h.NgayCt;
            _NgayHt         = h.NgayHt;
            _SoCt           = h.SoChungTu;
            _TenDonVi       = h.ObjDmDonVi.TenDonvi;
            _NganHangDonVi  = h.ObjDmDonVi.objDmNganHang.TenNganHang;
            _TaiKhoanDonVi  = h.ObjDmDonVi.SoTaiKhoan;
            _DonViId        = h.DonViId;
            _NoiDung        = d.DienGiai;
            _KhoanChi       = d.ObjDmKhoanChi.Ma;
            _Loai           = d.ObjVnsMaLoaiKhoan.MaCha;
            _Khoan          = d.ObjVnsMaLoaiKhoan.Ma;
            _NhomDonVi      = h.ObjDmDonVi.objDmNhomDonVi.Ma;
            _TenKhoanChi    = d.ObjDmKhoanChi.TenKhoanChi;
            _TenNhomDonVi   = h.ObjDmDonVi.objDmNhomDonVi.TenNhom;
            _SoTien         = d.SoTien;
            _NoiDungCapPhat = d.NoiDungCapPhat;

            //Gan so tien khoan chi
            _HoatDong  = GetSoTienTheoKhoanChi("01");
            _SuaChuaTx = GetSoTienTheoKhoanChi("02");
            _SuaChuaL  = GetSoTienTheoKhoanChi("03");
            _MuaSam    = GetSoTienTheoKhoanChi("04");
            _Khac      = GetSoTienTheoKhoanChi("");

            //Gan so tien nhom don vi
            _NDV_HC = GetSoTienTheoNhomDonVi("01");
            _NDV_XB = GetSoTienTheoNhomDonVi("02");
            _NDV_T  = GetSoTienTheoNhomDonVi("03");
            _NDV_K  = GetSoTienTheoNhomDonVi("04");

            //Gan so tien theo nghiep vu
            _LKP_SD = GetSoTienTheoNghiepVu("KH_SD");
            _LKP_DN = GetSoTienTheoNghiepVu("KH_DN");
            _LKP_BX = GetSoTienTheoNghiepVu("KH_BX");
            _LKP_CP = GetSoTienTheoNghiepVu("CP");
        }