ChangeReplaceGraduateNo.cshtml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @model EMIS.ViewModel.GraduationManage.GraduationManage.GraduationApplyView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Entities;
  4. @using EMIS.Web.Controls;
  5. @{
  6. ViewBag.Title = "ChangeReplaceGraduateNo";
  7. }
  8. @section scripts{
  9. <script type="text/javascript">
  10. function GraduationLisProvet_Confirm() {
  11. var GraduationApplyID = $("#GraduationApplyID").val();
  12. var ReplaceGraduateNo = $("#ReplaceGraduateNo").val();
  13. if (ReplaceGraduateNo == null || ReplaceGraduateNo == "") {
  14. $.messager.alert("系统提示", "请输入补证编号。");
  15. return;
  16. }
  17. var WindowID = $.SystemGeneral.getUrlParam("WindowID");
  18. $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/GraduationList/SaveReplaceGraduateNo', { graduationApplyID: GraduationApplyID, ReplaceGraduateNo: ReplaceGraduateNo }, function (data) {
  19. if (data == "保存成功。") {
  20. var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/GraduationList/GraduationProve?graduationApplyID=' + GraduationApplyID;
  21. var windowDiv = $.popupTopWindow('毕业证明打印', redirectTo, 1000, 750, null, null);
  22. windowDiv.panel({
  23. onBeforeClose: function () {
  24. if (windowDiv.find('iframe')[0].contentWindow.isWindowCanClose) {
  25. top.$('#' + WindowID).window('close');
  26. return true;
  27. }
  28. return true;
  29. }
  30. });
  31. } else {
  32. $.messager.alert("系统提示", data);
  33. }
  34. });
  35. }
  36. </script>
  37. }
  38. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  39. @using (Ajax.BeginForm(new AjaxOptions
  40. {
  41. OnSuccess = "EMISFunction.FormSuccess",
  42. OnBegin = "EMISFunction.FormSubmit",
  43. OnComplete = "EMISFunction.FormComplete"
  44. }))
  45. {
  46. <div class="p_title">
  47. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  48. </div>
  49. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  50. @Html.ContextMenuBar("Prove")
  51. </div>
  52. </div>
  53. <div class="search_list">
  54. @Html.HiddenFor(x => x.GraduationApplyID)
  55. <table cellpadding="0" cellspacing="0" id="chargedelaytable">
  56. <tr>
  57. <td>
  58. @Html.LabelFor(x => x.ReplaceGraduateNo):
  59. </td>
  60. <td colspan="3">
  61. @Html.TextBoxFor(x => x.ReplaceGraduateNo)
  62. </td>
  63. </tr>
  64. </table>
  65. </div>
  66. }
  67. </div>