프로젝트

일반

사용자정보

개정판 56cd4954

ID56cd49541690bb42f710618e2fb71d49207f2c7d
상위 a77303ca
하위 8af2ace4

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

dev issue #1223 : Add Symbol Image, AVEVA Symbol

Change-Id: Iab81f1b8025356abe2de247a70aea3b70df17e75

차이점 보기:

DTI_PID/APIDConverter/DB/Project_DB.cs
449 449
            return strConn;
450 450
        }
451 451

  
452
        public static DataTable SelectSymbolTable()
452
        public static DataTable SelectStandardSymbolTable()
453 453
        {
454 454
            DataTable dt = new DataTable();
455 455

  
......
459 459
                connection.Open();
460 460
                using (SqlCommand cmd = connection.CreateCommand())
461 461
                {
462
                    cmd.CommandText = string.Format("SELECT * FROM {0}", "SYMBOLS");
462
                    cmd.CommandText = string.Format(@"
463
                    SELECT ss.ID, ss.Symbol_Name, sps.Relative_Path FROM {0} as ss
464
                    LEFT OUTER JOIN {1} as sps
465
                    ON ss.Relative_Path = sps.ID
466
                    ORDER BY sps.ID ASC
467
                    ;", "stdSymbols", "StdPrjFolStructure");
468

  
469
                    using (SqlDataReader dr = cmd.ExecuteReader())
470
                        dt.Load(dr);
471
                }
472
                connection.Close();
473
            }
474

  
475
            return dt;
476
        }
477
        public static DataTable SelectStandardSymbolStructureTable()
478
        {
479
            DataTable dt = new DataTable();
480

  
481
            using (SqlConnection connection = new SqlConnection())
482
            {
483
                connection.ConnectionString = GetAvevaConnectionString_Admin();
484
                connection.Open();
485
                using (SqlCommand cmd = connection.CreateCommand())
486
                {
487
                    cmd.CommandText = string.Format(@"
488
                    SELECT * FROM {0}
489
                    ;", "StdPrjFolStructure");
490

  
491
                    using (SqlDataReader dr = cmd.ExecuteReader())
492
                        dt.Load(dr);
493
                }
494
                connection.Close();
495
            }
496

  
497
            return dt;
498
        }
499
        public static DataTable SelectStandardSymbolImageTable()
500
        {
501
            DataTable dt = new DataTable();
502

  
503
            using (SqlConnection connection = new SqlConnection())
504
            {
505
                connection.ConnectionString = GetAvevaConnectionString_Admin();
506
                connection.Open();
507
                using (SqlCommand cmd = connection.CreateCommand())
508
                {
509
                    cmd.CommandText = string.Format(@"
510
                    SELECT ss.Symbol_Name, ss.Pic_Binary, sps.Relative_Path FROM {0} as ss
511
                    LEFT OUTER JOIN {1} as sps
512
                    ON ss.Relative_Path = sps.ID
513
                    ORDER BY sps.ID ASC
514
                    ;", "stdSymbols", "StdPrjFolStructure");
515

  
463 516
                    using (SqlDataReader dr = cmd.ExecuteReader())
464 517
                        dt.Load(dr);
465 518
                }
DTI_PID/APIDConverter/Form/MappingForm.Designer.cs
29 29
        private void InitializeComponent()
30 30
        {
31 31
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MappingForm));
32
            DevExpress.XtraBars.Ribbon.GalleryItemGroup galleryItemGroup1 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup();
32 33
            this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl();
33 34
            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
34
            this.pictureEdit3 = new DevExpress.XtraEditors.PictureEdit();
35
            this.pictureEdit2 = new DevExpress.XtraEditors.PictureEdit();
36
            this.pictureEdit1 = new DevExpress.XtraEditors.PictureEdit();
37
            this.treeList1 = new DevExpress.XtraTreeList.TreeList();
35
            this.btnRefreshSymbol = new DevExpress.XtraEditors.SimpleButton();
36
            this.galleryControlAvevaSymbols = new DevExpress.XtraBars.Ribbon.GalleryControl();
37
            this.galleryControlClient1 = new DevExpress.XtraBars.Ribbon.GalleryControlClient();
38
            this.pictureEditMapped = new DevExpress.XtraEditors.PictureEdit();
39
            this.pictureEditID2Symbol = new DevExpress.XtraEditors.PictureEdit();
40
            this.treeListAvevaSymbol = new DevExpress.XtraTreeList.TreeList();
38 41
            this.gridControlSymbol = new DevExpress.XtraGrid.GridControl();
39 42
            this.gridViewSymbol = new DevExpress.XtraGrid.Views.Grid.GridView();
40 43
            this.btnClose = new DevExpress.XtraEditors.SimpleButton();
......
61 64
            this.layoutControlGroup6 = new DevExpress.XtraLayout.LayoutControlGroup();
62 65
            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
63 66
            this.splitterItem4 = new DevExpress.XtraLayout.SplitterItem();
67
            this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
64 68
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit();
65 69
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
66 70
            this.layoutControl1.SuspendLayout();
67
            ((System.ComponentModel.ISupportInitialize)(this.pictureEdit3.Properties)).BeginInit();
68
            ((System.ComponentModel.ISupportInitialize)(this.pictureEdit2.Properties)).BeginInit();
69
            ((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).BeginInit();
70
            ((System.ComponentModel.ISupportInitialize)(this.treeList1)).BeginInit();
71
            ((System.ComponentModel.ISupportInitialize)(this.galleryControlAvevaSymbols)).BeginInit();
72
            this.galleryControlAvevaSymbols.SuspendLayout();
73
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditMapped.Properties)).BeginInit();
74
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditID2Symbol.Properties)).BeginInit();
75
            ((System.ComponentModel.ISupportInitialize)(this.treeListAvevaSymbol)).BeginInit();
