Approve.cshtml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @model EMIS.ViewModel.MinorManage.MinorApply.MinorApplyView
  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 minorApplyIDs = ViewData["planApplicationIDs"] as string;
  11. }
  12. @section scripts{
  13. <script type="text/javascript">
  14. function MinorRegistApprove_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("Edit")</div>
  25. </div>
  26. <div class="search_list">
  27. @Html.Hidden("hid_minorApplyIDs", minorApplyIDs)
  28. @Html.HiddenFor(x => x.StudentMinorRegistID)
  29. <table cellpadding="0" cellspacing="0" id="minorRegistApprovaltable">
  30. <tr>
  31. <td style="color: red;">
  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. }