List.cshtml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  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 cgopStaff = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "UserID",
  51. OnSelect = "reload",
  52. ID = "StaffDropdown",
  53. Name = "StaffDropdown",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. //new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  59. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Staff/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false,
  66. IsAutoLoad = true
  67. }
  68. };
  69. }
  70. @section scripts{
  71. <script src="~/Scripts/Business/DQPSystem/SOCDetail.js" type="text/javascript"></script>
  72. }
  73. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  74. @Html.Position()
  75. <div class="p_SearchTitle">
  76. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  77. 查询条件</div>
  78. </div>
  79. <form id="formQuery" method="post" action="@Url.Content("~/SOCDetail/Excel")">
  80. @Html.PositionCondition()
  81. <div class="search_keyword">
  82. @Html.Hidden("SelectedID")
  83. <div class="search_input">
  84. <ul>
  85. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  86. <li class="sv">
  87. @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", "dgSOCDetailList" } })
  88. </li>
  89. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  90. <li class="sv">
  91. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgSOCDetailList" } })
  92. </li>
  93. <li class="sn" style="padding-left: 5px;">开课院系所:</li>
  94. <li class="sv">
  95. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgSOCDetailList" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">授课教师:</li>
  98. <li class="sv">
  99. @Html.ComboGrid(cgopStaff, new Dictionary<string, string> { { "data-condition", "dgSOCDetailList" } })
  100. </li>
  101. </ul>
  102. </div>
  103. </div>
  104. </form>
  105. <div class="p_title">
  106. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  107. SOC明细</div>
  108. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  109. </div>
  110. @Html.PositionBatchModify()
  111. <div class="search_list">
  112. @Html.DataGrid(new DataGridOptions
  113. {
  114. Columns = new List<DataGridColumn>()
  115. {
  116. new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCDetailID" },
  117. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  118. new BoundFieldColumn { FieldName="EducationMissionNameStr", HeaderText="任务班名", Align=AlignStyle.Center, Width=0.2 },
  119. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  120. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  121. new BoundFieldColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center, Width=0.04 },
  122. new BoundFieldColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=0.1 },
  123. new BoundFieldColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=0.05 },
  124. new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=0.05 },
  125. new BoundFieldColumn { FieldName="IsGroupStr", HeaderText="是否分组", Align=AlignStyle.Center, Width=0.05 },
  126. new BoundFieldColumn { FieldName="StartTimeStr", HeaderText="开始上传时间", Align=AlignStyle.Center, Width=0.05 },
  127. new BoundFieldColumn { FieldName="EndTimeStr", HeaderText="截止上传时间", Align=AlignStyle.Center, Width=0.05 },
  128. },
  129. IsCheckOnSelect = true,
  130. DataSourceUrl = Url.Content("~/SOCDetail/List"),
  131. ID = "dgSOCDetailList",
  132. IsPagination = true,
  133. IsShowRowNumbers = true,
  134. IsSingleSelect = false
  135. })
  136. </div>
  137. </div>