71 76
            ((System.ComponentModel.ISupportInitialize)(this.gridControlSymbol)).BeginInit();
72 77
            ((System.ComponentModel.ISupportInitialize)(this.gridViewSymbol)).BeginInit();
73 78
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
......
92 97
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup6)).BeginInit();
93 98
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
94 99
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem4)).BeginInit();
100
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
95 101
            this.SuspendLayout();
96 102
            // 
97 103
            // ribbonControl
......
111 117
            // 
112 118
            // layoutControl1
113 119
            // 
114
            this.layoutControl1.Controls.Add(this.pictureEdit3);
115
            this.layoutControl1.Controls.Add(this.pictureEdit2);
116
            this.layoutControl1.Controls.Add(this.pictureEdit1);
117
            this.layoutControl1.Controls.Add(this.treeList1);
120
            this.layoutControl1.Controls.Add(this.btnRefreshSymbol);
121
            this.layoutControl1.Controls.Add(this.galleryControlAvevaSymbols);
122
            this.layoutControl1.Controls.Add(this.pictureEditMapped);
123
            this.layoutControl1.Controls.Add(this.pictureEditID2Symbol);
124
            this.layoutControl1.Controls.Add(this.treeListAvevaSymbol);
118 125
            this.layoutControl1.Controls.Add(this.gridControlSymbol);
119 126
            this.layoutControl1.Controls.Add(this.btnClose);
120 127
            this.layoutControl1.Controls.Add(this.btnSave);
......
126 133
            this.layoutControl1.TabIndex = 1;
127 134
            this.layoutControl1.Text = "layoutControl1";
128 135
            // 
129
            // pictureEdit3
136
            // btnRefreshSymbol
130 137
            // 
131
            this.pictureEdit3.Location = new System.Drawing.Point(768, 388);
132
            this.pictureEdit3.MenuManager = this.ribbonControl;
133
            this.pictureEdit3.Name = "pictureEdit3";
134
            this.pictureEdit3.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
135
            this.pictureEdit3.Size = new System.Drawing.Size(331, 278);
136
            this.pictureEdit3.StyleController = this.layoutControl1;
137
            this.pictureEdit3.TabIndex = 11;
138
            this.btnRefreshSymbol.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnRefreshSymbol.ImageOptions.SvgImage")));
139
            this.btnRefreshSymbol.Location = new System.Drawing.Point(783, 642);
140
            this.btnRefreshSymbol.Name = "btnRefreshSymbol";
141
            this.btnRefreshSymbol.Size = new System.Drawing.Size(328, 36);
142
            this.btnRefreshSymbol.StyleController = this.layoutControl1;
143
            this.btnRefreshSymbol.TabIndex = 12;
144
            this.btnRefreshSymbol.Text = "Refresh AVEVA Symbol Image";
145
            this.btnRefreshSymbol.Click += new System.EventHandler(this.btnRefreshSymbol_Click);
138 146
            // 
139
            // pictureEdit2
147
            // galleryControlAvevaSymbols
140 148
            // 
141
            this.pictureEdit2.Location = new System.Drawing.Point(399, 399);
142
            this.pictureEdit2.MenuManager = this.ribbonControl;
143
            this.pictureEdit2.Name = "pictureEdit2";
144
            this.pictureEdit2.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
145
            this.pictureEdit2.Size = new System.Drawing.Size(319, 255);
146
            this.pictureEdit2.StyleController = this.layoutControl1;
147
            this.pictureEdit2.TabIndex = 10;
149
            this.galleryControlAvevaSymbols.Controls.Add(this.galleryControlClient1);
148 150
            // 
149
            // pictureEdit1
150 151
            // 
151
            this.pictureEdit1.Location = new System.Drawing.Point(36, 399);
152
            this.pictureEdit1.MenuManager = this.ribbonControl;
153
            this.pictureEdit1.Name = "pictureEdit1";
154
            this.pictureEdit1.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
155
            this.pictureEdit1.Size = new System.Drawing.Size(325, 255);
156
            this.pictureEdit1.StyleController = this.layoutControl1;
157
            this.pictureEdit1.TabIndex = 9;
158 152
            // 
159
            // treeList1
153
            galleryItemGroup1.Caption = "Items";
154
            this.galleryControlAvevaSymbols.Gallery.Groups.AddRange(new DevExpress.XtraBars.Ribbon.GalleryItemGroup[] {
155
            galleryItemGroup1});
156
            this.galleryControlAvevaSymbols.Location = new System.Drawing.Point(795, 357);
157
            this.galleryControlAvevaSymbols.Name = "galleryControlAvevaSymbols";
158
            this.galleryControlAvevaSymbols.Size = new System.Drawing.Size(304, 269);
159
            this.galleryControlAvevaSymbols.StyleController = this.layoutControl1;
160
            this.galleryControlAvevaSymbols.TabIndex = 11;
161
            this.galleryControlAvevaSymbols.Text = "galleryControl1";
160 162
            // 
161
            this.treeList1.Cursor = System.Windows.Forms.Cursors.Default;
162
            this.treeList1.Location = new System.Drawing.Point(768, 45);
163
            this.treeList1.Name = "treeList1";
164
            this.treeList1.Size = new System.Drawing.Size(331, 284);
165
            this.treeList1.TabIndex = 8;
163
            // galleryControlClient1
164
            // 
165
            this.galleryControlClient1.GalleryControl = this.galleryControlAvevaSymbols;
166
            this.galleryControlClient1.Location = new System.Drawing.Point(2, 2);
167
            this.galleryControlClient1.Size = new System.Drawing.Size(283, 265);
168
            // 
169
            // pictureEditMapped
170
            // 
