Upload.cshtml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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())
  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.Uploader(new uploaderOption { Name = "SOCAttachment", MainTableID = Model.SOCDetailID, Title = "附件管理" })
  17. }
  18. @section scripts{
  19. <!-- 配置文件 -->
  20. <script type="text/javascript" charset="utf-8" src="~/Scripts/Bowin.Control.Core/Plugins/ueditor/editor_config.js"></script>
  21. <!-- 编辑器源码文件 -->
  22. <script type="text/javascript" charset="utf-8" src="~/Scripts/Bowin.Control.Core/Plugins/ueditor/editor_all_min.js"></script>
  23. <!-- 实例化编辑器 -->
  24. <script src="~/Scripts/Business/DQPSystem/SOCTemplateEditUpload.js" type="text/javascript"></script>
  25. <script type="text/javascript">
  26. function SOCDetailUpload_Save() {
  27. $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/SOC/Upload', {}, function (data) {
  28. if (data == "上传成功") {
  29. top.$("#@(Request["WindowID"])").dialog("close");
  30. } else {
  31. $.messager.alert("系统提示", data);
  32. }
  33. });
  34. }
  35. </script>
  36. }