Index.cshtml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @model EMIS.ViewModel.SelectCourse.SelectCourseConditionView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  8. @Html.Position()
  9. @using (Ajax.BeginForm(new AjaxOptions
  10. {
  11. OnSuccess = "EMISFunction.FormSuccess",
  12. OnBegin = "EMISFunction.FormSubmit",
  13. OnComplete = "EMISFunction.FormComplete"
  14. }))
  15. {
  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("Index")</div>
  20. </div>
  21. <div class="noPopupContent">
  22. <table cellpadding="0" cellspacing="0" id="departmenttable" width="100%">
  23. <tr>
  24. <td width="200">@Html.LabelFor(x => x.Schoolyear):
  25. </td>
  26. <td style="background-color: white;">@Html.DropdownListFor(x => x.Schoolyear, new DropdownListOptions { ItemSourceUrl = Url.Content("~/SchoolYear/DropDownAfterCurrent"), TextField = "Text", ValueField = "Value", BindType = DropdownListBindType.PleaseSelect })
  27. </td>
  28. </tr>
  29. @*<tr>
  30. <td>@Html.LabelFor(x => x.CrossGrade):
  31. </td>
  32. <td style="background-color: white;">@Html.CheckBoxFor(x => x.CrossGrade)
  33. </td>
  34. </tr>*@
  35. <tr>
  36. <td>@Html.LabelFor(x => x.IsNoLimit):
  37. </td>
  38. <td style="background-color: white;">@Html.CheckBoxFor(x => x.IsNoLimit)
  39. </td>
  40. </tr>
  41. </table>
  42. </div>
  43. }
  44. </div>
  45. @section scripts{
  46. <script type="text/javascript">
  47. function Condition_Save() {
  48. $(document.forms[0]).submit();
  49. }
  50. </script>
  51. }