Edit.cshtml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @model EMIS.ViewModel.SupervisionManage.SupDocumentView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. String SchoolYearID = ViewBag.SchoolYearID;
  6. ViewBag.Title = "List";
  7. }
  8. @section scripts{
  9. <script type="text/javascript">
  10. var windowID = '@(Request["WindowID"])';
  11. var nonSelect = "@DropdownList.SELECT_ALL";
  12. </script>
  13. <script src="~/Scripts/Business/SupervisionManage/SupDocumentUpload.js" type="text/javascript"></script>
  14. }
  15. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  16. {
  17. <div class="p_title">
  18. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  19. 督导文件
  20. </div>
  21. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@(Request["isShow"] == "1" ? new MvcHtmlString("") : Html.ContextMenuBar("Edit"))</div>
  22. </div>
  23. <div class="search_list popupWindowContent" style="overflow: hidden;">
  24. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  25. @Html.HiddenFor(x => x.DocumentID)
  26. <tr>
  27. <td>
  28. @Html.LabelFor(x => x.Title):
  29. </td>
  30. <td>
  31. @Html.TextAreaFor(x => x.Title, new Dictionary<string, object> { { "style", "width: 90%;min-height: 60px" } })
  32. </td>
  33. </tr>
  34. <tr>
  35. <td>
  36. @Html.LabelFor(x => x.DocumentTypeID):
  37. </td>
  38. <td>
  39. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.SUP_DocumentType, x => x.DocumentTypeID)
  40. </td>
  41. </tr>
  42. <tr>
  43. <td>
  44. <label>文件:</label>
  45. </td>
  46. <td>
  47. @Html.Uploader(new uploaderOption { Name = "SupDocumentAttachment", MainTableID = Model.DocumentID })
  48. </td>
  49. </tr>
  50. </table>
  51. </div>
  52. }