프로젝트

일반

사용자정보

개정판 e4ad75cb

IDe4ad75cb375f2a4f6e4c386503e03c55d37813d0
상위 5781eaba
하위 88cb9898

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #1226 : converter 화면 개발

Change-Id: I90705a73bc7aa3798dda48cde3da696301297410

차이점 보기:

DTI_PID/APIDConverter/Form/APIDConverter.Designer.cs
99 99
            this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False;
100 100
            this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages;
101 101
            this.ribbonControl.ShowToolbarCustomizeItem = false;
102
            this.ribbonControl.Size = new System.Drawing.Size(962, 32);
102
            this.ribbonControl.Size = new System.Drawing.Size(995, 32);
103 103
            this.ribbonControl.Toolbar.ShowCustomizeItem = false;
104 104
            // 
105 105
            // defaultLookAndFeel1
......
118 118
            this.layoutControl1.Location = new System.Drawing.Point(0, 32);
119 119
            this.layoutControl1.Name = "layoutControl1";
120 120
            this.layoutControl1.Root = this.Root;
121
            this.layoutControl1.Size = new System.Drawing.Size(962, 504);
121
            this.layoutControl1.Size = new System.Drawing.Size(995, 507);
122 122
            this.layoutControl1.TabIndex = 1;
123 123
            this.layoutControl1.Text = "layoutControl1";
124 124
            // 
125 125
            // btnRefresh
126 126
            // 
127 127
            this.btnRefresh.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnRefresh.ImageOptions.SvgImage")));
128
            this.btnRefresh.Location = new System.Drawing.Point(157, 58);
128
            this.btnRefresh.Location = new System.Drawing.Point(158, 58);
129 129
            this.btnRefresh.Name = "btnRefresh";
130 130
            this.btnRefresh.Size = new System.Drawing.Size(99, 36);
131 131
            this.btnRefresh.StyleController = this.layoutControl1;
......
136 136
            // btnRun
137 137
            // 
138 138
            this.btnRun.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnRun.ImageOptions.SvgImage")));
139
            this.btnRun.Location = new System.Drawing.Point(577, 58);
139
            this.btnRun.Location = new System.Drawing.Point(600, 58);
140 140
            this.btnRun.Name = "btnRun";
141 141
            this.btnRun.Size = new System.Drawing.Size(79, 36);
142 142
            this.btnRun.StyleController = this.layoutControl1;
......
150 150
            this.gridControlConverter.MainView = this.gridViewConverter;
151 151
            this.gridControlConverter.MenuManager = this.ribbonControl;
152 152
            this.gridControlConverter.Name = "gridControlConverter";
153
            this.gridControlConverter.Size = new System.Drawing.Size(632, 382);
153
            this.gridControlConverter.Size = new System.Drawing.Size(655, 385);
154 154
            this.gridControlConverter.TabIndex = 5;
155 155
            this.gridControlConverter.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
156 156
            this.gridViewConverter});
......
183 183
            this.splitterItem1,
184 184
            this.layoutControlGroupID2Project});
185 185
            this.Root.Name = "Root";
186
            this.Root.Size = new System.Drawing.Size(962, 504);
186
            this.Root.Size = new System.Drawing.Size(995, 507);
187 187
            this.Root.TextVisible = false;
188 188
            // 
189 189
            // layoutControlGroup1
......
199 199
            this.emptySpaceItem2});
200 200
            this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
201 201
            this.layoutControlGroup1.Name = "layoutControlGroup1";
202
            this.layoutControlGroup1.Size = new System.Drawing.Size(660, 484);
202
            this.layoutControlGroup1.Size = new System.Drawing.Size(683, 487);
203 203
            this.layoutControlGroup1.Text = "Auto Converter";
204 204
            // 
205 205
            // layoutControlItem2
......
207 207
            this.layoutControlItem2.Control = this.gridControlConverter;
208 208
            this.layoutControlItem2.Location = new System.Drawing.Point(0, 40);
209 209
            this.layoutControlItem2.Name = "layoutControlItem2";
