Edit.cshtml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @model EMIS.ViewModel.ExaminationApply.SubjectCountLimitView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  8. @using (Ajax.BeginForm(new AjaxOptions
  9. {
  10. OnSuccess = "EMISFunction.FormSuccess",
  11. OnBegin = "EMISFunction.FormSubmit",
  12. OnComplete = "EMISFunction.FormComplete"
  13. }))
  14. {
  15. @Html.HiddenFor(x => x.ExaminationSubjectCountLimitID)
  16. <div class="p_title">
  17. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  18. 门数限定信息</div>
  19. @if (Request["isView"] != "1")
  20. {
  21. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  22. }
  23. </div>
  24. <div class="search_list popupWindowContent">
  25. <table cellpadding="0" cellspacing="0" id="departmenttable">
  26. <tr>
  27. <td>@Html.LabelFor(x => x.ExaminationTypeID):
  28. </td>
  29. <td>@Html.DropdownListFor((x => x.ExaminationTypeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList") })
  30. </td>
  31. <td>@Html.LabelFor(x => x.FacultymajorID):
  32. </td>
  33. <td>@Html.ComboGridFor(x => x.FacultymajorID, new ComboGridOptions
  34. {
  35. TextField = "Name",
  36. ValueField = "FacultymajorID",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new LinkButtonColumn { FieldName="Code", HeaderText="院系专业编码", Width=0.1, Align=AlignStyle.Center },
  42. new BoundFieldColumn { FieldName="Name", HeaderText="院系专业", Width=0.3, Align=AlignStyle.Center },
  43. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Width=0.3, Align=AlignStyle.Center },
  44. new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("Campus"), Width=0.3, Align=AlignStyle.Center }
  45. },
  46. IsCheckOnSelect = true,
  47. DataSourceUrl = Url.Content("~/Facultymajor/List"),
  48. IsPagination = true,
  49. IsShowRowNumbers = true,
  50. IsSingleSelect = false
  51. }
  52. })
  53. </td>
  54. </tr>
  55. <tr>
  56. <td>@Html.LabelFor(x => x.Years):
  57. </td>
  58. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.Years)
  59. </td>
  60. <td>@Html.LabelFor(x => x.SubjectCountLimit):
  61. </td>
  62. <td>@Html.TextBoxFor(x => x.SubjectCountLimit, new TextBoxOptions() { })
  63. </td>
  64. </tr>
  65. </table>
  66. </div>
  67. }
  68. </div>
  69. @section scripts{
  70. <script type="text/javascript">
  71. function SubjectCountLimit_Save() {
  72. $(document.forms[0]).submit();
  73. }
  74. </script>
  75. }