개정판 23eb98bf
dev issue #000 : edit ui
Change-Id: I219cca75d02a0ec46664fe39b89b3486038bb542
DTI_PID/BaseModel/App.config | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 |
<configuration> |
|
3 |
</configuration> |
DTI_PID/BaseModel/BaseModel.csproj | ||
---|---|---|
51 | 51 |
<Compile Include="Item\Symbol.cs" /> |
52 | 52 |
<Compile Include="Item\Text.cs" /> |
53 | 53 |
</ItemGroup> |
54 |
<ItemGroup> |
|
55 |
<None Include="App.config" /> |
|
56 |
</ItemGroup> |
|
54 | 57 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
55 | 58 |
</Project> |
DTI_PID/BaseModel/ProjectInfo.cs | ||
---|---|---|
3 | 3 |
using System.Linq; |
4 | 4 |
using System.Text; |
5 | 5 |
using System.Threading.Tasks; |
6 |
using System.IO; |
|
6 | 7 |
|
7 | 8 |
namespace Converter.BaseModel |
8 | 9 |
{ |
9 | 10 |
public class ProjectInfo |
10 | 11 |
{ |
12 |
private static ProjectInfo projectInfo; |
|
13 |
private string _Path; |
|
14 |
private string _Name; |
|
15 |
private bool _Enable; |
|
11 | 16 |
|
17 |
public string Path { |
|
18 |
get { return _Path; } |
|
19 |
set { |
|
20 |
_Path = value; |
|
21 |
_Name = System.IO.Path.GetFileName(value); |
|
22 |
} |
|
23 |
} |
|
24 |
|
|
25 |
public string Name |
|
26 |
{ |
|
27 |
get { return _Name; } |
|
28 |
} |
|
29 |
|
|
30 |
public bool Enable { get => _Enable; set => _Enable = value; } |
|
31 |
|
|
32 |
public static ProjectInfo GetInstance() |
|
33 |
{ |
|
34 |
if (projectInfo == null) |
|
35 |
projectInfo = new ProjectInfo(); |
|
36 |
|
|
37 |
return projectInfo; |
|
38 |
} |
|
12 | 39 |
} |
13 | 40 |
} |
DTI_PID/SPPIDConverter_AutoModeling/App.config | ||
---|---|---|
1 |
<?xml version="1.0" encoding="utf-8" ?>
|
|
1 |
<?xml version="1.0" encoding="utf-8"?> |
|
2 | 2 |
<configuration> |
3 | 3 |
</configuration> |
DTI_PID/SPPIDConverter_AutoModeling/ConverterForm.Designer.cs | ||
---|---|---|
37 | 37 |
this.btnSPPIDDB = new DevExpress.XtraEditors.SimpleButton(); |
38 | 38 |
this.gridControlConverter = new DevExpress.XtraGrid.GridControl(); |
39 | 39 |
this.gridViewConverter = new DevExpress.XtraGrid.Views.Grid.GridView(); |
40 |
this.buttonEdit1 = new DevExpress.XtraEditors.ButtonEdit();
|
|
40 |
this.btnID2Project = new DevExpress.XtraEditors.ButtonEdit();
|
|
41 | 41 |
this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
42 |
this.layoutControlGroupAutoConverter = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
43 |
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
44 |
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
45 |
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
46 |
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
47 | 42 |
this.layoutControlGroupSPPIDDB = new DevExpress.XtraLayout.LayoutControlGroup(); |
48 | 43 |
this.labelSPPIDPlantName = new DevExpress.XtraLayout.SimpleLabelItem(); |
49 | 44 |
this.labelSPPIDDBStatus = new DevExpress.XtraLayout.SimpleLabelItem(); |
50 | 45 |
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); |
51 |
this.simpleLabelItem1 = new DevExpress.XtraLayout.SimpleLabelItem(); |
|
52 | 46 |
this.simpleLabelItem2 = new DevExpress.XtraLayout.SimpleLabelItem(); |
47 |
this.simpleLabelItem1 = new DevExpress.XtraLayout.SimpleLabelItem(); |
|
53 | 48 |
this.layoutControlGroupID2Project = new DevExpress.XtraLayout.LayoutControlGroup(); |
54 | 49 |
this.labelID2ProjectName = new DevExpress.XtraLayout.SimpleLabelItem(); |
55 | 50 |
this.labelID2ProjectStatus = new DevExpress.XtraLayout.SimpleLabelItem(); |
56 |
this.btnID2Project = new DevExpress.XtraLayout.LayoutControlItem();
|
|
51 |
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
|
|
57 | 52 |
this.simpleLabelItem3 = new DevExpress.XtraLayout.SimpleLabelItem(); |
58 | 53 |
this.simpleLabelItem4 = new DevExpress.XtraLayout.SimpleLabelItem(); |
59 | 54 |
this.layoutControlGroupItemMapping = new DevExpress.XtraLayout.LayoutControlGroup(); |
60 | 55 |
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
61 | 56 |
this.labelItemMappingStatus = new DevExpress.XtraLayout.SimpleLabelItem(); |
62 | 57 |
this.simpleLabelItem5 = new DevExpress.XtraLayout.SimpleLabelItem(); |
58 |
this.layoutControlGroupAutoConverter = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
59 |
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
60 |
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
61 |
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
62 |
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
63 | 63 |
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
64 | 64 |
this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem(); |
65 |
this.xtraFolderBrowserDialog = new DevExpress.XtraEditors.XtraFolderBrowserDialog(); |
|
66 |
this.xtraOpenFileDialog = new DevExpress.XtraEditors.XtraOpenFileDialog(); |
|
65 | 67 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
66 | 68 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
67 | 69 |
this.layoutControl1.SuspendLayout(); |
68 | 70 |
((System.ComponentModel.ISupportInitialize)(this.gridControlConverter)).BeginInit(); |
69 | 71 |
((System.ComponentModel.ISupportInitialize)(this.gridViewConverter)).BeginInit(); |
70 |
((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).BeginInit();
|
|
72 |
((System.ComponentModel.ISupportInitialize)(this.btnID2Project.Properties)).BeginInit();
|
|
71 | 73 |
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); |
72 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupAutoConverter)).BeginInit(); |
|
73 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); |
|
74 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); |
|
75 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); |
|
76 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); |
|
77 | 74 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupSPPIDDB)).BeginInit(); |
78 | 75 |
((System.ComponentModel.ISupportInitialize)(this.labelSPPIDPlantName)).BeginInit(); |
79 | 76 |
((System.ComponentModel.ISupportInitialize)(this.labelSPPIDDBStatus)).BeginInit(); |
80 | 77 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); |
81 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem1)).BeginInit(); |
|
82 | 78 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem2)).BeginInit(); |
79 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem1)).BeginInit(); |
|
83 | 80 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupID2Project)).BeginInit(); |
84 | 81 |
((System.ComponentModel.ISupportInitialize)(this.labelID2ProjectName)).BeginInit(); |
85 | 82 |
((System.ComponentModel.ISupportInitialize)(this.labelID2ProjectStatus)).BeginInit(); |
86 |
((System.ComponentModel.ISupportInitialize)(this.btnID2Project)).BeginInit();
|
|
83 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
|
|
87 | 84 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem3)).BeginInit(); |
88 | 85 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem4)).BeginInit(); |
89 | 86 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupItemMapping)).BeginInit(); |
90 | 87 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); |
91 | 88 |
((System.ComponentModel.ISupportInitialize)(this.labelItemMappingStatus)).BeginInit(); |
92 | 89 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem5)).BeginInit(); |
90 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupAutoConverter)).BeginInit(); |
|
91 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); |
|
92 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); |
|
93 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); |
|
94 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); |
|
93 | 95 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); |
94 | 96 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit(); |
95 | 97 |
this.SuspendLayout(); |
... | ... | |
120 | 122 |
this.layoutControl1.Controls.Add(this.btnItemMapping); |
121 | 123 |
this.layoutControl1.Controls.Add(this.btnSPPIDDB); |
122 | 124 |
this.layoutControl1.Controls.Add(this.gridControlConverter); |
123 |
this.layoutControl1.Controls.Add(this.buttonEdit1);
|
|
125 |
this.layoutControl1.Controls.Add(this.btnID2Project);
|
|
124 | 126 |
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; |
125 | 127 |
this.layoutControl1.Location = new System.Drawing.Point(0, 32); |
126 | 128 |
this.layoutControl1.Name = "layoutControl1"; |
... | ... | |
133 | 135 |
// btnRun |
134 | 136 |
// |
135 | 137 |
this.btnRun.ImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.next; |
136 |
this.btnRun.Location = new System.Drawing.Point(874, 58);
|
|
138 |
this.btnRun.Location = new System.Drawing.Point(910, 58);
|
|
137 | 139 |
this.btnRun.Name = "btnRun"; |
138 | 140 |
this.btnRun.Size = new System.Drawing.Size(63, 36); |
139 | 141 |
this.btnRun.StyleController = this.layoutControl1; |
... | ... | |
155 | 157 |
// btnItemMapping |
156 | 158 |
// |
157 | 159 |
this.btnItemMapping.ImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.properties; |
158 |
this.btnItemMapping.Location = new System.Drawing.Point(975, 310);
|
|
160 |
this.btnItemMapping.Location = new System.Drawing.Point(1011, 310);
|
|
159 | 161 |
this.btnItemMapping.Name = "btnItemMapping"; |
160 |
this.btnItemMapping.Size = new System.Drawing.Size(267, 36);
|
|
162 |
this.btnItemMapping.Size = new System.Drawing.Size(231, 36);
|
|
161 | 163 |
this.btnItemMapping.StyleController = this.layoutControl1; |
162 | 164 |
this.btnItemMapping.TabIndex = 7; |
163 | 165 |
this.btnItemMapping.Text = "Setting"; |
... | ... | |
165 | 167 |
// btnSPPIDDB |
166 | 168 |
// |
167 | 169 |
this.btnSPPIDDB.ImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.properties; |
168 |
this.btnSPPIDDB.Location = new System.Drawing.Point(975, 58);
|
|
170 |
this.btnSPPIDDB.Location = new System.Drawing.Point(1011, 58);
|
|
169 | 171 |
this.btnSPPIDDB.Name = "btnSPPIDDB"; |
170 |
this.btnSPPIDDB.Size = new System.Drawing.Size(267, 36);
|
|
172 |
this.btnSPPIDDB.Size = new System.Drawing.Size(231, 36);
|
|
171 | 173 |
this.btnSPPIDDB.StyleController = this.layoutControl1; |
172 | 174 |
this.btnSPPIDDB.TabIndex = 5; |
173 | 175 |
this.btnSPPIDDB.Text = "Setting"; |
176 |
this.btnSPPIDDB.Click += new System.EventHandler(this.btnSPPIDDB_Click); |
|
174 | 177 |
// |
175 | 178 |
// gridControlConverter |
176 | 179 |
// |
... | ... | |
178 | 181 |
this.gridControlConverter.MainView = this.gridViewConverter; |
179 | 182 |
this.gridControlConverter.MenuManager = this.ribbonControl; |
180 | 183 |
this.gridControlConverter.Name = "gridControlConverter"; |
181 |
this.gridControlConverter.Size = new System.Drawing.Size(913, 349);
|
|
184 |
this.gridControlConverter.Size = new System.Drawing.Size(949, 349);
|
|
182 | 185 |
this.gridControlConverter.TabIndex = 4; |
183 | 186 |
this.gridControlConverter.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
184 | 187 |
this.gridViewConverter}); |
... | ... | |
189 | 192 |
this.gridViewConverter.Name = "gridViewConverter"; |
190 | 193 |
this.gridViewConverter.OptionsView.ShowGroupPanel = false; |
191 | 194 |
// |
192 |
// buttonEdit1
|
|
195 |
// btnID2Project
|
|
193 | 196 |
// |
194 |
this.buttonEdit1.Location = new System.Drawing.Point(1013, 192);
|
|
195 |
this.buttonEdit1.MenuManager = this.ribbonControl;
|
|
196 |
this.buttonEdit1.Name = "buttonEdit1";
|
|
197 |
this.buttonEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
|
197 |
this.btnID2Project.Location = new System.Drawing.Point(1049, 192);
|
|
198 |
this.btnID2Project.MenuManager = this.ribbonControl;
|
|
199 |
this.btnID2Project.Name = "btnID2Project";
|
|
200 |
this.btnID2Project.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
|
198 | 201 |
new DevExpress.XtraEditors.Controls.EditorButton()}); |
199 |
this.buttonEdit1.Size = new System.Drawing.Size(229, 20); |
|
200 |
this.buttonEdit1.StyleController = this.layoutControl1; |
|
201 |
this.buttonEdit1.TabIndex = 10; |
|
202 |
this.btnID2Project.Properties.ReadOnly = true; |
|
203 |
this.btnID2Project.Size = new System.Drawing.Size(193, 20); |
|
204 |
this.btnID2Project.StyleController = this.layoutControl1; |
|
205 |
this.btnID2Project.TabIndex = 10; |
|
206 |
this.btnID2Project.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.btnID2Project_ButtonClick); |
|
202 | 207 |
// |
203 | 208 |
// Root |
204 | 209 |
// |
205 | 210 |
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; |
206 | 211 |
this.Root.GroupBordersVisible = false; |
207 | 212 |
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { |
208 |
this.layoutControlGroupAutoConverter, |
|
209 | 213 |
this.layoutControlGroupSPPIDDB, |
210 | 214 |
this.layoutControlGroupID2Project, |
211 | 215 |
this.layoutControlGroupItemMapping, |
216 |
this.layoutControlGroupAutoConverter, |
|
212 | 217 |
this.emptySpaceItem1, |
213 | 218 |
this.splitterItem1}); |
214 | 219 |
this.Root.Name = "Root"; |
215 | 220 |
this.Root.Size = new System.Drawing.Size(1266, 471); |
216 | 221 |
this.Root.TextVisible = false; |
217 | 222 |
// |
218 |
// layoutControlGroupAutoConverter |
|
219 |
// |
|
220 |
this.layoutControlGroupAutoConverter.CaptionImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.convertto; |
|
221 |
this.layoutControlGroupAutoConverter.GroupStyle = DevExpress.Utils.GroupStyle.Card; |
|
222 |
this.layoutControlGroupAutoConverter.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { |
|
223 |
this.layoutControlItem1, |
|
224 |
this.layoutControlItem5, |
|
225 |
this.emptySpaceItem2, |
|
226 |
this.layoutControlItem6}); |
|
227 |
this.layoutControlGroupAutoConverter.Location = new System.Drawing.Point(0, 0); |
|
228 |
this.layoutControlGroupAutoConverter.Name = "layoutControlGroupAutoConverter"; |
|
229 |
this.layoutControlGroupAutoConverter.Size = new System.Drawing.Size(941, 451); |
|
230 |
this.layoutControlGroupAutoConverter.Text = "Auto Converter"; |
|
231 |
// |
|
232 |
// layoutControlItem1 |
|
233 |
// |
|
234 |
this.layoutControlItem1.Control = this.gridControlConverter; |
|
235 |
this.layoutControlItem1.Location = new System.Drawing.Point(0, 40); |
|
236 |
this.layoutControlItem1.Name = "layoutControlItem1"; |
|
237 |
this.layoutControlItem1.Size = new System.Drawing.Size(917, 353); |
|
238 |
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); |
|
239 |
this.layoutControlItem1.TextVisible = false; |
|
240 |
// |
|
241 |
// layoutControlItem5 |
|
242 |
// |
|
243 |
this.layoutControlItem5.Control = this.btnLoadFile; |
|
244 |
this.layoutControlItem5.Location = new System.Drawing.Point(0, 0); |
|
245 |
this.layoutControlItem5.MaxSize = new System.Drawing.Size(98, 40); |
|
246 |
this.layoutControlItem5.MinSize = new System.Drawing.Size(98, 40); |
|
247 |
this.layoutControlItem5.Name = "layoutControlItem5"; |
|
248 |
this.layoutControlItem5.Size = new System.Drawing.Size(98, 40); |
|
249 |
this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
250 |
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); |
|
251 |
this.layoutControlItem5.TextVisible = false; |
|
252 |
// |
|
253 |
// emptySpaceItem2 |
|
254 |
// |
|
255 |
this.emptySpaceItem2.AllowHotTrack = false; |
|
256 |
this.emptySpaceItem2.Location = new System.Drawing.Point(98, 0); |
|
257 |
this.emptySpaceItem2.Name = "emptySpaceItem2"; |
|
258 |
this.emptySpaceItem2.Size = new System.Drawing.Size(752, 40); |
|
259 |
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); |
|
260 |
// |
|
261 |
// layoutControlItem6 |
|
262 |
// |
|
263 |
this.layoutControlItem6.Control = this.btnRun; |
|
264 |
this.layoutControlItem6.Location = new System.Drawing.Point(850, 0); |
|
265 |
this.layoutControlItem6.MaxSize = new System.Drawing.Size(67, 40); |
|
266 |
this.layoutControlItem6.MinSize = new System.Drawing.Size(67, 40); |
|
267 |
this.layoutControlItem6.Name = "layoutControlItem6"; |
|
268 |
this.layoutControlItem6.Size = new System.Drawing.Size(67, 40); |
|
269 |
this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
270 |
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); |
|
271 |
this.layoutControlItem6.TextVisible = false; |
|
272 |
// |
|
273 | 223 |
// layoutControlGroupSPPIDDB |
274 | 224 |
// |
275 | 225 |
this.layoutControlGroupSPPIDDB.CaptionImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.actions_database; |
... | ... | |
278 | 228 |
this.labelSPPIDPlantName, |
279 | 229 |
this.labelSPPIDDBStatus, |
280 | 230 |
this.layoutControlItem2, |
281 |
this.simpleLabelItem1,
|
|
282 |
this.simpleLabelItem2});
|
|
283 |
this.layoutControlGroupSPPIDDB.Location = new System.Drawing.Point(951, 0);
|
|
231 |
this.simpleLabelItem2,
|
|
232 |
this.simpleLabelItem1});
|
|
233 |
this.layoutControlGroupSPPIDDB.Location = new System.Drawing.Point(987, 0);
|
|
284 | 234 |
this.layoutControlGroupSPPIDDB.Name = "layoutControlGroupSPPIDDB"; |
285 |
this.layoutControlGroupSPPIDDB.Size = new System.Drawing.Size(295, 134);
|
|
235 |
this.layoutControlGroupSPPIDDB.Size = new System.Drawing.Size(259, 134);
|
|
286 | 236 |
this.layoutControlGroupSPPIDDB.Text = "SPPID DB"; |
287 | 237 |
// |
288 | 238 |
// labelSPPIDPlantName |
289 | 239 |
// |
290 | 240 |
this.labelSPPIDPlantName.AllowHotTrack = false; |
241 |
this.labelSPPIDPlantName.AppearanceItemCaption.Options.UseForeColor = true; |
|
291 | 242 |
this.labelSPPIDPlantName.Location = new System.Drawing.Point(78, 40); |
292 | 243 |
this.labelSPPIDPlantName.Name = "labelSPPIDPlantName"; |
293 |
this.labelSPPIDPlantName.Size = new System.Drawing.Size(193, 18);
|
|
244 |
this.labelSPPIDPlantName.Size = new System.Drawing.Size(157, 18);
|
|
294 | 245 |
this.labelSPPIDPlantName.Text = "SPPIDPlantName"; |
295 | 246 |
this.labelSPPIDPlantName.TextSize = new System.Drawing.Size(93, 14); |
296 | 247 |
// |
297 | 248 |
// labelSPPIDDBStatus |
298 | 249 |
// |
299 | 250 |
this.labelSPPIDDBStatus.AllowHotTrack = false; |
251 |
this.labelSPPIDDBStatus.AppearanceItemCaption.Options.UseForeColor = true; |
|
300 | 252 |
this.labelSPPIDDBStatus.Location = new System.Drawing.Point(51, 58); |
301 | 253 |
this.labelSPPIDDBStatus.Name = "labelSPPIDDBStatus"; |
302 |
this.labelSPPIDDBStatus.Size = new System.Drawing.Size(220, 18);
|
|
254 |
this.labelSPPIDDBStatus.Size = new System.Drawing.Size(184, 18);
|
|
303 | 255 |
this.labelSPPIDDBStatus.Text = "SPPIDDBStatus"; |
304 | 256 |
this.labelSPPIDDBStatus.TextSize = new System.Drawing.Size(93, 14); |
305 | 257 |
// |
... | ... | |
308 | 260 |
this.layoutControlItem2.Control = this.btnSPPIDDB; |
309 | 261 |
this.layoutControlItem2.Location = new System.Drawing.Point(0, 0); |
310 | 262 |
this.layoutControlItem2.Name = "layoutControlItem2"; |
311 |
this.layoutControlItem2.Size = new System.Drawing.Size(271, 40);
|
|
263 |
this.layoutControlItem2.Size = new System.Drawing.Size(235, 40);
|
|
312 | 264 |
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); |
313 | 265 |
this.layoutControlItem2.TextVisible = false; |
314 | 266 |
// |
315 |
// simpleLabelItem1 |
|
316 |
// |
|
317 |
this.simpleLabelItem1.AllowHotTrack = false; |
|
318 |
this.simpleLabelItem1.Location = new System.Drawing.Point(0, 40); |
|
319 |
this.simpleLabelItem1.MaxSize = new System.Drawing.Size(78, 18); |
|
320 |
this.simpleLabelItem1.MinSize = new System.Drawing.Size(78, 18); |
|
321 |
this.simpleLabelItem1.Name = "simpleLabelItem1"; |
|
322 |
this.simpleLabelItem1.Size = new System.Drawing.Size(78, 18); |
|
323 |
this.simpleLabelItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
324 |
this.simpleLabelItem1.Text = "Plant Name : "; |
|
325 |
this.simpleLabelItem1.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
|
326 |
this.simpleLabelItem1.TextSize = new System.Drawing.Size(74, 14); |
|
327 |
// |
|
328 | 267 |
// simpleLabelItem2 |
329 | 268 |
// |
330 | 269 |
this.simpleLabelItem2.AllowHotTrack = false; |
270 |
this.simpleLabelItem2.AppearanceItemCaption.Options.UseForeColor = true; |
|
331 | 271 |
this.simpleLabelItem2.Location = new System.Drawing.Point(0, 58); |
332 | 272 |
this.simpleLabelItem2.MaxSize = new System.Drawing.Size(51, 18); |
333 | 273 |
this.simpleLabelItem2.MinSize = new System.Drawing.Size(51, 18); |
... | ... | |
338 | 278 |
this.simpleLabelItem2.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
339 | 279 |
this.simpleLabelItem2.TextSize = new System.Drawing.Size(47, 14); |
340 | 280 |
// |
281 |
// simpleLabelItem1 |
|
282 |
// |
|
283 |
this.simpleLabelItem1.AllowHotTrack = false; |
|
284 |
this.simpleLabelItem1.AppearanceItemCaption.Options.UseForeColor = true; |
|
285 |
this.simpleLabelItem1.Location = new System.Drawing.Point(0, 40); |
|
286 |
this.simpleLabelItem1.MaxSize = new System.Drawing.Size(78, 18); |
|
287 |
this.simpleLabelItem1.MinSize = new System.Drawing.Size(78, 18); |
|
288 |
this.simpleLabelItem1.Name = "simpleLabelItem1"; |
|
289 |
this.simpleLabelItem1.Size = new System.Drawing.Size(78, 18); |
|
290 |
this.simpleLabelItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
291 |
this.simpleLabelItem1.Text = "Plant Name : "; |
|
292 |
this.simpleLabelItem1.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
|
293 |
this.simpleLabelItem1.TextSize = new System.Drawing.Size(74, 14); |
|
294 |
// |
|
341 | 295 |
// layoutControlGroupID2Project |
342 | 296 |
// |
343 | 297 |
this.layoutControlGroupID2Project.CaptionImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.actions_image; |
... | ... | |
345 | 299 |
this.layoutControlGroupID2Project.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { |
346 | 300 |
this.labelID2ProjectName, |
347 | 301 |
this.labelID2ProjectStatus, |
348 |
this.btnID2Project,
|
|
302 |
this.layoutControlItem7,
|
|
349 | 303 |
this.simpleLabelItem3, |
350 | 304 |
this.simpleLabelItem4}); |
351 |
this.layoutControlGroupID2Project.Location = new System.Drawing.Point(951, 134);
|
|
305 |
this.layoutControlGroupID2Project.Location = new System.Drawing.Point(987, 134);
|
|
352 | 306 |
this.layoutControlGroupID2Project.Name = "layoutControlGroupID2Project"; |
353 |
this.layoutControlGroupID2Project.Size = new System.Drawing.Size(295, 118);
|
|
307 |
this.layoutControlGroupID2Project.Size = new System.Drawing.Size(259, 118);
|
|
354 | 308 |
this.layoutControlGroupID2Project.Text = "ID2 Project"; |
355 | 309 |
// |
356 | 310 |
// labelID2ProjectName |
357 | 311 |
// |
358 | 312 |
this.labelID2ProjectName.AllowHotTrack = false; |
313 |
this.labelID2ProjectName.AppearanceItemCaption.Options.UseForeColor = true; |
|
359 | 314 |
this.labelID2ProjectName.Location = new System.Drawing.Point(90, 24); |
360 | 315 |
this.labelID2ProjectName.Name = "labelID2ProjectName"; |
361 |
this.labelID2ProjectName.Size = new System.Drawing.Size(181, 18);
|
|
316 |
this.labelID2ProjectName.Size = new System.Drawing.Size(145, 18);
|
|
362 | 317 |
this.labelID2ProjectName.Text = "ID2ProjectName"; |
363 | 318 |
this.labelID2ProjectName.TextSize = new System.Drawing.Size(93, 14); |
364 | 319 |
// |
365 | 320 |
// labelID2ProjectStatus |
366 | 321 |
// |
367 | 322 |
this.labelID2ProjectStatus.AllowHotTrack = false; |
323 |
this.labelID2ProjectStatus.AppearanceItemCaption.Options.UseForeColor = true; |
|
368 | 324 |
this.labelID2ProjectStatus.Location = new System.Drawing.Point(51, 42); |
369 | 325 |
this.labelID2ProjectStatus.Name = "labelID2ProjectStatus"; |
370 |
this.labelID2ProjectStatus.Size = new System.Drawing.Size(220, 18);
|
|
326 |
this.labelID2ProjectStatus.Size = new System.Drawing.Size(184, 18);
|
|
371 | 327 |
this.labelID2ProjectStatus.Text = "ID2ProjectStatus"; |
372 | 328 |
this.labelID2ProjectStatus.TextSize = new System.Drawing.Size(93, 14); |
373 | 329 |
// |
374 |
// btnID2Project
|
|
330 |
// layoutControlItem7
|
|
375 | 331 |
// |
376 |
this.btnID2Project.Control = this.buttonEdit1;
|
|
377 |
this.btnID2Project.Location = new System.Drawing.Point(0, 0);
|
|
378 |
this.btnID2Project.Name = "btnID2Project";
|
|
379 |
this.btnID2Project.Size = new System.Drawing.Size(271, 24);
|
|
380 |
this.btnID2Project.Text = "Path :";
|
|
381 |
this.btnID2Project.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
|
|
382 |
this.btnID2Project.TextSize = new System.Drawing.Size(33, 14);
|
|
383 |
this.btnID2Project.TextToControlDistance = 5;
|
|
332 |
this.layoutControlItem7.Control = this.btnID2Project;
|
|
333 |
this.layoutControlItem7.Location = new System.Drawing.Point(0, 0);
|
|
334 |
this.layoutControlItem7.Name = "layoutControlItem7";
|
|
335 |
this.layoutControlItem7.Size = new System.Drawing.Size(235, 24);
|
|
336 |
this.layoutControlItem7.Text = "Path :";
|
|
337 |
this.layoutControlItem7.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
|
|
338 |
this.layoutControlItem7.TextSize = new System.Drawing.Size(33, 14);
|
|
339 |
this.layoutControlItem7.TextToControlDistance = 5;
|
|
384 | 340 |
// |
385 | 341 |
// simpleLabelItem3 |
386 | 342 |
// |
387 | 343 |
this.simpleLabelItem3.AllowHotTrack = false; |
344 |
this.simpleLabelItem3.AppearanceItemCaption.Options.UseForeColor = true; |
|
388 | 345 |
this.simpleLabelItem3.Location = new System.Drawing.Point(0, 24); |
389 | 346 |
this.simpleLabelItem3.MaxSize = new System.Drawing.Size(90, 18); |
390 | 347 |
this.simpleLabelItem3.MinSize = new System.Drawing.Size(90, 18); |
... | ... | |
398 | 355 |
// simpleLabelItem4 |
399 | 356 |
// |
400 | 357 |
this.simpleLabelItem4.AllowHotTrack = false; |
358 |
this.simpleLabelItem4.AppearanceItemCaption.Options.UseForeColor = true; |
|
401 | 359 |
this.simpleLabelItem4.Location = new System.Drawing.Point(0, 42); |
402 | 360 |
this.simpleLabelItem4.MaxSize = new System.Drawing.Size(51, 18); |
403 | 361 |
this.simpleLabelItem4.MinSize = new System.Drawing.Size(51, 18); |
... | ... | |
416 | 374 |
this.layoutControlItem4, |
417 | 375 |
this.labelItemMappingStatus, |
418 | 376 |
this.simpleLabelItem5}); |
419 |
this.layoutControlGroupItemMapping.Location = new System.Drawing.Point(951, 252);
|
|
377 |
this.layoutControlGroupItemMapping.Location = new System.Drawing.Point(987, 252);
|
|
420 | 378 |
this.layoutControlGroupItemMapping.Name = "layoutControlGroupItemMapping"; |
421 |
this.layoutControlGroupItemMapping.Size = new System.Drawing.Size(295, 116);
|
|
379 |
this.layoutControlGroupItemMapping.Size = new System.Drawing.Size(259, 116);
|
|
422 | 380 |
this.layoutControlGroupItemMapping.Text = "Item Mapping"; |
423 | 381 |
// |
424 | 382 |
// layoutControlItem4 |
... | ... | |
426 | 384 |
this.layoutControlItem4.Control = this.btnItemMapping; |
427 | 385 |
this.layoutControlItem4.Location = new System.Drawing.Point(0, 0); |
428 | 386 |
this.layoutControlItem4.Name = "layoutControlItem4"; |
429 |
this.layoutControlItem4.Size = new System.Drawing.Size(271, 40);
|
|
387 |
this.layoutControlItem4.Size = new System.Drawing.Size(235, 40);
|
|
430 | 388 |
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); |
431 | 389 |
this.layoutControlItem4.TextVisible = false; |
432 | 390 |
// |
433 | 391 |
// labelItemMappingStatus |
434 | 392 |
// |
435 | 393 |
this.labelItemMappingStatus.AllowHotTrack = false; |
394 |
this.labelItemMappingStatus.AppearanceItemCaption.Options.UseForeColor = true; |
|
436 | 395 |
this.labelItemMappingStatus.Location = new System.Drawing.Point(51, 40); |
437 | 396 |
this.labelItemMappingStatus.Name = "labelItemMappingStatus"; |
438 |
this.labelItemMappingStatus.Size = new System.Drawing.Size(220, 18);
|
|
397 |
this.labelItemMappingStatus.Size = new System.Drawing.Size(184, 18);
|
|
439 | 398 |
this.labelItemMappingStatus.Text = "MappingStatus"; |
440 | 399 |
this.labelItemMappingStatus.TextSize = new System.Drawing.Size(93, 14); |
441 | 400 |
// |
442 | 401 |
// simpleLabelItem5 |
443 | 402 |
// |
444 | 403 |
this.simpleLabelItem5.AllowHotTrack = false; |
404 |
this.simpleLabelItem5.AppearanceItemCaption.Options.UseForeColor = true; |
|
445 | 405 |
this.simpleLabelItem5.Location = new System.Drawing.Point(0, 40); |
446 | 406 |
this.simpleLabelItem5.MaxSize = new System.Drawing.Size(51, 18); |
447 | 407 |
this.simpleLabelItem5.MinSize = new System.Drawing.Size(51, 18); |
... | ... | |
452 | 412 |
this.simpleLabelItem5.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; |
453 | 413 |
this.simpleLabelItem5.TextSize = new System.Drawing.Size(47, 14); |
454 | 414 |
// |
415 |
// layoutControlGroupAutoConverter |
|
416 |
// |
|
417 |
this.layoutControlGroupAutoConverter.CaptionImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.convertto; |
|
418 |
this.layoutControlGroupAutoConverter.GroupStyle = DevExpress.Utils.GroupStyle.Card; |
|
419 |
this.layoutControlGroupAutoConverter.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { |
|
420 |
this.layoutControlItem1, |
|
421 |
this.layoutControlItem5, |
|
422 |
this.emptySpaceItem2, |
|
423 |
this.layoutControlItem6}); |
|
424 |
this.layoutControlGroupAutoConverter.Location = new System.Drawing.Point(0, 0); |
|
425 |
this.layoutControlGroupAutoConverter.Name = "layoutControlGroupAutoConverter"; |
|
426 |
this.layoutControlGroupAutoConverter.Size = new System.Drawing.Size(977, 451); |
|
427 |
this.layoutControlGroupAutoConverter.Text = "Auto Converter"; |
|
428 |
// |
|
429 |
// layoutControlItem1 |
|
430 |
// |
|
431 |
this.layoutControlItem1.Control = this.gridControlConverter; |
|
432 |
this.layoutControlItem1.Location = new System.Drawing.Point(0, 40); |
|
433 |
this.layoutControlItem1.Name = "layoutControlItem1"; |
|
434 |
this.layoutControlItem1.Size = new System.Drawing.Size(953, 353); |
|
435 |
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); |
|
436 |
this.layoutControlItem1.TextVisible = false; |
|
437 |
// |
|
438 |
// layoutControlItem5 |
|
439 |
// |
|
440 |
this.layoutControlItem5.Control = this.btnLoadFile; |
|
441 |
this.layoutControlItem5.Location = new System.Drawing.Point(0, 0); |
|
442 |
this.layoutControlItem5.MaxSize = new System.Drawing.Size(98, 40); |
|
443 |
this.layoutControlItem5.MinSize = new System.Drawing.Size(98, 40); |
|
444 |
this.layoutControlItem5.Name = "layoutControlItem5"; |
|
445 |
this.layoutControlItem5.Size = new System.Drawing.Size(98, 40); |
|
446 |
this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
447 |
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); |
|
448 |
this.layoutControlItem5.TextVisible = false; |
|
449 |
// |
|
450 |
// emptySpaceItem2 |
|
451 |
// |
|
452 |
this.emptySpaceItem2.AllowHotTrack = false; |
|
453 |
this.emptySpaceItem2.Location = new System.Drawing.Point(98, 0); |
|
454 |
this.emptySpaceItem2.Name = "emptySpaceItem2"; |
|
455 |
this.emptySpaceItem2.Size = new System.Drawing.Size(788, 40); |
|
456 |
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); |
|
457 |
// |
|
458 |
// layoutControlItem6 |
|
459 |
// |
|
460 |
this.layoutControlItem6.Control = this.btnRun; |
|
461 |
this.layoutControlItem6.Location = new System.Drawing.Point(886, 0); |
|
462 |
this.layoutControlItem6.MaxSize = new System.Drawing.Size(67, 40); |
|
463 |
this.layoutControlItem6.MinSize = new System.Drawing.Size(67, 40); |
|
464 |
this.layoutControlItem6.Name = "layoutControlItem6"; |
|
465 |
this.layoutControlItem6.Size = new System.Drawing.Size(67, 40); |
|
466 |
this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
467 |
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); |
|
468 |
this.layoutControlItem6.TextVisible = false; |
|
469 |
// |
|
455 | 470 |
// emptySpaceItem1 |
456 | 471 |
// |
457 | 472 |
this.emptySpaceItem1.AllowHotTrack = false; |
458 |
this.emptySpaceItem1.Location = new System.Drawing.Point(951, 368);
|
|
473 |
this.emptySpaceItem1.Location = new System.Drawing.Point(987, 368);
|
|
459 | 474 |
this.emptySpaceItem1.Name = "emptySpaceItem1"; |
460 |
this.emptySpaceItem1.Size = new System.Drawing.Size(295, 83);
|
|
475 |
this.emptySpaceItem1.Size = new System.Drawing.Size(259, 83);
|
|
461 | 476 |
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); |
462 | 477 |
// |
463 | 478 |
// splitterItem1 |
464 | 479 |
// |
465 | 480 |
this.splitterItem1.AllowHotTrack = true; |
466 |
this.splitterItem1.Location = new System.Drawing.Point(941, 0);
|
|
481 |
this.splitterItem1.Location = new System.Drawing.Point(977, 0);
|
|
467 | 482 |
this.splitterItem1.Name = "splitterItem1"; |
468 | 483 |
this.splitterItem1.Size = new System.Drawing.Size(10, 451); |
469 | 484 |
// |
485 |
// xtraFolderBrowserDialog |
|
486 |
// |
|
487 |
this.xtraFolderBrowserDialog.DialogStyle = DevExpress.Utils.CommonDialogs.FolderBrowserDialogStyle.Wide; |
|
488 |
this.xtraFolderBrowserDialog.SelectedPath = "xtraFolderBrowserDialog1"; |
|
489 |
// |
|
490 |
// xtraOpenFileDialog |
|
491 |
// |
|
492 |
this.xtraOpenFileDialog.FileName = "xtraOpenFileDialog1"; |
|
493 |
this.xtraOpenFileDialog.Filter = "Xml Files(*.xml)|*.xml"; |
|
494 |
this.xtraOpenFileDialog.Multiselect = true; |
|
495 |
// |
|
470 | 496 |
// ConverterForm |
471 | 497 |
// |
472 | 498 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
... | ... | |
483 | 509 |
this.layoutControl1.ResumeLayout(false); |
484 | 510 |
((System.ComponentModel.ISupportInitialize)(this.gridControlConverter)).EndInit(); |
485 | 511 |
((System.ComponentModel.ISupportInitialize)(this.gridViewConverter)).EndInit(); |
486 |
((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).EndInit();
|
|
512 |
((System.ComponentModel.ISupportInitialize)(this.btnID2Project.Properties)).EndInit();
|
|
487 | 513 |
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); |
488 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupAutoConverter)).EndInit(); |
|
489 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); |
|
490 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); |
|
491 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); |
|
492 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); |
|
493 | 514 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupSPPIDDB)).EndInit(); |
494 | 515 |
((System.ComponentModel.ISupportInitialize)(this.labelSPPIDPlantName)).EndInit(); |
495 | 516 |
((System.ComponentModel.ISupportInitialize)(this.labelSPPIDDBStatus)).EndInit(); |
496 | 517 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit(); |
497 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem1)).EndInit(); |
|
498 | 518 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem2)).EndInit(); |
519 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem1)).EndInit(); |
|
499 | 520 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupID2Project)).EndInit(); |
500 | 521 |
((System.ComponentModel.ISupportInitialize)(this.labelID2ProjectName)).EndInit(); |
501 | 522 |
((System.ComponentModel.ISupportInitialize)(this.labelID2ProjectStatus)).EndInit(); |
502 |
((System.ComponentModel.ISupportInitialize)(this.btnID2Project)).EndInit();
|
|
523 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
|
|
503 | 524 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem3)).EndInit(); |
504 | 525 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem4)).EndInit(); |
505 | 526 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupItemMapping)).EndInit(); |
506 | 527 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); |
507 | 528 |
((System.ComponentModel.ISupportInitialize)(this.labelItemMappingStatus)).EndInit(); |
508 | 529 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem5)).EndInit(); |
530 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupAutoConverter)).EndInit(); |
|
531 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit(); |
|
532 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); |
|
533 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); |
|
534 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); |
|
509 | 535 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); |
510 | 536 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit(); |
511 | 537 |
this.ResumeLayout(false); |
... | ... | |
540 | 566 |
private DevExpress.XtraLayout.SimpleLabelItem labelID2ProjectName; |
541 | 567 |
private DevExpress.XtraLayout.SimpleLabelItem labelID2ProjectStatus; |
542 | 568 |
private DevExpress.XtraLayout.SimpleLabelItem labelItemMappingStatus; |
543 |
private DevExpress.XtraEditors.ButtonEdit buttonEdit1; |
|
544 |
private DevExpress.XtraLayout.LayoutControlItem btnID2Project; |
|
545 | 569 |
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem1; |
546 | 570 |
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem2; |
547 | 571 |
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem3; |
548 | 572 |
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem4; |
549 | 573 |
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem5; |
550 | 574 |
private DevExpress.XtraLayout.SplitterItem splitterItem1; |
575 |
private DevExpress.XtraEditors.ButtonEdit btnID2Project; |
|
576 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; |
|
577 |
private DevExpress.XtraEditors.XtraFolderBrowserDialog xtraFolderBrowserDialog; |
|
578 |
private DevExpress.XtraEditors.XtraOpenFileDialog xtraOpenFileDialog; |
|
551 | 579 |
} |
552 | 580 |
} |
DTI_PID/SPPIDConverter_AutoModeling/ConverterForm.cs | ||
---|---|---|
8 | 8 |
using System.Threading.Tasks; |
9 | 9 |
using System.Windows.Forms; |
10 | 10 |
using Microsoft.VisualBasic; |
11 |
using Converter.BaseModel; |
|
11 | 12 |
using DevExpress.XtraEditors.Repository; |
12 | 13 |
using DevExpress.XtraEditors.Controls; |
13 | 14 |
using DevExpress.XtraEditors; |
15 |
using System.Globalization; |
|
16 |
using System.Threading; |
|
17 |
using System.IO; |
|
18 |
using Converter.SPPID.AutoModeling.Properties; |
|
19 |
using Converter.SPPID.AutoModeling.DB; |
|
20 |
using Converter.SPPID.AutoModeling.Util; |
|
21 |
using Converter.SPPID.AutoModeling.Form; |
|
14 | 22 |
|
15 | 23 |
namespace Converter.SPPID.AutoModeling |
16 | 24 |
{ |
17 | 25 |
public partial class ConverterForm : DevExpress.XtraBars.Ribbon.RibbonForm |
18 | 26 |
{ |
19 |
DataTable converterDT = new DataTable(); |
|
20 |
RepositoryItemComboBox templateComboBox; |
|
27 |
private DataTable converterDT = new DataTable(); |
|
28 |
private RepositoryItemComboBox templateComboBox; |
|
29 |
|
|
30 |
ProjectInfo _ProjectInfo = ProjectInfo.GetInstance(); |
|
31 |
SPPIDInfo _SPPIDInfo = SPPIDInfo.GetInstance(); |
|
21 | 32 |
|
22 | 33 |
public ConverterForm() |
23 | 34 |
{ |
24 | 35 |
InitializeComponent(); |
25 | 36 |
|
37 |
CultureInfo culture = CultureInfo.GetCultureInfo("en"); |
|
38 |
Msg.Culture = culture; |
|
39 |
|
|
26 | 40 |
//Color color = Color.FromArgb(67, 117, 219); |
27 | 41 |
//layoutControlGroupAutoConverter.AppearanceGroup.BorderColor = color; |
28 | 42 |
//layoutControlGroupAutoConverter.AllowBorderColorBlending = true; |
... | ... | |
32 | 46 |
//layoutControlGroupID2Project.AllowBorderColorBlending = true; |
33 | 47 |
//layoutControlGroupItemMapping.AppearanceGroup.BorderColor = color; |
34 | 48 |
//layoutControlGroupItemMapping.AllowBorderColorBlending = true; |
49 |
|
|
50 |
SPPIDUtil.ReadSPPIDInfo(); |
|
51 |
SPPIDUtil.ReadID2ProjectInfo(); |
|
52 |
|
|
35 | 53 |
InitGridControl(); |
54 |
SetID2ProjectUI(); |
|
55 |
SetSPPIDDBUI(); |
|
36 | 56 |
} |
37 | 57 |
|
38 | 58 |
private void InitGridControl() |
... | ... | |
76 | 96 |
#endregion |
77 | 97 |
} |
78 | 98 |
|
99 |
private void btnID2Project_ButtonClick(object sender, ButtonPressedEventArgs e) |
|
100 |
{ |
|
101 |
if (xtraFolderBrowserDialog.ShowDialog() == DialogResult.OK) |
|
102 |
{ |
|
103 |
bool result = false; |
|
104 |
string dirPath = xtraFolderBrowserDialog.SelectedPath; |
|
105 |
if (IsID2Project(dirPath)) |
|
106 |
{ |
|
107 |
_ProjectInfo.Path = dirPath; |
|
108 |
_ProjectInfo.Enable = true; |
|
109 |
if (SPPIDUtil.SaveID2ProjectInfo()) |
|
110 |
{ |
|
111 |
result = true; |
|
112 |
SetID2ProjectUI(); |
|
113 |
MessageBox.Show(Msg.SuccessProjectSelect, Msg.Information, MessageBoxButtons.OK, MessageBoxIcon.Information); |
|
114 |
} |
|
115 |
} |
|
116 |
|
|
117 |
if (!result) |
|
118 |
{ |
|
119 |
_ProjectInfo.Enable = false; |
|
120 |
SetID2ProjectUI(); |
|
121 |
MessageBox.Show(Msg.FailProjectSelect, Msg.Warning, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
|
122 |
} |
|
123 |
} |
|
124 |
} |
|
125 |
|
|
126 |
private void SetID2ProjectUI() |
|
127 |
{ |
|
128 |
if (_ProjectInfo.Enable) |
|
129 |
{ |
|
130 |
btnID2Project.Text = _ProjectInfo.Path; |
|
131 |
labelID2ProjectName.Text = _ProjectInfo.Name; |
|
132 |
labelID2ProjectName.AppearanceItemCaption.ForeColor = Color.Blue; |
|
133 |
labelID2ProjectStatus.Text = Msg.ConnectionSuccessful; |
|
134 |
labelID2ProjectStatus.AppearanceItemCaption.ForeColor = Color.Blue; |
|
135 |
} |
|
136 |
else |
|
137 |
{ |
|
138 |
btnID2Project.Text = ""; |
|
139 |
labelID2ProjectName.Text = " "; |
|
140 |
labelID2ProjectName.AppearanceItemCaption.ForeColor = Color.Red; |
|
141 |
labelID2ProjectStatus.Text = Msg.ConnectionFail; |
|
142 |
labelID2ProjectStatus.AppearanceItemCaption.ForeColor = Color.Red; |
|
143 |
} |
|
144 |
} |
|
145 |
|
|
146 |
private void SetSPPIDDBUI() |
|
147 |
{ |
|
148 |
if (_SPPIDInfo.Enable) |
|
149 |
{ |
|
150 |
labelSPPIDPlantName.Text = _SPPIDInfo.SelectedPlant; |
|
151 |
labelSPPIDPlantName.AppearanceItemCaption.ForeColor = Color.Blue; |
|
152 |
labelSPPIDDBStatus.Text = Msg.ConnectionSuccessful; |
|
153 |
labelSPPIDDBStatus.AppearanceItemCaption.ForeColor = Color.Blue; |
|
154 |
} |
|
155 |
else |
|
156 |
{ |
|
157 |
labelSPPIDPlantName.Text = " "; |
|
158 |
labelSPPIDPlantName.AppearanceItemCaption.ForeColor = Color.Red; |
|
159 |
labelSPPIDDBStatus.Text = Msg.ConnectionFail; |
|
160 |
labelSPPIDDBStatus.AppearanceItemCaption.ForeColor = Color.Red; |
|
161 |
} |
|
162 |
} |
|
163 |
|
|
164 |
private bool IsID2Project(string path) |
|
165 |
{ |
|
166 |
bool result = false; |
|
167 |
string[] directories = Directory.GetDirectories(path, "*", SearchOption.TopDirectoryOnly); |
|
168 |
for (int i = 0; i < directories.Length; i++) |
|
169 |
directories[i] = Path.GetFileName(directories[i]); |
|
170 |
List<string> dirList = directories.ToList(); |
|
171 |
|
|
172 |
if (dirList.Contains("db") && |
|
173 |
dirList.Contains("Temp") && |
|
174 |
dirList.Contains("image")) |
|
175 |
{ |
|
176 |
result = true; |
|
177 |
} |
|
178 |
|
|
179 |
return result; |
|
180 |
} |
|
181 |
|
|
79 | 182 |
private void UnitButton_ButtonClick(object sender, ButtonPressedEventArgs e) |
80 | 183 |
{ |
81 | 184 |
//UnitForm unitForm = new UnitForm(dUnit); |
... | ... | |
91 | 194 |
|
92 | 195 |
private void btnLoadFile_Click(object sender, EventArgs e) |
93 | 196 |
{ |
94 |
OpenFileDialog dia = new OpenFileDialog(); |
|
95 |
dia.Multiselect = true; |
|
96 |
dia.Filter = "Xml Files(*.xml)|*.xml"; |
|
197 |
if (!_ProjectInfo.Enable) |
|
198 |
{ |
|
199 |
MessageBox.Show(Msg.PleaseSetID2ProjectInfo, Msg.Warning, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
|
200 |
return; |
|
201 |
} |
|
97 | 202 |
|
98 |
if (dia.ShowDialog() == DialogResult.OK) |
|
203 |
xtraOpenFileDialog.InitialDirectory = _ProjectInfo.Path + @"\temp"; |
|
204 |
if (xtraOpenFileDialog.ShowDialog() == DialogResult.OK) |
|
99 | 205 |
{ |
100 |
foreach (string fileName in dia.FileNames)
|
|
206 |
foreach (string fileName in xtraOpenFileDialog.FileNames)
|
|
101 | 207 |
{ |
102 | 208 |
|
103 | 209 |
} |
... | ... | |
108 | 214 |
{ |
109 | 215 |
DialogResult = DialogResult.OK; |
110 | 216 |
} |
217 |
|
|
218 |
private void btnSPPIDDB_Click(object sender, EventArgs e) |
|
219 |
{ |
|
220 |
SPPID_DB_SettingForm form = new SPPID_DB_SettingForm(); |
|
221 |
if (form.ShowDialog() == DialogResult.OK) |
|
222 |
SetSPPIDDBUI(); |
|
223 |
} |
|
111 | 224 |
} |
112 | 225 |
} |
DTI_PID/SPPIDConverter_AutoModeling/ConverterForm.resx | ||
---|---|---|
120 | 120 |
<metadata name="defaultLookAndFeel.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
121 | 121 |
<value>17, 17</value> |
122 | 122 |
</metadata> |
123 |
<metadata name="xtraFolderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
|
124 |
<value>179, 17</value> |
|
125 |
</metadata> |
|
126 |
<metadata name="xtraOpenFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
|
127 |
<value>367, 17</value> |
|
128 |
</metadata> |
|
123 | 129 |
</root> |
DTI_PID/SPPIDConverter_AutoModeling/DB/DB.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
using System.Data; |
|
7 |
using System.Globalization; |
|
8 |
using System.IO; |
|
9 |
using Oracle.ManagedDataAccess.Client; |
|
10 |
|
|
11 |
namespace Converter.SPPID.AutoModeling.DB |
|
12 |
{ |
|
13 |
public class DB |
|
14 |
{ |
|
15 |
private const string oConnString = "(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST ={0}" + @")(PORT = {1}))(CONNECT_DATA = (SERVICE_NAME = {2})))"; |
|
16 |
|
|
17 |
public static bool CheckAndSetSPPIDInfo() |
|
18 |
{ |
|
19 |
bool bResult = false; |
|
20 |
SPPIDInfo dbInfo = SPPIDInfo.GetInstance(); |
|
21 |
try |
|
22 |
{ |
|
23 |
if (dbInfo.DBType == "ORACLE") |
|
24 |
{ |
|
25 |
string connString = string.Format(oConnString, dbInfo.ServerIP, dbInfo.Port, dbInfo.Service); |
|
26 |
connString = "Data Source=" + connString + ";User Id=" + dbInfo.DBUser + ";Password=" + dbInfo.DBPassword; |
|
27 |
|
|
28 |
using (OracleConnection conn = new OracleConnection(connString)) |
|
29 |
{ |
|
30 |
conn.Open(); |
|
31 |
if (conn.State == System.Data.ConnectionState.Open) |
|
32 |
{ |
|
33 |
using (OracleCommand cmd = new OracleCommand()) |
|
34 |
{ |
|
35 |
cmd.Connection = conn; |
|
36 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT NAME, PATH FROM {0}.T_ROOTITEM", dbInfo.Site); |
|
37 |
|
|
38 |
using (OracleDataReader reader = cmd.ExecuteReader()) |
|
39 |
{ |
|
40 |
while (reader.Read()) |
|
41 |
{ |
|
42 |
dbInfo.Plant = reader["NAME"].ToString(); |
|
43 |
dbInfo.PlantPath = reader["PATH"].ToString(); |
|
44 |
} |
|
45 |
|
|
46 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, @"SELECT SP_SCHEMA_TYPE, USERNAME |
|
47 |
FROM {0}.T_DB_DATA DB_DATA |
|
48 |
INNER JOIN {0}.T_ROOTITEM ROOTITEM ON DB_DATA.SP_ROOTITEMID = ROOTITEM.SP_ID |
|
49 |
WHERE ROOTITEM.NAME = '{1}'", dbInfo.Site, dbInfo.Plant); |
|
50 |
|
|
51 |
|
|
52 |
using (OracleDataAdapter adapter = new OracleDataAdapter()) |
|
53 |
{ |
|
54 |
DataTable dt = new DataTable(); |
|
55 |
adapter.SelectCommand = cmd; |
|
56 |
adapter.Fill(dt); |
|
57 |
|
|
58 |
foreach (DataRow row in dt.Rows) |
|
59 |
{ |
|
60 |
string sType = row["SP_SCHEMA_TYPE"].ToString(); |
|
61 |
switch (sType) |
|
62 |
{ |
|
63 |
case "SPPIDDATA_DICTIONARY": |
|
64 |
dbInfo.PlantPIDDic = row["USERNAME"].ToString(); |
|
65 |
break; |
|
66 |
case "DATA_DICTIONARY": |
|
67 |
dbInfo.PlantDic = row["USERNAME"].ToString(); |
|
68 |
break; |
|
69 |
case "SPAPLANT": |
|
70 |
dbInfo.Plant = row["USERNAME"].ToString(); |
|
71 |
break; |
|
72 |
case "SPPID": |
|
73 |
dbInfo.PlantPID = row["USERNAME"].ToString(); |
|
74 |
break; |
|
75 |
default: |
|
76 |
break; |
|
77 |
} |
|
78 |
} |
|
79 |
bResult = true; |
|
80 |
} |
|
81 |
} |
|
82 |
} |
|
83 |
} |
|
84 |
} |
|
85 |
} |
|
86 |
else |
|
87 |
{ |
|
88 |
|
|
89 |
} |
|
90 |
} |
|
91 |
catch (Exception ex) |
|
92 |
{ |
|
93 |
|
|
94 |
} |
|
95 |
|
|
96 |
return bResult; |
|
97 |
} |
|
98 |
|
|
99 |
public static bool SetPlantDBSetting() |
|
100 |
{ |
|
101 |
bool bResult = false; |
|
102 |
SPPIDInfo dbInfo = SPPIDInfo.GetInstance(); |
|
103 |
try |
|
104 |
{ |
|
105 |
if (dbInfo.DBType == "ORACLE") |
|
106 |
{ |
|
107 |
string connString = string.Format(oConnString, dbInfo.ServerIP, dbInfo.Port, dbInfo.Service); |
|
108 |
connString = "Data Source=" + connString + ";User Id=" + dbInfo.DBUser + ";Password=" + dbInfo.DBPassword; |
|
109 |
|
|
110 |
using (OracleConnection conn = new OracleConnection(connString)) |
|
111 |
{ |
|
112 |
conn.Open(); |
|
113 |
if (conn.State == System.Data.ConnectionState.Open) |
|
114 |
{ |
|
115 |
using (OracleCommand cmd = new OracleCommand()) |
|
116 |
{ |
|
117 |
cmd.Connection = conn; |
|
118 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, @"SELECT SP_SCHEMA_TYPE, USERNAME |
|
119 |
FROM {0}.T_DB_DATA DB_DATA |
|
120 |
INNER JOIN {0}.T_ROOTITEM ROOTITEM ON DB_DATA.SP_ROOTITEMID = ROOTITEM.SP_ID |
|
121 |
WHERE ROOTITEM.NAME = '{1}'", dbInfo.Site, dbInfo.SelectedPlant); |
|
122 |
using (OracleDataAdapter adapter = new OracleDataAdapter()) |
|
123 |
{ |
|
124 |
DataTable dt = new DataTable(); |
|
125 |
adapter.SelectCommand = cmd; |
|
126 |
adapter.Fill(dt); |
|
127 |
|
|
128 |
foreach (DataRow row in dt.Rows) |
|
129 |
{ |
|
130 |
string sType = row["SP_SCHEMA_TYPE"].ToString(); |
|
131 |
switch (sType) |
|
132 |
{ |
|
133 |
case "SPPIDDATA_DICTIONARY": |
|
134 |
dbInfo.PlantPIDDic = row["USERNAME"].ToString(); |
|
135 |
break; |
|
136 |
case "DATA_DICTIONARY": |
|
137 |
dbInfo.PlantDic = row["USERNAME"].ToString(); |
|
138 |
break; |
|
139 |
case "SPAPLANT": |
|
140 |
dbInfo.Plant = row["USERNAME"].ToString(); |
|
141 |
break; |
|
142 |
case "SPPID": |
|
143 |
dbInfo.PlantPID = row["USERNAME"].ToString(); |
|
144 |
break; |
|
145 |
default: |
|
146 |
break; |
|
147 |
} |
|
148 |
bResult = true; |
|
149 |
} |
|
150 |
} |
|
151 |
} |
|
152 |
} |
|
153 |
} |
|
154 |
} |
|
155 |
else |
|
156 |
{ |
|
157 |
|
|
158 |
} |
|
159 |
} |
|
160 |
catch (Exception ex) |
|
161 |
{ |
|
162 |
|
|
163 |
} |
|
164 |
|
|
165 |
return bResult; |
|
166 |
} |
|
167 |
|
|
168 |
public static List<string> GetPlantList() |
|
169 |
{ |
|
170 |
SPPIDInfo dbInfo = SPPIDInfo.GetInstance(); |
|
171 |
List<string> plantList = new List<string>(); |
|
172 |
try |
|
173 |
{ |
|
174 |
if (dbInfo.DBType == "ORACLE") |
|
175 |
{ |
|
176 |
string connString = string.Format(oConnString, dbInfo.ServerIP, dbInfo.Port, dbInfo.Service); |
|
177 |
connString = "Data Source=" + connString + ";User Id=" + dbInfo.DBUser + ";Password=" + dbInfo.DBPassword; |
|
178 |
|
|
179 |
using (OracleConnection conn = new OracleConnection(connString)) |
|
180 |
{ |
|
181 |
conn.Open(); |
|
182 |
if (conn.State == System.Data.ConnectionState.Open) |
|
183 |
{ |
|
184 |
using (OracleCommand cmd = new OracleCommand()) |
|
185 |
{ |
|
186 |
cmd.Connection = conn; |
|
187 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT NAME, PATH FROM {0}.T_ROOTITEM", dbInfo.Site); |
|
188 |
|
|
189 |
using (OracleDataReader reader = cmd.ExecuteReader()) |
|
190 |
{ |
|
191 |
while (reader.Read()) |
|
192 |
{ |
|
193 |
plantList.Add(reader["NAME"].ToString()); |
|
194 |
} |
|
195 |
} |
|
196 |
} |
|
197 |
} |
|
198 |
} |
|
199 |
} |
|
200 |
else |
|
201 |
{ |
|
202 |
|
|
203 |
} |
|
204 |
} |
|
205 |
catch (Exception ex) |
|
206 |
{ |
|
207 |
|
|
208 |
} |
|
209 |
|
|
210 |
return plantList; |
|
211 |
} |
|
212 |
|
|
213 |
public static DataTable GetUnitTree() |
|
214 |
{ |
|
215 |
DataTable dt = new DataTable(); |
|
216 |
try |
|
217 |
{ |
|
218 |
SPPIDInfo dbInfo = SPPIDInfo.GetInstance(); |
|
219 |
|
|
220 |
if (dbInfo.DBType == "ORACLE") |
|
221 |
{ |
|
222 |
string connString = string.Format(oConnString, dbInfo.ServerIP, dbInfo.Port, dbInfo.Service); |
|
223 |
connString = "Data Source=" + connString + ";User Id=" + dbInfo.DBUser + ";Password=" + dbInfo.DBPassword; |
|
224 |
|
|
225 |
using (OracleConnection conn = new OracleConnection(connString)) |
|
226 |
{ |
|
227 |
conn.Open(); |
|
228 |
if (conn.State == System.Data.ConnectionState.Open) |
|
229 |
{ |
|
230 |
string sQuery = string.Format(CultureInfo.CurrentCulture, |
|
231 |
@"SELECT SP_ID, PARENTID, NAME |
|
232 |
FROM {0}.T_PLANTGROUP |
|
233 |
START WITH PARENTID='-1' |
|
234 |
CONNECT BY PRIOR SP_ID=PARENTID", dbInfo.Plant); |
|
235 |
|
|
236 |
using (OracleCommand cmd = new OracleCommand(sQuery, conn)) |
|
237 |
using (OracleDataAdapter adapter = new OracleDataAdapter()) |
|
238 |
{ |
|
239 |
adapter.SelectCommand = cmd; |
|
240 |
adapter.Fill(dt); |
|
241 |
} |
|
242 |
} |
|
243 |
} |
|
244 |
} |
|
245 |
else |
|
246 |
{ |
|
247 |
|
|
248 |
} |
|
249 |
} |
|
250 |
catch (Exception ex) |
|
251 |
{ |
|
252 |
|
|
253 |
} |
|
254 |
|
|
255 |
return dt; |
|
256 |
} |
|
257 |
|
|
258 |
public static string GetPlantPID_T_OPTIONSETTING_Value(string name) |
|
259 |
{ |
|
260 |
string TemplatePath = string.Empty; |
|
261 |
SPPIDInfo dbInfo = SPPIDInfo.GetInstance(); |
|
262 |
try |
|
263 |
{ |
|
264 |
if (dbInfo.DBType == "ORACLE") |
|
265 |
{ |
|
266 |
string connString = string.Format(oConnString, dbInfo.ServerIP, dbInfo.Port, dbInfo.Service); |
|
267 |
connString = "Data Source=" + connString + ";User Id=" + dbInfo.DBUser + ";Password=" + dbInfo.DBPassword; |
|
268 |
|
|
269 |
using (OracleConnection conn = new OracleConnection(connString)) |
|
270 |
{ |
|
271 |
conn.Open(); |
|
272 |
if (conn.State == System.Data.ConnectionState.Open) |
|
273 |
{ |
|
274 |
using (OracleCommand cmd = new OracleCommand()) |
|
275 |
{ |
|
276 |
cmd.Connection = conn; |
|
277 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT VALUE FROM {0}.T_OPTIONSETTING WHERE NAME = '{1}'", dbInfo.PlantPID, name); |
|
278 |
|
|
279 |
using (OracleDataReader reader = cmd.ExecuteReader()) |
|
280 |
{ |
|
281 |
while (reader.Read()) |
|
282 |
{ |
|
283 |
TemplatePath = reader["VALUE"].ToString(); |
|
284 |
break; |
|
285 |
} |
|
286 |
} |
|
287 |
} |
|
288 |
} |
|
289 |
} |
|
290 |
} |
|
291 |
else |
|
292 |
{ |
|
293 |
|
|
294 |
} |
|
295 |
|
|
296 |
} |
|
297 |
catch (Exception ex) |
|
298 |
{ |
|
299 |
|
|
300 |
} |
|
301 |
|
|
302 |
return TemplatePath; |
|
303 |
} |
|
304 |
|
|
305 |
public static List<string> GetSPPIDAttribute() |
|
306 |
{ |
|
307 |
List<string> attributes = new List<string>(); |
|
308 |
SPPIDInfo dbInfo = SPPIDInfo.GetInstance(); |
|
309 |
try |
|
310 |
{ |
|
311 |
if (dbInfo.DBType == "ORACLE") |
|
312 |
{ |
|
313 |
string connString = string.Format(oConnString, dbInfo.ServerIP, dbInfo.Port, dbInfo.Service); |
|
314 |
connString = "Data Source=" + connString + ";User Id=" + dbInfo.DBUser + ";Password=" + dbInfo.DBPassword; |
|
315 |
|
|
316 |
using (OracleConnection conn = new OracleConnection(connString)) |
|
317 |
{ |
|
318 |
conn.Open(); |
|
319 |
if (conn.State == System.Data.ConnectionState.Open) |
|
320 |
{ |
|
321 |
using (OracleCommand cmd = new OracleCommand()) |
|
322 |
{ |
|
323 |
cmd.Connection = conn; |
|
324 |
|
|
325 |
// 정리 필요 |
|
326 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT * FROM {0}.{1}", dbInfo.PlantPID, "T_EQUIPMENT"); |
|
327 |
using (OracleDataReader reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly)) |
|
328 |
{ |
|
329 |
DataTable dt = reader.GetSchemaTable(); |
|
330 |
foreach (DataRow row in dt.Rows) |
|
331 |
attributes.Add(row["ColumnName"].ToString()); |
|
332 |
} |
|
333 |
|
|
334 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT * FROM {0}.{1}", dbInfo.PlantPID, "T_NOZZLE"); |
|
335 |
using (OracleDataReader reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly)) |
|
336 |
{ |
|
337 |
DataTable dt = reader.GetSchemaTable(); |
|
338 |
foreach (DataRow row in dt.Rows) |
|
339 |
attributes.Add(row["ColumnName"].ToString()); |
|
340 |
} |
|
341 |
|
|
342 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT * FROM {0}.{1}", dbInfo.PlantPID, "T_PIPINGCOMP"); |
|
343 |
using (OracleDataReader reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly)) |
|
344 |
{ |
|
345 |
DataTable dt = reader.GetSchemaTable(); |
|
346 |
foreach (DataRow row in dt.Rows) |
|
347 |
attributes.Add(row["ColumnName"].ToString()); |
|
348 |
} |
|
349 |
|
|
350 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT * FROM {0}.{1}", dbInfo.PlantPID, "T_PIPERUN"); |
|
351 |
using (OracleDataReader reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly)) |
|
352 |
{ |
|
353 |
|
|
354 |
DataTable dt = reader.GetSchemaTable(); |
|
355 |
foreach (DataRow row in dt.Rows) |
|
356 |
attributes.Add(row["ColumnName"].ToString()); |
|
357 |
} |
|
358 |
|
|
359 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT * FROM {0}.{1}", dbInfo.PlantPID, "T_INSTRUMENT"); |
|
360 |
using (OracleDataReader reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly)) |
|
361 |
{ |
|
362 |
DataTable dt = reader.GetSchemaTable(); |
|
363 |
foreach (DataRow row in dt.Rows) |
|
364 |
attributes.Add(row["ColumnName"].ToString()); |
|
365 |
} |
|
366 |
|
|
367 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT * FROM {0}.{1}", dbInfo.PlantPID, "T_INLINECOMP"); |
|
368 |
using (OracleDataReader reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly)) |
|
369 |
{ |
|
370 |
DataTable dt = reader.GetSchemaTable(); |
|
371 |
foreach (DataRow row in dt.Rows) |
|
372 |
attributes.Add(row["ColumnName"].ToString()); |
|
373 |
} |
|
374 |
|
|
375 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT * FROM {0}.{1}", dbInfo.PlantPID, "T_VESSEL"); |
|
376 |
using (OracleDataReader reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly)) |
|
377 |
{ |
|
378 |
DataTable dt = reader.GetSchemaTable(); |
|
379 |
foreach (DataRow row in dt.Rows) |
|
380 |
attributes.Add(row["ColumnName"].ToString()); |
|
381 |
} |
|
382 |
|
|
383 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT * FROM {0}.{1}", dbInfo.PlantPID, "T_EXCHANGER"); |
|
384 |
using (OracleDataReader reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly)) |
|
385 |
{ |
|
386 |
DataTable dt = reader.GetSchemaTable(); |
|
387 |
foreach (DataRow row in dt.Rows) |
|
388 |
attributes.Add(row["ColumnName"].ToString()); |
|
389 |
} |
|
390 |
|
|
391 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT * FROM {0}.{1}", dbInfo.PlantPID, "T_MECHANICAL"); |
|
392 |
using (OracleDataReader reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly)) |
|
393 |
{ |
|
394 |
DataTable dt = reader.GetSchemaTable(); |
|
395 |
foreach (DataRow row in dt.Rows) |
|
396 |
attributes.Add(row["ColumnName"].ToString()); |
|
397 |
} |
|
398 |
|
|
399 |
cmd.CommandText = string.Format(CultureInfo.CurrentCulture, "SELECT * FROM {0}.{1}", dbInfo.PlantPID, "T_EQUIPCOMPONENT"); |
|
400 |
using (OracleDataReader reader = cmd.ExecuteReader(CommandBehavior.SchemaOnly)) |
|
401 |
{ |
|
402 |
DataTable dt = reader.GetSchemaTable(); |
|
403 |
foreach (DataRow row in dt.Rows) |
|
404 |
attributes.Add(row["ColumnName"].ToString()); |
|
405 |
} |
|
406 |
|
|
407 |
} |
|
408 |
} |
|
409 |
} |
|
410 |
} |
|
411 |
else |
|
412 |
{ |
|
413 |
|
|
414 |
} |
|
415 |
} |
|
416 |
catch (Exception ex) |
|
417 |
{ |
|
418 |
|
|
419 |
} |
|
420 |
|
|
421 |
|
|
422 |
|
|
423 |
return attributes.Distinct().ToList(); |
|
424 |
} |
|
425 |
} |
|
426 |
} |
DTI_PID/SPPIDConverter_AutoModeling/DB/SPPIDInfo.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
|
|
7 |
namespace Converter.SPPID.AutoModeling.DB |
|
8 |
{ |
|
9 |
public class SPPIDInfo |
|
10 |
{ |
|
11 |
private static SPPIDInfo sPPIDInfo; |
|
12 |
|
|
13 |
private string _DBType = string.Empty; |
|
14 |
private string _Service = string.Empty; |
|
15 |
private string _Site = string.Empty; |
|
16 |
private string _ServerIP = string.Empty; |
|
17 |
private string _Port = string.Empty; |
|
18 |
private string _DBUser = string.Empty; |
|
19 |
private string _DBPassword = string.Empty; |
|
20 |
|
|
21 |
private List<string> _PlantList = new List<string>(); |
|
22 |
private string _SelectedPlant = string.Empty; |
|
23 |
|
|
24 |
private string _PlantPath = string.Empty; |
|
25 |
private string _Plant = string.Empty; |
|
26 |
private string _PlantDic = string.Empty; |
|
27 |
private string _PlantPID = string.Empty; |
|
28 |
private string _PlantPIDDic = string.Empty; |
|
29 |
|
|
30 |
private bool _Enable = false; |
|
31 |
|
|
32 |
public string DBType { get => _DBType; set => _DBType = value; } |
|
33 |
public string Service { get => _Service; set => _Service = value; } |
|
34 |
public string Site { get => _Site; set => _Site = value; } |
|
35 |
public string ServerIP { get => _ServerIP; set => _ServerIP = value; } |
|
36 |
public string Port { get => _Port; set => _Port = value; } |
|
37 |
public string DBUser { get => _DBUser; set => _DBUser = value; } |
|
38 |
public string DBPassword { get => _DBPassword; set => _DBPassword = value; } |
|
39 |
public List<string> PlantList { get => _PlantList; set => _PlantList = value; } |
|
40 |
public string SelectedPlant { get => _SelectedPlant; set => _SelectedPlant = value; } |
|
41 |
public string PlantPath { get => _PlantPath; set => _PlantPath = value; } |
|
42 |
public string Plant { get => _Plant; set => _Plant = value; } |
|
43 |
public string PlantDic { get => _PlantDic; set => _PlantDic = value; } |
|
44 |
public string PlantPID { get => _PlantPID; set => _PlantPID = value; } |
|
45 |
public string PlantPIDDic { get => _PlantPIDDic; set => _PlantPIDDic = value; } |
|
46 |
public bool Enable { get => _Enable; set => _Enable = value; } |
|
47 |
|
|
48 |
public static SPPIDInfo GetInstance() |
|
49 |
{ |
|
50 |
if (sPPIDInfo == null) |
|
51 |
sPPIDInfo = new SPPIDInfo(); |
|
52 |
|
|
53 |
return sPPIDInfo; |
|
54 |
} |
|
55 |
} |
|
56 |
} |
DTI_PID/SPPIDConverter_AutoModeling/Form/SPPID_DB_SettingForm.Designer.cs | ||
---|---|---|
1 |
namespace Converter.SPPID.AutoModeling.Form |
|
2 |
{ |
|
3 |
partial class SPPID_DB_SettingForm |
|
4 |
{ |
|
5 |
/// <summary> |
|
6 |
/// Required designer variable. |
|
7 |
/// </summary> |
|
8 |
private System.ComponentModel.IContainer components = null; |
|
9 |
|
|
10 |
/// <summary> |
|
11 |
/// Clean up any resources being used. |
|
12 |
/// </summary> |
|
13 |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
|
14 |
protected override void Dispose(bool disposing) |
|
15 |
{ |
|
16 |
if (disposing && (components != null)) |
|
17 |
{ |
|
18 |
components.Dispose(); |
|
19 |
} |
|
20 |
base.Dispose(disposing); |
|
21 |
} |
|
22 |
|
|
23 |
#region Windows Form Designer generated code |
|
24 |
|
|
25 |
/// <summary> |
|
26 |
/// Required method for Designer support - do not modify |
|
27 |
/// the contents of this method with the code editor. |
|
28 |
/// </summary> |
|
29 |
private void InitializeComponent() |
|
30 |
{ |
|
31 |
this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
|
32 |
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
|
33 |
this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); |
|
34 |
this.btnSave = new DevExpress.XtraEditors.SimpleButton(); |
|
35 |
this.comboPlant = new DevExpress.XtraEditors.ComboBoxEdit(); |
|
36 |
this.textBoxDBPassword = new DevExpress.XtraEditors.TextEdit(); |
|
37 |
this.textBoxDBUser = new DevExpress.XtraEditors.TextEdit(); |
|
38 |
this.textBoxDBType = new DevExpress.XtraEditors.TextEdit(); |
|
39 |
this.btnLoadINIFile = new DevExpress.XtraEditors.SimpleButton(); |
|
40 |
this.textBoxServiceName = new DevExpress.XtraEditors.TextEdit(); |
|
41 |
this.textBoxSiteName = new DevExpress.XtraEditors.TextEdit(); |
|
42 |
this.textBoxServerIP = new DevExpress.XtraEditors.TextEdit(); |
|
43 |
this.textBoxPort = new DevExpress.XtraEditors.TextEdit(); |
|
44 |
this.btnGetPlantList = new DevExpress.XtraEditors.SimpleButton(); |
|
45 |
this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
46 |
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
47 |
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
48 |
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
49 |
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
50 |
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
51 |
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
52 |
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
53 |
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
54 |
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
55 |
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
56 |
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
57 |
this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
58 |
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
59 |
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
60 |
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
61 |
this.xtraOpenFileDialog = new DevExpress.XtraEditors.XtraOpenFileDialog(); |
|
62 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
|
63 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
|
64 |
this.layoutControl1.SuspendLayout(); |
|
65 |
((System.ComponentModel.ISupportInitialize)(this.comboPlant.Properties)).BeginInit(); |
|
66 |
((System.ComponentModel.ISupportInitialize)(this.textBoxDBPassword.Properties)).BeginInit(); |
|
67 |
((System.ComponentModel.ISupportInitialize)(this.textBoxDBUser.Properties)).BeginInit(); |
|
68 |
((System.ComponentModel.ISupportInitialize)(this.textBoxDBType.Properties)).BeginInit(); |
|
69 |
((System.ComponentModel.ISupportInitialize)(this.textBoxServiceName.Properties)).BeginInit(); |
|
70 |
((System.ComponentModel.ISupportInitialize)(this.textBoxSiteName.Properties)).BeginInit(); |
|
71 |
((System.ComponentModel.ISupportInitialize)(this.textBoxServerIP.Properties)).BeginInit(); |
|
72 |
((System.ComponentModel.ISupportInitialize)(this.textBoxPort.Properties)).BeginInit(); |
|
73 |
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); |
|
74 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); |
|
75 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit(); |
|
76 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); |
|
77 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); |
|
78 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); |
|
79 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit(); |
|
80 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); |
|
81 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); |
|
82 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); |
|
83 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit(); |
|
84 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit(); |
|
85 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit(); |
|
86 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); |
|
87 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); |
|
88 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit(); |
|
89 |
this.SuspendLayout(); |
|
90 |
// |
|
91 |
// ribbonControl |
|
92 |
// |
|
93 |
this.ribbonControl.ExpandCollapseItem.Id = 0; |
|
94 |
this.ribbonControl.Items.AddRange(new DevExpress.XtraBars.BarItem[] { |
|
95 |
this.ribbonControl.ExpandCollapseItem}); |
|
96 |
this.ribbonControl.Location = new System.Drawing.Point(0, 0); |
|
97 |
this.ribbonControl.MaxItemId = 1; |
|
98 |
this.ribbonControl.Name = "ribbonControl"; |
|
99 |
this.ribbonControl.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; |
|
100 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
|
101 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
|
102 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
|
103 |
this.ribbonControl.Size = new System.Drawing.Size(417, 32); |
|
104 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
|
105 |
// |
|
106 |
// layoutControl1 |
|
107 |
// |
|
108 |
this.layoutControl1.Controls.Add(this.simpleButton2); |
|
109 |
this.layoutControl1.Controls.Add(this.btnSave); |
|
110 |
this.layoutControl1.Controls.Add(this.comboPlant); |
|
111 |
this.layoutControl1.Controls.Add(this.textBoxDBPassword); |
|
112 |
this.layoutControl1.Controls.Add(this.textBoxDBUser); |
|
113 |
this.layoutControl1.Controls.Add(this.textBoxDBType); |
|
114 |
this.layoutControl1.Controls.Add(this.btnLoadINIFile); |
|
115 |
this.layoutControl1.Controls.Add(this.textBoxServiceName); |
|
116 |
this.layoutControl1.Controls.Add(this.textBoxSiteName); |
|
117 |
this.layoutControl1.Controls.Add(this.textBoxServerIP); |
|
118 |
this.layoutControl1.Controls.Add(this.textBoxPort); |
|
119 |
this.layoutControl1.Controls.Add(this.btnGetPlantList); |
|
120 |
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; |
|
121 |
this.layoutControl1.Location = new System.Drawing.Point(0, 32); |
|
122 |
this.layoutControl1.Name = "layoutControl1"; |
|
123 |
this.layoutControl1.Root = this.Root; |
|
124 |
this.layoutControl1.Size = new System.Drawing.Size(417, 440); |
|
125 |
this.layoutControl1.TabIndex = 1; |
|
126 |
this.layoutControl1.Text = "layoutControl1"; |
|
127 |
// |
|
128 |
// simpleButton2 |
|
129 |
// |
|
130 |
this.simpleButton2.ImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.close; |
|
131 |
this.simpleButton2.Location = new System.Drawing.Point(202, 392); |
|
132 |
this.simpleButton2.Name = "simpleButton2"; |
|
133 |
this.simpleButton2.Size = new System.Drawing.Size(203, 36); |
|
134 |
this.simpleButton2.StyleController = this.layoutControl1; |
|
135 |
this.simpleButton2.TabIndex = 14; |
|
136 |
this.simpleButton2.Text = "Cancel"; |
|
137 |
// |
내보내기 Unified diff