DoubtList.cshtml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "DoubtList";
  5. //校区
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. ID = "CampusDropdown",
  11. Name = "CampusDropdown",
  12. OnSelect = "queryCampus",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Campus/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //院系所
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. ID = "CollegeDropdown",
  33. Name = "CollegeDropdown",
  34. OnSelect = "queryCollege",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. //学制
  50. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  51. {
  52. TextField = "LearnSystem",
  53. ValueField = "LearnSystem",
  54. ID = "DictionaryLearnSystem",
  55. Name = "DictionaryLearnSystem",
  56. OnSelect = "reload",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  62. },
  63. IsCheckOnSelect = true,
  64. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  65. IsPagination = true,
  66. IsShowRowNumbers = true,
  67. IsSingleSelect = false,
  68. IsShowHeader = false
  69. }
  70. };
  71. }
  72. @section scripts{
  73. <script src="~/Scripts/Business/EnrollManage/NewStudentManage/NewStudentEnterDoubt.js" type="text/javascript"></script>
  74. <script type="text/javascript">
  75. var nonSelect = "@DropdownList.SELECT_ALL";
  76. </script>
  77. }
  78. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  79. <div class="p_SearchTitle">
  80. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
  81. </div>
  82. <form id="formQuery" method="post" action="@Url.Content("~/NewStudentEnter/Excel_NewStudentEnterDoubt")">
  83. @Html.PositionCondition("NewStudentDoubt")
  84. <div class="search_keyword">
  85. <div class="search_input">
  86. <ul>
  87. <li class="sn">@EMIS.Utility.RSL.Get("Campus"):</li>
  88. <li class="sv">
  89. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterDoubtList" } })
  90. </li>
  91. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  92. <li class="sv">
  93. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterDoubtList" } })
  94. </li>
  95. <li class="sn" style="padding-left: 5px;">年级:</li>
  96. <li class="sv">
  97. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll,
  98. new ComboGridOptions
  99. {
  100. ID = "DictionaryGrade",
  101. Name = "DictionaryGrade",
  102. //SelectedValue = BaseExtensions.GetCurrentYearID(),
  103. OnSelect = "queryGrade"
  104. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterDoubtList" } })
  105. </li>
  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
  109. {
  110. ID = "DictionaryStandard",
  111. Name = "DictionaryStandard",
  112. OnSelect = "queryStandard",
  113. GridOptions = new DataGridOptions
  114. {
  115. Columns = new List<DataGridColumn>()
  116. {
  117. new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  118. new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  119. }
  120. }
  121. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterDoubtList" } })
  122. </li>
  123. </ul>
  124. <ul>
  125. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  126. <li class="sv">
  127. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Education, DropdownListBindType.SelectAll,
  128. new ComboGridOptions
  129. {
  130. ID = "DictionaryEducation",
  131. Name = "DictionaryEducation",
  132. OnSelect = "reload"
  133. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterDoubtList" } })
  134. </li>
  135. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  136. <li class="sv">
  137. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Learningform, DropdownListBindType.SelectAll,
  138. new ComboGridOptions
  139. {
  140. ID = "DictionaryLearningform",
  141. Name = "DictionaryLearningform",
  142. OnSelect = "reload"
  143. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterDoubtList" } })
  144. </li>
  145. <li class="sn" style="padding-left: 5px;">学制:</li>
  146. <li class="sv">
  147. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterDoubtList" } })
  148. </li>
  149. <li class="sn" style="padding-left: 5px;color: red;">照片有无:</li>
  150. <li class="sv">
  151. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralExist, DropdownListBindType.SelectAll,
  152. new ComboGridOptions
  153. {
  154. ID = "IsPhotoUrlDropdown",
  155. Name = "IsPhotoUrlDropdown",
  156. OnSelect = "reload"
  157. }, new Dictionary<string, string> { { "data-condition", "dgNewStudentEnterDoubtList" } })
  158. </li>
  159. </ul>
  160. </div>
  161. </div>
  162. </form>
  163. <div class="p_title">
  164. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;"></div>
  165. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("DoubtList")</div>
  166. </div>
  167. <div class="search_list">
  168. <table cellpadding="0" cellspacing="0" id="doubtlisttable">
  169. <tr>
  170. <td>
  171. @Html.DataGrid(new DataGridOptions
  172. {
  173. Columns = new List<DataGridColumn>()
  174. {
  175. new CheckBoxFieldColumn{ HeaderText="NewStudentID", FieldName="NewStudentID" },
  176. new BoundFieldColumn { FieldName="ExamineeNum", HeaderText="考生号", Align=AlignStyle.Center, Width=0.1 },
  177. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  178. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, OrderFieldName="SexID", Width=0.03 },
  179. //new BoundFieldColumn { FieldName="BirthDate", HeaderText="出生日期", Align=AlignStyle.Center, Width=0.08, Formatter= Formatter.OnlyYearMonthDay },
  180. new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03 },
  181. new BoundFieldColumn { FieldName="SemesterName", HeaderText="学期", Align=AlignStyle.Center, OrderFieldName="SemesterID", Width=0.03 },
  182. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, OrderFieldName="StandardCode", Width=0.05 },
  183. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, OrderFieldName="StandardName", Width=0.06, OverflowLength=6 },
  184. new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, OrderFieldName="EducationID", Width=0.04, OverflowLength=4 },
  185. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, OrderFieldName="LearningformID", Width=0.04 },
  186. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center,Width=0.02 },
  187. //new BoundFieldColumn { FieldName="IDNumber", HeaderText="身份证号", Align=AlignStyle.Center, Width=0.1 },
  188. //new BoundFieldColumn { FieldName="EntranceDate", HeaderText="入学日期", Align=AlignStyle.Center, Width=0.08, Formatter= Formatter.OnlyYearMonthDay },
  189. //new BoundFieldColumn { FieldName="Telephone", HeaderText="联系电话", Align=AlignStyle.Center, Width=0.1 },
  190. new BoundFieldColumn { FieldName="PhotoHasValueName", HeaderText="照片", Align=AlignStyle.Center, OrderFieldName="PhotoHasValue", Width=0.02, CustomFormatFun="SetRedColumn" },
  191. new BoundFieldColumn { FieldName="IsDoubtName", HeaderText="标识", Align=AlignStyle.Center, OrderFieldName="IsDoubt", Width=0.03, CustomFormatFun="SetRedColumn" },
  192. //new BoundFieldColumn { FieldName="CollegeNo", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
  193. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08, OverflowLength=8 }
  194. },
  195. CustomerRowStyleFun = "SetRowBackgroundGrid",
  196. MaxHeight = 310,
  197. IsCheckOnSelect = true,
  198. DataSourceUrl = Url.Content("~/NewStudentEnter/NewStudentEnterDoubtList"),
  199. ID = "dgNewStudentEnterDoubtList",
  200. IsPagination = true,
  201. IsShowRowNumbers = true,
  202. IsSingleSelect = false,
  203. })
  204. </td>
  205. </tr>
  206. </table>
  207. </div>
  208. </div>