Edit.cshtml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. @model EMIS.ViewModel.GraduationManage.GraduationRequirement.CourseTypeRequirementView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. //年级专业
  7. ComboGridOptions cgopGrademajor = new ComboGridOptions
  8. {
  9. ID = "GrademajorComboGrid",
  10. Name = "GrademajorComboGrid",
  11. TextField = "Name",
  12. ValueField = "GrademajorID",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center, Width=0.2 },
  18. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.35 }
  19. //new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 },
  20. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 },
  21. //new BoundFieldColumn { FieldName="EducationName", HeaderText=@EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.1 },
  22. //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.1 },
  23. //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.1 }
  24. },
  25. PageSize = 3,
  26. IsCheckOnSelect = true,
  27. DataSourceUrl = Url.Content("~/Grademajor/List"),
  28. IsPagination = true,
  29. IsShowRowNumbers = true,
  30. IsSingleSelect = false,
  31. MaxHeight = 120
  32. }
  33. };
  34. }
  35. @section scripts{
  36. <script src="~/Scripts/Business/GraduationManage/GraduationRequirement/CourseTypeRequirementEdit.js" type="text/javascript"></script>
  37. <script type="text/javascript">
  38. </script>
  39. }
  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. @*类型学分(课程类型学分)信息*@
  51. </div>
  52. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  53. </div>
  54. <div class="search_list">
  55. <table cellpadding="0" cellspacing="0" id="courseTypeRequirementtable">
  56. @Html.HiddenFor(x => x.GraduationCourseTypeRequirementID)
  57. <tr>
  58. <td>
  59. @Html.LabelFor(x => x.GrademajorName)
  60. </td>
  61. <td colspan="3">
  62. @Html.ComboGridFor(x => x.GrademajorID, cgopGrademajor, new Dictionary<string, string> { { "style", "width:85%;" } })
  63. @*@Html.TextBoxFor(x => x.GrademajorName, new TextBoxOptions()
  64. {
  65. IsEnabled = false
  66. }, new Dictionary<string, string> { { "style", "width:85%;" } })*@
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. @Html.LabelFor(x => x.CourseTypeName)
  72. </td>
  73. <td>
  74. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_CourseType, (x => x.CourseTypeID), DropdownListBindType.PleaseSelect)
  75. </td>
  76. <td style="color: red;">
  77. @Html.LabelFor(x => x.TotalCredit)
  78. </td>
  79. <td>
  80. @Html.TextBoxFor(x => x.TotalCredit)
  81. </td>
  82. </tr>
  83. </table>
  84. </div>
  85. }
  86. </div>