프로젝트

일반

사용자정보

개정판 1efc25a3

ID1efc25a3b17f75464e2917998450474a3455027a
상위 20f3fb3a
하위 6660556e, c4316998

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

dev issue #000 : associate => attribute

Change-Id: I2bf842031c85571f2539b2cd0b1433bff0a29d0c

차이점 보기:

DTI_PID/BaseModel/Project_DB.cs
313 313
            return dt;
314 314
        }
315 315

  
316
        public static DataTable SelectProjectAssociation()
316
        public static DataTable SelectProjectAttribute()
317 317
        {
318 318
            DataTable dt = new DataTable();
319 319
            Project_Info projectInfo = Project_Info.GetInstance();
DTI_PID/SPPIDConverter/AutoModeling.cs
49 49
            //Thread.Sleep(100);
50 50
            try
51 51
            {
52
                // Equipment Modeling
52 53
                foreach (Equipment equipment in document.Equipments)
53 54
                {
54 55
                    SymbolModeling(equipment as Symbol, null, null);
55 56
                }
56

  
57
                // LineRun Symbol Modeling
57 58
                foreach (LineNumber lineNumber in document.LINENUMBERS)
58 59
                {
59 60
                    foreach (LineRun run in lineNumber.RUNS)
......
61 62
                        SymbolModelingByRun(run);
62 63
                    }
63 64
                }
64

  
65
                // TrimLineRun Symbol Modeling
65 66
                foreach (TrimLine trimLine in document.TRIMLINES)
66 67
                {
67 68
                    foreach (LineRun run in trimLine.RUNS)
......
69 70
                        SymbolModelingByRun(run);
70 71
                    }
71 72
                }
72

  
73
                // LineRun Line Modeling
73 74
                foreach (LineNumber lineNumber in document.LINENUMBERS)
74 75
                {
75 76
                    foreach (LineRun run in lineNumber.RUNS)
......
77 78
                        LineModelingByRun(run);
78 79
                    }
79 80
                }
80

  
81
                // TrimLineRun Line Modeling
81 82
                foreach (TrimLine trimLine in document.TRIMLINES)
82 83
                {
83 84
                    foreach (LineRun run in trimLine.RUNS)
......
85 86
                        LineModelingByRun(run);
86 87
                    }
87 88
                }
88

  
89
                // Branch Line Modeling
89 90
                foreach (var item in BranchLines)
90 91
                {
91 92
                    BranchLineModeling(item);
92 93
                }
93

  
94
                // EndBreak Modeling
94 95
                foreach (var item in document.EndBreaks)
95 96
                {
96 97
                    EndBreakModeling(item);
97 98
                }
98

  
99
                // LineNumber Modeling
99 100
                foreach (var item in document.LINENUMBERS)
100 101
                {
101 102
                    LineNumberModeling(item);
102 103
                }
104
                // Input Symbol Attribute
105
                foreach (var item in document.SYMBOLS)
106
                {
107
                    InputSymbolAttribute(item);
108
                }
109
                // Input Line Attribute
103 110

  
111
                // Input LineNumber Attribute
104 112

  
113
                // Note Modeling
105 114

  
115
                // Text Modeling
116

  
117
                // LineRun Line Join
106 118
                foreach (LineNumber lineNumber in document.LINENUMBERS)
107 119
                {
108 120

  
......
111 123
                        JoinRunLine(run);
112 124
                    }
113 125
                }
114

  
126
                // TrimLineRun Line Join
115 127
                foreach (TrimLine trimLine in document.TRIMLINES)
116 128
                {
117 129
                    foreach (LineRun run in trimLine.RUNS)
......
1060 1072
            }
1061 1073
        }
1062 1074

  
1075
        private void InputSymbolAttribute(Symbol symbol)
1076
        {
1077
            if (!string.IsNullOrEmpty(symbol.SPPID.RepresentationId))
1078
            {
1079
                foreach (var item in symbol.PROPERTIES)
1080
                {
1081
                    
1082

  
1083
                }
1084

  
1085
                foreach (var item in symbol.ATTRIBUTES)
1086
                {
1087

  
1088

  
1089
                }
1090
            }
1091
        }
1092

  
1093

  
1094

  
1063 1095
        private void TextModeling(Text text)
1064 1096
        {
1065 1097

  
DTI_PID/SPPIDConverter/ConverterForm.cs
36 36

  
37 37
        private DataTable _ID2SymbolDT = new DataTable();
38 38
        private DataTable _ID2LineDT = new DataTable();
39
        private DataTable _ID2AssociationDT = new DataTable();
39
        private DataTable _ID2AttributeDT = new DataTable();
40 40
        private DataTable _ID2LinePropertyDT = new DataTable();
41 41
        private DataTable _ID2SymbolTypeDT = new DataTable();
42 42

  
......
44 44
        private List<SymbolMapping> symbolMappings = new List<SymbolMapping>();
45 45
        private List<LineMapping> lineMappings = new List<LineMapping>();
46 46
        private List<LineNumberMapping> lineNumberMappings = new List<LineNumberMapping>();
47
        private List<AssociationMapping> associationMappings = new List<AssociationMapping>();
47
        private List<AttributeMapping> attributeMappings = new List<AttributeMapping>();
48 48

  
49 49
        public ConverterForm()
50 50
        {
......
285 285
                InitID2Symbol();
286 286
                InitID2Line();
287 287
                InitID2LineNumber();
288
                InitID2Association();
288
                InitID2Attribute();
289 289

  
290 290
                InitETCSetting();
291 291
            }
......
370 370
            }
