public string Search(VOS_PEmployeeListVM vm) { if (ModelState.IsValid) { return(vm.GetJson(false)); } else { return(vm.GetError()); } }
protected override void InitVM() { VOS_PEmployeeListVM = new VOS_PEmployeeListVM(); //VOS_PEmployeeList = new VOS_PEmployeeListVM(); //VOS_PEmployeeList.CopyContext(this); //VOS_PEmployeeList.SearcherMode = ListVMSearchModeEnum.Custom1; AllPlans = DC.Set <VOS_Plan>().DPWhere(LoginUserInfo.DataPrivileges, x => x.OrganizationID).GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.Plan_no); AllTaskCates = DC.Set <Category>().Where(x => x.ParentId == null).GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.Name).ToList(); AllUnlockers = DC.Set <FrameworkUserBase>().GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.CodeAndName); AllExecutors = DC.Set <FrameworkUserBase>().GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.CodeAndName); AllDistributors = DC.Set <FrameworkUserBase>().GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.CodeAndName); AllEmployees = DC.Set <VOS_PEmployee>().GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.FullName); AllCompleters = DC.Set <FrameworkUserBase>().GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.CodeAndName); AllRefunders = DC.Set <FrameworkUserBase>().GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.CodeAndName); }
public IActionResult ExportExcel(VOS_PEmployeeListVM vm) { return(vm.GetExportData()); }
public VOS_TaskBatchVM() { ListVM = new VOS_TaskListVM(); LinkedVM = new VOS_Task_BatchEdit(); VOS_PEmployeeListVM = new VOS_PEmployeeListVM(); }