개정판 a6830a94
dev issue #000 : add ValidationCheck (Connline Type 다를경우
Change-Id: If44820296d9a0b01c241fb7777c1df5a8ee193b5
DTI_PID/SPPIDConverter/BaseModel/Document.cs | ||
---|---|---|
762 | 762 |
} |
763 | 763 |
#endregion |
764 | 764 |
|
765 |
#region Line To Line Type Check |
|
766 |
List<string[]> typeCheck = new List<string[]>(); |
|
767 |
foreach (var item in LINES) |
|
768 |
{ |
|
769 |
foreach (var connector in item.CONNECTORS) |
|
770 |
{ |
|
771 |
Line connLine = connector.ConnectedObject as Line; |
|
772 |
if (connLine != null && connLine.CONNECTORS.Find(x => x.ConnectedObject == item) != null && |
|
773 |
connLine.TYPE != item.TYPE && |
|
774 |
typeCheck.Find(x => (x[0] == item.UID || x[1] == connLine.UID) || (x[1] == item.UID || x[0] == connLine.UID)) == null) |
|
775 |
{ |
|
776 |
validationStringBuilder.AppendLine("Check line type!"); |
|
777 |
validationStringBuilder.AppendLine("UID : " + item.UID); |
|
778 |
validationStringBuilder.AppendLine("UID : " + connLine.UID); |
|
779 |
validationStringBuilder.AppendLine(); |
|
780 |
validationResult = true; |
|
781 |
typeCheck.Add(new string[] { item.UID, connLine.UID }); |
|
782 |
} |
|
783 |
} |
|
784 |
} |
|
785 |
#endregion |
|
786 |
|
|
765 | 787 |
if (validationResult) |
766 | 788 |
{ |
767 | 789 |
_Enable = false; |
DTI_PID/SPPIDConverter/ConverterForm.Designer.cs | ||
---|---|---|
32 | 32 |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConverterForm)); |
33 | 33 |
this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
34 | 34 |
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
35 |
this.comboBoxEditDefaultTemplate = new DevExpress.XtraEditors.ComboBoxEdit(); |
|
36 |
this.buttonEditDefaultUnit = new DevExpress.XtraEditors.ButtonEdit(); |
|
35 | 37 |
this.btnRun = new DevExpress.XtraEditors.SimpleButton(); |
36 | 38 |
this.btnLoadFile = new DevExpress.XtraEditors.SimpleButton(); |
37 | 39 |
this.btnItemMapping = new DevExpress.XtraEditors.SimpleButton(); |
... | ... | |
55 | 57 |
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); |
56 | 58 |
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); |
57 | 59 |
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); |
60 |
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
61 |
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
62 |
this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
58 | 63 |
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
59 | 64 |
this.layoutControlGroupID2Project = new DevExpress.XtraLayout.LayoutControlGroup(); |
60 | 65 |
this.labelID2ProjectName = new DevExpress.XtraLayout.SimpleLabelItem(); |
... | ... | |
65 | 70 |
this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem(); |
66 | 71 |
this.xtraFolderBrowserDialog = new DevExpress.XtraEditors.XtraFolderBrowserDialog(this.components); |
67 | 72 |
this.xtraOpenFileDialog = new DevExpress.XtraEditors.XtraOpenFileDialog(this.components); |
68 |
this.buttonEditDefaultUnit = new DevExpress.XtraEditors.ButtonEdit(); |
|
69 |
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
70 |
this.comboBoxEditDefaultTemplate = new DevExpress.XtraEditors.ComboBoxEdit(); |
|
71 |
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
72 |
this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
73 | 73 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
74 | 74 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
75 | 75 |
this.layoutControl1.SuspendLayout(); |
76 |
((System.ComponentModel.ISupportInitialize)(this.comboBoxEditDefaultTemplate.Properties)).BeginInit(); |
|
77 |
((System.ComponentModel.ISupportInitialize)(this.buttonEditDefaultUnit.Properties)).BeginInit(); |
|
76 | 78 |
((System.ComponentModel.ISupportInitialize)(this.gridControlConverter)).BeginInit(); |
77 | 79 |
((System.ComponentModel.ISupportInitialize)(this.gridViewConverter)).BeginInit(); |
78 | 80 |
((System.ComponentModel.ISupportInitialize)(this.btnID2Project.Properties)).BeginInit(); |
... | ... | |
92 | 94 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); |
93 | 95 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); |
94 | 96 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); |
97 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); |
|
98 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); |
|
99 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); |
|
95 | 100 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); |
96 | 101 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupID2Project)).BeginInit(); |
97 | 102 |
((System.ComponentModel.ISupportInitialize)(this.labelID2ProjectName)).BeginInit(); |
... | ... | |
100 | 105 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem3)).BeginInit(); |
101 | 106 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem4)).BeginInit(); |
102 | 107 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit(); |
103 |
((System.ComponentModel.ISupportInitialize)(this.buttonEditDefaultUnit.Properties)).BeginInit(); |
|
104 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); |
|
105 |
((System.ComponentModel.ISupportInitialize)(this.comboBoxEditDefaultTemplate.Properties)).BeginInit(); |
|
106 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); |
|
107 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); |
|
108 | 108 |
this.SuspendLayout(); |
109 | 109 |
// |
110 | 110 |
// ribbonControl |
... | ... | |
141 | 141 |
this.layoutControl1.TabIndex = 1; |
142 | 142 |
this.layoutControl1.Text = "layoutControl1"; |
143 | 143 |
// |
144 |
// comboBoxEditDefaultTemplate |
|
145 |
// |
|
146 |
this.comboBoxEditDefaultTemplate.Location = new System.Drawing.Point(714, 74); |
|
147 |
this.comboBoxEditDefaultTemplate.MenuManager = this.ribbonControl; |
|
148 |
this.comboBoxEditDefaultTemplate.Name = "comboBoxEditDefaultTemplate"; |
|
149 |
this.comboBoxEditDefaultTemplate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { |
|
150 |
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); |
|
151 |
this.comboBoxEditDefaultTemplate.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
|
152 |
this.comboBoxEditDefaultTemplate.Size = new System.Drawing.Size(141, 20); |
|
153 |
this.comboBoxEditDefaultTemplate.StyleController = this.layoutControl1; |
|
154 |
this.comboBoxEditDefaultTemplate.TabIndex = 12; |
|
155 |
// |
|
156 |
// buttonEditDefaultUnit |
|
157 |
// |
|
158 |
this.buttonEditDefaultUnit.Location = new System.Drawing.Point(486, 74); |
|
159 |
this.buttonEditDefaultUnit.MenuManager = this.ribbonControl; |
|
160 |
this.buttonEditDefaultUnit.Name = "buttonEditDefaultUnit"; |
|
161 |
this.buttonEditDefaultUnit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { |
|
162 |
new DevExpress.XtraEditors.Controls.EditorButton()}); |
|
163 |
this.buttonEditDefaultUnit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
|
164 |
this.buttonEditDefaultUnit.Size = new System.Drawing.Size(124, 20); |
|
165 |
this.buttonEditDefaultUnit.StyleController = this.layoutControl1; |
|
166 |
this.buttonEditDefaultUnit.TabIndex = 11; |
|
167 |
this.buttonEditDefaultUnit.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.buttonEditDefaulUnit_ButtonClick); |
|
168 |
// |
|
144 | 169 |
// btnRun |
145 | 170 |
// |
146 | 171 |
this.btnRun.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnRun.ImageOptions.SvgImage"))); |
... | ... | |
408 | 433 |
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); |
409 | 434 |
this.layoutControlItem6.TextVisible = false; |
410 | 435 |
// |
436 |
// layoutControlItem3 |
|
437 |
// |
|
438 |
this.layoutControlItem3.Control = this.buttonEditDefaultUnit; |
|
439 |
this.layoutControlItem3.Location = new System.Drawing.Point(392, 16); |
|
440 |
this.layoutControlItem3.Name = "layoutControlItem3"; |
|
441 |
this.layoutControlItem3.Size = new System.Drawing.Size(198, 24); |
|
442 |
this.layoutControlItem3.Text = "Default Unit"; |
|
443 |
this.layoutControlItem3.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
|
444 |
this.layoutControlItem3.TextSize = new System.Drawing.Size(65, 14); |
|
445 |
this.layoutControlItem3.TextToControlDistance = 5; |
|
446 |
// |
|
447 |
// layoutControlItem8 |
|
448 |
// |
|
449 |
this.layoutControlItem8.Control = this.comboBoxEditDefaultTemplate; |
|
450 |
this.layoutControlItem8.Location = new System.Drawing.Point(590, 16); |
|
451 |
this.layoutControlItem8.Name = "layoutControlItem8"; |
|
452 |
this.layoutControlItem8.Size = new System.Drawing.Size(245, 24); |
|
453 |
this.layoutControlItem8.Text = "Default Template"; |
|
454 |
this.layoutControlItem8.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
|
455 |
this.layoutControlItem8.TextSize = new System.Drawing.Size(95, 14); |
|
456 |
this.layoutControlItem8.TextToControlDistance = 5; |
|
457 |
// |
|
458 |
// emptySpaceItem3 |
|
459 |
// |
|
460 |
this.emptySpaceItem3.AllowHotTrack = false; |
|
461 |
this.emptySpaceItem3.Location = new System.Drawing.Point(114, 16); |
|
462 |
this.emptySpaceItem3.Name = "emptySpaceItem3"; |
|
463 |
this.emptySpaceItem3.Size = new System.Drawing.Size(278, 24); |
|
464 |
this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); |
|
465 |
// |
|
411 | 466 |
// emptySpaceItem1 |
412 | 467 |
// |
413 | 468 |
this.emptySpaceItem1.AllowHotTrack = false; |
... | ... | |
508 | 563 |
this.xtraOpenFileDialog.Filter = "Xml Files(*.xml)|*.xml"; |
509 | 564 |
this.xtraOpenFileDialog.Multiselect = true; |
510 | 565 |
// |
511 |
// buttonEditDefaulUnit |
|
512 |
// |
|
513 |
this.buttonEditDefaultUnit.Location = new System.Drawing.Point(486, 74); |
|
514 |
this.buttonEditDefaultUnit.MenuManager = this.ribbonControl; |
|
515 |
this.buttonEditDefaultUnit.Name = "buttonEditDefaulUnit"; |
|
516 |
this.buttonEditDefaultUnit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { |
|
517 |
new DevExpress.XtraEditors.Controls.EditorButton()}); |
|
518 |
this.buttonEditDefaultUnit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
|
519 |
this.buttonEditDefaultUnit.Size = new System.Drawing.Size(152, 20); |
|
520 |
this.buttonEditDefaultUnit.StyleController = this.layoutControl1; |
|
521 |
this.buttonEditDefaultUnit.TabIndex = 11; |
|
522 |
this.buttonEditDefaultUnit.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.buttonEditDefaulUnit_ButtonClick); |
|
523 |
// |
|
524 |
// layoutControlItem3 |
|
525 |
// |
|
526 |
this.layoutControlItem3.Control = this.buttonEditDefaultUnit; |
|
527 |
this.layoutControlItem3.Location = new System.Drawing.Point(392, 16); |
|
528 |
this.layoutControlItem3.Name = "layoutControlItem3"; |
|
529 |
this.layoutControlItem3.Size = new System.Drawing.Size(226, 24); |
|
530 |
this.layoutControlItem3.Text = "Default Unit"; |
|
531 |
this.layoutControlItem3.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
|
532 |
this.layoutControlItem3.TextSize = new System.Drawing.Size(65, 14); |
|
533 |
this.layoutControlItem3.TextToControlDistance = 5; |
|
534 |
// |
|
535 |
// comboBoxEditDefaultTemplate |
|
536 |
// |
|
537 |
this.comboBoxEditDefaultTemplate.Location = new System.Drawing.Point(742, 74); |
|
538 |
this.comboBoxEditDefaultTemplate.MenuManager = this.ribbonControl; |
|
539 |
this.comboBoxEditDefaultTemplate.Name = "comboBoxEditDefaultTemplate"; |
|
540 |
this.comboBoxEditDefaultTemplate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { |
|
541 |
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); |
|
542 |
this.comboBoxEditDefaultTemplate.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
|
543 |
this.comboBoxEditDefaultTemplate.Size = new System.Drawing.Size(113, 20); |
|
544 |
this.comboBoxEditDefaultTemplate.StyleController = this.layoutControl1; |
|
545 |
this.comboBoxEditDefaultTemplate.TabIndex = 12; |
|
546 |
// |
|
547 |
// layoutControlItem8 |
|
548 |
// |
|
549 |
this.layoutControlItem8.Control = this.comboBoxEditDefaultTemplate; |
|
550 |
this.layoutControlItem8.Location = new System.Drawing.Point(618, 16); |
|
551 |
this.layoutControlItem8.Name = "layoutControlItem8"; |
|
552 |
this.layoutControlItem8.Size = new System.Drawing.Size(217, 24); |
|
553 |
this.layoutControlItem8.Text = "Default Template"; |
|
554 |
this.layoutControlItem8.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
|
555 |
this.layoutControlItem8.TextSize = new System.Drawing.Size(95, 14); |
|
556 |
this.layoutControlItem8.TextToControlDistance = 5; |
|
557 |
// |
|
558 |
// emptySpaceItem3 |
|
559 |
// |
|
560 |
this.emptySpaceItem3.AllowHotTrack = false; |
|
561 |
this.emptySpaceItem3.Location = new System.Drawing.Point(114, 16); |
|
562 |
this.emptySpaceItem3.Name = "emptySpaceItem3"; |
|
563 |
this.emptySpaceItem3.Size = new System.Drawing.Size(278, 24); |
|
564 |
this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); |
|
565 |
// |
|
566 | 566 |
// ConverterForm |
567 | 567 |
// |
568 | 568 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
... | ... | |
578 | 578 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit(); |
579 | 579 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); |
580 | 580 |
this.layoutControl1.ResumeLayout(false); |
581 |
((System.ComponentModel.ISupportInitialize)(this.comboBoxEditDefaultTemplate.Properties)).EndInit(); |
|
582 |
((System.ComponentModel.ISupportInitialize)(this.buttonEditDefaultUnit.Properties)).EndInit(); |
|
581 | 583 |
((System.ComponentModel.ISupportInitialize)(this.gridControlConverter)).EndInit(); |
582 | 584 |
((System.ComponentModel.ISupportInitialize)(this.gridViewConverter)).EndInit(); |
583 | 585 |
((System.ComponentModel.ISupportInitialize)(this.btnID2Project.Properties)).EndInit(); |
... | ... | |
597 | 599 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); |
598 | 600 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); |
599 | 601 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); |
602 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); |
|
603 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); |
|
604 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); |
|
600 | 605 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); |
601 | 606 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupID2Project)).EndInit(); |
602 | 607 |
((System.ComponentModel.ISupportInitialize)(this.labelID2ProjectName)).EndInit(); |
... | ... | |
605 | 610 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem3)).EndInit(); |
606 | 611 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem4)).EndInit(); |
607 | 612 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit(); |
608 |
((System.ComponentModel.ISupportInitialize)(this.buttonEditDefaultUnit.Properties)).EndInit(); |
|
609 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); |
|
610 |
((System.ComponentModel.ISupportInitialize)(this.comboBoxEditDefaultTemplate.Properties)).EndInit(); |
|
611 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit(); |
|
612 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); |
|
613 | 613 |
this.ResumeLayout(false); |
614 | 614 |
this.PerformLayout(); |
615 | 615 |
|
내보내기 Unified diff