OptionalCoursePlanChoiceList.cshtml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. @model EMIS.ViewModel.SelectCourse.OptionalCourseSettingView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgop = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "GrademajorID",
  10. OnSelect = "QueryGrademajorGridOptions",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center },
  16. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Grademajor/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. }
  26. @section scripts{
  27. <script src="~/Scripts/Business/CultureplanManage/OptionalCoursePlanEdit.js" type="text/javascript"></script>
  28. }
  29. <style type="text/css">
  30. #optionalCoursePlantable
  31. {
  32. width: 100%;
  33. border: 0px none;
  34. }
  35. #optionalCoursePlantable tr
  36. {
  37. min-height: 30px;
  38. }
  39. </style>
  40. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  41. @using (Ajax.BeginForm(new AjaxOptions
  42. {
  43. OnSuccess = "EMISFunction.FormSuccess",
  44. OnBegin = "EMISFunction.FormSubmit",
  45. OnComplete = "EMISFunction.FormComplete"
  46. }))
  47. {
  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;">@Html.ContextMenuBar("Edit")</div>
  52. </div>
  53. <div class="search_list">
  54. @Html.HiddenFor(x => x.OptionalCourseID)
  55. @Html.HiddenFor(x => x.SpecialtyCourseID)
  56. <table cellpadding="0" cellspacing="0" id="optionalCoursePlantable">
  57. <tr>
  58. <td>@Html.LabelFor(x => x.GrademajorID):
  59. </td>
  60. <td>@Html.ComboGridFor(x => x.GrademajorID, cgop, new Dictionary<string, string> { { "data-condition", "dgGrademajorAndSpecialtyCourseList" } })
  61. </td>
  62. <td>@Html.LabelFor(x => x.HandleModeID):
  63. </td>
  64. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HandleMode, (x => x.HandleModeID))
  65. </td>
  66. </tr>
  67. <tr>
  68. <td>@Html.LabelFor(x => x.PeopleNumlimit):
  69. </td>
  70. <td>@Html.TextBoxFor(x => x.PeopleNumlimit)
  71. </td>
  72. <td>@Html.LabelFor(x => x.PeopleNumlower)
  73. </td>
  74. <td>@Html.TextBoxFor(x => x.PeopleNumlower)
  75. </td>
  76. </tr>
  77. <tr>
  78. <td>@Html.LabelFor(x => x.IsNeedMaterial):
  79. </td>
  80. <td>@Html.CheckBoxFor(x => x.IsNeedMaterial)
  81. </td>
  82. <td>@Html.LabelFor(x => x.IsOpened):
  83. </td>
  84. <td>@Html.CheckBoxFor(x => x.IsOpened)
  85. </td>
  86. </tr>
  87. <tr>
  88. <td>@Html.LabelFor(x => x.SpecialtyCourseID):
  89. </td>
  90. <td colspan="3">
  91. @Html.DataGrid(new DataGridOptions
  92. {
  93. Columns = new List<DataGridColumn>()
  94. {
  95. new CheckBoxFieldColumn{ HeaderText="", FieldName="SpecialtyCourseID" },
  96. new BoundFieldColumn { FieldName="StandardCode", HeaderText="标准专业代码", Align=AlignStyle.Center },
  97. new BoundFieldColumn { FieldName="StandardName", HeaderText="标准专业名称", Align=AlignStyle.Center },
  98. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  99. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
  100. new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center },
  101. new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center },
  102. new BoundFieldColumn { FieldName="CourseCategoryName", HeaderText="课程属性", Align=AlignStyle.Center },
  103. new BoundFieldColumn { FieldName="CourseQualityName", HeaderText="课程性质", Align=AlignStyle.Center }
  104. },
  105. IsAutoLoad = false,
  106. IsCheckOnSelect = true,
  107. DataSourceUrl = Url.Content("~/OptionalCoursePlan/GrademajorAndSpecialtyCourseViewList"),
  108. ID = "dgGrademajorAndSpecialtyCourseList",
  109. IsPagination = true,
  110. IsShowRowNumbers = true,
  111. IsSingleSelect = false
  112. })
  113. </td>
  114. </tr>
  115. <tr>
  116. <td>@Html.LabelFor(x => x.Remarks):
  117. </td>
  118. <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width:500px;" } })
  119. </td>
  120. </tr>
  121. </table>
  122. </div>
  123. }
  124. </div>