Upload.cshtml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. @model EMIS.ViewModel.DQPSystem.SOCDetailView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc
  4. @{
  5. ViewBag.Title = "test001";
  6. }
  7. @section header{
  8. <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  9. <link rel="stylesheet" type="text/css" href="~/Scripts/Bowin.Control.Core/Plugins/ueditor/themes/default/ueditor.css"/>
  10. }
  11. @using (Html.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  12. {
  13. <div class="p_title">
  14. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Upload")</div>
  15. </div>
  16. @Html.Hidden("SOCDetailID", Model.SOCDetailID);
  17. @Html.Uploader(new uploaderOption { Name = "SOCAttachment", MainTableID = Model.SOCDetailID, Title = "附件管理" })
  18. }
  19. @section scripts{
  20. <!-- 配置文件 -->
  21. <script type="text/javascript" charset="utf-8" src="~/Scripts/Bowin.Control.Core/Plugins/ueditor/editor_config.js"></script>
  22. <!-- 编辑器源码文件 -->
  23. <script type="text/javascript" charset="utf-8" src="~/Scripts/Bowin.Control.Core/Plugins/ueditor/editor_all_min.js"></script>
  24. <!-- 实例化编辑器 -->
  25. <script type="text/javascript">
  26. function SOCDetailUpload_Save() {
  27. $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/SOCDetail/Upload', {}, function (data) {
  28. if (data == "上传成功") {
  29. top.$("#@(Request["WindowID"])").dialog("close");
  30. } else {
  31. $.messager.alert("系统提示", data);
  32. }
  33. });
  34. }
  35. </script>
  36. }