List.cshtml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //学制
  6. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  7. {
  8. TextField = "LearnSystem",
  9. ValueField = "LearnSystem",
  10. ID = "DictionaryLearnSystem",
  11. Name = "DictionaryLearnSystem",
  12. OnSelect = "reload",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. IsShowHeader = false
  25. }
  26. };
  27. }
  28. @section scripts{
  29. <script src="~/Scripts/Business/EnrollManage/NewStudentManage/NewStudent.js" type="text/javascript"></script>
  30. <script type="text/javascript">
  31. var nonSelect = "@DropdownList.SELECT_ALL";
  32. </script>
  33. }
  34. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  35. @Html.Position()
  36. <div class="p_SearchTitle">
  37. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  38. </div>
  39. <form id="formQuery" method="post" action="@Url.Content("~/NewStudent/Excel")">
  40. @Html.PositionCondition()
  41. <div class="search_keyword">
  42. <div class="search_input">
  43. <ul>
  44. <li class="sn" style="padding-left: 5px;">年级:</li>
  45. <li class="sv">
  46. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  47. new ComboGridOptions
  48. {
  49. ID = "DictionaryGrade",
  50. Name = "DictionaryGrade",
  51. //SelectedValue = BaseExtensions.GetCurrentYearID(),
  52. OnSelect = "queryGrade"
  53. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentList" } })
  54. </li>
  55. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  56. <li class="sv">
  57. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions
  58. {
  59. ID = "DictionaryStandard",
  60. Name = "DictionaryStandard",
  61. OnSelect = "queryStandard",
  62. GridOptions = new DataGridOptions
  63. {
  64. Columns = new List<DataGridColumn>()
  65. {
  66. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  67. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  68. }
  69. }
  70. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentList" } })
  71. </li>
  72. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  73. <li class="sv">
  74. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  75. new ComboGridOptions
  76. {
  77. ID = "DictionaryEducation",
  78. Name = "DictionaryEducation",
  79. OnSelect = "reload"
  80. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentList" } })
  81. </li>
  82. </ul>
  83. <ul>
  84. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  85. <li class="sv">
  86. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  87. new ComboGridOptions
  88. {
  89. ID = "DictionaryLearningform",
  90. Name = "DictionaryLearningform",
  91. OnSelect = "reload"
  92. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentList" } })
  93. </li>
  94. <li class="sn" style="padding-left: 5px;">学制:</li>
  95. <li class="sv">
  96. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgNewStudentList" } })
  97. </li>
  98. <li class="sn" style="padding-left: 5px;color: red;">照片有无:</li>
  99. <li class="sv">
  100. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralExist, DropdownListBindType.SelectAll,
  101. new ComboGridOptions
  102. {
  103. ID = "IsPhotoUrlDropdown",
  104. Name = "IsPhotoUrlDropdown",
  105. OnSelect = "reload"
  106. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentList" } })
  107. </li>
  108. </ul>
  109. </div>
  110. </div>
  111. </form>
  112. <div class="p_title">
  113. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">新生名单列表</div>
  114. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  115. </div>
  116. @Html.PositionBatchModify()
  117. <div class="search_list">
  118. @Html.DataGrid(new DataGridOptions
  119. {
  120. Columns = new List<DataGridColumn>()
  121. {
  122. new CheckBoxFieldColumn{ HeaderText="NewStudentID", FieldName="NewStudentID" },
  123. new LinkButtonColumn { FieldName="ExamineeNum", HeaderText="考生号", Align=AlignStyle.Center, Handle="detail", Width=0.12 },
  124. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  125. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.03 },
  126. new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.OnlyYearMonthDay },
  127. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03 },
  128. new BoundFieldColumn { FieldName="SemesterName", HeaderText="学期", Align=AlignStyle.Center, OrderFieldName="SemesterID", Width=0.03 },
  129. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Width=0.05 },
  130. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.1 },
  131. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.05 },
  132. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.04 },
  133. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center,Width=0.03 },
  134. new BoundFieldColumn { FieldName="IDNumber", HeaderText="身份证号", Align=AlignStyle.Center, Width=0.12 },
  135. //new BoundFieldColumn { FieldName="EntranceDate", HeaderText="入学日期", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.OnlyYearMonthDay },
  136. new BoundFieldColumn { FieldName="Telephone", HeaderText="联系电话", Align=AlignStyle.Center, Width=0.08 },
  137. new BoundFieldColumn { FieldName="PhotoHasValueName", HeaderText="照片", Align=AlignStyle.Center, OrderFieldName="PhotoHasValue", Width=0.02, CustomFormatFun="SetRedColumn" },
  138. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=6 }
  139. },
  140. IsCheckOnSelect = true,
  141. DataSourceUrl = Url.Content("~/NewStudent/List"),
  142. ID = "dgNewStudentList",
  143. IsPagination = true,
  144. IsShowRowNumbers = true,
  145. IsSingleSelect = false
  146. })
  147. </div>
  148. </div>