Split.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. @model EMIS.ViewModel.EducationManage.TrainingClassSplitView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Split";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/EducationManage/TrainingClassSplit.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  15. {
  16. <div class="p_title">
  17. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  18. 分班设置信息
  19. </div>
  20. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Split")</div>
  21. </div>
  22. <div class="search_list">
  23. <table cellpadding="0" cellspacing="0">
  24. <tr>
  25. <td style="width: 45%">
  26. <table cellpadding="0" cellspacing="0">
  27. <tr>
  28. <td>
  29. <table cellpadding="0" cellspacing="0" style="width: 100%;">
  30. <tr>
  31. <td>校区</td>
  32. <td width="10"></td>
  33. <td>
  34. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions
  35. {
  36. BindType = DropdownListBindType.SelectAll,
  37. ID = "ddlSchoolArea",
  38. Name = "ddlSchoolArea",
  39. OnSelect = "getStandardList"
  40. }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  41. </td>
  42. <td width="10"></td>
  43. <td>@EMIS.Utility.RSL.Get("College")</td>
  44. <td width="10"></td>
  45. <td>
  46. @Html.DropdownList(new DropdownListOptions
  47. {
  48. BindType = DropdownListBindType.SelectAll,
  49. ID = "ddlCollege",
  50. Name = "ddlCollege",
  51. ItemSourceUrl = Url.Content("~/College/CollegeDropdownListOnlyCollege?bindType=1"),
  52. OnSelect = "collegeChange",
  53. OnLoadSuccess = "collegeChange"
  54. }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  55. </td>
  56. </tr>
  57. <tr>
  58. <td>年级</td>
  59. <td></td>
  60. <td>
  61. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "getStandardList" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  62. </td>
  63. <td></td>
  64. <td>专业</td>
  65. <td></td>
  66. <td>
  67. @Html.ComboGrid(new ComboGridOptions
  68. {
  69. GridOptions = new DataGridOptions
  70. {
  71. Columns = new List<DataGridColumn>()
  72. {
  73. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center }
  74. },
  75. OnLoadSuccessFun = "standardChange",
  76. IsAutoLoad = false,
  77. DataSourceUrl = Url.Content("~/Grademajor/StandardList"),
  78. IsPagination = true
  79. },
  80. TextField = "StandardName",
  81. ValueField = "StandardID",
  82. Name = "cgbStandard",
  83. ID = "cgbStandard",
  84. OnSelect = "standardChange"
  85. }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  86. </td>
  87. </tr>
  88. <tr>
  89. <td>班级</td>
  90. <td></td>
  91. <td>
  92. @Html.ComboGrid(new ComboGridOptions
  93. {
  94. TextField = "Name",
  95. ValueField = "ClassmajorID",
  96. Name = "cgbClassmajor",
  97. ID = "cgbClassmajor",
  98. GridOptions = new DataGridOptions
  99. {
  100. Columns = new List<DataGridColumn>()
  101. {
  102. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  103. },
  104. IsAutoLoad = false,
  105. DataSourceUrl = Url.Content("~/Classmajor/List"),
  106. IsPagination = true
  107. }
  108. }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  109. </td>
  110. <td></td>
  111. <td>姓名</td>
  112. <td></td>
  113. <td>
  114. @Html.TextBox(new TextBoxOptions { ID = "txtName", Name = "txtName" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  115. </td>
  116. </tr>
  117. <tr>
  118. <td>证件号码</td>
  119. <td></td>
  120. <td>
  121. @Html.TextBox(new TextBoxOptions { ID = "txtIDNumber", Name = "txtIDNumber" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  122. </td>
  123. <td colspan="4">
  124. @Html.Button(new ButtonOptions { Text = "查询", OnClick = "reload()" })
  125. </td>
  126. </tr>
  127. </table>
  128. </td>
  129. </tr>
  130. </table>
  131. </td>
  132. <td style="width: 10%;">
  133. </td>
  134. <td style="width: 45%" valign="bottom">
  135. 新班级名称:
  136. @Html.TextBox(new TextBoxOptions { ID = "txtNewClassName", Name = "txtNewClassName", Value = Model.Name + "(1)" }, new Dictionary<string, string> { { "style", "width: 98%;" } })
  137. </td>
  138. </tr>
  139. <tr>
  140. <td valign="top">
  141. @Html.DataGrid(new DataGridOptions
  142. {
  143. Columns = new List<DataGridColumn>()
  144. {
  145. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  146. new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  147. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center },
  148. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  149. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center }
  150. },
  151. IsAutoLoad = true,
  152. DataSourceUrl = Url.Content("~/TrainingClass/StudentList?trainingClassID=" + Model.TrainingClassID.ToString()),
  153. ID = "dgStudentList",
  154. IsPagination = false
  155. })
  156. </td>
  157. <td align="center">
  158. @Html.Button(new ButtonOptions { Text = ">>", OnClick = "addStudent()" })
  159. @Html.Button(new ButtonOptions { Text = "<<", OnClick = "removeStudent()" })
  160. </td>
  161. <td valign="top">
  162. @Html.DataGrid(new DataGridOptions
  163. {
  164. Columns = new List<DataGridColumn>()
  165. {
  166. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  167. new BoundFieldColumn { FieldName="CollegeName", HeaderText=EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  168. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center },
  169. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  170. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center }
  171. },
  172. IsPostBack = true,
  173. IsAutoLoad = false,
  174. ID = "dgTargetStudentList",
  175. IsPagination = false
  176. })
  177. </td>
  178. </tr>
  179. </table>
  180. </div>
  181. }
  182. </div>