171
            this.pictureEditMapped.Location = new System.Drawing.Point(412, 399);
172
            this.pictureEditMapped.MenuManager = this.ribbonControl;
173
            this.pictureEditMapped.Name = "pictureEditMapped";
174
            this.pictureEditMapped.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
175
            this.pictureEditMapped.Size = new System.Drawing.Size(333, 255);
176
            this.pictureEditMapped.StyleController = this.layoutControl1;
177
            this.pictureEditMapped.TabIndex = 10;
178
            // 
179
            // pictureEditID2Symbol
180
            // 
181
            this.pictureEditID2Symbol.Location = new System.Drawing.Point(36, 399);
182
            this.pictureEditID2Symbol.MenuManager = this.ribbonControl;
183
            this.pictureEditID2Symbol.Name = "pictureEditID2Symbol";
184
            this.pictureEditID2Symbol.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
185
            this.pictureEditID2Symbol.Size = new System.Drawing.Size(338, 255);
186
            this.pictureEditID2Symbol.StyleController = this.layoutControl1;
187
            this.pictureEditID2Symbol.TabIndex = 9;
188
            // 
189
            // treeListAvevaSymbol
190
            // 
191
            this.treeListAvevaSymbol.Cursor = System.Windows.Forms.Cursors.Default;
192
            this.treeListAvevaSymbol.Location = new System.Drawing.Point(795, 45);
193
            this.treeListAvevaSymbol.Name = "treeListAvevaSymbol";
194
            this.treeListAvevaSymbol.Size = new System.Drawing.Size(304, 253);
195
            this.treeListAvevaSymbol.TabIndex = 8;
166 196
            // 
167 197
            // gridControlSymbol
168 198
            // 
......
170 200
            this.gridControlSymbol.MainView = this.gridViewSymbol;
171 201
            this.gridControlSymbol.MenuManager = this.ribbonControl;
172 202
            this.gridControlSymbol.Name = "gridControlSymbol";
173
            this.gridControlSymbol.Size = new System.Drawing.Size(682, 261);
203
            this.gridControlSymbol.Size = new System.Drawing.Size(709, 261);
174 204
            this.gridControlSymbol.TabIndex = 7;
175 205
            this.gridControlSymbol.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
176 206
            this.gridViewSymbol});
......
186 216
            // btnClose
187 217
            // 
188 218
            this.btnClose.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnClose.ImageOptions.SvgImage")));
189
            this.btnClose.Location = new System.Drawing.Point(1011, 682);
219
            this.btnClose.Location = new System.Drawing.Point(1025, 682);
190 220
            this.btnClose.Name = "btnClose";
191
            this.btnClose.Size = new System.Drawing.Size(100, 36);
221
            this.btnClose.Size = new System.Drawing.Size(86, 36);
192 222
            this.btnClose.StyleController = this.layoutControl1;
193 223
            this.btnClose.TabIndex = 6;
194 224
            this.btnClose.Text = "  Close  ";
......
197 227
            // btnSave
198 228
            // 
199 229
            this.btnSave.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnSave.ImageOptions.SvgImage")));
200
            this.btnSave.Location = new System.Drawing.Point(899, 682);
230
            this.btnSave.Location = new System.Drawing.Point(927, 682);
201 231
            this.btnSave.Name = "btnSave";
202
            this.btnSave.Size = new System.Drawing.Size(97, 36);
232
            this.btnSave.Size = new System.Drawing.Size(84, 36);
203 233
            this.btnSave.StyleController = this.layoutControl1;
204 234
            this.btnSave.TabIndex = 5;
205 235
            this.btnSave.Text = "  Save  ";
......
218 248
            this.layoutControlGroup3,
219 249
            this.emptySpaceItem2,
220 250
            this.layoutControlGroup6,
221
            this.splitterItem4});
251
            this.splitterItem4,
252
            this.layoutControlItem8});
222 253
            this.Root.Name = "Root";
223 254
            this.Root.Size = new System.Drawing.Size(1123, 730);
224 255
            this.Root.TextVisible = false;
......
227 258
            // 
228 259
            this.emptySpaceItem1.AllowHotTrack = false;
229 260
            this.emptySpaceItem1.Location = new System.Drawing.Point(0, 670);
261
            this.emptySpaceItem1.MinSize = new System.Drawing.Size(104, 24);
230 262
            this.emptySpaceItem1.Name = "emptySpaceItem1";
231
            this.emptySpaceItem1.Size = new System.Drawing.Size(887, 40);
263
            this.emptySpaceItem1.Size = new System.Drawing.Size(915, 40);
264
            this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
232 265
            this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
233 266
            // 
234 267
            // tabbedControlGroup1
......
236 269
            this.tabbedControlGroup1.Location = new System.Drawing.Point(0, 0);
237 270
            this.tabbedControlGroup1.Name = "tabbedControlGroup1";
238 271
            this.tabbedControlGroup1.SelectedTabPage = this.layoutControlGroup1;
239
            this.tabbedControlGroup1.Size = new System.Drawing.Size(734, 670);
272
            this.tabbedControlGroup1.Size = new System.Drawing.Size(761, 670);
240 273
            this.tabbedControlGroup1.TabPages.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
241 274
            this.layoutControlGroup1,
242 275
            this.layoutControlGroup2});
......
251 284
            this.layoutControlGroup7});
252 285
            this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
253 286
            this.layoutControlGroup1.Name = "layoutControlGroup1";
254
            this.layoutControlGroup1.Size = new System.Drawing.Size(710, 624);
287
            this.layoutControlGroup1.Size = new System.Drawing.Size(737, 624);
255 288
            this.layoutControlGroup1.Text = "Symbol";
256 289
            // 
257 290
            // splitterItem2
......
259 292
            this.splitterItem2.AllowHotTrack = true;