210
            this.layoutControlItem2.Size = new System.Drawing.Size(636, 386);
210
            this.layoutControlItem2.Size = new System.Drawing.Size(659, 389);
211 211
            this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
212 212
            this.layoutControlItem2.TextVisible = false;
213 213
            // 
......
226 226
            // emptySpaceItem1
227 227
            // 
228 228
            this.emptySpaceItem1.AllowHotTrack = false;
229
            this.emptySpaceItem1.Location = new System.Drawing.Point(236, 0);
229
            this.emptySpaceItem1.Location = new System.Drawing.Point(237, 0);
230 230
            this.emptySpaceItem1.Name = "emptySpaceItem1";
231
            this.emptySpaceItem1.Size = new System.Drawing.Size(317, 40);
231
            this.emptySpaceItem1.Size = new System.Drawing.Size(339, 40);
232 232
            this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
233 233
            // 
234 234
            // layoutControlItem3
235 235
            // 
236 236
            this.layoutControlItem3.Control = this.btnRun;
237
            this.layoutControlItem3.Location = new System.Drawing.Point(553, 0);
237
            this.layoutControlItem3.Location = new System.Drawing.Point(576, 0);
238 238
            this.layoutControlItem3.MaxSize = new System.Drawing.Size(83, 40);
239 239
            this.layoutControlItem3.MinSize = new System.Drawing.Size(83, 40);
240 240
            this.layoutControlItem3.Name = "layoutControlItem3";
......
246 246
            // layoutControlItem4
247 247
            // 
248 248
            this.layoutControlItem4.Control = this.btnRefresh;
249
            this.layoutControlItem4.Location = new System.Drawing.Point(133, 0);
249
            this.layoutControlItem4.Location = new System.Drawing.Point(134, 0);
250 250
            this.layoutControlItem4.MaxSize = new System.Drawing.Size(103, 40);
251 251
            this.layoutControlItem4.MinSize = new System.Drawing.Size(103, 40);
252 252
            this.layoutControlItem4.Name = "layoutControlItem4";
......
260 260
            this.emptySpaceItem2.AllowHotTrack = false;
261 261
            this.emptySpaceItem2.Location = new System.Drawing.Point(114, 0);
262 262
            this.emptySpaceItem2.Name = "emptySpaceItem2";
263
            this.emptySpaceItem2.Size = new System.Drawing.Size(19, 40);
263
            this.emptySpaceItem2.Size = new System.Drawing.Size(20, 40);
264 264
            this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
265 265
            // 
266 266
            // splitterItem1
267 267
            // 
268 268
            this.splitterItem1.AllowHotTrack = true;
269
            this.splitterItem1.Location = new System.Drawing.Point(660, 0);
269
            this.splitterItem1.Location = new System.Drawing.Point(683, 0);
270 270
            this.splitterItem1.Name = "splitterItem1";
271
            this.splitterItem1.Size = new System.Drawing.Size(12, 484);
271
            this.splitterItem1.Size = new System.Drawing.Size(12, 487);
272 272
            // 
273 273
            // btnItemMapping
274 274
            // 
275 275
            this.btnItemMapping.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("simpleButton2.ImageOptions.SvgImage")));
276
            this.btnItemMapping.Location = new System.Drawing.Point(696, 210);
276
            this.btnItemMapping.Location = new System.Drawing.Point(719, 210);
277 277
            this.btnItemMapping.Name = "btnItemMapping";
278
            this.btnItemMapping.Size = new System.Drawing.Size(242, 36);
278
            this.btnItemMapping.Size = new System.Drawing.Size(252, 36);
279 279
            this.btnItemMapping.StyleController = this.layoutControl1;
280 280
            this.btnItemMapping.TabIndex = 9;
281 281
            this.btnItemMapping.Text = "Setting";
282
            this.btnItemMapping.Click += new System.EventHandler(this.btnItemMapping_Click);
282 283
            // 
283 284
            // layoutControlItem6
284 285
            // 
285 286
            this.layoutControlItem6.Control = this.btnItemMapping;
286 287
            this.layoutControlItem6.Location = new System.Drawing.Point(0, 0);
