ApprovalHandle.cshtml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "Edit";
  5. //List<DropdownListItem> listdlt = new List<DropdownListItem> { new DropdownListItem { Text = "通过", Value = (int)EMIS.ViewModel.CF_ScoreState.Approved }, new DropdownListItem { Text = "驳回", Value = (int)EMIS.ViewModel.CF_ScoreState.Rebut } };
  6. List<DropdownListItem> listAction = ViewData["listAction"] as List<DropdownListItem>;
  7. List<DropdownListItem> firstListAction = ViewData["firstListAction"] as List<DropdownListItem>;
  8. var firstListActionValue = (firstListAction.FirstOrDefault() == null ? null : firstListAction.FirstOrDefault().Value);
  9. //var defaultAction = listAction.FirstOrDefault(x => x.Text == "同意" || x.Text == "通过");
  10. //var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
  11. }
  12. @section scripts{
  13. <script type="text/javascript">
  14. function ScoreAudit_Pass() {
  15. var d = top.$('#@Request["WindowID"]').data("inputData");
  16. $("[name='FinalExaminationIDs']").val(d.join(','));
  17. $(document.forms[0]).submit();
  18. }
  19. </script>
  20. }
  21. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  22. {
  23. <div class="p_title">
  24. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  25. 审核信息</div>
  26. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  27. </div>
  28. <div class="search_list">
  29. @Html.Hidden("FinalExaminationIDs")
  30. <table cellpadding="0" cellspacing="0" id="specialtytable">
  31. <tr>
  32. <td style="padding: 0px 0px 0px 10px;">
  33. 处理动作:
  34. </td>
  35. <td>@*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ddlAction", Name = "Action", ItemList = listdlt,
  36. SelectedValue = (int)EMIS.ViewModel.CF_ScoreState.Approved })*@
  37. @Html.DropdownList(new DropdownListOptions {
  38. BindType = DropdownListBindType.None,
  39. ID = "ddlAction",
  40. Name = "Action",
  41. ItemList = listAction,
  42. SelectedValue = firstListActionValue
  43. })
  44. </td>
  45. </tr>
  46. <tr>
  47. <td style="padding: 10px 0px 0px 10px;">
  48. 处理意见:
  49. </td>
  50. <td style="padding: 10px 0px 0px 0px;">@Html.TextArea("Opinioncomment", "", 5, 30, new { })
  51. </td>
  52. </tr>
  53. </table>
  54. </div>
  55. }