Add.cshtml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  20. </div>
  21. <div class="search_list popupWindowContent">
  22. <table cellpadding="0" cellspacing="0" id="departmenttable">
  23. <tr>
  24. <td>@Html.LabelFor(x => x.ExaminationTypeID):
  25. </td>
  26. <td>@Html.DropdownListFor((x => x.ExaminationTypeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList") })
  27. </td>
  28. <td>@Html.LabelFor(x => x.Years):
  29. </td>
  30. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.Years)
  31. </td>
  32. </tr>
  33. <tr>
  34. <td>@Html.LabelFor(x => x.SubjectCountLimit):
  35. </td>
  36. <td>@Html.TextBoxFor(x => x.SubjectCountLimit, new TextBoxOptions() { })
  37. </td>
  38. <td>&nbsp;</td>
  39. <td>&nbsp;</td>
  40. </tr>
  41. <tr>
  42. <td>@Html.LabelFor(x => x.FacultymajorID):
  43. </td>
  44. <td colspan="3">@Html.CheckList(new ListControlOptions
  45. {
  46. ID = "FacultymajorID",
  47. Name = "FacultymajorID",
  48. TextField = "NameCode",
  49. ValueField = "FacultymajorID",
  50. ItemSourceUrl = Url.Content("~/Facultymajor/BindCheckList"),
  51. ColumnCount = 3
  52. })
  53. </td>
  54. </tr>
  55. </table>
  56. </div>
  57. }
  58. </div>
  59. @section scripts{
  60. <script type="text/javascript">
  61. function SubjectCountLimit_Save() {
  62. $(document.forms[0]).submit();
  63. }
  64. </script>
  65. }