260 293
            this.splitterItem2.Location = new System.Drawing.Point(0, 310);
261 294
            this.splitterItem2.Name = "splitterItem2";
262
            this.splitterItem2.Size = new System.Drawing.Size(710, 10);
295
            this.splitterItem2.Size = new System.Drawing.Size(737, 10);
263 296
            // 
264 297
            // splitterItem3
265 298
            // 
266 299
            this.splitterItem3.AllowHotTrack = true;
267
            this.splitterItem3.Location = new System.Drawing.Point(353, 320);
300
            this.splitterItem3.Location = new System.Drawing.Point(366, 320);
268 301
            this.splitterItem3.Name = "splitterItem3";
269 302
            this.splitterItem3.Size = new System.Drawing.Size(10, 304);
270 303
            // 
......
274 307
            this.layoutControlItem5});
275 308
            this.layoutControlGroup4.Location = new System.Drawing.Point(0, 320);
276 309
            this.layoutControlGroup4.Name = "layoutControlGroup4";
277
            this.layoutControlGroup4.Size = new System.Drawing.Size(353, 304);
310
            this.layoutControlGroup4.Size = new System.Drawing.Size(366, 304);
278 311
            this.layoutControlGroup4.Text = "ID2 Image";
279 312
            // 
280 313
            // layoutControlItem5
281 314
            // 
282
            this.layoutControlItem5.Control = this.pictureEdit1;
315
            this.layoutControlItem5.Control = this.pictureEditID2Symbol;
283 316
            this.layoutControlItem5.Location = new System.Drawing.Point(0, 0);
284 317
            this.layoutControlItem5.Name = "layoutControlItem5";
285
            this.layoutControlItem5.Size = new System.Drawing.Size(329, 259);
318
            this.layoutControlItem5.Size = new System.Drawing.Size(342, 259);
286 319
            this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
287 320
            this.layoutControlItem5.TextVisible = false;
288 321
            // 
......
290 323
            // 
291 324
            this.layoutControlGroup5.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
292 325
            this.layoutControlItem6});
293
            this.layoutControlGroup5.Location = new System.Drawing.Point(363, 320);
326
            this.layoutControlGroup5.Location = new System.Drawing.Point(376, 320);
294 327
            this.layoutControlGroup5.Name = "layoutControlGroup5";
295
            this.layoutControlGroup5.Size = new System.Drawing.Size(347, 304);
328
            this.layoutControlGroup5.Size = new System.Drawing.Size(361, 304);
296 329
            this.layoutControlGroup5.Text = "Mapped Image";
297 330
            // 
298 331
            // layoutControlItem6
299 332
            // 
300
            this.layoutControlItem6.Control = this.pictureEdit2;
333
            this.layoutControlItem6.Control = this.pictureEditMapped;
301 334
            this.layoutControlItem6.Location = new System.Drawing.Point(0, 0);
302 335
            this.layoutControlItem6.Name = "layoutControlItem6";
303
            this.layoutControlItem6.Size = new System.Drawing.Size(323, 259);
336
            this.layoutControlItem6.Size = new System.Drawing.Size(337, 259);
304 337
            this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
305 338
            this.layoutControlItem6.TextVisible = false;
306 339
            // 
......
310 343
            this.layoutControlItem4});
311 344
            this.layoutControlGroup7.Location = new System.Drawing.Point(0, 0);
312 345
            this.layoutControlGroup7.Name = "layoutControlGroup7";
313
            this.layoutControlGroup7.Size = new System.Drawing.Size(710, 310);
346
            this.layoutControlGroup7.Size = new System.Drawing.Size(737, 310);
314 347
            this.layoutControlGroup7.Text = "ID2 Symbol List";
315 348
            // 
316 349
            // layoutControlItem4
......
318 351
            this.layoutControlItem4.Control = this.gridControlSymbol;
319 352
            this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
320 353
            this.layoutControlItem4.Name = "layoutControlItem4";
321
            this.layoutControlItem4.Size = new System.Drawing.Size(686, 265);
354
            this.layoutControlItem4.Size = new System.Drawing.Size(713, 265);
322 355
            this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
323 356
            this.layoutControlItem4.TextVisible = false;
324 357
            // 
......
326 359
            // 
327 360
            this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0);
328 361
            this.layoutControlGroup2.Name = "layoutControlGroup2";
329
            this.layoutControlGroup2.Size = new System.Drawing.Size(710, 624);
362
            this.layoutControlGroup2.Size = new System.Drawing.Size(737, 624);
330 363
            this.layoutControlGroup2.Text = "Line";
331 364
            // 
332 365
            // layoutControlItem2
333 366
            // 
334 367
            this.layoutControlItem2.Control = this.btnSave;
335
            this.layoutControlItem2.Location = new System.Drawing.Point(887, 670);
368
            this.layoutControlItem2.Location = new System.Drawing.Point(915, 670);
369
            this.layoutControlItem2.MaxSize = new System.Drawing.Size(88, 40);
370
            this.layoutControlItem2.MinSize = new System.Drawing.Size(88, 40);
336 371
            this.layoutControlItem2.Name = "layoutControlItem2";
337
            this.layoutControlItem2.Size = new System.Drawing.Size(101, 40);
372
            this.layoutControlItem2.Size = new System.Drawing.Size(88, 40);
373
            this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
338 374
            this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
339 375
            this.layoutControlItem2.TextVisible = false;
340 376
            // 
341 377
            // layoutControlItem3
342 378
            // 
343 379
            this.layoutControlItem3.Control = this.btnClose;
344
            this.layoutControlItem3.Location = new System.Drawing.Point(999, 670);
380
            this.layoutControlItem3.Location = new System.Drawing.Point(1013, 670);
381
            this.layoutControlItem3.MaxSize = new System.Drawing.Size(90, 40);