371 371
        }
372 372

  
373
        private void InitID2Association()
373
        private void InitID2Attribute()
374 374
        {
375
            using (DataTable associationDT = Project_DB.SelectProjectAssociation())
375
            using (DataTable attributeDT = Project_DB.SelectProjectAttribute())
376 376
            {
377
                associationMappings.Clear();
378
                _ID2AssociationDT = associationDT;
379
                _ID2AssociationDT.Columns.Add("Clear");
380
                _ID2AssociationDT.Columns["Clear"].Caption = "";
381
                foreach (DataRow row in associationDT.Rows)
377
                attributeMappings.Clear();
378
                _ID2AttributeDT = attributeDT;
379
                _ID2AttributeDT.Columns.Add("Clear");
380
                _ID2AttributeDT.Columns["Clear"].Caption = "";
381
                foreach (DataRow row in attributeDT.Rows)
382 382
                {
383
                    associationMappings.Add(new AssociationMapping()
383
                    attributeMappings.Add(new AttributeMapping()
384 384
                    {
385 385
                        UID = row["UID"] == null ? "" : row["UID"].ToString(),
386 386
                        DisplayAttribute = row["DisplayAttribute"] == null ? "" : row["DisplayAttribute"].ToString(),
......
520 520
            document.SymbolMappings = symbolMappings;
521 521
            document.LineMappings = lineMappings;
522 522
            document.LineNumberMappings = lineNumberMappings;
523
            document.AssociationMappings = associationMappings;
523
            document.AttributeMappings = attributeMappings;
524 524
            document.ETCSetting = ETCSetting.GetInstance();
525 525

  
526 526
            document.SetSPPIDInfo();
......
570 570
                return;
571 571
            }
572 572

  
573
            MappingForm form = new MappingForm(_ID2SymbolDT,_SPPIDSymbolPathDT, _ID2LineDT, _ID2LinePropertyDT, _ID2AssociationDT);
573
            MappingForm form = new MappingForm(_ID2SymbolDT,_SPPIDSymbolPathDT, _ID2LineDT, _ID2LinePropertyDT, _ID2AttributeDT);
574 574
            form.ShowDialog();
575 575
            InitMapping();
576 576
        }
DTI_PID/SPPIDConverter/Form/MappingForm.Designer.cs
75 75
            this.layoutControlGroup8 = new DevExpress.XtraLayout.LayoutControlGroup();
76 76
            this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
77 77
            this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
78
            this.GroupAssociation = new DevExpress.XtraLayout.LayoutControlGroup();
78
            this.GroupAttribute = new DevExpress.XtraLayout.LayoutControlGroup();
79 79
            this.layoutControlGroup7 = new DevExpress.XtraLayout.LayoutControlGroup();
80 80
            this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
81 81
            this.GroupETCSetting = new DevExpress.XtraLayout.LayoutControlGroup();
......
133 133
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup8)).BeginInit();
134 134
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit();
135 135
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
136
            ((System.ComponentModel.ISupportInitialize)(this.GroupAssociation)).BeginInit();
136
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).BeginInit();
137 137
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).BeginInit();
138 138
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
139 139
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).BeginInit();
......
160 160
            this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False;
161 161
            this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages;
162 162
            this.ribbonControl.ShowToolbarCustomizeItem = false;
163
            this.ribbonControl.Size = new System.Drawing.Size(1094, 32);
163
            this.ribbonControl.Size = new System.Drawing.Size(1094, 27);
164 164
            this.ribbonControl.Toolbar.ShowCustomizeItem = false;
165 165
            // 
166 166
            // layoutControl1
......
181 181
            this.layoutControl1.Controls.Add(this.pictureEditID2Symbol);
182 182
            this.layoutControl1.Controls.Add(this.pictureEditMapped);
183 183
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
184
            this.layoutControl1.Location = new System.Drawing.Point(0, 32);
184
            this.layoutControl1.Location = new System.Drawing.Point(0, 27);
185 185
            this.layoutControl1.Name = "layoutControl1";
186 186
            this.layoutControl1.Root = this.Root;
187
            this.layoutControl1.Size = new System.Drawing.Size(1094, 738);
187
            this.layoutControl1.Size = new System.Drawing.Size(1094, 743);
188 188
            this.layoutControl1.TabIndex = 2;
189 189
            this.layoutControl1.Text = "layoutControl1";
190 190
            // 
191 191
            // btnImageRefresh
192 192
            // 
193 193
            this.btnImageRefresh.ImageOptions.SvgImage = global::Converter.SPPID.Properties.Resources.actions_refresh;
194
            this.btnImageRefresh.Location = new System.Drawing.Point(749, 638);
194
            this.btnImageRefresh.Location = new System.Drawing.Point(744, 641);
195 195
            this.btnImageRefresh.Name = "btnImageRefresh";
196
            this.btnImageRefresh.Size = new System.Drawing.Size(321, 36);
196
            this.btnImageRefresh.Size = new System.Drawing.Size(326, 38);
197 197
            this.btnImageRefresh.StyleController = this.layoutControl1;
198 198
            this.btnImageRefresh.TabIndex = 27;
199 199
            this.btnImageRefresh.Text = "Refresh SPPID Image";
......
201 201
            // 
202 202
            // textBoxDrainValveSize
203 203
            // 
204
            this.textBoxDrainValveSize.Location = new System.Drawing.Point(206, 172);
204
            this.textBoxDrainValveSize.Location = new System.Drawing.Point(206, 169);
205 205
            this.textBoxDrainValveSize.MenuManager = this.ribbonControl;
