개정판 c8e1c60b
issue #937: 파이널 서비스 환경 설정 화면 추가
Signed-off-by: humkyung <humkyung@doftech.co.kr>
Change-Id: I894a237954ca4884cf1b15130df2875858520fa9
FinalService/KCOM_FinalService/FinalService_Config/FormConfig.Designer.cs | ||
---|---|---|
36 | 36 |
this.textBoxProjectNO = new System.Windows.Forms.TextBox(); |
37 | 37 |
this.label3 = new System.Windows.Forms.Label(); |
38 | 38 |
this.textBoxDocumentID = new System.Windows.Forms.TextBox(); |
39 |
this.groupBox1 = new System.Windows.Forms.GroupBox(); |
|
40 |
this.label4 = new System.Windows.Forms.Label(); |
|
41 |
this.textBoxPDFMovePath = new System.Windows.Forms.TextBox(); |
|
42 |
this.label5 = new System.Windows.Forms.Label(); |
|
43 |
this.textBoxApprovedImgPath = new System.Windows.Forms.TextBox(); |
|
44 |
this.buttonApprovedImgPath = new System.Windows.Forms.Button(); |
|
45 |
this.textBoxCheckmarkImgPath = new System.Windows.Forms.TextBox(); |
|
46 |
this.buttonCheckmarkImgPath = new System.Windows.Forms.Button(); |
|
47 |
this.label6 = new System.Windows.Forms.Label(); |
|
48 |
this.label7 = new System.Windows.Forms.Label(); |
|
49 |
this.textBoxUpLoadServiceUrl = new System.Windows.Forms.TextBox(); |
|
50 |
this.buttonUpLoadServiceUrl = new System.Windows.Forms.Button(); |
|
51 |
this.textBoxConnectionString = new System.Windows.Forms.TextBox(); |
|
52 |
this.label8 = new System.Windows.Forms.Label(); |
|
53 |
this.buttonConnectionString = new System.Windows.Forms.Button(); |
|
54 |
this.textBoxMARKUS_API = new System.Windows.Forms.TextBox(); |
|
55 |
this.label9 = new System.Windows.Forms.Label(); |
|
56 |
this.buttonMARKUS_API = new System.Windows.Forms.Button(); |
|
57 |
this.buttonPDFMovePath = new System.Windows.Forms.Button(); |
|
58 |
this.buttonSave = new System.Windows.Forms.Button(); |
|
59 |
this.groupBox1.SuspendLayout(); |
|
39 | 60 |
this.SuspendLayout(); |
40 | 61 |
// |
41 | 62 |
// buttonTest |
42 | 63 |
// |
43 |
this.buttonTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); |
|
44 |
this.buttonTest.Location = new System.Drawing.Point(602, 30); |
|
64 |
this.buttonTest.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
|
65 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
66 |
this.buttonTest.Location = new System.Drawing.Point(602, 300); |
|
45 | 67 |
this.buttonTest.Name = "buttonTest"; |
46 |
this.buttonTest.Size = new System.Drawing.Size(174, 21);
|
|
68 |
this.buttonTest.Size = new System.Drawing.Size(205, 21);
|
|
47 | 69 |
this.buttonTest.TabIndex = 0; |
48 | 70 |
this.buttonTest.Text = "파이널 서비스 호출"; |
49 | 71 |
this.buttonTest.UseVisualStyleBackColor = true; |
... | ... | |
54 | 76 |
this.textBoxLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
55 | 77 |
| System.Windows.Forms.AnchorStyles.Left) |
56 | 78 |
| System.Windows.Forms.AnchorStyles.Right))); |
57 |
this.textBoxLog.Location = new System.Drawing.Point(0, 57);
|
|
79 |
this.textBoxLog.Location = new System.Drawing.Point(0, 345);
|
|
58 | 80 |
this.textBoxLog.Multiline = true; |
59 | 81 |
this.textBoxLog.Name = "textBoxLog"; |
60 |
this.textBoxLog.Size = new System.Drawing.Size(789, 461);
|
|
82 |
this.textBoxLog.Size = new System.Drawing.Size(807, 208);
|
|
61 | 83 |
this.textBoxLog.TabIndex = 1; |
62 | 84 |
// |
63 | 85 |
// label1 |
64 | 86 |
// |
65 | 87 |
this.label1.AutoSize = true; |
66 |
this.label1.Location = new System.Drawing.Point(12, 9);
|
|
88 |
this.label1.Location = new System.Drawing.Point(12, 270);
|
|
67 | 89 |
this.label1.Name = "label1"; |
68 | 90 |
this.label1.Size = new System.Drawing.Size(41, 12); |
69 | 91 |
this.label1.TabIndex = 2; |
... | ... | |
71 | 93 |
// |
72 | 94 |
// textBoxPort |
73 | 95 |
// |
74 |
this.textBoxPort.Location = new System.Drawing.Point(112, 3); |
|
96 |
this.textBoxPort.Location = new System.Drawing.Point(112, 273);
|
|
75 | 97 |
this.textBoxPort.Name = "textBoxPort"; |
76 | 98 |
this.textBoxPort.Size = new System.Drawing.Size(100, 21); |
77 | 99 |
this.textBoxPort.TabIndex = 3; |
... | ... | |
80 | 102 |
// label2 |
81 | 103 |
// |
82 | 104 |
this.label2.AutoSize = true; |
83 |
this.label2.Location = new System.Drawing.Point(12, 33); |
|
105 |
this.label2.Location = new System.Drawing.Point(12, 303);
|
|
84 | 106 |
this.label2.Name = "label2"; |
85 | 107 |
this.label2.Size = new System.Drawing.Size(93, 12); |
86 | 108 |
this.label2.TabIndex = 4; |
... | ... | |
88 | 110 |
// |
89 | 111 |
// textBoxProjectNO |
90 | 112 |
// |
91 |
this.textBoxProjectNO.Location = new System.Drawing.Point(112, 30); |
|
113 |
this.textBoxProjectNO.Location = new System.Drawing.Point(112, 300);
|
|
92 | 114 |
this.textBoxProjectNO.Name = "textBoxProjectNO"; |
93 | 115 |
this.textBoxProjectNO.Size = new System.Drawing.Size(100, 21); |
94 | 116 |
this.textBoxProjectNO.TabIndex = 5; |
... | ... | |
96 | 118 |
// label3 |
97 | 119 |
// |
98 | 120 |
this.label3.AutoSize = true; |
99 |
this.label3.Location = new System.Drawing.Point(218, 33); |
|
121 |
this.label3.Location = new System.Drawing.Point(218, 303);
|
|
100 | 122 |
this.label3.Name = "label3"; |
101 | 123 |
this.label3.Size = new System.Drawing.Size(56, 12); |
102 | 124 |
this.label3.TabIndex = 6; |
... | ... | |
104 | 126 |
// |
105 | 127 |
// textBoxDocumentID |
106 | 128 |
// |
107 |
this.textBoxDocumentID.Location = new System.Drawing.Point(280, 30); |
|
129 |
this.textBoxDocumentID.Location = new System.Drawing.Point(280, 300);
|
|
108 | 130 |
this.textBoxDocumentID.Name = "textBoxDocumentID"; |
109 | 131 |
this.textBoxDocumentID.Size = new System.Drawing.Size(316, 21); |
110 | 132 |
this.textBoxDocumentID.TabIndex = 7; |
111 | 133 |
// |
134 |
// groupBox1 |
|
135 |
// |
|
136 |
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
|
137 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
138 |
this.groupBox1.Controls.Add(this.buttonPDFMovePath); |
|
139 |
this.groupBox1.Controls.Add(this.buttonMARKUS_API); |
|
140 |
this.groupBox1.Controls.Add(this.label9); |
|
141 |
this.groupBox1.Controls.Add(this.textBoxMARKUS_API); |
|
142 |
this.groupBox1.Controls.Add(this.buttonConnectionString); |
|
143 |
this.groupBox1.Controls.Add(this.label8); |
|
144 |
this.groupBox1.Controls.Add(this.textBoxConnectionString); |
|
145 |
this.groupBox1.Controls.Add(this.buttonUpLoadServiceUrl); |
|
146 |
this.groupBox1.Controls.Add(this.textBoxUpLoadServiceUrl); |
|
147 |
this.groupBox1.Controls.Add(this.label7); |
|
148 |
this.groupBox1.Controls.Add(this.label6); |
|
149 |
this.groupBox1.Controls.Add(this.buttonCheckmarkImgPath); |
|
150 |
this.groupBox1.Controls.Add(this.textBoxCheckmarkImgPath); |
|
151 |
this.groupBox1.Controls.Add(this.buttonApprovedImgPath); |
|
152 |
this.groupBox1.Controls.Add(this.textBoxApprovedImgPath); |
|
153 |
this.groupBox1.Controls.Add(this.label5); |
|
154 |
this.groupBox1.Controls.Add(this.textBoxPDFMovePath); |
|
155 |
this.groupBox1.Controls.Add(this.label4); |
|
156 |
this.groupBox1.Location = new System.Drawing.Point(12, 12); |
|
157 |
this.groupBox1.Name = "groupBox1"; |
|
158 |
this.groupBox1.Size = new System.Drawing.Size(795, 194); |
|
159 |
this.groupBox1.TabIndex = 8; |
|
160 |
this.groupBox1.TabStop = false; |
|
161 |
this.groupBox1.Text = "설정"; |
|
162 |
// |
|
163 |
// label4 |
|
164 |
// |
|
165 |
this.label4.AutoSize = true; |
|
166 |
this.label4.Location = new System.Drawing.Point(6, 28); |
|
167 |
this.label4.Name = "label4"; |
|
168 |
this.label4.Size = new System.Drawing.Size(96, 12); |
|
169 |
this.label4.TabIndex = 0; |
|
170 |
this.label4.Text = "PDFMovePath : "; |
|
171 |
// |
|
172 |
// textBoxPDFMovePath |
|
173 |
// |
|
174 |
this.textBoxPDFMovePath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
|
175 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
176 |
this.textBoxPDFMovePath.Location = new System.Drawing.Point(128, 25); |
|
177 |
this.textBoxPDFMovePath.Name = "textBoxPDFMovePath"; |
|
178 |
this.textBoxPDFMovePath.Size = new System.Drawing.Size(618, 21); |
|
179 |
this.textBoxPDFMovePath.TabIndex = 1; |
|
180 |
// |
|
181 |
// label5 |
|
182 |
// |
|
183 |
this.label5.AutoSize = true; |
|
184 |
this.label5.Location = new System.Drawing.Point(6, 55); |
|
185 |
this.label5.Name = "label5"; |
|
186 |
this.label5.Size = new System.Drawing.Size(116, 12); |
|
187 |
this.label5.TabIndex = 2; |
|
188 |
this.label5.Text = "ApprovedImgPath : "; |
|
189 |
// |
|
190 |
// textBoxApprovedImgPath |
|
191 |
// |
|
192 |
this.textBoxApprovedImgPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
|
193 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
194 |
this.textBoxApprovedImgPath.Location = new System.Drawing.Point(128, 52); |
|
195 |
this.textBoxApprovedImgPath.Name = "textBoxApprovedImgPath"; |
|
196 |
this.textBoxApprovedImgPath.Size = new System.Drawing.Size(618, 21); |
|
197 |
this.textBoxApprovedImgPath.TabIndex = 3; |
|
198 |
// |
|
199 |
// buttonApprovedImgPath |
|
200 |
// |
|
201 |
this.buttonApprovedImgPath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
202 |
this.buttonApprovedImgPath.Location = new System.Drawing.Point(752, 52); |
|
203 |
this.buttonApprovedImgPath.Name = "buttonApprovedImgPath"; |
|
204 |
this.buttonApprovedImgPath.Size = new System.Drawing.Size(37, 23); |
|
205 |
this.buttonApprovedImgPath.TabIndex = 4; |
|
206 |
this.buttonApprovedImgPath.Text = "확인"; |
|
207 |
this.buttonApprovedImgPath.UseVisualStyleBackColor = true; |
|
208 |
this.buttonApprovedImgPath.Click += new System.EventHandler(this.buttonApprovedImgPath_Click); |
|
209 |
// |
|
210 |
// textBoxCheckmarkImgPath |
|
211 |
// |
|
212 |
this.textBoxCheckmarkImgPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
|
213 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
214 |
this.textBoxCheckmarkImgPath.Location = new System.Drawing.Point(128, 79); |
|
215 |
this.textBoxCheckmarkImgPath.Name = "textBoxCheckmarkImgPath"; |
|
216 |
this.textBoxCheckmarkImgPath.Size = new System.Drawing.Size(618, 21); |
|
217 |
this.textBoxCheckmarkImgPath.TabIndex = 5; |
|
218 |
// |
|
219 |
// buttonCheckmarkImgPath |
|
220 |
// |
|
221 |
this.buttonCheckmarkImgPath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
222 |
this.buttonCheckmarkImgPath.Location = new System.Drawing.Point(752, 79); |
|
223 |
this.buttonCheckmarkImgPath.Name = "buttonCheckmarkImgPath"; |
|
224 |
this.buttonCheckmarkImgPath.Size = new System.Drawing.Size(37, 23); |
|
225 |
this.buttonCheckmarkImgPath.TabIndex = 6; |
|
226 |
this.buttonCheckmarkImgPath.Text = "확인"; |
|
227 |
this.buttonCheckmarkImgPath.UseVisualStyleBackColor = true; |
|
228 |
this.buttonCheckmarkImgPath.Click += new System.EventHandler(this.buttonCheckmarkImgPath_Click); |
|
229 |
// |
|
230 |
// label6 |
|
231 |
// |
|
232 |
this.label6.AutoSize = true; |
|
233 |
this.label6.Location = new System.Drawing.Point(6, 84); |
|
234 |
this.label6.Name = "label6"; |
|
235 |
this.label6.Size = new System.Drawing.Size(127, 12); |
|
236 |
this.label6.TabIndex = 7; |
|
237 |
this.label6.Text = "CheckmarkImgPath : "; |
|
238 |
// |
|
239 |
// label7 |
|
240 |
// |
|
241 |
this.label7.AutoSize = true; |
|
242 |
this.label7.Location = new System.Drawing.Point(6, 109); |
|
243 |
this.label7.Name = "label7"; |
|
244 |
this.label7.Size = new System.Drawing.Size(117, 12); |
|
245 |
this.label7.TabIndex = 8; |
|
246 |
this.label7.Text = "UpLoadServiceUrl : "; |
|
247 |
// |
|
248 |
// textBoxUpLoadServiceUrl |
|
249 |
// |
|
250 |
this.textBoxUpLoadServiceUrl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
|
251 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
252 |
this.textBoxUpLoadServiceUrl.Location = new System.Drawing.Point(128, 106); |
|
253 |
this.textBoxUpLoadServiceUrl.Name = "textBoxUpLoadServiceUrl"; |
|
254 |
this.textBoxUpLoadServiceUrl.Size = new System.Drawing.Size(618, 21); |
|
255 |
this.textBoxUpLoadServiceUrl.TabIndex = 9; |
|
256 |
// |
|
257 |
// buttonUpLoadServiceUrl |
|
258 |
// |
|
259 |
this.buttonUpLoadServiceUrl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
260 |
this.buttonUpLoadServiceUrl.Location = new System.Drawing.Point(752, 106); |
|
261 |
this.buttonUpLoadServiceUrl.Name = "buttonUpLoadServiceUrl"; |
|
262 |
this.buttonUpLoadServiceUrl.Size = new System.Drawing.Size(37, 23); |
|
263 |
this.buttonUpLoadServiceUrl.TabIndex = 10; |
|
264 |
this.buttonUpLoadServiceUrl.Text = "확인"; |
|
265 |
this.buttonUpLoadServiceUrl.UseVisualStyleBackColor = true; |
|
266 |
// |
|
267 |
// textBoxConnectionString |
|
268 |
// |
|
269 |
this.textBoxConnectionString.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
|
270 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
271 |
this.textBoxConnectionString.Location = new System.Drawing.Point(128, 133); |
|
272 |
this.textBoxConnectionString.Name = "textBoxConnectionString"; |
|
273 |
this.textBoxConnectionString.Size = new System.Drawing.Size(618, 21); |
|
274 |
this.textBoxConnectionString.TabIndex = 11; |
|
275 |
// |
|
276 |
// label8 |
|
277 |
// |
|
278 |
this.label8.AutoSize = true; |
|
279 |
this.label8.Location = new System.Drawing.Point(6, 136); |
|
280 |
this.label8.Name = "label8"; |
|
281 |
this.label8.Size = new System.Drawing.Size(113, 12); |
|
282 |
this.label8.TabIndex = 12; |
|
283 |
this.label8.Text = "ConnectionString : "; |
|
284 |
// |
|
285 |
// buttonConnectionString |
|
286 |
// |
|
287 |
this.buttonConnectionString.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
288 |
this.buttonConnectionString.Location = new System.Drawing.Point(752, 133); |
|
289 |
this.buttonConnectionString.Name = "buttonConnectionString"; |
|
290 |
this.buttonConnectionString.Size = new System.Drawing.Size(37, 23); |
|
291 |
this.buttonConnectionString.TabIndex = 13; |
|
292 |
this.buttonConnectionString.Text = "확인"; |
|
293 |
this.buttonConnectionString.UseVisualStyleBackColor = true; |
|
294 |
this.buttonConnectionString.Click += new System.EventHandler(this.buttonConnectionString_Click); |
|
295 |
// |
|
296 |
// textBoxMARKUS_API |
|
297 |
// |
|
298 |
this.textBoxMARKUS_API.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
|
299 |
| System.Windows.Forms.AnchorStyles.Right))); |
|
300 |
this.textBoxMARKUS_API.Location = new System.Drawing.Point(128, 160); |
|
301 |
this.textBoxMARKUS_API.Name = "textBoxMARKUS_API"; |
|
302 |
this.textBoxMARKUS_API.Size = new System.Drawing.Size(618, 21); |
|
303 |
this.textBoxMARKUS_API.TabIndex = 14; |
|
304 |
// |
|
305 |
// label9 |
|
306 |
// |
|
307 |
this.label9.AutoSize = true; |
|
308 |
this.label9.Location = new System.Drawing.Point(6, 163); |
|
309 |
this.label9.Name = "label9"; |
|
310 |
this.label9.Size = new System.Drawing.Size(93, 12); |
|
311 |
this.label9.TabIndex = 15; |
|
312 |
this.label9.Text = "MARKUS_API : "; |
|
313 |
// |
|
314 |
// buttonMARKUS_API |
|
315 |
// |
|
316 |
this.buttonMARKUS_API.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
317 |
this.buttonMARKUS_API.Location = new System.Drawing.Point(752, 160); |
|
318 |
this.buttonMARKUS_API.Name = "buttonMARKUS_API"; |
|
319 |
this.buttonMARKUS_API.Size = new System.Drawing.Size(37, 23); |
|
320 |
this.buttonMARKUS_API.TabIndex = 16; |
|
321 |
this.buttonMARKUS_API.Text = "확인"; |
|
322 |
this.buttonMARKUS_API.UseVisualStyleBackColor = true; |
|
323 |
this.buttonMARKUS_API.Click += new System.EventHandler(this.buttonMARKUS_API_Click); |
|
324 |
// |
|
325 |
// buttonPDFMovePath |
|
326 |
// |
|
327 |
this.buttonPDFMovePath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
328 |
this.buttonPDFMovePath.Location = new System.Drawing.Point(752, 25); |
|
329 |
this.buttonPDFMovePath.Name = "buttonPDFMovePath"; |
|
330 |
this.buttonPDFMovePath.Size = new System.Drawing.Size(37, 23); |
|
331 |
this.buttonPDFMovePath.TabIndex = 17; |
|
332 |
this.buttonPDFMovePath.Text = "확인"; |
|
333 |
this.buttonPDFMovePath.UseVisualStyleBackColor = true; |
|
334 |
this.buttonPDFMovePath.Click += new System.EventHandler(this.buttonPDFMovePath_Click); |
|
335 |
// |
|
336 |
// buttonSave |
|
337 |
// |
|
338 |
this.buttonSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
|
339 |
this.buttonSave.Location = new System.Drawing.Point(602, 212); |
|
340 |
this.buttonSave.Name = "buttonSave"; |
|
341 |
this.buttonSave.Size = new System.Drawing.Size(205, 23); |
|
342 |
this.buttonSave.TabIndex = 18; |
|
343 |
this.buttonSave.Text = "저장"; |
|
344 |
this.buttonSave.UseVisualStyleBackColor = true; |
|
345 |
this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click); |
|
346 |
// |
|
112 | 347 |
// FormConfig |
113 | 348 |
// |
114 | 349 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); |
115 | 350 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
116 |
this.ClientSize = new System.Drawing.Size(788, 530); |
|
351 |
this.ClientSize = new System.Drawing.Size(819, 565); |
|
352 |
this.Controls.Add(this.buttonSave); |
|
353 |
this.Controls.Add(this.groupBox1); |
|
117 | 354 |
this.Controls.Add(this.textBoxDocumentID); |
118 | 355 |
this.Controls.Add(this.label3); |
119 | 356 |
this.Controls.Add(this.textBoxProjectNO); |
... | ... | |
124 | 361 |
this.Controls.Add(this.buttonTest); |
125 | 362 |
this.Name = "FormConfig"; |
126 | 363 |
this.Text = "파이널 서비스 테스트"; |
364 |
this.Load += new System.EventHandler(this.FormConfig_Load); |
|
365 |
this.groupBox1.ResumeLayout(false); |
|
366 |
this.groupBox1.PerformLayout(); |
|
127 | 367 |
this.ResumeLayout(false); |
128 | 368 |
this.PerformLayout(); |
129 | 369 |
|
... | ... | |
139 | 379 |
private System.Windows.Forms.TextBox textBoxProjectNO; |
140 | 380 |
private System.Windows.Forms.Label label3; |
141 | 381 |
private System.Windows.Forms.TextBox textBoxDocumentID; |
382 |
private System.Windows.Forms.GroupBox groupBox1; |
|
383 |
private System.Windows.Forms.Label label6; |
|
384 |
private System.Windows.Forms.Button buttonCheckmarkImgPath; |
|
385 |
private System.Windows.Forms.TextBox textBoxCheckmarkImgPath; |
|
386 |
private System.Windows.Forms.Button buttonApprovedImgPath; |
|
387 |
private System.Windows.Forms.TextBox textBoxApprovedImgPath; |
|
388 |
private System.Windows.Forms.Label label5; |
|
389 |
private System.Windows.Forms.TextBox textBoxPDFMovePath; |
|
390 |
private System.Windows.Forms.Label label4; |
|
391 |
private System.Windows.Forms.Button buttonPDFMovePath; |
|
392 |
private System.Windows.Forms.Button buttonMARKUS_API; |
|
393 |
private System.Windows.Forms.Label label9; |
|
394 |
private System.Windows.Forms.TextBox textBoxMARKUS_API; |
|
395 |
private System.Windows.Forms.Button buttonConnectionString; |
|
396 |
private System.Windows.Forms.Label label8; |
|
397 |
private System.Windows.Forms.TextBox textBoxConnectionString; |
|
398 |
private System.Windows.Forms.Button buttonUpLoadServiceUrl; |
|
399 |
private System.Windows.Forms.TextBox textBoxUpLoadServiceUrl; |
|
400 |
private System.Windows.Forms.Label label7; |
|
401 |
private System.Windows.Forms.Button buttonSave; |
|
142 | 402 |
} |
143 | 403 |
} |
144 | 404 |
|
FinalService/KCOM_FinalService/FinalService_Config/FormConfig.cs | ||
---|---|---|
11 | 11 |
using System.Runtime.Remoting.Channels.Tcp; |
12 | 12 |
using System.Configuration; |
13 | 13 |
using IFinalPDF; |
14 |
using System.Runtime.InteropServices; |
|
15 |
using System.IO; |
|
16 |
using System.Security.Cryptography; |
|
17 |
using System.Data.EntityClient; |
|
18 |
using System.Data.SqlClient; |
|
14 | 19 |
|
15 | 20 |
namespace FinalService_Config |
16 | 21 |
{ |
17 | 22 |
public partial class FormConfig : Form |
18 | 23 |
{ |
24 |
[DllImport("kernel32", CharSet = CharSet.Unicode)] |
|
25 |
static extern long WritePrivateProfileString(string Section, string Key, string Value, string FilePath); |
|
26 |
|
|
27 |
[DllImport("kernel32", CharSet = CharSet.Unicode)] |
|
28 |
private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath); |
|
29 |
|
|
30 |
public static string AppDataFolder |
|
31 |
{ |
|
32 |
get |
|
33 |
{ |
|
34 |
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MARKUS"); |
|
35 |
} |
|
36 |
} |
|
37 |
|
|
38 |
public string IniFilePath |
|
39 |
{ |
|
40 |
get |
|
41 |
{ |
|
42 |
return Path.Combine(FormConfig.AppDataFolder, "FinalService.ini"); |
|
43 |
} |
|
44 |
} |
|
45 |
|
|
46 |
string key = "Doftech1073#"; |
|
47 |
|
|
19 | 48 |
public FormConfig() |
20 | 49 |
{ |
21 | 50 |
InitializeComponent(); |
22 | 51 |
} |
23 | 52 |
|
53 |
public string ReadFromIni(string Section, string Key) |
|
54 |
{ |
|
55 |
var RetVal = new StringBuilder(255); |
|
56 |
GetPrivateProfileString(Section, Key, "", RetVal, 255, this.IniFilePath); |
|
57 |
return RetVal.ToString(); |
|
58 |
} |
|
59 |
|
|
60 |
public void WriteToIni(string Section, string Key, string Value) |
|
61 |
{ |
|
62 |
WritePrivateProfileString(Section, Key, Value, this.IniFilePath); |
|
63 |
} |
|
64 |
|
|
24 | 65 |
private void ButtonTest_Click(object sender, EventArgs e) |
25 | 66 |
{ |
26 | 67 |
FinalPDFResult result = new FinalPDFResult(); |
... | ... | |
57 | 98 |
this.textBoxLog.Text = ex.StackTrace.ToString(); |
58 | 99 |
} |
59 | 100 |
} |
60 |
catch(Exception ex) |
|
101 |
catch (Exception ex)
|
|
61 | 102 |
{ |
62 | 103 |
this.textBoxLog.Text = ex.StackTrace.ToString(); |
63 | 104 |
} |
... | ... | |
78 | 119 |
.Replace("/", "") |
79 | 120 |
.Replace("+", "") + DateTime.UtcNow.Ticks.ToString("x"); |
80 | 121 |
} |
122 |
|
|
123 |
private void FormConfig_Load(object sender, EventArgs e) |
|
124 |
{ |
|
125 |
this.textBoxPDFMovePath.Text = this.ReadFromIni("PDFMovePath", "URL"); |
|
126 |
this.textBoxApprovedImgPath.Text = this.ReadFromIni("ApprovedImgPath", "URL"); |
|
127 |
this.textBoxCheckmarkImgPath.Text = this.ReadFromIni("CheckmarkImgPath", "URL"); |
|
128 |
this.textBoxUpLoadServiceUrl.Text = this.ReadFromIni("UpLoadServiceUrl", "URL"); |
|
129 |
this.textBoxConnectionString.Text = FormConfig.Decrypt(this.ReadFromIni("ConnectionString", "STRING"), this.key); |
|
130 |
this.textBoxMARKUS_API.Text = this.ReadFromIni("MARKUS_API", "URL"); |
|
131 |
} |
|
132 |
|
|
133 |
private static string Decrypt(string textToDecrypt, string key) |
|
134 |
{ |
|
135 |
RijndaelManaged rijndaelCipher = new RijndaelManaged(); |
|
136 |
rijndaelCipher.Mode = CipherMode.CBC; |
|
137 |
rijndaelCipher.Padding = PaddingMode.PKCS7; |
|
138 |
rijndaelCipher.KeySize = 128; |
|
139 |
rijndaelCipher.BlockSize = 128; |
|
140 |
|
|
141 |
byte[] encryptedData = Convert.FromBase64String(textToDecrypt); |
|
142 |
byte[] pwdBytes = Encoding.UTF8.GetBytes(key); |
|
143 |
byte[] keyBytes = new byte[16]; |
|
144 |
|
|
145 |
int len = pwdBytes.Length; |
|
146 |
if (len > keyBytes.Length) |
|
147 |
{ |
|
148 |
len = keyBytes.Length; |
|
149 |
} |
|
150 |
|
|
151 |
Array.Copy(pwdBytes, keyBytes, len); |
|
152 |
rijndaelCipher.Key = keyBytes; |
|
153 |
rijndaelCipher.IV = keyBytes; |
|
154 |
|
|
155 |
byte[] plainText = rijndaelCipher.CreateDecryptor().TransformFinalBlock(encryptedData, 0, encryptedData.Length); |
|
156 |
return Encoding.UTF8.GetString(plainText); |
|
157 |
} |
|
158 |
|
|
159 |
private static string Encrypt(string textToEncrypt, string key) |
|
160 |
{ |
|
161 |
RijndaelManaged rijndaelCipher = new RijndaelManaged(); |
|
162 |
rijndaelCipher.Mode = CipherMode.CBC; |
|
163 |
rijndaelCipher.Padding = PaddingMode.PKCS7; |
|
164 |
rijndaelCipher.KeySize = 128; |
|
165 |
rijndaelCipher.BlockSize = 128; |
|
166 |
|
|
167 |
byte[] pwdBytes = Encoding.UTF8.GetBytes(key); |
|
168 |
byte[] keyBytes = new byte[16]; |
|
169 |
int len = pwdBytes.Length; |
|
170 |
if (len > keyBytes.Length) |
|
171 |
{ |
|
172 |
len = keyBytes.Length; |
|
173 |
} |
|
174 |
|
|
175 |
Array.Copy(pwdBytes, keyBytes, len); |
|
176 |
rijndaelCipher.Key = keyBytes; |
|
177 |
rijndaelCipher.IV = keyBytes; |
|
178 |
ICryptoTransform transform = rijndaelCipher.CreateEncryptor(); |
|
179 |
byte[] plainText = Encoding.UTF8.GetBytes(textToEncrypt); |
|
180 |
return Convert.ToBase64String(transform.TransformFinalBlock(plainText, 0, plainText.Length)); |
|
181 |
} |
|
182 |
|
|
183 |
private void buttonPDFMovePath_Click(object sender, EventArgs e) |
|
184 |
{ |
|
185 |
try |
|
186 |
{ |
|
187 |
System.Diagnostics.Process.Start(this.textBoxPDFMovePath.Text); |
|
188 |
} |
|
189 |
catch (Exception ex) |
|
190 |
{ |
|
191 |
MessageBox.Show(ex.StackTrace); |
|
192 |
} |
|
193 |
} |
|
194 |
|
|
195 |
private void buttonApprovedImgPath_Click(object sender, EventArgs e) |
|
196 |
{ |
|
197 |
try |
|
198 |
{ |
|
199 |
System.Diagnostics.Process.Start(this.textBoxApprovedImgPath.Text); |
|
200 |
} |
|
201 |
catch (Exception ex) |
|
202 |
{ |
|
203 |
MessageBox.Show(ex.StackTrace); |
|
204 |
} |
|
205 |
} |
|
206 |
|
|
207 |
private void buttonCheckmarkImgPath_Click(object sender, EventArgs e) |
|
208 |
{ |
|
209 |
try |
|
210 |
{ |
|
211 |
System.Diagnostics.Process.Start(this.textBoxCheckmarkImgPath.Text); |
|
212 |
} |
|
213 |
catch (Exception ex) |
|
214 |
{ |
|
215 |
MessageBox.Show(ex.StackTrace); |
|
216 |
} |
|
217 |
} |
|
218 |
|
|
219 |
private void buttonMARKUS_API_Click(object sender, EventArgs e) |
|
220 |
{ |
|
221 |
try |
|
222 |
{ |
|
223 |
System.Diagnostics.Process.Start(this.textBoxMARKUS_API.Text); |
|
224 |
} |
|
225 |
catch (Exception ex) |
|
226 |
{ |
|
227 |
MessageBox.Show(ex.StackTrace); |
|
228 |
} |
|
229 |
} |
|
230 |
|
|
231 |
private void buttonSave_Click(object sender, EventArgs e) |
|
232 |
{ |
|
233 |
try |
|
234 |
{ |
|
235 |
this.WriteToIni("PDFMovePath", "URL", this.textBoxPDFMovePath.Text); |
|
236 |
this.WriteToIni("ApprovedImgPath", "URL", this.textBoxApprovedImgPath.Text); |
|
237 |
this.WriteToIni("CheckmarkImgPath", "URL", this.textBoxCheckmarkImgPath.Text); |
|
238 |
this.WriteToIni("UpLoadServiceUrl", "URL", this.textBoxUpLoadServiceUrl.Text); |
|
239 |
this.WriteToIni("ConnectionString", "STRING", FormConfig.Encrypt(this.textBoxConnectionString.Text, this.key)); |
|
240 |
this.WriteToIni("MARKUS_API", "URL", this.textBoxMARKUS_API.Text); |
|
241 |
|
|
242 |
MessageBox.Show(this, "Save is done", "FileService Config", MessageBoxButtons.OK, MessageBoxIcon.Information); |
|
243 |
} |
|
244 |
catch (Exception ex) |
|
245 |
{ |
|
246 |
MessageBox.Show(ex.StackTrace); |
|
247 |
} |
|
248 |
} |
|
249 |
|
|
250 |
private static EntityConnectionStringBuilder EntityConnectionStringBuilder(SqlConnectionStringBuilder SqlStringBuilder, string ProviderName, string EntityMetaData) |
|
251 |
{ |
|
252 |
string providerString = SqlStringBuilder.ToString(); |
|
253 |
|
|
254 |
EntityConnectionStringBuilder entityBuilder = new EntityConnectionStringBuilder() |
|
255 |
{ |
|
256 |
Provider = ProviderName, |
|
257 |
ProviderConnectionString = providerString, |
|
258 |
Metadata = EntityMetaData |
|
259 |
}; |
|
260 |
|
|
261 |
return entityBuilder; |
|
262 |
} |
|
263 |
|
|
264 |
private void buttonConnectionString_Click(object sender, EventArgs e) |
|
265 |
{ |
|
266 |
string ProviderName = "System.Data.SqlClient"; |
|
267 |
string DeepViewMeta = @"res://*/DataModel.KCOM_Model.csdl|res://*/DataModel.KCOM_Model.ssdl|res://*/DataModel.KCOM_Model.msl"; |
|
268 |
|
|
269 |
try |
|
270 |
{ |
|
271 |
SqlConnectionStringBuilder _bl = new SqlConnectionStringBuilder(string.Format(this.textBoxConnectionString.Text, "markus")); |
|
272 |
EntityConnectionStringBuilder entityBuilder = new EntityConnectionStringBuilder() |
|
273 |
{ |
|
274 |
Provider = ProviderName, |
|
275 |
ProviderConnectionString = _bl.ToString(), |
|
276 |
Metadata = DeepViewMeta |
|
277 |
}; |
|
278 |
|
|
279 |
using (EntityConnection conn = new EntityConnection(entityBuilder.ToString())) |
|
280 |
{ |
|
281 |
conn.Open(); |
|
282 |
MessageBox.Show(this, "Test connection is success.", "FinalService Config", MessageBoxButtons.OK, MessageBoxIcon.Information); |
|
283 |
conn.Close(); |
|
284 |
} |
|
285 |
} |
|
286 |
catch(Exception ex) |
|
287 |
{ |
|
288 |
MessageBox.Show(this, ex.StackTrace, "FinalService Config", MessageBoxButtons.OK, MessageBoxIcon.Error); |
|
289 |
} |
|
290 |
} |
|
81 | 291 |
} |
82 | 292 |
} |
내보내기 Unified diff