You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

785 lines
39 KiB

3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. 
  2. namespace ExportDataToFile
  3. {
  4. partial class Form1
  5. {
  6. /// <summary>
  7. /// 設計工具所需的變數。
  8. /// </summary>
  9. private System.ComponentModel.IContainer components = null;
  10. /// <summary>
  11. /// 清除任何使用中的資源。
  12. /// </summary>
  13. /// <param name="disposing">如果應該處置受控資源則為 true,否則為 false。</param>
  14. protected override void Dispose(bool disposing)
  15. {
  16. if (disposing && (components != null))
  17. {
  18. components.Dispose();
  19. }
  20. base.Dispose(disposing);
  21. }
  22. #region Windows Form 設計工具產生的程式碼
  23. /// <summary>
  24. /// 此為設計工具支援所需的方法 - 請勿使用程式碼編輯器修改
  25. /// 這個方法的內容。
  26. /// </summary>
  27. private void InitializeComponent()
  28. {
  29. System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
  30. this.txtTargetID = new System.Windows.Forms.TextBox();
  31. this.label7 = new System.Windows.Forms.Label();
  32. this.txtTargetDBName = new System.Windows.Forms.TextBox();
  33. this.label8 = new System.Windows.Forms.Label();
  34. this.txtTargetIP = new System.Windows.Forms.TextBox();
  35. this.label9 = new System.Windows.Forms.Label();
  36. this.cbTargetClass = new System.Windows.Forms.ComboBox();
  37. this.label10 = new System.Windows.Forms.Label();
  38. this.txtSourceID = new System.Windows.Forms.TextBox();
  39. this.label4 = new System.Windows.Forms.Label();
  40. this.txtSourceDBName = new System.Windows.Forms.TextBox();
  41. this.label3 = new System.Windows.Forms.Label();
  42. this.txtSourceIP = new System.Windows.Forms.TextBox();
  43. this.label2 = new System.Windows.Forms.Label();
  44. this.cbSourceClass = new System.Windows.Forms.ComboBox();
  45. this.label1 = new System.Windows.Forms.Label();
  46. this.btnExport = new System.Windows.Forms.Button();
  47. this.label12 = new System.Windows.Forms.Label();
  48. this.btnTargetConnTest = new System.Windows.Forms.Button();
  49. this.txtTargetPWD = new System.Windows.Forms.TextBox();
  50. this.label6 = new System.Windows.Forms.Label();
  51. this.btnSourceConnTest = new System.Windows.Forms.Button();
  52. this.txtSourcePWD = new System.Windows.Forms.TextBox();
  53. this.label5 = new System.Windows.Forms.Label();
  54. this.dgvExportList = new System.Windows.Forms.DataGridView();
  55. this.clExport = new System.Windows.Forms.DataGridViewCheckBoxColumn();
  56. this.clCancel = new System.Windows.Forms.DataGridViewButtonColumn();
  57. this.clShow = new System.Windows.Forms.DataGridViewButtonColumn();
  58. this.clSourceTable = new System.Windows.Forms.DataGridViewTextBoxColumn();
  59. this.clTargetTable = new System.Windows.Forms.DataGridViewTextBoxColumn();
  60. this.clTableDel = new System.Windows.Forms.DataGridViewCheckBoxColumn();
  61. this.clWhere = new System.Windows.Forms.DataGridViewTextBoxColumn();
  62. this.clMappingData = new System.Windows.Forms.DataGridViewTextBoxColumn();
  63. this.label11 = new System.Windows.Forms.Label();
  64. this.dgvColumnMapping = new System.Windows.Forms.DataGridView();
  65. this.clExpColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
  66. this.clClean = new System.Windows.Forms.DataGridViewButtonColumn();
  67. this.clSourceColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
  68. this.clType = new System.Windows.Forms.DataGridViewTextBoxColumn();
  69. this.clTargetColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
  70. this.txtWhere = new System.Windows.Forms.TextBox();
  71. this.label13 = new System.Windows.Forms.Label();
  72. this.label14 = new System.Windows.Forms.Label();
  73. this.cbTargetTable = new System.Windows.Forms.ComboBox();
  74. this.btnMapping = new System.Windows.Forms.Button();
  75. this.sfPath = new System.Windows.Forms.SaveFileDialog();
  76. this.label15 = new System.Windows.Forms.Label();
  77. this.txtMaxCount = new System.Windows.Forms.TextBox();
  78. this.label16 = new System.Windows.Forms.Label();
  79. this.label17 = new System.Windows.Forms.Label();
  80. this.txtTargetPort = new System.Windows.Forms.TextBox();
  81. this.txtSourcePort = new System.Windows.Forms.TextBox();
  82. this.btnExportXML = new System.Windows.Forms.Button();
  83. this.btnImportXML = new System.Windows.Forms.Button();
  84. this.ofPath = new System.Windows.Forms.OpenFileDialog();
  85. this.btnClean = new System.Windows.Forms.Button();
  86. ((System.ComponentModel.ISupportInitialize)(this.dgvExportList)).BeginInit();
  87. ((System.ComponentModel.ISupportInitialize)(this.dgvColumnMapping)).BeginInit();
  88. this.SuspendLayout();
  89. //
  90. // txtTargetID
  91. //
  92. this.txtTargetID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  93. this.txtTargetID.Location = new System.Drawing.Point(1218, 48);
  94. this.txtTargetID.Name = "txtTargetID";
  95. this.txtTargetID.Size = new System.Drawing.Size(135, 29);
  96. this.txtTargetID.TabIndex = 11;
  97. this.txtTargetID.Text = "origtek";
  98. //
  99. // label7
  100. //
  101. this.label7.AutoSize = true;
  102. this.label7.ForeColor = System.Drawing.SystemColors.ControlLight;
  103. this.label7.Location = new System.Drawing.Point(1091, 51);
  104. this.label7.Name = "label7";
  105. this.label7.Size = new System.Drawing.Size(121, 20);
  106. this.label7.TabIndex = 33;
  107. this.label7.Text = "來源資料庫帳號";
  108. //
  109. // txtTargetDBName
  110. //
  111. this.txtTargetDBName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  112. this.txtTargetDBName.Location = new System.Drawing.Point(928, 49);
  113. this.txtTargetDBName.Name = "txtTargetDBName";
  114. this.txtTargetDBName.Size = new System.Drawing.Size(135, 29);
  115. this.txtTargetDBName.TabIndex = 10;
  116. this.txtTargetDBName.Text = "origtekpdb";
  117. //
  118. // label8
  119. //
  120. this.label8.AutoSize = true;
  121. this.label8.ForeColor = System.Drawing.SystemColors.ControlLight;
  122. this.label8.Location = new System.Drawing.Point(801, 53);
  123. this.label8.Name = "label8";
  124. this.label8.Size = new System.Drawing.Size(121, 20);
  125. this.label8.TabIndex = 31;
  126. this.label8.Text = "目標資料庫名稱";
  127. //
  128. // txtTargetIP
  129. //
  130. this.txtTargetIP.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  131. this.txtTargetIP.Location = new System.Drawing.Point(444, 48);
  132. this.txtTargetIP.Name = "txtTargetIP";
  133. this.txtTargetIP.Size = new System.Drawing.Size(135, 29);
  134. this.txtTargetIP.TabIndex = 8;
  135. this.txtTargetIP.Text = "192.168.1.76";
  136. //
  137. // label9
  138. //
  139. this.label9.AutoSize = true;
  140. this.label9.ForeColor = System.Drawing.SystemColors.ControlLight;
  141. this.label9.Location = new System.Drawing.Point(334, 52);
  142. this.label9.Name = "label9";
  143. this.label9.Size = new System.Drawing.Size(104, 20);
  144. this.label9.TabIndex = 29;
  145. this.label9.Text = "目標資料庫IP";
  146. //
  147. // cbTargetClass
  148. //
  149. this.cbTargetClass.FormattingEnabled = true;
  150. this.cbTargetClass.Items.AddRange(new object[] {
  151. "",
  152. "MS-SQL",
  153. "MySQL",
  154. "Oracle",
  155. "PostgreSQL"});
  156. this.cbTargetClass.Location = new System.Drawing.Point(142, 47);
  157. this.cbTargetClass.Name = "cbTargetClass";
  158. this.cbTargetClass.Size = new System.Drawing.Size(163, 28);
  159. this.cbTargetClass.TabIndex = 7;
  160. this.cbTargetClass.SelectedValueChanged += new System.EventHandler(this.cbTargetClass_SelectedValueChanged);
  161. //
  162. // label10
  163. //
  164. this.label10.AutoSize = true;
  165. this.label10.ForeColor = System.Drawing.SystemColors.ControlLight;
  166. this.label10.Location = new System.Drawing.Point(14, 50);
  167. this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  168. this.label10.Name = "label10";
  169. this.label10.Size = new System.Drawing.Size(121, 20);
  170. this.label10.TabIndex = 27;
  171. this.label10.Text = "目標資料庫類型";
  172. //
  173. // txtSourceID
  174. //
  175. this.txtSourceID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  176. this.txtSourceID.Location = new System.Drawing.Point(1218, 13);
  177. this.txtSourceID.Name = "txtSourceID";
  178. this.txtSourceID.Size = new System.Drawing.Size(135, 29);
  179. this.txtSourceID.TabIndex = 5;
  180. this.txtSourceID.Text = "origtek";
  181. //
  182. // label4
  183. //
  184. this.label4.AutoSize = true;
  185. this.label4.ForeColor = System.Drawing.SystemColors.ControlLight;
  186. this.label4.Location = new System.Drawing.Point(1091, 16);
  187. this.label4.Name = "label4";
  188. this.label4.Size = new System.Drawing.Size(121, 20);
  189. this.label4.TabIndex = 25;
  190. this.label4.Text = "來源資料庫帳號";
  191. //
  192. // txtSourceDBName
  193. //
  194. this.txtSourceDBName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  195. this.txtSourceDBName.Location = new System.Drawing.Point(928, 14);
  196. this.txtSourceDBName.Name = "txtSourceDBName";
  197. this.txtSourceDBName.Size = new System.Drawing.Size(135, 29);
  198. this.txtSourceDBName.TabIndex = 4;
  199. this.txtSourceDBName.Text = "origtekpdb";
  200. //
  201. // label3
  202. //
  203. this.label3.AutoSize = true;
  204. this.label3.ForeColor = System.Drawing.SystemColors.ControlLight;
  205. this.label3.Location = new System.Drawing.Point(801, 18);
  206. this.label3.Name = "label3";
  207. this.label3.Size = new System.Drawing.Size(121, 20);
  208. this.label3.TabIndex = 23;
  209. this.label3.Text = "來源資料庫名稱";
  210. //
  211. // txtSourceIP
  212. //
  213. this.txtSourceIP.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  214. this.txtSourceIP.Location = new System.Drawing.Point(444, 13);
  215. this.txtSourceIP.Name = "txtSourceIP";
  216. this.txtSourceIP.Size = new System.Drawing.Size(135, 29);
  217. this.txtSourceIP.TabIndex = 2;
  218. this.txtSourceIP.Text = "192.168.1.76";
  219. //
  220. // label2
  221. //
  222. this.label2.AutoSize = true;
  223. this.label2.ForeColor = System.Drawing.SystemColors.ControlLight;
  224. this.label2.Location = new System.Drawing.Point(334, 17);
  225. this.label2.Name = "label2";
  226. this.label2.Size = new System.Drawing.Size(104, 20);
  227. this.label2.TabIndex = 21;
  228. this.label2.Text = "來源資料庫IP";
  229. //
  230. // cbSourceClass
  231. //
  232. this.cbSourceClass.FormattingEnabled = true;
  233. this.cbSourceClass.Items.AddRange(new object[] {
  234. "",
  235. "MS-SQL",
  236. "MySQL",
  237. "Oracle",
  238. "PostgreSQL"});
  239. this.cbSourceClass.Location = new System.Drawing.Point(142, 12);
  240. this.cbSourceClass.Name = "cbSourceClass";
  241. this.cbSourceClass.Size = new System.Drawing.Size(163, 28);
  242. this.cbSourceClass.TabIndex = 1;
  243. this.cbSourceClass.SelectedValueChanged += new System.EventHandler(this.cbSourceClass_SelectedValueChanged);
  244. //
  245. // label1
  246. //
  247. this.label1.AutoSize = true;
  248. this.label1.ForeColor = System.Drawing.SystemColors.ButtonFace;
  249. this.label1.Location = new System.Drawing.Point(14, 15);
  250. this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  251. this.label1.Name = "label1";
  252. this.label1.Size = new System.Drawing.Size(121, 20);
  253. this.label1.TabIndex = 19;
  254. this.label1.Text = "來源資料庫類型";
  255. //
  256. // btnExport
  257. //
  258. this.btnExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  259. this.btnExport.Enabled = false;
  260. this.btnExport.Location = new System.Drawing.Point(1649, 1014);
  261. this.btnExport.Name = "btnExport";
  262. this.btnExport.Size = new System.Drawing.Size(135, 30);
  263. this.btnExport.TabIndex = 16;
  264. this.btnExport.Text = "資料匯出";
  265. this.btnExport.UseVisualStyleBackColor = true;
  266. this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
  267. //
  268. // label12
  269. //
  270. this.label12.AutoSize = true;
  271. this.label12.ForeColor = System.Drawing.SystemColors.ControlLight;
  272. this.label12.Location = new System.Drawing.Point(1224, 160);
  273. this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  274. this.label12.Name = "label12";
  275. this.label12.Size = new System.Drawing.Size(73, 20);
  276. this.label12.TabIndex = 41;
  277. this.label12.Text = "欄位對應";
  278. //
  279. // btnTargetConnTest
  280. //
  281. this.btnTargetConnTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  282. this.btnTargetConnTest.Location = new System.Drawing.Point(1649, 45);
  283. this.btnTargetConnTest.Name = "btnTargetConnTest";
  284. this.btnTargetConnTest.Size = new System.Drawing.Size(135, 30);
  285. this.btnTargetConnTest.TabIndex = 14;
  286. this.btnTargetConnTest.Text = "建立目標連線";
  287. this.btnTargetConnTest.UseVisualStyleBackColor = true;
  288. this.btnTargetConnTest.Click += new System.EventHandler(this.btnTargetConnTest_Click);
  289. //
  290. // txtTargetPWD
  291. //
  292. this.txtTargetPWD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  293. this.txtTargetPWD.Location = new System.Drawing.Point(1508, 46);
  294. this.txtTargetPWD.Name = "txtTargetPWD";
  295. this.txtTargetPWD.PasswordChar = '*';
  296. this.txtTargetPWD.Size = new System.Drawing.Size(135, 29);
  297. this.txtTargetPWD.TabIndex = 12;
  298. this.txtTargetPWD.Text = "!QAZ2wsx";
  299. //
  300. // label6
  301. //
  302. this.label6.AutoSize = true;
  303. this.label6.ForeColor = System.Drawing.SystemColors.ControlLight;
  304. this.label6.Location = new System.Drawing.Point(1381, 50);
  305. this.label6.Name = "label6";
  306. this.label6.Size = new System.Drawing.Size(121, 20);
  307. this.label6.TabIndex = 38;
  308. this.label6.Text = "來源資料庫密碼";
  309. //
  310. // btnSourceConnTest
  311. //
  312. this.btnSourceConnTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  313. this.btnSourceConnTest.Location = new System.Drawing.Point(1649, 12);
  314. this.btnSourceConnTest.Name = "btnSourceConnTest";
  315. this.btnSourceConnTest.Size = new System.Drawing.Size(135, 30);
  316. this.btnSourceConnTest.TabIndex = 13;
  317. this.btnSourceConnTest.Text = "建立來源連線";
  318. this.btnSourceConnTest.UseVisualStyleBackColor = true;
  319. this.btnSourceConnTest.Click += new System.EventHandler(this.btnSourceConnTest_Click);
  320. //
  321. // txtSourcePWD
  322. //
  323. this.txtSourcePWD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  324. this.txtSourcePWD.Location = new System.Drawing.Point(1508, 13);
  325. this.txtSourcePWD.Name = "txtSourcePWD";
  326. this.txtSourcePWD.PasswordChar = '*';
  327. this.txtSourcePWD.Size = new System.Drawing.Size(135, 29);
  328. this.txtSourcePWD.TabIndex = 6;
  329. this.txtSourcePWD.Text = "!QAZ2wsx";
  330. //
  331. // label5
  332. //
  333. this.label5.AutoSize = true;
  334. this.label5.ForeColor = System.Drawing.SystemColors.ControlLight;
  335. this.label5.Location = new System.Drawing.Point(1381, 15);
  336. this.label5.Name = "label5";
  337. this.label5.Size = new System.Drawing.Size(121, 20);
  338. this.label5.TabIndex = 35;
  339. this.label5.Text = "來源資料庫密碼";
  340. //
  341. // dgvExportList
  342. //
  343. this.dgvExportList.AllowUserToAddRows = false;
  344. this.dgvExportList.AllowUserToDeleteRows = false;
  345. this.dgvExportList.AllowUserToOrderColumns = true;
  346. this.dgvExportList.AllowUserToResizeRows = false;
  347. this.dgvExportList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  348. | System.Windows.Forms.AnchorStyles.Left)));
  349. this.dgvExportList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  350. this.dgvExportList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  351. this.clExport,
  352. this.clCancel,
  353. this.clShow,
  354. this.clSourceTable,
  355. this.clTargetTable,
  356. this.clTableDel,
  357. this.clWhere,
  358. this.clMappingData});
  359. this.dgvExportList.Location = new System.Drawing.Point(18, 125);
  360. this.dgvExportList.Name = "dgvExportList";
  361. this.dgvExportList.RowTemplate.Height = 25;
  362. this.dgvExportList.Size = new System.Drawing.Size(1204, 920);
  363. this.dgvExportList.TabIndex = 17;
  364. this.dgvExportList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvExportList_CellClick);
  365. this.dgvExportList.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvExportList_CellContentClick);
  366. //
  367. // clExport
  368. //
  369. this.clExport.FalseValue = "false";
  370. this.clExport.Frozen = true;
  371. this.clExport.HeaderText = "匯出";
  372. this.clExport.IndeterminateValue = "false";
  373. this.clExport.Name = "clExport";
  374. this.clExport.ReadOnly = true;
  375. this.clExport.TrueValue = "true";
  376. this.clExport.Width = 55;
  377. //
  378. // clCancel
  379. //
  380. this.clCancel.Frozen = true;
  381. this.clCancel.HeaderText = "清除";
  382. this.clCancel.Name = "clCancel";
  383. this.clCancel.Text = "...";
  384. this.clCancel.Width = 55;
  385. //
  386. // clShow
  387. //
  388. this.clShow.Frozen = true;
  389. this.clShow.HeaderText = "顯示來源";
  390. this.clShow.Name = "clShow";
  391. this.clShow.Text = "...";
  392. this.clShow.Width = 80;
  393. //
  394. // clSourceTable
  395. //
  396. this.clSourceTable.DataPropertyName = "TableName";
  397. this.clSourceTable.Frozen = true;
  398. this.clSourceTable.HeaderText = "來源資料表名稱";
  399. this.clSourceTable.Name = "clSourceTable";
  400. this.clSourceTable.ReadOnly = true;
  401. this.clSourceTable.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  402. this.clSourceTable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  403. this.clSourceTable.Width = 300;
  404. //
  405. // clTargetTable
  406. //
  407. this.clTargetTable.Frozen = true;
  408. this.clTargetTable.HeaderText = "目標資料表名稱";
  409. this.clTargetTable.Name = "clTargetTable";
  410. this.clTargetTable.ReadOnly = true;
  411. this.clTargetTable.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  412. this.clTargetTable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  413. this.clTargetTable.Width = 300;
  414. //
  415. // clTableDel
  416. //
  417. this.clTableDel.Frozen = true;
  418. this.clTableDel.HeaderText = "清除目標資料表內容";
  419. this.clTableDel.Name = "clTableDel";
  420. this.clTableDel.Width = 180;
  421. //
  422. // clWhere
  423. //
  424. this.clWhere.Frozen = true;
  425. this.clWhere.HeaderText = "過濾條件";
  426. this.clWhere.Name = "clWhere";
  427. this.clWhere.Visible = false;
  428. this.clWhere.Width = 200;
  429. //
  430. // clMappingData
  431. //
  432. this.clMappingData.Frozen = true;
  433. this.clMappingData.HeaderText = "欄位對應";
  434. this.clMappingData.Name = "clMappingData";
  435. this.clMappingData.Visible = false;
  436. //
  437. // label11
  438. //
  439. this.label11.AutoSize = true;
  440. this.label11.ForeColor = System.Drawing.SystemColors.ControlLight;
  441. this.label11.Location = new System.Drawing.Point(18, 102);
  442. this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  443. this.label11.Name = "label11";
  444. this.label11.Size = new System.Drawing.Size(121, 20);
  445. this.label11.TabIndex = 43;
  446. this.label11.Text = "匯出資料表列表";
  447. //
  448. // dgvColumnMapping
  449. //
  450. this.dgvColumnMapping.AllowUserToAddRows = false;
  451. this.dgvColumnMapping.AllowUserToDeleteRows = false;
  452. this.dgvColumnMapping.AllowUserToOrderColumns = true;
  453. this.dgvColumnMapping.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  454. | System.Windows.Forms.AnchorStyles.Right)));
  455. this.dgvColumnMapping.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  456. this.dgvColumnMapping.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  457. this.clExpColumn,
  458. this.clClean,
  459. this.clSourceColumn,
  460. this.clType,
  461. this.clTargetColumn});
  462. this.dgvColumnMapping.Location = new System.Drawing.Point(1228, 183);
  463. this.dgvColumnMapping.Name = "dgvColumnMapping";
  464. this.dgvColumnMapping.RowTemplate.Height = 25;
  465. this.dgvColumnMapping.Size = new System.Drawing.Size(556, 342);
  466. this.dgvColumnMapping.TabIndex = 19;
  467. this.dgvColumnMapping.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvColumnMapping_CellContentClick);
  468. //
  469. // clExpColumn
  470. //
  471. this.clExpColumn.HeaderText = "匯出";
  472. this.clExpColumn.Name = "clExpColumn";
  473. this.clExpColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  474. this.clExpColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
  475. this.clExpColumn.Width = 65;
  476. //
  477. // clClean
  478. //
  479. this.clClean.HeaderText = "清除";
  480. this.clClean.Name = "clClean";
  481. this.clClean.Width = 50;
  482. //
  483. // clSourceColumn
  484. //
  485. this.clSourceColumn.DataPropertyName = "COLUMN_NAME";
  486. this.clSourceColumn.HeaderText = "來源欄位";
  487. this.clSourceColumn.Name = "clSourceColumn";
  488. this.clSourceColumn.ReadOnly = true;
  489. this.clSourceColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  490. this.clSourceColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  491. this.clSourceColumn.Width = 200;
  492. //
  493. // clType
  494. //
  495. this.clType.DataPropertyName = "DATA_TYPE";
  496. this.clType.HeaderText = "型態";
  497. this.clType.Name = "clType";
  498. this.clType.Width = 80;
  499. //
  500. // clTargetColumn
  501. //
  502. this.clTargetColumn.HeaderText = "目標欄位";
  503. this.clTargetColumn.Name = "clTargetColumn";
  504. this.clTargetColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  505. this.clTargetColumn.Width = 200;
  506. //
  507. // txtWhere
  508. //
  509. this.txtWhere.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  510. | System.Windows.Forms.AnchorStyles.Left)
  511. | System.Windows.Forms.AnchorStyles.Right)));
  512. this.txtWhere.Location = new System.Drawing.Point(1228, 554);
  513. this.txtWhere.Multiline = true;
  514. this.txtWhere.Name = "txtWhere";
  515. this.txtWhere.Size = new System.Drawing.Size(556, 453);
  516. this.txtWhere.TabIndex = 20;
  517. //
  518. // label13
  519. //
  520. this.label13.AutoSize = true;
  521. this.label13.ForeColor = System.Drawing.SystemColors.ControlLight;
  522. this.label13.Location = new System.Drawing.Point(1228, 531);
  523. this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  524. this.label13.Name = "label13";
  525. this.label13.Size = new System.Drawing.Size(73, 20);
  526. this.label13.TabIndex = 46;
  527. this.label13.Text = "過濾條件";
  528. //
  529. // label14
  530. //
  531. this.label14.AutoSize = true;
  532. this.label14.ForeColor = System.Drawing.SystemColors.ControlLight;
  533. this.label14.Location = new System.Drawing.Point(1224, 128);
  534. this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  535. this.label14.Name = "label14";
  536. this.label14.Size = new System.Drawing.Size(89, 20);
  537. this.label14.TabIndex = 48;
  538. this.label14.Text = "目標資料表";
  539. //
  540. // cbTargetTable
  541. //
  542. this.cbTargetTable.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  543. | System.Windows.Forms.AnchorStyles.Right)));
  544. this.cbTargetTable.DisplayMember = "TableName";
  545. this.cbTargetTable.Enabled = false;
  546. this.cbTargetTable.FormattingEnabled = true;
  547. this.cbTargetTable.Location = new System.Drawing.Point(1320, 125);
  548. this.cbTargetTable.Name = "cbTargetTable";
  549. this.cbTargetTable.Size = new System.Drawing.Size(464, 28);
  550. this.cbTargetTable.TabIndex = 18;
  551. this.cbTargetTable.ValueMember = "TableName";
  552. this.cbTargetTable.SelectedIndexChanged += new System.EventHandler(this.cbTargetTable_SelectedIndexChanged);
  553. //
  554. // btnMapping
  555. //
  556. this.btnMapping.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  557. this.btnMapping.Enabled = false;
  558. this.btnMapping.Location = new System.Drawing.Point(1508, 1013);
  559. this.btnMapping.Name = "btnMapping";
  560. this.btnMapping.Size = new System.Drawing.Size(135, 32);
  561. this.btnMapping.TabIndex = 23;
  562. this.btnMapping.Text = "設定匯出條件";
  563. this.btnMapping.UseVisualStyleBackColor = true;
  564. this.btnMapping.Click += new System.EventHandler(this.btnMapping_Click);
  565. //
  566. // label15
  567. //
  568. this.label15.AutoSize = true;
  569. this.label15.ForeColor = System.Drawing.SystemColors.ControlLight;
  570. this.label15.Location = new System.Drawing.Point(1365, 84);
  571. this.label15.Name = "label15";
  572. this.label15.Size = new System.Drawing.Size(137, 20);
  573. this.label15.TabIndex = 51;
  574. this.label15.Text = "檔案匯出上限筆數";
  575. //
  576. // txtMaxCount
  577. //
  578. this.txtMaxCount.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  579. this.txtMaxCount.Location = new System.Drawing.Point(1508, 80);
  580. this.txtMaxCount.Name = "txtMaxCount";
  581. this.txtMaxCount.Size = new System.Drawing.Size(135, 29);
  582. this.txtMaxCount.TabIndex = 15;
  583. this.txtMaxCount.Text = "0";
  584. //
  585. // label16
  586. //
  587. this.label16.AutoSize = true;
  588. this.label16.ForeColor = System.Drawing.SystemColors.ControlLight;
  589. this.label16.Location = new System.Drawing.Point(600, 51);
  590. this.label16.Name = "label16";
  591. this.label16.Size = new System.Drawing.Size(73, 20);
  592. this.label16.TabIndex = 54;
  593. this.label16.Text = "目標Port";
  594. //
  595. // label17
  596. //
  597. this.label17.AutoSize = true;
  598. this.label17.ForeColor = System.Drawing.SystemColors.ControlLight;
  599. this.label17.Location = new System.Drawing.Point(600, 16);
  600. this.label17.Name = "label17";
  601. this.label17.Size = new System.Drawing.Size(73, 20);
  602. this.label17.TabIndex = 53;
  603. this.label17.Text = "來源Port";
  604. //
  605. // txtTargetPort
  606. //
  607. this.txtTargetPort.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  608. this.txtTargetPort.Location = new System.Drawing.Point(674, 48);
  609. this.txtTargetPort.Name = "txtTargetPort";
  610. this.txtTargetPort.Size = new System.Drawing.Size(100, 29);
  611. this.txtTargetPort.TabIndex = 9;
  612. //
  613. // txtSourcePort
  614. //
  615. this.txtSourcePort.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  616. this.txtSourcePort.Location = new System.Drawing.Point(674, 13);
  617. this.txtSourcePort.Name = "txtSourcePort";
  618. this.txtSourcePort.Size = new System.Drawing.Size(100, 29);
  619. this.txtSourcePort.TabIndex = 3;
  620. //
  621. // btnExportXML
  622. //
  623. this.btnExportXML.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  624. this.btnExportXML.Enabled = false;
  625. this.btnExportXML.Location = new System.Drawing.Point(1228, 1013);
  626. this.btnExportXML.Name = "btnExportXML";
  627. this.btnExportXML.Size = new System.Drawing.Size(135, 32);
  628. this.btnExportXML.TabIndex = 21;
  629. this.btnExportXML.Text = "匯出XML";
  630. this.btnExportXML.UseVisualStyleBackColor = true;
  631. this.btnExportXML.Click += new System.EventHandler(this.btnExportXML_Click);
  632. //
  633. // btnImportXML
  634. //
  635. this.btnImportXML.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
  636. this.btnImportXML.Location = new System.Drawing.Point(1367, 1013);
  637. this.btnImportXML.Name = "btnImportXML";
  638. this.btnImportXML.Size = new System.Drawing.Size(135, 32);
  639. this.btnImportXML.TabIndex = 22;
  640. this.btnImportXML.Text = "匯入XML";
  641. this.btnImportXML.UseVisualStyleBackColor = true;
  642. this.btnImportXML.Click += new System.EventHandler(this.btnImportXML_Click);
  643. //
  644. // ofPath
  645. //
  646. this.ofPath.FileName = "file.xml";
  647. //
  648. // btnClean
  649. //
  650. this.btnClean.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  651. this.btnClean.Location = new System.Drawing.Point(1649, 81);
  652. this.btnClean.Name = "btnClean";
  653. this.btnClean.Size = new System.Drawing.Size(135, 28);
  654. this.btnClean.TabIndex = 55;
  655. this.btnClean.Text = "清除";
  656. this.btnClean.UseVisualStyleBackColor = true;
  657. this.btnClean.Click += new System.EventHandler(this.btnClean_Click);
  658. //
  659. // Form1
  660. //
  661. this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 20F);
  662. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  663. this.BackColor = System.Drawing.SystemColors.ControlDarkDark;
  664. this.ClientSize = new System.Drawing.Size(1796, 1057);
  665. this.Controls.Add(this.btnClean);
  666. this.Controls.Add(this.btnImportXML);
  667. this.Controls.Add(this.btnExportXML);
  668. this.Controls.Add(this.txtTargetPort);
  669. this.Controls.Add(this.txtSourcePort);
  670. this.Controls.Add(this.label16);
  671. this.Controls.Add(this.label17);
  672. this.Controls.Add(this.txtMaxCount);
  673. this.Controls.Add(this.label15);
  674. this.Controls.Add(this.btnMapping);
  675. this.Controls.Add(this.cbTargetTable);
  676. this.Controls.Add(this.label14);
  677. this.Controls.Add(this.txtWhere);
  678. this.Controls.Add(this.label13);
  679. this.Controls.Add(this.dgvColumnMapping);
  680. this.Controls.Add(this.dgvExportList);
  681. this.Controls.Add(this.label11);
  682. this.Controls.Add(this.btnExport);
  683. this.Controls.Add(this.label12);
  684. this.Controls.Add(this.btnTargetConnTest);
  685. this.Controls.Add(this.txtTargetPWD);
  686. this.Controls.Add(this.label6);
  687. this.Controls.Add(this.btnSourceConnTest);
  688. this.Controls.Add(this.txtSourcePWD);
  689. this.Controls.Add(this.label5);
  690. this.Controls.Add(this.txtTargetID);
  691. this.Controls.Add(this.label7);
  692. this.Controls.Add(this.txtTargetDBName);
  693. this.Controls.Add(this.label8);
  694. this.Controls.Add(this.txtTargetIP);
  695. this.Controls.Add(this.label9);
  696. this.Controls.Add(this.cbTargetClass);
  697. this.Controls.Add(this.label10);
  698. this.Controls.Add(this.txtSourceID);
  699. this.Controls.Add(this.label4);
  700. this.Controls.Add(this.txtSourceDBName);
  701. this.Controls.Add(this.label3);
  702. this.Controls.Add(this.txtSourceIP);
  703. this.Controls.Add(this.label2);
  704. this.Controls.Add(this.cbSourceClass);
  705. this.Controls.Add(this.label1);
  706. this.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136)));
  707. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
  708. this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  709. this.Margin = new System.Windows.Forms.Padding(5);
  710. this.Name = "Form1";
  711. this.Text = "資料匯出程式";
  712. this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
  713. this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
  714. this.Load += new System.EventHandler(this.Form1_Load);
  715. ((System.ComponentModel.ISupportInitialize)(this.dgvExportList)).EndInit();
  716. ((System.ComponentModel.ISupportInitialize)(this.dgvColumnMapping)).EndInit();
  717. this.ResumeLayout(false);
  718. this.PerformLayout();
  719. }
  720. #endregion
  721. private System.Windows.Forms.TextBox txtTargetID;
  722. private System.Windows.Forms.Label label7;
  723. private System.Windows.Forms.TextBox txtTargetDBName;
  724. private System.Windows.Forms.Label label8;
  725. private System.Windows.Forms.TextBox txtTargetIP;
  726. private System.Windows.Forms.Label label9;
  727. private System.Windows.Forms.ComboBox cbTargetClass;
  728. private System.Windows.Forms.Label label10;
  729. private System.Windows.Forms.TextBox txtSourceID;
  730. private System.Windows.Forms.Label label4;
  731. private System.Windows.Forms.TextBox txtSourceDBName;
  732. private System.Windows.Forms.Label label3;
  733. private System.Windows.Forms.TextBox txtSourceIP;
  734. private System.Windows.Forms.Label label2;
  735. private System.Windows.Forms.ComboBox cbSourceClass;
  736. private System.Windows.Forms.Label label1;
  737. private System.Windows.Forms.Button btnExport;
  738. private System.Windows.Forms.Label label12;
  739. private System.Windows.Forms.Button btnTargetConnTest;
  740. private System.Windows.Forms.TextBox txtTargetPWD;
  741. private System.Windows.Forms.Label label6;
  742. private System.Windows.Forms.Button btnSourceConnTest;
  743. private System.Windows.Forms.TextBox txtSourcePWD;
  744. private System.Windows.Forms.Label label5;
  745. private System.Windows.Forms.DataGridView dgvExportList;
  746. private System.Windows.Forms.Label label11;
  747. private System.Windows.Forms.DataGridView dgvColumnMapping;
  748. private System.Windows.Forms.TextBox txtWhere;
  749. private System.Windows.Forms.Label label13;
  750. private System.Windows.Forms.Label label14;
  751. private System.Windows.Forms.ComboBox cbTargetTable;
  752. private System.Windows.Forms.Button btnMapping;
  753. private System.Windows.Forms.SaveFileDialog sfPath;
  754. private System.Windows.Forms.DataGridViewCheckBoxColumn clExpColumn;
  755. private System.Windows.Forms.DataGridViewButtonColumn clClean;
  756. private System.Windows.Forms.DataGridViewTextBoxColumn clSourceColumn;
  757. private System.Windows.Forms.DataGridViewTextBoxColumn clType;
  758. private System.Windows.Forms.DataGridViewComboBoxColumn clTargetColumn;
  759. private System.Windows.Forms.Label label15;
  760. private System.Windows.Forms.TextBox txtMaxCount;
  761. private System.Windows.Forms.Label label16;
  762. private System.Windows.Forms.Label label17;
  763. private System.Windows.Forms.TextBox txtTargetPort;
  764. private System.Windows.Forms.TextBox txtSourcePort;
  765. private System.Windows.Forms.Button btnExportXML;
  766. private System.Windows.Forms.Button btnImportXML;
  767. private System.Windows.Forms.OpenFileDialog ofPath;
  768. private System.Windows.Forms.Button btnClean;
  769. private System.Windows.Forms.DataGridViewCheckBoxColumn clExport;
  770. private System.Windows.Forms.DataGridViewButtonColumn clCancel;
  771. private System.Windows.Forms.DataGridViewButtonColumn clShow;
  772. private System.Windows.Forms.DataGridViewTextBoxColumn clSourceTable;
  773. private System.Windows.Forms.DataGridViewTextBoxColumn clTargetTable;
  774. private System.Windows.Forms.DataGridViewCheckBoxColumn clTableDel;
  775. private System.Windows.Forms.DataGridViewTextBoxColumn clWhere;
  776. private System.Windows.Forms.DataGridViewTextBoxColumn clMappingData;
  777. }
  778. }