BundleConfig.cs 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. using System.Web;
  2. using System.Web.Optimization;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. namespace EMISOnline.Web
  6. {
  7. public class BundleConfig
  8. {
  9. // 有关 Bundling 的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=254725
  10. public static void RegisterBundles(BundleCollection bundles)
  11. {
  12. bundles.Add(new ScriptBundle("~/bundles/layoutscript1") { Orderer = new AsIsBundleOrderer() }.Include(
  13. //"~/Scripts/Bowin.Control.Core/jquery-1.8.0.min.js",
  14. "~/Scripts/Bowin.Control.Core/Plugins/EasyUI/jquery.easyui.min.js",
  15. "~/Scripts/Bowin.Control.Core/Plugins/EasyUI/easyui-lang-zh_CN.js",
  16. "~/Scripts/NewEMIS.Comm.js",
  17. "~/Scripts/Bowin.Control.Core/Core/Extend/JavaScript.Extend.js",
  18. "~/Scripts/Bowin.Control.Core/Core/Extend/jQuery.Extend.js",
  19. "~/Scripts/Bowin.Control.Core/Core/Extend/EasyUI.Extend.js",
  20. "~/Scripts/Bowin.Control.Core/Core/Config/EasyUI.Config.js",
  21. "~/Scripts/Bowin.Control.Core/Core/Config/CMS.Config.js"
  22. ));
  23. bundles.Add(new ScriptBundle("~/bundles/layoutscript2") { Orderer = new AsIsBundleOrderer() }.Include(
  24. //"~/Scripts/Bowin.Control.Core/jquery.unobtrusive-ajax.min.js",
  25. //"~/Scripts/json2.js",
  26. //"~/Scripts/Bowin.Control.Core/Plugins/Uploadify/jquery.uploadify.min.js",
  27. //"~/Scripts/Bowin.Control.Core/Plugins/ZeroClipboard/ZeroClipboard.js",
  28. //"~/Scripts/Bowin.Control.Core/Core/CMS.Core.js",
  29. //"~/Scripts/Bowin.Control.Core/Core/Controls/Bowin.Controls.js",
  30. //"~/Scripts/Bowin.Control.Core/Core/Controls/CMS.Controls.js",
  31. "~/Scripts/Bowin.Control.Core/jquery.validate.min.js",
  32. "~/Scripts/Bowin.Control.Core/jquery.validate.unobtrusive.min.js",
  33. "~/Scripts/Bowin.Control.Core/Core/Extend/jQuery.Validate.Extend.js",
  34. "~/Scripts/MicrosoftAjax.js",
  35. "~/Scripts/MicrosoftMvcAjax.js",
  36. "~/Scripts/MicrosoftMvcValidation.js",
  37. "~/Scripts/jquery.validate.easyui.js",
  38. "~/Scripts/Bowin.Control.Core/Plugins/My97DatePicker/WdatePicker.js",
  39. "~/Scripts/Bowin.Control.Core/Plugins/My97DatePicker/lang/zh-cn.js",
  40. "~/Scripts/SystemGeneral.js"
  41. ));
  42. bundles.Add(new ScriptBundle("~/bundles/My97DatePicker") { Orderer = new AsIsBundleOrderer() }.Include(
  43. "~/Scripts/Bowin.Control.Core/Plugins/My97DatePicker/WdatePicker.js",
  44. "~/Scripts/Bowin.Control.Core/Plugins/My97DatePicker/lang/zh-cn.js"
  45. ));
  46. bundles.Add(new ScriptBundle("~/bundles/validate") { Orderer = new AsIsBundleOrderer() }.Include(
  47. "~/Scripts/Bowin.Control.Core/jquery.unobtrusive-ajax.min.js",
  48. "~/Scripts/Bowin.Control.Core/jquery.validate.min.js",
  49. "~/Scripts/Bowin.Control.Core/jquery.validate.unobtrusive.min.js",
  50. "~/Scripts/Bowin.Control.Core/Core/Extend/jQuery.Validate.Extend.js",
  51. "~/Scripts/MicrosoftAjax.js",
  52. "~/Scripts/MicrosoftMvcAjax.js",
  53. "~/Scripts/MicrosoftMvcValidation.js",
  54. "~/Scripts/jquery.validate.easyui.js"
  55. ));
  56. bundles.Add(new StyleBundle("~/bundles/layoutcss") { Orderer = new AsIsBundleOrderer() }.Include(
  57. "~/Content/StyleForm.css",
  58. "~/Content/Site.css",
  59. "~/Content/Bowin.Control.Core/themes/metro-blue/easyui.css",
  60. "~/Content/Bowin.Control.Core/themes/metro-blue/combogridX.css",
  61. "~/Content/Bowin.Control.Core/themes/icon.css",
  62. "~/Content/Bowin.Control.Core/themes/metro-blue/cms.controls.selectUser.css",
  63. "~/Content/Bowin.Control.Core/themes/easyui-validate/default01.css",
  64. "~/Content/Bowin.Control.Core/themes/easyui-validate/validationEngine.jquery.css",
  65. "~/Scripts/Bowin.Control.Core/Plugins/Uploadify/uploadify.css",
  66. "~/Scripts/Bowin.Control.Core/Plugins/uploadifyFile/OwnUploadify.css"));
  67. //"~/Content/themes/base/jquery.ui.datepicker.css",
  68. //"~/Content/themes/base/jquery.ui.progressbar.css",
  69. //"~/Content/themes/base/jquery.ui.theme.css"));
  70. bundles.Add(new StyleBundle("~/bundles/validate") { Orderer = new AsIsBundleOrderer() }.Include(
  71. "~/Content/Bowin.Control.Core/themes/easyui-validate/default01.css",
  72. "~/Content/Bowin.Control.Core/themes/easyui-validate/validationEngine.jquery.css"));
  73. }
  74. }
  75. internal class AsIsBundleOrderer : IBundleOrderer
  76. {
  77. public virtual IEnumerable<FileInfo> OrderFiles(BundleContext context, IEnumerable<FileInfo> files)
  78. {
  79. return files;
  80. }
  81. }
  82. }