2
0

2 Commitit 586d446118 ... b18f8e36aa

Tekijä SHA1 Viesti Päivämäärä
  陈龙 b18f8e36aa Merge branch 'dev' of http://219.151.179.47:3000/chenlong/GoldHoo into dev 1 viikko sitten
  陈龙 a7dbffff6f 修复无法新增业务员的问题。 1 viikko sitten

+ 2 - 2
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/README.md

@@ -1,8 +1,8 @@
 # SUI 说明文档
 
-**当前版本:** 1.2.11
+**当前版本:** 1.2.17
 
-**更新日期:** 2024/8/5
+**更新日期:** 2026/1/4
 
 SUI 全称为 Simple User Interface,由**成都能友科技有限责任公司**开发,使用JavaScript、HTML、CSS语言编写,基于前端流行框架jQuery开发的UI组件库。
 

+ 62 - 99
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/UpdateLog.md

@@ -1,225 +1,188 @@
 # SUI 更新日志
 
-## 版本:1.2.11
+## 版本:1.2.17`2026/1/17`
 
-**更新时间:2024/8/2**
+1. 修复`$(*).Form('SetValue', object)`方法作用于`div`标签报错的问题。
 
-1. 优化 SUI.Browser.GetOS 方法,识别鸿蒙系统。
+## 版本:1.2.16`2025/5/16`
+
+1. 修复`Object.ResultFormat`方法无法处理`InnerException`错误的问题。
+2. 修复`Object.ExceptionFormat`方法无法处理`InnerException`错误的问题。
+
+## 版本:1.2.15`2025/5/16`
+
+1. 新增`SUI.innerExceptionFormat`方法,格式化服务器内部错误对象。
+2. 更新`Object.ResultFormat`方法,增加`SUI.innerExceptionFormat`方法的判断。
+3. 更新`Object.ExceptionFormat`方法,增加`SUI.innerExceptionFormat`方法的判断。
+
+## 版本:1.2.14`2024/11/13`
+
+1. 更新`SUI.Validate.Password`方法,密码中必须包含字母、数字。
+2. 新增`SUI.Validate.PasswordMedium`方法,密码中必须包含字母、数字、特称字符。
+3. 新增`SUI.Validate.PasswordComplex`方法,密码中必须包含大小字母、数字、特称字符。
+
+## 版本:1.2.13`2024/11/10`
+
+1. 新增`SUI.iframe.getByName`方法,通过框架名获取框架数据。
+
+## 版本:1.2.12`2024/8/25`
+
+1. 优化 SUI.Iframe
+
+## 版本:1.2.11`2024/8/5`
 
-## 版本:1.2.10
+1. 优化 SUI.Browser.GetOS 方法,识别鸿蒙系统。
 
-**更新时间:2024/8/2**
+## 版本:1.2.10`2024/8/2`
 
 1. 新增 SUI.Validate.IsNull 方法,判断是否空值。
 2. 新增 SUI.Validate.IsObject 方法,判断是否是对象。
 3. 优化 Object.IsNullOrEmpty 方法。
 4. 优化 $().Form('GetValue') 方法。
 
-## 版本:1.2.9
-
-**更新时间:2024/8/2**
+## 版本:1.2.9`2024/8/2`
 
 1. 优化 String.IsNullOrEmpty 方法。
 2. 优化 Object.IsNullOrEmpty 方法。
 3. 优化 SUI.Storage.LocalStorage.Add 方法。
 4. 更新 HarmonyOS 系统监测。
 
-## 版本:1.2.8
-
-**更新时间:2024/7/31**
+## 版本:1.2.8`2024/7/31`
 
 1. 优化 sui.checkGallery.js 和 sui.gallery.js。
 
-## 版本:1.2.7
-
-**更新时间:2024/6/1**
+## 版本:1.2.7`2024/6/1`
 
 1. Sleep 方法实用化
 
-## 版本:1.2.6
-
-**更新时间:2024/5/19**
+## 版本:1.2.6`2024/5/19`
 
 1. sui.checkGallery.js 新增 IsLoadMore 属性,判断是否滚动到低时是否加载更多内容,默认 true。
 2. sui.gallery.js 新增 IsLoadMore 属性,判断是否滚动到低时是否加载更多内容,默认 true。
 
