List.cshtml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. //课程信息
  6. ComboGridOptions cgopCourse = new ComboGridOptions
  7. {
  8. TextField = "CourseName",
  9. ValueField = "CoursematerialID",
  10. ID = "CoursematerialComboGrid",
  11. Name = "CoursematerialComboGrid",
  12. OnSelect = "RetakePlanStudentApply_Refresh",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  18. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. }
  28. @section scripts{
  29. <script src="~/Scripts/Business/RetakeManage/General/RetakePlanStudentApply.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;">
  38. 查询条件
  39. </div>
  40. </div>
  41. <form id="formQuery" method="post" action="@Url.Content("~/RetakePlanStudentApply/Excel")">
  42. @Html.PositionCondition()
  43. <div class="search_keyword">
  44. <div class="search_input">
  45. <ul>
  46. <li class="sn" style="padding-left: 5px;">重修学年学期:</li>
  47. <li class="sv">
  48. @Html.DropdownList(new DropdownListOptions
  49. {
  50. ID = "ddlSchoolYear",
  51. Name = "ddlSchoolYear",
  52. BindType = DropdownListBindType.None,
  53. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  54. ItemSourceUrl = Url.Content("~/SchoolYear/DropDownAfterCurrent"),
  55. OnSelect = "RetakePlanStudentApply_Refresh",
  56. OnLoadSuccess = "reload"
  57. }, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentApplyList" } })
  58. </li>
  59. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  60. <li class="sv">
  61. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentApplyList" } })
  62. </li>
  63. <li class="sn" style="padding-left: 5px;">报名状态:</li>
  64. <li class="sv">
  65. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  66. {
  67. ID = "DictionaryGeneralPurpose",
  68. Name = "DictionaryGeneralPurpose",
  69. BindType = DropdownListBindType.SelectAll,
  70. OnSelect = "reload"
  71. },
  72. new Dictionary<string, string> { { "data-condition", "dgRetakePlanStudentApplyList" } })
  73. </li>
  74. </ul>
  75. <ul>
  76. <li class="sn" style="padding-left: 2px;color: red;font-weight: bold; width:auto;">重修报名时间:</li>
  77. <li class="sv" style="line-height:30px;color: red;font-weight: bold;">
  78. <label id="labText"></label>
  79. </li>
  80. </ul>
  81. </div>
  82. </div>
  83. </form>
  84. <div class="p_title">
  85. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  86. 进入报名列表</div>
  87. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  88. </div>
  89. <div class="search_list">
  90. @Html.DataGrid(new DataGridOptions
  91. {
  92. Columns = new List<DataGridColumn>()
  93. {
  94. new CheckBoxFieldColumn{ FieldName="RetakePlanStudentID", HeaderText="", IsHidden=true },
  95. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="重修学年学期", Align=AlignStyle.Center, Width=0.08 },
  96. //new BoundFieldColumn { FieldName="ClassName", HeaderText="重修班级名称", Align=AlignStyle.Center, Width = 0.12 },
  97. //new BoundFieldColumn { FieldName="RetakeTypeName", HeaderText="重修类型", Align=AlignStyle.Center, Width = 0.04 },
  98. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  99. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  100. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
  101. new BoundFieldColumn { FieldName="Credit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
  102. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03 },
  103. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.05 },
  104. new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.1 },
  105. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室", Align=AlignStyle.Center, Width=0.05 },
  106. new BoundFieldColumn { FieldName="TeacherName", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.06 },
  107. //new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.08 },
  108. new BoundFieldColumn { FieldName="CourseCollegeName", HeaderText="开课" + @EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  109. //new BoundFieldColumn { FieldName="PeopleNumlower", HeaderText="人数下限", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedtColumn" },
  110. new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width= 0.04, CustomFormatFun="SetRedtColumn" },
  111. new BoundFieldColumn { FieldName="ApplyNumber", HeaderText="已报人数", Align=AlignStyle.Center, Width= 0.04, CustomFormatFun="SetRedtColumn" },
  112. new BoundFieldColumn { FieldName="ApplyStatusName", HeaderText="报名状态", Align=AlignStyle.Center, Width= 0.04, CustomFormatFun="SetRedtColumn" },
  113. new LinkButtonColumn { FieldName="OperateText", HeaderText="操作状态", Align=AlignStyle.Center, Handle="Click", Width=0.05, EnableFieldName="CanSelect" }
  114. },
  115. IsAutoLoad = false,
  116. IsCheckOnSelect = true,
  117. DataSourceUrl = Url.Content("~/RetakePlanStudentApply/List"),
  118. ID = "dgRetakePlanStudentApplyList",
  119. IsPagination = false,
  120. IsShowRowNumbers = true,
  121. IsSingleSelect = false
  122. })
  123. </div>
  124. </div>