Edit.cshtml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @model EMIS.ViewModel.TeachingMaterial.TeachersOrderView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.ViewModel;
  5. @{
  6. ViewBag.Title = "Edit";
  7. List<DropdownListItem> listAction = ViewData["listAction"] as List<DropdownListItem>;
  8. Guid teachersOrderID = Model.TeachersOrderID;
  9. }
  10. @section scripts{
  11. <script src="~/Scripts/Business/TeachingMaterial/TeachersOrderExamine.js" type="text/javascript"></script>
  12. <script type="text/javascript">
  13. function TeachersOrderExamine_Save() {
  14. $(document.forms[0]).submit();
  15. }
  16. //提交审核
  17. function TeachersOrder_Submit() {
  18. $(document.forms[0]).submit();
  19. }
  20. </script>
  21. }
  22. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  23. @using (Html.BeginForm())
  24. {
  25. <div class="p_title">
  26. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  27. 计划审核信息</div>
  28. @if (Model.ApproveStatus != (int)ViewData["endStatus"])
  29. {
  30. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  31. }
  32. </div>
  33. <div class="search_list">
  34. @Html.HiddenFor(x => x.TeachersOrderID)
  35. <table cellpadding="0" cellspacing="0" >
  36. <tr>
  37. <td>
  38. <label>
  39. 处理动作:</label>
  40. </td>
  41. <td colspan="3">@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ddlAction", Name = "ddlAction", ItemList = listAction })
  42. </td>
  43. </tr>
  44. <tr>
  45. <td>
  46. <label>
  47. 处理详细:</label>
  48. </td>
  49. <td colspan="3">
  50. @Html.DataGrid(new DataGridOptions
  51. {
  52. Columns = new List<DataGridColumn>()
  53. {
  54. new BoundFieldColumn { FieldName="PName", HeaderText="步骤名称", Align=AlignStyle.Center },
  55. new BoundFieldColumn { FieldName="ApproveUserName", HeaderText="处理用户", Align=AlignStyle.Center },
  56. new BoundFieldColumn { FieldName="ActionName", HeaderText="处理动作", Align=AlignStyle.Center },
  57. new BoundFieldColumn { FieldName="ApproveTime", HeaderText="处理时间", Align=AlignStyle.Center, Formatter = Formatter.OnlyYearMonthDay },
  58. new BoundFieldColumn { FieldName="Comment", HeaderText="审核意见", Align=AlignStyle.Center }
  59. },
  60. IsCheckOnSelect = true,
  61. DataSourceUrl = Url.Content("~/TeachersOrderExamine/ApproveWorkflowList?teachersOrderID=" + teachersOrderID + ""),
  62. ID = "dgAuditingWorkflowHistoryList",
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false
  66. })
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>
  71. <label>
  72. 处理意见:</label>
  73. </td>
  74. <td colspan="3">@Html.TextArea("txtOpinioncomment", new Dictionary<string, object> { { "style", "width:500px;" } })
  75. </td>
  76. </tr>
  77. </table>
  78. </div>
  79. }
  80. </div>