206 206
            this.textBoxDrainValveSize.Name = "textBoxDrainValveSize";
207 207
            this.textBoxDrainValveSize.Size = new System.Drawing.Size(493, 20);
......
210 210
            // 
211 211
            // textBoxNoteSymbolPath
212 212
            // 
213
            this.textBoxNoteSymbolPath.Location = new System.Drawing.Point(206, 103);
213
            this.textBoxNoteSymbolPath.Location = new System.Drawing.Point(206, 102);
214 214
            this.textBoxNoteSymbolPath.MenuManager = this.ribbonControl;
215 215
            this.textBoxNoteSymbolPath.Name = "textBoxNoteSymbolPath";
216 216
            this.textBoxNoteSymbolPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
......
222 222
            // 
223 223
            // textBoxTextSymbolPath
224 224
            // 
225
            this.textBoxTextSymbolPath.Location = new System.Drawing.Point(206, 79);
225
            this.textBoxTextSymbolPath.Location = new System.Drawing.Point(206, 78);
226 226
            this.textBoxTextSymbolPath.MenuManager = this.ribbonControl;
227 227
            this.textBoxTextSymbolPath.Name = "textBoxTextSymbolPath";
228 228
            this.textBoxTextSymbolPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
......
234 234
            // 
235 235
            // textBoxLineNumberPath
236 236
            // 
237
            this.textBoxLineNumberPath.Location = new System.Drawing.Point(206, 79);
237
            this.textBoxLineNumberPath.Location = new System.Drawing.Point(206, 78);
238 238
            this.textBoxLineNumberPath.MenuManager = this.ribbonControl;
239 239
            this.textBoxLineNumberPath.Name = "textBoxLineNumberPath";
240 240
            this.textBoxLineNumberPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
......
247 247
            // 
248 248
            // gridControlLineNumber
249 249
            // 
250
            this.gridControlLineNumber.Location = new System.Drawing.Point(36, 103);
250
            this.gridControlLineNumber.Location = new System.Drawing.Point(36, 102);
251 251
            this.gridControlLineNumber.MainView = this.gridViewLineNumber;
252 252
            this.gridControlLineNumber.MenuManager = this.ribbonControl;
253 253
            this.gridControlLineNumber.Name = "gridControlLineNumber";
254
            this.gridControlLineNumber.Size = new System.Drawing.Size(663, 559);
254
            this.gridControlLineNumber.Size = new System.Drawing.Size(663, 565);
255 255
            this.gridControlLineNumber.TabIndex = 21;
256 256
            this.gridControlLineNumber.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
257 257
            this.gridViewLineNumber});
......
266 266
            // btnClose
267 267
            // 
268 268
            this.btnClose.ImageOptions.SvgImage = global::Converter.SPPID.Properties.Resources.close;
269
            this.btnClose.Location = new System.Drawing.Point(996, 690);
269
            this.btnClose.Location = new System.Drawing.Point(996, 695);
270 270
            this.btnClose.Name = "btnClose";
271 271
            this.btnClose.Size = new System.Drawing.Size(86, 36);
272 272
            this.btnClose.StyleController = this.layoutControl1;
......
276 276
            // 
277 277
            // gridControlAssociation
278 278
            // 
279
            this.gridControlAssociation.Location = new System.Drawing.Point(36, 79);
279
            this.gridControlAssociation.Location = new System.Drawing.Point(36, 78);
280 280
            this.gridControlAssociation.MainView = this.gridViewAssociation;
281 281
            this.gridControlAssociation.MenuManager = this.ribbonControl;
282 282
            this.gridControlAssociation.Name = "gridControlAssociation";
283
            this.gridControlAssociation.Size = new System.Drawing.Size(663, 583);
283
            this.gridControlAssociation.Size = new System.Drawing.Size(663, 589);
284 284
            this.gridControlAssociation.TabIndex = 19;
285 285
            this.gridControlAssociation.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
286 286
            this.gridViewAssociation});
......
294 294
            // 
295 295
            // gridControlLine
296 296
            // 
297
            this.gridControlLine.Location = new System.Drawing.Point(36, 79);
297
            this.gridControlLine.Location = new System.Drawing.Point(36, 78);
298 298
            this.gridControlLine.MainView = this.gridViewLine;
299 299
            this.gridControlLine.MenuManager = this.ribbonControl;
300 300
            this.gridControlLine.Name = "gridControlLine";
301
            this.gridControlLine.Size = new System.Drawing.Size(663, 583);
301
            this.gridControlLine.Size = new System.Drawing.Size(663, 589);
302 302
            this.gridControlLine.TabIndex = 18;
303 303
            this.gridControlLine.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
304 304
            this.gridViewLine});
......
312 312
            // 
313 313
            // gridControlSymbol
314 314
            // 
315
            this.gridControlSymbol.Location = new System.Drawing.Point(36, 79);
315
            this.gridControlSymbol.Location = new System.Drawing.Point(36, 78);
316 316
            this.gridControlSymbol.MainView = this.gridViewSymbol;
317 317
            this.gridControlSymbol.MenuManager = this.ribbonControl;
318 318
            this.gridControlSymbol.Name = "gridControlSymbol";
319
            this.gridControlSymbol.Size = new System.Drawing.Size(663, 265);
319
            this.gridControlSymbol.Size = new System.Drawing.Size(663, 269);
320 320
            this.gridControlSymbol.TabIndex = 16;
321 321
            this.gridControlSymbol.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
322 322
            this.gridViewSymbol});
......
332 332
            // 
333 333
            // pictureEditSPPIDSymbol
