List.cshtml 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. }
  27. @section scripts{
  28. <script src="~/Scripts/Business/DQPSystem/SOCDetailGroup.js" type="text/javascript"></script>
  29. }
  30. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  31. @Html.Position()
  32. <div class="p_SearchTitle">
  33. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  34. 查询条件</div>
  35. </div>
  36. <form id="formQuery" method="post" action="@Url.Content("~/SOC/Excel")">
  37. @Html.PositionCondition()
  38. <div class="search_keyword">
  39. @Html.Hidden("SelectedID")
  40. <div class="search_input">
  41. <ul>
  42. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  43. <li class="sv">
  44. @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", "dgSOCDetailGroupList" } })
  45. </li>
  46. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  47. <li class="sv">
  48. @Html.ComboGrid(cgopCourse, new Dictionary<string, string> { { "data-condition", "dgSOCDetailGroupList" } })
  49. </li>
  50. </ul>
  51. </div>
  52. </div>
  53. </form>
  54. <div class="p_title">
  55. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  56. SOC任务分组</div>
  57. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  58. </div>
  59. @Html.PositionBatchModify()
  60. <div class="search_list">
  61. @Html.DataGrid(new DataGridOptions
  62. {
  63. Columns = new List<DataGridColumn>()
  64. {
  65. new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCDetailID" },
  66. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.1 },
  67. new BoundFieldColumn { FieldName="EducationMissionNameStr", HeaderText="任务班名", Align=AlignStyle.Center, Width=0.18 },
  68. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  69. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  70. new BoundFieldColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=0.1 },
  71. new BoundFieldColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=0.05 },
  72. new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=0.05},
  73. new BoundFieldColumn { FieldName="StudentCount", HeaderText="学生人数", Align=AlignStyle.Center, Width=0.05},
  74. new LinkButtonColumn { FieldName="GroupCount", HeaderText="分组数", Align=AlignStyle.Center, Width=0.05, Handle="GroupDetail" },
  75. },
  76. IsCheckOnSelect = true,
  77. DataSourceUrl = Url.Content("~/SOCDetailGroup/List"),
  78. ID = "dgSOCDetailGroupList",
  79. IsPagination = true,
  80. IsShowRowNumbers = true,
  81. IsSingleSelect = false,
  82. IsAutoHeight = false,
  83. })
  84. </div>
  85. </div>