개정판 02a45794
dev issue #1176 : ValidationCheck 항목 추가
Change-Id: I4fbad8a6095302f1b94d7e6021df95de699ab934
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
206 | 206 |
List<Line> step1_Line = AllLine.FindAll(x => !stepLast_Line.Contains(x)); |
207 | 207 |
|
208 | 208 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetAllProgress, step1_Line.Count); |
209 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Lines Modeling - 1");
|
|
209 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Line Modeling - 1"); |
|
210 | 210 |
|
211 | 211 |
SetPriorityLine(step1_Line); |
212 | 212 |
foreach (var item in step1_Line) |
... | ... | |
226 | 226 |
} |
227 | 227 |
|
228 | 228 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetAllProgress, BranchLines.Count); |
229 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Lines Modeling - 2");
|
|
229 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Line Modeling - 2"); |
|
230 | 230 |
int branchCount = BranchLines.Count; |
231 | 231 |
while (BranchLines.Count > 0) |
232 | 232 |
{ |
... | ... | |
264 | 264 |
} |
265 | 265 |
|
266 | 266 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetAllProgress, stepLast_Line.Count); |
267 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Lines Modeling - 3");
|
|
267 |
SplashScreenManager.Default.SendCommand(SPPIDSplashScreen.SplashScreenCommand.SetStep, "Line Modeling - 3"); |
|
268 | 268 |
foreach (var item in stepLast_Line) |
269 | 269 |
{ |
270 | 270 |
try |
... | ... | |
2204 | 2204 |
|
2205 | 2205 |
if (targetLMConnector != null) |
2206 | 2206 |
{ |
2207 |
Array array = new double[] { 0, endBreak.SPPID.ORIGINAL_X, endBreak.SPPID.ORIGINAL_Y }; |
|
2208 |
LMLabelPersist _LmLabelPersist = _placement.PIDPlaceLabel(endBreak.SPPID.MAPPINGNAME, ref array, Rotation: 0, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: true); |
|
2207 |
double[] point = GetSegmentPoint(ownerObj, connectedItem, targetLMConnector); |
|
2208 |
Array array = null; |
|
2209 |
if (point != null) |
|
2210 |
array = new double[] { 0, point[0], point[1] }; |
|
2211 |
else |
|
2212 |
array = new double[] { 0, endBreak.SPPID.ORIGINAL_X, endBreak.SPPID.ORIGINAL_Y }; |
|
2213 |
LMLabelPersist _LmLabelPersist = _placement.PIDPlaceLabel(endBreak.SPPID.MAPPINGNAME, ref array, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: true); |
|
2209 | 2214 |
if (_LmLabelPersist != null) |
2210 | 2215 |
{ |
2211 | 2216 |
endBreak.SPPID.RepresentationId = _LmLabelPersist.AsLMRepresentation().Id; |
... | ... | |
2339 | 2344 |
if (mapping != null && !string.IsNullOrEmpty(mapping.SPPIDSYMBOLNAME) && mapping.SPPIDSYMBOLNAME != "None") |
2340 | 2345 |
{ |
2341 | 2346 |
string MappingPath = mapping.SPPIDSYMBOLNAME; |
2342 |
Array array = new double[] { 0, specBreak.SPPID.ORIGINAL_X, specBreak.SPPID.ORIGINAL_Y }; |
|
2343 |
LMLabelPersist _LmLabelPersist = _placement.PIDPlaceLabel(MappingPath, ref array, Rotation: specBreak.ANGLE, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: mapping.LeaderLine); |
|
2347 |
double[] point = GetSegmentPoint(upStreamObj, downStreamObj, targetLMConnector); |
|
2348 |
Array array = null; |
|
2349 |
if (point != null) |
|
2350 |
array = new double[] { 0, point[0], point[1] }; |
|
2351 |
else |
|
2352 |
array = new double[] { 0, specBreak.SPPID.ORIGINAL_X, specBreak.SPPID.ORIGINAL_Y }; |
|
2353 |
LMLabelPersist _LmLabelPersist = _placement.PIDPlaceLabel(MappingPath, ref array, LabeledItem: targetLMConnector.AsLMRepresentation(), IsLeaderVisible: mapping.LeaderLine); |
|
2344 | 2354 |
|
2345 | 2355 |
if (_LmLabelPersist != null) |
2346 | 2356 |
{ |
... | ... | |
2487 | 2497 |
return targetConnector; |
2488 | 2498 |
} |
2489 | 2499 |
|
2500 |
private double[] GetSegmentPoint(object targetObj, object connObj, LMConnector targetConnector) |
|
2501 |
{ |
|
2502 |
double[] result = null; |
|
2503 |
if (Convert.ToBoolean(targetConnector.get_IsZeroLength())) |
|
2504 |
{ |
|
2505 |
return GetConnectorVertices(targetConnector)[0]; |
|
2506 |
} |
|
2507 |
else |
|
2508 |
{ |
|
2509 |
if (targetObj.GetType() == typeof(Line) && connObj.GetType() == typeof(Line)) |
|
2510 |
{ |
|
2511 |
Line line = connObj as Line; |
|
2512 |
LMConnector connectedConnector = null; |
|
2513 |
int connIndex = 0; |
|
2514 |
LMModelItem modelItem = dataSource.GetModelItem(line.SPPID.ModelItemId); |
|
2515 |
FindConnectedConnector(targetConnector, modelItem, ref connectedConnector, ref connIndex); |
|
2516 |
|
|
2517 |
List<double[]> vertices = GetConnectorVertices(targetConnector); |
|
2518 |
|
|
2519 |
ReleaseCOMObjects(modelItem); |
|
2520 |
ReleaseCOMObjects(connectedConnector); |
|
2521 |
|
|
2522 |
if (vertices.Count > 0) |
|
2523 |
{ |
|
2524 |
if (connIndex == 1) |
|
2525 |
return vertices[0]; |
|
2526 |
else if (connIndex == 2) |
|
2527 |
return vertices[vertices.Count - 1]; |
|
2528 |
} |
|
2529 |
} |
|
2530 |
else |
|
2531 |
{ |
|
2532 |
Log.Write("error in GetSegemtPoint"); |
|
2533 |
} |
|
2534 |
} |
|
2535 |
|
|
2536 |
return result; |
|
2537 |
} |
|
2538 |
|
|
2490 | 2539 |
private bool IsConnected(LMConnector connector, LMModelItem modelItem) |
2491 | 2540 |
{ |
2492 | 2541 |
bool result = false; |
... | ... | |
2541 | 2590 |
return result; |
2542 | 2591 |
} |
2543 | 2592 |
|
2593 |
private void FindConnectedConnector(LMConnector connector, LMModelItem modelItem, ref LMConnector connectedConnector, ref int connectorIndex) |
|
2594 |
{ |
|
2595 |
foreach (LMRepresentation rep in modelItem.Representations) |
|
2596 |
{ |
|
2597 |
if (connectedConnector != null) |
|
2598 |
break; |
|
2599 |
|
|
2600 |
if (rep.Attributes["RepresentationType"].get_Value() == "Connector" && rep.Attributes["ItemStatus"].get_Value() == "Active") |
|
2601 |
{ |
|
2602 |
LMConnector _LMConnector = dataSource.GetConnector(rep.Id); |
|
2603 |
|
|
2604 |
if (_LMConnector.ConnectItem1SymbolObject != null && |
|
2605 |
connector.ConnectItem1SymbolObject != null && |
|
2606 |
_LMConnector.ConnectItem1SymbolObject.Id == connector.ConnectItem1SymbolObject.Id) |
|
2607 |
{ |
|
2608 |
connectedConnector = _LMConnector; |
|
2609 |
connectorIndex = 1; |
|
2610 |
break; |
|
2611 |
} |
|
2612 |
else if (_LMConnector.ConnectItem1SymbolObject != null && |
|
2613 |
connector.ConnectItem2SymbolObject != null && |
|
2614 |
_LMConnector.ConnectItem1SymbolObject.Id == connector.ConnectItem2SymbolObject.Id) |
|
2615 |
{ |
|
2616 |
connectedConnector = _LMConnector; |
|
2617 |
connectorIndex = 2; |
|
2618 |
break; |
|
2619 |
} |
|
2620 |
else if (_LMConnector.ConnectItem2SymbolObject != null && |
|
2621 |
connector.ConnectItem1SymbolObject != null && |
|
2622 |
_LMConnector.ConnectItem2SymbolObject.Id == connector.ConnectItem1SymbolObject.Id) |
|
2623 |
{ |
|
2624 |
connectedConnector = _LMConnector; |
|
2625 |
connectorIndex = 1; |
|
2626 |
break; |
|
2627 |
} |
|
2628 |
else if (_LMConnector.ConnectItem2SymbolObject != null && |
|
2629 |
connector.ConnectItem2SymbolObject != null && |
|
2630 |
_LMConnector.ConnectItem2SymbolObject.Id == connector.ConnectItem2SymbolObject.Id) |
|
2631 |
{ |
|
2632 |
connectedConnector = _LMConnector; |
|
2633 |
connectorIndex = 2; |
|
2634 |
break; |
|
2635 |
} |
|
2636 |
|
|
2637 |
if (connectedConnector == null) |
|
2638 |
ReleaseCOMObjects(_LMConnector); |
|
2639 |
} |
|
2640 |
} |
|
2641 |
} |
|
2642 |
|
|
2544 | 2643 |
/// <summary> |
2545 | 2644 |
/// FromModelItem을 ToModelItem으로 PipeRunJoin하는 메서드 |
2546 | 2645 |
/// </summary> |
... | ... | |
2690 | 2789 |
private List<double[]> GetConnectorVertices(LMConnector connector) |
2691 | 2790 |
{ |
2692 | 2791 |
List<double[]> vertices = new List<double[]>(); |
2693 |
dynamic OID = connector.get_GraphicOID().ToString(); |
|
2694 |
DependencyObject drawingObject = radApp.ActiveDocument.ActiveSheet.DrawingObjects[OID]; |
|
2695 |
Ingr.RAD2D.LineStringGeometry2d lineStringGeometry = drawingObject.GetGeometry() as Ingr.RAD2D.LineStringGeometry2d; |
|
2696 |
int verticesCount = lineStringGeometry.VertexCount; |
|
2697 |
double[] value = null; |
|
2698 |
lineStringGeometry.GetVertices(ref verticesCount, ref value); |
|
2699 |
for (int i = 0; i < verticesCount; i++) |
|
2792 |
if (connector != null) |
|
2700 | 2793 |
{ |
2701 |
double x = 0; |
|
2702 |
double y = 0; |
|
2703 |
lineStringGeometry.GetVertex(i + 1, ref x, ref y); |
|
2704 |
vertices.Add(new double[] { x, y }); |
|
2794 |
dynamic OID = connector.get_GraphicOID().ToString(); |
|
2795 |
DependencyObject drawingObject = radApp.ActiveDocument.ActiveSheet.DrawingObjects[OID]; |
|
2796 |
Ingr.RAD2D.LineStringGeometry2d lineStringGeometry = drawingObject.GetGeometry() as Ingr.RAD2D.LineStringGeometry2d; |
|
2797 |
int verticesCount = lineStringGeometry.VertexCount; |
|
2798 |
double[] value = null; |
|
2799 |
lineStringGeometry.GetVertices(ref verticesCount, ref value); |
|
2800 |
for (int i = 0; i < verticesCount; i++) |
|
2801 |
{ |
|
2802 |
double x = 0; |
|
2803 |
double y = 0; |
|
2804 |
lineStringGeometry.GetVertex(i + 1, ref x, ref y); |
|
2805 |
vertices.Add(new double[] { x, y }); |
|
2806 |
} |
|
2705 | 2807 |
} |
2706 | 2808 |
return vertices; |
2707 | 2809 |
} |
... | ... | |
3087 | 3189 |
} |
3088 | 3190 |
} |
3089 | 3191 |
} |
3192 |
|
|
3090 | 3193 |
private void LineNumberModeling(LineNumber lineNumber) |
3091 | 3194 |
{ |
3092 | 3195 |
Line line = SPPIDUtil.FindObjectByUID(document, lineNumber.CONNLINE) as Line; |
... | ... | |
3980 | 4083 |
/// <param name="objVars"></param> |
3981 | 4084 |
public void ReleaseCOMObjects(params object[] objVars) |
3982 | 4085 |
{ |
3983 |
int intNewRefCount = 0; |
|
3984 |
foreach (object obj in objVars) |
|
4086 |
if (objVars != null) |
|
3985 | 4087 |
{ |
3986 |
if (!Information.IsNothing(obj) && System.Runtime.InteropServices.Marshal.IsComObject(obj)) |
|
3987 |
intNewRefCount = intNewRefCount + System.Runtime.InteropServices.Marshal.FinalReleaseComObject(obj); |
|
4088 |
int intNewRefCount = 0; |
|
4089 |
foreach (object obj in objVars) |
|
4090 |
{ |
|
4091 |
if (!Information.IsNothing(obj) && System.Runtime.InteropServices.Marshal.IsComObject(obj)) |
|
4092 |
intNewRefCount = intNewRefCount + System.Runtime.InteropServices.Marshal.FinalReleaseComObject(obj); |
|
4093 |
} |
|
3988 | 4094 |
} |
3989 | 4095 |
} |
3990 | 4096 |
} |
DTI_PID/SPPIDConverter/BaseModel/Document.cs | ||
---|---|---|
637 | 637 |
} |
638 | 638 |
else |
639 | 639 |
{ |
640 |
|
|
640 | 641 |
bool result = false; |
641 | 642 |
if (obj1.GetType() == typeof(Symbol) && obj2.GetType() == typeof(Symbol)) |
642 | 643 |
{ |
... | ... | |
676 | 677 |
validationStringBuilder.AppendLine(); |
677 | 678 |
validationResult = true; |
678 | 679 |
} |
680 |
|
|
681 |
// Rule |
|
682 |
if (!result) |
|
683 |
{ |
|
684 |
if (obj1.GetType() == typeof(Line) && obj2.GetType() == typeof(Line)) |
|
685 |
{ |
|
686 |
Line line1 = obj1 as Line; |
|
687 |
Line line2 = obj2 as Line; |
|
688 |
|
|
689 |
Connector connector1 = line1.CONNECTORS.Find(x => x.ConnectedObject == line2); |
|
690 |
Connector connector2 = line2.CONNECTORS.Find(x => x.ConnectedObject == line1); |
|
691 |
if (connector1 != null && connector2 != null) |
|
692 |
{ |
|
693 |
int connectorIndex = line1.CONNECTORS.IndexOf(connector1); |
|
694 |
if (connectorIndex != 0 && !SPPIDUtil.IsBranchLine(line1)) |
|
695 |
result = true; |
|
696 |
else if (connectorIndex == 0 && !SPPIDUtil.IsBranchLine(line1) && SPPIDUtil.IsBranchLine(line2)) |
|
697 |
result = true; |
|
698 |
|
|
699 |
if (result) |
|
700 |
{ |
|
701 |
validationStringBuilder.AppendLine("Check Segment Rule!"); |
|
702 |
validationStringBuilder.AppendLine("UID : " + item.UID); |
|
703 |
validationStringBuilder.AppendLine(); |
|
704 |
validationResult = true; |
|
705 |
} |
|
706 |
} |
|
707 |
} |
|
708 |
} |
|
679 | 709 |
} |
680 | 710 |
} |
681 | 711 |
|
... | ... | |
731 | 761 |
validationStringBuilder.AppendLine(); |
732 | 762 |
validationResult = true; |
733 | 763 |
} |
764 |
|
|
765 |
// Rule |
|
766 |
if (!result) |
|
767 |
{ |
|
768 |
if (obj1.GetType() == typeof(Line) && obj2.GetType() == typeof(Line)) |
|
769 |
{ |
|
770 |
Line line1 = obj1 as Line; |
|
771 |
Line line2 = obj2 as Line; |
|
772 |
|
|
773 |
Connector connector1 = line1.CONNECTORS.Find(x => x.ConnectedObject == line2); |
|
774 |
Connector connector2 = line2.CONNECTORS.Find(x => x.ConnectedObject == line1); |
|
775 |
if (connector1 != null && connector2 != null) |
|
776 |
{ |
|
777 |
int connectorIndex = line1.CONNECTORS.IndexOf(connector1); |
|
778 |
if (connectorIndex != 0 && !SPPIDUtil.IsBranchLine(line1)) |
|
779 |
result = true; |
|
780 |
else if (connectorIndex == 0 && !SPPIDUtil.IsBranchLine(line1) && SPPIDUtil.IsBranchLine(line2)) |
|
781 |
result = true; |
|
782 |
|
|
783 |
if (result) |
|
784 |
{ |
|
785 |
validationStringBuilder.AppendLine("Check Segment Rule!"); |
|
786 |
validationStringBuilder.AppendLine("UID : " + item.UID); |
|
787 |
validationStringBuilder.AppendLine(); |
|
788 |
validationResult = true; |
|
789 |
} |
|
790 |
} |
|
791 |
} |
|
792 |
} |
|
734 | 793 |
} |
735 | 794 |
} |
736 | 795 |
|
737 | 796 |
#endregion |
738 | 797 |
|
739 | 798 |
#region Check Flow Direction |
799 |
List<string[]> flowDirectionCheck = new List<string[]>(); |
|
740 | 800 |
foreach (var line in LINES) |
741 | 801 |
{ |
742 | 802 |
foreach (var connector in line.CONNECTORS) |
... | ... | |
748 | 808 |
Line connLine = connector.ConnectedObject as Line; |
749 | 809 |
int lineIndex1 = line.CONNECTORS.IndexOf(connector); |
750 | 810 |
int lineIndex2 = connLine.CONNECTORS.IndexOf(connLine.CONNECTORS.Find(x => x.ConnectedObject == line)); |
751 |
if (lineIndex1 == lineIndex2 && !SPPIDUtil.IsSegmentLine(this, line, connLine))
|
|
811 |
if (lineIndex1 == lineIndex2 && flowDirectionCheck.Find(x => (x[0] == line.UID || x[1] == connLine.UID) || (x[1] == line.UID || x[0] == connLine.UID)) == null)
|
|
752 | 812 |
{ |
753 | 813 |
validationStringBuilder.AppendLine("Check line flow direction!"); |
754 | 814 |
validationStringBuilder.AppendLine("UID : " + line.UID); |
755 | 815 |
validationStringBuilder.AppendLine("UID : " + connLine.UID); |
756 | 816 |
validationStringBuilder.AppendLine(); |
757 | 817 |
validationResult = true; |
818 |
flowDirectionCheck.Add(new string[] { line.UID, connLine.UID }); |
|
758 | 819 |
} |
759 | 820 |
} |
760 | 821 |
} |
DTI_PID/SPPIDConverter/ConverterForm.Designer.cs | ||
---|---|---|
70 | 70 |
this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem(); |
71 | 71 |
this.xtraFolderBrowserDialog = new DevExpress.XtraEditors.XtraFolderBrowserDialog(this.components); |
72 | 72 |
this.xtraOpenFileDialog = new DevExpress.XtraEditors.XtraOpenFileDialog(this.components); |
73 |
this.btnRefresh = new DevExpress.XtraEditors.SimpleButton(); |
|
74 |
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
75 |
this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
73 | 76 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
74 | 77 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
75 | 78 |
this.layoutControl1.SuspendLayout(); |
... | ... | |
105 | 108 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem3)).BeginInit(); |
106 | 109 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem4)).BeginInit(); |
107 | 110 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit(); |
111 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); |
|
112 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit(); |
|
108 | 113 |
this.SuspendLayout(); |
109 | 114 |
// |
110 | 115 |
// ribbonControl |
... | ... | |
119 | 124 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
120 | 125 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
121 | 126 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
122 |
this.ribbonControl.Size = new System.Drawing.Size(1234, 32);
|
|
127 |
this.ribbonControl.Size = new System.Drawing.Size(1234, 27);
|
|
123 | 128 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
124 | 129 |
// |
125 | 130 |
// layoutControl1 |
126 | 131 |
// |
132 |
this.layoutControl1.Controls.Add(this.btnRefresh); |
|
127 | 133 |
this.layoutControl1.Controls.Add(this.comboBoxEditDefaultTemplate); |
128 | 134 |
this.layoutControl1.Controls.Add(this.buttonEditDefaultUnit); |
129 | 135 |
this.layoutControl1.Controls.Add(this.btnRun); |
... | ... | |
133 | 139 |
this.layoutControl1.Controls.Add(this.gridControlConverter); |
134 | 140 |
this.layoutControl1.Controls.Add(this.btnID2Project); |
135 | 141 |
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; |
136 |
this.layoutControl1.Location = new System.Drawing.Point(0, 32);
|
|
142 |
this.layoutControl1.Location = new System.Drawing.Point(0, 27);
|
|
137 | 143 |
this.layoutControl1.Name = "layoutControl1"; |
138 | 144 |
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(982, 292, 650, 400); |
139 | 145 |
this.layoutControl1.Root = this.Root; |
140 |
this.layoutControl1.Size = new System.Drawing.Size(1234, 565);
|
|
146 |
this.layoutControl1.Size = new System.Drawing.Size(1234, 570);
|
|
141 | 147 |
this.layoutControl1.TabIndex = 1; |
142 | 148 |
this.layoutControl1.Text = "layoutControl1"; |
143 | 149 |
// |
144 | 150 |
// comboBoxEditDefaultTemplate |
145 | 151 |
// |
146 |
this.comboBoxEditDefaultTemplate.Location = new System.Drawing.Point(714, 74);
|
|
152 |
this.comboBoxEditDefaultTemplate.Location = new System.Drawing.Point(758, 82);
|
|
147 | 153 |
this.comboBoxEditDefaultTemplate.MenuManager = this.ribbonControl; |
148 | 154 |
this.comboBoxEditDefaultTemplate.Name = "comboBoxEditDefaultTemplate"; |
149 | 155 |
this.comboBoxEditDefaultTemplate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { |
150 | 156 |
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); |
151 | 157 |
this.comboBoxEditDefaultTemplate.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
152 |
this.comboBoxEditDefaultTemplate.Size = new System.Drawing.Size(141, 20);
|
|
158 |
this.comboBoxEditDefaultTemplate.Size = new System.Drawing.Size(97, 20);
|
|
153 | 159 |
this.comboBoxEditDefaultTemplate.StyleController = this.layoutControl1; |
154 | 160 |
this.comboBoxEditDefaultTemplate.TabIndex = 12; |
155 | 161 |
// |
156 | 162 |
// buttonEditDefaultUnit |
157 | 163 |
// |
158 |
this.buttonEditDefaultUnit.Location = new System.Drawing.Point(486, 74);
|
|
164 |
this.buttonEditDefaultUnit.Location = new System.Drawing.Point(563, 82);
|
|
159 | 165 |
this.buttonEditDefaultUnit.MenuManager = this.ribbonControl; |
160 | 166 |
this.buttonEditDefaultUnit.Name = "buttonEditDefaultUnit"; |
161 | 167 |
this.buttonEditDefaultUnit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { |
162 | 168 |
new DevExpress.XtraEditors.Controls.EditorButton()}); |
163 | 169 |
this.buttonEditDefaultUnit.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
164 |
this.buttonEditDefaultUnit.Size = new System.Drawing.Size(124, 20);
|
|
170 |
this.buttonEditDefaultUnit.Size = new System.Drawing.Size(91, 20);
|
|
165 | 171 |
this.buttonEditDefaultUnit.StyleController = this.layoutControl1; |
166 | 172 |
this.buttonEditDefaultUnit.TabIndex = 11; |
167 | 173 |
this.buttonEditDefaultUnit.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.buttonEditDefaulUnit_ButtonClick); |
... | ... | |
169 | 175 |
// btnRun |
170 | 176 |
// |
171 | 177 |
this.btnRun.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnRun.ImageOptions.SvgImage"))); |
172 |
this.btnRun.Location = new System.Drawing.Point(859, 58);
|
|
178 |
this.btnRun.Location = new System.Drawing.Point(859, 64);
|
|
173 | 179 |
this.btnRun.Name = "btnRun"; |
174 | 180 |
this.btnRun.Size = new System.Drawing.Size(79, 36); |
175 | 181 |
this.btnRun.StyleController = this.layoutControl1; |
... | ... | |
180 | 186 |
// btnLoadFile |
181 | 187 |
// |
182 | 188 |
this.btnLoadFile.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnLoadFile.ImageOptions.SvgImage"))); |
183 |
this.btnLoadFile.Location = new System.Drawing.Point(24, 58);
|
|
189 |
this.btnLoadFile.Location = new System.Drawing.Point(24, 64);
|
|
184 | 190 |
this.btnLoadFile.Name = "btnLoadFile"; |
185 | 191 |
this.btnLoadFile.Size = new System.Drawing.Size(110, 36); |
186 | 192 |
this.btnLoadFile.StyleController = this.layoutControl1; |
... | ... | |
191 | 197 |
// btnItemMapping |
192 | 198 |
// |
193 | 199 |
this.btnItemMapping.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnItemMapping.ImageOptions.SvgImage"))); |
194 |
this.btnItemMapping.Location = new System.Drawing.Point(976, 310);
|
|
200 |
this.btnItemMapping.Location = new System.Drawing.Point(971, 330);
|
|
195 | 201 |
this.btnItemMapping.Name = "btnItemMapping"; |
196 |
this.btnItemMapping.Size = new System.Drawing.Size(234, 36);
|
|
202 |
this.btnItemMapping.Size = new System.Drawing.Size(239, 38);
|
|
197 | 203 |
this.btnItemMapping.StyleController = this.layoutControl1; |
198 | 204 |
this.btnItemMapping.TabIndex = 7; |
199 | 205 |
this.btnItemMapping.Text = "Item Mapping Setting"; |
... | ... | |
202 | 208 |
// btnSPPIDDB |
203 | 209 |
// |
204 | 210 |
this.btnSPPIDDB.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnSPPIDDB.ImageOptions.SvgImage"))); |
205 |
this.btnSPPIDDB.Location = new System.Drawing.Point(976, 176);
|
|
211 |
this.btnSPPIDDB.Location = new System.Drawing.Point(971, 188);
|
|
206 | 212 |
this.btnSPPIDDB.Name = "btnSPPIDDB"; |
207 |
this.btnSPPIDDB.Size = new System.Drawing.Size(234, 36);
|
|
213 |
this.btnSPPIDDB.Size = new System.Drawing.Size(239, 38);
|
|
208 | 214 |
this.btnSPPIDDB.StyleController = this.layoutControl1; |
209 | 215 |
this.btnSPPIDDB.TabIndex = 5; |
210 | 216 |
this.btnSPPIDDB.Text = "Setting"; |
... | ... | |
212 | 218 |
// |
213 | 219 |
// gridControlConverter |
214 | 220 |
// |
215 |
this.gridControlConverter.Location = new System.Drawing.Point(24, 98);
|
|
221 |
this.gridControlConverter.Location = new System.Drawing.Point(24, 106);
|
|
216 | 222 |
this.gridControlConverter.MainView = this.gridViewConverter; |
217 | 223 |
this.gridControlConverter.MenuManager = this.ribbonControl; |
218 | 224 |
this.gridControlConverter.Name = "gridControlConverter"; |
219 |
this.gridControlConverter.Size = new System.Drawing.Size(914, 443);
|
|
225 |
this.gridControlConverter.Size = new System.Drawing.Size(914, 440);
|
|
220 | 226 |
this.gridControlConverter.TabIndex = 4; |
221 | 227 |
this.gridControlConverter.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
222 | 228 |
this.gridViewConverter}); |
... | ... | |
231 | 237 |
// |
232 | 238 |
// btnID2Project |
233 | 239 |
// |
234 |
this.btnID2Project.Location = new System.Drawing.Point(1014, 58);
|
|
240 |
this.btnID2Project.Location = new System.Drawing.Point(1009, 64);
|
|
235 | 241 |
this.btnID2Project.MenuManager = this.ribbonControl; |
236 | 242 |
this.btnID2Project.Name = "btnID2Project"; |
237 | 243 |
this.btnID2Project.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { |
238 | 244 |
new DevExpress.XtraEditors.Controls.EditorButton()}); |
239 | 245 |
this.btnID2Project.Properties.ReadOnly = true; |
240 |
this.btnID2Project.Size = new System.Drawing.Size(196, 20);
|
|
246 |
this.btnID2Project.Size = new System.Drawing.Size(201, 20);
|
|
241 | 247 |
this.btnID2Project.StyleController = this.layoutControl1; |
242 | 248 |
this.btnID2Project.TabIndex = 10; |
243 | 249 |
this.btnID2Project.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.btnID2Project_ButtonClick); |
... | ... | |
254 | 260 |
this.layoutControlGroupID2Project, |
255 | 261 |
this.splitterItem1}); |
256 | 262 |
this.Root.Name = "Root"; |
257 |
this.Root.Size = new System.Drawing.Size(1234, 565);
|
|
263 |
this.Root.Size = new System.Drawing.Size(1234, 570);
|
|
258 | 264 |
this.Root.TextVisible = false; |
259 | 265 |
// |
260 | 266 |
// layoutControlGroupSPPIDDB |
... | ... | |
267 | 273 |
this.layoutControlItem2, |
268 | 274 |
this.simpleLabelItem2, |
269 | 275 |
this.simpleLabelItem1}); |
270 |
this.layoutControlGroupSPPIDDB.Location = new System.Drawing.Point(952, 118);
|
|
276 |
this.layoutControlGroupSPPIDDB.Location = new System.Drawing.Point(947, 124);
|
|
271 | 277 |
this.layoutControlGroupSPPIDDB.Name = "layoutControlGroupSPPIDDB"; |
272 |
this.layoutControlGroupSPPIDDB.Size = new System.Drawing.Size(262, 134);
|
|
278 |
this.layoutControlGroupSPPIDDB.Size = new System.Drawing.Size(267, 142);
|
|
273 | 279 |
this.layoutControlGroupSPPIDDB.Text = "SPPID DB"; |
274 | 280 |
// |
275 | 281 |
// labelSPPIDPlantName |
276 | 282 |
// |
277 | 283 |
this.labelSPPIDPlantName.AllowHotTrack = false; |
278 | 284 |
this.labelSPPIDPlantName.AppearanceItemCaption.Options.UseForeColor = true; |
279 |
this.labelSPPIDPlantName.Location = new System.Drawing.Point(78, 40);
|
|
285 |
this.labelSPPIDPlantName.Location = new System.Drawing.Point(78, 42);
|
|
280 | 286 |
this.labelSPPIDPlantName.Name = "labelSPPIDPlantName"; |
281 |
this.labelSPPIDPlantName.Size = new System.Drawing.Size(160, 18);
|
|
287 |
this.labelSPPIDPlantName.Size = new System.Drawing.Size(165, 18);
|
|
282 | 288 |
this.labelSPPIDPlantName.Text = "SPPIDPlantName"; |
283 | 289 |
this.labelSPPIDPlantName.TextSize = new System.Drawing.Size(93, 14); |
284 | 290 |
// |
... | ... | |
286 | 292 |
// |
287 | 293 |
this.labelSPPIDDBStatus.AllowHotTrack = false; |
288 | 294 |
this.labelSPPIDDBStatus.AppearanceItemCaption.Options.UseForeColor = true; |
289 |
this.labelSPPIDDBStatus.Location = new System.Drawing.Point(51, 58);
|
|
295 |
this.labelSPPIDDBStatus.Location = new System.Drawing.Point(51, 60);
|
|
290 | 296 |
this.labelSPPIDDBStatus.Name = "labelSPPIDDBStatus"; |
291 |
this.labelSPPIDDBStatus.Size = new System.Drawing.Size(187, 18);
|
|
297 |
this.labelSPPIDDBStatus.Size = new System.Drawing.Size(192, 18);
|
|
292 | 298 |
this.labelSPPIDDBStatus.Text = "SPPIDDBStatus"; |
293 | 299 |
this.labelSPPIDDBStatus.TextSize = new System.Drawing.Size(93, 14); |
294 | 300 |
// |
... | ... | |
297 | 303 |
this.layoutControlItem2.Control = this.btnSPPIDDB; |
298 | 304 |
this.layoutControlItem2.Location = new System.Drawing.Point(0, 0); |
299 | 305 |
this.layoutControlItem2.Name = "layoutControlItem2"; |
300 |
this.layoutControlItem2.Size = new System.Drawing.Size(238, 40);
|
|
306 |
this.layoutControlItem2.Size = new System.Drawing.Size(243, 42);
|
|
301 | 307 |
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); |
302 | 308 |
this.layoutControlItem2.TextVisible = false; |
303 | 309 |
// |
... | ... | |
305 | 311 |
// |
306 | 312 |
this.simpleLabelItem2.AllowHotTrack = false; |
307 | 313 |
this.simpleLabelItem2.AppearanceItemCaption.Options.UseForeColor = true; |
308 |
this.simpleLabelItem2.Location = new System.Drawing.Point(0, 58);
|
|
314 |
this.simpleLabelItem2.Location = new System.Drawing.Point(0, 60);
|
|
309 | 315 |
this.simpleLabelItem2.MaxSize = new System.Drawing.Size(51, 18); |
310 | 316 |
this.simpleLabelItem2.MinSize = new System.Drawing.Size(51, 18); |
311 | 317 |
this.simpleLabelItem2.Name = "simpleLabelItem2"; |
... | ... | |
319 | 325 |
// |
320 | 326 |
this.simpleLabelItem1.AllowHotTrack = false; |
321 | 327 |
this.simpleLabelItem1.AppearanceItemCaption.Options.UseForeColor = true; |
322 |
this.simpleLabelItem1.Location = new System.Drawing.Point(0, 40);
|
|
328 |
this.simpleLabelItem1.Location = new System.Drawing.Point(0, 42);
|
|
323 | 329 |
this.simpleLabelItem1.MaxSize = new System.Drawing.Size(78, 18); |
324 | 330 |
this.simpleLabelItem1.MinSize = new System.Drawing.Size(78, 18); |
325 | 331 |
this.simpleLabelItem1.Name = "simpleLabelItem1"; |
... | ... | |
337 | 343 |
this.layoutControlItem4, |
338 | 344 |
this.labelItemMappingStatus, |
339 | 345 |
this.simpleLabelItem5}); |
340 |
this.layoutControlGroupItemMapping.Location = new System.Drawing.Point(952, 252);
|
|
346 |
this.layoutControlGroupItemMapping.Location = new System.Drawing.Point(947, 266);
|
|
341 | 347 |
this.layoutControlGroupItemMapping.Name = "layoutControlGroupItemMapping"; |
342 |
this.layoutControlGroupItemMapping.Size = new System.Drawing.Size(262, 116);
|
|
348 |
this.layoutControlGroupItemMapping.Size = new System.Drawing.Size(267, 124);
|
|
343 | 349 |
this.layoutControlGroupItemMapping.Text = "Item Mapping"; |
344 | 350 |
// |
345 | 351 |
// layoutControlItem4 |
... | ... | |
347 | 353 |
this.layoutControlItem4.Control = this.btnItemMapping; |
348 | 354 |
this.layoutControlItem4.Location = new System.Drawing.Point(0, 0); |
349 | 355 |
this.layoutControlItem4.Name = "layoutControlItem4"; |
350 |
this.layoutControlItem4.Size = new System.Drawing.Size(238, 40);
|
|
356 |
this.layoutControlItem4.Size = new System.Drawing.Size(243, 42);
|
|
351 | 357 |
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); |
352 | 358 |
this.layoutControlItem4.TextVisible = false; |
353 | 359 |
// |
... | ... | |
355 | 361 |
// |
356 | 362 |
this.labelItemMappingStatus.AllowHotTrack = false; |
357 | 363 |
this.labelItemMappingStatus.AppearanceItemCaption.Options.UseForeColor = true; |
358 |
this.labelItemMappingStatus.Location = new System.Drawing.Point(51, 40);
|
|
364 |
this.labelItemMappingStatus.Location = new System.Drawing.Point(51, 42);
|
|
359 | 365 |
this.labelItemMappingStatus.Name = "labelItemMappingStatus"; |
360 |
this.labelItemMappingStatus.Size = new System.Drawing.Size(187, 18);
|
|
366 |
this.labelItemMappingStatus.Size = new System.Drawing.Size(192, 18);
|
|
361 | 367 |
this.labelItemMappingStatus.Text = "MappingStatus"; |
362 | 368 |
this.labelItemMappingStatus.TextSize = new System.Drawing.Size(93, 14); |
363 | 369 |
// |
... | ... | |
365 | 371 |
// |
366 | 372 |
this.simpleLabelItem5.AllowHotTrack = false; |
367 | 373 |
this.simpleLabelItem5.AppearanceItemCaption.Options.UseForeColor = true; |
368 |
this.simpleLabelItem5.Location = new System.Drawing.Point(0, 40);
|
|
374 |
this.simpleLabelItem5.Location = new System.Drawing.Point(0, 42);
|
|
369 | 375 |
this.simpleLabelItem5.MaxSize = new System.Drawing.Size(51, 18); |
370 | 376 |
this.simpleLabelItem5.MinSize = new System.Drawing.Size(51, 18); |
371 | 377 |
this.simpleLabelItem5.Name = "simpleLabelItem5"; |
... | ... | |
386 | 392 |
this.layoutControlItem6, |
387 | 393 |
this.layoutControlItem3, |
388 | 394 |
this.layoutControlItem8, |
389 |
this.emptySpaceItem3}); |
|
395 |
this.emptySpaceItem3, |
|
396 |
this.layoutControlItem9, |
|
397 |
this.emptySpaceItem4}); |
|
390 | 398 |
this.layoutControlGroupAutoConverter.Location = new System.Drawing.Point(0, 0); |
391 | 399 |
this.layoutControlGroupAutoConverter.Name = "layoutControlGroupAutoConverter"; |
392 |
this.layoutControlGroupAutoConverter.Size = new System.Drawing.Size(942, 545);
|
|
400 |
this.layoutControlGroupAutoConverter.Size = new System.Drawing.Size(942, 550);
|
|
393 | 401 |
this.layoutControlGroupAutoConverter.Text = "Auto Converter"; |
394 | 402 |
// |
395 | 403 |
// layoutControlItem1 |
396 | 404 |
// |
397 | 405 |
this.layoutControlItem1.Control = this.gridControlConverter; |
398 |
this.layoutControlItem1.Location = new System.Drawing.Point(0, 40);
|
|
406 |
this.layoutControlItem1.Location = new System.Drawing.Point(0, 42);
|
|
399 | 407 |
this.layoutControlItem1.Name = "layoutControlItem1"; |
400 |
this.layoutControlItem1.Size = new System.Drawing.Size(918, 447);
|
|
408 |
this.layoutControlItem1.Size = new System.Drawing.Size(918, 444);
|
|
401 | 409 |
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); |
402 | 410 |
this.layoutControlItem1.TextVisible = false; |
403 | 411 |
// |
... | ... | |
408 | 416 |
this.layoutControlItem5.MaxSize = new System.Drawing.Size(114, 40); |
409 | 417 |
this.layoutControlItem5.MinSize = new System.Drawing.Size(114, 40); |
410 | 418 |
this.layoutControlItem5.Name = "layoutControlItem5"; |
411 |
this.layoutControlItem5.Size = new System.Drawing.Size(114, 40);
|
|
419 |
this.layoutControlItem5.Size = new System.Drawing.Size(114, 42);
|
|
412 | 420 |
this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
413 | 421 |
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); |
414 | 422 |
this.layoutControlItem5.TextVisible = false; |
... | ... | |
416 | 424 |
// emptySpaceItem2 |
417 | 425 |
// |
418 | 426 |
this.emptySpaceItem2.AllowHotTrack = false; |
419 |
this.emptySpaceItem2.Location = new System.Drawing.Point(114, 0);
|
|
427 |
this.emptySpaceItem2.Location = new System.Drawing.Point(236, 0);
|
|
420 | 428 |
this.emptySpaceItem2.Name = "emptySpaceItem2"; |
421 |
this.emptySpaceItem2.Size = new System.Drawing.Size(721, 16);
|
|
429 |
this.emptySpaceItem2.Size = new System.Drawing.Size(599, 18);
|
|
422 | 430 |
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); |
423 | 431 |
// |
424 | 432 |
// layoutControlItem6 |
... | ... | |
428 | 436 |
this.layoutControlItem6.MaxSize = new System.Drawing.Size(83, 40); |
429 | 437 |
this.layoutControlItem6.MinSize = new System.Drawing.Size(83, 40); |
430 | 438 |
this.layoutControlItem6.Name = "layoutControlItem6"; |
431 |
this.layoutControlItem6.Size = new System.Drawing.Size(83, 40);
|
|
439 |
this.layoutControlItem6.Size = new System.Drawing.Size(83, 42);
|
|
432 | 440 |
this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
433 | 441 |
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); |
434 | 442 |
this.layoutControlItem6.TextVisible = false; |
... | ... | |
436 | 444 |
// layoutControlItem3 |
437 | 445 |
// |
438 | 446 |
this.layoutControlItem3.Control = this.buttonEditDefaultUnit; |
439 |
this.layoutControlItem3.Location = new System.Drawing.Point(392, 16);
|
|
447 |
this.layoutControlItem3.Location = new System.Drawing.Point(469, 18);
|
|
440 | 448 |
this.layoutControlItem3.Name = "layoutControlItem3"; |
441 |
this.layoutControlItem3.Size = new System.Drawing.Size(198, 24);
|
|
449 |
this.layoutControlItem3.Size = new System.Drawing.Size(165, 24);
|
|
442 | 450 |
this.layoutControlItem3.Text = "Default Unit"; |
443 | 451 |
this.layoutControlItem3.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
444 | 452 |
this.layoutControlItem3.TextSize = new System.Drawing.Size(65, 14); |
... | ... | |
447 | 455 |
// layoutControlItem8 |
448 | 456 |
// |
449 | 457 |
this.layoutControlItem8.Control = this.comboBoxEditDefaultTemplate; |
450 |
this.layoutControlItem8.Location = new System.Drawing.Point(590, 16);
|
|
458 |
this.layoutControlItem8.Location = new System.Drawing.Point(634, 18);
|
|
451 | 459 |
this.layoutControlItem8.Name = "layoutControlItem8"; |
452 |
this.layoutControlItem8.Size = new System.Drawing.Size(245, 24);
|
|
460 |
this.layoutControlItem8.Size = new System.Drawing.Size(201, 24);
|
|
453 | 461 |
this.layoutControlItem8.Text = "Default Template"; |
454 | 462 |
this.layoutControlItem8.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
455 | 463 |
this.layoutControlItem8.TextSize = new System.Drawing.Size(95, 14); |
... | ... | |
458 | 466 |
// emptySpaceItem3 |
459 | 467 |
// |
460 | 468 |
this.emptySpaceItem3.AllowHotTrack = false; |
461 |
this.emptySpaceItem3.Location = new System.Drawing.Point(114, 16);
|
|
469 |
this.emptySpaceItem3.Location = new System.Drawing.Point(236, 18);
|
|
462 | 470 |
this.emptySpaceItem3.Name = "emptySpaceItem3"; |
463 |
this.emptySpaceItem3.Size = new System.Drawing.Size(278, 24);
|
|
471 |
this.emptySpaceItem3.Size = new System.Drawing.Size(233, 24);
|
|
464 | 472 |
this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); |
465 | 473 |
// |
466 | 474 |
// emptySpaceItem1 |
467 | 475 |
// |
468 | 476 |
this.emptySpaceItem1.AllowHotTrack = false; |
469 |
this.emptySpaceItem1.Location = new System.Drawing.Point(952, 368);
|
|
477 |
this.emptySpaceItem1.Location = new System.Drawing.Point(947, 390);
|
|
470 | 478 |
this.emptySpaceItem1.Name = "emptySpaceItem1"; |
471 |
this.emptySpaceItem1.Size = new System.Drawing.Size(262, 177);
|
|
479 |
this.emptySpaceItem1.Size = new System.Drawing.Size(267, 160);
|
|
472 | 480 |
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); |
473 | 481 |
// |
474 | 482 |
// layoutControlGroupID2Project |
... | ... | |
481 | 489 |
this.layoutControlItem7, |
482 | 490 |
this.simpleLabelItem3, |
483 | 491 |
this.simpleLabelItem4}); |
484 |
this.layoutControlGroupID2Project.Location = new System.Drawing.Point(952, 0);
|
|
492 |
this.layoutControlGroupID2Project.Location = new System.Drawing.Point(947, 0);
|
|
485 | 493 |
this.layoutControlGroupID2Project.Name = "layoutControlGroupID2Project"; |
486 |
this.layoutControlGroupID2Project.Size = new System.Drawing.Size(262, 118);
|
|
494 |
this.layoutControlGroupID2Project.Size = new System.Drawing.Size(267, 124);
|
|
487 | 495 |
this.layoutControlGroupID2Project.Text = "ID2 Project"; |
488 | 496 |
// |
489 | 497 |
// labelID2ProjectName |
... | ... | |
492 | 500 |
this.labelID2ProjectName.AppearanceItemCaption.Options.UseForeColor = true; |
493 | 501 |
this.labelID2ProjectName.Location = new System.Drawing.Point(90, 24); |
494 | 502 |
this.labelID2ProjectName.Name = "labelID2ProjectName"; |
495 |
this.labelID2ProjectName.Size = new System.Drawing.Size(148, 18);
|
|
503 |
this.labelID2ProjectName.Size = new System.Drawing.Size(153, 18);
|
|
496 | 504 |
this.labelID2ProjectName.Text = "ID2ProjectName"; |
497 | 505 |
this.labelID2ProjectName.TextSize = new System.Drawing.Size(93, 14); |
498 | 506 |
// |
... | ... | |
502 | 510 |
this.labelID2ProjectStatus.AppearanceItemCaption.Options.UseForeColor = true; |
503 | 511 |
this.labelID2ProjectStatus.Location = new System.Drawing.Point(51, 42); |
504 | 512 |
this.labelID2ProjectStatus.Name = "labelID2ProjectStatus"; |
505 |
this.labelID2ProjectStatus.Size = new System.Drawing.Size(187, 18);
|
|
513 |
this.labelID2ProjectStatus.Size = new System.Drawing.Size(192, 18);
|
|
506 | 514 |
this.labelID2ProjectStatus.Text = "ID2ProjectStatus"; |
507 | 515 |
this.labelID2ProjectStatus.TextSize = new System.Drawing.Size(93, 14); |
508 | 516 |
// |
... | ... | |
511 | 519 |
this.layoutControlItem7.Control = this.btnID2Project; |
512 | 520 |
this.layoutControlItem7.Location = new System.Drawing.Point(0, 0); |
513 | 521 |
this.layoutControlItem7.Name = "layoutControlItem7"; |
514 |
this.layoutControlItem7.Size = new System.Drawing.Size(238, 24);
|
|
522 |
this.layoutControlItem7.Size = new System.Drawing.Size(243, 24);
|
|
515 | 523 |
this.layoutControlItem7.Text = "Path :"; |
516 | 524 |
this.layoutControlItem7.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
517 | 525 |
this.layoutControlItem7.TextSize = new System.Drawing.Size(33, 14); |
... | ... | |
550 | 558 |
this.splitterItem1.AllowHotTrack = true; |
551 | 559 |
this.splitterItem1.Location = new System.Drawing.Point(942, 0); |
552 | 560 |
this.splitterItem1.Name = "splitterItem1"; |
553 |
this.splitterItem1.Size = new System.Drawing.Size(10, 545);
|
|
561 |
this.splitterItem1.Size = new System.Drawing.Size(5, 550);
|
|
554 | 562 |
// |
555 | 563 |
// xtraFolderBrowserDialog |
556 | 564 |
// |
... | ... | |
563 | 571 |
this.xtraOpenFileDialog.Filter = "Xml Files(*.xml)|*.xml"; |
564 | 572 |
this.xtraOpenFileDialog.Multiselect = true; |
565 | 573 |
// |
574 |
// btnRefresh |
|
575 |
// |
|
576 |
this.btnRefresh.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("simpleButton1.ImageOptions.SvgImage"))); |
|
577 |
this.btnRefresh.Location = new System.Drawing.Point(155, 64); |
|
578 |
this.btnRefresh.Name = "btnRefresh"; |
|
579 |
this.btnRefresh.Size = new System.Drawing.Size(101, 38); |
|
580 |
this.btnRefresh.StyleController = this.layoutControl1; |
|
581 |
this.btnRefresh.TabIndex = 13; |
|
582 |
this.btnRefresh.Text = " Refresh "; |
|
583 |
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); |
|
584 |
// |
|
585 |
// layoutControlItem9 |
|
586 |
// |
|
587 |
this.layoutControlItem9.Control = this.btnRefresh; |
|
588 |
this.layoutControlItem9.Location = new System.Drawing.Point(131, 0); |
|
589 |
this.layoutControlItem9.MaxSize = new System.Drawing.Size(105, 42); |
|
590 |
this.layoutControlItem9.MinSize = new System.Drawing.Size(105, 42); |
|
591 |
this.layoutControlItem9.Name = "layoutControlItem9"; |
|
592 |
this.layoutControlItem9.Size = new System.Drawing.Size(105, 42); |
|
593 |
this.layoutControlItem9.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
594 |
this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0); |
|
595 |
this.layoutControlItem9.TextVisible = false; |
|
596 |
// |
|
597 |
// emptySpaceItem4 |
|
598 |
// |
|
599 |
this.emptySpaceItem4.AllowHotTrack = false; |
|
600 |
this.emptySpaceItem4.Location = new System.Drawing.Point(114, 0); |
|
601 |
this.emptySpaceItem4.Name = "emptySpaceItem4"; |
|
602 |
this.emptySpaceItem4.Size = new System.Drawing.Size(17, 42); |
|
603 |
this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0); |
|
604 |
// |
|
566 | 605 |
// ConverterForm |
567 | 606 |
// |
568 | 607 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
... | ... | |
610 | 649 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem3)).EndInit(); |
611 | 650 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem4)).EndInit(); |
612 | 651 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit(); |
652 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit(); |
|
653 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit(); |
|
613 | 654 |
this.ResumeLayout(false); |
614 | 655 |
this.PerformLayout(); |
615 | 656 |
|
... | ... | |
656 | 697 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; |
657 | 698 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; |
658 | 699 |
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem3; |
700 |
private DevExpress.XtraEditors.SimpleButton btnRefresh; |
|
701 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9; |
|
702 |
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4; |
|
659 | 703 |
} |
660 | 704 |
} |
DTI_PID/SPPIDConverter/ConverterForm.cs | ||
---|---|---|
637 | 637 |
buttonEditDefaultUnit.Text = unitForm.SelectedUnit; |
638 | 638 |
} |
639 | 639 |
} |
640 |
|
|
641 |
private void btnRefresh_Click(object sender, EventArgs e) |
|
642 |
{ |
|
643 |
List<BaseModel.Document> validationFailDocs = new List<BaseModel.Document>(); |
|
644 |
Project_Info _ProjectInfo = Project_Info.GetInstance(); |
|
645 |
SPPID_DBInfo _SPPIDInfo = SPPID_DBInfo.GetInstance(); |
|
646 |
if (!_ProjectInfo.Enable || !_SPPIDInfo.Enable) |
|
647 |
{ |
|
648 |
MessageBox.Show(Msg.PleaseSetProjectInfo, Msg.Warning, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
|
649 |
return; |
|
650 |
} |
|
651 |
|
|
652 |
foreach (DataRow row in _ConverterDT.Rows) |
|
653 |
{ |
|
654 |
string fileName = row["colDrawingFilePath"].ToString(); |
|
655 |
SPPID_Document document = new SPPID_Document(fileName); |
|
656 |
row["colDrawingNumber"] = document.DWGNAME; |
|
657 |
row["colDrawingName"] = document.DWGNAME; |
|
658 |
if (document.Enable) |
|
659 |
row["colStatus"] = "Ready"; |
|
660 |
else |
|
661 |
row["colStatus"] = "Error"; |
|
662 |
|
|
663 |
if (!_DicDocuments.ContainsKey(fileName)) |
|
664 |
_DicDocuments.Add(fileName, null); |
|
665 |
|
|
666 |
if (!document.Validation) |
|
667 |
validationFailDocs.Add(document); |
|
668 |
|
|
669 |
_DicDocuments[fileName] = document; |
|
670 |
} |
|
671 |
|
|
672 |
|
|
673 |
if (validationFailDocs.Count > 0) |
|
674 |
{ |
|
675 |
MessageForm messageForm = new MessageForm(validationFailDocs); |
|
676 |
messageForm.ShowDialog(); |
|
677 |
} |
|
678 |
} |
|
640 | 679 |
} |
641 | 680 |
} |
DTI_PID/SPPIDConverter/ConverterForm.resx | ||
---|---|---|
118 | 118 |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
119 | 119 |
</resheader> |
120 | 120 |
<assembly alias="DevExpress.Data.v18.2" name="DevExpress.Data.v18.2, Version=18.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> |
121 |
<data name="simpleButton1.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v18.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|
122 |
<value> |
|
123 |
AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjE4LjIsIFZlcnNpb249MTguMi43 |
|
124 |
LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl |
|
125 |
dkV4cHJlc3MuVXRpbHMuU3ZnLlN2Z0ltYWdlAQAAAAREYXRhBwICAAAACQMAAAAPAwAAAFYDAAAC77u/ |
|
126 |
PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz4NCjxzdmcgeD0iMHB4IiB5PSIwcHgi |
|
127 |
IHZpZXdCb3g9IjAgMCAzMiAzMiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv |
|
128 |
MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBlbmFibGUt |
|
129 |
YmFja2dyb3VuZD0ibmV3IDAgMCAzMiAzMiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgaWQ9IlJlZnJlc2gi |
|
130 |
Pg0KICA8ZyBvcGFjaXR5PSIwLjUiIGNsYXNzPSJzdDAiPg0KICAgIDxwYXRoIGQ9Ik0xMCwxMEg2VjZo |
|
131 |
NFYxMHogTTI0LDZIMTJ2NGgxMlY2eiBNMTAsMTJINnYxMmg0VjEyeiIgZmlsbD0iIzExNzdENyIgb3Bh |
|
132 |
Y2l0eT0iMC41IiBjbGFzcz0iQmx1ZSIgLz4NCiAgPC9nPg0KICA8cGF0aCBkPSJNMzAsMTZ2NmgtMC4x |
|
133 |
aC0ySDI0bDIuNS0yLjVDMjUuNiwxOC42LDI0LjQsMTgsMjMsMThjLTIuNCwwLTQuNCwxLjctNC45LDRo |
|
134 |
LTJjMC41LTMuNCwzLjQtNiw2LjktNiAgYzEuOSwwLDMuNywwLjgsNC45LDIuMUwzMCwxNnogTTIzLDI4 |
|
135 |
Yy0xLjQsMC0yLjYtMC42LTMuNS0xLjVMMjIsMjRoLTMuOWgtMkgxNnY2bDIuMS0yLjFjMS4zLDEuMywz |
|
136 |
LDIuMSw0LjksMi4xICBjMy41LDAsNi40LTIuNiw2LjktNmgtMkMyNy40LDI2LjMsMjUuNCwyOCwyMywy |
|
137 |
OHoiIGZpbGw9IiMwMzlDMjMiIGNsYXNzPSJHcmVlbiIgLz4NCiAgPHBhdGggZD0iTTI3LDJIM0MyLjQs |
|
138 |
MiwyLDIuNCwyLDN2MjRjMCwwLjYsMC40LDEsMSwxaDExdi0ySDRWNGgyMnYxMC41YzAuNywwLjMsMS40 |
|
139 |
LDAuNiwyLDFWM0MyOCwyLjQsMjcuNiwyLDI3LDJ6IiBmaWxsPSIjNzI3MjcyIiBjbGFzcz0iQmxhY2si |
|
140 |
IC8+DQo8L3N2Zz4L |
|
141 |
</value> |
|
142 |
</data> |
|
121 | 143 |
<data name="btnRun.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v18.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
122 | 144 |
<value> |
123 | 145 |
AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjE4LjIsIFZlcnNpb249MTguMi43 |
내보내기 Unified diff