AssignCollegeBatchAdd.cshtml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. @model EMIS.ViewModel.EnrollManage.NewStudentManage.NewStudentView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "AssignCollegeBatchAdd";
  6. //院系所
  7. ComboGridOptions cgopCollege = new ComboGridOptions
  8. {
  9. TextField = "Name",
  10. ValueField = "CollegeID",
  11. OnSelect = "queryCollege",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  18. },
  19. OnLoadSuccessFun = "reload",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //学制
  28. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  29. {
  30. TextField = "LearnSystem",
  31. ValueField = "LearnSystem",
  32. ID = "DictionaryLearnSystem",
  33. Name = "DictionaryLearnSystem",
  34. OnSelect = "reload",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false,
  46. IsShowHeader = false
  47. }
  48. };
  49. }
  50. @section scripts{
  51. <script src="~/Scripts/Business/EnrollManage/NewStudentManage/AssignCollegeBatchAdd.js" type="text/javascript"></script>
  52. <script type="text/javascript">
  53. var nonSelect = "@DropdownList.SELECT_ALL";
  54. var college = '@EMIS.Utility.RSL.Get("College")';
  55. </script>
  56. }
  57. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  58. @using (Ajax.BeginForm(new AjaxOptions
  59. {
  60. //分配成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  61. OnSuccess = "formSuccessReloadNoClose",
  62. OnBegin = "EMISFunction.FormSubmit",
  63. OnComplete = "EMISFunction.FormComplete"
  64. }))
  65. {
  66. <div class="p_SearchTitle">
  67. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  68. </div>
  69. @Html.PositionCondition("UnAssignNewStudent")
  70. <div class="search_keyword">
  71. <div class="search_input">
  72. <ul>
  73. <li class="sn" style="padding-left: 5px;">年级:</li>
  74. <li class="sv">
  75. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  76. new ComboGridOptions
  77. {
  78. ID = "DictionaryGrade",
  79. Name = "DictionaryGrade",
  80. //SelectedValue = BaseExtensions.GetCurrentYearID(),
  81. OnSelect = "queryGrade"
  82. }, new Dictionary<string, string> { { "data-condition", "dgUnAssignNewStudentList" } })
  83. </li>
  84. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  85. <li class="sv">
  86. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions
  87. {
  88. ID = "DictionaryStandard",
  89. Name = "DictionaryStandard",
  90. OnSelect = "queryStandard",
  91. GridOptions = new DataGridOptions
  92. {
  93. Columns = new List<DataGridColumn>()
  94. {
  95. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 },
  96. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 }
  97. }
  98. }
  99. }, new Dictionary<string, string> { { "data-condition", "dgUnAssignNewStudentList" } })
  100. </li>
  101. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  102. <li class="sv">
  103. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  104. new ComboGridOptions
  105. {
  106. ID = "DictionaryEducation",
  107. Name = "DictionaryEducation",
  108. OnSelect = "reload"
  109. }, new Dictionary<string, string> { { "data-condition", "dgUnAssignNewStudentList" } })
  110. </li>
  111. </ul>
  112. <ul>
  113. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  114. <li class="sv">
  115. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  116. new ComboGridOptions
  117. {
  118. ID = "DictionaryLearningform",
  119. Name = "DictionaryLearningform",
  120. OnSelect = "reload"
  121. }, new Dictionary<string, string> { { "data-condition", "dgUnAssignNewStudentList" } })
  122. </li>
  123. <li class="sn" style="padding-left: 5px;">学制:</li>
  124. <li class="sv">
  125. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgUnAssignNewStudentList" } })
  126. </li>
  127. <li class="sn" style="padding-left: 5px;color:red;">@EMIS.Utility.RSL.Get("College"):</li>
  128. <li class="sv">
  129. @Html.ComboGridFor(x => x.CollegeID, cgopCollege, new Dictionary<string, string> { { "data-condition", "dgUnAssignNewStudentList" } })
  130. </li>
  131. </ul>
  132. </div>
  133. </div>
  134. <div class="p_title">
  135. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">新生名单列表</div>
  136. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Assign")</div>
  137. </div>
  138. <div class="search_list">
  139. @Html.Hidden("newStudentIDs")
  140. <table cellpadding="0" cellspacing="0" id="unassignlisttable">
  141. <tr>
  142. <td>
  143. @Html.DataGrid(new DataGridOptions
  144. {
  145. Columns = new List<DataGridColumn>()
  146. {
  147. new CheckBoxFieldColumn{ HeaderText="NewStudentID", FieldName="NewStudentID" },
  148. new BoundFieldColumn { FieldName="ExamineeNum", HeaderText="考生号", Align=AlignStyle.Center, Width=0.12 },
  149. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  150. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.03 },
  151. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03 },
  152. new BoundFieldColumn { FieldName="SemesterName", HeaderText="学期", Align=AlignStyle.Center, OrderFieldName="SemesterID", Width=0.03 },
  153. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Width=0.06 },
  154. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.1 },
  155. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.05 },
  156. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.05 },
  157. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  158. //new BoundFieldColumn { FieldName="IDNumber", HeaderText="身份证号", Align=AlignStyle.Center, Width=0.12 }
  159. //new BoundFieldColumn { FieldName="Telephone", HeaderText="联系电话", Align=AlignStyle.Center, Width=0.08 }
  160. new BoundFieldColumn { FieldName="PhotoHasValueName", HeaderText="照片", Align=AlignStyle.Center, OrderFieldName="PhotoHasValue", Width=0.02, CustomFormatFun="SetRedColumn" },
  161. new BoundFieldColumn { FieldName="AssignStatusName", HeaderText="分配状态", Align=AlignStyle.Center, Width=0.05, CustomFormatFun="SetRedColumn" }
  162. },
  163. IsPostBack = true,
  164. IsAutoLoad = false,
  165. IsCheckOnSelect = true,
  166. DataSourceUrl = Url.Content("~/NewStudentCollege/UnAssignCollegeList"),
  167. ID = "dgUnAssignNewStudentList",
  168. IsPagination = true,
  169. IsShowRowNumbers = true,
  170. IsSingleSelect = false,
  171. })
  172. </td>
  173. </tr>
  174. </table>
  175. </div>
  176. }
  177. </div>