public PartialViewResult FormVanBan(long?id = 0, long?HoSoID = 0) { DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>(); QuanLyVanBanBusiness = Get <QuanLyVanBanBusiness>(); QuanLyHoSoBusiness = Get <QuanLyHoSoBusiness>(); TaiLieuDinhKemBusiness = Get <TAILIEUDINHKEMBusiness>(); FormVanBanModel model = new FormVanBanModel(); var VanBan = new QUANLY_VANBAN(); if (id > 0) { VanBan = QuanLyVanBanBusiness.Find(id); } model.VanBan = VanBan; model.HOSO_ID = HoSoID; model.ListCoQuanBanHanh = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.QLHS_CO_QUAN_BAN_HANH, VanBan.COQUAN_BANHANH_ID); model.ListDoMat = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.DOMAT, VanBan.DOMAT_ID); model.ListHoSo = QuanLyHoSoBusiness.GetDropDow(HoSoID); model.ListLinhVuc = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.LINHVUCVANBAN, VanBan.LINHVUC_ID); model.ListLoaiVanBan = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.LOAI_VANBAN, VanBan.LOAI_VANBAN_ID); model.ListMucDoTruyCap = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.QLHS_MUC_DO_TRUY_CAP, VanBan.MUCDO_TRUYCAP); model.ListNgonNgu = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.QLHS_NGON_NGU, VanBan.NGONNGU_ID); model.ListTaiLieu = TaiLieuDinhKemBusiness.GetDataByItemID(VanBan.ID, LOAITAILIEU.VANBAN); model.ListTinhTrangVatLy = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.QLHS_TINH_TRANG_VAT_LY, VanBan.TINHTRANG_VATLY); return(PartialView("_FormVanBan", model)); }
public ActionResult Index() { UserInfoBO user = (UserInfoBO)SessionManager.GetUserInfo(); QuanLyHoSoBusiness = Get <QuanLyHoSoBusiness>(); QuanLyVanBanBusiness = Get <QuanLyVanBanBusiness>(); DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>(); QuanLyVanBanIndexViewModel model = new QuanLyVanBanIndexViewModel(); model.Source = QuanLyHoSoBusiness.GetPageForVanBan(null, pageNumber, pageSize); model.ListHoSoNam = GetListNam(); model.ListNamChinhLy = GetListNam(); model.ListKho = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.QLHS_KHO); model.ListPhongBan = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.QLHS_CO_QUAN_BAN_HANH); ViewBag.PageSize = pageSize; ViewBag.PageNumber = pageNumber; return(View(model)); }
public PartialViewResult FormHoSo(long?id = 0) { DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>(); QuanLyHoSoBusiness = Get <QuanLyHoSoBusiness>(); DM_NGUOIDUNGBusiness = Get <DM_NGUOIDUNGBusiness>(); QuanLyHoSoNguoiNhapBusiness = Get <QuanLyHoSoNguoiNhapBusiness>(); QuanLyHoSoModel model = new QuanLyHoSoModel(); var HoSo = new QUANLY_HOSO(); model.ListNamHoSo = GetListNam(DateTime.Now.Year - 20, DateTime.Now.Year + 20, DateTime.Now.Year); model.NamChinhLy = GetListNam(); if (id > 0) { HoSo = QuanLyHoSoBusiness.Find(id); if (HoSo.HOSO_NAM.HasValue) { model.ListNamHoSo = GetListNam(HoSo.HOSO_NAM.Value - 20, HoSo.HOSO_NAM.Value + 20, HoSo.HOSO_NAM); } if (HoSo.NAM_CHINHLY.HasValue) { model.NamChinhLy = GetListNam(HoSo.NAM_CHINHLY.Value - 20, HoSo.NAM_CHINHLY.Value + 20, HoSo.NAM_CHINHLY); } model.ListNguoiNhap = DM_NGUOIDUNGBusiness.GetDropDow(QuanLyHoSoNguoiNhapBusiness.GetByHoSo(id.Value)); } else { model.ListNguoiNhap = DM_NGUOIDUNGBusiness.GetDropDow(); } model.HoSo = HoSo; model.ListThoiHan = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.QLHS_THOI_HAN_BAO_QUAN, HoSo.THOIHAN_BAOQUAN_ID); model.ListAccessModifier = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.QLHS_MUC_DO_TRUY_CAP, HoSo.MUCDO_TRUYCAP); model.ListKho = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.QLHS_KHO, HoSo.KHO_ID); model.ListPhong = DM_DANHMUC_DATABusiness.GetDropDow(DMLOAI_CONSTANT.QLHS_PHONG, HoSo.PHONG_ID); return(PartialView("_FormHoSo", model)); }