334 334
            // 
335
            this.pictureEditSPPIDSymbol.Location = new System.Drawing.Point(761, 381);
335
            this.pictureEditSPPIDSymbol.Location = new System.Drawing.Point(756, 375);
336 336
            this.pictureEditSPPIDSymbol.MenuManager = this.ribbonControl;
337 337
            this.pictureEditSPPIDSymbol.Name = "pictureEditSPPIDSymbol";
338 338
            this.pictureEditSPPIDSymbol.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
339 339
            this.pictureEditSPPIDSymbol.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;
340
            this.pictureEditSPPIDSymbol.Size = new System.Drawing.Size(297, 241);
340
            this.pictureEditSPPIDSymbol.Size = new System.Drawing.Size(302, 250);
341 341
            this.pictureEditSPPIDSymbol.StyleController = this.layoutControl1;
342 342
            this.pictureEditSPPIDSymbol.TabIndex = 15;
343 343
            // 
344 344
            // btnSave
345 345
            // 
346 346
            this.btnSave.ImageOptions.SvgImage = global::Converter.SPPID.Properties.Resources.save;
347
            this.btnSave.Location = new System.Drawing.Point(893, 690);
347
            this.btnSave.Location = new System.Drawing.Point(893, 695);
348 348
            this.btnSave.Name = "btnSave";
349 349
            this.btnSave.Size = new System.Drawing.Size(84, 36);
350 350
            this.btnSave.StyleController = this.layoutControl1;
......
355 355
            // treeListSPPIDTreeList
356 356
            // 
357 357
            this.treeListSPPIDTreeList.Cursor = System.Windows.Forms.Cursors.Default;
358
            this.treeListSPPIDTreeList.Location = new System.Drawing.Point(749, 45);
358
            this.treeListSPPIDTreeList.Location = new System.Drawing.Point(744, 43);
359 359
            this.treeListSPPIDTreeList.Name = "treeListSPPIDTreeList";
360
            this.treeListSPPIDTreeList.Size = new System.Drawing.Size(321, 289);
360
            this.treeListSPPIDTreeList.Size = new System.Drawing.Size(326, 292);
361 361
            this.treeListSPPIDTreeList.TabIndex = 12;
362 362
            this.treeListSPPIDTreeList.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.treeListSPPIDTreeList_FocusedNodeChanged);
363 363
            this.treeListSPPIDTreeList.DoubleClick += new System.EventHandler(this.treeListSPPIDTreeList_DoubleClick);
364 364
            // 
365 365
            // pictureEditID2Symbol
366 366
            // 
367
            this.pictureEditID2Symbol.Location = new System.Drawing.Point(36, 403);
367
            this.pictureEditID2Symbol.Location = new System.Drawing.Point(36, 399);
368 368
            this.pictureEditID2Symbol.MenuManager = this.ribbonControl;
369 369
            this.pictureEditID2Symbol.Name = "pictureEditID2Symbol";
370 370
            this.pictureEditID2Symbol.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
371 371
            this.pictureEditID2Symbol.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;
372
            this.pictureEditID2Symbol.Size = new System.Drawing.Size(316, 259);
372
            this.pictureEditID2Symbol.Size = new System.Drawing.Size(316, 268);
373 373
            this.pictureEditID2Symbol.StyleController = this.layoutControl1;
374 374
            this.pictureEditID2Symbol.TabIndex = 4;
375 375
            // 
376 376
            // pictureEditMapped
377 377
            // 
378
            this.pictureEditMapped.Location = new System.Drawing.Point(390, 403);
378
            this.pictureEditMapped.Location = new System.Drawing.Point(385, 399);
379 379
            this.pictureEditMapped.MenuManager = this.ribbonControl;
380 380
            this.pictureEditMapped.Name = "pictureEditMapped";
381 381
            this.pictureEditMapped.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
382 382
            this.pictureEditMapped.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;
383
            this.pictureEditMapped.Size = new System.Drawing.Size(309, 259);
383
            this.pictureEditMapped.Size = new System.Drawing.Size(314, 268);
384 384
            this.pictureEditMapped.StyleController = this.layoutControl1;
385 385
            this.pictureEditMapped.TabIndex = 5;
386 386
            // 
......
397 397
            this.layoutControlItem4,
398 398
            this.emptySpaceItem1});
399 399
            this.Root.Name = "Root";
400
            this.Root.Size = new System.Drawing.Size(1094, 738);
400
            this.Root.Size = new System.Drawing.Size(1094, 743);
401 401
            this.Root.TextVisible = false;
402 402
            // 
403 403
            // layoutControlGroup2
......
407 407
            this.layoutControlGroup5,
408 408
            this.splitterItem5,
409 409
            this.layoutControlItem15});
410
            this.layoutControlGroup2.Location = new System.Drawing.Point(725, 0);
410
            this.layoutControlGroup2.Location = new System.Drawing.Point(720, 0);
411 411
            this.layoutControlGroup2.Name = "layoutControlGroup2";
412
            this.layoutControlGroup2.Size = new System.Drawing.Size(349, 678);
412
            this.layoutControlGroup2.Size = new System.Drawing.Size(354, 683);
413 413
            this.layoutControlGroup2.Text = "SPPID Symbol";
414 414
            // 
415 415
            // layoutControlItem8
......
417 417
            this.layoutControlItem8.Control = this.treeListSPPIDTreeList;
418 418
            this.layoutControlItem8.Location = new System.Drawing.Point(0, 0);
419 419
            this.layoutControlItem8.Name = "layoutControlItem8";
