개정판 8f24b438
dev issue #000 : dev
Change-Id: I9028fd2c54a0abd4dc23db92e63e20422b486fbd
DTI_PID/DTI_PID.sln | ||
---|---|---|
11 | 11 |
EndProject |
12 | 12 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ID2PSN", "ID2PSN\ID2PSN.csproj", "{202B8B3F-2070-4643-A43B-2C57B36B8D63}" |
13 | 13 |
EndProject |
14 |
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "DTI_PID", "DTI_PID\DTI_PID.pyproj", "{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}" |
|
15 |
EndProject |
|
14 | 16 |
Global |
15 | 17 |
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
16 | 18 |
Debug|Any CPU = Debug|Any CPU |
... | ... | |
69 | 71 |
{202B8B3F-2070-4643-A43B-2C57B36B8D63}.Release|x64.Build.0 = Release|Any CPU |
70 | 72 |
{202B8B3F-2070-4643-A43B-2C57B36B8D63}.Release|x86.ActiveCfg = Release|Any CPU |
71 | 73 |
{202B8B3F-2070-4643-A43B-2C57B36B8D63}.Release|x86.Build.0 = Release|Any CPU |
74 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|
75 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Debug|x64.ActiveCfg = Debug|Any CPU |
|
76 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Debug|x86.ActiveCfg = Debug|Any CPU |
|
77 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|
78 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Release|x64.ActiveCfg = Release|Any CPU |
|
79 |
{7C2E55A3-2B16-4B4F-867F-F16E2EF6F2F0}.Release|x86.ActiveCfg = Release|Any CPU |
|
72 | 80 |
EndGlobalSection |
73 | 81 |
GlobalSection(SolutionProperties) = preSolution |
74 | 82 |
HideSolutionNode = FALSE |
DTI_PID/ID2PSN/DB.cs | ||
---|---|---|
8 | 8 |
using System.Globalization; |
9 | 9 |
using System.Data.SQLite; |
10 | 10 |
using System.Data; |
11 |
using System.Text.RegularExpressions; |
|
11 | 12 |
|
12 | 13 |
namespace ID2PSN |
13 | 14 |
{ |
... | ... | |
15 | 16 |
{ |
16 | 17 |
const string PSN_TOPOLOGY_RULE = "T_PSN_TOPOLOGY_RULE"; |
17 | 18 |
const string PSN_HEADER_SETTING = "T_PSN_HEADER_SETTING"; |
18 |
const string PSN_PATHITEMS = "T_PSN_PATHITEMS";
|
|
19 |
const string PSN_SEQUENCEDATA = "T_PSN_SEQUENCEDATA";
|
|
20 |
const string PSN_PIPESYSTEMNETWORK = "T_PSN_PIPESYSTEMNETWORK";
|
|
21 |
const string PSN_EQUIPMENT = "T_PSN_EQUIPMENT";
|
|
22 |
const string PSN_NOZZLE = "T_PSN_NOZZLE";
|
|
23 |
const string PSN_FLUIDCODE = "T_PSN_FLUIDCODE";
|
|
24 |
const string PSN_PIPINGMATLCLASS = "T_PSN_PIPINGMATLCLASS";
|
|
19 |
const string PSN_PATHITEMS = "SPPIDPathItem";
|
|
20 |
const string PSN_SEQUENCEDATA = "SPPIDSequenceData";
|
|
21 |
const string PSN_PIPESYSTEMNETWORK = "SPPIDPipeSystemNetwork";
|
|
22 |
const string PSN_EQUIPMENT = "SPPIDEquipment";
|
|
23 |
const string PSN_NOZZLE = "SPPIDNozzle";
|
|
24 |
const string PSN_FLUIDCODE = "SPPIDFluidCode";
|
|
25 |
const string PSN_PIPINGMATLCLASS = "SPPIDPipingMatClass";
|
|
25 | 26 |
public static bool ConnTestAndCreateTable() |
26 | 27 |
{ |
27 | 28 |
bool result = false; |
... | ... | |
79 | 80 |
} |
80 | 81 |
if (dt.Select(string.Format("NAME = '{0}'", PSN_FLUIDCODE)).Length == 0) |
81 | 82 |
{ |
82 |
cmd.CommandText = string.Format("CREATE TABLE {0} (UID TEXT, Code TEXT, Description TEXT, Condition TEXT, GroundLevel TEXT)", PSN_FLUIDCODE); |
|
83 |
cmd.CommandText = string.Format("CREATE TABLE {0} (UID TEXT, Code TEXT, Description TEXT, Condition TEXT, Remarks TEXT, GroundLevel TEXT)", PSN_FLUIDCODE);
|
|
83 | 84 |
cmd.ExecuteNonQuery(); |
84 | 85 |
} |
85 | 86 |
if (dt.Select(string.Format("NAME = '{0}'", PSN_PIPINGMATLCLASS)).Length == 0) |
86 | 87 |
{ |
87 |
cmd.CommandText = string.Format("CREATE TABLE {0} (UID TEXT, Priority TEXT, Code TEXT, Description TEXT, Condition TEXT, GroundLevel TEXT)", PSN_PIPINGMATLCLASS); |
|
88 |
cmd.CommandText = string.Format("CREATE TABLE {0} (UID TEXT, Priority TEXT, Code TEXT, Description TEXT, Condition TEXT, Remarks TEXT, GroundLevel TEXT)", PSN_PIPINGMATLCLASS);
|
|
88 | 89 |
cmd.ExecuteNonQuery(); |
89 | 90 |
} |
90 | 91 |
} |
... | ... | |
490 | 491 |
|
491 | 492 |
foreach (DataRow row in dt.Rows) |
492 | 493 |
{ |
493 |
cmd.CommandText = string.Format("INSERT INTO {0} VALUES (@UID, @Code, @Description, @Condition, @GroundLevel)", PSN_FLUIDCODE); |
|
494 |
cmd.CommandText = string.Format("INSERT INTO {0} VALUES (@UID, @Code, @Description, @Condition, @Remarks, @GroundLevel)", PSN_FLUIDCODE);
|
|
494 | 495 |
cmd.Parameters.Clear(); |
495 | 496 |
cmd.Parameters.AddWithValue("@UID", row["UID"].ToString()); |
496 | 497 |
cmd.Parameters.AddWithValue("@Code", row["Code"].ToString()); |
497 | 498 |
cmd.Parameters.AddWithValue("@Description", row["Description"].ToString()); |
498 | 499 |
cmd.Parameters.AddWithValue("@Condition", row["Condition"].ToString()); |
500 |
cmd.Parameters.AddWithValue("@Remarks", row["Remarks"].ToString()); |
|
499 | 501 |
cmd.Parameters.AddWithValue("@GroundLevel", row["GroundLevel"].ToString()); |
500 | 502 |
cmd.ExecuteNonQuery(); |
501 | 503 |
} |
... | ... | |
550 | 552 |
|
551 | 553 |
foreach (DataRow row in dt.Rows) |
552 | 554 |
{ |
553 |
cmd.CommandText = string.Format("INSERT INTO {0} VALUES (@UID, @Priority, @Code, @Description, @Condition, @GroundLevel)", PSN_PIPINGMATLCLASS); |
|
555 |
cmd.CommandText = string.Format("INSERT INTO {0} VALUES (@UID, @Priority, @Code, @Description, @Condition, @Remarks, @GroundLevel)", PSN_PIPINGMATLCLASS);
|
|
554 | 556 |
cmd.Parameters.Clear(); |
555 | 557 |
cmd.Parameters.AddWithValue("@UID", row["UID"].ToString()); |
556 | 558 |
cmd.Parameters.AddWithValue("@Priority", row["Priority"].ToString()); |
557 | 559 |
cmd.Parameters.AddWithValue("@Code", row["Code"].ToString()); |
558 | 560 |
cmd.Parameters.AddWithValue("@Description", row["Description"].ToString()); |
559 | 561 |
cmd.Parameters.AddWithValue("@Condition", row["Condition"].ToString()); |
562 |
cmd.Parameters.AddWithValue("@Remarks", row["Remarks"].ToString()); |
|
560 | 563 |
cmd.Parameters.AddWithValue("@GroundLevel", row["GroundLevel"].ToString()); |
561 | 564 |
cmd.ExecuteNonQuery(); |
562 | 565 |
} |
... | ... | |
715 | 718 |
return result; |
716 | 719 |
} |
717 | 720 |
|
718 |
public static bool SavePipeSystemNetwork(DataTable dt) |
|
721 |
public static bool SavePipeSystemNetwork(DataTable dt, string revision)
|
|
719 | 722 |
{ |
720 | 723 |
ID2Info id2Info = ID2Info.GetInstance(); |
721 | 724 |
|
... | ... | |
732 | 735 |
{ |
733 | 736 |
using (SQLiteCommand cmd = connection.CreateCommand()) |
734 | 737 |
{ |
735 |
cmd.CommandText = string.Format("DELETE FROM {0}", PSN_PIPESYSTEMNETWORK);
|
|
738 |
cmd.CommandText = string.Format("DELETE FROM {0} WHERE PSNRevisionNumber = '{1}'", PSN_PIPESYSTEMNETWORK, revision);
|
|
736 | 739 |
cmd.ExecuteNonQuery(); |
737 | 740 |
|
738 | 741 |
foreach (DataRow row in dt.Rows) |
... | ... | |
903 | 906 |
|
904 | 907 |
return result; |
905 | 908 |
} |
909 |
|
|
910 |
public static int GetRevision() |
|
911 |
{ |
|
912 |
int result = 0; |
|
913 |
DataTable dt = new DataTable(); |
|
914 |
ID2Info id2Info = ID2Info.GetInstance(); |
|
915 |
using (SQLiteConnection connection = new SQLiteConnection(string.Format(CultureInfo.CurrentCulture, "Data Source = {0}", id2Info.DBFilePath), true)) |
|
916 |
{ |
|
917 |
try |
|
918 |
{ |
|
919 |
connection.Open(); |
|
920 |
using (SQLiteCommand cmd = connection.CreateCommand()) |
|
921 |
{ |
|
922 |
cmd.CommandText = string.Format("SELECT DISTINCT PSNRevisionNumber FROM {0};", PSN_PIPESYSTEMNETWORK); |
|
923 |
using (SQLiteDataReader dr = cmd.ExecuteReader()) |
|
924 |
dt.Load(dr); |
|
925 |
|
|
926 |
foreach (DataRow row in dt.Rows) |
|
927 |
{ |
|
928 |
int revisionNumber = Convert.ToInt32(row["PSNRevisionNumber"]); |
|
929 |
if (result < revisionNumber) |
|
930 |
result = revisionNumber; |
|
931 |
} |
|
932 |
|
|
933 |
result++; |
|
934 |
} |
|
935 |
connection.Close(); |
|
936 |
} |
|
937 |
catch (Exception ex) |
|
938 |
{ |
|
939 |
Log.Write(ex.Message + "\r\n" + ex.StackTrace); |
|
940 |
result = -1; |
|
941 |
} |
|
942 |
finally |
|
943 |
{ |
|
944 |
connection.Dispose(); |
|
945 |
} |
|
946 |
} |
|
947 |
|
|
948 |
return result; |
|
949 |
} |
|
950 |
|
|
951 |
public static double[] GetDrawingSize() |
|
952 |
{ |
|
953 |
double[] result = null; |
|
954 |
|
|
955 |
DataTable dt = new DataTable(); |
|
956 |
ID2Info id2Info = ID2Info.GetInstance(); |
|
957 |
using (SQLiteConnection connection = new SQLiteConnection(string.Format(CultureInfo.CurrentCulture, "Data Source = {0}", id2Info.DBFilePath), true)) |
|
958 |
{ |
|
959 |
try |
|
960 |
{ |
|
961 |
connection.Open(); |
|
962 |
using (SQLiteCommand cmd = connection.CreateCommand()) |
|
963 |
{ |
|
964 |
cmd.CommandText = "SELECT value FROM Configuration WHERE Section = 'Area' AND Key = 'Drawing';"; |
|
965 |
using (SQLiteDataReader dr = cmd.ExecuteReader()) |
|
966 |
dt.Load(dr); |
|
967 |
|
|
968 |
if (dt.Rows.Count == 1) |
|
969 |
{ |
|
970 |
string value = dt.Rows[0][0].ToString(); |
|
971 |
string[] split = value.Split(new char[] { ',' }); |
|
972 |
result = new double[] { |
|
973 |
Convert.ToDouble(Regex.Replace(split[0], @"[^0-9]", "")), |
|
974 |
Convert.ToDouble(Regex.Replace(split[1], @"[^0-9]", "")), |
|
975 |
Convert.ToDouble(Regex.Replace(split[2], @"[^0-9]", "")), |
|
976 |
Convert.ToDouble(Regex.Replace(split[3], @"[^0-9]", "")) |
|
977 |
}; |
|
978 |
result = new double[] { |
|
979 |
Math.Min(result[0], result[2]), |
|
980 |
Math.Min(result[1], result[3]), |
|
981 |
Math.Max(result[0], result[2]), |
|
982 |
Math.Max(result[1], result[3]) |
|
983 |
}; |
|
984 |
} |
|
985 |
} |
|
986 |
connection.Close(); |
|
987 |
} |
|
988 |
catch (Exception ex) |
|
989 |
{ |
|
990 |
Log.Write(ex.Message + "\r\n" + ex.StackTrace); |
|
991 |
} |
|
992 |
finally |
|
993 |
{ |
|
994 |
connection.Dispose(); |
|
995 |
} |
|
996 |
} |
|
997 |
|
|
998 |
return result; |
|
999 |
} |
|
906 | 1000 |
} |
907 | 1001 |
} |
DTI_PID/ID2PSN/Form/HeaderSettingForm.cs | ||
---|---|---|
84 | 84 |
btnRemove.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
85 | 85 |
btnRemove.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(removeSymbolButton_Click); |
86 | 86 |
btnRemove.Buttons[0].Kind = DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph; |
87 |
btnRemove.Buttons[0].ImageOptions.Image = ID2PSN.Properties.Resources.cancel_16x16; //((Image)Properties.Resources.ResourceManager.GetObject("ReviewImage", System.Globalization.CultureInfo.CurrentCulture));
|
|
87 |
btnRemove.Buttons[0].ImageOptions.Image = ID2PSN.Properties.Resources.cancel_16x16; |
|
88 | 88 |
|
89 | 89 |
gridControlSymbol.RepositoryItems.Add(btnRemove); |
90 | 90 |
|
DTI_PID/ID2PSN/Form/MainForm.Designer.cs | ||
---|---|---|
52 | 52 |
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup(); |
53 | 53 |
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
54 | 54 |
this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem(); |
55 |
this.btnSave = new DevExpress.XtraEditors.SimpleButton(); |
|
56 |
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
55 | 57 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
56 | 58 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
57 | 59 |
this.layoutControl1.SuspendLayout(); |
... | ... | |
70 | 72 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit(); |
71 | 73 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); |
72 | 74 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit(); |
75 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); |
|
73 | 76 |
this.SuspendLayout(); |
74 | 77 |
// |
75 | 78 |
// ribbonControl |
... | ... | |
84 | 87 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
85 | 88 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
86 | 89 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
87 |
this.ribbonControl.Size = new System.Drawing.Size(2015, 32);
|
|
90 |
this.ribbonControl.Size = new System.Drawing.Size(1119, 32);
|
|
88 | 91 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
89 | 92 |
// |
90 | 93 |
// defaultLookAndFeel |
... | ... | |
93 | 96 |
// |
94 | 97 |
// layoutControl1 |
95 | 98 |
// |
99 |
this.layoutControl1.Controls.Add(this.btnSave); |
|
96 | 100 |
this.layoutControl1.Controls.Add(this.btnPriority); |
97 | 101 |
this.layoutControl1.Controls.Add(this.btnRun); |
98 | 102 |
this.layoutControl1.Controls.Add(this.btnTopologySetting); |
... | ... | |
102 | 106 |
this.layoutControl1.Location = new System.Drawing.Point(0, 32); |
103 | 107 |
this.layoutControl1.Name = "layoutControl1"; |
104 | 108 |
this.layoutControl1.Root = this.Root; |
105 |
this.layoutControl1.Size = new System.Drawing.Size(2015, 900);
|
|
109 |
this.layoutControl1.Size = new System.Drawing.Size(1119, 537);
|
|
106 | 110 |
this.layoutControl1.TabIndex = 1; |
107 | 111 |
this.layoutControl1.Text = "layoutControl1"; |
108 | 112 |
// |
... | ... | |
110 | 114 |
// |
111 | 115 |
this.btnPriority.Location = new System.Drawing.Point(24, 95); |
112 | 116 |
this.btnPriority.Name = "btnPriority"; |
113 |
this.btnPriority.Size = new System.Drawing.Size(129, 22);
|
|
117 |
this.btnPriority.Size = new System.Drawing.Size(136, 22);
|
|
114 | 118 |
this.btnPriority.StyleController = this.layoutControl1; |
115 | 119 |
this.btnPriority.TabIndex = 8; |
116 | 120 |
this.btnPriority.Text = "Priority Setting"; |
... | ... | |
119 | 123 |
// btnRun |
120 | 124 |
// |
121 | 125 |
this.btnRun.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnRun.ImageOptions.Image"))); |
122 |
this.btnRun.Location = new System.Drawing.Point(24, 840);
|
|
126 |
this.btnRun.Location = new System.Drawing.Point(24, 437);
|
|
123 | 127 |
this.btnRun.Name = "btnRun"; |
124 |
this.btnRun.Size = new System.Drawing.Size(129, 36);
|
|
128 |
this.btnRun.Size = new System.Drawing.Size(136, 36);
|
|
125 | 129 |
this.btnRun.StyleController = this.layoutControl1; |
126 | 130 |
this.btnRun.TabIndex = 7; |
127 |
this.btnRun.Text = "Run PSN";
|
|
131 |
this.btnRun.Text = "Generate PSN";
|
|
128 | 132 |
this.btnRun.Click += new System.EventHandler(this.btnRun_Click); |
129 | 133 |
// |
130 | 134 |
// btnTopologySetting |
131 | 135 |
// |
132 | 136 |
this.btnTopologySetting.Location = new System.Drawing.Point(24, 43); |
133 | 137 |
this.btnTopologySetting.Name = "btnTopologySetting"; |
134 |
this.btnTopologySetting.Size = new System.Drawing.Size(129, 22);
|
|
138 |
this.btnTopologySetting.Size = new System.Drawing.Size(136, 22);
|
|
135 | 139 |
this.btnTopologySetting.StyleController = this.layoutControl1; |
136 | 140 |
this.btnTopologySetting.TabIndex = 6; |
137 | 141 |
this.btnTopologySetting.Text = "Topology Rule Setting"; |
... | ... | |
141 | 145 |
// |
142 | 146 |
this.btnHeaderSetting.Location = new System.Drawing.Point(24, 69); |
143 | 147 |
this.btnHeaderSetting.Name = "btnHeaderSetting"; |
144 |
this.btnHeaderSetting.Size = new System.Drawing.Size(129, 22);
|
|
148 |
this.btnHeaderSetting.Size = new System.Drawing.Size(136, 22);
|
|
145 | 149 |
this.btnHeaderSetting.StyleController = this.layoutControl1; |
146 | 150 |
this.btnHeaderSetting.TabIndex = 5; |
147 | 151 |
this.btnHeaderSetting.Text = "Header Setting"; |
... | ... | |
149 | 153 |
// |
150 | 154 |
// xtraTabControl1 |
151 | 155 |
// |
152 |
this.xtraTabControl1.Location = new System.Drawing.Point(193, 43);
|
|
156 |
this.xtraTabControl1.Location = new System.Drawing.Point(200, 43);
|
|
153 | 157 |
this.xtraTabControl1.Name = "xtraTabControl1"; |
154 | 158 |
this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; |
155 |
this.xtraTabControl1.Size = new System.Drawing.Size(1798, 833);
|
|
159 |
this.xtraTabControl1.Size = new System.Drawing.Size(895, 470);
|
|
156 | 160 |
this.xtraTabControl1.TabIndex = 4; |
157 | 161 |
this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { |
158 | 162 |
this.xtraTabPage1, |
... | ... | |
162 | 166 |
// |
163 | 167 |
this.xtraTabPage1.Controls.Add(this.gridControlPathItems); |
164 | 168 |
this.xtraTabPage1.Name = "xtraTabPage1"; |
165 |
this.xtraTabPage1.Size = new System.Drawing.Size(1796, 807);
|
|
169 |
this.xtraTabPage1.Size = new System.Drawing.Size(893, 444);
|
|
166 | 170 |
this.xtraTabPage1.Text = "Path Items"; |
167 | 171 |
// |
168 | 172 |
// gridControlPathItems |
... | ... | |
172 | 176 |
this.gridControlPathItems.MainView = this.gridViewPathItems; |
173 | 177 |
this.gridControlPathItems.MenuManager = this.ribbonControl; |
174 | 178 |
this.gridControlPathItems.Name = "gridControlPathItems"; |
175 |
this.gridControlPathItems.Size = new System.Drawing.Size(1796, 807);
|
|
179 |
this.gridControlPathItems.Size = new System.Drawing.Size(893, 444);
|
|
176 | 180 |
this.gridControlPathItems.TabIndex = 0; |
177 | 181 |
this.gridControlPathItems.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
178 | 182 |
this.gridViewPathItems}); |
... | ... | |
186 | 190 |
// xtraTabPage2 |
187 | 191 |
// |
188 | 192 |
this.xtraTabPage2.Name = "xtraTabPage2"; |
189 |
this.xtraTabPage2.Size = new System.Drawing.Size(594, 404);
|
|
193 |
this.xtraTabPage2.Size = new System.Drawing.Size(1796, 807);
|
|
190 | 194 |
this.xtraTabPage2.Text = "Sequence Data Items"; |
191 | 195 |
// |
192 | 196 |
// Root |
... | ... | |
198 | 202 |
this.layoutControlGroup2, |
199 | 203 |
this.splitterItem1}); |
200 | 204 |
this.Root.Name = "Root"; |
201 |
this.Root.Size = new System.Drawing.Size(2015, 900);
|
|
205 |
this.Root.Size = new System.Drawing.Size(1119, 537);
|
|
202 | 206 |
this.Root.TextVisible = false; |
203 | 207 |
// |
204 | 208 |
// layoutControlGroup1 |
... | ... | |
209 | 213 |
this.layoutControlItem2, |
210 | 214 |
this.layoutControlItem4, |
211 | 215 |
this.emptySpaceItem1, |
212 |
this.layoutControlItem5}); |
|
216 |
this.layoutControlItem5, |
|
217 |
this.layoutControlItem6}); |
|
213 | 218 |
this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); |
214 | 219 |
this.layoutControlGroup1.Name = "layoutControlGroup1"; |
215 |
this.layoutControlGroup1.Size = new System.Drawing.Size(157, 880);
|
|
220 |
this.layoutControlGroup1.Size = new System.Drawing.Size(164, 517);
|
|
216 | 221 |
this.layoutControlGroup1.Text = "PSN Setting"; |
217 | 222 |
// |
218 | 223 |
// layoutControlItem3 |
... | ... | |
220 | 225 |
this.layoutControlItem3.Control = this.btnTopologySetting; |
221 | 226 |
this.layoutControlItem3.Location = new System.Drawing.Point(0, 0); |
222 | 227 |
this.layoutControlItem3.Name = "layoutControlItem3"; |
223 |
this.layoutControlItem3.Size = new System.Drawing.Size(133, 26);
|
|
228 |
this.layoutControlItem3.Size = new System.Drawing.Size(140, 26);
|
|
224 | 229 |
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); |
225 | 230 |
this.layoutControlItem3.TextVisible = false; |
226 | 231 |
// |
... | ... | |
229 | 234 |
this.layoutControlItem2.Control = this.btnHeaderSetting; |
230 | 235 |
this.layoutControlItem2.Location = new System.Drawing.Point(0, 26); |
231 | 236 |
this.layoutControlItem2.Name = "layoutControlItem2"; |
232 |
this.layoutControlItem2.Size = new System.Drawing.Size(133, 26);
|
|
237 |
this.layoutControlItem2.Size = new System.Drawing.Size(140, 26);
|
|
233 | 238 |
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); |
234 | 239 |
this.layoutControlItem2.TextVisible = false; |
235 | 240 |
// |
236 | 241 |
// layoutControlItem4 |
237 | 242 |
// |
238 | 243 |
this.layoutControlItem4.Control = this.btnRun; |
239 |
this.layoutControlItem4.Location = new System.Drawing.Point(0, 797);
|
|
244 |
this.layoutControlItem4.Location = new System.Drawing.Point(0, 394);
|
|
240 | 245 |
this.layoutControlItem4.Name = "layoutControlItem4"; |
241 |
this.layoutControlItem4.Size = new System.Drawing.Size(133, 40);
|
|
246 |
this.layoutControlItem4.Size = new System.Drawing.Size(140, 40);
|
|
242 | 247 |
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); |
243 | 248 |
this.layoutControlItem4.TextVisible = false; |
244 | 249 |
// |
... | ... | |
247 | 252 |
this.emptySpaceItem1.AllowHotTrack = false; |
248 | 253 |
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 78); |
249 | 254 |
this.emptySpaceItem1.Name = "emptySpaceItem1"; |
250 |
this.emptySpaceItem1.Size = new System.Drawing.Size(133, 719);
|
|
255 |
this.emptySpaceItem1.Size = new System.Drawing.Size(140, 316);
|
|
251 | 256 |
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); |
252 | 257 |
// |
253 | 258 |
// layoutControlItem5 |
... | ... | |
255 | 260 |
this.layoutControlItem5.Control = this.btnPriority; |
256 | 261 |
this.layoutControlItem5.Location = new System.Drawing.Point(0, 52); |
257 | 262 |
this.layoutControlItem5.Name = "layoutControlItem5"; |
258 |
this.layoutControlItem5.Size = new System.Drawing.Size(133, 26);
|
|
263 |
this.layoutControlItem5.Size = new System.Drawing.Size(140, 26);
|
|
259 | 264 |
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); |
260 | 265 |
this.layoutControlItem5.TextVisible = false; |
261 | 266 |
// |
... | ... | |
264 | 269 |
this.layoutControlGroup2.GroupStyle = DevExpress.Utils.GroupStyle.Card; |
265 | 270 |
this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { |
266 | 271 |
this.layoutControlItem1}); |
267 |
this.layoutControlGroup2.Location = new System.Drawing.Point(169, 0);
|
|
272 |
this.layoutControlGroup2.Location = new System.Drawing.Point(176, 0);
|
|
268 | 273 |
this.layoutControlGroup2.Name = "layoutControlGroup2"; |
269 |
this.layoutControlGroup2.Size = new System.Drawing.Size(1826, 880);
|
|
274 |
this.layoutControlGroup2.Size = new System.Drawing.Size(923, 517);
|
|
270 | 275 |
this.layoutControlGroup2.Text = "PSN Data"; |
271 | 276 |
// |
272 | 277 |
// layoutControlItem1 |
... | ... | |
274 | 279 |
this.layoutControlItem1.Control = this.xtraTabControl1; |
275 | 280 |
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); |
276 | 281 |
this.layoutControlItem1.Name = "layoutControlItem1"; |
277 |
this.layoutControlItem1.Size = new System.Drawing.Size(1802, 837);
|
|
282 |
this.layoutControlItem1.Size = new System.Drawing.Size(899, 474);
|
|
278 | 283 |
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); |
279 | 284 |
this.layoutControlItem1.TextVisible = false; |
280 | 285 |
// |
281 | 286 |
// splitterItem1 |
282 | 287 |
// |
283 | 288 |
this.splitterItem1.AllowHotTrack = true; |
284 |
this.splitterItem1.Location = new System.Drawing.Point(157, 0);
|
|
289 |
this.splitterItem1.Location = new System.Drawing.Point(164, 0);
|
|
285 | 290 |
this.splitterItem1.Name = "splitterItem1"; |
286 |
this.splitterItem1.Size = new System.Drawing.Size(12, 880); |
|
291 |
this.splitterItem1.Size = new System.Drawing.Size(12, 517); |
|
292 |
// |
|
293 |
// btnSave |
|
294 |
// |
|
295 |
this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); |
|
296 |
this.btnSave.Location = new System.Drawing.Point(24, 477); |
|
297 |
this.btnSave.Name = "btnSave"; |
|
298 |
this.btnSave.Size = new System.Drawing.Size(136, 36); |
|
299 |
this.btnSave.StyleController = this.layoutControl1; |
|
300 |
this.btnSave.TabIndex = 9; |
|
301 |
this.btnSave.Text = "Save PSN Data"; |
|
302 |
this.btnSave.Click += new System.EventHandler(this.btnSave_Click); |
|
303 |
// |
|
304 |
// layoutControlItem6 |
|
305 |
// |
|
306 |
this.layoutControlItem6.Control = this.btnSave; |
|
307 |
this.layoutControlItem6.Location = new System.Drawing.Point(0, 434); |
|
308 |
this.layoutControlItem6.Name = "layoutControlItem6"; |
|
309 |
this.layoutControlItem6.Size = new System.Drawing.Size(140, 40); |
|
310 |
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); |
|
311 |
this.layoutControlItem6.TextVisible = false; |
|
287 | 312 |
// |
288 | 313 |
// MainForm |
289 | 314 |
// |
290 | 315 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
291 | 316 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
292 |
this.ClientSize = new System.Drawing.Size(2015, 932);
|
|
317 |
this.ClientSize = new System.Drawing.Size(1119, 569);
|
|
293 | 318 |
this.Controls.Add(this.layoutControl1); |
294 | 319 |
this.Controls.Add(this.ribbonControl); |
295 | 320 |
this.Name = "MainForm"; |
... | ... | |
314 | 339 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit(); |
315 | 340 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); |
316 | 341 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit(); |
342 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); |
|
317 | 343 |
this.ResumeLayout(false); |
318 | 344 |
this.PerformLayout(); |
319 | 345 |
|
... | ... | |
343 | 369 |
private DevExpress.XtraGrid.GridControl gridControlPathItems; |
344 | 370 |
private DevExpress.XtraGrid.Views.Grid.GridView gridViewPathItems; |
345 | 371 |
private DevExpress.XtraLayout.SplitterItem splitterItem1; |
372 |
private DevExpress.XtraEditors.SimpleButton btnSave; |
|
373 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; |
|
346 | 374 |
} |
347 | 375 |
} |
348 | 376 |
|
DTI_PID/ID2PSN/Form/MainForm.cs | ||
---|---|---|
8 | 8 |
using System.Text; |
9 | 9 |
using System.Threading.Tasks; |
10 | 10 |
using System.Windows.Forms; |
11 |
using System.Net.Sockets; |
|
12 |
using DevExpress.XtraEditors.Repository; |
|
11 | 13 |
|
12 | 14 |
namespace ID2PSN |
13 | 15 |
{ |
14 | 16 |
public partial class MainForm : DevExpress.XtraBars.Ribbon.RibbonForm |
15 | 17 |
{ |
16 | 18 |
ID2Info ID2Info = ID2Info.GetInstance(); |
17 |
|
|
19 |
PSN currentPSN = null; |
|
18 | 20 |
public MainForm() |
19 | 21 |
{ |
20 | 22 |
InitializeComponent(); |
... | ... | |
22 | 24 |
|
23 | 25 |
private void MainForm_Load(object sender, EventArgs e) |
24 | 26 |
{ |
25 |
|
|
27 |
RepositoryItemButtonEdit btnRemove = new RepositoryItemButtonEdit(); |
|
28 |
btnRemove.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
|
29 |
//btnRemove.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(removeTypeButton_Click); |
|
30 |
btnRemove.Buttons[0].Kind = DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph; |
|
26 | 31 |
} |
27 | 32 |
|
28 | 33 |
private void btnHeaderSetting_Click(object sender, EventArgs e) |
... | ... | |
33 | 38 |
|
34 | 39 |
private void btnTopologySetting_Click(object sender, EventArgs e) |
35 | 40 |
{ |
41 |
//HightlightID2("TF1-2G43-0002-모형"); |
|
42 |
//return; |
|
36 | 43 |
TopologyRuleForm form = new TopologyRuleForm(); |
37 | 44 |
form.ShowDialog(); |
38 | 45 |
} |
... | ... | |
48 | 55 |
documents.Add(new Document(filePath)); |
49 | 56 |
} |
50 | 57 |
|
51 |
|
|
52 |
PSN psn = new PSN(documents); |
|
58 |
int revisionNumber = DB.GetRevision(); |
|
59 |
if (revisionNumber < 0) |
|
60 |
return; |
|
61 |
|
|
62 |
PSN psn = new PSN(documents, revisionNumber); |
|
53 | 63 |
psn.SetPSNData(); |
64 |
currentPSN = psn; |
|
54 | 65 |
|
55 |
if (DB.SavePathItems(psn.PathItems) && |
|
56 |
DB.SaveSequenceData(psn.SequenceData) && |
|
57 |
DB.SavePipeSystemNetwork(psn.PipeSystemNetwork) && |
|
58 |
DB.SaveEquipment(psn.Equipment) && |
|
59 |
DB.SaveNozzle(psn.Nozzle)) |
|
60 |
gridControlPathItems.DataSource = psn.PathItems; |
|
61 |
else |
|
62 |
{ |
|
63 |
|
|
64 |
} |
|
66 |
gridControlPathItems.DataSource = psn.PathItems; |
|
65 | 67 |
} |
66 | 68 |
|
67 | 69 |
private void btnPriority_Click(object sender, EventArgs e) |
... | ... | |
69 | 71 |
PriorityForm form = new PriorityForm(); |
70 | 72 |
form.ShowDialog(); |
71 | 73 |
} |
74 |
|
|
75 |
private void HightlightID2(string drawingName) |
|
76 |
{ |
|
77 |
TcpClient tcpClient = new TcpClient("localhost", 2549); |
|
78 |
byte[] message = Encoding.UTF8.GetBytes(drawingName); |
|
79 |
|
|
80 |
NetworkStream networkStream = tcpClient.GetStream(); |
|
81 |
networkStream.Write(message, 0, message.Length); |
|
82 |
|
|
83 |
byte[] outbuf = new byte[1024]; |
|
84 |
int nbytes = networkStream.Read(outbuf, 0, outbuf.Length); |
|
85 |
string output = Encoding.UTF8.GetString(outbuf, 0, nbytes); |
|
86 |
|
|
87 |
// (5) 스트림과 TcpClient 객체 닫기 |
|
88 |
networkStream.Close(); |
|
89 |
tcpClient.Close(); |
|
90 |
MessageBox.Show(output); |
|
91 |
} |
|
92 |
|
|
93 |
private void btnSave_Click(object sender, EventArgs e) |
|
94 |
{ |
|
95 |
if (currentPSN == null) |
|
96 |
{ |
|
97 |
MessageBox.Show("There is no data to save.", "ID2 PSN", MessageBoxButtons.OK, MessageBoxIcon.Warning); |
|
98 |
return; |
|
99 |
} |
|
100 |
|
|
101 |
if (DB.SavePathItems(currentPSN.PathItems) && |
|
102 |
DB.SaveSequenceData(currentPSN.SequenceData) && |
|
103 |
DB.SavePipeSystemNetwork(currentPSN.PipeSystemNetwork, string.Format("{0:D3}", currentPSN.Revision)) && |
|
104 |
DB.SaveEquipment(currentPSN.Equipment) && |
|
105 |
DB.SaveNozzle(currentPSN.Nozzle)) |
|
106 |
MessageBox.Show("Save was successful", "ID2 PSN", MessageBoxButtons.OK, MessageBoxIcon.Information); |
|
107 |
else |
|
108 |
MessageBox.Show("Failed to save", "ID2 PSN", MessageBoxButtons.OK, MessageBoxIcon.Warning); |
|
109 |
} |
|
72 | 110 |
} |
73 | 111 |
} |
DTI_PID/ID2PSN/Form/MainForm.resx | ||
---|---|---|
121 | 121 |
<value>17, 17</value> |
122 | 122 |
</metadata> |
123 | 123 |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
124 |
<data name="btnSave.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
|
125 |
<value> |
|
126 |
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 |
|
167 |
rkJggg== |
|
168 |
</value> |
|
169 |
</data> |
|
124 | 170 |
<data name="btnRun.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
125 | 171 |
<value> |
126 | 172 |
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m |
DTI_PID/ID2PSN/Form/PriorityForm.Designer.cs | ||
---|---|---|
31 | 31 |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PriorityForm)); |
32 | 32 |
this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
33 | 33 |
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
34 |
this.btnDown = new DevExpress.XtraEditors.SimpleButton(); |
|
35 |
this.btnUp = new DevExpress.XtraEditors.SimpleButton(); |
|
36 |
this.btnClose = new DevExpress.XtraEditors.SimpleButton(); |
|
37 |
this.btnSave = new DevExpress.XtraEditors.SimpleButton(); |
|
34 | 38 |
this.xtraTabControlSetting = new DevExpress.XtraTab.XtraTabControl(); |
35 | 39 |
this.xtraTabPageFluidCode = new DevExpress.XtraTab.XtraTabPage(); |
36 | 40 |
this.gridControlFluidCode = new DevExpress.XtraGrid.GridControl(); |
37 | 41 |
this.gridViewFluidCode = new DevExpress.XtraGrid.Views.Grid.GridView(); |
38 | 42 |
this.xtraTabPagePipingMaterialsClass = new DevExpress.XtraTab.XtraTabPage(); |
39 |
this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
40 |
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
41 | 43 |
this.gridControlPipingMaterialsClass = new DevExpress.XtraGrid.GridControl(); |
42 | 44 |
this.gridViewPipingMaterialsClass = new DevExpress.XtraGrid.Views.Grid.GridView(); |
43 |
this.btnSave = new DevExpress.XtraEditors.SimpleButton(); |
|
45 |
this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
46 |
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
44 | 47 |
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); |
45 |
this.btnClose = new DevExpress.XtraEditors.SimpleButton(); |
|
46 | 48 |
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
47 | 49 |
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
48 | 50 |
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); |
49 |
this.btnUp = new DevExpress.XtraEditors.SimpleButton(); |
|
50 |
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
51 |
this.btnDown = new DevExpress.XtraEditors.SimpleButton(); |
|
52 | 51 |
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); |
53 | 52 |
this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); |
54 | 53 |
this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem(); |
54 |
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
55 | 55 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
56 | 56 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
57 | 57 |
this.layoutControl1.SuspendLayout(); |
... | ... | |
61 | 61 |
((System.ComponentModel.ISupportInitialize)(this.gridControlFluidCode)).BeginInit(); |
62 | 62 |
((System.ComponentModel.ISupportInitialize)(this.gridViewFluidCode)).BeginInit(); |
63 | 63 |
this.xtraTabPagePipingMaterialsClass.SuspendLayout(); |
64 |
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); |
|
65 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); |
|
66 | 64 |
((System.ComponentModel.ISupportInitialize)(this.gridControlPipingMaterialsClass)).BeginInit(); |
67 | 65 |
((System.ComponentModel.ISupportInitialize)(this.gridViewPipingMaterialsClass)).BeginInit(); |
66 |
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); |
|
67 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); |
|
68 | 68 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); |
69 | 69 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); |
70 | 70 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); |
71 | 71 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); |
72 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); |
|
73 | 72 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); |
74 | 73 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); |
75 | 74 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit(); |
75 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); |
|
76 | 76 |
this.SuspendLayout(); |
77 | 77 |
// |
78 | 78 |
// ribbonControl |
... | ... | |
106 | 106 |
this.layoutControl1.TabIndex = 1; |
107 | 107 |
this.layoutControl1.Text = "layoutControl1"; |
108 | 108 |
// |
109 |
// btnDown |
|
110 |
// |
|
111 |
this.btnDown.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnDown.ImageOptions.Image"))); |
|
112 |
this.btnDown.Location = new System.Drawing.Point(522, 12); |
|
113 |
this.btnDown.Name = "btnDown"; |
|
114 |
this.btnDown.Size = new System.Drawing.Size(22, 22); |
|
115 |
this.btnDown.StyleController = this.layoutControl1; |
|
116 |
this.btnDown.TabIndex = 8; |
|
117 |
this.btnDown.Click += new System.EventHandler(this.btnDown_Click); |
|
118 |
// |
|
119 |
// btnUp |
|
120 |
// |
|
121 |
this.btnUp.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnUp.ImageOptions.Image"))); |
|
122 |
this.btnUp.Location = new System.Drawing.Point(476, 12); |
|
123 |
this.btnUp.Name = "btnUp"; |
|
124 |
this.btnUp.Size = new System.Drawing.Size(22, 22); |
|
125 |
this.btnUp.StyleController = this.layoutControl1; |
|
126 |
this.btnUp.TabIndex = 7; |
|
127 |
this.btnUp.Click += new System.EventHandler(this.btnUp_Click); |
|
128 |
// |
|
129 |
// btnClose |
|
130 |
// |
|
131 |
this.btnClose.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.ImageOptions.Image"))); |
|
132 |
this.btnClose.Location = new System.Drawing.Point(474, 889); |
|
133 |
this.btnClose.Name = "btnClose"; |
|
134 |
this.btnClose.Size = new System.Drawing.Size(70, 36); |
|
135 |
this.btnClose.StyleController = this.layoutControl1; |
|
136 |
this.btnClose.TabIndex = 6; |
|
137 |
this.btnClose.Text = "Close"; |
|
138 |
this.btnClose.Click += new System.EventHandler(this.btnClose_Click); |
|
139 |
// |
|
140 |
// btnSave |
|
141 |
// |
|
142 |
this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); |
|
143 |
this.btnSave.Location = new System.Drawing.Point(382, 889); |
|
144 |
this.btnSave.Name = "btnSave"; |
|
145 |
this.btnSave.Size = new System.Drawing.Size(68, 36); |
|
146 |
this.btnSave.StyleController = this.layoutControl1; |
|
147 |
this.btnSave.TabIndex = 5; |
|
148 |
this.btnSave.Text = "Save"; |
|
149 |
this.btnSave.Click += new System.EventHandler(this.btnSave_Click); |
|
150 |
// |
|
109 | 151 |
// xtraTabControlSetting |
110 | 152 |
// |
111 | 153 |
this.xtraTabControlSetting.Location = new System.Drawing.Point(12, 38); |
... | ... | |
146 | 188 |
// |
147 | 189 |
this.xtraTabPagePipingMaterialsClass.Controls.Add(this.gridControlPipingMaterialsClass); |
148 | 190 |
this.xtraTabPagePipingMaterialsClass.Name = "xtraTabPagePipingMaterialsClass"; |
149 |
this.xtraTabPagePipingMaterialsClass.Size = new System.Drawing.Size(530, 887);
|
|
191 |
this.xtraTabPagePipingMaterialsClass.Size = new System.Drawing.Size(530, 821);
|
|
150 | 192 |
this.xtraTabPagePipingMaterialsClass.Text = "Piping Materials Class"; |
151 | 193 |
// |
194 |
// gridControlPipingMaterialsClass |
|
195 |
// |
|
196 |
this.gridControlPipingMaterialsClass.Dock = System.Windows.Forms.DockStyle.Fill; |
|
197 |
this.gridControlPipingMaterialsClass.Location = new System.Drawing.Point(0, 0); |
|
198 |
this.gridControlPipingMaterialsClass.MainView = this.gridViewPipingMaterialsClass; |
|
199 |
this.gridControlPipingMaterialsClass.MenuManager = this.ribbonControl; |
|
200 |
this.gridControlPipingMaterialsClass.Name = "gridControlPipingMaterialsClass"; |
|
201 |
this.gridControlPipingMaterialsClass.Size = new System.Drawing.Size(530, 821); |
|
202 |
this.gridControlPipingMaterialsClass.TabIndex = 0; |
|
203 |
this.gridControlPipingMaterialsClass.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
|
204 |
this.gridViewPipingMaterialsClass}); |
|
205 |
// |
|
206 |
// gridViewPipingMaterialsClass |
|
207 |
// |
|
208 |
this.gridViewPipingMaterialsClass.GridControl = this.gridControlPipingMaterialsClass; |
|
209 |
this.gridViewPipingMaterialsClass.Name = "gridViewPipingMaterialsClass"; |
|
210 |
this.gridViewPipingMaterialsClass.OptionsView.ShowGroupPanel = false; |
|
211 |
// |
|
152 | 212 |
// Root |
153 | 213 |
// |
154 | 214 |
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; |
... | ... | |
176 | 236 |
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); |
177 | 237 |
this.layoutControlItem1.TextVisible = false; |
178 | 238 |
// |
179 |
// gridControlPipingMaterialsClass |
|
180 |
// |
|
181 |
this.gridControlPipingMaterialsClass.Dock = System.Windows.Forms.DockStyle.Fill; |
|
182 |
this.gridControlPipingMaterialsClass.Location = new System.Drawing.Point(0, 0); |
|
183 |
this.gridControlPipingMaterialsClass.MainView = this.gridViewPipingMaterialsClass; |
|
184 |
this.gridControlPipingMaterialsClass.MenuManager = this.ribbonControl; |
|
185 |
this.gridControlPipingMaterialsClass.Name = "gridControlPipingMaterialsClass"; |
|
186 |
this.gridControlPipingMaterialsClass.Size = new System.Drawing.Size(530, 887); |
|
187 |
this.gridControlPipingMaterialsClass.TabIndex = 0; |
|
188 |
this.gridControlPipingMaterialsClass.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
|
189 |
this.gridViewPipingMaterialsClass}); |
|
190 |
// |
|
191 |
// gridViewPipingMaterialsClass |
|
192 |
// |
|
193 |
this.gridViewPipingMaterialsClass.GridControl = this.gridControlPipingMaterialsClass; |
|
194 |
this.gridViewPipingMaterialsClass.Name = "gridViewPipingMaterialsClass"; |
|
195 |
this.gridViewPipingMaterialsClass.OptionsView.ShowGroupPanel = false; |
|
196 |
// |
|
197 |
// btnSave |
|
198 |
// |
|
199 |
this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton1.ImageOptions.Image"))); |
|
200 |
this.btnSave.Location = new System.Drawing.Point(382, 889); |
|
201 |
this.btnSave.Name = "btnSave"; |
|
202 |
this.btnSave.Size = new System.Drawing.Size(68, 36); |
|
203 |
this.btnSave.StyleController = this.layoutControl1; |
|
204 |
this.btnSave.TabIndex = 5; |
|
205 |
this.btnSave.Text = "Save"; |
|
206 |
this.btnSave.Click += new System.EventHandler(this.btnSave_Click); |
|
207 |
// |
|
208 | 239 |
// layoutControlItem2 |
209 | 240 |
// |
210 | 241 |
this.layoutControlItem2.Control = this.btnSave; |
... | ... | |
217 | 248 |
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); |
218 | 249 |
this.layoutControlItem2.TextVisible = false; |
219 | 250 |
// |
220 |
// btnClose |
|
221 |
// |
|
222 |
this.btnClose.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton2.ImageOptions.Image"))); |
|
223 |
this.btnClose.Location = new System.Drawing.Point(474, 889); |
|
224 |
this.btnClose.Name = "btnClose"; |
|
225 |
this.btnClose.Size = new System.Drawing.Size(70, 36); |
|
226 |
this.btnClose.StyleController = this.layoutControl1; |
|
227 |
this.btnClose.TabIndex = 6; |
|
228 |
this.btnClose.Text = "Close"; |
|
229 |
this.btnClose.Click += new System.EventHandler(this.btnClose_Click); |
|
230 |
// |
|
231 | 251 |
// layoutControlItem3 |
232 | 252 |
// |
233 | 253 |
this.layoutControlItem3.Control = this.btnClose; |
... | ... | |
259 | 279 |
this.emptySpaceItem2.Size = new System.Drawing.Size(370, 40); |
260 | 280 |
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); |
261 | 281 |
// |
262 |
// btnUp |
|
263 |
// |
|
264 |
this.btnUp.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnUp.ImageOptions.Image"))); |
|
265 |
this.btnUp.Location = new System.Drawing.Point(476, 12); |
|
266 |
this.btnUp.Name = "btnUp"; |
|
267 |
this.btnUp.Size = new System.Drawing.Size(22, 22); |
|
268 |
this.btnUp.StyleController = this.layoutControl1; |
|
269 |
this.btnUp.TabIndex = 7; |
|
270 |
this.btnUp.Click += new System.EventHandler(this.btnUp_Click); |
|
271 |
// |
|
272 |
// layoutControlItem4 |
|
273 |
// |
|
274 |
this.layoutControlItem4.Control = this.btnUp; |
|
275 |
this.layoutControlItem4.Location = new System.Drawing.Point(464, 0); |
|
276 |
this.layoutControlItem4.MaxSize = new System.Drawing.Size(26, 26); |
|
277 |
this.layoutControlItem4.MinSize = new System.Drawing.Size(26, 26); |
|
278 |
this.layoutControlItem4.Name = "layoutControlItem4"; |
|
279 |
this.layoutControlItem4.Size = new System.Drawing.Size(26, 26); |
|
280 |
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
281 |
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); |
|
282 |
this.layoutControlItem4.TextVisible = false; |
|
283 |
// |
|
284 |
// btnDown |
|
285 |
// |
|
286 |
this.btnDown.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnDown.ImageOptions.Image"))); |
|
287 |
this.btnDown.Location = new System.Drawing.Point(522, 12); |
|
288 |
this.btnDown.Name = "btnDown"; |
|
289 |
this.btnDown.Size = new System.Drawing.Size(22, 22); |
|
290 |
this.btnDown.StyleController = this.layoutControl1; |
|
291 |
this.btnDown.TabIndex = 8; |
|
292 |
this.btnDown.Click += new System.EventHandler(this.btnDown_Click); |
|
293 |
// |
|
294 | 282 |
// layoutControlItem5 |
295 | 283 |
// |
296 | 284 |
this.layoutControlItem5.Control = this.btnDown; |
... | ... | |
322 | 310 |
this.emptySpaceItem4.Size = new System.Drawing.Size(464, 26); |
323 | 311 |
this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0); |
324 | 312 |
// |
313 |
// layoutControlItem4 |
|
314 |
// |
|
315 |
this.layoutControlItem4.Control = this.btnUp; |
|
316 |
this.layoutControlItem4.Location = new System.Drawing.Point(464, 0); |
|
317 |
this.layoutControlItem4.MaxSize = new System.Drawing.Size(26, 26); |
|
318 |
this.layoutControlItem4.MinSize = new System.Drawing.Size(26, 26); |
|
319 |
this.layoutControlItem4.Name = "layoutControlItem4"; |
|
320 |
this.layoutControlItem4.Size = new System.Drawing.Size(26, 26); |
|
321 |
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
322 |
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); |
|
323 |
this.layoutControlItem4.TextVisible = false; |
|
324 |
// |
|
325 | 325 |
// PriorityForm |
326 | 326 |
// |
327 | 327 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
... | ... | |
343 | 343 |
((System.ComponentModel.ISupportInitialize)(this.gridControlFluidCode)).EndInit(); |
344 | 344 |
((System.ComponentModel.ISupportInitialize)(this.gridViewFluidCode)).EndInit(); |
345 | 345 |
this.xtraTabPagePipingMaterialsClass.ResumeLayout(false); |
346 |
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); |
|
347 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); |
|
348 | 346 |
((System.ComponentModel.ISupportInitialize)(this.gridControlPipingMaterialsClass)).EndInit(); |
349 | 347 |
((System.ComponentModel.ISupportInitialize)(this.gridViewPipingMaterialsClass)).EndInit(); |
348 |
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); |
|
349 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); |
|
350 | 350 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); |
351 | 351 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); |
352 | 352 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); |
353 | 353 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); |
354 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); |
|
355 | 354 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); |
356 | 355 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); |
357 | 356 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit(); |
357 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); |
|
358 | 358 |
this.ResumeLayout(false); |
359 | 359 |
this.PerformLayout(); |
360 | 360 |
|
DTI_PID/ID2PSN/Form/PriorityForm.cs | ||
---|---|---|
50 | 50 |
fluidViewDT.Columns.Add("Code", typeof(string)); |
51 | 51 |
fluidViewDT.Columns.Add("Description", typeof(string)); |
52 | 52 |
fluidViewDT.Columns.Add("Condition", typeof(string)); |
53 |
fluidViewDT.Columns.Add("Remarks", typeof(string)); |
|
53 | 54 |
fluidViewDT.Columns.Add("GroundLevel", typeof(string)); |
54 | 55 |
|
55 | 56 |
foreach (DataRow row in PSNFluidDT.Rows) |
... | ... | |
64 | 65 |
newRow["Code"] = row["Code"]; |
65 | 66 |
newRow["Description"] = row["Description"]; |
66 | 67 |
newRow["Condition"] = row["Condition"]; |
68 |
newRow["Remarks"] = row["Remarks"]; |
|
67 | 69 |
newRow["GroundLevel"] = row["GroundLevel"]; |
68 | 70 |
fluidViewDT.Rows.Add(newRow); |
69 | 71 |
fluidCodeDT.Rows.Remove(oldRow); |
... | ... | |
97 | 99 |
pipingMaterialViewDT.Columns.Add("Code", typeof(string)); |
98 | 100 |
pipingMaterialViewDT.Columns.Add("Description", typeof(string)); |
99 | 101 |
pipingMaterialViewDT.Columns.Add("Condition", typeof(string)); |
102 |
pipingMaterialViewDT.Columns.Add("Remarks", typeof(string)); |
|
100 | 103 |
pipingMaterialViewDT.Columns.Add("GroundLevel", typeof(string)); |
101 | 104 |
|
102 | 105 |
foreach (DataRow row in PSNPMCDT.Rows) |
... | ... | |
112 | 115 |
newRow["Code"] = row["Code"]; |
113 | 116 |
newRow["Description"] = row["Description"]; |
114 | 117 |
newRow["Condition"] = row["Condition"]; |
118 |
newRow["Remarks"] = row["Remarks"]; |
|
115 | 119 |
newRow["GroundLevel"] = row["GroundLevel"]; |
116 | 120 |
|
117 | 121 |
pipingMaterialViewDT.Rows.Add(newRow); |
DTI_PID/ID2PSN/Object/Item.cs | ||
---|---|---|
40 | 40 |
public SubItemType SubItemType { get; set; } |
41 | 41 |
public List<Item> BranchItems { get; set; } |
42 | 42 |
public string TopologyData { get; set; } |
43 |
public string PSNPipeLineID { get; set; } |
|
43 | 44 |
public Topology Topology { get; set; } |
44 | 45 |
public LineNumber LineNumber { get; set; } |
45 | 46 |
} |
DTI_PID/ID2PSN/PSN.cs | ||
---|---|---|
20 | 20 |
|
21 | 21 |
public class PSN |
22 | 22 |
{ |
23 |
private double[] DrawingSize = null; |
|
24 |
private double DrawingWidth = double.NaN; |
|
25 |
private double DrawingHeight = double.NaN; |
|
26 |
public int Revision; |
|
23 | 27 |
public DataTable PathItems { get; set; } |
24 | 28 |
public DataTable SequenceData { get; set; } |
25 | 29 |
public DataTable PipeSystemNetwork { get; set; } |
... | ... | |
37 | 41 |
const string FluidPriorityType = "FLUIDCODE"; |
38 | 42 |
const string PipingMaterialsPriorityType = "PIPINGMATERIALSCLASS"; |
39 | 43 |
|
40 |
public PSN(List<Document> documents) |
|
44 |
public PSN(List<Document> documents, int Revision)
|
|
41 | 45 |
{ |
42 | 46 |
Documents = documents; |
43 | 47 |
foreach (Document document in Documents) |
44 | 48 |
groups.AddRange(document.Groups); |
45 | 49 |
opcDT = GetOPCInfo(); |
46 | 50 |
topologyRuleDT = GetTopologyRule(); |
51 |
this.Revision = Revision; |
|
52 |
DrawingSize = DB.GetDrawingSize(); |
|
53 |
DrawingWidth = DrawingSize[2] - DrawingSize[0]; |
|
54 |
DrawingHeight = DrawingSize[3] - DrawingSize[1]; |
|
47 | 55 |
} |
48 | 56 |
|
49 | 57 |
public void SetPSNData() |
... | ... | |
65 | 73 |
foreach (Item item in document.Items) |
66 | 74 |
{ |
67 | 75 |
item.TopologyData = string.Empty; |
76 |
item.PSNPipeLineID = string.Empty; |
|
68 | 77 |
LineNumber lineNumber = document.LineNumbers.Find(x => x.UID == item.Owner); |
69 | 78 |
if (lineNumber != null) |
70 | 79 |
{ |
... | ... | |
82 | 91 |
item.TopologyData += attribute.Value; |
83 | 92 |
} |
84 | 93 |
} |
94 |
|
|
95 |
Attribute insulAttr = item.LineNumber.Attributes.Find(x => x.Name == "InsulationPurpose"); |
|
96 |
if (!string.IsNullOrEmpty(insulAttr.Value)) |
|
97 |
item.PSNPipeLineID = item.TopologyData + "-" + insulAttr.Value; |
|
98 |
else |
|
99 |
item.PSNPipeLineID = item.TopologyData; |
|
85 | 100 |
} |
86 | 101 |
} |
87 | 102 |
} |
... | ... | |
131 | 146 |
PSNItem PSNItem = PSNItems.Find(x => x.UID == uid); |
132 | 147 |
if (PSNItem == null) |
133 | 148 |
{ |
134 |
PSNItem = new PSNItem(PSNItems.Count) { UID = uid }; |
|
149 |
PSNItem = new PSNItem(PSNItems.Count, Revision) { UID = uid };
|
|
135 | 150 |
PSNItems.Add(PSNItem); |
136 | 151 |
} |
137 | 152 |
PSNItem.Groups.Add(group); |
... | ... | |
452 | 467 |
{ |
453 | 468 |
Equipment equipment = equipments.Find(x => x.UID == relation.UID); |
454 | 469 |
equipment.Nozzles.Add(item); |
455 |
row["ITEMTAG"] = string.Format("N-{0}", equipment.Nozzles.Count);
|
|
470 |
row["ITEMTAG"] = string.Format("N-{0}", string.Format("{0:D3}", equipment.Nozzles.Count + 100));
|
|
456 | 471 |
row["Equipment_OID"] = equipment.UID; |
472 |
|
|
473 |
|
|
457 | 474 |
} |
458 |
row["XCOORDS"] = item.POINT[0].ToString();
|
|
459 |
row["YCOORDS"] = item.POINT[1].ToString();
|
|
475 |
row["XCOORDS"] = (item.POINT[0] / DrawingWidth).ToString();
|
|
476 |
row["YCOORDS"] = (item.POINT[1] / DrawingHeight).ToString();
|
|
460 | 477 |
Attribute fluidAttr = item.LineNumber.Attributes.Find(x => x.Name == "FluidCode"); |
461 | 478 |
row["FLUID"] = fluidAttr != null ? fluidAttr.Value : string.Empty; |
462 | 479 |
Attribute npdAttr = item.LineNumber.Attributes.Find(x => x.Name == "NominalDiameter"); |
... | ... | |
486 | 503 |
row["ITEMTAG"] = null; |
487 | 504 |
|
488 | 505 |
List<double> xList = equipment.POINT.Select(x => x[0]).ToList(); |
489 |
row["XCOORDS"] = xList.Sum() / (double)xList.Count;
|
|
506 |
row["XCOORDS"] = (xList.Sum() / (double)xList.Count) / DrawingWidth;
|
|
490 | 507 |
|
491 | 508 |
List<double> yList = equipment.POINT.Select(x => x[1]).ToList(); |
492 |
row["YCOORDS"] = yList.Sum() / (double)yList.Count;
|
|
509 |
row["YCOORDS"] = (yList.Sum() / (double)yList.Count) / DrawingHeight;
|
|
493 | 510 |
|
494 | 511 |
equipDT.Rows.Add(row); |
495 | 512 |
} |
... | ... | |
512 | 529 |
pathItemsDT.Columns.Add("NPD", typeof(string)); |
513 | 530 |
pathItemsDT.Columns.Add("PipeSystemNetwork_OID", typeof(string)); |
514 | 531 |
pathItemsDT.Columns.Add("PipeRun_OID", typeof(string)); |
515 |
pathItemsDT.Columns.Add("DrawingName", typeof(string));
|
|
532 |
pathItemsDT.Columns.Add(" ", typeof(string));
|
|
516 | 533 |
|
517 | 534 |
DataTable sequenceDataDT = new DataTable(); |
518 | 535 |
sequenceDataDT.Columns.Add("OID", typeof(string)); |
... | ... | |
587 | 604 |
DataRow newRow = pathItemsDT.NewRow(); |
588 | 605 |
newRow["OID"] = itemOID; |
589 | 606 |
|
590 |
newRow["SequenceData_OID"] = string.Format(item.Topology.FullName + "-{0}", index);
|
|
607 |
newRow["SequenceData_OID"] = string.Format(item.Topology.FullName + "_{0}", index);
|
|
591 | 608 |
|
592 | 609 |
newRow["TopologySet_OID"] = item.Topology.FullName; |
593 | 610 |
|
594 | 611 |
newRow["BranchTopologySet_OID"] = branchTopologyName; |
595 |
newRow["PipeLine_OID"] = null;
|
|
612 |
newRow["PipeLine_OID"] = item.PSNPipeLineID;
|
|
596 | 613 |
newRow["ITEMNAME"] = null; |
597 | 614 |
newRow["ITEMTAG"] = GetItemTag(); |
598 | 615 |
newRow["TYPE"] = item.Name; |
... | ... | |
610 | 627 |
|
611 | 628 |
newRow["PipeSystemNetwork_OID"] = PSNItem.PSN_OID(); |
612 | 629 |
newRow["PipeRun_OID"] = item.LineNumber != null ? item.LineNumber.Name : string.Empty; |
613 |
newRow["DrawingName"] = group.Document.DrawingName; |
|
614 | 630 |
|
615 | 631 |
pathItemsDT.Rows.Add(newRow); |
616 | 632 |
} |
... | ... | |
630 | 646 |
newRow["OID"] = PSNItem.PSN_OID(); |
631 | 647 |
newRow["Type"] = PSNItem.GetPSNType(); |
632 | 648 |
newRow["OrderNumber"] = psnOrder; |
633 |
newRow["Pipeline_OID"] = item.TopologyData;
|
|
649 |
newRow["Pipeline_OID"] = item.PSNPipeLineID;
|
|
634 | 650 |
newRow["FROM_DATA"] = PSNItem.GetFromData(); |
635 | 651 |
newRow["TO_DATA"] = PSNItem.GetToData(); |
636 | 652 |
newRow["TopologySet_OID_Key"] = item.Topology.FullName; |
637 |
newRow["PSNRevisionNumber"] = null;
|
|
653 |
newRow["PSNRevisionNumber"] = string.Format("{0:D3}", Revision);
|
|
638 | 654 |
newRow["PathOID"] = null; |
639 | 655 |
newRow["PBS"] = null; |
640 | 656 |
|
... | ... | |
659 | 675 |
{ |
660 | 676 |
string result = string.Empty; |
661 | 677 |
if (item.ItemType == ItemType.Line) |
662 |
result = item.LineNumber != null ? item.LineNumber.Name : string.Empty; ; |
|
678 |
result = item.LineNumber != null ? item.LineNumber.Name : string.Empty; |
|
679 |
else if (item.ItemType == ItemType.Symbol && item.SubItemType == SubItemType.Nozzle) |
|
680 |
result = Nozzle.Select(string.Format("OID = '{0}'", item.UID)).First()["ITEMTAG"].ToString(); |
|
681 |
|
|
663 | 682 |
|
664 | 683 |
return result; |
665 | 684 |
} |
... | ... | |
675 | 694 |
|
676 | 695 |
public class PSNItem |
677 | 696 |
{ |
678 |
public PSNItem(int count) |
|
697 |
public PSNItem(int count, int Revision)
|
|
679 | 698 |
{ |
680 | 699 |
Groups = new List<Group>(); |
681 | 700 |
Topologies = new List<Topology>(); |
682 | 701 |
|
683 | 702 |
Index = count + 1; |
684 |
Revision = 1;
|
|
703 |
this.Revision = Revision;
|
|
685 | 704 |
} |
705 |
private int Revision; |
|
686 | 706 |
public string UID { get; set; } |
687 | 707 |
public List<Group> Groups { get; set; } |
688 | 708 |
public List<Topology> Topologies { get; set; } |
689 | 709 |
public PSNType StartType { get; set; } |
690 | 710 |
public PSNType EndType { get; set; } |
691 | 711 |
public int Index { get; set; } |
692 |
public int Revision { get; set; } |
|
693 | 712 |
public string PSN_OID() |
694 | 713 |
{ |
695 |
return string.Format("R{0}-PSN-{1}", string.Format("{0:D4}", Revision), string.Format("{0:D4}", Index));
|
|
714 |
return string.Format("R{0}-PSN-{1}", string.Format("{0:D3}", Revision), string.Format("{0:D5}", Index));
|
|
696 | 715 |
} |
697 | 716 |
public string GetPSNType() |
698 | 717 |
{ |
DTI_PID/SPPIDConverter/ConverterDocking.Designer.cs | ||
---|---|---|
28 | 28 |
/// </summary> |
29 | 29 |
private void InitializeComponent() |
30 | 30 |
{ |
31 |
DevExpress.XtraSplashScreen.SplashScreenManager splashScreenManager = new DevExpress.XtraSplashScreen.SplashScreenManager(this, null, true, true, typeof(System.Windows.Forms.UserControl)); |
|
32 |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConverterDocking)); |
|
33 |
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
|
34 |
this.btnUploadDrawingAttribute = new DevExpress.XtraEditors.SimpleButton(); |
|
35 |
this.btnExportPDF = new DevExpress.XtraEditors.SimpleButton(); |
|
36 |
this.btnGetDrawingSize = new DevExpress.XtraEditors.SimpleButton(); |
|
37 |
this.textEditDrawingY = new DevExpress.XtraEditors.TextEdit(); |
|
38 |
this.textEditDrawingX = new DevExpress.XtraEditors.TextEdit(); |
|
39 |
this.btnSegmentBreak = new DevExpress.XtraEditors.SimpleButton(); |
|
40 |
this.btnPipeRunBreak = new DevExpress.XtraEditors.SimpleButton(); |
|
41 |
this.btnCreateStreamBreak = new DevExpress.XtraEditors.SimpleButton(); |
|
42 |
this.btnOPC = new DevExpress.XtraEditors.SimpleButton(); |
|
43 |
this.textEdit2 = new DevExpress.XtraEditors.TextEdit(); |
|
44 |
this.textEdit1 = new DevExpress.XtraEditors.TextEdit(); |
|
45 |
this.btnLinkOPCTest = new DevExpress.XtraEditors.SimpleButton(); |
|
46 |
this.toggleSwitchSnapGrid = new DevExpress.XtraEditors.ToggleSwitch(); |
|
47 |
this.labelControl2 = new DevExpress.XtraEditors.LabelControl(); |
|
48 |
this.toggleSwitchMoveSymbol = new DevExpress.XtraEditors.ToggleSwitch(); |
|
49 |
this.btnSpecBreakRelocation = new DevExpress.XtraEditors.SimpleButton(); |
|
50 |
this.spinEditSymmetry = new DevExpress.XtraEditors.SpinEdit(); |
|
51 |
this.btnSymmetry = new DevExpress.XtraEditors.SimpleButton(); |
|
52 |
this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); |
|
53 |
this.btnLinkOPC = new DevExpress.XtraEditors.SimpleButton(); |
|
54 |
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); |
|
55 |
this.btnSPPIDConverter = new DevExpress.XtraEditors.SimpleButton(); |
|
56 |
this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
57 |
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
58 |
this.layoutControlGroupConverter = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
59 |
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
60 |
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
61 |
this.layoutControlGroupUtils = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
62 |
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
63 |
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
64 |
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
65 |
this.simpleSeparator1 = new DevExpress.XtraLayout.SimpleSeparator(); |
|
66 |
this.layoutControlItem21 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
67 |
this.layoutControlItem22 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
68 |
this.layoutControlGroupShortCut = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
69 |
this.layoutControlGroup5 = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
70 |
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
71 |
this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
72 |
this.layoutControlGroup6 = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
73 |
this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
74 |
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
75 |
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
76 |
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
77 |
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
78 |
this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
79 |
this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
80 |
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
81 |
this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
82 |
this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
83 |
this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
84 |
this.layoutControlGroupDrawingSize = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
85 |
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
86 |
this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
87 |
this.layoutControlItem20 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
88 |
this.defaultLookAndFeel = new DevExpress.LookAndFeel.DefaultLookAndFeel(); |
|
89 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
|
90 |
this.layoutControl1.SuspendLayout(); |
|
91 |
((System.ComponentModel.ISupportInitialize)(this.textEditDrawingY.Properties)).BeginInit(); |
|
92 |
((System.ComponentModel.ISupportInitialize)(this.textEditDrawingX.Properties)).BeginInit(); |
|
93 |
((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).BeginInit(); |
|
94 |
((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit(); |
|
95 |
((System.ComponentModel.ISupportInitialize)(this.toggleSwitchSnapGrid.Properties)).BeginInit(); |
|
96 |
((System.ComponentModel.ISupportInitialize)(this.toggleSwitchMoveSymbol.Properties)).BeginInit(); |
|
97 |
((System.ComponentModel.ISupportInitialize)(this.spinEditSymmetry.Properties)).BeginInit(); |
|
98 |
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); |
|
99 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); |
|
100 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupConverter)).BeginInit(); |
|
101 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); |
|
102 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); |
|
103 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupUtils)).BeginInit(); |
|
104 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); |
|
105 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); |
|
106 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); |
|
107 |
((System.ComponentModel.ISupportInitialize)(this.simpleSeparator1)).BeginInit(); |
|
108 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).BeginInit(); |
|
109 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).BeginInit(); |
|
110 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupShortCut)).BeginInit(); |
|
111 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup5)).BeginInit(); |
|
112 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); |
|
113 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); |
|
114 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup6)).BeginInit(); |
|
115 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); |
|
116 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); |
|
117 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); |
|
118 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); |
|
119 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); |
|
120 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit(); |
|
121 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit(); |
|
122 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); |
|
123 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit(); |
|
124 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit(); |
|
125 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); |
|
126 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupDrawingSize)).BeginInit(); |
|
127 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); |
|
128 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit(); |
|
129 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).BeginInit(); |
|
130 |
this.SuspendLayout(); |
|
131 |
// |
|
132 |
// splashScreenManager |
|
133 |
// |
|
134 |
splashScreenManager.ClosingDelay = 500; |
|
135 |
// |
|
136 |
// layoutControl1 |
|
137 |
// |
|
138 |
this.layoutControl1.Controls.Add(this.btnUploadDrawingAttribute); |
|
139 |
this.layoutControl1.Controls.Add(this.btnExportPDF); |
|
140 |
this.layoutControl1.Controls.Add(this.btnGetDrawingSize); |
|
141 |
this.layoutControl1.Controls.Add(this.textEditDrawingY); |
|
142 |
this.layoutControl1.Controls.Add(this.textEditDrawingX); |
|
143 |
this.layoutControl1.Controls.Add(this.btnSegmentBreak); |
|
144 |
this.layoutControl1.Controls.Add(this.btnPipeRunBreak); |
|
145 |
this.layoutControl1.Controls.Add(this.btnCreateStreamBreak); |
|
146 |
this.layoutControl1.Controls.Add(this.btnOPC); |
|
147 |
this.layoutControl1.Controls.Add(this.textEdit2); |
|
148 |
this.layoutControl1.Controls.Add(this.textEdit1); |
|
149 |
this.layoutControl1.Controls.Add(this.btnLinkOPCTest); |
|
150 |
this.layoutControl1.Controls.Add(this.toggleSwitchSnapGrid); |
|
151 |
this.layoutControl1.Controls.Add(this.labelControl2); |
|
152 |
this.layoutControl1.Controls.Add(this.toggleSwitchMoveSymbol); |
|
153 |
this.layoutControl1.Controls.Add(this.btnSpecBreakRelocation); |
|
154 |
this.layoutControl1.Controls.Add(this.spinEditSymmetry); |
|
155 |
this.layoutControl1.Controls.Add(this.btnSymmetry); |
|
156 |
this.layoutControl1.Controls.Add(this.labelControl1); |
|
157 |
this.layoutControl1.Controls.Add(this.btnLinkOPC); |
|
158 |
this.layoutControl1.Controls.Add(this.simpleButton1); |
|
159 |
this.layoutControl1.Controls.Add(this.btnSPPIDConverter); |
|
160 |
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; |
|
161 |
this.layoutControl1.Location = new System.Drawing.Point(0, 0); |
|
162 |
this.layoutControl1.Name = "layoutControl1"; |
|
163 |
this.layoutControl1.Root = this.Root; |
|
164 |
this.layoutControl1.Size = new System.Drawing.Size(251, 931); |
|
165 |
this.layoutControl1.TabIndex = 0; |
|
166 |
this.layoutControl1.Text = "layoutControl1"; |
|
167 |
// |
|
168 |
// btnUploadDrawingAttribute |
|
169 |
// |
|
170 |
this.btnUploadDrawingAttribute.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnUploadDrawingAttribute.ImageOptions.Image"))); |
|
171 |
this.btnUploadDrawingAttribute.Location = new System.Drawing.Point(24, 428); |
|
172 |
this.btnUploadDrawingAttribute.Name = "btnUploadDrawingAttribute"; |
|
173 |
this.btnUploadDrawingAttribute.Size = new System.Drawing.Size(186, 36); |
|
174 |
this.btnUploadDrawingAttribute.StyleController = this.layoutControl1; |
|
175 |
this.btnUploadDrawingAttribute.TabIndex = 29; |
|
176 |
this.btnUploadDrawingAttribute.Text = "Upload Drawing Attribute"; |
|
177 |
this.btnUploadDrawingAttribute.Click += new System.EventHandler(this.btnUploadDrawingAttribute_Click); |
|
178 |
// |
|
179 |
// btnExportPDF |
|
180 |
// |
|
181 |
this.btnExportPDF.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnExportPDF.ImageOptions.SvgImage"))); |
|
182 |
this.btnExportPDF.Location = new System.Drawing.Point(24, 388); |
|
183 |
this.btnExportPDF.Name = "btnExportPDF"; |
|
184 |
this.btnExportPDF.Size = new System.Drawing.Size(186, 36); |
|
185 |
this.btnExportPDF.StyleController = this.layoutControl1; |
|
186 |
this.btnExportPDF.TabIndex = 28; |
|
187 |
this.btnExportPDF.Text = "Export PDF"; |
|
188 |
this.btnExportPDF.Click += new System.EventHandler(this.btnExportPDF_Click); |
|
189 |
// |
|
190 |
// btnGetDrawingSize |
|
191 |
// |
|
192 |
this.btnGetDrawingSize.Location = new System.Drawing.Point(24, 214); |
|
193 |
this.btnGetDrawingSize.Name = "btnGetDrawingSize"; |
|
194 |
this.btnGetDrawingSize.Size = new System.Drawing.Size(186, 22); |
|
195 |
this.btnGetDrawingSize.StyleController = this.layoutControl1; |
|
196 |
this.btnGetDrawingSize.TabIndex = 27; |
|
197 |
this.btnGetDrawingSize.Text = "Get Drawing Size"; |
|
198 |
this.btnGetDrawingSize.Click += new System.EventHandler(this.btnGetDrawingSize_Click); |
|
199 |
// |
|
200 |
// textEditDrawingY |
|
201 |
// |
|
202 |
this.textEditDrawingY.Location = new System.Drawing.Point(119, 190); |
|
203 |
this.textEditDrawingY.Name = "textEditDrawingY"; |
|
204 |
this.textEditDrawingY.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; |
|
205 |
this.textEditDrawingY.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; |
|
206 |
this.textEditDrawingY.Size = new System.Drawing.Size(91, 20); |
|
207 |
this.textEditDrawingY.StyleController = this.layoutControl1; |
|
208 |
this.textEditDrawingY.TabIndex = 26; |
|
209 |
// |
|
210 |
// textEditDrawingX |
|
211 |
// |
|
212 |
this.textEditDrawingX.Location = new System.Drawing.Point(119, 166); |
|
213 |
this.textEditDrawingX.Name = "textEditDrawingX"; |
|
214 |
this.textEditDrawingX.Properties.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; |
|
215 |
this.textEditDrawingX.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric; |
|
216 |
this.textEditDrawingX.Size = new System.Drawing.Size(91, 20); |
|
217 |
this.textEditDrawingX.StyleController = this.layoutControl1; |
|
218 |
this.textEditDrawingX.TabIndex = 25; |
|
219 |
// |
|
220 |
// btnSegmentBreak |
|
221 |
// |
|
222 |
this.btnSegmentBreak.Location = new System.Drawing.Point(24, 886); |
|
223 |
this.btnSegmentBreak.Name = "btnSegmentBreak"; |
|
224 |
this.btnSegmentBreak.Size = new System.Drawing.Size(186, 22); |
|
225 |
this.btnSegmentBreak.StyleController = this.layoutControl1; |
|
226 |
this.btnSegmentBreak.TabIndex = 24; |
|
227 |
this.btnSegmentBreak.Text = "Segment Break 자동 생성"; |
|
228 |
this.btnSegmentBreak.Click += new System.EventHandler(this.btnSegmentBreak_Click); |
|
229 |
// |
|
230 |
// btnPipeRunBreak |
|
231 |
// |
|
232 |
this.btnPipeRunBreak.Location = new System.Drawing.Point(24, 912); |
|
233 |
this.btnPipeRunBreak.Name = "btnPipeRunBreak"; |
|
234 |
this.btnPipeRunBreak.Size = new System.Drawing.Size(186, 22); |
|
235 |
this.btnPipeRunBreak.StyleController = this.layoutControl1; |
|
236 |
this.btnPipeRunBreak.TabIndex = 23; |
|
237 |
this.btnPipeRunBreak.Text = "Pipe Run Break 자동 생성"; |
|
238 |
this.btnPipeRunBreak.Click += new System.EventHandler(this.btnPipeRunBreak_Click); |
|
239 |
// |
|
240 |
// btnCreateStreamBreak |
|
241 |
// |
|
242 |
this.btnCreateStreamBreak.Location = new System.Drawing.Point(24, 812); |
|
243 |
this.btnCreateStreamBreak.Name = "btnCreateStreamBreak"; |
|
244 |
this.btnCreateStreamBreak.Size = new System.Drawing.Size(186, 22); |
|
245 |
this.btnCreateStreamBreak.StyleController = this.layoutControl1; |
|
246 |
this.btnCreateStreamBreak.TabIndex = 22; |
|
247 |
this.btnCreateStreamBreak.Text = "Stream No Break 자동 생성"; |
|
248 |
this.btnCreateStreamBreak.Click += new System.EventHandler(this.btnCreateStreamBreak_Click); |
|
249 |
// |
|
250 |
// btnOPC |
|
251 |
// |
|
252 |
this.btnOPC.Location = new System.Drawing.Point(24, 786); |
|
253 |
this.btnOPC.Name = "btnOPC"; |
|
254 |
this.btnOPC.Size = new System.Drawing.Size(186, 22); |
|
255 |
this.btnOPC.StyleController = this.layoutControl1; |
|
256 |
this.btnOPC.TabIndex = 21; |
|
257 |
this.btnOPC.Text = "Flow Direction 자동 부여 by OPC"; |
|
258 |
this.btnOPC.Click += new System.EventHandler(this.btnOPC_Click); |
|
259 |
// |
|
260 |
// textEdit2 |
|
261 |
// |
|
262 |
this.textEdit2.Location = new System.Drawing.Point(119, 862); |
|
263 |
this.textEdit2.Name = "textEdit2"; |
|
264 |
this.textEdit2.Size = new System.Drawing.Size(91, 20); |
|
265 |
this.textEdit2.StyleController = this.layoutControl1; |
|
266 |
this.textEdit2.TabIndex = 20; |
|
267 |
// |
|
268 |
// textEdit1 |
|
269 |
// |
|
270 |
this.textEdit1.EditValue = ""; |
|
271 |
this.textEdit1.Location = new System.Drawing.Point(119, 838); |
|
272 |
this.textEdit1.Name = "textEdit1"; |
|
273 |
this.textEdit1.Size = new System.Drawing.Size(91, 20); |
|
274 |
this.textEdit1.StyleController = this.layoutControl1; |
|
275 |
this.textEdit1.TabIndex = 19; |
|
276 |
// |
|
277 |
// btnLinkOPCTest |
|
278 |
// |
|
279 |
this.btnLinkOPCTest.Location = new System.Drawing.Point(24, 734); |
|
280 |
this.btnLinkOPCTest.Name = "btnLinkOPCTest"; |
|
281 |
this.btnLinkOPCTest.Size = new System.Drawing.Size(186, 22); |
|
282 |
this.btnLinkOPCTest.StyleController = this.layoutControl1; |
|
283 |
this.btnLinkOPCTest.TabIndex = 17; |
|
284 |
this.btnLinkOPCTest.Text = "Pair OPC Test"; |
|
285 |
this.btnLinkOPCTest.Click += new System.EventHandler(this.btnLinkOPCTest_Click); |
|
286 |
// |
|
287 |
// toggleSwitchSnapGrid |
|
288 |
// |
|
289 |
this.toggleSwitchSnapGrid.Location = new System.Drawing.Point(36, 560); |
|
290 |
this.toggleSwitchSnapGrid.Name = "toggleSwitchSnapGrid"; |
|
291 |
this.toggleSwitchSnapGrid.Properties.OffText = "Off"; |
|
292 |
this.toggleSwitchSnapGrid.Properties.OnText = "On"; |
|
293 |
this.toggleSwitchSnapGrid.Size = new System.Drawing.Size(162, 25); |
|
294 |
this.toggleSwitchSnapGrid.StyleController = this.layoutControl1; |
|
295 |
this.toggleSwitchSnapGrid.TabIndex = 16; |
|
296 |
this.toggleSwitchSnapGrid.Toggled += new System.EventHandler(this.toggleSwitchSnapGrid_Toggled); |
|
297 |
// |
|
298 |
// labelControl2 |
|
299 |
// |
|
300 |
this.labelControl2.Location = new System.Drawing.Point(36, 632); |
|
301 |
this.labelControl2.Name = "labelControl2"; |
|
302 |
this.labelControl2.Size = new System.Drawing.Size(106, 14); |
|
303 |
this.labelControl2.StyleController = this.layoutControl1; |
|
304 |
this.labelControl2.TabIndex = 15; |
|
305 |
this.labelControl2.Text = "Key : Shift + Arrow"; |
|
306 |
// |
|
307 |
// toggleSwitchMoveSymbol |
|
308 |
// |
|
309 |
this.toggleSwitchMoveSymbol.Location = new System.Drawing.Point(36, 650); |
|
310 |
this.toggleSwitchMoveSymbol.Name = "toggleSwitchMoveSymbol"; |
|
311 |
this.toggleSwitchMoveSymbol.Properties.OffText = "Off"; |
|
312 |
this.toggleSwitchMoveSymbol.Properties.OnText = "On"; |
|
313 |
this.toggleSwitchMoveSymbol.Size = new System.Drawing.Size(162, 25); |
|
314 |
this.toggleSwitchMoveSymbol.StyleController = this.layoutControl1; |
|
315 |
this.toggleSwitchMoveSymbol.TabIndex = 14; |
|
316 |
this.toggleSwitchMoveSymbol.Toggled += new System.EventHandler(this.toggleSwitchMoveSymbol_Toggled); |
|
317 |
// |
|
318 |
// btnSpecBreakRelocation |
|
319 |
// |
|
320 |
this.btnSpecBreakRelocation.ImageOptions.SvgImage = global::Converter.SPPID.Properties.Resources.newrecurringappointment; |
|
321 |
this.btnSpecBreakRelocation.Location = new System.Drawing.Point(24, 348); |
|
322 |
this.btnSpecBreakRelocation.Name = "btnSpecBreakRelocation"; |
|
323 |
this.btnSpecBreakRelocation.Size = new System.Drawing.Size(186, 36); |
|
324 |
this.btnSpecBreakRelocation.StyleController = this.layoutControl1; |
|
325 |
this.btnSpecBreakRelocation.TabIndex = 13; |
|
326 |
this.btnSpecBreakRelocation.Text = "SpecBreak Relocation"; |
|
327 |
this.btnSpecBreakRelocation.Click += new System.EventHandler(this.btnSpecBreakRelocation_Click); |
|
328 |
// |
|
329 |
// spinEditSymmetry |
|
330 |
// |
|
331 |
this.spinEditSymmetry.EditValue = new decimal(new int[] { |
|
31 |
DevExpress.XtraSplashScreen.SplashScreenManager splashScreenManager = new DevExpress.XtraSplashScreen.SplashScreenManager(this, null, true, true, typeof(System.Windows.Forms.UserControl)); |
|
32 |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConverterDocking)); |
|
33 |
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
|
34 |
this.btnUploadDrawingAttribute = new DevExpress.XtraEditors.SimpleButton(); |
|
35 |
this.btnExportPDF = new DevExpress.XtraEditors.SimpleButton(); |
내보내기 Unified diff