Edit.cshtml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. @model EMIS.ViewModel.TeachingMaterial.LibraryView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. @section scripts{
  8. <script src="../../Scripts/Business/TeachingMaterial/Library.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. function Library_Save() {
  11. $(document.forms[0]).submit();
  12. }
  13. </script>
  14. }
  15. <style type="text/css">
  16. #stafftable
  17. {
  18. width: 100%;
  19. border: 0px none;
  20. }
  21. #stafftable tr
  22. {
  23. min-height: 30px;
  24. }
  25. </style>
  26. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  27. @using (Ajax.BeginForm(new AjaxOptions { Url = "/Library/Edit", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  28. {
  29. @Html.HiddenFor(x => x.LibraryID)
  30. <div class="p_title">
  31. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  32. 书库基本信息</div>*@
  33. @if (Request["isView"] != "1")
  34. {
  35. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  36. }
  37. </div>
  38. <div class="search_list">
  39. <table cellpadding="0" cellspacing="0" id="stafftable">
  40. <tr>
  41. <td>@Html.LabelFor(x => x.LibraryCode):
  42. </td>
  43. <td>@Html.TextBoxFor(x => x.LibraryCode)
  44. </td>
  45. <td>@Html.LabelFor(x => x.LibraryName):
  46. </td>
  47. <td>@Html.TextBoxFor(x => x.LibraryName)
  48. </td>
  49. </tr>
  50. <tr>
  51. <td>@Html.LabelFor(x => x.CampusName):
  52. </td>
  53. <td>@Html.DropdownListFor(x => x.CampusID, new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), OnSelect = "SelectCampusCode" })
  54. </td>
  55. <td>@Html.LabelFor(x => x.HeadPeople):
  56. </td>
  57. <td>@Html.TextBoxFor(x => x.HeadPeople)
  58. </td>
  59. </tr>
  60. <tr>
  61. <td>@Html.LabelFor(x => x.ContectTelNumber):
  62. </td>
  63. <td>@Html.TextBoxFor(x => x.ContectTelNumber)
  64. </td>
  65. <td>
  66. </td>
  67. <td>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>@Html.LabelFor(x => x.Desc):
  72. </td>
  73. <td colspan="3">@Html.TextAreaFor(x => x.Desc, new Dictionary<string, string> { { "style", "width:1000px;" } })
  74. </td>
  75. </tr>
  76. </table>
  77. </div>
  78. }
  79. </div>