List.cshtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgopCourse = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. Name = "CoursematerialIDDropdownGridBo",
  10. ID = "CoursematerialIDDropdownGridBo",
  11. OnSelect = "reload",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  27. {
  28. TextField = "LearnSystem",
  29. ValueField = "LearnSystem",
  30. OnSelect = "reload",
  31. Name = "DictionaryLearnSystem",
  32. ID = "DictionaryLearnSystem",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false,
  44. IsShowHeader = false
  45. }
  46. };
  47. ComboGridOptions cgopfacultymajorID = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "FacultymajorID",
  51. OnSelect = "reload",
  52. Name = "FacultymajorComboGrid",
  53. ID = "FacultymajorComboGrid",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. new BoundFieldColumn { FieldName="Code", HeaderText="院系专业编号", Align=AlignStyle.Center },
  59. new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Facultymajor/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. IsShowHeader = false
  67. }
  68. };
  69. ComboGridOptions cgopdepartment = new ComboGridOptions
  70. {
  71. TextField = "Name",
  72. ValueField = "DepartmentID",
  73. Name = "DepartmentComboGrid",
  74. ID = "DepartmentComboGrid",
  75. OnSelect = "reload",
  76. GridOptions = new DataGridOptions
  77. {
  78. Columns = new List<DataGridColumn>()
  79. {
  80. // new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center },
  81. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center }
  82. },
  83. IsCheckOnSelect = true,
  84. DataSourceUrl = Url.Content("~/Department/List"),
  85. IsPagination = true,
  86. IsShowRowNumbers = true,
  87. IsSingleSelect = false
  88. }
  89. };
  90. }
  91. @section scripts{
  92. <script src="~/Scripts/Business/DQPSystem/SOCTemplate.js" type="text/javascript"></script>
  93. }
  94. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  95. @Html.Position()
  96. <div class="p_SearchTitle">
  97. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  98. 查询条件</div>
  99. </div>
  100. <form id="formQuery" method="post" action="@Url.Content("~/SOCTemplate/Excel")">
  101. @Html.PositionCondition()
  102. <div class="search_keyword">
  103. @Html.Hidden("SelectedID")
  104. <div class="search_input">
  105. <ul>
  106. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  107. <li class="sv">
  108. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSOCTemplateList" } })
  109. </li>
  110. <li class="sn" style="padding-left: 5px;">院系专业:</li>
  111. <li class="sv">
  112. @Html.ComboGrid(cgopfacultymajorID, new Dictionary<string, string> { { "data-condition", "dgSOCTemplateList" } })
  113. </li>
  114. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("EducationID"):</li>
  115. <li class="sv">
  116. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSOCTemplateList" } })
  117. </li>
  118. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  119. <li class="sv">
  120. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { ID = "DictionaryLearningform", Name = "DictionaryLearningform", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSOCTemplateList" } })
  121. </li>
  122. </ul>
  123. <ul>
  124. <li class="sn" style="padding-left: 5px;">学制:</li>
  125. <li class="sv">
  126. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgSOCTemplateList" } })
  127. </li>
  128. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  129. <li class="sv">
  130. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgSOCTemplateList" } })
  131. </li>
  132. <li class="sn" style="padding-left: 5px;">开课学年:</li>
  133. <li class="sv">
  134. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, new DropdownListOptions { Name = "DictionarySchoolYearNum", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSOCTemplateList" } })
  135. </li>
  136. <li class="sn" style="padding-left: 5px;">学期:</li>
  137. <li class="sv">
  138. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Semester, new DropdownListOptions { Name = "DictionarySchoolcode", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSOCTemplateList" } })
  139. </li>
  140. </ul>
  141. <ul>
  142. <li class="sn" style="padding-left: 5px;">教研室:</li>
  143. <li class="sv">
  144. @Html.ComboGrid(cgopdepartment, new Dictionary<string, string> { { "data-condition", "dgSOCTemplateList" } })
  145. </li>
  146. <li class="sn" style="padding-left: 5px;">是否启用:</li>
  147. <li class="sv">
  148. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes, Name = "DictionaryIsEnable", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSOCTemplateList" } })
  149. </li>
  150. </ul>
  151. </div>
  152. </div>
  153. </form>
  154. <div class="p_title">
  155. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  156. 课程SOC设置</div>
  157. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  158. </div>
  159. @Html.PositionBatchModify()
  160. <div class="search_list">
  161. @Html.DataGrid(new DataGridOptions
  162. {
  163. Columns = new List<DataGridColumn>()
  164. {
  165. new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCTemplateID" },
  166. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.05 },
  167. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  168. new BoundFieldColumn { FieldName="FacultymajorName", HeaderText="院系专业", Align=AlignStyle.Center, Width=0.1 },
  169. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  170. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  171. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  172. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  173. new LinkButtonColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, Handle = "detail" },
  174. new BoundFieldColumn { FieldName="Credit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.03 },
  175. new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开课年级", Align=AlignStyle.Center, Width=0.04 },
  176. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center, Width=0.03 },
  177. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.08 },
  178. new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.04 },
  179. new BoundFieldColumn { FieldName="SOCCount", HeaderText="SOC个数", Align=AlignStyle.Center, Width=0.04 },
  180. },
  181. IsCheckOnSelect = true,
  182. DataSourceUrl = Url.Content("~/SOCTemplate/List"),
  183. ID = "dgSOCTemplateList",
  184. IsPagination = true,
  185. IsShowRowNumbers = true,
  186. IsSingleSelect = false
  187. })
  188. </div>
  189. </div>