public void SetProperty(VnsGiaoDich des)
 {
     //ID Field
     Id = des.Id;
     //Non ID Field
     _IdChungTu   = des.IdChungTu;
     _MaChungTu   = des.MaChungTu;
     _LoaiKhoanId = des.LoaiKhoanId;
     _DonViId     = des.DonViId;
     _KhoanChiId  = des.KhoanChiId;
     _SoTien      = des.SoTien;
     _DienGiai    = des.DienGiai;
 }
Пример #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");
        }