-## 版本:1.2.5
-
-**更新时间:2024/5/19**
+## 版本:1.2.5`2024/5/19`
 
 1. 优化 sui.checkGallery.js,使GetLabelDom、GetItemContentDom、GetCombtItemContentDom方法够重写。
 2. 优化 sui.header.Goldhoo.css,增加搜索框下拉框。
 3. 优化 SUI.Storage.LocalStorage.Read 方法。
 4. 优化 SUI.SecureExecute 方法,能够正确报出错误。
 
-## 版本:1.2.4
-
-**更新时间:2024/5/18**
+## 版本:1.2.4`2024/5/18`
 
 1. 优化 sui.topbar.js,增加 enableSearch 属性,是否启用搜索框,默认 true。
 
-**更新时间:2024/5/8**
+## 版本:1.2.3`2024/5/8`
 
 1. 优化 SUI.Iframe 类,去除 url 结尾的 # 号。
 
-## 版本:1.2.2
-
-**更新时间:2024/4/28**
+## 版本:1.2.2`2024/4/28`
 
 1. 优化 SUI.Iframe 类,重写 SUI.Iframe.getName 方法和 SUI.Iframe.getByUrl方法。
 
-## 版本:1.2.1
-
-**更新时间:2024/2/18**
+## 版本:1.2.1`2024/2/18`
 
 1. 修复 String.EncodeUrl 函数在有 ? 符号的情况下重复添加 ? 符号的为问题。
 
-## 版本:1.2.0
-
-**更新时间:2023/12/15**
+## 版本:1.2.0`2023/12/15`
 
 1. 新增 SUI.CallStep 对象,用于按步骤执行任务。
 
-## 版本:1.1.16
-
-**更新时间:2023/12/13**
+## 版本:1.1.16`2023/12/13`
 
 1. 新增 SUI.Iframe 类更名为 SUI.iframe。
 
-## 版本:1.1.15
-
-**更新时间:2023/12/13**
+## 版本:1.1.15`2023/12/13`
 
 1. 新增 SUI.Iframe.getLast 方法。
 
-## 版本:1.1.14
-
-**更新时间:2023/11/15**
+## 版本:1.1.14`2023/11/15`
 
 1. 更新 Object.EncodeObject 函数,修复未传值时输出错误对象问题。
 
-## 版本:1.1.13
-
-**更新时间:2022/10/25**
+## 版本:1.1.13`2022/10/25`
 
 1. 在 Object.ExceptionFormat 函数中,添加额外内容。
 2. 更新 Date.Parse 函数。
 
-## 版本:1.1.12
-
-**更新时间:2022/10/08**
+## 版本:1.1.12`2022/10/08`
 
 1. Object.ExceptionFormat 函数中,为参数 message 和 Message 使用 String.ConvertToXml 函数进行转换。
 2. String.ConvertToXml 函数,新增 < 和 > 的转换。
 
-## 版本:1.1.11
-
-**更新时间:2022/09/20**
+## 版本:1.1.11`2022/09/20`
 
 1. 更新 String.ConvertToXml 函数。
 
-## 版本:1.1.10
-
-**更新时间:2022/09/16**
+## 版本:1.1.10`2022/09/16`
 
 1. 修复 Object.DecodeUrl 函数,无法转换不完整的url字符串的问题。
 2. 新增 SUI.CreateGUID 函数,该函数等于 SUI.GenerateGUID 函数。
 3. 更新 SUI.Storage.LocalStorage 对象的 Add 和 Read 函数。
 
-## 版本:1.1.7
-
-**更新时间:2022/06/17**
+## 版本:1.1.7`2022/06/17`
 
 1. 更新$().Form('GetValue/SetValue') 方法,使其支持 select 组件。
 
-## 版本:1.1.6
-
-**更新时间:2022/06/09**
+## 版本:1.1.6`2022/06/09`
 
 1. 更新 SUI.Browser 类,增加安卓和鸿蒙系统的识别。
 
-## 版本:1.1.5
-
-**更新时间:2022/06/08**
+## 版本:1.1.5`2022/06/08`
 
 1. 更新 SUI.checkGallery.js 中的 CheckGallery.Create 方法,增加浏览器的种类。
 2. 新增标签组件。
 
