Edit.cshtml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. @model EMIS.ViewModel.TeachingMaterial.PublisherView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. <style type="text/css">
  8. #stafftable
  9. {
  10. width: 100%;
  11. border: 0px none;
  12. }
  13. #stafftable tr
  14. {
  15. min-height: 30px;
  16. }
  17. </style>
  18. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  19. @using (Ajax.BeginForm(new AjaxOptions { Url = "/Publisher/Edit", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  20. {
  21. @Html.HiddenFor(x => x.PublishID)
  22. <div class="p_title">
  23. @* <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  24. 出版单位基本信息</div>*@
  25. @if (Request["isView"] != "1")
  26. {
  27. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  28. }
  29. </div>
  30. <div class="search_list">
  31. <table cellpadding="0" cellspacing="0" id="stafftable">
  32. <tr>
  33. <td>@Html.LabelFor(x => x.UnitCode):
  34. </td>
  35. <td>@Html.TextBoxFor(x => x.UnitCode, new TextBoxOptions() { })
  36. </td>
  37. <td>@Html.LabelFor(x => x.UnitName):
  38. </td>
  39. <td>@Html.TextBoxFor(x => x.UnitName)
  40. </td>
  41. </tr>
  42. <tr>
  43. <td>@Html.LabelFor(x => x.UnitShortName):
  44. </td>
  45. <td>@Html.TextBoxFor(x => x.UnitShortName)
  46. </td>
  47. <td>@Html.LabelFor(x => x.ContectUser):
  48. </td>
  49. <td>@Html.TextBoxFor(x => x.ContectUser)
  50. </td>
  51. </tr>
  52. <tr>
  53. <td>@Html.LabelFor(x => x.Mobile):
  54. </td>
  55. <td>@Html.TextBoxFor(x => x.Mobile)
  56. </td>
  57. <td>@Html.LabelFor(x => x.Phone):
  58. </td>
  59. <td>@Html.TextBoxFor(x => x.Phone)
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>@Html.LabelFor(x => x.Fax):
  64. </td>
  65. <td>@Html.TextBoxFor(x => x.Fax)
  66. </td>
  67. <td>@Html.LabelFor(x => x.Email):
  68. </td>
  69. <td>@Html.TextBoxFor(x => x.Email)
  70. </td>
  71. </tr>
  72. <tr>
  73. <td>@Html.LabelFor(x => x.BandCard):
  74. </td>
  75. <td>@Html.TextBoxFor(x => x.BandCard)
  76. </td>
  77. <td>@Html.LabelFor(x => x.BandName):
  78. </td>
  79. <td>@Html.TextBoxFor(x => x.BandName)
  80. </td>
  81. </tr>
  82. <tr>
  83. <td>@Html.LabelFor(x => x.Ein):
  84. </td>
  85. <td>@Html.TextBoxFor(x => x.Ein)
  86. </td>
  87. <td>@Html.LabelFor(x => x.Address):
  88. </td>
  89. <td>@Html.TextBoxFor(x => x.Address)
  90. </td>
  91. </tr>
  92. <tr>
  93. <td>@Html.LabelFor(x => x.IsSupplier):
  94. </td>
  95. <td>@Html.CheckBoxFor(x => x.IsSupplier)
  96. </td>
  97. <td>@Html.LabelFor(x => x.IsPulish):
  98. </td>
  99. <td>@Html.CheckBoxFor(x => x.IsPulish)
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>@Html.LabelFor(x => x.IsPrint):
  104. </td>
  105. <td colspan="3">@Html.CheckBoxFor(x => x.IsPrint)
  106. </td>
  107. </tr>
  108. <tr>
  109. <td>@Html.LabelFor(x => x.Desc):
  110. </td>
  111. <td colspan="3">@Html.TextAreaFor(x => x.Desc, new Dictionary<string, string> { { "style", "width:1000px;" } })
  112. </td>
  113. </tr>
  114. </table>
  115. </div>
  116. }
  117. </div>
  118. @section scripts{
  119. <script type="text/javascript">
  120. function Publisd_Save() {
  121. $(document.forms[0]).submit();
  122. }
  123. </script>
  124. }