420
            this.layoutControlItem8.Size = new System.Drawing.Size(325, 293);
420
            this.layoutControlItem8.Size = new System.Drawing.Size(330, 296);
421 421
            this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
422 422
            this.layoutControlItem8.TextVisible = false;
423 423
            // 
......
425 425
            // 
426 426
            this.layoutControlGroup5.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
427 427
            this.layoutControlItem9});
428
            this.layoutControlGroup5.Location = new System.Drawing.Point(0, 303);
428
            this.layoutControlGroup5.Location = new System.Drawing.Point(0, 301);
429 429
            this.layoutControlGroup5.Name = "layoutControlGroup5";
430
            this.layoutControlGroup5.Size = new System.Drawing.Size(325, 290);
430
            this.layoutControlGroup5.Size = new System.Drawing.Size(330, 297);
431 431
            this.layoutControlGroup5.Text = "SPPID Image";
432 432
            // 
433 433
            // layoutControlItem9
......
435 435
            this.layoutControlItem9.Control = this.pictureEditSPPIDSymbol;
436 436
            this.layoutControlItem9.Location = new System.Drawing.Point(0, 0);
437 437
            this.layoutControlItem9.Name = "layoutControlItem9";
438
            this.layoutControlItem9.Size = new System.Drawing.Size(301, 245);
438
            this.layoutControlItem9.Size = new System.Drawing.Size(306, 254);
439 439
            this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
440 440
            this.layoutControlItem9.TextVisible = false;
441 441
            // 
442 442
            // splitterItem5
443 443
            // 
444 444
            this.splitterItem5.AllowHotTrack = true;
445
            this.splitterItem5.Location = new System.Drawing.Point(0, 293);
445
            this.splitterItem5.Location = new System.Drawing.Point(0, 296);
446 446
            this.splitterItem5.Name = "splitterItem5";
447
            this.splitterItem5.Size = new System.Drawing.Size(325, 10);
447
            this.splitterItem5.Size = new System.Drawing.Size(330, 5);
448 448
            // 
449 449
            // layoutControlItem15
450 450
            // 
451 451
            this.layoutControlItem15.Control = this.btnImageRefresh;
452
            this.layoutControlItem15.Location = new System.Drawing.Point(0, 593);
452
            this.layoutControlItem15.Location = new System.Drawing.Point(0, 598);
453 453
            this.layoutControlItem15.Name = "layoutControlItem15";
454
            this.layoutControlItem15.Size = new System.Drawing.Size(325, 40);
454
            this.layoutControlItem15.Size = new System.Drawing.Size(330, 42);
455 455
            this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0);
456 456
            this.layoutControlItem15.TextVisible = false;
457 457
            // 
458 458
            // emptySpaceItem2
459 459
            // 
460 460
            this.emptySpaceItem2.AllowHotTrack = false;
461
            this.emptySpaceItem2.Location = new System.Drawing.Point(0, 678);
461
            this.emptySpaceItem2.Location = new System.Drawing.Point(0, 683);
462 462
            this.emptySpaceItem2.Name = "emptySpaceItem2";
463 463
            this.emptySpaceItem2.Size = new System.Drawing.Size(881, 40);
464 464
            this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
......
468 468
            this.splitterItem3.AllowHotTrack = true;
469 469
            this.splitterItem3.Location = new System.Drawing.Point(715, 0);
470 470
            this.splitterItem3.Name = "splitterItem3";
471
            this.splitterItem3.Size = new System.Drawing.Size(10, 678);
471
            this.splitterItem3.Size = new System.Drawing.Size(5, 683);
472 472
            // 
473 473
            // tabbedControlGroup
474 474
            // 
475 475
            this.tabbedControlGroup.Location = new System.Drawing.Point(0, 0);
476 476
            this.tabbedControlGroup.Name = "tabbedControlGroup";
477 477
            this.tabbedControlGroup.SelectedTabPage = this.GroupSymbol;
478
            this.tabbedControlGroup.Size = new System.Drawing.Size(715, 678);
478
            this.tabbedControlGroup.Size = new System.Drawing.Size(715, 683);
479 479
            this.tabbedControlGroup.TabPages.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
480 480
            this.GroupSymbol,
481 481
            this.GroupLine,
482 482
            this.GroupLineNumber,
483
            this.GroupAssociation,
483
            this.GroupAttribute,
484 484
            this.GroupETCSetting});
485 485
            // 
486 486
            // GroupSymbol
......
493 493
            this.layoutControlGroup1});
494 494
            this.GroupSymbol.Location = new System.Drawing.Point(0, 0);
495 495
            this.GroupSymbol.Name = "GroupSymbol";
496
            this.GroupSymbol.Size = new System.Drawing.Size(691, 632);
496
            this.GroupSymbol.Size = new System.Drawing.Size(691, 636);
497 497
            this.GroupSymbol.Text = "Symbol";
498 498
            // 
499 499
            // splitterItem1
500 500
            // 
501 501
            this.splitterItem1.AllowHotTrack = true;
502
            this.splitterItem1.Location = new System.Drawing.Point(0, 314);
502
            this.splitterItem1.Location = new System.Drawing.Point(0, 316);
503 503
            this.splitterItem1.Name = "splitterItem1";
504
            this.splitterItem1.Size = new System.Drawing.Size(691, 10);
504
            this.splitterItem1.Size = new System.Drawing.Size(691, 5);
505 505
            // 
506 506
            // layoutControlGroup3
507 507
            // 
508 508
            this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
509 509
            this.layoutControlItem1});
510
            this.layoutControlGroup3.Location = new System.Drawing.Point(0, 324);