-## 版本:1.1.4
-
-**更新时间:2021/12/6**
+## 版本:1.1.4`2021/12/6`
 
 1. 更新 SUI.Browser.GetBrowser 方法,增加浏览器的种类。
 2. 更新 SUI.Browser.GetOs 方法,增加 Windows 11、Android 的支持。
 
-## 版本:1.1.2
-
-**更新时间:2021/12/1**
+## 版本:1.1.2`2021/12/1`
 
 1. 重写 loginHelper 组件。
 2. 修复 checkbox 组件 bug。
 3. 修复 SUI.Messager.Alert 内容为对象时无法显示的问题。
 
-## 版本:1.1.1
-
-**更新时间:2021/11/30**
+## 版本:1.1.1`2021/11/30`
 
 1. 新增 pictureviewer 图片查看器组件,全屏浏览一组图片。
 
-## 版本:1.1.0
-
-**更新时间:2021/11/25**
+## 版本:1.1.0`2021/11/25`
 
 1. 新增 datagrid 数据表格组件。
 
-## 版本:1.0.10
-
-**更新时间:2021/08/26**
+## 版本:1.0.10`2021/08/26`
 
 1. 修复 String.EncodeUrl 方法,当参数无效时不输出 url 的 bug。
 
-## 版本:1.0.9
-
-**更新时间:2021/08/24**
+## 版本:1.0.9`2021/08/24`
 
 1. 新增 SUI.Iframe 类,子框管理类。
 
-## 版本:1.0.8
-
-**更新时间:2021/07/22**
+## 版本:1.0.8`2021/07/22`
 
 1. 新增 sui.table.js 属性 Width。
 2. 新增 sui.table.js 属性 Height。
 
-## 版本:1.0.7
-
-**更新时间:2021/07/19**
+## 版本:1.0.7`2021/07/19`
 
 1. 新增 sui.table.js 属性 Thead 。
 2. 更新 sui.table.js 的创建表头方法。
 
-## 版本:1.0.6
-
-**更新时间:2021/06/16**
+## 版本:1.0.6`2021/06/16`
 
 1. 新增 Object.DecodeUrl 方法,将url参数解码成对象。
 2. 新增 Object.EncodeObject 方法,返回编码成服务器能接收的对象。
 
-## 版本:1.0.5
-
-**更新时间:2021/06/08**
+## 版本:1.0.5`2021/06/08`
 
 1. 优化 SUI.Messager.Window。
 
-## 版本:1.0.4
-
-**更新时间:2021/04/15**
+## 版本:1.0.4`2021/04/15`
 
 1. 修复 SUI.Messager.Alert bug。
 
-## 版本:1.0.0
-
-**更新时间:2021/03/20**
+## 版本:1.0.0`2021/03/20`
 
 1. 此版本与 版本0 不兼容。
 2. 因图标库更新到 Font Awesome Free 5.X,出现兼容性问题,因此发布新的大版本更新。

+ 14 - 1
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/docs/components/form.html

@@ -27,6 +27,10 @@
         <h2 id="示例">示例<a class="bd-anchor" href="#示例">#</a></h2>
         <div class="bd-example">
             <form id="example">
+                <p>
+                    <label>标签</label>
+                    <span class="form-item-content" name="tag"></span>
+                </p>
                 <p>
                     <label>姓名</label>
                     <input class="sui-input" name="name" />