287 288
            this.layoutControlItem6.Name = "layoutControlItem6";
288
            this.layoutControlItem6.Size = new System.Drawing.Size(246, 40);
289
            this.layoutControlItem6.Size = new System.Drawing.Size(256, 40);
289 290
            this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
290 291
            this.layoutControlItem6.TextVisible = false;
291 292
            // 
......
295 296
            this.layoutControlGroup3.GroupStyle = DevExpress.Utils.GroupStyle.Card;
296 297
            this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
297 298
            this.layoutControlItem6});
298
            this.layoutControlGroup3.Location = new System.Drawing.Point(672, 152);
299
            this.layoutControlGroup3.Location = new System.Drawing.Point(695, 152);
299 300
            this.layoutControlGroup3.Name = "layoutControlGroup3";
300
            this.layoutControlGroup3.Size = new System.Drawing.Size(270, 98);
301
            this.layoutControlGroup3.Size = new System.Drawing.Size(280, 98);
301 302
            this.layoutControlGroup3.Text = "Item Mapping";
302 303
            // 
303 304
            // emptySpaceItem3
304 305
            // 
305 306
            this.emptySpaceItem3.AllowHotTrack = false;
306
            this.emptySpaceItem3.Location = new System.Drawing.Point(672, 250);
307
            this.emptySpaceItem3.Location = new System.Drawing.Point(695, 250);
307 308
            this.emptySpaceItem3.Name = "emptySpaceItem3";
308
            this.emptySpaceItem3.Size = new System.Drawing.Size(270, 234);
309
            this.emptySpaceItem3.Size = new System.Drawing.Size(280, 237);
309 310
            this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
310 311
            // 
311 312
            // btnID2DB
312 313
            // 
313 314
            this.btnID2DB.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("simpleButton1.ImageOptions.SvgImage")));
314
            this.btnID2DB.Location = new System.Drawing.Point(696, 58);
315
            this.btnID2DB.Location = new System.Drawing.Point(719, 58);
315 316
            this.btnID2DB.Name = "btnID2DB";
316
            this.btnID2DB.Size = new System.Drawing.Size(242, 36);
317
            this.btnID2DB.Size = new System.Drawing.Size(252, 36);
317 318
            this.btnID2DB.StyleController = this.layoutControl1;
318 319
            this.btnID2DB.TabIndex = 15;
319 320
            this.btnID2DB.Text = "Setting";
321
            this.btnID2DB.Click += new System.EventHandler(this.btnID2DB_Click);
320 322
            // 
321 323
            // layoutControlGroupID2Project
322 324
            // 
......
331 333
            this.layoutControlItem7,
332 334
            this.labelDBType,
333 335
            this.simpleLabelItem7});
334
            this.layoutControlGroupID2Project.Location = new System.Drawing.Point(672, 0);
336
            this.layoutControlGroupID2Project.Location = new System.Drawing.Point(695, 0);
335 337
            this.layoutControlGroupID2Project.Name = "layoutControlGroupID2Project";
336
            this.layoutControlGroupID2Project.Size = new System.Drawing.Size(270, 152);
338
            this.layoutControlGroupID2Project.Size = new System.Drawing.Size(280, 152);
337 339
            this.layoutControlGroupID2Project.Text = "ID2 Project";
338 340
            // 
339 341
            // labelID2ProjectName
......
342 344
            this.labelID2ProjectName.CustomizationFormText = "ID2ProjectName";
343 345
            this.labelID2ProjectName.Location = new System.Drawing.Point(90, 40);
344 346
            this.labelID2ProjectName.Name = "labelID2ProjectName";
345
            this.labelID2ProjectName.Size = new System.Drawing.Size(156, 18);
347
            this.labelID2ProjectName.Size = new System.Drawing.Size(166, 18);
346 348
            this.labelID2ProjectName.Text = "ID2ProjectName";
347 349
            this.labelID2ProjectName.TextSize = new System.Drawing.Size(93, 14);
348 350
            // 
......
352 354
            this.labelID2ProjectStatus.CustomizationFormText = "ID2ProjectStatus";