510
            this.layoutControlGroup3.Location = new System.Drawing.Point(0, 321);
511 511
            this.layoutControlGroup3.Name = "layoutControlGroup3";
512
            this.layoutControlGroup3.Size = new System.Drawing.Size(344, 308);
512
            this.layoutControlGroup3.Size = new System.Drawing.Size(344, 315);
513 513
            this.layoutControlGroup3.Text = "ID2 Image";
514 514
            // 
515 515
            // layoutControlItem1
......
517 517
            this.layoutControlItem1.Control = this.pictureEditID2Symbol;
518 518
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
519 519
            this.layoutControlItem1.Name = "layoutControlItem1";
520
            this.layoutControlItem1.Size = new System.Drawing.Size(320, 263);
520
            this.layoutControlItem1.Size = new System.Drawing.Size(320, 272);
521 521
            this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
522 522
            this.layoutControlItem1.TextVisible = false;
523 523
            // 
......
525 525
            // 
526 526
            this.layoutControlGroup4.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
527 527
            this.layoutControlItem2});
528
            this.layoutControlGroup4.Location = new System.Drawing.Point(354, 324);
528
            this.layoutControlGroup4.Location = new System.Drawing.Point(349, 321);
529 529
            this.layoutControlGroup4.Name = "layoutControlGroup4";
530
            this.layoutControlGroup4.Size = new System.Drawing.Size(337, 308);
530
            this.layoutControlGroup4.Size = new System.Drawing.Size(342, 315);
531 531
            this.layoutControlGroup4.Text = "Mapped Image";
532 532
            // 
533 533
            // layoutControlItem2
......
535 535
            this.layoutControlItem2.Control = this.pictureEditMapped;
536 536
            this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
537 537
            this.layoutControlItem2.Name = "layoutControlItem2";
538
            this.layoutControlItem2.Size = new System.Drawing.Size(313, 263);
538
            this.layoutControlItem2.Size = new System.Drawing.Size(318, 272);
539 539
            this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
540 540
            this.layoutControlItem2.TextVisible = false;
541 541
            // 
542 542
            // splitterItem4
543 543
            // 
544 544
            this.splitterItem4.AllowHotTrack = true;
545
            this.splitterItem4.Location = new System.Drawing.Point(344, 324);
545
            this.splitterItem4.Location = new System.Drawing.Point(344, 321);
546 546
            this.splitterItem4.Name = "splitterItem4";
547
            this.splitterItem4.Size = new System.Drawing.Size(10, 308);
547
            this.splitterItem4.Size = new System.Drawing.Size(5, 315);
548 548
            // 
549 549
            // layoutControlGroup1
550 550
            // 
......
552 552
            this.layoutControlItem6});
553 553
            this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
554 554
            this.layoutControlGroup1.Name = "layoutControlGroup1";
555
            this.layoutControlGroup1.Size = new System.Drawing.Size(691, 314);
555
            this.layoutControlGroup1.Size = new System.Drawing.Size(691, 316);
556 556
            this.layoutControlGroup1.Text = "ID2 Symbol List";
557 557
            // 
558 558
            // layoutControlItem6
......
560 560
            this.layoutControlItem6.Control = this.gridControlSymbol;
561 561
            this.layoutControlItem6.Location = new System.Drawing.Point(0, 0);
562 562
            this.layoutControlItem6.Name = "layoutControlItem6";
563
            this.layoutControlItem6.Size = new System.Drawing.Size(667, 269);
563
            this.layoutControlItem6.Size = new System.Drawing.Size(667, 273);
564 564
            this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
565 565
            this.layoutControlItem6.TextVisible = false;
566 566
            // 
......
570 570
            this.layoutControlGroup6});
571 571
            this.GroupLine.Location = new System.Drawing.Point(0, 0);
572 572
            this.GroupLine.Name = "GroupLine";
573
            this.GroupLine.Size = new System.Drawing.Size(691, 632);
573
            this.GroupLine.Size = new System.Drawing.Size(691, 636);
574 574
            this.GroupLine.Text = "Line";
575 575
            // 
576 576
            // layoutControlGroup6
......
579 579
            this.layoutControlItem10});
580 580
            this.layoutControlGroup6.Location = new System.Drawing.Point(0, 0);
581 581
            this.layoutControlGroup6.Name = "layoutControlGroup6";
582
            this.layoutControlGroup6.Size = new System.Drawing.Size(691, 632);
582
            this.layoutControlGroup6.Size = new System.Drawing.Size(691, 636);
583 583
            this.layoutControlGroup6.Text = "ID2 Line List";
584 584
            // 
585 585
            // layoutControlItem10
......
587 587
            this.layoutControlItem10.Control = this.gridControlLine;
588 588
            this.layoutControlItem10.Location = new System.Drawing.Point(0, 0);
589 589
            this.layoutControlItem10.Name = "layoutControlItem10";
590
            this.layoutControlItem10.Size = new System.Drawing.Size(667, 587);
590
            this.layoutControlItem10.Size = new System.Drawing.Size(667, 593);
591 591
            this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
592 592
            this.layoutControlItem10.TextVisible = false;
593 593
            // 
......
597 597
            this.layoutControlGroup8});
598 598
            this.GroupLineNumber.Location = new System.Drawing.Point(0, 0);
599 599
            this.GroupLineNumber.Name = "GroupLineNumber";
600
            this.GroupLineNumber.Size = new System.Drawing.Size(691, 632);
600
            this.GroupLineNumber.Size = new System.Drawing.Size(691, 636);
601 601
            this.GroupLineNumber.Text = "Line Number";
