Approve.cshtml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @model EMIS.ViewModel.MinorGraduation.MinorGraduationManage.MinorGraduationApplyView
  2. @using EMIS.Web.Controls;
  3. @using EMIS.Entities;
  4. @using Bowin.Web.Controls.Mvc;
  5. @{
  6. ViewBag.Title = "Edit";
  7. List<DropdownListItem> listAction = ViewData["listAction"] as List<DropdownListItem>;
  8. var defaultAction = listAction.FirstOrDefault(x => x.Text == "同意");
  9. var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
  10. string minorGraduationApplyIDs = ViewData["minorGraduationApplyIDs"] as string;
  11. }
  12. @section scripts{
  13. <script type="text/javascript">
  14. function MinorGraduationApprove_Submit() {
  15. $(document.forms[0]).submit();
  16. }
  17. </script>
  18. }
  19. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  20. {
  21. <div class="p_title">
  22. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  23. 审核处理</div>
  24. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Approve")</div>
  25. </div>
  26. <div class="search_list">
  27. @Html.Hidden("hid_minorApplyIDs", minorGraduationApplyIDs)
  28. @Html.HiddenFor(x => x.MinorGraduationApplyID)
  29. <table cellpadding="0" cellspacing="0" id="minorRegistApprovaltable">
  30. <tr>
  31. <td>
  32. @Html.LabelFor(x => x.Action):
  33. </td>
  34. <td colspan="3">
  35. @Html.DropdownList(new DropdownListOptions
  36. {
  37. BindType = DropdownListBindType.PleaseSelect,
  38. ID = "ddlAction",
  39. Name = "ddlAction",
  40. ItemList = listAction,
  41. })
  42. </td>
  43. </tr>
  44. <tr>
  45. <td>
  46. @Html.LabelFor(x => x.Comment):
  47. </td>
  48. <td colspan="3">
  49. @Html.TextAreaFor(x => x.Comment, new Dictionary<string, object>
  50. {
  51. { "style", "width: 90%;min-height: 50px" }
  52. })
  53. </td>
  54. </tr>
  55. </table>
  56. </div>
  57. }