BatchAdd.cshtml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @model EMIS.ViewModel.CultureplanManage.CourseMaterial.ClubCourseView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "BatchAdd";
  7. }
  8. @section scripts{
  9. <script src="~/Scripts/Business/CultureplanManage/ClubCourseBatchAdd.js" type="text/javascript"></script>
  10. <script type="text/javascript">
  11. var nonSelect = "@DropdownList.SELECT_ALL";
  12. </script>
  13. }
  14. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  15. @using (Ajax.BeginForm(new AjaxOptions
  16. {
  17. //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  18. OnSuccess = "formSuccessReloadNoClose",
  19. OnBegin = "EMISFunction.FormSubmit",
  20. OnComplete = "EMISFunction.FormComplete"
  21. }))
  22. {
  23. <div class="p_SearchTitle">
  24. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  25. 查询条件</div>
  26. </div>
  27. @Html.PositionCondition("CourseNoClubSelect")
  28. <div class="search_keyword">
  29. <div class="search_input">
  30. <ul>
  31. <li class="sn" style="padding-left: 5px;">课程级别:</li>
  32. <li class="sv">
  33. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseLevel, DropdownListBindType.SelectAll,
  34. new ComboGridOptions
  35. {
  36. ID = "DictionaryCourseLevel",
  37. Name = "DictionaryCourseLevel",
  38. OnSelect = "reload"
  39. }, new Dictionary<string, string> { { "data-condition", "dgCourseNoClubList" } })
  40. </li>
  41. <li class="sn" style="padding-left: 5px;">课程科类:</li>
  42. <li class="sv">
  43. @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseScience, DropdownListBindType.SelectAll,
  44. new ComboGridOptions
  45. {
  46. ID = "DictionaryCourseScience",
  47. Name = "DictionaryCourseScience",
  48. OnSelect = "reload"
  49. }, new Dictionary<string, string> { { "data-condition", "dgCourseNoClubList" } })
  50. </li>
  51. <li class="sn" style="padding-left: 5px;color:red;">是否启用:</li>
  52. <li class="sv">
  53. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  54. {
  55. ID = "DictionaryIsEnable",
  56. Name = "DictionaryIsEnable",
  57. BindType = DropdownListBindType.SelectAll,
  58. //SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes,
  59. OnSelect = "reload"
  60. }, new Dictionary<string, string> { { "data-condition", "dgCourseNoClubList" } })
  61. </li>
  62. </ul>
  63. </div>
  64. </div>
  65. <div class="p_title">
  66. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">
  67. 课程信息列表
  68. </div>
  69. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchAdd")</div>
  70. </div>
  71. <div class="search_list">
  72. @Html.Hidden("CourseNoClubList")
  73. <table cellpadding="0" cellspacing="0" id="specialtyPlantable">
  74. <tr>
  75. <td>
  76. @Html.DataGrid(new DataGridOptions
  77. {
  78. Columns = new List<DataGridColumn>()
  79. {
  80. new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursematerialID" },
  81. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Handle="edit", Width=0.06 },
  82. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=15 },
  83. new BoundFieldColumn { FieldName="Abbreviation", HeaderText="课程简称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
  84. new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center, OrderFieldName="CourseLevelID", Width=0.04 },
  85. new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类", Align=AlignStyle.Center, OrderFieldName="CourseScienceID", Width=0.04 },
  86. new BoundFieldColumn { FieldName="ClassName", HeaderText="上课类型", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  87. new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, OrderFieldName="IsEnable", Width=0.04, CustomFormatFun="SetRedColumn" }
  88. },
  89. CustomerRowStyleFun = "SetRedGrid",
  90. IsPostBack = true,
  91. IsCheckOnSelect = true,
  92. DataSourceUrl = Url.Content("~/ClubCourse/CourseNoClubList"),
  93. ID = "dgCourseNoClubList",
  94. IsPagination = true,
  95. IsShowRowNumbers = true,
  96. IsSingleSelect = false
  97. })
  98. </td>
  99. </tr>
  100. </table>
  101. </div>
  102. }
  103. </div>