diff --git a/CNAS_DBSync/frmSourceSetting.Designer.cs b/CNAS_DBSync/frmSourceSetting.Designer.cs index 3272b3a..a25af23 100644 --- a/CNAS_DBSync/frmSourceSetting.Designer.cs +++ b/CNAS_DBSync/frmSourceSetting.Designer.cs @@ -128,13 +128,19 @@ this.txtNormalFileNameFormat = new System.Windows.Forms.TextBox(); this.label28 = new System.Windows.Forms.Label(); this.txtNormalFileSpecialDateColumnFormat = new System.Windows.Forms.TextBox(); - this.pnlAll = new System.Windows.Forms.Panel(); this.tabPostgreSql = new System.Windows.Forms.TabPage(); this.lblPostgreSql = new System.Windows.Forms.Label(); this.txtPostgreSqlAutoSqlName = new System.Windows.Forms.TextBox(); this.txtPostgreSqlAutoSql = new System.Windows.Forms.TextBox(); this.lblPostgreSqlDateFormat = new System.Windows.Forms.Label(); this.txtPostgreSqlSpecialDateColumnFormat = new System.Windows.Forms.TextBox(); + this.pnlAll = new System.Windows.Forms.Panel(); + this.tabKingbase = new System.Windows.Forms.TabPage(); + this.label1 = new System.Windows.Forms.Label(); + this.txtKingbaseAutoSqlName = new System.Windows.Forms.TextBox(); + this.txtKingbaseAutoSql = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.txtKingbaseSpecialDateColumnFormat = new System.Windows.Forms.TextBox(); this.pnlBottom.SuspendLayout(); this.pnlCenter.SuspendLayout(); this.tabcDS.SuspendLayout(); @@ -146,9 +152,10 @@ this.tabMySql.SuspendLayout(); this.tabOracle.SuspendLayout(); this.tabTxt.SuspendLayout(); - this.tabPostgreSql.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numNormalFileStartIndex)).BeginInit(); + this.tabPostgreSql.SuspendLayout(); this.pnlAll.SuspendLayout(); + this.tabKingbase.SuspendLayout(); this.SuspendLayout(); // // btnOK @@ -198,6 +205,7 @@ this.tabcDS.Controls.Add(this.tabOracle); this.tabcDS.Controls.Add(this.tabTxt); this.tabcDS.Controls.Add(this.tabPostgreSql); + this.tabcDS.Controls.Add(this.tabKingbase); this.tabcDS.Dock = System.Windows.Forms.DockStyle.Fill; this.tabcDS.Location = new System.Drawing.Point(0, 0); this.tabcDS.Name = "tabcDS"; @@ -1214,17 +1222,6 @@ this.txtNormalFileSpecialDateColumnFormat.Enter += new System.EventHandler(this.txtNormalFileSpecialDateColumnFormat_Enter); this.txtNormalFileSpecialDateColumnFormat.Leave += new System.EventHandler(this.txtNormalFileSpecialDateColumnFormat_Leave); // - // pnlAll - // - this.pnlAll.Controls.Add(this.pnlCenter); - this.pnlAll.Controls.Add(this.pnlBottom); - this.pnlAll.Controls.Add(this.pnlTop); - this.pnlAll.Dock = System.Windows.Forms.DockStyle.Fill; - this.pnlAll.Location = new System.Drawing.Point(0, 0); - this.pnlAll.Name = "pnlAll"; - this.pnlAll.Size = new System.Drawing.Size(1182, 543); - this.pnlAll.TabIndex = 1; - // // tabPostgreSql // this.tabPostgreSql.Controls.Add(this.lblPostgreSql); @@ -1286,6 +1283,72 @@ this.txtPostgreSqlSpecialDateColumnFormat.Enter += new System.EventHandler(this.txtPostgreSqlSpecialDateColumnFormat_Enter); this.txtPostgreSqlSpecialDateColumnFormat.Leave += new System.EventHandler(this.txtPostgreSqlSpecialDateColumnFormat_Leave); // + // pnlAll + // + this.pnlAll.Controls.Add(this.pnlCenter); + this.pnlAll.Controls.Add(this.pnlBottom); + this.pnlAll.Controls.Add(this.pnlTop); + this.pnlAll.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlAll.Location = new System.Drawing.Point(0, 0); + this.pnlAll.Name = "pnlAll"; + this.pnlAll.Size = new System.Drawing.Size(1182, 543); + this.pnlAll.TabIndex = 1; + // + // tabKingbase + // + this.tabKingbase.Controls.Add(this.label1); + this.tabKingbase.Controls.Add(this.txtKingbaseAutoSqlName); + this.tabKingbase.Controls.Add(this.txtKingbaseAutoSql); + this.tabKingbase.Controls.Add(this.label3); + this.tabKingbase.Controls.Add(this.txtKingbaseSpecialDateColumnFormat); + this.tabKingbase.Location = new System.Drawing.Point(4, 33); + this.tabKingbase.Name = "tabKingbase"; + this.tabKingbase.Size = new System.Drawing.Size(1174, 454); + this.tabKingbase.TabIndex = 9; + this.tabKingbase.Text = "Kingbase"; + this.tabKingbase.UseVisualStyleBackColor = true; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(112, 62); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(154, 24); + this.label1.TabIndex = 91; + this.label1.Text = "自定义查询语句:"; + // + // txtKingbaseAutoSqlName + // + this.txtKingbaseAutoSqlName.Location = new System.Drawing.Point(220, 59); + this.txtKingbaseAutoSqlName.Name = "txtKingbaseAutoSqlName"; + this.txtKingbaseAutoSqlName.Size = new System.Drawing.Size(230, 31); + this.txtKingbaseAutoSqlName.TabIndex = 89; + // + // txtKingbaseAutoSql + // + this.txtKingbaseAutoSql.Location = new System.Drawing.Point(220, 91); + this.txtKingbaseAutoSql.Multiline = true; + this.txtKingbaseAutoSql.Name = "txtKingbaseAutoSql"; + this.txtKingbaseAutoSql.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.txtKingbaseAutoSql.Size = new System.Drawing.Size(844, 339); + this.txtKingbaseAutoSql.TabIndex = 90; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(110, 27); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(154, 24); + this.label3.TabIndex = 87; + this.label3.Text = "日期列特殊格式:"; + // + // txtKingbaseSpecialDateColumnFormat + // + this.txtKingbaseSpecialDateColumnFormat.Location = new System.Drawing.Point(220, 24); + this.txtKingbaseSpecialDateColumnFormat.Name = "txtKingbaseSpecialDateColumnFormat"; + this.txtKingbaseSpecialDateColumnFormat.Size = new System.Drawing.Size(230, 31); + this.txtKingbaseSpecialDateColumnFormat.TabIndex = 88; + // // frmSourceSetting // this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); @@ -1321,10 +1384,12 @@ this.tabOracle.PerformLayout(); this.tabTxt.ResumeLayout(false); this.tabTxt.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numNormalFileStartIndex)).EndInit(); this.tabPostgreSql.ResumeLayout(false); this.tabPostgreSql.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numNormalFileStartIndex)).EndInit(); this.pnlAll.ResumeLayout(false); + this.tabKingbase.ResumeLayout(false); + this.tabKingbase.PerformLayout(); this.ResumeLayout(false); } @@ -1436,5 +1501,11 @@ private System.Windows.Forms.NumericUpDown numNormalFileStartIndex; private System.Windows.Forms.CheckBox cbxNormalFileCustomDate; private System.Windows.Forms.CheckBox cbxNormalFileNoCustomDate; + private System.Windows.Forms.TabPage tabKingbase; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox txtKingbaseAutoSqlName; + private System.Windows.Forms.TextBox txtKingbaseAutoSql; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox txtKingbaseSpecialDateColumnFormat; } } \ No newline at end of file diff --git a/dll/CNAS_DBSync.exe b/dll/CNAS_DBSync.exe index 1514fc8..682d5c5 100644 Binary files a/dll/CNAS_DBSync.exe and b/dll/CNAS_DBSync.exe differ diff --git a/dll/ErrorLog/20250215.txt b/dll/ErrorLog/20250215.txt index fee2360..a6c9580 100644 --- a/dll/ErrorLog/20250215.txt +++ b/dll/ErrorLog/20250215.txt @@ -20123,3 +20123,22 @@ POSITION: 15 ¼ʱ䣺2025-02-15 16:50:49,295 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3333-===select COLUMN_NAME AS 'ColumnName',IS_NULLABLE AS 'IsNullable',DATA_TYPE AS 'DataType',CHARACTER_MAXIMUM_LENGTH AS 'CharMaxLenth',CHARACTER_OCTET_LENGTH AS 'CharOcterLenth',NUMERIC_PRECISION AS 'NumericPrecision',NUMERIC_SCALE AS 'NumericScale' FROM information_schema.COLUMNS WHERE TABLE_NAME LIKE 'STU'System.Data.DataSet ¼ʱ䣺2025-02-15 16:50:49,296 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3443-===select COLUMN_NAME AS 'ColumnName',IS_NULLABLE AS 'IsNullable',DATA_TYPE AS 'DataType',CHARACTER_MAXIMUM_LENGTH AS 'CharMaxLenth',CHARACTER_OCTET_LENGTH AS 'CharOcterLenth',NUMERIC_PRECISION AS 'NumericPrecision',NUMERIC_SCALE AS 'NumericScale' FROM information_schema.COLUMNS WHERE TABLE_NAME LIKE 'STU'System.Data.DataSet ¼ʱ䣺2025-02-15 16:51:31,702 ߳ID:[1]- :SyncServiceOperation :Start Ϣ:ӡ־12 +¼ʱ䣺2025-02-15 16:51:32,045 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3113-===SELECT Convert(max(Convert(InTime,datetime)) using utf8) FROM STU where no='7a165fce-91c6-4136-b496-b7e1d92de333'server=localhost;port=3306;user=root;password=1;database=cnas;CharSet=utf8;Allow User Variables=True +¼ʱ䣺2025-02-15 16:51:32,045 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3223-===SELECT Convert(max(Convert(InTime,datetime)) using utf8) FROM STU where no='7a165fce-91c6-4136-b496-b7e1d92de333'server=localhost;port=3306;user=root;password=1;database=cnas;CharSet=utf8;Allow User Variables=True +¼ʱ䣺2025-02-15 16:51:32,045 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3223-===SELECT Convert(max(Convert(InTime,datetime)) using utf8) FROM STU where no='7a165fce-91c6-4136-b496-b7e1d92de333'System.Data.DataSet +¼ʱ䣺2025-02-15 16:51:32,069 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3333-===SELECT Convert(max(Convert(InTime,datetime)) using utf8) FROM STU where no='7a165fce-91c6-4136-b496-b7e1d92de333'System.Data.DataSet +¼ʱ䣺2025-02-15 16:51:32,070 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3443-===SELECT Convert(max(Convert(InTime,datetime)) using utf8) FROM STU where no='7a165fce-91c6-4136-b496-b7e1d92de333'System.Data.DataSet +¼ʱ䣺2025-02-15 16:51:32,073 ߳ID:[1]- :FileHelper :GetLocalFile Ϣ:ûҵKingbaseFormatConfig.xml +¼ʱ䣺2025-02-15 16:51:32,169 ߳ID:[1]- :FileOperation :GetFormatConfigData Ϣ:XML ĵ(0, 0)д +¼ʱ䣺2025-02-15 16:51:36,063 ߳ID:[1]- :MySQLDAL :GetTableStruct Ϣ:===-222-===STUSELECT * FROM STU Where 0=1 +¼ʱ䣺2025-02-15 16:51:36,065 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3113-===SELECT * FROM STU Where 0=1server=localhost;port=3306;user=root;password=1;database=cnas;CharSet=utf8;Allow User Variables=True +¼ʱ䣺2025-02-15 16:51:36,065 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3223-===SELECT * FROM STU Where 0=1server=localhost;port=3306;user=root;password=1;database=cnas;CharSet=utf8;Allow User Variables=True +¼ʱ䣺2025-02-15 16:51:36,065 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3223-===SELECT * FROM STU Where 0=1System.Data.DataSet +¼ʱ䣺2025-02-15 16:51:36,065 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3333-===SELECT * FROM STU Where 0=1System.Data.DataSet +¼ʱ䣺2025-02-15 16:51:36,065 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3443-===SELECT * FROM STU Where 0=1System.Data.DataSet +¼ʱ䣺2025-02-15 16:51:36,065 ߳ID:[1]- :MySQLDAL :GetTableStruct Ϣ:===-333-===STUMySQLHelper.ExecuteDataSet(strSql)Table +¼ʱ䣺2025-02-15 16:51:36,070 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3113-===select COLUMN_NAME AS 'ColumnName',IS_NULLABLE AS 'IsNullable',DATA_TYPE AS 'DataType',CHARACTER_MAXIMUM_LENGTH AS 'CharMaxLenth',CHARACTER_OCTET_LENGTH AS 'CharOcterLenth',NUMERIC_PRECISION AS 'NumericPrecision',NUMERIC_SCALE AS 'NumericScale' FROM information_schema.COLUMNS WHERE TABLE_NAME LIKE 'STU'server=localhost;port=3306;user=root;password=1;database=cnas;CharSet=utf8;Allow User Variables=True +¼ʱ䣺2025-02-15 16:51:36,070 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3223-===select COLUMN_NAME AS 'ColumnName',IS_NULLABLE AS 'IsNullable',DATA_TYPE AS 'DataType',CHARACTER_MAXIMUM_LENGTH AS 'CharMaxLenth',CHARACTER_OCTET_LENGTH AS 'CharOcterLenth',NUMERIC_PRECISION AS 'NumericPrecision',NUMERIC_SCALE AS 'NumericScale' FROM information_schema.COLUMNS WHERE TABLE_NAME LIKE 'STU'server=localhost;port=3306;user=root;password=1;database=cnas;CharSet=utf8;Allow User Variables=True +¼ʱ䣺2025-02-15 16:51:36,070 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3223-===select COLUMN_NAME AS 'ColumnName',IS_NULLABLE AS 'IsNullable',DATA_TYPE AS 'DataType',CHARACTER_MAXIMUM_LENGTH AS 'CharMaxLenth',CHARACTER_OCTET_LENGTH AS 'CharOcterLenth',NUMERIC_PRECISION AS 'NumericPrecision',NUMERIC_SCALE AS 'NumericScale' FROM information_schema.COLUMNS WHERE TABLE_NAME LIKE 'STU'System.Data.DataSet +¼ʱ䣺2025-02-15 16:51:36,075 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3333-===select COLUMN_NAME AS 'ColumnName',IS_NULLABLE AS 'IsNullable',DATA_TYPE AS 'DataType',CHARACTER_MAXIMUM_LENGTH AS 'CharMaxLenth',CHARACTER_OCTET_LENGTH AS 'CharOcterLenth',NUMERIC_PRECISION AS 'NumericPrecision',NUMERIC_SCALE AS 'NumericScale' FROM information_schema.COLUMNS WHERE TABLE_NAME LIKE 'STU'System.Data.DataSet +¼ʱ䣺2025-02-15 16:51:36,076 ߳ID:[1]- :MySQLHelper :ExecuteDataSet Ϣ:===-3443-===select COLUMN_NAME AS 'ColumnName',IS_NULLABLE AS 'IsNullable',DATA_TYPE AS 'DataType',CHARACTER_MAXIMUM_LENGTH AS 'CharMaxLenth',CHARACTER_OCTET_LENGTH AS 'CharOcterLenth',NUMERIC_PRECISION AS 'NumericPrecision',NUMERIC_SCALE AS 'NumericScale' FROM information_schema.COLUMNS WHERE TABLE_NAME LIKE 'STU'System.Data.DataSet diff --git a/dll/ServiceLog/20250215.txt b/dll/ServiceLog/20250215.txt index 1e2735e..4dd5112 100644 --- a/dll/ServiceLog/20250215.txt +++ b/dll/ServiceLog/20250215.txt @@ -237,3 +237,14 @@ ¼ʱ䣺2025-02-15 16:51:29,907 ߳ID:[1]- Ϣ:SyncServiceOperation :Start Ϣ:SyncSerivce: ¼ʱ䣺2025-02-15 16:51:31,703 ߳ID:[1]- Ϣ:SyncServiceOperation :timerSync_Elapsed Ϣ:ʱ ¼ʱ䣺2025-02-15 16:51:31,704 ߳ID:[1]- Ϣ:SyncServiceOperation :timerSync_Elapsed Ϣ:־ +¼ʱ䣺2025-02-15 16:51:31,742 ߳ID:[1]- Ϣ:SyncServiceOperation :ReadSyncInstruments Ϣ:ȡϢ1 +¼ʱ䣺2025-02-15 16:51:31,905 ߳ID:[1]- Ϣ:SyncServiceOperation :RunSyncByInstrument Ϣ:׼ֶβѯɸѡ +¼ʱ䣺2025-02-15 16:51:32,072 ߳ID:[1]- Ϣ:SyncServiceOperation :RunSyncByInstrument Ϣ:ȡϴִʱΪ2026-12-29 00:00:00 +¼ʱ䣺2025-02-15 16:51:32,073 ߳ID:[1]- Ϣ:SyncServiceOperation :RunSyncByInstrument Ϣ:׼Դȡ +¼ʱ䣺2025-02-15 16:51:32,170 ߳ID:[1]- Ϣ:SyncServiceOperation :RunSyncByInstrument Ϣ:Դȡ,׼ȡԴ +¼ʱ䣺2025-02-15 16:51:36,062 ߳ID:[1]- Ϣ:SyncServiceOperation :RunSyncByInstrument Ϣ:ڶȡ׼Դ,2 +¼ʱ䣺2025-02-15 16:51:36,066 ߳ID:[1]- Ϣ:SyncServiceOperation :RunUpLoad Ϣ:ȡĿݵݽṹ +¼ʱ䣺2025-02-15 16:51:36,066 ߳ID:[1]- Ϣ:SyncServiceOperation :RunUpLoad Ϣ:Դݣ׼ +¼ʱ䣺2025-02-15 16:51:36,068 ߳ID:[1]- Ϣ:SyncServiceOperation :RunUpLoad Ϣ:׼ǷϷ +¼ʱ䣺2025-02-15 16:51:36,076 ߳ID:[1]- Ϣ:SyncServiceOperation :RunUpLoad Ϣ:вĿݣ׼()2 +¼ʱ䣺2025-02-15 16:51:36,089 ߳ID:[1]- Ϣ:SyncServiceOperation :RunUpLoad Ϣ:ϴɣгɹ1ʧ01............................................................................................................