| 
					
				 | 
			
			
				@@ -5,6 +5,7 @@ using System; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using System.Collections.Generic; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using System.Configuration; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using System.Diagnostics; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using System.IO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using System.Linq; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using System.Reflection; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using System.Threading; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -17,29 +18,18 @@ namespace XdCxRhDW 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         static Program() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (Debugger.IsAttached) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //DevExpress23.2以上版本查看未本地化的资源 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //DevExpress.Utils.Localization.XtraLocalizer.EnableTraceSource(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            WindowsFormsSettings.AllowDpiScale = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            WindowsFormsSettings.AllowHoverAnimation = DevExpress.Utils.DefaultBoolean.True; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            WindowsFormsSettings.AllowDefaultSvgImages = DevExpress.Utils.DefaultBoolean.True; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            WindowsFormsSettings.AllowRoundedWindowCorners = DevExpress.Utils.DefaultBoolean.True; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            WindowsFormsSettings.AnimationMode = AnimationMode.EnableAll; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            WindowsFormsSettings.BackgroundSkinningMode = BackgroundSkinningMode.AllColors; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            WindowsFormsSettings.DefaultAllowHtmlDraw = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            WindowsFormsSettings.DefaultLookAndFeel.SetSkinStyle(SkinStyle.WXICompact); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            WindowsFormsSettings.DefaultFont = new System.Drawing.Font("微软雅黑", 10f); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            WindowsFormsSettings.SetPerMonitorDpiAware(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             AppDomain.CurrentDomain.SetData("PRIVATE_BINPATH", "AddIns;"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var m = typeof(AppDomainSetup).GetMethod("UpdateContextProperty", BindingFlags.NonPublic | BindingFlags.Static); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var funsion = typeof(AppDomain).GetMethod("GetFusionContext", BindingFlags.NonPublic | BindingFlags.Instance); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             m.Invoke(null, new object[] { funsion.Invoke(AppDomain.CurrentDomain, null), "PRIVATE_BINPATH", "AddIns;" }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            AppDomain.CurrentDomain.UnhandledException += (sender, e) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                var args = e.ExceptionObject as Exception; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                XtraMessageBox.Show("出现未处理的异常,程序即将退出!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                Serilog.Log.Error("出现未处理的异常,程序即将退出!", args); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// <summary> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// 应用程序的主入口点。 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /// </summary> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -48,7 +38,7 @@ namespace XdCxRhDW 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Serilog.Log.Logger = new Serilog.LoggerConfiguration() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .WriteTo.Console(outputTemplate: "{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level:u3}] {Message:lj}{NewLine}{Exception}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .WriteTo.Logger(p=>p.Filter.ByIncludingOnly(e=>e.Level== Serilog.Events.LogEventLevel.Information) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .WriteTo.Logger(p => p.Filter.ByIncludingOnly(e => e.Level == Serilog.Events.LogEventLevel.Information) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .WriteTo.File("Logs\\Info\\.log", rollingInterval: Serilog.RollingInterval.Day)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .WriteTo.Logger(p => p.Filter.ByIncludingOnly(e => e.Level == Serilog.Events.LogEventLevel.Warning) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .WriteTo.File("Logs\\Warning\\.log", rollingInterval: Serilog.RollingInterval.Day)) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -56,6 +46,22 @@ namespace XdCxRhDW 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .WriteTo.File("Logs\\Error\\.log", rollingInterval: Serilog.RollingInterval.Day)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .CreateLogger(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            WindowsFormsSettings.AllowDpiScale = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            WindowsFormsSettings.AllowHoverAnimation = DevExpress.Utils.DefaultBoolean.True; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            WindowsFormsSettings.AllowDefaultSvgImages = DevExpress.Utils.DefaultBoolean.True; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            WindowsFormsSettings.AllowRoundedWindowCorners = DevExpress.Utils.DefaultBoolean.True; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            WindowsFormsSettings.AnimationMode = AnimationMode.EnableAll; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            WindowsFormsSettings.BackgroundSkinningMode = BackgroundSkinningMode.AllColors; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            WindowsFormsSettings.DefaultAllowHtmlDraw = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            WindowsFormsSettings.DefaultLookAndFeel.SetSkinStyle(SkinStyle.WXICompact); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            WindowsFormsSettings.DefaultFont = new System.Drawing.Font("微软雅黑", 10f); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            WindowsFormsSettings.SetPerMonitorDpiAware(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (Debugger.IsAttached) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //DevExpress23.2以上版本查看未本地化的资源 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                //DevExpress.Utils.Localization.XtraLocalizer.EnableTraceSource(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             string screenTitle = ConfigurationManager.AppSettings["SystemName"]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             string screenCompany = ConfigurationManager.AppSettings["Company"]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             DxHelper.WaitHelper.SetSplashTips("Tips.txt"); 
			 |