602 602
            // 
603 603
            // layoutControlGroup8
......
607 607
            this.layoutControlItem3});
608 608
            this.layoutControlGroup8.Location = new System.Drawing.Point(0, 0);
609 609
            this.layoutControlGroup8.Name = "layoutControlGroup8";
610
            this.layoutControlGroup8.Size = new System.Drawing.Size(691, 632);
610
            this.layoutControlGroup8.Size = new System.Drawing.Size(691, 636);
611 611
            this.layoutControlGroup8.Text = "ID2 Line Number";
612 612
            // 
613 613
            // layoutControlItem13
......
615 615
            this.layoutControlItem13.Control = this.gridControlLineNumber;
616 616
            this.layoutControlItem13.Location = new System.Drawing.Point(0, 24);
617 617
            this.layoutControlItem13.Name = "layoutControlItem13";
618
            this.layoutControlItem13.Size = new System.Drawing.Size(667, 563);
618
            this.layoutControlItem13.Size = new System.Drawing.Size(667, 569);
619 619
            this.layoutControlItem13.TextSize = new System.Drawing.Size(0, 0);
620 620
            this.layoutControlItem13.TextVisible = false;
621 621
            // 
......
628 628
            this.layoutControlItem3.Text = "SPPID Line Number Label Path";
629 629
            this.layoutControlItem3.TextSize = new System.Drawing.Size(167, 14);
630 630
            // 
631
            // GroupAssociation
631
            // GroupAttribute
632 632
            // 
633
            this.GroupAssociation.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
633
            this.GroupAttribute.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
634 634
            this.layoutControlGroup7});
635
            this.GroupAssociation.Location = new System.Drawing.Point(0, 0);
636
            this.GroupAssociation.Name = "GroupAssociation";
637
            this.GroupAssociation.Size = new System.Drawing.Size(691, 632);
638
            this.GroupAssociation.Text = "Association";
635
            this.GroupAttribute.Location = new System.Drawing.Point(0, 0);
636
            this.GroupAttribute.Name = "GroupAttribute";
637
            this.GroupAttribute.Size = new System.Drawing.Size(691, 636);
638
            this.GroupAttribute.Text = "Attribute";
639 639
            // 
640 640
            // layoutControlGroup7
641 641
            // 
......
643 643
            this.layoutControlItem11});
644 644
            this.layoutControlGroup7.Location = new System.Drawing.Point(0, 0);
645 645
            this.layoutControlGroup7.Name = "layoutControlGroup7";
646
            this.layoutControlGroup7.Size = new System.Drawing.Size(691, 632);
647
            this.layoutControlGroup7.Text = "ID2 Association List";
646
            this.layoutControlGroup7.Size = new System.Drawing.Size(691, 636);
647
            this.layoutControlGroup7.Text = "ID2 Attribute List";
648 648
            // 
649 649
            // layoutControlItem11
650 650
            // 
651 651
            this.layoutControlItem11.Control = this.gridControlAssociation;
652 652
            this.layoutControlItem11.Location = new System.Drawing.Point(0, 0);
653 653
            this.layoutControlItem11.Name = "layoutControlItem11";
654
            this.layoutControlItem11.Size = new System.Drawing.Size(667, 587);
654
            this.layoutControlItem11.Size = new System.Drawing.Size(667, 593);
655 655
            this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
656 656
            this.layoutControlItem11.TextVisible = false;
657 657
            // 
......
663 663
            this.layoutControlGroup10});
664 664
            this.GroupETCSetting.Location = new System.Drawing.Point(0, 0);
665 665
            this.GroupETCSetting.Name = "GroupETCSetting";
666
            this.GroupETCSetting.Size = new System.Drawing.Size(691, 632);
666
            this.GroupETCSetting.Size = new System.Drawing.Size(691, 636);
667 667
            this.GroupETCSetting.Text = "ETC Setting";
668 668
            // 
669 669
            // emptySpaceItem3
670 670
            // 
671 671
            this.emptySpaceItem3.AllowHotTrack = false;
672
            this.emptySpaceItem3.Location = new System.Drawing.Point(0, 162);
672
            this.emptySpaceItem3.Location = new System.Drawing.Point(0, 158);
673 673
            this.emptySpaceItem3.Name = "emptySpaceItem3";
674
            this.emptySpaceItem3.Size = new System.Drawing.Size(691, 470);
674
            this.emptySpaceItem3.Size = new System.Drawing.Size(691, 478);
675 675
            this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
676 676
            // 
677 677
            // layoutControlGroup9
......
681 681
            this.layoutControlItem7});
682 682
            this.layoutControlGroup9.Location = new System.Drawing.Point(0, 0);
683 683
            this.layoutControlGroup9.Name = "layoutControlGroup9";
684
            this.layoutControlGroup9.Size = new System.Drawing.Size(691, 93);
684
            this.layoutControlGroup9.Size = new System.Drawing.Size(691, 91);
685 685
            this.layoutControlGroup9.Text = "Text && Note Setting";
686 686
            // 
687 687
            // layoutControlItem5
......
706 706
            // 
707 707
            this.layoutControlGroup10.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
708 708
            this.layoutControlItem14});
709
            this.layoutControlGroup10.Location = new System.Drawing.Point(0, 93);
709
            this.layoutControlGroup10.Location = new System.Drawing.Point(0, 91);
710 710
            this.layoutControlGroup10.Name = "layoutControlGroup10";
711
            this.layoutControlGroup10.Size = new System.Drawing.Size(691, 69);