382
            this.layoutControlItem3.MinSize = new System.Drawing.Size(90, 40);
345 383
            this.layoutControlItem3.Name = "layoutControlItem3";
346
            this.layoutControlItem3.Size = new System.Drawing.Size(104, 40);
384
            this.layoutControlItem3.Size = new System.Drawing.Size(90, 40);
385
            this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
347 386
            this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
348 387
            this.layoutControlItem3.TextVisible = false;
349 388
            // 
350 389
            // splitterItem1
351 390
            // 
352 391
            this.splitterItem1.AllowHotTrack = true;
353
            this.splitterItem1.Location = new System.Drawing.Point(734, 0);
392
            this.splitterItem1.Location = new System.Drawing.Point(761, 0);
354 393
            this.splitterItem1.Name = "splitterItem1";
355 394
            this.splitterItem1.Size = new System.Drawing.Size(10, 670);
356 395
            // 
......
358 397
            // 
359 398
            this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
360 399
            this.layoutControlItem1});
361
            this.layoutControlGroup3.Location = new System.Drawing.Point(744, 0);
400
            this.layoutControlGroup3.Location = new System.Drawing.Point(771, 0);
362 401
            this.layoutControlGroup3.Name = "layoutControlGroup3";
363
            this.layoutControlGroup3.Size = new System.Drawing.Size(359, 333);
364
            this.layoutControlGroup3.Text = "Aveva Symbol";
402
            this.layoutControlGroup3.Size = new System.Drawing.Size(332, 302);
403
            this.layoutControlGroup3.Text = "Aveva Symbol Structure";
365 404
            // 
366 405
            // layoutControlItem1
367 406
            // 
368
            this.layoutControlItem1.Control = this.treeList1;
407
            this.layoutControlItem1.Control = this.treeListAvevaSymbol;
369 408
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
370 409
            this.layoutControlItem1.Name = "layoutControlItem1";
371
            this.layoutControlItem1.Size = new System.Drawing.Size(335, 288);
410
            this.layoutControlItem1.Size = new System.Drawing.Size(308, 257);
372 411
            this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
373 412
            this.layoutControlItem1.TextVisible = false;
374 413
            // 
375 414
            // emptySpaceItem2
376 415
            // 
377 416
            this.emptySpaceItem2.AllowHotTrack = false;
378
            this.emptySpaceItem2.Location = new System.Drawing.Point(988, 670);
417
            this.emptySpaceItem2.Location = new System.Drawing.Point(1003, 670);
418
            this.emptySpaceItem2.MaxSize = new System.Drawing.Size(10, 40);
419
            this.emptySpaceItem2.MinSize = new System.Drawing.Size(10, 40);
379 420
            this.emptySpaceItem2.Name = "emptySpaceItem2";
380
            this.emptySpaceItem2.Size = new System.Drawing.Size(11, 40);
421
            this.emptySpaceItem2.Size = new System.Drawing.Size(10, 40);
422
            this.emptySpaceItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
381 423
            this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
382 424
            // 
383 425
            // layoutControlGroup6
384 426
            // 
385 427
            this.layoutControlGroup6.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
386 428
            this.layoutControlItem7});
387
            this.layoutControlGroup6.Location = new System.Drawing.Point(744, 343);
429
            this.layoutControlGroup6.Location = new System.Drawing.Point(771, 312);
388 430
            this.layoutControlGroup6.Name = "layoutControlGroup6";
389
            this.layoutControlGroup6.Size = new System.Drawing.Size(359, 327);
390
            this.layoutControlGroup6.Text = "Aveva Symbol";
431
            this.layoutControlGroup6.Size = new System.Drawing.Size(332, 318);
432
            this.layoutControlGroup6.Text = "Aveva Symbols";
391 433
            // 
392 434
            // layoutControlItem7
393 435
            // 
394
            this.layoutControlItem7.Control = this.pictureEdit3;
436
            this.layoutControlItem7.Control = this.galleryControlAvevaSymbols;
395 437
            this.layoutControlItem7.Location = new System.Drawing.Point(0, 0);
396 438
            this.layoutControlItem7.Name = "layoutControlItem7";
397
            this.layoutControlItem7.Size = new System.Drawing.Size(335, 282);
439
            this.layoutControlItem7.Size = new System.Drawing.Size(308, 273);
398 440
            this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
399 441
            this.layoutControlItem7.TextVisible = false;
400 442
            // 
401 443
            // splitterItem4
402 444
            // 
403 445
            this.splitterItem4.AllowHotTrack = true;
404
            this.splitterItem4.Location = new System.Drawing.Point(744, 333);
446
            this.splitterItem4.Location = new System.Drawing.Point(771, 302);
405 447
            this.splitterItem4.Name = "splitterItem4";
406
            this.splitterItem4.Size = new System.Drawing.Size(359, 10);
448
            this.splitterItem4.Size = new System.Drawing.Size(332, 10);
449
            // 
450
            // layoutControlItem8
451
            // 
452
            this.layoutControlItem8.Control = this.btnRefreshSymbol;
453
            this.layoutControlItem8.Location = new System.Drawing.Point(771, 630);
454
            this.layoutControlItem8.Name = "layoutControlItem8";
455
            this.layoutControlItem8.Size = new System.Drawing.Size(332, 40);
456
            this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
457
            this.layoutControlItem8.TextVisible = false;
407 458
            // 
408 459
            // MappingForm
409 460
            // 
......
421 472
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit();
422 473
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
423 474
            this.layoutControl1.ResumeLayout(false);
424
            ((System.ComponentModel.ISupportInitialize)(this.pictureEdit3.Properties)).EndInit();
425
            ((System.ComponentModel.ISupportInitialize)(this.pictureEdit2.Properties)).EndInit();
