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.

655 lines
33 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 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.label11 = new System.Windows.Forms.Label();
  56. this.dgvColumnMapping = new System.Windows.Forms.DataGridView();
  57. this.txtWhere = new System.Windows.Forms.TextBox();
  58. this.label13 = new System.Windows.Forms.Label();
  59. this.label14 = new System.Windows.Forms.Label();
  60. this.cbTargetTable = new System.Windows.Forms.ComboBox();
  61. this.btnMapping = new System.Windows.Forms.Button();
  62. this.sfPath = new System.Windows.Forms.SaveFileDialog();
  63. this.clExpColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
  64. this.clClean = new System.Windows.Forms.DataGridViewButtonColumn();
  65. this.clSourceColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
  66. this.clType = new System.Windows.Forms.DataGridViewTextBoxColumn();
  67. this.clTargetColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
  68. this.clExport = new System.Windows.Forms.DataGridViewCheckBoxColumn();
  69. this.clCancel = new System.Windows.Forms.DataGridViewButtonColumn();
  70. this.clSourceTable = new System.Windows.Forms.DataGridViewTextBoxColumn();
  71. this.clTargetTable = new System.Windows.Forms.DataGridViewTextBoxColumn();
  72. this.clTableDel = new System.Windows.Forms.DataGridViewCheckBoxColumn();
  73. this.clMaxRecord = new System.Windows.Forms.DataGridViewTextBoxColumn();
  74. this.clWhere = new System.Windows.Forms.DataGridViewTextBoxColumn();
  75. this.clMappingData = new System.Windows.Forms.DataGridViewTextBoxColumn();
  76. ((System.ComponentModel.ISupportInitialize)(this.dgvExportList)).BeginInit();
  77. ((System.ComponentModel.ISupportInitialize)(this.dgvColumnMapping)).BeginInit();
  78. this.SuspendLayout();
  79. //
  80. // txtTargetID
  81. //
  82. this.txtTargetID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  83. this.txtTargetID.Location = new System.Drawing.Point(1136, 47);
  84. this.txtTargetID.Name = "txtTargetID";
  85. this.txtTargetID.Size = new System.Drawing.Size(135, 29);
  86. this.txtTargetID.TabIndex = 34;
  87. this.txtTargetID.Text = "sa";
  88. //
  89. // label7
  90. //
  91. this.label7.AutoSize = true;
  92. this.label7.ForeColor = System.Drawing.SystemColors.ControlLight;
  93. this.label7.Location = new System.Drawing.Point(1009, 50);
  94. this.label7.Name = "label7";
  95. this.label7.Size = new System.Drawing.Size(121, 20);
  96. this.label7.TabIndex = 33;
  97. this.label7.Text = "來源資料庫帳號";
  98. //
  99. // txtTargetDBName
  100. //
  101. this.txtTargetDBName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  102. this.txtTargetDBName.Location = new System.Drawing.Point(795, 46);
  103. this.txtTargetDBName.Name = "txtTargetDBName";
  104. this.txtTargetDBName.Size = new System.Drawing.Size(135, 29);
  105. this.txtTargetDBName.TabIndex = 32;
  106. this.txtTargetDBName.Text = "OPMS_Online";
  107. //
  108. // label8
  109. //
  110. this.label8.AutoSize = true;
  111. this.label8.ForeColor = System.Drawing.SystemColors.ControlLight;
  112. this.label8.Location = new System.Drawing.Point(668, 50);
  113. this.label8.Name = "label8";
  114. this.label8.Size = new System.Drawing.Size(121, 20);
  115. this.label8.TabIndex = 31;
  116. this.label8.Text = "目標資料庫名稱";
  117. //
  118. // txtTargetIP
  119. //
  120. this.txtTargetIP.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  121. this.txtTargetIP.Location = new System.Drawing.Point(460, 46);
  122. this.txtTargetIP.Name = "txtTargetIP";
  123. this.txtTargetIP.Size = new System.Drawing.Size(135, 29);
  124. this.txtTargetIP.TabIndex = 30;
  125. this.txtTargetIP.Text = ".";
  126. //
  127. // label9
  128. //
  129. this.label9.AutoSize = true;
  130. this.label9.ForeColor = System.Drawing.SystemColors.ControlLight;
  131. this.label9.Location = new System.Drawing.Point(350, 50);
  132. this.label9.Name = "label9";
  133. this.label9.Size = new System.Drawing.Size(104, 20);
  134. this.label9.TabIndex = 29;
  135. this.label9.Text = "目標資料庫IP";
  136. //
  137. // cbTargetClass
  138. //
  139. this.cbTargetClass.FormattingEnabled = true;
  140. this.cbTargetClass.Items.AddRange(new object[] {
  141. "",
  142. "MS-SQL",
  143. "MySQL",
  144. "Oracle",
  145. "PostgreSQL"});
  146. this.cbTargetClass.Location = new System.Drawing.Point(142, 47);
  147. this.cbTargetClass.Name = "cbTargetClass";
  148. this.cbTargetClass.Size = new System.Drawing.Size(163, 28);
  149. this.cbTargetClass.TabIndex = 28;
  150. //
  151. // label10
  152. //
  153. this.label10.AutoSize = true;
  154. this.label10.ForeColor = System.Drawing.SystemColors.ControlLight;
  155. this.label10.Location = new System.Drawing.Point(14, 50);
  156. this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  157. this.label10.Name = "label10";
  158. this.label10.Size = new System.Drawing.Size(121, 20);
  159. this.label10.TabIndex = 27;
  160. this.label10.Text = "目標資料庫類型";
  161. //
  162. // txtSourceID
  163. //
  164. this.txtSourceID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  165. this.txtSourceID.Location = new System.Drawing.Point(1136, 12);
  166. this.txtSourceID.Name = "txtSourceID";
  167. this.txtSourceID.Size = new System.Drawing.Size(135, 29);
  168. this.txtSourceID.TabIndex = 26;
  169. this.txtSourceID.Text = "sa";
  170. //
  171. // label4
  172. //
  173. this.label4.AutoSize = true;
  174. this.label4.ForeColor = System.Drawing.SystemColors.ControlLight;
  175. this.label4.Location = new System.Drawing.Point(1009, 15);
  176. this.label4.Name = "label4";
  177. this.label4.Size = new System.Drawing.Size(121, 20);
  178. this.label4.TabIndex = 25;
  179. this.label4.Text = "來源資料庫帳號";
  180. //
  181. // txtSourceDBName
  182. //
  183. this.txtSourceDBName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  184. this.txtSourceDBName.Location = new System.Drawing.Point(795, 11);
  185. this.txtSourceDBName.Name = "txtSourceDBName";
  186. this.txtSourceDBName.Size = new System.Drawing.Size(135, 29);
  187. this.txtSourceDBName.TabIndex = 24;
  188. this.txtSourceDBName.Text = "OPMS_Online";
  189. //
  190. // label3
  191. //
  192. this.label3.AutoSize = true;
  193. this.label3.ForeColor = System.Drawing.SystemColors.ControlLight;
  194. this.label3.Location = new System.Drawing.Point(668, 15);
  195. this.label3.Name = "label3";
  196. this.label3.Size = new System.Drawing.Size(121, 20);
  197. this.label3.TabIndex = 23;
  198. this.label3.Text = "來源資料庫名稱";
  199. //
  200. // txtSourceIP
  201. //
  202. this.txtSourceIP.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  203. this.txtSourceIP.Location = new System.Drawing.Point(460, 11);
  204. this.txtSourceIP.Name = "txtSourceIP";
  205. this.txtSourceIP.Size = new System.Drawing.Size(135, 29);
  206. this.txtSourceIP.TabIndex = 22;
  207. this.txtSourceIP.Text = ".";
  208. //
  209. // label2
  210. //
  211. this.label2.AutoSize = true;
  212. this.label2.ForeColor = System.Drawing.SystemColors.ControlLight;
  213. this.label2.Location = new System.Drawing.Point(350, 15);
  214. this.label2.Name = "label2";
  215. this.label2.Size = new System.Drawing.Size(104, 20);
  216. this.label2.TabIndex = 21;
  217. this.label2.Text = "來源資料庫IP";
  218. //
  219. // cbSourceClass
  220. //
  221. this.cbSourceClass.FormattingEnabled = true;
  222. this.cbSourceClass.Items.AddRange(new object[] {
  223. "",
  224. "MS-SQL",
  225. "MySQL",
  226. "Oracle",
  227. "PostgreSQL"});
  228. this.cbSourceClass.Location = new System.Drawing.Point(142, 12);
  229. this.cbSourceClass.Name = "cbSourceClass";
  230. this.cbSourceClass.Size = new System.Drawing.Size(163, 28);
  231. this.cbSourceClass.TabIndex = 20;
  232. //
  233. // label1
  234. //
  235. this.label1.AutoSize = true;
  236. this.label1.ForeColor = System.Drawing.SystemColors.ButtonFace;
  237. this.label1.Location = new System.Drawing.Point(14, 15);
  238. this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  239. this.label1.Name = "label1";
  240. this.label1.Size = new System.Drawing.Size(121, 20);
  241. this.label1.TabIndex = 19;
  242. this.label1.Text = "來源資料庫類型";
  243. //
  244. // btnExport
  245. //
  246. this.btnExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  247. this.btnExport.Enabled = false;
  248. this.btnExport.Location = new System.Drawing.Point(1649, 85);
  249. this.btnExport.Name = "btnExport";
  250. this.btnExport.Size = new System.Drawing.Size(135, 30);
  251. this.btnExport.TabIndex = 42;
  252. this.btnExport.Text = "資料匯出";
  253. this.btnExport.UseVisualStyleBackColor = true;
  254. this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
  255. //
  256. // label12
  257. //
  258. this.label12.AutoSize = true;
  259. this.label12.ForeColor = System.Drawing.SystemColors.ControlLight;
  260. this.label12.Location = new System.Drawing.Point(1224, 157);
  261. this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  262. this.label12.Name = "label12";
  263. this.label12.Size = new System.Drawing.Size(73, 20);
  264. this.label12.TabIndex = 41;
  265. this.label12.Text = "欄位對應";
  266. //
  267. // btnTargetConnTest
  268. //
  269. this.btnTargetConnTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  270. this.btnTargetConnTest.Location = new System.Drawing.Point(1649, 45);
  271. this.btnTargetConnTest.Name = "btnTargetConnTest";
  272. this.btnTargetConnTest.Size = new System.Drawing.Size(135, 30);
  273. this.btnTargetConnTest.TabIndex = 40;
  274. this.btnTargetConnTest.Text = "建立目標連線";
  275. this.btnTargetConnTest.UseVisualStyleBackColor = true;
  276. this.btnTargetConnTest.Click += new System.EventHandler(this.btnTargetConnTest_Click);
  277. //
  278. // txtTargetPWD
  279. //
  280. this.txtTargetPWD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  281. this.txtTargetPWD.Location = new System.Drawing.Point(1470, 46);
  282. this.txtTargetPWD.Name = "txtTargetPWD";
  283. this.txtTargetPWD.PasswordChar = '*';
  284. this.txtTargetPWD.Size = new System.Drawing.Size(135, 29);
  285. this.txtTargetPWD.TabIndex = 39;
  286. this.txtTargetPWD.Text = "i\'mnelson";
  287. //
  288. // label6
  289. //
  290. this.label6.AutoSize = true;
  291. this.label6.ForeColor = System.Drawing.SystemColors.ControlLight;
  292. this.label6.Location = new System.Drawing.Point(1343, 50);
  293. this.label6.Name = "label6";
  294. this.label6.Size = new System.Drawing.Size(121, 20);
  295. this.label6.TabIndex = 38;
  296. this.label6.Text = "來源資料庫帳號";
  297. //
  298. // btnSourceConnTest
  299. //
  300. this.btnSourceConnTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  301. this.btnSourceConnTest.Location = new System.Drawing.Point(1649, 12);
  302. this.btnSourceConnTest.Name = "btnSourceConnTest";
  303. this.btnSourceConnTest.Size = new System.Drawing.Size(135, 30);
  304. this.btnSourceConnTest.TabIndex = 37;
  305. this.btnSourceConnTest.Text = "建立來源連線";
  306. this.btnSourceConnTest.UseVisualStyleBackColor = true;
  307. this.btnSourceConnTest.Click += new System.EventHandler(this.btnSourceConnTest_Click);
  308. //
  309. // txtSourcePWD
  310. //
  311. this.txtSourcePWD.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  312. this.txtSourcePWD.Location = new System.Drawing.Point(1470, 13);
  313. this.txtSourcePWD.Name = "txtSourcePWD";
  314. this.txtSourcePWD.PasswordChar = '*';
  315. this.txtSourcePWD.Size = new System.Drawing.Size(135, 29);
  316. this.txtSourcePWD.TabIndex = 36;
  317. this.txtSourcePWD.Text = "i\'mnelson";
  318. //
  319. // label5
  320. //
  321. this.label5.AutoSize = true;
  322. this.label5.ForeColor = System.Drawing.SystemColors.ControlLight;
  323. this.label5.Location = new System.Drawing.Point(1343, 15);
  324. this.label5.Name = "label5";
  325. this.label5.Size = new System.Drawing.Size(121, 20);
  326. this.label5.TabIndex = 35;
  327. this.label5.Text = "來源資料庫帳號";
  328. //
  329. // dgvExportList
  330. //
  331. this.dgvExportList.AllowUserToAddRows = false;
  332. this.dgvExportList.AllowUserToDeleteRows = false;
  333. this.dgvExportList.AllowUserToOrderColumns = true;
  334. this.dgvExportList.AllowUserToResizeRows = false;
  335. this.dgvExportList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  336. | System.Windows.Forms.AnchorStyles.Left)));
  337. this.dgvExportList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  338. this.dgvExportList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  339. this.clExport,
  340. this.clCancel,
  341. this.clSourceTable,
  342. this.clTargetTable,
  343. this.clTableDel,
  344. this.clMaxRecord,
  345. this.clWhere,
  346. this.clMappingData});
  347. this.dgvExportList.Location = new System.Drawing.Point(18, 125);
  348. this.dgvExportList.Name = "dgvExportList";
  349. this.dgvExportList.RowTemplate.Height = 25;
  350. this.dgvExportList.Size = new System.Drawing.Size(1204, 924);
  351. this.dgvExportList.TabIndex = 44;
  352. this.dgvExportList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvExportList_CellClick);
  353. this.dgvExportList.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvExportList_CellContentClick);
  354. this.dgvExportList.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvExportList_CellEndEdit);
  355. //
  356. // label11
  357. //
  358. this.label11.AutoSize = true;
  359. this.label11.ForeColor = System.Drawing.SystemColors.ControlLight;
  360. this.label11.Location = new System.Drawing.Point(18, 102);
  361. this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  362. this.label11.Name = "label11";
  363. this.label11.Size = new System.Drawing.Size(121, 20);
  364. this.label11.TabIndex = 43;
  365. this.label11.Text = "匯出資料表列表";
  366. //
  367. // dgvColumnMapping
  368. //
  369. this.dgvColumnMapping.AllowUserToAddRows = false;
  370. this.dgvColumnMapping.AllowUserToDeleteRows = false;
  371. this.dgvColumnMapping.AllowUserToOrderColumns = true;
  372. this.dgvColumnMapping.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  373. | System.Windows.Forms.AnchorStyles.Right)));
  374. this.dgvColumnMapping.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
  375. this.dgvColumnMapping.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  376. this.clExpColumn,
  377. this.clClean,
  378. this.clSourceColumn,
  379. this.clType,
  380. this.clTargetColumn});
  381. this.dgvColumnMapping.Location = new System.Drawing.Point(1228, 180);
  382. this.dgvColumnMapping.Name = "dgvColumnMapping";
  383. this.dgvColumnMapping.RowTemplate.Height = 25;
  384. this.dgvColumnMapping.Size = new System.Drawing.Size(556, 342);
  385. this.dgvColumnMapping.TabIndex = 45;
  386. this.dgvColumnMapping.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvColumnMapping_CellContentClick);
  387. this.dgvColumnMapping.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvColumnMapping_CellEndEdit);
  388. //
  389. // txtWhere
  390. //
  391. this.txtWhere.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
  392. | System.Windows.Forms.AnchorStyles.Left)
  393. | System.Windows.Forms.AnchorStyles.Right)));
  394. this.txtWhere.Location = new System.Drawing.Point(1228, 556);
  395. this.txtWhere.Multiline = true;
  396. this.txtWhere.Name = "txtWhere";
  397. this.txtWhere.Size = new System.Drawing.Size(556, 457);
  398. this.txtWhere.TabIndex = 47;
  399. //
  400. // label13
  401. //
  402. this.label13.AutoSize = true;
  403. this.label13.ForeColor = System.Drawing.SystemColors.ControlLight;
  404. this.label13.Location = new System.Drawing.Point(1228, 533);
  405. this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  406. this.label13.Name = "label13";
  407. this.label13.Size = new System.Drawing.Size(73, 20);
  408. this.label13.TabIndex = 46;
  409. this.label13.Text = "過濾條件";
  410. //
  411. // label14
  412. //
  413. this.label14.AutoSize = true;
  414. this.label14.ForeColor = System.Drawing.SystemColors.ControlLight;
  415. this.label14.Location = new System.Drawing.Point(1224, 125);
  416. this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
  417. this.label14.Name = "label14";
  418. this.label14.Size = new System.Drawing.Size(89, 20);
  419. this.label14.TabIndex = 48;
  420. this.label14.Text = "目標資料表";
  421. //
  422. // cbTargetTable
  423. //
  424. this.cbTargetTable.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
  425. | System.Windows.Forms.AnchorStyles.Right)));
  426. this.cbTargetTable.DisplayMember = "TableName";
  427. this.cbTargetTable.Enabled = false;
  428. this.cbTargetTable.FormattingEnabled = true;
  429. this.cbTargetTable.Location = new System.Drawing.Point(1320, 122);
  430. this.cbTargetTable.Name = "cbTargetTable";
  431. this.cbTargetTable.Size = new System.Drawing.Size(464, 28);
  432. this.cbTargetTable.TabIndex = 49;
  433. this.cbTargetTable.ValueMember = "TableName";
  434. this.cbTargetTable.SelectedIndexChanged += new System.EventHandler(this.cbTargetTable_SelectedIndexChanged);
  435. //
  436. // btnMapping
  437. //
  438. this.btnMapping.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
  439. this.btnMapping.Location = new System.Drawing.Point(1697, 1019);
  440. this.btnMapping.Name = "btnMapping";
  441. this.btnMapping.Size = new System.Drawing.Size(87, 33);
  442. this.btnMapping.TabIndex = 50;
  443. this.btnMapping.Text = "設 定";
  444. this.btnMapping.UseVisualStyleBackColor = true;
  445. this.btnMapping.Click += new System.EventHandler(this.btnMapping_Click);
  446. //
  447. // clExpColumn
  448. //
  449. this.clExpColumn.HeaderText = "匯出";
  450. this.clExpColumn.Name = "clExpColumn";
  451. this.clExpColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  452. this.clExpColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
  453. this.clExpColumn.Width = 65;
  454. //
  455. // clClean
  456. //
  457. this.clClean.HeaderText = "清除";
  458. this.clClean.Name = "clClean";
  459. this.clClean.Width = 50;
  460. //
  461. // clSourceColumn
  462. //
  463. this.clSourceColumn.DataPropertyName = "COLUMN_NAME";
  464. this.clSourceColumn.HeaderText = "來源欄位";
  465. this.clSourceColumn.Name = "clSourceColumn";
  466. this.clSourceColumn.ReadOnly = true;
  467. this.clSourceColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  468. this.clSourceColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  469. this.clSourceColumn.Width = 200;
  470. //
  471. // clType
  472. //
  473. this.clType.DataPropertyName = "DATA_TYPE";
  474. this.clType.HeaderText = "型態";
  475. this.clType.Name = "clType";
  476. this.clType.Width = 80;
  477. //
  478. // clTargetColumn
  479. //
  480. this.clTargetColumn.HeaderText = "目標欄位";
  481. this.clTargetColumn.Name = "clTargetColumn";
  482. this.clTargetColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  483. this.clTargetColumn.Width = 200;
  484. //
  485. // clExport
  486. //
  487. this.clExport.FalseValue = "false";
  488. this.clExport.Frozen = true;
  489. this.clExport.HeaderText = "匯出";
  490. this.clExport.IndeterminateValue = "false";
  491. this.clExport.Name = "clExport";
  492. this.clExport.ReadOnly = true;
  493. this.clExport.TrueValue = "true";
  494. this.clExport.Width = 55;
  495. //
  496. // clCancel
  497. //
  498. this.clCancel.Frozen = true;
  499. this.clCancel.HeaderText = "清除";
  500. this.clCancel.Name = "clCancel";
  501. this.clCancel.Text = "Clean";
  502. this.clCancel.Width = 55;
  503. //
  504. // clSourceTable
  505. //
  506. this.clSourceTable.DataPropertyName = "TableName";
  507. this.clSourceTable.Frozen = true;
  508. this.clSourceTable.HeaderText = "來源資料表名稱";
  509. this.clSourceTable.Name = "clSourceTable";
  510. this.clSourceTable.ReadOnly = true;
  511. this.clSourceTable.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  512. this.clSourceTable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  513. this.clSourceTable.Width = 300;
  514. //
  515. // clTargetTable
  516. //
  517. this.clTargetTable.HeaderText = "目標資料表名稱";
  518. this.clTargetTable.Name = "clTargetTable";
  519. this.clTargetTable.ReadOnly = true;
  520. this.clTargetTable.Resizable = System.Windows.Forms.DataGridViewTriState.True;
  521. this.clTargetTable.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
  522. this.clTargetTable.Width = 300;
  523. //
  524. // clTableDel
  525. //
  526. this.clTableDel.HeaderText = "清除目標資料表內容";
  527. this.clTableDel.Name = "clTableDel";
  528. this.clTableDel.Width = 180;
  529. //
  530. // clMaxRecord
  531. //
  532. this.clMaxRecord.HeaderText = "檔案匯出上限筆數";
  533. this.clMaxRecord.Name = "clMaxRecord";
  534. this.clMaxRecord.Width = 160;
  535. //
  536. // clWhere
  537. //
  538. this.clWhere.HeaderText = "過濾條件";
  539. this.clWhere.Name = "clWhere";
  540. this.clWhere.Visible = false;
  541. this.clWhere.Width = 200;
  542. //
  543. // clMappingData
  544. //
  545. this.clMappingData.HeaderText = "欄位對應";
  546. this.clMappingData.Name = "clMappingData";
  547. this.clMappingData.Visible = false;
  548. //
  549. // Form1
  550. //
  551. this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 20F);
  552. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  553. this.BackColor = System.Drawing.SystemColors.ControlDarkDark;
  554. this.ClientSize = new System.Drawing.Size(1796, 1061);
  555. this.Controls.Add(this.btnMapping);
  556. this.Controls.Add(this.cbTargetTable);
  557. this.Controls.Add(this.label14);
  558. this.Controls.Add(this.txtWhere);
  559. this.Controls.Add(this.label13);
  560. this.Controls.Add(this.dgvColumnMapping);
  561. this.Controls.Add(this.dgvExportList);
  562. this.Controls.Add(this.label11);
  563. this.Controls.Add(this.btnExport);
  564. this.Controls.Add(this.label12);
  565. this.Controls.Add(this.btnTargetConnTest);
  566. this.Controls.Add(this.txtTargetPWD);
  567. this.Controls.Add(this.label6);
  568. this.Controls.Add(this.btnSourceConnTest);
  569. this.Controls.Add(this.txtSourcePWD);
  570. this.Controls.Add(this.label5);
  571. this.Controls.Add(this.txtTargetID);
  572. this.Controls.Add(this.label7);
  573. this.Controls.Add(this.txtTargetDBName);
  574. this.Controls.Add(this.label8);
  575. this.Controls.Add(this.txtTargetIP);
  576. this.Controls.Add(this.label9);
  577. this.Controls.Add(this.cbTargetClass);
  578. this.Controls.Add(this.label10);
  579. this.Controls.Add(this.txtSourceID);
  580. this.Controls.Add(this.label4);
  581. this.Controls.Add(this.txtSourceDBName);
  582. this.Controls.Add(this.label3);
  583. this.Controls.Add(this.txtSourceIP);
  584. this.Controls.Add(this.label2);
  585. this.Controls.Add(this.cbSourceClass);
  586. this.Controls.Add(this.label1);
  587. this.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136)));
  588. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
  589. this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  590. this.Margin = new System.Windows.Forms.Padding(5);
  591. this.Name = "Form1";
  592. this.Text = "資料匯出程式";
  593. this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
  594. this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
  595. ((System.ComponentModel.ISupportInitialize)(this.dgvExportList)).EndInit();
  596. ((System.ComponentModel.ISupportInitialize)(this.dgvColumnMapping)).EndInit();
  597. this.ResumeLayout(false);
  598. this.PerformLayout();
  599. }
  600. #endregion
  601. private System.Windows.Forms.TextBox txtTargetID;
  602. private System.Windows.Forms.Label label7;
  603. private System.Windows.Forms.TextBox txtTargetDBName;
  604. private System.Windows.Forms.Label label8;
  605. private System.Windows.Forms.TextBox txtTargetIP;
  606. private System.Windows.Forms.Label label9;
  607. private System.Windows.Forms.ComboBox cbTargetClass;
  608. private System.Windows.Forms.Label label10;
  609. private System.Windows.Forms.TextBox txtSourceID;
  610. private System.Windows.Forms.Label label4;
  611. private System.Windows.Forms.TextBox txtSourceDBName;
  612. private System.Windows.Forms.Label label3;
  613. private System.Windows.Forms.TextBox txtSourceIP;
  614. private System.Windows.Forms.Label label2;
  615. private System.Windows.Forms.ComboBox cbSourceClass;
  616. private System.Windows.Forms.Label label1;
  617. private System.Windows.Forms.Button btnExport;
  618. private System.Windows.Forms.Label label12;
  619. private System.Windows.Forms.Button btnTargetConnTest;
  620. private System.Windows.Forms.TextBox txtTargetPWD;
  621. private System.Windows.Forms.Label label6;
  622. private System.Windows.Forms.Button btnSourceConnTest;
  623. private System.Windows.Forms.TextBox txtSourcePWD;
  624. private System.Windows.Forms.Label label5;
  625. private System.Windows.Forms.DataGridView dgvExportList;
  626. private System.Windows.Forms.Label label11;
  627. private System.Windows.Forms.DataGridView dgvColumnMapping;
  628. private System.Windows.Forms.TextBox txtWhere;
  629. private System.Windows.Forms.Label label13;
  630. private System.Windows.Forms.Label label14;
  631. private System.Windows.Forms.ComboBox cbTargetTable;
  632. private System.Windows.Forms.Button btnMapping;
  633. private System.Windows.Forms.SaveFileDialog sfPath;
  634. private System.Windows.Forms.DataGridViewCheckBoxColumn clExpColumn;
  635. private System.Windows.Forms.DataGridViewButtonColumn clClean;
  636. private System.Windows.Forms.DataGridViewTextBoxColumn clSourceColumn;
  637. private System.Windows.Forms.DataGridViewTextBoxColumn clType;
  638. private System.Windows.Forms.DataGridViewComboBoxColumn clTargetColumn;
  639. private System.Windows.Forms.DataGridViewCheckBoxColumn clExport;
  640. private System.Windows.Forms.DataGridViewButtonColumn clCancel;
  641. private System.Windows.Forms.DataGridViewTextBoxColumn clSourceTable;
  642. private System.Windows.Forms.DataGridViewTextBoxColumn clTargetTable;
  643. private System.Windows.Forms.DataGridViewCheckBoxColumn clTableDel;
  644. private System.Windows.Forms.DataGridViewTextBoxColumn clMaxRecord;
  645. private System.Windows.Forms.DataGridViewTextBoxColumn clWhere;
  646. private System.Windows.Forms.DataGridViewTextBoxColumn clMappingData;
  647. }
  648. }