StudentList.cshtml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions optCourse = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. OnSelect = "reload",
  10. ID = "cgbCourse",
  11. Name = "cgbCourse",
  12. SelectedIndex = 0,
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.12 },
  18. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  19. },
  20. IsAutoLoad = false,
  21. IsCheckOnSelect = true,
  22. OnLoadSuccessFun = "reload",
  23. DataSourceUrl = Url.Content("~/SOC/StudentCoursematerialList"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. }
  30. @section scripts{
  31. <script src="~/Scripts/Business/DQPSystem/SOCStudentList.js" type="text/javascript"></script>
  32. <script type="text/javascript">
  33. var nonSelect = "@DropdownList.SELECT_ALL";
  34. </script>
  35. }
  36. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  37. @Html.Position()
  38. <div class="p_SearchTitle">
  39. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  40. 查询条件
  41. </div>
  42. </div>
  43. <form id="formQuery" method="post">
  44. <div class="search_keyword">
  45. <div class="search_input">
  46. <ul>
  47. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  48. <li class="sv">
  49. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "ddlSchoolyear", ID = "ddlSchoolyear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "queryCourse", OnLoadSuccess = "queryCourse" }, new Dictionary<string, string> { { "data-condition", "dgSOCStudentList" } })
  50. </li>
  51. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  52. <li class="sv">
  53. @Html.ComboGrid(optCourse, new Dictionary<string, string> { { "data-condition", "dgSOCStudentList" } })
  54. </li>
  55. <li class="sn" style="padding-left: 5px;">状态:</li>
  56. <li class="sv">
  57. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.DQP_SOCDetailSubmitStatus, new DropdownListOptions { Name = "DictionarySubmitStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgSOCStudentList" } })
  58. </li>
  59. </ul>
  60. </div>
  61. </div>
  62. <div class="p_title">
  63. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  64. SOC列表
  65. </div>
  66. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  67. </div>
  68. </form>
  69. <div class="search_list">
  70. @Html.DataGrid(new DataGridOptions
  71. {
  72. Columns = new List<DataGridColumn>()
  73. {
  74. new CheckBoxFieldColumn{ HeaderText="", FieldName="SOCDetailID" },
  75. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  76. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  77. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  78. new LinkButtonColumn { FieldName="Name", HeaderText="成果名称", Align=AlignStyle.Center, Width=0.06, Handle="showDetail" },
  79. new BoundFieldColumn { FieldName="Credit", HeaderText="成果学分", Align=AlignStyle.Center, Width=0.05 },
  80. new BoundFieldColumn { FieldName="Weight", HeaderText="成果权重", Align=AlignStyle.Center, Width=0.05 },
  81. new BoundFieldColumn { FieldName="StartTime", HeaderText="开始上传时间", Align=AlignStyle.Center, Width=0.05, Formatter=Formatter.OnlyYearMonthDay },
  82. new BoundFieldColumn { FieldName="EndTime", HeaderText="截止上传时间", Align=AlignStyle.Center, Width=0.05, Formatter=Formatter.OnlyYearMonthDay },
  83. new LinkButtonColumn { FieldName="RecordStatusDesc", HeaderText="状态", Align=AlignStyle.Center, Width=0.05, Handle="remark" },
  84. new BoundFieldColumn { FieldName="Remark", HeaderText="修改意见", Align=AlignStyle.Center, Width=0.12, IsHidden = true },
  85. new LinkButtonColumn { HeaderText="", Align=AlignStyle.Center, Width=0.05, Handle="upload", Text="成果管理" }
  86. },
  87. IsPostBack = true,
  88. IsCheckOnSelect = true,
  89. DataSourceUrl = Url.Content("~/SOC/StudentList"),
  90. ID = "dgSOCStudentList",
  91. IsPagination = true,
  92. IsShowRowNumbers = true,
  93. IsSingleSelect = false
  94. })
  95. </div>
  96. </div>