426
            ((System.ComponentModel.ISupportInitialize)(this.pictureEdit1.Properties)).EndInit();
427
            ((System.ComponentModel.ISupportInitialize)(this.treeList1)).EndInit();
475
            ((System.ComponentModel.ISupportInitialize)(this.galleryControlAvevaSymbols)).EndInit();
476
            this.galleryControlAvevaSymbols.ResumeLayout(false);
477
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditMapped.Properties)).EndInit();
478
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditID2Symbol.Properties)).EndInit();
479
            ((System.ComponentModel.ISupportInitialize)(this.treeListAvevaSymbol)).EndInit();
428 480
            ((System.ComponentModel.ISupportInitialize)(this.gridControlSymbol)).EndInit();
429 481
            ((System.ComponentModel.ISupportInitialize)(this.gridViewSymbol)).EndInit();
430 482
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
......
449 501
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup6)).EndInit();
450 502
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
451 503
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem4)).EndInit();
504
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
452 505
            this.ResumeLayout(false);
453 506
            this.PerformLayout();
454 507

  
......
459 512
        private DevExpress.XtraBars.Ribbon.RibbonControl ribbonControl;
460 513
        private DevExpress.XtraLayout.LayoutControl layoutControl1;
461 514
        private DevExpress.XtraLayout.LayoutControlGroup Root;
462
        private DevExpress.XtraTreeList.TreeList treeList1;
515
        private DevExpress.XtraTreeList.TreeList treeListAvevaSymbol;
463 516
        private DevExpress.XtraGrid.GridControl gridControlSymbol;
464 517
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewSymbol;
465 518
        private DevExpress.XtraEditors.SimpleButton btnClose;
......
475 528
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup3;
476 529
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
477 530
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2;
478
        private DevExpress.XtraEditors.PictureEdit pictureEdit2;
479
        private DevExpress.XtraEditors.PictureEdit pictureEdit1;
531
        private DevExpress.XtraEditors.PictureEdit pictureEditMapped;
532
        private DevExpress.XtraEditors.PictureEdit pictureEditID2Symbol;
480 533
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
481 534
        private DevExpress.XtraLayout.SplitterItem splitterItem2;
482 535
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
483 536
        private DevExpress.XtraLayout.SplitterItem splitterItem3;
484 537
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup4;
485 538
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup5;
486
        private DevExpress.XtraEditors.PictureEdit pictureEdit3;
487 539
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup6;
488
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
489 540
        private DevExpress.XtraLayout.SplitterItem splitterItem4;
490 541
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup7;
542
        private DevExpress.XtraBars.Ribbon.GalleryControl galleryControlAvevaSymbols;
543
        private DevExpress.XtraBars.Ribbon.GalleryControlClient galleryControlClient1;
544
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
545
        private DevExpress.XtraEditors.SimpleButton btnRefreshSymbol;
546
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
491 547
    }
492 548
}
DTI_PID/APIDConverter/Form/MappingForm.cs
7 7
using System.Text;
8 8
using System.Threading.Tasks;
9 9
using System.Windows.Forms;
10
using System.IO;
10 11

  
11 12
using DevExpress.XtraEditors.Repository;
12 13
using DevExpress.XtraTreeList;
......
14 15
using DevExpress.XtraEditors.Controls;
15 16
using DevExpress.XtraEditors;
16 17

  
18
using AVEVA.PID.Utilities;
19

  
17 20
using AVEVA.PID.CustomizationUtility.DB;
18 21
using AVEVA.PID.CustomizationUtility.Model;
19 22
using AVEVA.PID.CustomizationUtility.Properties;
......
26 29
        {
27 30
            InitializeComponent();
28 31
            SetSymbolMappingTable();
32
            SetAvevaSymbolStructure();
33
            gridViewSymbol.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridViewSymbol_FocusedRowChanged);
34
            treeListAvevaSymbol.FocusedNodeChanged += new FocusedNodeChangedEventHandler(treeListAvevaSymbol_FocusedNodeChanged);
35
            galleryControlAvevaSymbols.Gallery.ItemSize = new System.Drawing.Size(32, 32);
36
            galleryControlAvevaSymbols.Gallery.ShowItemImage = true;
37
            galleryControlAvevaSymbols.Gallery.ShowItemText = true;
29 38
        }
30 39

  
31
        #region Grid
40
        #region Init
32 41
        private bool SetSymbolMappingTable()
33 42
        {
34 43
            try
......
64 73

  
65 74
            return true;
66 75
        }
67
        #endregion
76
        private void SetAvevaSymbolStructure()
