CoursematerialSelect.cshtml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "CoursematerialSelect";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/Common/CoursematerialSelect.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. <div class="p_title">
  14. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  15. 课程列表</div>
  16. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  17. <div class="current_navbar toolbar">
  18. <div class="func_info">
  19. <a class="easyui-linkbutton" href="javascript:Coursematerial_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  20. onfocus="this.blur()">选中</a>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. <form id="formQuery" method="post" action="@Url.Content("~/Coursematerial/Excel")">
  26. @Html.PositionCondition("CoursematerialSelect", null)
  27. <div class="search_keyword">
  28. <div class="search_input">
  29. <ul>
  30. <li class="sn" style="padding-left: 5px;">课程科类:</li>
  31. <li class="sv">
  32. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseScience, new DropdownListOptions { Name = "DictionaryCourseScience", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgCoursematerialList" } })
  33. </li>
  34. <li class="sn" style="padding-left: 5px;">课程级别:</li>
  35. <li class="sv">
  36. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseLevel, new DropdownListOptions { Name = "DictionaryCourseLevel", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgCoursematerialList" } })
  37. </li>
  38. </ul>
  39. <ul>
  40. <li class="sn" style="padding-left: 5px;">是否启用:</li>
  41. <li class="sv">
  42. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { Name = "DictionaryIsEnable", BindType = DropdownListBindType.SelectAll, OnSelect = "reload", SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes, OnLoadSuccess = "reload" }, new Dictionary<string, string> { { "data-condition", "dgCoursematerialList" } })
  43. </li>
  44. </ul>
  45. </div>
  46. </div>
  47. </form>
  48. <div class="p_title">
  49. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  50. 课程资料列表</div>
  51. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;"></div>
  52. </div>
  53. <div class="search_list">
  54. @Html.DataGrid(new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursematerialID" },
  59. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center , Handle="edit", Width=0.1 },
  60. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=36, Width=0.3 },
  61. new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center, Width=0.1 },
  62. new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类码", Align=AlignStyle.Center, Width=0.2 },
  63. new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.08 }
  64. },
  65. IsCheckOnSelect = true,
  66. DataSourceUrl = Url.Content("~/Coursematerial/List"),
  67. ID = "dgCoursematerialList",
  68. IsPagination = true,
  69. IsShowRowNumbers = true,
  70. IsSingleSelect = false
  71. })
  72. </div>
  73. </div>