SOCList.cshtml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "SOCList";
  5. ComboGridOptions cgopCourse = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. Name = "CoursematerialIDDropdownGridBo",
  10. ID = "CoursematerialIDDropdownGridBo",
  11. OnSelect = "reload",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions cgopCollege = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "CollegeID",
  30. Name = "CollegeComboGrid",
  31. ID = "CollegeComboGrid",
  32. OnSelect = "reload",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. //ComboGridOptions cgopEducationMission = new ComboGridOptions
  48. //{
  49. // TextField = "ClassName",
  50. // ValueField = "EducationMissionID",
  51. // Name = "EducationMissionGrid",
  52. // ID = "EducationMissionGrid",
  53. // OnSelect = "reload",
  54. // GridOptions = new DataGridOptions
  55. // {
  56. // Columns = new List<DataGridColumn>()
  57. // {
  58. // // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  59. // new BoundFieldColumn { FieldName="ClassName", HeaderText="任务班名", Align=AlignStyle.Center,Width = 0.2 }
  60. // },
  61. // IsCheckOnSelect = true,
  62. // DataSourceUrl = Url.Content("~/SOC/EducationMissionList"),
  63. // IsPagination = true,
  64. // IsShowRowNumbers = true,
  65. // IsSingleSelect = false
  66. // }
  67. //};
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/DQPSystem/SOCList.js" type="text/javascript"></script>
  71. }
  72. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  73. @Html.Position()
  74. <div class="p_SearchTitle">
  75. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  76. 查询条件</div>
  77. </div>
  78. <form id="formQuery" method="post" action="@Url.Content("~/SOC/Excel")">
  79. @Html.PositionCondition()
  80. <div class="search_keyword">
  81. @Html.Hidden("SelectedID")
  82. <div class="search_input">
  83. <ul>
  84. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  85. <li class="sv">
  86. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "reload", OnLoadSuccess = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgSOCList" } })
  87. </li>
  88. </ul>
  89. </div>
  90. </div>
  91. </form>
  92. <div class="p_title">
  93. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  94. 课程SOC</div>
  95. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("SOCList")</div>
  96. </div>
  97. @Html.PositionBatchModify()
  98. <div class="search_list">
  99. @Html.DataGrid(new DataGridOptions
  100. {
  101. Columns = new List<DataGridColumn>()
  102. {
  103. new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCID" },
  104. new BoundFieldColumn { FieldName="CoursematerialID", HeaderText="课程ID", Align=AlignStyle.Center, Width=0.1, IsHidden = true },
  105. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  106. new BoundFieldColumn { FieldName="EducationMissionNameStr", HeaderText="任务班名", Align=AlignStyle.Center, Width=0.2 },
  107. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  108. new LinkButtonColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, Handle = "socDetail" },
  109. new BoundFieldColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center, Width=0.03 },
  110. new BoundFieldColumn { FieldName="SOCSetting", HeaderText="SOC设置", Align=AlignStyle.Center, Width=0.04 },
  111. },
  112. IsCheckOnSelect = true,
  113. DataSourceUrl = Url.Content("~/SOCDetailScore/SOCList"),
  114. ID = "dgSOCList",
  115. IsPagination = true,
  116. IsShowRowNumbers = true,
  117. IsSingleSelect = false
  118. })
  119. </div>
  120. </div>