77
        {
78
            DataTable stdStructure = Project_DB.SelectStandardSymbolStructureTable();
79
            DataTable symbolTable = new DataTable();
80
            symbolTable.Columns.Add("ID1", typeof(string));
81
            symbolTable.Columns.Add("ID2", typeof(string));
82
            symbolTable.Columns.Add("Name", typeof(string));
83
            symbolTable.Rows.Add("STANDARD", null, "Standard");
84

  
85
            foreach (DataRow row in stdStructure.Rows)
86
            {
87
                string path = row["Relative_Path"].ToString();
88
                string[] split = path.Split(new char[] { '\\' });
89
                string prevID = null;
90
                for (int i = 0; i < split.Length; i++)
91
                {
92
                    string splitName = split[i];
93
                    if (i == 0)
94
                    {
95
                        DataRow[] rows = symbolTable.Select(string.Format("Name = '{0}' AND ID2 = 'STANDARD'", splitName));
96
                        if (rows.Length == 0)
97
                        {
98
                            string newID = Guid.NewGuid().ToString();
99
                            symbolTable.Rows.Add(newID, "STANDARD", splitName);
100
                            prevID = newID;
101
                        }
102
                        else
103
                            prevID = rows[0]["ID1"].ToString();
104
                    }
105
                    else
106
                    {
107
                        DataRow[] rows = symbolTable.Select(string.Format("Name = '{0}' AND ID2 = '{1}'", splitName, prevID));
108
                        if (rows.Length == 0)
109
                        {
110
                            string newID = Guid.NewGuid().ToString();
111
                            symbolTable.Rows.Add(newID, prevID, splitName);
112
                            prevID = newID;
113
                        }
114
                        else
115
                            prevID = rows[0]["ID1"].ToString();
116
                    }
117
                }
118
            }
68 119

  
120
            treeListAvevaSymbol.DataSource = symbolTable;
121
            treeListAvevaSymbol.KeyFieldName = "ID1";
122
            treeListAvevaSymbol.ParentFieldName = "ID2";
123
            treeListAvevaSymbol.OptionsView.ShowIndicator = false;
124
            treeListAvevaSymbol.OptionsView.ShowColumns = false;
125
            treeListAvevaSymbol.OptionsView.ShowHorzLines = false;
126
            treeListAvevaSymbol.OptionsView.ShowVertLines = false;
127
            treeListAvevaSymbol.OptionsView.FocusRectStyle = DrawFocusRectStyle.CellFocus;
128
            treeListAvevaSymbol.OptionsBehavior.Editable = false;
129

  
130
            treeListAvevaSymbol.ExpandToLevel(0);
131
            stdStructure.Dispose();
132
        }
133
        #endregion
69 134

  
70 135
        private void MappingForm_Load(object sender, EventArgs e)
71 136
        {
......
96 161
                    e.Cancel = true;
97 162
            }
98 163
        }
164

  
165
        private void gridViewSymbol_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
166
        {
167
            if (pictureEditID2Symbol.Image != null)
168
                pictureEditID2Symbol.Image.Dispose();
169
            pictureEditID2Symbol.Image = null;
170

  
171
            if (e.FocusedRowHandle >= 0)
172
            {
173
                Project_Info info = Project_Info.GetInstance();
174
                string _Type = gridViewSymbol.GetRowCellDisplayText(e.FocusedRowHandle, "Type");
175
                string _Name = gridViewSymbol.GetRowCellDisplayText(e.FocusedRowHandle, "Name");
176
                string _ImagePath = string.Format(@"{0}{1}\{2}.png", info.ImageDirPath, _Type, _Name);
177
                string _MappedPath = gridViewSymbol.GetRowCellDisplayText(e.FocusedRowHandle, "APID_SYMBOL");
178

  
179
                if (File.Exists(_ImagePath))
180
                    pictureEditID2Symbol.Image = Image.FromFile(_ImagePath);
181

  
182
                string fullPath = _MappedPath;
183
                string _ID2ImagePath = info.AVEVA_ImageDirPath + fullPath + ".png";
184

  
185
                if (pictureEditMapped.Image != null)
186
                {
187
                    pictureEditMapped.Image.Dispose();
188
                    pictureEditMapped.Image = null;
189
                }
190

  
191
                if (File.Exists(_ID2ImagePath))
192
                {
193
                    pictureEditMapped.Image = Image.FromFile(_ID2ImagePath);
194
                }
195
            }
196
        }
197

  
198
        private void btnRefreshSymbol_Click(object sender, EventArgs e)
199
        {
200
            Cursor = Cursors.WaitCursor;
201
            try
202
            {
203
                Project_Info project_Info = Project_Info.GetInstance();
204
                if (Directory.Exists(project_Info.AVEVA_ImageDirPath))
205
                    Directory.Delete(project_Info.AVEVA_ImageDirPath, true);
206

  
207
                Directory.CreateDirectory(project_Info.AVEVA_ImageDirPath);
208
                string stdDirPath = project_Info.AVEVA_ImageDirPath + @"\Standard";
209
                Directory.CreateDirectory(stdDirPath);
210

  
211
                #region directory
212
                DataTable stdStructure = Project_DB.SelectStandardSymbolStructureTable();
213
                foreach (DataRow row in stdStructure.Rows)
214
                {
215
                    string path = row["Relative_Path"].ToString();
216
                    if (!string.IsNullOrEmpty(path))
217
                    {
218
                        string newPath = stdDirPath + @"\" + path;
219
                        if (!Directory.Exists(newPath))
220
                            Directory.CreateDirectory(newPath);
221
                    }
222
                }
223
                stdStructure.Dispose();
224
                #endregion
225

  
226
                DataTable imageTable = Project_DB.SelectStandardSymbolImageTable();
227
                foreach (DataRow row in imageTable.Rows)
228
                {
229
                    string path = stdDirPath + @"\" + row["Relative_Path"] + @"\" + row["Symbol_Name"] + ".png";
230
                    byte[] picBinary = (byte[])row["Pic_Binary"];
231
                    MemoryStream mStream = new MemoryStream();
232
                    mStream.Write(picBinary, 0, picBinary.Length);
233
                    mStream.Seek(0, SeekOrigin.Begin);
234
                    Bitmap bm = new Bitmap(mStream);
235
                    bm.Save(path);
236
                    bm.Dispose();
237
                    mStream.Dispose();
238
                }
239
                imageTable.Dispose();
240
            }
241
            catch (Exception ex)
242
            {
243

  
244
            }
245
            Cursor = Cursors.Default;
246
        }
247

  
248
        private void treeListAvevaSymbol_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e)
