| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -11,7 +11,6 @@ namespace Txgy.FilesWatcher.model
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public class DBConfig
 | 
					 | 
					 | 
					 | 
					    public class DBConfig
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    {
 | 
					 | 
					 | 
					 | 
					    {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private static readonly string _connStr;
 | 
					 | 
					 | 
					 | 
					        private static readonly string _connStr;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        private static IDbConnection Cnn => new MySqlConnection(_connStr);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        static DBConfig()
 | 
					 | 
					 | 
					 | 
					        static DBConfig()
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        {
 | 
					 | 
					 | 
					 | 
					        {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            _connStr = "Server=bj-cdb-q64mbxr6.sql.tencentcdb.com;Port=60027;Database=yuwu2021;Uid=yuwudba;Pwd=Yw123456;charset='utf8'";
 | 
					 | 
					 | 
					 | 
					            _connStr = "Server=bj-cdb-q64mbxr6.sql.tencentcdb.com;Port=60027;Database=yuwu2021;Uid=yuwudba;Pwd=Yw123456;charset='utf8'";
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -19,54 +18,47 @@ namespace Txgy.FilesWatcher.model
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public static MySqlConnection OpenConnection()
 | 
					 | 
					 | 
					 | 
					        public static MySqlConnection OpenConnection()
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        {
 | 
					 | 
					 | 
					 | 
					        {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            MySqlConnection connection = new MySqlConnection(_connStr);
 | 
					 | 
					 | 
					 | 
					            MySqlConnection connection = new MySqlConnection(_connStr);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          //  SimpleCRUD.SetDialect(SimpleCRUD.Dialect.MySQL);
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            connection.Open();
 | 
					 | 
					 | 
					 | 
					            connection.Open();
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return connection;
 | 
					 | 
					 | 
					 | 
					            return connection;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public string getConfig(string configkey)
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        {
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return "";
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        /////////////////////////////////
 | 
					 | 
					 | 
					 | 
					        /////////////////////////////////
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //createtables 配置
 | 
					 | 
					 | 
					 | 
					        //createtables 配置
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //起始台站号
 | 
					 | 
					 | 
					 | 
					        //起始台站号
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public int stationNoStart = 02;
 | 
					 | 
					 | 
					 | 
					        public int stationNoStart = 02;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //结束台站号
 | 
					 | 
					 | 
					 | 
					        //结束台站号
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public int stationNoend => 27;
 | 
					 | 
					 | 
					 | 
					        public int stationNoend = 27;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //起始年月
 | 
					 | 
					 | 
					 | 
					        //起始年月
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public string YearMonthStart => "2022-03";
 | 
					 | 
					 | 
					 | 
					        public string YearMonthStart = "2022-03";
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //结束年月
 | 
					 | 
					 | 
					 | 
					        //结束年月
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public string YearMonthend => "2027-03";
 | 
					 | 
					 | 
					 | 
					        public string YearMonthend = "2027-03";
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //uploadminiseed 配置(以分钟为单位)
 | 
					 | 
					 | 
					 | 
					        //uploadminiseed 配置(以分钟为单位)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //Miniseed文件路径BASE
 | 
					 | 
					 | 
					 | 
					        public string MiniseedPathBase = "Y:/YuwuN3102mseed/NET2023";
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public string MiniseedPathBase => "Y:/YuwuN3102mseed/NET2023";
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //从当前年、月、日、时、分,往以前X分钟
 | 
					 | 
					 | 
					 | 
					        //从当前年、月、日、时、分,往以前X分钟
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //'BeforeNMin' => 60*24*1,
 | 
					 | 
					 | 
					 | 
					        //'BeforeNMin' => 60*24*1,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public int BeforeNMin => 60 * 1 * 1;
 | 
					 | 
					 | 
					 | 
					        public int BeforeNMin = 60 * 1 * 1;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //从当前年、月、日、时、分,往以后X分钟
 | 
					 | 
					 | 
					 | 
					        //从当前年、月、日、时、分,往以后X分钟
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //'AfterNMin' => 60*24*1,
 | 
					 | 
					 | 
					 | 
					        //'AfterNMin' => 60*24*1,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public int AfterNMin => 10 * 1 * 1;
 | 
					 | 
					 | 
					 | 
					        public int AfterNMin = 10 * 1 * 1;
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        /////////////////////////////////
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        /////////////////////////////////
 | 
					 | 
					 | 
					 | 
					        /////////////////////////////////
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //uploadrealtime 配置(以天为单位)
 | 
					 | 
					 | 
					 | 
					        //uploadrealtime 配置(以天为单位)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //realtimeEvent文件路径BASE
 | 
					 | 
					 | 
					 | 
					        //realtimeEvent文件路径BASE
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public string EventPathBase => "Y:/YuwuN3102mseed/";
 | 
					 | 
					 | 
					 | 
					        public string EventPathBase = "Y:/YuwuN3102mseed/";
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //从当前年、月、日往以前X天
 | 
					 | 
					 | 
					 | 
					        //从当前年、月、日往以前X天
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public int EventBeforeNDay => 3;
 | 
					 | 
					 | 
					 | 
					        public int EventBeforeNDay = 3;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //从当前年、月、日往以后X天
 | 
					 | 
					 | 
					 | 
					        //从当前年、月、日往以后X天
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public int EventAfterNDay => 1;
 | 
					 | 
					 | 
					 | 
					        public int EventAfterNDay = 1;
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        /////////////////////////////////
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        /////////////////////////////////
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //uploadpostpro 配置(以天为单位)
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //PostProEvent文件路径BASE
 | 
					 | 
					 | 
					 | 
					        //PostProEvent文件路径BASE
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public string PostProEventPathBase => "Y:/YuwuN3102mseed/post/";
 | 
					 | 
					 | 
					 | 
					        public string PostProEventPathBase = "Y:/YuwuN3102mseed/post/";
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            //从当前年、月、日往以前X天
 | 
					 | 
					 | 
					 | 
					            //从当前年、月、日往以前X天
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					           public int PostProEventBeforeNDa => 3;
 | 
					 | 
					 | 
					 | 
					           public int PostProEventBeforeNDa = 3;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        //从当前年、月、日往以后X天
 | 
					 | 
					 | 
					 | 
					        //从当前年、月、日往以后X天
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        public int PostProEventAfterNDay => 1;
 | 
					 | 
					 | 
					 | 
					        public int PostProEventAfterNDay = 1;
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        
 | 
					 | 
					 | 
					 | 
					        
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
 
 |