public PartialViewResult GetReportCriteriaForm(int reportType) { AssignUserInfo(); dmDanhMucDataBusiness = Get <DM_DANHMUC_DATABusiness>(); cctcThanhPhanBusiness = Get <CCTC_THANHPHANBusiness>(); ReportVanBanDenFilterViewModel viewModel = new ReportVanBanDenFilterViewModel(reportType); switch (reportType) { case LOAI_BAOCAO_VANBAN_CONSTANT.BAOCAO_LOAI_VANBANDEN: viewModel.groupOfItemCategoryFilter = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.LOAI_VANBAN, 0); break; case LOAI_BAOCAO_VANBAN_CONSTANT.BAOCAO_LINHVUC_VANBANDEN: viewModel.groupOfItemCategoryFilter = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.LINHVUCVANBAN, 0); break; default: viewModel.groupOfItemCategoryFilter = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.DONVIGUI_VANBAN, 0); break; } var demo = currentUser.DeptParentID.GetValueOrDefault(); viewModel.groupOfDeparmtents = cctcThanhPhanBusiness.GetChildrenOfDepartments(currentUser.DM_PHONGBAN_ID.GetValueOrDefault(), currentUser.DeptParentID.GetValueOrDefault(), currentUser); return(PartialView("_ReportVanBanDenFilter", viewModel)); }
public ActionResult CreateVanBanDen(int type = VANBANDEN_CONSTANT.CHUA_XULY) { AssignUserInfo(); hscvVanBanDenBusiness = Get <HSCV_VANBANDENBusiness>(); dmDanhMucDataBusiness = Get <DM_DANHMUC_DATABusiness>(); EditVanBanDenModel model = new EditVanBanDenModel(); model.typeOfVanBanDen = type; model.groupDoKhans = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.DOKHAN, 0); model.groupDoUuTiens = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.DOUUTIEN, 0); model.groupLoaiVanBans = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.LOAI_VANBAN, 0); model.groupLinhVucVanBans = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.LINHVUCVANBAN, 0); model.groupSoVanBanDens = dmDanhMucDataBusiness.DsByMaNhomByDept(DMLOAI_CONSTANT.SOVANBANDEN, 0, currentUser.DeptParentID.GetValueOrDefault()); model.groupDonViGuis = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.DONVIGUI_VANBAN, 0); model.GroupDeptTypes = dmDanhMucDataBusiness.DsByMaNhom(VanBanConstant.LOAI_COQUAN, currentUser.ID); model.GroupDocTypes = dmDanhMucDataBusiness.DsByMaNhom(VanBanConstant.PHANLOAI_VANBAN, currentUser.ID); model.GroupDispatchTypes = dmDanhMucDataBusiness.DsByMaNhom(VanBanConstant.CONGVANDEN, currentUser.ID); model.groupTaiLieuDinhKems = new List <TAILIEUDINHKEM>(); model.entityVanBanDen = new HSCV_VANBANDEN(); model.fileExtension = extensionOfVanBanDen; model.fileMaxSize = maxSizeOfVanBanDen; return(View(model)); }
public ActionResult EditVanBanDen(long id, int type = VANBANDEN_CONSTANT.CHUA_XULY) { AssignUserInfo(); hscvVanBanDenBusiness = Get <HSCV_VANBANDENBusiness>(); dmDanhMucDataBusiness = Get <DM_DANHMUC_DATABusiness>(); attachmentBusiness = Get <TAILIEUDINHKEMBusiness>(); HSCV_VANBANDEN entityVanBanDen = hscvVanBanDenBusiness.Find(id); if (entityVanBanDen != null) { EditVanBanDenModel model = new EditVanBanDenModel(entityVanBanDen); model.typeOfVanBanDen = type; model.groupDonViGuis = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.DONVIGUI_VANBAN, currentUser.ID, entityVanBanDen.DONVI_ID.GetValueOrDefault()); model.groupDoKhans = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.DOKHAN, currentUser.ID, entityVanBanDen.DOKHAN_ID.GetValueOrDefault()); model.groupDoUuTiens = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.DOUUTIEN, currentUser.ID, entityVanBanDen.DOMAT_ID.GetValueOrDefault()); model.groupLoaiVanBans = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.LOAI_VANBAN, currentUser.ID, entityVanBanDen.LOAIVANBAN_ID.GetValueOrDefault()); model.groupLinhVucVanBans = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.LINHVUCVANBAN, currentUser.ID, entityVanBanDen.LINHVUCVANBAN_ID.GetValueOrDefault()); model.groupSoVanBanDens = dmDanhMucDataBusiness.DsByMaNhomByDept(DMLOAI_CONSTANT.SOVANBANDEN, currentUser.ID, currentUser.DeptParentID.Value, entityVanBanDen.SOVANBANDEN_ID.GetValueOrDefault()); model.groupTaiLieuDinhKems = attachmentBusiness.GetDataByItemID(entityVanBanDen.ID, LOAITAILIEU.VANBANDEN); model.entityVanBanDen = entityVanBanDen; model.fileExtension = extensionOfVanBanDen; model.fileMaxSize = maxSizeOfVanBanDen; model.UsersReceived = entityVanBanDen.NGUOINHAN_TRUCTIEP_IDS != null?entityVanBanDen.NGUOINHAN_TRUCTIEP_IDS.ToListLong(',') : new List <long>(); //model.Recipients = recipientBusiness.GetRecipientGroups(currentUser.DM_PHONGBAN_ID.GetValueOrDefault()); model.GroupDeptTypes = dmDanhMucDataBusiness.DsByMaNhom(VanBanConstant.LOAI_COQUAN, currentUser.ID, entityVanBanDen.LOAI_COQUAN_ID.GetValueOrDefault()); model.GroupDocTypes = dmDanhMucDataBusiness.DsByMaNhom(VanBanConstant.PHANLOAI_VANBAN, currentUser.ID, entityVanBanDen.THONGTIN_LOAI_ID.GetValueOrDefault()); model.GroupDispatchTypes = dmDanhMucDataBusiness.DsByMaNhom(VanBanConstant.CONGVANDEN, currentUser.ID, entityVanBanDen.CONGVAN_DEN_ID.GetValueOrDefault()); return(View("CreateVanBanDen", model)); } return(Redirect("/Home/UnAuthor")); }
/// <summary> /// @author:duynn /// @since:16/06/2019 /// @description: danh sách phòng ban /// </summary> /// <returns></returns> //[CodeAllowAccess(Code = "DsCCTC")] public ActionResult Index() { AssignUserInfo(); CCTC_THANHPHANBusiness = Get<CCTC_THANHPHANBusiness>(); DMLoaiDonViBusiness = Get<DMLoaiDonViBusiness>(); DM_DANHMUC_DATABusiness = Get<DM_DANHMUC_DATABusiness>(); CCTC_THANHPHAN_SEARCHBO searchModel = new CCTC_THANHPHAN_SEARCHBO(); SessionManager.SetValue("CctcThanhPhanSearch", searchModel); CoCauToChucIndexModel viewModel = new CoCauToChucIndexModel() { GroupData = CCTC_THANHPHANBusiness.GetDataByPage(searchModel, currentUser), DS_TYPE = DMLoaiDonViBusiness.DSLoaiDonVi(), DS_CATEGORY = DM_DANHMUC_DATABusiness.DsByMaNhom("DMCAPPHONGBAN", currentUser.ID) }; #region settings deptId int deptId = 0; if (currentUser.ListVaiTro.Any(x => x.MA_VAITRO == "QLHT")) { CCTC_THANHPHAN leaderDept = CCTC_THANHPHANBusiness.Find(currentUser.DM_PHONGBAN_ID.GetValueOrDefault()); if (leaderDept != null) { deptId = leaderDept.PARENT_ID.HasValue ? leaderDept.PARENT_ID.Value : leaderDept.ID; } } else if (currentUser.ListVaiTro.Any(x => x.MA_VAITRO == "QLHT_HUYENUY") || currentUser.ListVaiTro.Any(x => x.MA_VAITRO == "QLHT_XAPHUONG")) { } return View(viewModel); }
public ActionResult Index() { AssignUserInfo(); DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>(); VanBanDiVM model = new VanBanDiVM(); HSCV_VANBANDI_SEARCH searchModel = new HSCV_VANBANDI_SEARCH(); model.LstDoKhan = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.DOQUANTRONG, 0); model.LstDoUuTien = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.DOUUTIEN, 0); model.LstLoaiVanBan = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.LOAI_VANBAN, 0); model.LstLinhVucVanBan = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.LINHVUCVANBAN, 0); HSCV_VANBANDIBusiness = Get <HSCV_VANBANDIBusiness>(); searchModel.USER_ID = currentUser.ID; searchModel.ITEM_TYPE = MODULE_CONSTANT.VANBANTRINHKY; model.ListResult = HSCV_VANBANDIBusiness.GetListProcessed(searchModel, MaxPerpage); model.UserInfoBO = currentUser; model.HasRoleThuHoi = currentUser.ListThaoTac.Where(x => x.MA_THAOTAC == CODE_ROLE_THUHOIVANBAN).FirstOrDefault() != null; searchModel.pageSize = MaxPerpage; SessionManager.SetValue("VbDaXlSearch", searchModel); #region lấy thông tin wf model.STATEBEGIN = 0; var WF_MODULEBusiness = Get <WF_MODULEBusiness>(); var WFMODULEObj = WF_MODULEBusiness.repository.All().Where(x => x.MODULE_CODE == MODULE_CONSTANT.VANBANTRINHKY).FirstOrDefault(); if (WFMODULEObj != null) { var LstWFId = WFMODULEObj.WF_STREAM_ID.ToListInt(','); var WF_STREAMBusiness = Get <WF_STREAMBusiness>(); var WF_STATEBusiness = Get <WF_STATEBusiness>(); var CoCauBusiness = Get <CCTC_THANHPHANBusiness>(); var DeptObj = CoCauBusiness.Find(currentUser.DM_PHONGBAN_ID); var StreamObj = WF_STREAMBusiness.repository.All() .Where(x => LstWFId.Contains(x.ID) && x.LEVEL_ID == DeptObj.CATEGORY).FirstOrDefault(); var StateBegin = WF_STATEBusiness.repository.All().Where(x => StreamObj.ID == x.WF_ID && true == x.IS_START).FirstOrDefault(); if (StateBegin != null) { model.STATEBEGIN = StateBegin.ID; var WF_PROCESSBusiness = Get <WF_PROCESSBusiness>(); model.STARTSTATEBYUSER = WF_PROCESSBusiness.GetState(StateBegin.ID, currentUser); } } #endregion return(View(model)); }
//private THUMUC_LUUTRUBusiness THUMUC_LUUTRUBusiness; #region Các hàm actionresult public ActionResult Index() { AssignUserInfo(); DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>(); VanBanDiVM model = new VanBanDiVM(); HSCV_VANBANDI_SEARCH searchModel = new HSCV_VANBANDI_SEARCH(); model.LstDoKhan = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.DOQUANTRONG, 0); model.LstDoUuTien = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.DOUUTIEN, 0); model.LstLoaiVanBan = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.LOAI_VANBAN, 0); model.LstLinhVucVanBan = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.LINHVUCVANBAN, 0); HSCV_VANBANDIBusiness = Get <HSCV_VANBANDIBusiness>(); searchModel.USER_ID = currentUser.ID; searchModel.ITEM_TYPE = MODULE_CONSTANT.VANBANTRINHKY; model.ListResult = HSCV_VANBANDIBusiness.GetListProcessing(searchModel, MaxPerpage); model.UserInfoBO = currentUser; searchModel.pageSize = MaxPerpage; SessionManager.SetValue("VbChuaXlSearch", searchModel); return(View(model)); }
//private CCTC_THANHPHANBusiness CCTC_THANHPHANBusiness; public ActionResult Index() { CongViecIndexViewModel model = new CongViecIndexViewModel(); HSCV_CONGVIECBusiness = Get <HSCV_CONGVIECBusiness>(); HSCV_CONGVIEC_SEARCH searchModel = new HSCV_CONGVIEC_SEARCH(); AssignUserInfo(); searchModel.USER_ID = currentUser.ID; searchModel.pageSize = MaxPerpage; SessionManager.SetValue("ProcessedJobSearchModel", searchModel); var ListCongViec = HSCV_CONGVIECBusiness.GetListProcessedJob(searchModel, MaxPerpage); model.ListResult = ListCongViec; DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>(); model.ListDoKhan = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.DOQUANTRONG, 0); model.ListDoUuTien = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.DOUUTIEN, 0); model.UserInfo = currentUser; SessionManager.SetValue("ProcessedJobSearch", ListCongViec.ListItem); return(View(model)); }
public ActionResult Index() { CongViecIndexViewModel model = new CongViecIndexViewModel(); HSCV_CONGVIECBusiness = Get <HSCV_CONGVIECBusiness>(); HSCV_CONGVIEC_SEARCH searchModel = new HSCV_CONGVIEC_SEARCH(); AssignUserInfo(); searchModel.LOAI_CONGVIEC = LOAI_CONGVIEC.PHOIHOP_XULY; searchModel.USER_ID = currentUser.ID; searchModel.pageSize = MaxPerpage; SessionManager.SetValue("CongViecXLSearchModel", searchModel); var ListCongViec = HSCV_CONGVIECBusiness.GetDaTaByPage(searchModel, MaxPerpage); model.ListResult = ListCongViec; DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>(); model.ListDoKhan = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.DOKHAN, 0); model.ListDoUuTien = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.DOUUTIEN, 0); model.UserInfo = currentUser; return(View(model)); }
public ActionResult Update(long id) { AssignUserInfo(); DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>(); HSCV_CONGVIECBusiness = Get <HSCV_CONGVIECBusiness>(); CongViecViewModel model = new CongViecViewModel(); model.UserInfo = currentUser; var CongViec = HSCV_CONGVIECBusiness.Find(id); if (CongViec == null || currentUser.ID != CongViec.NGUOIGIAOVIEC_ID) { CongViec = new HSCV_CONGVIEC(); } model.ListDoKhan = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.DOKHAN, currentUser.ID, CongViec.DOKHAN.HasValue ? CongViec.DOKHAN.Value : 0); model.ListDoUuTien = DM_DANHMUC_DATABusiness.DsByMaNhom(DMLOAI_CONSTANT.DOUUTIEN, currentUser.ID, CongViec.DOUU_TIEN.HasValue ? CongViec.DOUU_TIEN.Value : 0); TAILIEUDINHKEMBusiness = Get <TAILIEUDINHKEMBusiness>(); model.ListTaiLieu = TAILIEUDINHKEMBusiness.GetDataByItemID(id, LOAITAILIEU.CONGVIEC); model.CongViec = CongViec; model.userInfo = currentUser; return(View(model)); }
/// <summary> /// @description: view model văn bản đến /// @author: duynn /// @since: 06/08/2018 /// </summary> /// <param name="typeOfVanBanDen"></param> /// <returns></returns> public ListVanBanDenViewModel GetListViewModelOfVanBanDen(int typeOfVanBanDen) { AssignUserInfo(); hscvVanBanDenBusiness = Get <HSCV_VANBANDENBusiness>(); dmDanhMucDataBusiness = Get <DM_DANHMUC_DATABusiness>(); HSCV_VANBANDEN_SEARCH searchModel = new HSCV_VANBANDEN_SEARCH(); searchModel.USER_ID = currentUser.ID; searchModel.ITEM_TYPE = MODULE_CONSTANT.VANBANDEN; ListVanBanDenViewModel model = new ListVanBanDenViewModel(); model.userInfo = currentUser; model.typeOfLoaiVanBan = typeOfVanBanDen; model.groupOfLoaiVanBans = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.LOAI_VANBAN, 0); model.groupOfLinhVucVanBans = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.LINHVUCVANBAN, 0); model.groupOfDoKhans = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.DOKHAN, 0); model.groupOfDoUuTiens = dmDanhMucDataBusiness.DsByMaNhom(DMLOAI_CONSTANT.DOUUTIEN, 0); int tmpdept = currentUser.DeptParentID.HasValue ? currentUser.DeptParentID.Value : 0; model.groupSoVanBanDens = dmDanhMucDataBusiness.DsByMaNhomByDept(DMLOAI_CONSTANT.SOVANBANDEN, 0, tmpdept); DM_THAOTAC userFunction = currentUser.ListThaoTac.Where(o => o.MA_THAOTAC.ToUpper() == "HSCV_VANBANDEN_CREATE").FirstOrDefault(); model.canCreate = (userFunction != null && userFunction.DM_THAOTAC_ID > 0); string sessionName; switch (typeOfVanBanDen) { case VANBANDEN_CONSTANT.CHUA_XULY: sessionName = "VanBanDenChuaXuLySearchModel"; model.title = "Quản lý văn bản đến chưa xử lý"; model.groupOfVanBanDens = hscvVanBanDenBusiness.GetListInProcess(searchModel); break; case VANBANDEN_CONSTANT.DA_XULY: sessionName = "VanBanDenDaXuLySearchModel"; model.title = "Quản lý văn bản đến đã xử lý"; model.groupOfVanBanDens = hscvVanBanDenBusiness.GetListProcessed(searchModel); break; case VANBANDEN_CONSTANT.THAMGIA_XULY: sessionName = "VanBanDenThamGiaXuLySearchModel"; model.title = "Quản lý văn bản đến tham gia xử lý"; model.groupOfVanBanDens = hscvVanBanDenBusiness.GetListJoinProcess(searchModel); break; case VANBANDEN_CONSTANT.NOIBO_CHUAXULY: sessionName = "VanBanDenNoiBoChuaXuLySearchModel"; searchModel.isInternal = true; searchModel.ITEM_TYPE = MODULE_CONSTANT.VANBANDENNOIBO; model.title = "Quản lý văn bản đến nội bộ chưa xử lý"; model.groupOfVanBanDens = hscvVanBanDenBusiness.GetListInProcess(searchModel); break; case VANBANDEN_CONSTANT.NOIBO_DAXULY: searchModel.isInternal = true; searchModel.ITEM_TYPE = MODULE_CONSTANT.VANBANDENNOIBO; sessionName = "VanBanDenNoiBoDaXuLySearchModel"; model.title = "Quản lý văn bản đến nội bộ đã xử lý"; model.groupOfVanBanDens = hscvVanBanDenBusiness.GetListProcessed(searchModel); break; default: sessionName = string.Empty; break; } SessionManager.SetValue(sessionName, searchModel); return(model); }
public ActionResult EditHoSo(long id) { DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>(); CCTC_THANHPHANBusiness = Get <CCTC_THANHPHANBusiness>(); HOSOCANBOBusiness = Get <HOSOCANBOBusiness>(); HoSoCanBoVM model = new HoSoCanBoVM(); model.HoSo = HOSOCANBOBusiness.Find(id); model.LstGioiTinh = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_GIOITINH", 0, model.HoSo.GIOITINH.HasValue ? model.HoSo.GIOITINH.Value : 0); model.LstDanToc = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_DANTOC", 0, model.HoSo.DANTOC.HasValue ? model.HoSo.DANTOC.Value : 0); model.LstTonGiao = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TONGIAO", 0, model.HoSo.TONGIAO.HasValue ? model.HoSo.TONGIAO.Value : 0); model.LstNgach = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NGACH", 0, model.HoSo.NGACHCONGCHUCVIENCHUC.HasValue ? model.HoSo.NGACHCONGCHUCVIENCHUC.Value : 0); model.LstTrinhDoGiaoDuc = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TRINHDOGIAODUC", 0, model.HoSo.TRINHDOGIAODUC.HasValue ? model.HoSo.TRINHDOGIAODUC.Value : 0); model.LstTrinhDoChuyenMon = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TRINHDOCHUYENMON", 0, model.HoSo.TRINHDOCHUYENMONCAONHAT.HasValue ? model.HoSo.TRINHDOCHUYENMONCAONHAT.Value : 0); model.LstLyLuanChinhTri = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_LYLUANCHINHTRI", 0, model.HoSo.LYLUANCHINHTRI.HasValue ? model.HoSo.LYLUANCHINHTRI.Value : 0); model.LstQuanLyNhaNuoc = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_QUANLYNHANUOC", 0, model.HoSo.QUANLYNHANUOC.HasValue ? model.HoSo.QUANLYNHANUOC.Value : 0); model.LstNgoaiNgu = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NGOAINGU", 0, model.HoSo.NGOAINGU.HasValue ? model.HoSo.NGOAINGU.Value : 0); model.LstTinHoc = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TINHOC", 0, model.HoSo.TINHOC.HasValue ? model.HoSo.TINHOC.Value : 0); model.LstTinhTrangSucKhoe = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TINHTRANGSUCKHOE", 0, model.HoSo.SUCKHOE.HasValue ? model.HoSo.SUCKHOE.Value : 0); model.LstNhomMau = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NHOMMAU", 0, model.HoSo.NHOMMAU.HasValue ? model.HoSo.NHOMMAU.Value : 0); model.LstGiaDinhChinhSach = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_GIADINHCHINHSACH", 0, model.HoSo.GIADINHCHINHSACH.HasValue ? model.HoSo.GIADINHCHINHSACH.Value : 0); model.LstChucVu = DM_DANHMUC_DATABusiness.DsByMaNhom("DMCHUCVU", 0, model.HoSo.CHUCVUHIENTAI.HasValue ? model.HoSo.CHUCVUHIENTAI.Value : 0); model.LstDonViHienTai = CCTC_THANHPHANBusiness.GetDropDownList(model.HoSo.DONVI_ID.HasValue ? model.HoSo.DONVI_ID.Value : 0); return(View("Create", model)); }
public ActionResult Create() { DM_DANHMUC_DATABusiness = Get <DM_DANHMUC_DATABusiness>(); CCTC_THANHPHANBusiness = Get <CCTC_THANHPHANBusiness>(); HoSoCanBoVM model = new HoSoCanBoVM(); model.HoSo = new HOSO_CANBO_THONGTINCHUNG(); model.LstGioiTinh = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_GIOITINH", 0); model.LstDanToc = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_DANTOC", 0); model.LstTonGiao = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TONGIAO", 0); model.LstNgach = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NGACH", 0); model.LstTrinhDoGiaoDuc = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TRINHDOGIAODUC", 0); model.LstTrinhDoChuyenMon = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TRINHDOCHUYENMON", 0); model.LstLyLuanChinhTri = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_LYLUANCHINHTRI", 0); model.LstQuanLyNhaNuoc = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_QUANLYNHANUOC", 0); model.LstNgoaiNgu = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NGOAINGU", 0); model.LstTinHoc = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TINHOC", 0); model.LstTinhTrangSucKhoe = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_TINHTRANGSUCKHOE", 0); model.LstNhomMau = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_NHOMMAU", 0); model.LstGiaDinhChinhSach = DM_DANHMUC_DATABusiness.DsByMaNhom("NHANSU_GIADINHCHINHSACH", 0); model.LstChucVu = DM_DANHMUC_DATABusiness.DsByMaNhom("DMCHUCVU", 0); model.LstDonViHienTai = CCTC_THANHPHANBusiness.GetDropDownList(); return(View(model)); }