Parcourir la source

成绩认定页面查询条件--->考试项目支持模糊查询

lx il y a 2 ans
Parent
commit
06439e53ce

+ 1 - 1
EMIS.Web/Controllers/ScoreManage/ProjectScoreController.cs

@@ -37,7 +37,7 @@ namespace EMIS.Web.Controllers.ScoreManage
             ConfiguretView conditionView = ConfiguretExtensions.GetConfiguretermsView(pararms);
             var schoolyearID = pararms.getExtraGuid("ddlSchoolyear");
             var examinationTypeID = pararms.getExtraGuid("ddlExaminationType");
-            var examinationProjectID = pararms.getExtraGuid("ddlExaminationProject");
+            var examinationProjectID = pararms.getExtraGuid("cgbExaminationProject");
             var schoolAreaID = pararms.getExtraInt("ddlSchoolArea") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("ddlSchoolArea");
             var collegeID = pararms.getExtraGuid("ddlCollege");
             var yearID = pararms.getExtraInt("ddlYear") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("ddlYear");

+ 7 - 4
EMIS.Web/Scripts/Business/ScoreManage/ProjectScore.js

@@ -4,12 +4,15 @@
 
 function examinationTypeChange() {
     try {
-        var examinationProjectUrl = CMS_SystemConfig.VirtualDirectoryPath + '/ChargeProject/ProjectDropdownList?bindType=0';
+        var jsonString = "";
+        var parameterString = "";
         var examinationTypeID = $("#ddlExaminationType").combobox('getValue');
-        if (examinationTypeID != nonSelect) {
-            examinationProjectUrl += "&examinationTypeID=" + examinationTypeID;
+        if (examinationTypeID != nonSelect && examinationTypeID != "") parameterString += "cgExaminationType|*|" + examinationTypeID + "|@|";
+        if (parameterString != "") {
+            jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
+            $("#cgbExaminationProject").combogridX("reload", eval(jsonString));
         }
-        $("#ddlExaminationProject").combobox('reload', examinationProjectUrl);
+        reload();
     } catch (e) {
     }
 }

+ 17 - 6
EMIS.Web/Views/ProjectScore/List.cshtml

@@ -45,15 +45,26 @@
                     </li>
                     <li class="sn" style="padding-left: 5px;">项目名称:</li>
                     <li class="sv">
-                        @Html.DropdownList(new DropdownListOptions
+                        @Html.ComboGrid(new ComboGridOptions
                    {
-                       BindType = DropdownListBindType.SelectAll,
-                       ID = "ddlExaminationProject",
-                       Name = "ddlExaminationProject",
+                       TextField = "Name",
+                       ValueField = "ExaminationProjectID",
+                       Name = "cgbExaminationProject",
+                       ID = "cgbExaminationProject",
                        OnSelect = "reload",
-                       OnLoadSuccess = "examinationProjectLoaded"
+                       GridOptions = new DataGridOptions
+                       {
+                           Columns = new List<DataGridColumn>()
+                      {
+                          new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center }
+                      },
+                           OnLoadSuccessFun = "examinationProjectLoaded",
+                           IsAutoLoad = false,
+                           DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
+                           IsPagination = true
+                       }
                    },
-                            new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
+              new Dictionary<string, string> { { "data-condition", "dgProjectScoreList" } })
                     </li>
                     <li class="sn" style="padding-left: 5px;">校区:</li>
                     <li class="sv">

+ 8 - 6
LIOT.Exam.sln

@@ -1,7 +1,7 @@
 
 Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.28307.1259
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.32126.315
 MinimumVisualStudioVersion = 10.0.40219.1
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EMIS.Entities", "EMIS.Entities\EMIS.Entities.csproj", "{37E0EAA8-4A6E-46C4-86EF-0745373B1080}"
 EndProject
@@ -36,6 +36,8 @@ EndProject
 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "数据库设计", "数据库设计", "{C6330AD7-52B8-4C0D-8E34-85DF36806F51}"
 	ProjectSection(SolutionItems) = preProject
 		数据库设计\岭南职业技术学院考试系统.pdm = 数据库设计\岭南职业技术学院考试系统.pdm
+		数据库设计\已更新脚本.txt = 数据库设计\已更新脚本.txt
+		数据库设计\待更新脚本.txt = 数据库设计\待更新脚本.txt
 	EndProjectSection
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EMIS.Entities.DataCenter", "EMIS.Entities.DataCenter\EMIS.Entities.DataCenter.csproj", "{7E254A1D-2061-487D-AF0C-DD9E90968956}"
@@ -65,10 +67,6 @@ EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bowin.Web.Controls.Mvc", "Framework\Bowin.Web.Controls.Mvc\Bowin.Web.Controls.Mvc.csproj", "{45FCE04F-75CF-4B22-AF0A-BD0EBE109617}"
 EndProject
 Global
-	GlobalSection(SubversionScc) = preSolution
-		Svn-Managed = True
-		Manager = AnkhSVN - Subversion Support for Visual Studio
-	EndGlobalSection
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
 		Debug|x86 = Debug|x86
@@ -371,4 +369,8 @@ Global
 	GlobalSection(ExtensibilityGlobals) = postSolution
 		SolutionGuid = {88FF1BCC-6D09-4FAC-9A7D-FDE1869A78AC}
 	EndGlobalSection
+	GlobalSection(SubversionScc) = preSolution
+		Svn-Managed = True
+		Manager = AnkhSVN - Subversion Support for Visual Studio
+	EndGlobalSection
 EndGlobal

+ 0 - 0
数据库设计/已更新脚本.txt


+ 0 - 0
数据库设计/待更新脚本.txt