Edit.cshtml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. @model EMIS.ViewModel.MinorManage.MinorApply.MinorApplyView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. //学生信息
  7. ComboGridOptions cgopStudent = new ComboGridOptions
  8. {
  9. TextField = "LoginID",
  10. ValueField = "UserID",
  11. //OnSelect = "queryStudentView",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Width=0.25, Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Width=0.15, Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Students/BaseStudentViewList"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. }
  27. @section scripts{
  28. <script src="~/Scripts/Business/MinorManage/MinorApply/MinorResitListEdit.js"
  29. type="text/javascript"></script>
  30. <script type="text/javascript">
  31. var nonSelect = "@DropdownList.SELECT_ALL";
  32. </script>
  33. }
  34. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  35. @using (Ajax.BeginForm(new AjaxOptions
  36. {
  37. OnSuccess = "EMISFunction.FormSuccess",
  38. OnBegin = "EMISFunction.FormSubmit",
  39. OnComplete = "EMISFunction.FormComplete"
  40. }))
  41. {
  42. <div class="p_title">
  43. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  44. </div>
  45. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  46. </div>
  47. <div class="search_list">
  48. <table cellpadding="0" cellspacing="0" id="minorStandardSetting">
  49. @Html.Hidden("selectMinorStandardIDs")
  50. @*@Html.HiddenFor(x => x.MinorStandardID)*@
  51. <tr>
  52. <td>
  53. @Html.LabelFor(x => x.LoginID):
  54. </td>
  55. <td>
  56. @Html.ComboGridFor(x => x.UserID, cgopStudent)
  57. </td>
  58. <td>
  59. @Html.LabelFor(x => x.UserName):
  60. </td>
  61. <td>
  62. @Html.TextBoxFor(x => x.UserName, new TextBoxOptions() { IsEnabled = false })
  63. </td>
  64. </tr>
  65. <tr>
  66. <td>@Html.LabelFor(x => x.SchoolyearCode):
  67. </td>
  68. <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), IsEnabled=false })
  69. </td>
  70. </tr>
  71. </table>
  72. </div>
  73. }
  74. </div>