711
            this.layoutControlGroup10.Size = new System.Drawing.Size(691, 67);
712 712
            this.layoutControlGroup10.Text = "Drain Valve Setting";
713 713
            // 
714 714
            // layoutControlItem14
......
723 723
            // layoutControlItem12
724 724
            // 
725 725
            this.layoutControlItem12.Control = this.btnClose;
726
            this.layoutControlItem12.Location = new System.Drawing.Point(984, 678);
726
            this.layoutControlItem12.Location = new System.Drawing.Point(984, 683);
727 727
            this.layoutControlItem12.MaxSize = new System.Drawing.Size(90, 40);
728 728
            this.layoutControlItem12.MinSize = new System.Drawing.Size(90, 40);
729 729
            this.layoutControlItem12.Name = "layoutControlItem12";
......
735 735
            // layoutControlItem4
736 736
            // 
737 737
            this.layoutControlItem4.Control = this.btnSave;
738
            this.layoutControlItem4.Location = new System.Drawing.Point(881, 678);
738
            this.layoutControlItem4.Location = new System.Drawing.Point(881, 683);
739 739
            this.layoutControlItem4.MaxSize = new System.Drawing.Size(88, 40);
740 740
            this.layoutControlItem4.MinSize = new System.Drawing.Size(88, 40);
741 741
            this.layoutControlItem4.Name = "layoutControlItem4";
......
747 747
            // emptySpaceItem1
748 748
            // 
749 749
            this.emptySpaceItem1.AllowHotTrack = false;
750
            this.emptySpaceItem1.Location = new System.Drawing.Point(969, 678);
750
            this.emptySpaceItem1.Location = new System.Drawing.Point(969, 683);
751 751
            this.emptySpaceItem1.MaxSize = new System.Drawing.Size(15, 40);
752 752
            this.emptySpaceItem1.MinSize = new System.Drawing.Size(15, 40);
753 753
            this.emptySpaceItem1.Name = "emptySpaceItem1";
......
813 813
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup8)).EndInit();
814 814
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit();
815 815
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
816
            ((System.ComponentModel.ISupportInitialize)(this.GroupAssociation)).EndInit();
816
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).EndInit();
817 817
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).EndInit();
818 818
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
819 819
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).EndInit();
......
865 865
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewLine;
866 866
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup6;
867 867
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
868
        private DevExpress.XtraLayout.LayoutControlGroup GroupAssociation;
868
        private DevExpress.XtraLayout.LayoutControlGroup GroupAttribute;
869 869
        private DevExpress.XtraGrid.GridControl gridControlAssociation;
870 870
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewAssociation;
871 871
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
DTI_PID/SPPIDConverter/Model/AssociationMapping.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Converter.SPPID.Model
8
{
9
    public class AssociationMapping
10
    {
11
        private string _UID;
12
        private string _DisplayAttribute;
13
        private string _Type;
14
        private string _SPPIDATTRIBUTENAME;
15
        private string _SPPIDSYMBOLNAME;
16

  
17
        public string UID { get => _UID; set => _UID = value; }
18
        public string DisplayAttribute { get => _DisplayAttribute; set => _DisplayAttribute = value; }
19
        public string Type { get => _Type; set => _Type = value; }
20
        public string SPPIDATTRIBUTENAME { get => _SPPIDATTRIBUTENAME; set => _SPPIDATTRIBUTENAME = value; }
21
        public string SPPIDSYMBOLNAME { get => _SPPIDSYMBOLNAME; set => _SPPIDSYMBOLNAME = value; }
22
    }
23
}
DTI_PID/SPPIDConverter/Model/AttributeMapping.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Converter.SPPID.Model
8
{
9
    public class AttributeMapping
10
    {
11
        private string _UID;
12
        private string _DisplayAttribute;
13
        private string _Type;
14
        private string _SPPIDATTRIBUTENAME;
15
        private string _SPPIDSYMBOLNAME;
16

  
17
        public string UID { get => _UID; set => _UID = value; }
18
        public string DisplayAttribute { get => _DisplayAttribute; set => _DisplayAttribute = value; }
19
        public string Type { get => _Type; set => _Type = value; }
20
        public string SPPIDATTRIBUTENAME { get => _SPPIDATTRIBUTENAME; set => _SPPIDATTRIBUTENAME = value; }
21
        public string SPPIDSYMBOLNAME { get => _SPPIDSYMBOLNAME; set => _SPPIDSYMBOLNAME = value; }
22
    }
23
}
DTI_PID/SPPIDConverter/Model/SPPID_Document.cs
22 22
        public List<SymbolMapping> SymbolMappings;
23 23
        public List<LineMapping> LineMappings;
24 24
        public List<LineNumberMapping> LineNumberMappings;
25
        public List<AssociationMapping> AssociationMappings;
25
        public List<AttributeMapping> AttributeMappings;
26 26
        public ETCSetting ETCSetting;
27 27

  
28 28
        public List<Group> GROUPS = new List<Group>();
DTI_PID/SPPIDConverter/SPPIDConverter.csproj
145 145
    <Compile Include="Model\LineNumberMapping.cs" />
146 146
    <Compile Include="Model\SPPID_Document.cs" />
147 147
    <Compile Include="Model\LineMapping.cs" />
148
    <Compile Include="Model\AssociationMapping.cs" />
148
    <Compile Include="Model\AttributeMapping.cs" />
149 149
    <Compile Include="Model\SymbolMapping.cs" />
150 150
    <Compile Include="Program.cs" />
151 151
    <Compile Include="Properties\AssemblyInfo.cs" />

내보내기 Unified diff

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