Edit.cshtml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. }
  8. @section scripts{
  9. <script src="~/Scripts/Business/TeachingMaterial/TeachersOrderEdit.js" type="text/javascript"></script>
  10. }
  11. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  12. @using (Ajax.BeginForm(new AjaxOptions { Url = "/TeachersOrder/Edit", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  13. {
  14. <div class="p_title">
  15. @* <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  16. 征订申请信息
  17. </div>*@
  18. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  19. @if (Model.ApproveStatus == BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.ET_TeachersOrder).Name)
  20. || (BaseExtensions.GetBackpointStatus(typeof(EMIS.Entities.ET_TeachersOrder).Name).Contains(Model.ApproveStatus)))
  21. {
  22. @Html.ContextMenuBar("Edit")
  23. }
  24. </div>
  25. </div>
  26. <div class="search_list">
  27. @Html.HiddenFor(x => x.TeachersOrderID)
  28. <table cellpadding="0" cellspacing="1">
  29. <tr>
  30. <td>@Html.LabelFor(x => x.SchoolyearID):
  31. </td>
  32. <td>@Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions { ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), TextField = "Text", ValueField = "Value" })
  33. </td>
  34. <td>@Html.LabelFor(x => x.Price):
  35. </td>
  36. <td>@Html.TextBoxFor(x => x.Price, new TextBoxOptions { IsEnabled = false })
  37. </td>
  38. </tr>
  39. <tr>
  40. <td>@Html.LabelFor(x => x.OrderQty):
  41. </td>
  42. <td>@Html.TextBoxFor(x => x.OrderQty)
  43. </td>
  44. <td>@Html.LabelFor(x => x.Author):
  45. </td>
  46. <td>@Html.TextBoxFor(x => x.Author, new TextBoxOptions { IsEnabled = false })
  47. </td>
  48. </tr>
  49. <tr>
  50. <td>@Html.LabelFor(x => x.TeachingMaterialCode):
  51. </td>
  52. <td>@Html.TextBoxFor(x => x.TeachingMaterialCode, new TextBoxOptions { IsEnabled = false })
  53. </td>
  54. <td>@Html.LabelFor(x => x.TeachingMaterialName):
  55. </td>
  56. <td>@Html.TextBoxFor(x => x.TeachingMaterialName, new TextBoxOptions { IsEnabled = false })
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>@Html.LabelFor(x => x.CollegeName):
  61. </td>
  62. <td>@Html.TextBoxFor(x => x.CollegeName, new TextBoxOptions { IsEnabled = false })
  63. </td>
  64. <td>@Html.LabelFor(x => x.ApproveStatus):
  65. </td>
  66. <td>@Html.DropdownListFor((x => x.ApproveStatus), new DropdownListOptions { ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.ET_TeachersOrder).Name), IsEnabled = false })
  67. </td>
  68. </tr>
  69. <tr>
  70. <td>@Html.LabelFor(x => x.CoursematerialCode):
  71. </td>
  72. <td>@Html.TextBoxFor(x => x.CoursematerialCode, new TextBoxOptions { IsEnabled = false })
  73. </td>
  74. <td>@Html.LabelFor(x => x.CoursematerialName):
  75. </td>
  76. <td>@Html.TextBoxFor(x => x.CoursematerialName, new TextBoxOptions { IsEnabled = false })
  77. </td>
  78. </tr>
  79. <tr>
  80. <td>@Html.LabelFor(x => x.OrderDesc):
  81. </td>
  82. <td colspan="3">@Html.TextAreaFor(x => x.OrderDesc, new Dictionary<string, string> { { "style", "width:500px;" } })
  83. </td>
  84. </tr>
  85. </table>
  86. </div>
  87. }
  88. </div>