List.cshtml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "CourseName",
  8. ValueField = "CoursematerialID",
  9. Name = "CoursematerialComboGrid",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. // new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center },
  15. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, Align=AlignStyle.Center }
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false
  22. }
  23. };
  24. }
  25. @section scripts{
  26. <script src="~/Scripts/Business/SchedulingManage/SchedulingSettings/CourseScheduleSetting.js"
  27. type="text/javascript"></script>
  28. }
  29. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  30. @Html.Position()
  31. <div class="p_SearchTitle">
  32. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  33. 查询条件</div>
  34. </div>
  35. <div class="search_keyword">
  36. <div class="search_input">
  37. <ul>
  38. <li class="sn" style="padding-left: 5px;">课程名称:</li>
  39. <li class="sv">
  40. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgCourseScheduleSettingList" } })
  41. </li>
  42. <li class="sn" style="padding-left: 5px;">课程级别:</li>
  43. <li class="sv">
  44. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseLevel, new DropdownListOptions { Name = "DictionaryCourseLevel", BindType = DropdownListBindType.SelectAll }, new Dictionary<string, string> { { "data-condition", "dgCourseScheduleSettingList" } })
  45. </li>
  46. <li class="sn" style="padding-left: 5px;">课程科类码:</li>
  47. <li class="sv">
  48. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseScience, new DropdownListOptions { Name = "DictionaryCourseScience", BindType = DropdownListBindType.SelectAll }, new Dictionary<string, string> { { "data-condition", "dgCourseScheduleSettingList" } })
  49. </li>
  50. <li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  51. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>
  52. </ul>
  53. </div>
  54. </div>
  55. <div class="p_title">
  56. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  57. 课程可排时间设置列表</div>
  58. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  59. </div>
  60. <div class="search_list">
  61. @Html.DataGrid(new DataGridOptions
  62. {
  63. Columns = new List<DataGridColumn>()
  64. {
  65. new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursematerialID" },
  66. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center , Handle="edit"},
  67. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
  68. new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center },
  69. new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类码", Align=AlignStyle.Center }
  70. },
  71. IsCheckOnSelect = true,
  72. DataSourceUrl = Url.Content("~/CourseScheduleSetting/List"),
  73. ID = "dgCourseScheduleSettingList",
  74. IsPagination = true,
  75. IsShowRowNumbers = true,
  76. IsSingleSelect = false
  77. })
  78. </div>
  79. </div>