@@ -68,6 +72,7 @@
                 */
                 function setExample() {
                     $('#example').Form('SetValue', {
+                        tag: '员工',
                         name: 'name',
                         age: 8,
                         isGetup: true
@@ -220,4 +225,12 @@
     </div>
 </body>
 
-</html>
+</html>
+
+<style>
+    .form-item-content {
+        display: inline-flex;
+        align-items: center;
+        width: 160px;
+    }
+</style>

+ 27 - 15
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/docs/tools.html

@@ -22,7 +22,7 @@
 				chineseUpper: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二', '十三', '十四', '十五', '十六',
 					'十七', '十八', '十九', '二十', '二十一', '二十二', '二十三', '二十四', '二十五', '二十六', '二十七', '二十八', '二十九', '三十',
 					'三十一',
-					'三十二', '三十三'
+					'三十二', '三十三', '三十四', '三十五', '三十六', '三十七', '三十八', '三十九', '四十', '四十一', '四十二', '四十三', '四十四', '四十五', '四十六', '四十七', '四十八', '四十九', '五十'
 				]
 			};
 			if (isNaN(data.chapter)) {
@@ -44,10 +44,24 @@
 			var data = getData();
 			var dom = '';
 			for (var i = 0; i < data.chapter; i++) {
-				dom += '<navPoint id="navPoint-' + (data.playOrder + i) + '" playOrder="' + (data.playOrder + i) +
-					'"><navLabel><text>第' + (data.chineseUpper[data.volume - 1] || data.volume) +
-					'卷</text></navLabel><content src="Text/ST' + data.volume + '-' + (i + 1) +
-					'.html" /></navPoint>';
+				let st = `ST${data.volume}-${i + 1}`;
+				let sj = data.chineseUpper[data.volume - 1] || data.volume;
+				let zj = '';
+				if (i === 0) {
+					zj = '插图';
+				} else if (i === 1) {
+					zj = '序章';
+				} else if (i === data.chapter - 2) {
+					zj = '尾声';
+				} else if (i === data.chapter - 1) {
+					zj = '后记';
+				} else {
+					zj = `第${data.chineseUpper[i-2]}章`;
+				}
+				dom += `<navPoint id="${st}" playOrder="${data.playOrder + i}">`;
+				dom += `<navLabel><text>第${sj}卷 ${zj}</text></navLabel>`;
+				dom += `<content src="Text/${st}.html" />`;
+				dom += `</navPoint>`;
 			}
 			$('#textarea').val(dom);
 		}
@@ -59,13 +73,11 @@
 			var data = getData();
 			var dom = '';
 			var i = 0;
-			for (i = 0; i < data.chapter; i++) {
-				dom += '<item href="Text/ST' + data.volume + '-' + (i + 1) + '.html" id="ST' + data.volume + '-' + (i +
-					1) + '.html" media-type="application/xhtml+xml" />';
-			}
 			for (i = 0; i < data.images; i++) {
-				dom += '<item href="Images/ST' + data.volume + '-' + (i + 1) + '.jpg" id="ST' + data.volume + '-' + (i +
-					1) + '.jpg" media-type="image/jpg" />';
+				dom += '<item id="ST' + data.volume + '-' + (i + 1) + '.jpg" href="Images/ST' + data.volume + '-' + (i + 1) + '.jpg" media-type="image/jpeg" />';
+			}
+			for (i = 0; i < data.chapter; i++) {
+				dom += '<item id="ST' + data.volume + '-' + (i + 1) + '" href="Text/ST' + data.volume + '-' + (i + 1) + '.xhtml" media-type="application/xhtml+xml" />';
 			}
 			$('#textarea').val(dom);
 		}
@@ -77,8 +89,8 @@
 			var data = getData();
 			var dom = '';
 			for (var i = 0; i < data.chapter; i++) {
-				dom += '<itemref idref="Text/ST' + data.volume + '-' + (i + 1) +
-					'.html" />';
+				dom += '<itemref idref="ST' + data.volume + '-' + (i + 1) +
+					'" />';
 			}
 			$('#textarea').val(dom);
 		}
@@ -90,8 +102,8 @@
 			var data = getData();
 			var dom = '';
 			for (var i = 0; i < data.images; i++) {
-				dom += '<p><img alt="image" style="width:100%" src="../Images/ST' + data.volume + '-' + (i + 1) +
-					'.jpg" /></p>';
+				dom += '<p><img src="../Images/ST' + data.volume + '-' + (i + 1) +
+					'.jpg" width="100%" alt="" /></p>';
 			}
 			$('#textarea').val(dom);
 		}

+ 12 - 25
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/extend/topbar/themes/sui.topbar.Goldhoo.css

@@ -3,7 +3,7 @@
 	* SUI Topbar
     * 顶栏 默认样式
 	* 基于 SUI 库开发的组件,适用于 Web 应用程序
-	* 最后更新日期:2024年08月19
+	* 最后更新日期:2024年08月16
 */
 
 /* ------ Topbar [ ------ */
@@ -50,18 +50,19 @@
     height: 60%;
 }
 
