Generate.cshtml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @model EMIS.ViewModel.GraduationManage.GraduationSetting.GraduationStandardView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "Generate";
  6. //院系所
  7. ComboGridOptions cgopCollege = new ComboGridOptions
  8. {
  9. EmptyText = "全部",
  10. ID = "CollegeDropdown",
  11. Name = "CollegeDropdown",
  12. TextField = "Name",
  13. ValueField = "CollegeID",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.2 },
  19. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 }
  20. },
  21. PageSize = 5,
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. }
  30. @section scripts{
  31. <script src="~/Scripts/Business/GraduationManage/GraduationSetting/GraduationStandardEdit.js" type="text/javascript"></script>
  32. <script type="text/javascript">
  33. var nonSelect = "@DropdownList.SELECT_ALL";
  34. @*//加载选择的毕业标准信息IDs
  35. $(function () {
  36. var graduationStandardIDs = top.$("#@(Request["WindowID"])").data("inputData").join(',');
  37. $("#graduationStandardIDs").val(graduationStandardIDs);
  38. });*@
  39. </script>
  40. }
  41. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  42. @using (Ajax.BeginForm(new AjaxOptions
  43. {
  44. OnSuccess = "EMISFunction.FormSuccess",
  45. OnBegin = "EMISFunction.FormSubmit",
  46. OnComplete = "EMISFunction.FormComplete"
  47. }))
  48. {
  49. <div class="p_title">
  50. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  51. </div>
  52. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Generate")</div>
  53. </div>
  54. <div class="search_list">
  55. @*@Html.Hidden("graduationStandardIDs")*@
  56. <table cellpadding="0" cellspacing="0" id="generate">
  57. <tr>
  58. <td style="color:red;">
  59. @Html.LabelFor(x => x.GraduatingSemesterCode):
  60. </td>
  61. <td>
  62. @Html.DropdownListFor(x => x.GraduatingSemesterID, new DropdownListOptions
  63. {
  64. TextField = "Text",
  65. ValueField = "Value",
  66. BindType = DropdownListBindType.SelectAll,
  67. ItemSourceUrl = "~/SchoolYear/YearsDropdownListBanid",
  68. SelectedValue = BaseExtensions.GetGradSchoolYearID()
  69. })
  70. </td>
  71. <td>
  72. @Html.LabelFor(x => x.CollegeName):
  73. </td>
  74. <td>
  75. @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
  76. </td>
  77. </tr>
  78. </table>
  79. </div>
  80. }
  81. </div>