D_tb_InPersonnel dInPersonnel = new D_tb_InPersonnel();//人员管理 // // GET: /DetectProject/ public ActionResult ExpePlanList(E_PageParameter ePageParameter) { int pageIndex = Utils.GetInt(Request["page"]); ePageParameter.pageindex = pageIndex > 0 ? pageIndex - 1 : pageIndex; ePageParameter.pagesize = 20; ViewBag.ExpePlanList = this.GetList(ePageParameter); ViewBag.PersonnelList = dInPersonnel.GetList(new E_tb_InPersonnel() { }); ViewBag.ePageParameter = ePageParameter; ViewBag.page = Utils.ShowPage(ePageParameter.count, ePageParameter.pagesize, pageIndex, 5); ViewData["PlanTypeList"] = this.GetPlanTypeList(true); ViewData["ProjectList"] = PageTools.GetSelectList(tProject.GetList("").Tables[0], "ProjectID", "ProjectName", true); ViewData["AreaList"] = PageTools.GetSelectList(tArea.GetList("").Tables[0], "AreaID", "AreaName", true); return(View("/views/ExpePlan/ExpePlanList.cshtml")); //if (Request["ApprovalPersonnelName"] != null) // ViewData["ApprovalPersonnelName"] = Request["ApprovalPersonnelName"].ToString(); //else // ViewData["ApprovalPersonnelName"] = ""; //ViewBag._userName = CurrentUserInfo.UserName; //eExpePlan.AreaID = CurrentUserInfo.AreaID; //ViewBag.IsDisabled = (CurrentUserInfo.RoleID != 1) ? "true" : "false"; //权限判断 }
T_tb_TestReportData tTestReportData = new T_tb_TestReportData(); //检验报告数据 // // GET: /Laboratory/ public ActionResult OriginalRecordList(E_PageParameter ePageParameter) { int pageIndex = Utils.GetInt(Request["page"]); ePageParameter.pageindex = pageIndex > 0 ? pageIndex - 1 : pageIndex; ePageParameter.pagesize = 20; ViewData["AreaList"] = PageTools.GetSelectList(tArea.GetList("").Tables[0], "AreaID", "AreaName", true); ViewData["ProjectList"] = PageTools.GetSelectList(tProject.GetList("").Tables[0], "ProjectID", "ProjectName", true); ViewBag.OriginalRecordList = this.GetList(ePageParameter); ViewBag.ePageParameter = ePageParameter; ViewBag.page = Utils.ShowPage(ePageParameter.count, ePageParameter.pagesize, pageIndex, 5); return(View("/views/OriginalRecord/OriginalRecordList.cshtml")); }
// // GET: /DetectProject/ public ActionResult ExpePlanList(E_tb_ExpePlan eExpePlan) { ViewData["PlanTypeList"] = this.GetPlanTypeList(true); ViewData["ProjectList"] = PageTools.GetSelectList(tProject.GetList("").Tables[0], "ProjectID", "ProjectName", true); ViewData["AreaList"] = PageTools.GetSelectList(tArea.GetList("").Tables[0], "AreaID", "AreaName", true); if (Request["ApprovalPersonnelName"] != null) { ViewData["ApprovalPersonnelName"] = Request["ApprovalPersonnelName"].ToString(); } else { ViewData["ApprovalPersonnelName"] = ""; } ViewBag._userName = CurrentUserInfo.UserName; eExpePlan.AreaID = CurrentUserInfo.AreaID; ViewBag.IsDisabled = (CurrentUserInfo.RoleID != 1) ? "true" : "false"; //权限判断 return(View(eExpePlan)); }
T_tb_ExpePlan tExpePlan = new T_tb_ExpePlan(); //实验计划管理 // // GET: /Laboratory/ public ActionResult TestReportList(E_tb_TestReport eTestReport) { ViewData["AreaList"] = PageTools.GetSelectList(tArea.GetList("").Tables[0], "AreaID", "AreaName", true); ViewBag._userName = CurrentUserInfo.UserName; return(View(eTestReport)); }