-.sui-topbar .topbar-logo,
-.sui-topbar .topbar-menu>a,
-.sui-topbar .topbar-menu>span,
-.sui-topbar>.topbar-functions,
-.sui-topbar>.topbar-functions>a,
-.sui-topbar>.topbar-functions>span,
+.sui-topbar .topbar-logo:before,
+.sui-topbar .topbar-menu>a:before,
+.sui-topbar .topbar-menu>span:before,
+.sui-topbar>.topbar-functions:before,
 .sui-topbar>.topbar-functions>a,
 .sui-topbar>.topbar-functions>span,
-.sui-topbar>.topbar-link {
-    display: inline-flex;
+.sui-topbar>.topbar-functions>a:before,
+.sui-topbar>.topbar-functions>span:before,
+.sui-topbar>.topbar-link:before {
+    display: inline-block;
+    content: '';
     height: 54px;
-    align-items: center;
+    vertical-align: middle;
 }
 
 .sui-topbar .topbar-menu>a,
@@ -246,19 +247,10 @@
 }
 
 .topbar-searchIcon {
-    width: 30px;
+    width: 20px;
     height: 20px;
 }
 
-.topbar-searchIcon-box {
-    position: absolute;
-    width: 100px;
-    height: 30px;
-    right: 0;
-    top: -5px;
-    border: 1px solid #581818;
-}
-
 .topbar-closeSearchIcon {
     width: 40px;
     height: 40px;
@@ -303,9 +295,4 @@
 .mobile.search-active .topbar-functions {
     left: 0;
     top: 0;
-}
-
-.mobile .topbar-loginLink {
-    overflow: hidden;
-    max-width: 80px;
 }

+ 1 - 1
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/font-awesome/Icons.html

@@ -5483,7 +5483,7 @@
 		// 生成图标
 		var CreateIcons = function (font) {
 			// 若参数不满足条件,终止方法的执行
-			if (Object.IsNullOrEmpty(font) || String.IsNullOrWhiteSpace(font.Name) || !(font.Fonts instanceof Array)) {
+			if (font === null || font === undefined || !(typeof font.Name === 'string' && font.Name.length > 0) || !(font.Fonts instanceof Array)) {
 				return false;
 			};
 

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 6 - 0
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/lib/qrcode/qrcode.min.js


+ 7 - 7
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/src/base64.js

@@ -1,14 +1,14 @@
 
 
-/* base64.js文件 */
+/* base64.js鏂囦欢 */
 
 
 var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
 
-/* 将Ansi编码的字符串进行Base64编码 */
+/* 灏咥nsi缂栫爜鐨勫瓧绗︿覆杩涜�Base64缂栫爜 */
 function encode64(input)
 {
-    /* 处理中文问题 */
+    /* 澶勭悊涓�枃闂�� */
     input = strUnicode2Ansi(input);
     
     var output = "";
@@ -48,7 +48,7 @@ function encode64(input)
     return output;
 }
 
-/* 将Base64编码字符串转换成Ansi编码的字符串 */
+/* 灏咮ase64缂栫爜瀛楃�涓茶浆鎹㈡垚Ansi缂栫爜鐨勫瓧绗︿覆 */
 function decode64(input)
 {
   var output = "";
@@ -93,7 +93,7 @@ function decode64(input)
   return strAnsi2Unicode(output);
 }
 
-/* ################## 为了解决中文问题 把Unicode转成Ansi和把Ansi转换成Unicode ########################### */
+/* ################## 涓轰簡瑙e喅涓�枃闂�� 鎶奤nicode杞�垚Ansi鍜屾妸Ansi杞�崲鎴怳nicode ########################### */
 
 function UnicodeChr()
 {
@@ -131,7 +131,7 @@ function AnsiToUnicode(chrCode)
     return parseInt(chrHex,16)
 }
 
-//将Unicode编码的字符串,转换成Ansi编码的字符串
+//灏哢nicode缂栫爜鐨勫瓧绗︿覆锛岃浆鎹㈡垚Ansi缂栫爜鐨勫瓧绗︿覆
 function strUnicode2Ansi(asContents)
 {
     var len1=asContents.length;
@@ -158,7 +158,7 @@ function strUnicode2Ansi(asContents)
     return temp;
 }
 
-/* 将Ansi编码的字符串,转换成Unicode编码的字符串 */
+/* 灏咥nsi缂栫爜鐨勫瓧绗︿覆锛岃浆鎹㈡垚Unicode缂栫爜鐨勫瓧绗︿覆 */
 function strAnsi2Unicode(asContents)
 {
     var len1=asContents.length;

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/src/sui.main-min.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 353 - 230
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/src/sui.main.js


+ 1 - 1
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Views/Shared/_Layout.cshtml

@@ -28,7 +28,7 @@
     <link href="@Url.Content("~/Content/themes/Client/version1/themes/" + Befri.Goldhoo.Mobile.MvcUI.WebConstants.THEMES +"/style.css")?v=0.1.2" rel="stylesheet" />
     <script src="@Url.Content("~/Content/themes/Library/jQuery/1.9.1/jquery.min.js")"></script>
     <script src="@Url.Content("~/Content/themes/SUI/src/jquery.mobile.touch.min.js")"></script>
-    <script src="@Url.Content("~/Content/themes/SUI/src/sui.main.js")?v=1.2.11"></script>
+    <script src="@Url.Content("~/Content/themes/SUI/src/sui.main.js")?v=1.2.17"></script>
     <script src="@Url.Content("~/Content/themes/SUI/extend/topbar/sui.topbar.js")?v=1.1.0"></script>
     <script src="@Url.Content("~/Content/themes/SUI/extend/header/sui.header.js")?v=1.0.1"></script>
     <script src="@Url.Content("~/Content/themes/Client/version1/src/system.js")?v=1.1.0"></script>

+ 1 - 1
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Views/Shared/_LayoutEmpty.cshtml

@@ -16,7 +16,7 @@
     <link href="@Url.Content("~/Content/themes/SUI/themes/default/sui.css")?v=1.2.11" rel="stylesheet" />
     <script src="@Url.Content("~/Content/themes/SUI/src/jquery.min.js")"></script>
     <script src="@Url.Content("~/Content/themes/SUI/src/jquery.mobile.touch.min.js")"></script>
-    <script src="@Url.Content("~/Content/themes/SUI/src/sui.main.js")?v=1.2.11"></script>
+    <script src="@Url.Content("~/Content/themes/SUI/src/sui.main.js")?v=1.2.17"></script>
     <script src="@Url.Content("~/Content/themes/Client/version1/src/system.js")?v=1.1.0"></script>
     <script type="text/javascript">
         // 电脑谷歌浏览器下载地址

+ 109 - 0
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Web.config

@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  有关如何配置 ASP.NET 应用程序的详细信息,请访问
+  http://go.microsoft.com/fwlink/?LinkId=301880
+  -->
+<configuration>
+  <configSections>
+    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
+    <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling" />
+    
+    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
+  <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
+  <dataConfiguration defaultDatabase="befri_Goldhoo" />
+  <connectionStrings>
+    <add name="befri_Goldhoo" connectionString="data source=106.15.35.130;packet size=4096;user id=sa;Password=jinhu2016!;persist security info=False;initial catalog=befri_Goldhoo;" providerName="System.Data.SqlClient" />
+    <add name="befri_Goldhoo2021" connectionString="data source=106.15.35.130;packet size=4096;user id=sa;Password=jinhu2016!;persist security info=False;initial catalog=befri_Goldhoo2021;" providerName="System.Data.SqlClient" />
+	<add name="Test_Goldhoo" connectionString="data source=171.220.242.38;packet size=4096;user id=sa;Password=5tgb*UHB;persist security info=False;initial catalog=befri_Goldhoo;" providerName="System.Data.SqlClient" />
+    <add name="localhost" connectionString="data source=localhost;packet size=4096;user id=sa;Password=123456;persist security info=False;initial catalog=befri_Goldhoo;" providerName="System.Data.SqlClient" />
+  </connectionStrings>
+  <exceptionHandling>
+    <exceptionPolicies>
+      <add name="defaultPolicy">
+        <exceptionTypes>
+          <!--<add type="Artech.VM.Models.InvalidUserNameException, Artech.VM" postHandlingAction="ThrowNewException" name="InvalidUserNameException">
+            <exceptionHandlers>
+              <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Extensions" errorMessage="用户名不存在" />
+            </exceptionHandlers>
+          </add>
+          <add type="Artech.VM.Models.InvalidPasswordException, Artech.VM" postHandlingAction="ThrowNewException" name="InvalidPasswordException">
+            <exceptionHandlers>
+              <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Extensions" errorMessage="密码与用户名不匹配" />
+            </exceptionHandlers>
+          </add>
+          <add type="Artech.VM.Models.OutOfStockException, Artech.VM" postHandlingAction="ThrowNewException" name="OutOfStockException">
+            <exceptionHandlers>
+              <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Extensions" errorMessage="库存不足!" />
+            </exceptionHandlers>
+          </add>-->
+        </exceptionTypes>
+      </add>
+    </exceptionPolicies>
+  </exceptionHandling>
+  <appSettings>
+    <add key="webpages:Version" value="3.0.0.0" />
+    <add key="webpages:Enabled" value="false" />
+    <add key="ClientValidationEnabled" value="true" />
+    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
+    <!-- WebApi -->
+    <add key="WebApi:ResourceUrl" value="http://localhost:12965" />
+    <!--<add key="WebApi:ResourceUrl" value="http://39.106.194.30:8080/goldhoowebapi"/>-->
+    <add key="WebApi:U8Url" value="http://182.138.106.120:8083/U8WebApi/api/" />
+    <add key="WebApi:HistoryUrl" value="http://106.15.35.130:8089/Mobile(2021)" />
+    <!-- 产品配置 -->
+    <add key="Themes" value="Goldhoo" />
+    <add key="ProjectName" value="经销商订货系统" />
+    <add key="TitleName" value="成都市金虎家俱有限公司" />
+    <add key="CompanyName" value="成都市金虎家俱有限公司" />
+    <add key="Copyright" value="成都市金虎家俱有限公司" />
+    <add key="CopyrightDate" value="" />
+    <add key="TechSupport" value="成都能友科技有限责任公司提供技术支持" />
+  </appSettings>
+  <system.web>
+    <authentication mode="Forms">
+      <forms name=".GOLDHOOMOBILE" loginUrl="~/Account/Login" timeout="3600" />
+    </authentication>
+    <compilation debug="true" targetFramework="4.5" />
+    <httpRuntime targetFramework="4.5" />
+  </system.web>
+  <system.webServer>
+    <security>
+      <requestFiltering>
+        <requestLimits maxAllowedContentLength="1073741824" />
+      </requestFiltering>
+    </security>
+    <modules>
+      <remove name="FormsAuthenticationModule" />
+    </modules>
+  </system.webServer>
+  <runtime>
+    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+			<dependentAssembly>
+				<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31BF3856AD364E35" culture="neutral" />
+				<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
+			</dependentAssembly>
+      <dependentAssembly>
+        <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
+        <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
+      </dependentAssembly>
+      <dependentAssembly>
+        <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
+        <bindingRedirect oldVersion="0.0.0.0-2.0.12.0" newVersion="2.0.12.0" />
+      </dependentAssembly>
+      <dependentAssembly>
+        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
+        <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
+      </dependentAssembly>
+    </assemblyBinding>
+  </runtime>
+  <entityFramework>
+    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
+      <parameters>
+        <parameter value="mssqllocaldb" />
+      </parameters>
+    </defaultConnectionFactory>
+    <providers>
+      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
+    </providers>
+  </entityFramework>
+</configuration>

+ 105 - 0
src/Befri.Goldhoo/Befri.Goldhoo.MvcUI/Web.config

@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  有关如何配置 ASP.NET 应用程序的详细信息,请访问
+  http://go.microsoft.com/fwlink/?LinkId=301880
+  -->
+<configuration>
+  <configSections>
+    <section name="userPrivilegeProvider" type="Befri.Web.Mvc.UserPrivilegeProviderSection,Befri.Web.Mvc" />
+    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />
+    <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling" />
+  </configSections>
+  <userPrivilegeProvider defaultProvider="sqlProvider" enabled="true" actionNames="增加,修改,删除,打印,导出,审核,反审核" splitChar=",">
+    <providers>
+      <add name="sqlProvider" type="Befri.Web.Mvc.Security.SqlUserPrivilegeProvider, Befri.Web.Mvc" defaultDatabase="localhost" userModPrivilegesProcName="[Admin].[p_GetUserPrivilegesByLoginName]"></add>
+    </providers>
+  </userPrivilegeProvider>
+  <dataConfiguration defaultDatabase="befri_Goldhoo" />
+  <connectionStrings>
+    <add name="befri_Goldhoo" connectionString="data source=106.15.35.130;packet size=4096;user id=sa;Password=jinhu2016!;persist security info=False;initial catalog=befri_Goldhoo;" providerName="System.Data.SqlClient" />
+	<add name="Test_Goldhoo" connectionString="data source=171.220.242.38;packet size=4096;user id=sa;Password=5tgb*UHB;persist security info=False;initial catalog=befri_Goldhoo;" providerName="System.Data.SqlClient" />
+	<add name="localhost" connectionString="data source=localhost;packet size=4096;user id=sa;Password=123456;persist security info=False;initial catalog=befri_Goldhoo;" providerName="System.Data.SqlClient" />
+  </connectionStrings>
+  <exceptionHandling>
+    <exceptionPolicies>
+      <add name="defaultPolicy">
+        <exceptionTypes>
+          <!--<add type="Artech.VM.Models.InvalidUserNameException, Artech.VM" postHandlingAction="ThrowNewException" name="InvalidUserNameException">
+            <exceptionHandlers>
+              <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Extensions" errorMessage="用户名不存在" />
+            </exceptionHandlers>
+          </add>
+          <add type="Artech.VM.Models.InvalidPasswordException, Artech.VM" postHandlingAction="ThrowNewException" name="InvalidPasswordException">
+            <exceptionHandlers>
+              <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Exten
+			  sions" errorMessage="密码与用户名不匹配" />
+            </exceptionHandlers>
+          </add>
+          <add type="Artech.VM.Models.OutOfStockException, Artech.VM" postHandlingAction="ThrowNewException" name="OutOfStockException">
+            <exceptionHandlers>
+              <add name="ErrorMessageHandler" type="Artech.Mvc.Extensions.ErrorMessageHandler, Artech.Mvc.Extensions" errorMessage="库存不足!" />
+            </exceptionHandlers>
+          </add>-->
+        </exceptionTypes>
+      </add>
+    </exceptionPolicies>
+  </exceptionHandling>
+  <appSettings>
+    <add key="WebApi:ResourceUrl" value="http://localhost:12965" />
+    <!--<add key="webapi:resourceurl" value="http://39.106.194.30:8080/goldhoowebapi" />-->
+    <add key="WebApi:BackstageUrl" value="http://localhost:2693" />
+    <add key="WebApi:ShoppingUrl" value="http://106.15.35.130:8089/Mobile(2021)" />
+    <add key="WebApi:MobileUrl" value="http://localhost:2734" />
+    <add key="webapi:u8url" value="http://182.138.106.120:8083/U8WebApi/api/" />
+    <add key="webpages:Version" value="3.0.0.0" />
+    <add key="webpages:Enabled" value="false" />
+    <add key="ClientValidationEnabled" value="true" />
+    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
+  </appSettings>
+  <system.web>
+    <authentication mode="Forms">
+      <forms loginUrl="~/Account/Login" timeout="144000" />
+    </authentication>
+    <compilation debug="true" targetFramework="4.5" />
+    <httpRuntime targetFramework="4.5" />
+  </system.web>
+  <system.webServer>
+    <security>
+      <requestFiltering>
+        <requestLimits maxAllowedContentLength="1073741824" />
+      </requestFiltering>
+    </security>
+    <modules>
+      <remove name="FormsAuthenticationModule" />
+    </modules>
+  </system.webServer>
+  <runtime>
+    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+      <dependentAssembly>
+        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
+        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
+      </dependentAssembly>
+      <dependentAssembly>
+        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
+        <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
+      </dependentAssembly>
+      <dependentAssembly>
+        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
+        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
+      </dependentAssembly>
+      <dependentAssembly>
+        <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
+        <bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
+      </dependentAssembly>
+      <dependentAssembly>
+        <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
+        <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
+      </dependentAssembly>
+      <dependentAssembly>
+        <assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
+        <bindingRedirect oldVersion="0.0.0.0-2.0.12.0" newVersion="2.0.12.0" />
+      </dependentAssembly>
+    </assemblyBinding>
+  </runtime>
+
+</configuration>

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä