浏览代码

人力金仓的数据来源配置

develop
OCEAN 4 个月前
父节点
当前提交
8832ec4c91
共有 4 个文件被更改,包括 115 次插入14 次删除
  1. +85
    -14
      CNAS_DBSync/frmSourceSetting.Designer.cs
  2. 二进制
      dll/CNAS_DBSync.exe
  3. +19
    -0
      dll/ErrorLog/20250215.txt
  4. +11
    -0
      dll/ServiceLog/20250215.txt

+ 85
- 14
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;
}
}

二进制
dll/CNAS_DBSync.exe 查看文件


+ 19
- 0
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

+ 11
- 0
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条,失败0条,其他1条。............................................................................................................

正在加载...
取消
保存