249
        {
250
            if (e.Node != null)
251
            {
252
                try
253
                {
254
                    Project_Info project_Info = Project_Info.GetInstance();
255
                    string imagePath = project_Info.AVEVA_ImageDirPath;
256
                    string dirPath = "";
257
                    GetNodeLoopText(e.Node, ref dirPath);
258
                    string resultPath = imagePath + dirPath;
259
                    string[] fileNames = Directory.GetFiles(resultPath, "*.png", SearchOption.TopDirectoryOnly);
260
                    galleryControlAvevaSymbols.Gallery.Groups[0].Caption = e.Node.GetDisplayText("Name");
261
                    while (galleryControlAvevaSymbols.Gallery.Groups[0].Items.Count > 0)
262
                    {
263
                        //DevExpress.XtraBars.Ribbon.GalleryItem item = galleryControlAvevaSymbols.Gallery.Groups[0].Items[0];
264
                        galleryControlAvevaSymbols.Gallery.Groups[0].Items.RemoveAt(0);
265
                    }
266

  
267
                    foreach (var fileName in fileNames)
268
                    {
269
                        DevExpress.XtraBars.Ribbon.GalleryItem item = new DevExpress.XtraBars.Ribbon.GalleryItem(Image.FromFile(fileName), Path.GetFileNameWithoutExtension(fileName), Path.GetFileNameWithoutExtension(fileName));
270
                        galleryControlAvevaSymbols.Gallery.Groups[0].Items.Add(item);
271
                    }
272
                }
273
                catch (Exception ex)
274
                {
275

  
276
                }
277
                
278
            }
279

  
280
            void GetNodeLoopText(TreeListNode node, ref string result)
281
            {
282
                result = @"\" + node.GetDisplayText("Name") + result;
283
                if (node.ParentNode != null)
284
                    GetNodeLoopText(node.ParentNode, ref result);
285
            }
286
        }
99 287
    }
100 288
}
DTI_PID/APIDConverter/Form/MappingForm.resx
118 118
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119 119
  </resheader>
120 120
  <assembly alias="DevExpress.Data.v18.2" name="DevExpress.Data.v18.2, Version=18.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
121
  <data name="btnRefreshSymbol.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v18.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
122
    <value>
123
        AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjE4LjIsIFZlcnNpb249MTguMi43
124
        LjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjg4ZDE3NTRkNzAwZTQ5YQUBAAAAHURl
125
        dkV4cHJlc3MuVXRpbHMuU3ZnLlN2Z0ltYWdlAQAAAAREYXRhBwICAAAACQMAAAAPAwAAAIgCAAAC77u/
126
        PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz4NCjxzdmcgeD0iMHB4IiB5PSIwcHgi
127
        IHZpZXdCb3g9IjAgMCAzMiAzMiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv
128
        MjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBlbmFibGUt
129
        YmFja2dyb3VuZD0ibmV3IDAgMCAzMiAzMiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgaWQ9IkxheWVyXzEi
130
        Pg0KICA8ZyBpZD0iUmVmcmVzaF8xXyI+DQogICAgPHBhdGggZD0iTTI0LjUsNy41QzIyLjMsNS4zLDE5
131
        LjMsNCwxNiw0QzEwLjEsNCw1LjEsOC4zLDQuMiwxNGg0LjFjMC45LTMuNCw0LTYsNy43LTZjMi4yLDAs
132
        NC4yLDAuOSw1LjYsMi40TDE4LDE0ICAgaDUuN2g0LjFIMjhWNEwyNC41LDcuNXoiIGZpbGw9IiMwMzlD
133
        MjMiIGNsYXNzPSJHcmVlbiIgLz4NCiAgICA8cGF0aCBkPSJNMTYuMiwyNGMtMi4yLDAtNC4yLTAuOS01
134
        LjYtMi40bDMuNi0zLjZIOC40SDQuNEg0LjJ2MTBsMy41LTMuNWMyLjIsMi4yLDUuMiwzLjUsOC41LDMu
135
        NSAgIEMyMi4xLDI4LDI3LDIzLjcsMjgsMThoLTQuMUMyMywyMS40LDE5LjksMjQsMTYuMiwyNHoiIGZp
136
        bGw9IiMwMzlDMjMiIGNsYXNzPSJHcmVlbiIgLz4NCiAgPC9nPg0KPC9zdmc+Cw==
137
</value>
138
  </data>
121 139
  <data name="btnClose.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v18.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
122 140
    <value>
123 141
        AAEAAAD/////AQAAAAAAAAAMAgAAAFlEZXZFeHByZXNzLkRhdGEudjE4LjIsIFZlcnNpb249MTguMi43
DTI_PID/APIDConverter/Model/Project_Info.cs
22 22
        private string _TempDirPath;
23 23
        private string _ImageDirPath;
24 24
        private string _SvgImageDirPath;
25
        private string _SPPID_ImageDirPath;
25
        private string _AVEVA_ImageDirPath;
26 26

  
27 27
        public ID2DB_Type DBType { get; set; }
28 28
        public string ServerIP { get; set; }
......
39 39
                _TempDirPath = value + @"\Temp\";
40 40
                _ImageDirPath = value + @"\image\";
41 41
                _SvgImageDirPath = value + @"\svg\";
42
                _SPPID_ImageDirPath = value + @"\SPPID_Image";
43
                Directory.CreateDirectory(_SPPID_ImageDirPath);
42
                _AVEVA_ImageDirPath = value + @"\AVEVA_Image";
43
                Directory.CreateDirectory(_AVEVA_ImageDirPath);
44 44
            }
45 45
        }
46 46

  
......
69 69
            get { return _SvgImageDirPath; }
70 70
        }
71 71

  
72
        public string SPPID_ImageDirPath
72
        public string AVEVA_ImageDirPath
73 73
        {
74
            get { return _SPPID_ImageDirPath; }
74
            get { return _AVEVA_ImageDirPath; }
75 75
        }
76 76

  
77 77
        public bool Enable { get => _Enable; set => _Enable = value; }

내보내기 Unified diff

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