12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- using System.Web;
- using System.Web.Optimization;
- using System.Collections.Generic;
- using System.IO;
- namespace EMIS.Web
- {
- public class BundleConfig
- {
- // 有关 Bundling 的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=254725
- public static void RegisterBundles(BundleCollection bundles)
- {
- bundles.Add(new ScriptBundle("~/bundles/layoutscript1") { Orderer = new AsIsBundleOrderer() }.Include(
- //"~/Scripts/Bowin.Control.Core/jquery-1.8.0.min.js",
- "~/Scripts/Bowin.Control.Core/Plugins/EasyUI/jquery.easyui.min.js",
- "~/Scripts/Bowin.Control.Core/Plugins/EasyUI/easyui-lang-zh_CN.js",
- "~/Scripts/NewEMIS.Comm.js",
- "~/Scripts/Bowin.Control.Core/Core/Extend/JavaScript.Extend.js",
- "~/Scripts/Bowin.Control.Core/Core/Extend/jQuery.Extend.js",
- "~/Scripts/Bowin.Control.Core/Core/Extend/EasyUI.Extend.js",
- "~/Scripts/Bowin.Control.Core/Core/Config/EasyUI.Config.js",
- "~/Scripts/Bowin.Control.Core/Core/Config/CMS.Config.js"
- ));
- bundles.Add(new ScriptBundle("~/bundles/layoutscript2") { Orderer = new AsIsBundleOrderer() }.Include(
- //"~/Scripts/Bowin.Control.Core/jquery.unobtrusive-ajax.min.js",
- //"~/Scripts/json2.js",
- //"~/Scripts/Bowin.Control.Core/Plugins/Uploadify/jquery.uploadify.min.js",
- //"~/Scripts/Bowin.Control.Core/Plugins/ZeroClipboard/ZeroClipboard.js",
- //"~/Scripts/Bowin.Control.Core/Core/CMS.Core.js",
- //"~/Scripts/Bowin.Control.Core/Core/Controls/Bowin.Controls.js",
- //"~/Scripts/Bowin.Control.Core/Core/Controls/CMS.Controls.js",
- "~/Scripts/Bowin.Control.Core/jquery.validate.min.js",
- "~/Scripts/Bowin.Control.Core/jquery.validate.unobtrusive.min.js",
- "~/Scripts/Bowin.Control.Core/Core/Extend/jQuery.Validate.Extend.js",
- "~/Scripts/MicrosoftAjax.js",
- "~/Scripts/MicrosoftMvcAjax.js",
- "~/Scripts/MicrosoftMvcValidation.js",
- "~/Scripts/jquery.validate.easyui.js",
- "~/Scripts/Bowin.Control.Core/Plugins/My97DatePicker/WdatePicker.js",
- "~/Scripts/Bowin.Control.Core/Plugins/My97DatePicker/lang/zh-cn.js",
- "~/Scripts/SystemGeneral.js"
- ));
- bundles.Add(new ScriptBundle("~/bundles/My97DatePicker") { Orderer = new AsIsBundleOrderer() }.Include(
- "~/Scripts/Bowin.Control.Core/Plugins/My97DatePicker/WdatePicker.js",
- "~/Scripts/Bowin.Control.Core/Plugins/My97DatePicker/lang/zh-cn.js"
- ));
- bundles.Add(new ScriptBundle("~/bundles/validate") { Orderer = new AsIsBundleOrderer() }.Include(
- "~/Scripts/Bowin.Control.Core/jquery.unobtrusive-ajax.min.js",
- "~/Scripts/Bowin.Control.Core/jquery.validate.min.js",
- "~/Scripts/Bowin.Control.Core/jquery.validate.unobtrusive.min.js",
- "~/Scripts/Bowin.Control.Core/Core/Extend/jQuery.Validate.Extend.js",
- "~/Scripts/MicrosoftAjax.js",
- "~/Scripts/MicrosoftMvcAjax.js",
- "~/Scripts/MicrosoftMvcValidation.js",
- "~/Scripts/jquery.validate.easyui.js"
- ));
- bundles.Add(new StyleBundle("~/bundles/layoutcss") { Orderer = new AsIsBundleOrderer() }.Include(
- "~/Content/StyleForm.css",
- "~/Content/Site.css",
- "~/Content/Bowin.Control.Core/themes/metro-blue/easyui.css",
- "~/Content/Bowin.Control.Core/themes/metro-blue/combogridX.css",
- "~/Content/Bowin.Control.Core/themes/icon.css",
- "~/Content/Bowin.Control.Core/themes/metro-blue/cms.controls.selectUser.css",
- "~/Content/Bowin.Control.Core/themes/easyui-validate/default01.css",
- "~/Content/Bowin.Control.Core/themes/easyui-validate/validationEngine.jquery.css",
- "~/Scripts/Bowin.Control.Core/Plugins/Uploadify/uploadify.css",
- "~/Scripts/Bowin.Control.Core/Plugins/uploadifyFile/OwnUploadify.css"));
- //"~/Content/themes/base/jquery.ui.datepicker.css",
- //"~/Content/themes/base/jquery.ui.progressbar.css",
- //"~/Content/themes/base/jquery.ui.theme.css"));
- bundles.Add(new StyleBundle("~/bundles/validate") { Orderer = new AsIsBundleOrderer() }.Include(
- "~/Content/Bowin.Control.Core/themes/easyui-validate/default01.css",
- "~/Content/Bowin.Control.Core/themes/easyui-validate/validationEngine.jquery.css"));
- }
- }
- internal class AsIsBundleOrderer : IBundleOrderer
- {
- public virtual IEnumerable<FileInfo> OrderFiles(BundleContext context, IEnumerable<FileInfo> files)
- {
- return files;
- }
- }
- }
|