List.cshtml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. string userName = ViewBag.UserName;
  6. ComboGridOptions cgoCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. Name = "cbgCollege",
  11. ID = "cbgCollege",
  12. OnSelect = "reload",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. }
  27. @section scripts{
  28. <script src="~/Scripts/Business/ScoreManage/ScoreParameterCollegeSetting.js" type="text/javascript"></script>
  29. <script type="text/javascript">
  30. var nonSelect = "@DropdownList.SELECT_ALL";
  31. </script>
  32. }
  33. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  34. @Html.Position()
  35. <div class="p_SearchTitle">
  36. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  37. 查询条件
  38. </div>
  39. </div>
  40. <form id="formQuery" method="post" action="@Url.Content("~/Score/Excel")">
  41. <div class="search_keyword">
  42. <div class="search_input">
  43. <ul>
  44. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  45. <li class="sv">
  46. @Html.ComboGrid(cgoCollege, new Dictionary<string, string> { { "data-condition", "dgScoreParameterCollegeSettingList" } })
  47. </li>
  48. <li class="sn" style="padding-left: 5px;">年级:</li>
  49. <li class="sv">
  50. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { Name = "ddlGradeYear", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgScoreParameterCollegeSettingList" } })
  51. </li>
  52. </ul>
  53. </div>
  54. </div>
  55. </form>
  56. <div class="p_title">
  57. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  58. 成绩个性化设置列表
  59. </div>
  60. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  61. </div>
  62. <div class="search_list">
  63. @Html.DataGrid(new DataGridOptions
  64. {
  65. Columns = new List<DataGridColumn>()
  66. {
  67. new CheckBoxFieldColumn{ HeaderText="", FieldName="ScoreParameterCollegeSettingID"},
  68. new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center ,Width=0.2},
  69. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center,Width=0.4 },
  70. new BoundFieldColumn { FieldName="ScoreTypeDesc", HeaderText="单独处理类型", Align=AlignStyle.Center, Width=0.15 },
  71. new LinkButtonColumn { Text="查看详细", HeaderText="", Align=AlignStyle.Center, Width=0.15, Handle="showDetail" }
  72. },
  73. IsCheckOnSelect = true,
  74. DataSourceUrl = Url.Content("~/ScoreParameterCollegeSetting/List"),
  75. ID = "dgScoreParameterCollegeSettingList",
  76. IsPagination = true,
  77. IsShowRowNumbers = true,
  78. IsSingleSelect = false
  79. })
  80. </div>
  81. </div>