Ejemplo n.º 1
0
        public DetailVanBanBO GetDetail(long?id = 0)
        {
            var result     = new DetailVanBanBO();
            var findVanBan = this.Find(id);

            if (findVanBan != null)
            {
                var DM_DANHMUC_DATABusiness = new DM_DANHMUC_DATABusiness(new UnitOfWork());
                result.COQUAN_BANHANH_ID   = findVanBan.COQUAN_BANHANH_ID;
                result.COQUAN_BANHANH_NAME = DM_DANHMUC_DATABusiness.GetName(findVanBan.COQUAN_BANHANH_ID);
                result.DOMAT_ID            = findVanBan.DOMAT_ID;
                result.DOMAT_NAME          = DM_DANHMUC_DATABusiness.GetName(findVanBan.DOMAT_ID);
                result.GHICHU               = findVanBan.GHICHU;
                result.HOSO_ID              = findVanBan.HOSO_ID;
                result.HOSO_NAME            = new QuanLyHoSoBusiness(new UnitOfWork()).GetName(findVanBan.HOSO_ID);
                result.ID                   = findVanBan.ID;
                result.LINHVUC_ID           = findVanBan.LINHVUC_ID;
                result.LINHVUC_NAME         = DM_DANHMUC_DATABusiness.GetName(findVanBan.LINHVUC_ID);
                result.LOAI_VANBAN_ID       = findVanBan.LOAI_VANBAN_ID;
                result.LOAI_VANBAN_NAME     = DM_DANHMUC_DATABusiness.GetName(findVanBan.LOAI_VANBAN_ID);
                result.MUCDO_TRUYCAP        = findVanBan.MUCDO_TRUYCAP;
                result.MUCDO_TRUYCAP_NAME   = DM_DANHMUC_DATABusiness.GetName(findVanBan.MUCDO_TRUYCAP);
                result.NGAYBANHANH          = findVanBan.NGAYBANHANH;
                result.NGAYTAO              = findVanBan.NGAYTAO;
                result.NGONNGU_ID           = findVanBan.NGONNGU_ID;
                result.NGONNGU_NAME         = DM_DANHMUC_DATABusiness.GetName(findVanBan.NGONNGU_ID);
                result.NGUOITAO             = findVanBan.NGUOITAO;
                result.SO_KYHIEU            = findVanBan.SO_KYHIEU;
                result.TIEUDE               = findVanBan.TIEUDE;
                result.TINHTRANG_VATLY      = findVanBan.TINHTRANG_VATLY;
                result.TINHTRANG_VATLY_NAME = DM_DANHMUC_DATABusiness.GetName(findVanBan.TINHTRANG_VATLY);
                result.TRICHYEU_VANBAN      = findVanBan.TRICHYEU_VANBAN;
            }
            return(result);
        }
Ejemplo n.º 2
0
        public QuanLyHoSoDetailBO GetDetailBO(long?hoSoId = 0)
        {
            var hoSo = this.Find(hoSoId);

            if (hoSo != null)
            {
                var dataDanhMuc = new DM_DANHMUC_DATABusiness(new UnitOfWork());
                var result      = new QuanLyHoSoDetailBO();
                result.CHUGIAI            = hoSo.CHUGIAI;
                result.DONVI_ID           = hoSo.DONVI_ID;
                result.FTS                = hoSo.FTS;
                result.THOIHAN_BAOQUAN_ID = hoSo.THOIHAN_BAOQUAN_ID;
                result.HOPSO              = hoSo.HOPSO;
                result.HOSO_NAM           = hoSo.HOSO_NAM;
                result.HOSO_SO            = hoSo.HOSO_SO;
                result.ID                = hoSo.ID;
                result.KHO_ID            = hoSo.KHO_ID;
                result.MUCDO_TRUYCAP     = hoSo.MUCDO_TRUYCAP;
                result.THOIGIAN_TAILIEU  = hoSo.THOIGIAN_TAILIEU;
                result.MUCLUC_SO         = hoSo.MUCLUC_SO;
                result.NAM_CHINHLY       = hoSo.NAM_CHINHLY;
                result.NGAYTAO           = hoSo.NGAYTAO;
                result.NGUOITAO          = hoSo.NGUOITAO;
                result.PHONGSO           = hoSo.PHONGSO;
                result.PHONG_ID          = hoSo.PHONG_ID;
                result.SOLUONG_TO        = hoSo.SOLUONG_TO;
                result.TEN_KHO           = dataDanhMuc.GetName(hoSo.KHO_ID);
                result.TEN_MUCDO_TRUYCAP = dataDanhMuc.GetName(hoSo.MUCDO_TRUYCAP);
                result.TEN_PHONG         = dataDanhMuc.GetName(hoSo.PHONG_ID);
                result.THOIHAN           = dataDanhMuc.GetName(hoSo.THOIHAN_BAOQUAN_ID);
                result.TIEUDE            = hoSo.TIEUDE;
                result.TRANGTHAI         = hoSo.TRANGTHAI;
                return(result);
            }
            return(new QuanLyHoSoDetailBO());
        }