353 355
            this.labelID2ProjectStatus.Location = new System.Drawing.Point(51, 76);
354 356
            this.labelID2ProjectStatus.Name = "labelID2ProjectStatus";
355
            this.labelID2ProjectStatus.Size = new System.Drawing.Size(195, 18);
357
            this.labelID2ProjectStatus.Size = new System.Drawing.Size(205, 18);
356 358
            this.labelID2ProjectStatus.Text = "ID2ProjectStatus";
357 359
            this.labelID2ProjectStatus.TextSize = new System.Drawing.Size(93, 14);
358 360
            // 
......
390 392
            this.layoutControlItem7.CustomizationFormText = "layoutControlItem7";
391 393
            this.layoutControlItem7.Location = new System.Drawing.Point(0, 0);
392 394
            this.layoutControlItem7.Name = "layoutControlItem7";
393
            this.layoutControlItem7.Size = new System.Drawing.Size(246, 40);
395
            this.layoutControlItem7.Size = new System.Drawing.Size(256, 40);
394 396
            this.layoutControlItem7.Text = "layoutControlItem7";
395 397
            this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
396 398
            this.layoutControlItem7.TextVisible = false;
......
402 404
            this.labelDBType.Location = new System.Drawing.Point(63, 58);
403 405
            this.labelDBType.MinSize = new System.Drawing.Size(97, 18);
404 406
            this.labelDBType.Name = "labelDBType";
405
            this.labelDBType.Size = new System.Drawing.Size(183, 18);
407
            this.labelDBType.Size = new System.Drawing.Size(193, 18);
406 408
            this.labelDBType.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
407 409
            this.labelDBType.Text = "DB Type";
408 410
            this.labelDBType.TextSize = new System.Drawing.Size(93, 14);
......
425 427
            // 
426 428
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
427 429
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
428
            this.ClientSize = new System.Drawing.Size(962, 536);
430
            this.ClientSize = new System.Drawing.Size(995, 539);
429 431
            this.Controls.Add(this.layoutControl1);
430 432
            this.Controls.Add(this.ribbonControl);
431 433
            this.Name = "APIDConverter";
DTI_PID/APIDConverter/Form/APIDConverter.cs
177 177
                    gridViewConverter.SelectRow(gridViewConverter.GetRowHandle(_ConverterDT.Rows.IndexOf(row)));
178 178
            }
179 179
        }
180

  
181
        private void btnID2DB_Click(object sender, EventArgs e)
182
        {
183
            ProjectForm form = new ProjectForm();
184
            if (form.ShowDialog() == DialogResult.OK)
185
            {
186
                Project_Info _ProjectInfo = Project_Info.GetInstance();
187
                _ProjectInfo.DefaultPath = Settings.Default.ProjectPath;
188
                _ProjectInfo.DBType = (ID2DB_Type)Settings.Default.ProjectDBType;
189
                _ProjectInfo.ServerIP = Settings.Default.ProjectServerIP;
190
                _ProjectInfo.Port = Settings.Default.ProjectPort;
191
                _ProjectInfo.DBUser = Settings.Default.ProjectDBUser;
192
                _ProjectInfo.DBPassword = Settings.Default.ProjectDBPassword;
193

  
194
                if (Project_DB.ConnTestAndCreateTable())
195
                {
196
                    _ProjectInfo.Enable = true;
197
                    MessageBox.Show("Success project setting", "APID Converter", MessageBoxButtons.OK, MessageBoxIcon.Information);
198
                }
199
                else
200
                {
201
                    _ProjectInfo.Enable = false;
202
                    MessageBox.Show("Fail project setting", "APID Converter", MessageBoxButtons.OK, MessageBoxIcon.Error);
203
                }
204
            }
205
        }
206

  
207
        private void btnItemMapping_Click(object sender, EventArgs e)
208
        {
209
            MappingForm form = new MappingForm();
210
            if (form.ShowDialog() == DialogResult.OK)
211
            {
212

  
213
            }
214
        }
180 215
    }
181 216
}

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)