Submit.cshtml 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. @model EMIS.ViewModel.MinorGraduation.MinorGraduationManage.MinorGraduationApplyView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "GraduationConditionPackageSubmit";
  6. //辅修毕业公式
  7. ComboGridOptions cgopGradConditionPackage = new ComboGridOptions
  8. {
  9. TextField = "Title",
  10. ValueField = "MinorGraduationConditionPackageID",
  11. ID = "MinorGradConditionPackageDropdown",
  12. Name = "MinorGradConditionPackageDropdown",
  13. OnSelect = "queryGradConditionPackageStudentType",
  14. Width = 210,
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. new BoundFieldColumn { FieldName="Title", HeaderText="毕业公式", Align=AlignStyle.Center, Width=150 },
  20. new BoundFieldColumn { FieldName="StudentTypeName", HeaderText="学生类别", Align=AlignStyle.Center, Width=60 }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/MinorGraduationConditionPackage/List"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. }
  30. @section scripts{
  31. <script type="text/javascript">
  32. //加载选择的毕业申请信息IDs
  33. $(function () {
  34. var minorGraduationApplyIDs = top.$("#@(Request["WindowID"])").data("inputData").join(',');
  35. $("#minorGraduationApplyIDs").val(minorGraduationApplyIDs);
  36. });
  37. //获取毕业公式对应的学生类别
  38. function queryGradConditionPackageStudentType(data) {
  39. var minorGraduationConditionPackageID = $("#MinorGraduationConditionPackageID").combogridX("getValue");
  40. if (minorGraduationConditionPackageID == "" || minorGraduationConditionPackageID == "-1" || minorGraduationConditionPackageID == null) {
  41. $("#StudentTypeID").val("");
  42. return;
  43. }
  44. else {
  45. $("#StudentTypeID").val(data.StudentTypeID);
  46. }
  47. }
  48. function MinorGraduationApplySubmit_Confirm(){
  49. $(document.forms[0]).submit();
  50. }
  51. </script>
  52. }
  53. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  54. @using (Ajax.BeginForm(new AjaxOptions
  55. {
  56. OnSuccess = "EMISFunction.FormSuccess",
  57. OnBegin = "EMISFunction.FormSubmit",
  58. OnComplete = "EMISFunction.FormComplete"
  59. }))
  60. {
  61. <div class="p_title">
  62. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  63. @*申请提交(毕业)*@
  64. </div>
  65. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Submit")</div>
  66. </div>
  67. <div class="search_list">
  68. @Html.Hidden("minorGraduationApplyIDs")
  69. @Html.HiddenFor(x => x.StudentTypeID)
  70. <table cellpadding="0" cellspacing="0" id="applytable">
  71. <tr>
  72. <td style="width: 85px;">
  73. @Html.LabelFor(x => x.Title):
  74. </td>
  75. <td colspan="3">
  76. @Html.ComboGridFor(x => x.MinorGraduationConditionPackageID, cgopGradConditionPackage)
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>
  81. @Html.LabelFor(x => x.Comment):
  82. </td>
  83. <td colspan="3">
  84. @Html.TextAreaFor(x=>x.Comment, new Dictionary<string, object>
  85. {
  86. { "style", "width: 90%;min-height: 50px" }
  87. })
  88. </td>
  89. </tr>
  90. </table>
  91. </div>
  92. }
  93. </div>