프로젝트

일반

사용자정보

개정판 2b02c914

ID2b02c914fa561ee579a210e33264f3736d9db0c6
상위 d953c0ad
하위 99f68782

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

dev issue #1227 : mapping linenumber attribute

Change-Id: I42023caea7b1ba73d5d60be34dd064696e2111ca

차이점 보기:

DTI_PID/APIDConverter/DB/Project_DB.cs
940 940

  
941 941
            return dt;
942 942
        }
943
        public static DataTable SelectProjectLineProperties()
944
        {
945
            DataTable dt = new DataTable();
946
            Project_Info projectInfo = Project_Info.GetInstance();
947
            if (projectInfo.DBType == ID2DB_Type.SQLite)
948
            {
949
                using (SQLiteConnection connection = new SQLiteConnection(string.Format(CultureInfo.CurrentCulture, "Data Source = {0}", projectInfo.DBFilePath)))
950
                {
951
                    try
952
                    {
953
                        connection.Open();
954
                        using (SQLiteCommand cmd = connection.CreateCommand())
955
                        {
956
                            cmd.CommandText = string.Format(@"
957
                            SELECT lp.UID, lp.DisplayName, sp.APID_SYMBOL, spa.APID_ATTRIBUTE
958
                            FROM {0} as lp 
959
                                 LEFT OUTER JOIN {1} as sp 
960
                                      ON lp.UID = sp.UID
961
                                 LEFT OUTER JOIN {2} as spa 
962
                                      ON lp.UID = spa.UID;", LineProperties_TABLE, APID_SYMBOL_MAPPING_TABLE, APID_ATTRIBUTE_MAPPING_TABLE);
963
                            using (SQLiteDataReader dr = cmd.ExecuteReader())
964
                                dt.Load(dr);
965
                        }
966
                        connection.Close();
967
                    }
968
                    catch (Exception ex)
969
                    {
970
                        Log.Write(ex.Message + "\r\n" + ex.StackTrace);
971
                    }
972
                    finally
973
                    {
974
                        connection.Dispose();
975
                    }
976
                }
977
            }
978
            else if (projectInfo.DBType == ID2DB_Type.MSSQL)
979
            {
980
                using (SqlConnection connection = GetSqlConnection())
981
                {
982
                    try
983
                    {
984
                        if (connection != null && connection.State == ConnectionState.Open)
985
                        {
986
                            using (SqlCommand cmd = connection.CreateCommand())
987
                            {
988
                                cmd.CommandText = string.Format(@"
989
                            SELECT lp.UID, lp.DisplayName, sp.APID_SYMBOL, spa.APID_ATTRIBUTE
990
                            FROM {0} as lp 
991
                                 LEFT OUTER JOIN {1} as sp 
992
                                      ON lp.UID = sp.UID
993
                                 LEFT OUTER JOIN {2} as spa 
994
                                      ON lp.UID = spa.UID;", LineProperties_TABLE, APID_SYMBOL_MAPPING_TABLE, APID_ATTRIBUTE_MAPPING_TABLE);
995
                                using (SqlDataReader dr = cmd.ExecuteReader())
996
                                    dt.Load(dr);
997
                            }
998
                            connection.Close();
999
                        }
1000
                    }
1001
                    catch (Exception ex)
1002
                    {
1003
                        Log.Write(ex.Message + "\r\n" + ex.StackTrace);
1004
                    }
1005
                    finally
1006
                    {
1007
                        if (connection != null)
1008
                            connection.Dispose();
1009
                    }
1010
                }
1011
            }
1012

  
1013
            return dt;
1014
        }
943 1015
        #endregion
944 1016

  
945 1017
        #region AVEVA
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 galleryItemGroup2 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup();
32
            DevExpress.XtraBars.Ribbon.GalleryItemGroup galleryItemGroup3 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup();
33 33
            this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl();
34 34
            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
35
            this.gridControlLineNumberAttribute = new DevExpress.XtraGrid.GridControl();
36
            this.gridViewLineNumberAttribute = new DevExpress.XtraGrid.Views.Grid.GridView();
37
            this.gridControlAttribute = new DevExpress.XtraGrid.GridControl();
38
            this.gridViewAttribute = new DevExpress.XtraGrid.Views.Grid.GridView();
35 39
            this.pictureEditMappedOPCOut = new DevExpress.XtraEditors.PictureEdit();
36 40
            this.pictureEditMappedOPCIn = new DevExpress.XtraEditors.PictureEdit();
37 41
            this.pictureEditID2OPC = new DevExpress.XtraEditors.PictureEdit();
......
52 56
            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
53 57
            this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
54 58
            this.tabbedControlGroup = new DevExpress.XtraLayout.TabbedControlGroup();
59
            this.GroupLine = new DevExpress.XtraLayout.LayoutControlGroup();
60
            this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
61
            this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
62
            this.layoutControlGroup12 = new DevExpress.XtraLayout.LayoutControlGroup();
63
            this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
64
            this.splitterItem7 = new DevExpress.XtraLayout.SplitterItem();
55 65
            this.GroupSymbol = new DevExpress.XtraLayout.LayoutControlGroup();
56 66
            this.splitterItem2 = new DevExpress.XtraLayout.SplitterItem();
57 67
            this.splitterItem3 = new DevExpress.XtraLayout.SplitterItem();
......
71 81
            this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
72 82
            this.layoutControlGroup10 = new DevExpress.XtraLayout.LayoutControlGroup();
73 83
            this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
74
            this.GroupLine = new DevExpress.XtraLayout.LayoutControlGroup();
75
            this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
76
            this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
84
            this.GroupAttribute = new DevExpress.XtraLayout.LayoutControlGroup();
85
            this.layoutControlGroup11 = new DevExpress.XtraLayout.LayoutControlGroup();
86
            this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
77 87
            this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
78 88
            this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
79 89
            this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem();
......
84 94
            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
85 95
            this.splitterItem4 = new DevExpress.XtraLayout.SplitterItem();
86 96
            this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
87
            this.GroupAttribute = new DevExpress.XtraLayout.LayoutControlGroup();
88
            this.gridControlAttribute = new DevExpress.XtraGrid.GridControl();
89
            this.gridViewAttribute = new DevExpress.XtraGrid.Views.Grid.GridView();
90
            this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
91
            this.layoutControlGroup11 = new DevExpress.XtraLayout.LayoutControlGroup();
97
            this.simpleSeparator1 = new DevExpress.XtraLayout.SimpleSeparator();
98
            this.splitterItem6 = new DevExpress.XtraLayout.SplitterItem();
92 99
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit();
93 100
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
94 101
            this.layoutControl1.SuspendLayout();
102
            ((System.ComponentModel.ISupportInitialize)(this.gridControlLineNumberAttribute)).BeginInit();
103
            ((System.ComponentModel.ISupportInitialize)(this.gridViewLineNumberAttribute)).BeginInit();
104
            ((System.ComponentModel.ISupportInitialize)(this.gridControlAttribute)).BeginInit();
105
            ((System.ComponentModel.ISupportInitialize)(this.gridViewAttribute)).BeginInit();
95 106
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditMappedOPCOut.Properties)).BeginInit();
96 107
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditMappedOPCIn.Properties)).BeginInit();
97 108
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditID2OPC.Properties)).BeginInit();
......
109 120
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
110 121
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
111 122
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).BeginInit();
123
            ((System.ComponentModel.ISupportInitialize)(this.GroupLine)).BeginInit();
124
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
125
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
126
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup12)).BeginInit();
127
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit();
128
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem7)).BeginInit();
112 129
            ((System.ComponentModel.ISupportInitialize)(this.GroupSymbol)).BeginInit();
113 130
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem2)).BeginInit();
114 131
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).BeginInit();
......
128 145
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
129 146
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup10)).BeginInit();
130 147
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit();
131
            ((System.ComponentModel.ISupportInitialize)(this.GroupLine)).BeginInit();
132
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
133
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
148
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).BeginInit();
149
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup11)).BeginInit();
150
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
134 151
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
135 152
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
136 153
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit();
......
141 158
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
142 159
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem4)).BeginInit();
143 160
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
144
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).BeginInit();
145
            ((System.ComponentModel.ISupportInitialize)(this.gridControlAttribute)).BeginInit();
146
            ((System.ComponentModel.ISupportInitialize)(this.gridViewAttribute)).BeginInit();
147
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
148
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup11)).BeginInit();
161
            ((System.ComponentModel.ISupportInitialize)(this.simpleSeparator1)).BeginInit();
162
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem6)).BeginInit();
149 163
            this.SuspendLayout();
150 164
            // 
151 165
            // ribbonControl
......
160 174
            this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False;
161 175
            this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages;
162 176
            this.ribbonControl.ShowToolbarCustomizeItem = false;
163
            this.ribbonControl.Size = new System.Drawing.Size(1123, 27);
177
            this.ribbonControl.Size = new System.Drawing.Size(1131, 32);
164 178
            this.ribbonControl.Toolbar.ShowCustomizeItem = false;
165 179
            // 
166 180
            // layoutControl1
167 181
            // 
182
            this.layoutControl1.Controls.Add(this.gridControlLineNumberAttribute);
168 183
            this.layoutControl1.Controls.Add(this.gridControlAttribute);
169 184
            this.layoutControl1.Controls.Add(this.pictureEditMappedOPCOut);
170 185
            this.layoutControl1.Controls.Add(this.pictureEditMappedOPCIn);
......
180 195
            this.layoutControl1.Controls.Add(this.btnClose);
181 196
            this.layoutControl1.Controls.Add(this.btnSave);
182 197
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
183
            this.layoutControl1.Location = new System.Drawing.Point(0, 27);
198
            this.layoutControl1.Location = new System.Drawing.Point(0, 32);
184 199
            this.layoutControl1.Name = "layoutControl1";
185 200
            this.layoutControl1.Root = this.Root;
186
            this.layoutControl1.Size = new System.Drawing.Size(1123, 735);
201
            this.layoutControl1.Size = new System.Drawing.Size(1131, 734);
187 202
            this.layoutControl1.TabIndex = 1;
188 203
            this.layoutControl1.Text = "layoutControl1";
189 204
            // 
205
            // gridControlLineNumberAttribute
206
            // 
207
            this.gridControlLineNumberAttribute.Location = new System.Drawing.Point(36, 401);
208
            this.gridControlLineNumberAttribute.MainView = this.gridViewLineNumberAttribute;
209
            this.gridControlLineNumberAttribute.MenuManager = this.ribbonControl;
210
            this.gridControlLineNumberAttribute.Name = "gridControlLineNumberAttribute";
211
            this.gridControlLineNumberAttribute.Size = new System.Drawing.Size(730, 257);
212
            this.gridControlLineNumberAttribute.TabIndex = 19;
213
            this.gridControlLineNumberAttribute.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
214
            this.gridViewLineNumberAttribute});
215
            // 
216
            // gridViewLineNumberAttribute
217
            // 
218
            this.gridViewLineNumberAttribute.GridControl = this.gridControlLineNumberAttribute;
219
            this.gridViewLineNumberAttribute.Name = "gridViewLineNumberAttribute";
220
            this.gridViewLineNumberAttribute.OptionsView.ShowGroupPanel = false;
221
            // 
222
            // gridControlAttribute
223
            // 
224
            this.gridControlAttribute.Location = new System.Drawing.Point(36, 79);
225
            this.gridControlAttribute.MainView = this.gridViewAttribute;
226
            this.gridControlAttribute.MenuManager = this.ribbonControl;
227
            this.gridControlAttribute.Name = "gridControlAttribute";
228
            this.gridControlAttribute.Size = new System.Drawing.Size(730, 579);
229
            this.gridControlAttribute.TabIndex = 18;
230
            this.gridControlAttribute.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
231
            this.gridViewAttribute});
232
            // 
233
            // gridViewAttribute
234
            // 
235
            this.gridViewAttribute.GridControl = this.gridControlAttribute;
236
            this.gridViewAttribute.Name = "gridViewAttribute";
237
            this.gridViewAttribute.OptionsView.ShowGroupPanel = false;
238
            // 
190 239
            // pictureEditMappedOPCOut
191 240
            // 
192
            this.pictureEditMappedOPCOut.Location = new System.Drawing.Point(542, 395);
241
            this.pictureEditMappedOPCOut.Location = new System.Drawing.Point(541, 401);
193 242
            this.pictureEditMappedOPCOut.MenuManager = this.ribbonControl;
194 243
            this.pictureEditMappedOPCOut.Name = "pictureEditMappedOPCOut";
195 244
            this.pictureEditMappedOPCOut.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
196
            this.pictureEditMappedOPCOut.Size = new System.Drawing.Size(227, 264);
245
            this.pictureEditMappedOPCOut.Size = new System.Drawing.Size(225, 257);
197 246
            this.pictureEditMappedOPCOut.StyleController = this.layoutControl1;
198 247
            this.pictureEditMappedOPCOut.TabIndex = 17;
199 248
            // 
200 249
            // pictureEditMappedOPCIn
201 250
            // 
202
            this.pictureEditMappedOPCIn.Location = new System.Drawing.Point(289, 395);
251
            this.pictureEditMappedOPCIn.Location = new System.Drawing.Point(289, 401);
203 252
            this.pictureEditMappedOPCIn.MenuManager = this.ribbonControl;
204 253
            this.pictureEditMappedOPCIn.Name = "pictureEditMappedOPCIn";
205 254
            this.pictureEditMappedOPCIn.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
206
            this.pictureEditMappedOPCIn.Size = new System.Drawing.Size(225, 264);
255
            this.pictureEditMappedOPCIn.Size = new System.Drawing.Size(224, 257);
207 256
            this.pictureEditMappedOPCIn.StyleController = this.layoutControl1;
208 257
            this.pictureEditMappedOPCIn.TabIndex = 16;
209 258
            // 
210 259
            // pictureEditID2OPC
211 260
            // 
212
            this.pictureEditID2OPC.Location = new System.Drawing.Point(36, 395);
261
            this.pictureEditID2OPC.Location = new System.Drawing.Point(36, 401);
213 262
            this.pictureEditID2OPC.MenuManager = this.ribbonControl;
214 263
            this.pictureEditID2OPC.Name = "pictureEditID2OPC";
215 264
            this.pictureEditID2OPC.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
216
            this.pictureEditID2OPC.Size = new System.Drawing.Size(225, 264);
265
            this.pictureEditID2OPC.Size = new System.Drawing.Size(225, 257);
217 266
            this.pictureEditID2OPC.StyleController = this.layoutControl1;
218 267
            this.pictureEditID2OPC.TabIndex = 15;
219 268
            // 
220 269
            // gridControlOPC
221 270
            // 
222
            this.gridControlOPC.Location = new System.Drawing.Point(36, 78);
271
            this.gridControlOPC.Location = new System.Drawing.Point(36, 79);
223 272
            this.gridControlOPC.MainView = this.gridViewOPC;
224 273
            this.gridControlOPC.MenuManager = this.ribbonControl;
225 274
            this.gridControlOPC.Name = "gridControlOPC";
226
            this.gridControlOPC.Size = new System.Drawing.Size(733, 265);
275
            this.gridControlOPC.Size = new System.Drawing.Size(730, 263);
227 276
            this.gridControlOPC.TabIndex = 14;
228 277
            this.gridControlOPC.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
229 278
            this.gridViewOPC});
......
236 285
            // 
237 286
            // gridControlLine
238 287
            // 
239
            this.gridControlLine.Location = new System.Drawing.Point(36, 78);
288
            this.gridControlLine.Location = new System.Drawing.Point(36, 79);
240 289
            this.gridControlLine.MainView = this.gridViewLine;
241 290
            this.gridControlLine.MenuManager = this.ribbonControl;
242 291
            this.gridControlLine.Name = "gridControlLine";
243
            this.gridControlLine.Size = new System.Drawing.Size(733, 581);
292
            this.gridControlLine.Size = new System.Drawing.Size(730, 263);
244 293
            this.gridControlLine.TabIndex = 13;
245 294
            this.gridControlLine.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
246 295
            this.gridViewLine});
......
254 303
            // btnRefreshSymbol
255 304
            // 
256 305
            this.btnRefreshSymbol.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnRefreshSymbol.ImageOptions.SvgImage")));
257
            this.btnRefreshSymbol.Location = new System.Drawing.Point(802, 645);
306
            this.btnRefreshSymbol.Location = new System.Drawing.Point(804, 646);
258 307
            this.btnRefreshSymbol.Name = "btnRefreshSymbol";
259
            this.btnRefreshSymbol.Size = new System.Drawing.Size(309, 38);
308
            this.btnRefreshSymbol.Size = new System.Drawing.Size(315, 36);
260 309
            this.btnRefreshSymbol.StyleController = this.layoutControl1;
261 310
            this.btnRefreshSymbol.TabIndex = 12;
262 311
            this.btnRefreshSymbol.Text = "Refresh AVEVA Symbol Image";
......
268 317
            // 
269 318
            // 
270 319
            // 
271
            galleryItemGroup2.Caption = "Items";
320
            galleryItemGroup3.Caption = "Items";
272 321
            this.galleryControlAvevaSymbols.Gallery.Groups.AddRange(new DevExpress.XtraBars.Ribbon.GalleryItemGroup[] {
273
            galleryItemGroup2});
322
            galleryItemGroup3});
274 323
            this.galleryControlAvevaSymbols.Gallery.ItemDoubleClick += new DevExpress.XtraBars.Ribbon.GalleryItemClickEventHandler(this.galleryControlAvevaSymbols_Gallery_ItemDoubleClick);
275
            this.galleryControlAvevaSymbols.Location = new System.Drawing.Point(814, 273);
324
            this.galleryControlAvevaSymbols.Location = new System.Drawing.Point(816, 279);
276 325
            this.galleryControlAvevaSymbols.Name = "galleryControlAvevaSymbols";
277
            this.galleryControlAvevaSymbols.Size = new System.Drawing.Size(285, 356);
326
            this.galleryControlAvevaSymbols.Size = new System.Drawing.Size(291, 351);
278 327
            this.galleryControlAvevaSymbols.StyleController = this.layoutControl1;
279 328
            this.galleryControlAvevaSymbols.TabIndex = 11;
280 329
            this.galleryControlAvevaSymbols.Text = "galleryControl1";
......
283 332
            // 
284 333
            this.galleryControlClient1.GalleryControl = this.galleryControlAvevaSymbols;
285 334
            this.galleryControlClient1.Location = new System.Drawing.Point(2, 2);
286
            this.galleryControlClient1.Size = new System.Drawing.Size(264, 352);
335
            this.galleryControlClient1.Size = new System.Drawing.Size(270, 347);
287 336
            // 
288 337
            // pictureEditMapped
289 338
            // 
290
            this.pictureEditMapped.Location = new System.Drawing.Point(420, 395);
339
            this.pictureEditMapped.Location = new System.Drawing.Point(423, 401);
291 340
            this.pictureEditMapped.MenuManager = this.ribbonControl;
292 341
            this.pictureEditMapped.Name = "pictureEditMapped";
293 342
            this.pictureEditMapped.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
294
            this.pictureEditMapped.Size = new System.Drawing.Size(349, 264);
343
            this.pictureEditMapped.Size = new System.Drawing.Size(343, 257);
295 344
            this.pictureEditMapped.StyleController = this.layoutControl1;
296 345
            this.pictureEditMapped.TabIndex = 10;
297 346
            // 
298 347
            // pictureEditID2Symbol
299 348
            // 
300
            this.pictureEditID2Symbol.Location = new System.Drawing.Point(36, 395);
349
            this.pictureEditID2Symbol.Location = new System.Drawing.Point(36, 401);
301 350
            this.pictureEditID2Symbol.MenuManager = this.ribbonControl;
302 351
            this.pictureEditID2Symbol.Name = "pictureEditID2Symbol";
303 352
            this.pictureEditID2Symbol.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
304
            this.pictureEditID2Symbol.Size = new System.Drawing.Size(351, 264);
353
            this.pictureEditID2Symbol.Size = new System.Drawing.Size(349, 257);
305 354
            this.pictureEditID2Symbol.StyleController = this.layoutControl1;
306 355
            this.pictureEditID2Symbol.TabIndex = 9;
307 356
            // 
308 357
            // treeListAvevaSymbol
309 358
            // 
310 359
            this.treeListAvevaSymbol.Cursor = System.Windows.Forms.Cursors.Default;
311
            this.treeListAvevaSymbol.Location = new System.Drawing.Point(814, 43);
360
            this.treeListAvevaSymbol.Location = new System.Drawing.Point(816, 45);
312 361
            this.treeListAvevaSymbol.Name = "treeListAvevaSymbol";
313
            this.treeListAvevaSymbol.Size = new System.Drawing.Size(285, 178);
362
            this.treeListAvevaSymbol.Size = new System.Drawing.Size(291, 175);
314 363
            this.treeListAvevaSymbol.TabIndex = 8;
315 364
            // 
316 365
            // gridControlSymbol
317 366
            // 
318
            this.gridControlSymbol.Location = new System.Drawing.Point(36, 78);
367
            this.gridControlSymbol.Location = new System.Drawing.Point(36, 79);
319 368
            this.gridControlSymbol.MainView = this.gridViewSymbol;
320 369
            this.gridControlSymbol.MenuManager = this.ribbonControl;
321 370
            this.gridControlSymbol.Name = "gridControlSymbol";
322
            this.gridControlSymbol.Size = new System.Drawing.Size(733, 265);
371
            this.gridControlSymbol.Size = new System.Drawing.Size(730, 263);
323 372
            this.gridControlSymbol.TabIndex = 7;
324 373
            this.gridControlSymbol.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
325 374
            this.gridViewSymbol});
......
335 384
            // btnClose
336 385
            // 
337 386
            this.btnClose.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnClose.ImageOptions.SvgImage")));
338
            this.btnClose.Location = new System.Drawing.Point(1025, 687);
387
            this.btnClose.Location = new System.Drawing.Point(1033, 686);
339 388
            this.btnClose.Name = "btnClose";
340 389
            this.btnClose.Size = new System.Drawing.Size(86, 36);
341 390
            this.btnClose.StyleController = this.layoutControl1;
......
346 395
            // btnSave
347 396
            // 
348 397
            this.btnSave.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnSave.ImageOptions.SvgImage")));
349
            this.btnSave.Location = new System.Drawing.Point(927, 687);
398
            this.btnSave.Location = new System.Drawing.Point(935, 686);
350 399
            this.btnSave.Name = "btnSave";
351 400
            this.btnSave.Size = new System.Drawing.Size(84, 36);
352 401
            this.btnSave.StyleController = this.layoutControl1;
......
370 419
            this.splitterItem4,
371 420
            this.layoutControlItem8});
372 421
            this.Root.Name = "Root";
373
            this.Root.Size = new System.Drawing.Size(1123, 735);
422
            this.Root.Size = new System.Drawing.Size(1131, 734);
374 423
            this.Root.TextVisible = false;
375 424
            // 
376 425
            // emptySpaceItem1
377 426
            // 
378 427
            this.emptySpaceItem1.AllowHotTrack = false;
379
            this.emptySpaceItem1.Location = new System.Drawing.Point(0, 675);
428
            this.emptySpaceItem1.Location = new System.Drawing.Point(0, 674);
380 429
            this.emptySpaceItem1.MinSize = new System.Drawing.Size(104, 24);
381 430
            this.emptySpaceItem1.Name = "emptySpaceItem1";
382
            this.emptySpaceItem1.Size = new System.Drawing.Size(915, 40);
431
            this.emptySpaceItem1.Size = new System.Drawing.Size(923, 40);
383 432
            this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
384 433
            this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
385 434
            // 
......
387 436
            // 
388 437
            this.tabbedControlGroup.Location = new System.Drawing.Point(0, 0);
389 438
            this.tabbedControlGroup.Name = "tabbedControlGroup";
390
            this.tabbedControlGroup.SelectedTabPage = this.GroupSymbol;
391
            this.tabbedControlGroup.Size = new System.Drawing.Size(785, 675);
439
            this.tabbedControlGroup.SelectedTabPage = this.GroupLine;
440
            this.tabbedControlGroup.Size = new System.Drawing.Size(782, 674);
392 441
            this.tabbedControlGroup.TabPages.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
393 442
            this.GroupSymbol,
394 443
            this.GroupOPC,
395 444
            this.GroupLine,
396 445
            this.GroupAttribute});
397 446
            // 
447
            // GroupLine
448
            // 
449
            this.GroupLine.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
450
            this.layoutControlGroup1,
451
            this.layoutControlGroup12,
452
            this.splitterItem7});
453
            this.GroupLine.Location = new System.Drawing.Point(0, 0);
454
            this.GroupLine.Name = "GroupLine";
455
            this.GroupLine.Size = new System.Drawing.Size(758, 628);
456
            this.GroupLine.Text = "Line";
457
            // 
458
            // layoutControlGroup1
459
            // 
460
            this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
461
            this.layoutControlItem9});
462
            this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
463
            this.layoutControlGroup1.Name = "layoutControlGroup1";
464
            this.layoutControlGroup1.Size = new System.Drawing.Size(758, 312);
465
            this.layoutControlGroup1.Text = "ID2 Line List";
466
            // 
467
            // layoutControlItem9
468
            // 
469
            this.layoutControlItem9.Control = this.gridControlLine;
470
            this.layoutControlItem9.Location = new System.Drawing.Point(0, 0);
471
            this.layoutControlItem9.Name = "layoutControlItem9";
472
            this.layoutControlItem9.Size = new System.Drawing.Size(734, 267);
473
            this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
474
            this.layoutControlItem9.TextVisible = false;
475
            // 
476
            // layoutControlGroup12
477
            // 
478
            this.layoutControlGroup12.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
479
            this.layoutControlItem15});
480
            this.layoutControlGroup12.Location = new System.Drawing.Point(0, 322);
481
            this.layoutControlGroup12.Name = "layoutControlGroup12";
482
            this.layoutControlGroup12.Size = new System.Drawing.Size(758, 306);
483
            this.layoutControlGroup12.Text = "Line Number Attribute";
484
            // 
485
            // layoutControlItem15
486
            // 
487
            this.layoutControlItem15.Control = this.gridControlLineNumberAttribute;
488
            this.layoutControlItem15.Location = new System.Drawing.Point(0, 0);
489
            this.layoutControlItem15.Name = "layoutControlItem15";
490
            this.layoutControlItem15.Size = new System.Drawing.Size(734, 261);
491
            this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0);
492
            this.layoutControlItem15.TextVisible = false;
493
            // 
494
            // splitterItem7
495
            // 
496
            this.splitterItem7.AllowHotTrack = true;
497
            this.splitterItem7.Location = new System.Drawing.Point(0, 312);
498
            this.splitterItem7.Name = "splitterItem7";
499
            this.splitterItem7.Size = new System.Drawing.Size(758, 10);
500
            // 
398 501
            // GroupSymbol
399 502
            // 
400 503
            this.GroupSymbol.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
......
405 508
            this.layoutControlGroup7});
406 509
            this.GroupSymbol.Location = new System.Drawing.Point(0, 0);
407 510
            this.GroupSymbol.Name = "GroupSymbol";
408
            this.GroupSymbol.Size = new System.Drawing.Size(761, 628);
511
            this.GroupSymbol.Size = new System.Drawing.Size(758, 628);
409 512
            this.GroupSymbol.Text = "Symbol";
410 513
            // 
411 514
            // splitterItem2
......
413 516
            this.splitterItem2.AllowHotTrack = true;
414 517
            this.splitterItem2.Location = new System.Drawing.Point(0, 312);
415 518
            this.splitterItem2.Name = "splitterItem2";
416
            this.splitterItem2.Size = new System.Drawing.Size(761, 5);
519
            this.splitterItem2.Size = new System.Drawing.Size(758, 10);
417 520
            // 
418 521
            // splitterItem3
419 522
            // 
420 523
            this.splitterItem3.AllowHotTrack = true;
421
            this.splitterItem3.Location = new System.Drawing.Point(379, 317);
524
            this.splitterItem3.Location = new System.Drawing.Point(377, 322);
422 525
            this.splitterItem3.Name = "splitterItem3";
423
            this.splitterItem3.Size = new System.Drawing.Size(5, 311);
526
            this.splitterItem3.Size = new System.Drawing.Size(10, 306);
424 527
            // 
425 528
            // layoutControlGroup4
426 529
            // 
427 530
            this.layoutControlGroup4.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
428 531
            this.layoutControlItem5});
429
            this.layoutControlGroup4.Location = new System.Drawing.Point(0, 317);
532
            this.layoutControlGroup4.Location = new System.Drawing.Point(0, 322);
430 533
            this.layoutControlGroup4.Name = "layoutControlGroup4";
431
            this.layoutControlGroup4.Size = new System.Drawing.Size(379, 311);
534
            this.layoutControlGroup4.Size = new System.Drawing.Size(377, 306);
432 535
            this.layoutControlGroup4.Text = "ID2 Image";
433 536
            // 
434 537
            // layoutControlItem5
......
436 539
            this.layoutControlItem5.Control = this.pictureEditID2Symbol;
437 540
            this.layoutControlItem5.Location = new System.Drawing.Point(0, 0);
438 541
            this.layoutControlItem5.Name = "layoutControlItem5";
439
            this.layoutControlItem5.Size = new System.Drawing.Size(355, 268);
542
            this.layoutControlItem5.Size = new System.Drawing.Size(353, 261);
440 543
            this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
441 544
            this.layoutControlItem5.TextVisible = false;
442 545
            // 
......
444 547
            // 
445 548
            this.layoutControlGroup5.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
446 549
            this.layoutControlItem6});
447
            this.layoutControlGroup5.Location = new System.Drawing.Point(384, 317);
550
            this.layoutControlGroup5.Location = new System.Drawing.Point(387, 322);
448 551
            this.layoutControlGroup5.Name = "layoutControlGroup5";
449
            this.layoutControlGroup5.Size = new System.Drawing.Size(377, 311);
552
            this.layoutControlGroup5.Size = new System.Drawing.Size(371, 306);
450 553
            this.layoutControlGroup5.Text = "Mapped Image";
451 554
            // 
452 555
            // layoutControlItem6
......
454 557
            this.layoutControlItem6.Control = this.pictureEditMapped;
455 558
            this.layoutControlItem6.Location = new System.Drawing.Point(0, 0);
456 559
            this.layoutControlItem6.Name = "layoutControlItem6";
457
            this.layoutControlItem6.Size = new System.Drawing.Size(353, 268);
560
            this.layoutControlItem6.Size = new System.Drawing.Size(347, 261);
458 561
            this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
459 562
            this.layoutControlItem6.TextVisible = false;
460 563
            // 
......
464 567
            this.layoutControlItem4});
465 568
            this.layoutControlGroup7.Location = new System.Drawing.Point(0, 0);
466 569
            this.layoutControlGroup7.Name = "layoutControlGroup7";
467
            this.layoutControlGroup7.Size = new System.Drawing.Size(761, 312);
570
            this.layoutControlGroup7.Size = new System.Drawing.Size(758, 312);
468 571
            this.layoutControlGroup7.Text = "ID2 Symbol List";
469 572
            // 
470 573
            // layoutControlItem4
......
472 575
            this.layoutControlItem4.Control = this.gridControlSymbol;
473 576
            this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
474 577
            this.layoutControlItem4.Name = "layoutControlItem4";
475
            this.layoutControlItem4.Size = new System.Drawing.Size(737, 269);
578
            this.layoutControlItem4.Size = new System.Drawing.Size(734, 267);
476 579
            this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
477 580
            this.layoutControlItem4.TextVisible = false;
478 581
            // 
......
486 589
            this.layoutControlGroup10});
487 590
            this.GroupOPC.Location = new System.Drawing.Point(0, 0);
488 591
            this.GroupOPC.Name = "GroupOPC";
489
            this.GroupOPC.Size = new System.Drawing.Size(761, 628);
592
            this.GroupOPC.Size = new System.Drawing.Size(758, 628);
490 593
            this.GroupOPC.Text = "OPC Symbol";
491 594
            // 
492 595
            // layoutControlGroup2
......
495 598
            this.layoutControlItem10});
496 599
            this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0);
497 600
            this.layoutControlGroup2.Name = "layoutControlGroup2";
498
            this.layoutControlGroup2.Size = new System.Drawing.Size(761, 312);
601
            this.layoutControlGroup2.Size = new System.Drawing.Size(758, 312);
499 602
            this.layoutControlGroup2.Text = "OPC Symbol";
500 603
            // 
501 604
            // layoutControlItem10
......
503 606
            this.layoutControlItem10.Control = this.gridControlOPC;
504 607
            this.layoutControlItem10.Location = new System.Drawing.Point(0, 0);
505 608
            this.layoutControlItem10.Name = "layoutControlItem10";
506
            this.layoutControlItem10.Size = new System.Drawing.Size(737, 269);
609
            this.layoutControlItem10.Size = new System.Drawing.Size(734, 267);
507 610
            this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
508 611
            this.layoutControlItem10.TextVisible = false;
509 612
            // 
......
512 615
            this.splitterItem5.AllowHotTrack = true;
513 616
            this.splitterItem5.Location = new System.Drawing.Point(0, 312);
514 617
            this.splitterItem5.Name = "splitterItem5";
515
            this.splitterItem5.Size = new System.Drawing.Size(761, 5);
618
            this.splitterItem5.Size = new System.Drawing.Size(758, 10);
516 619
            // 
517 620
            // layoutControlGroup8
518 621
            // 
519 622
            this.layoutControlGroup8.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
520 623
            this.layoutControlItem11});
521
            this.layoutControlGroup8.Location = new System.Drawing.Point(0, 317);
624
            this.layoutControlGroup8.Location = new System.Drawing.Point(0, 322);
522 625
            this.layoutControlGroup8.Name = "layoutControlGroup8";
523
            this.layoutControlGroup8.Size = new System.Drawing.Size(253, 311);
626
            this.layoutControlGroup8.Size = new System.Drawing.Size(253, 306);
524 627
            this.layoutControlGroup8.Text = "ID2 Image";
525 628
            // 
526 629
            // layoutControlItem11
......
528 631
            this.layoutControlItem11.Control = this.pictureEditID2OPC;
529 632
            this.layoutControlItem11.Location = new System.Drawing.Point(0, 0);
530 633
            this.layoutControlItem11.Name = "layoutControlItem11";
531
            this.layoutControlItem11.Size = new System.Drawing.Size(229, 268);
634
            this.layoutControlItem11.Size = new System.Drawing.Size(229, 261);
532 635
            this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
533 636
            this.layoutControlItem11.TextVisible = false;
534 637
            // 
......
536 639
            // 
537 640
            this.layoutControlGroup9.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
538 641
            this.layoutControlItem12});
539
            this.layoutControlGroup9.Location = new System.Drawing.Point(253, 317);
642
            this.layoutControlGroup9.Location = new System.Drawing.Point(253, 322);
540 643
            this.layoutControlGroup9.Name = "layoutControlGroup9";
541
            this.layoutControlGroup9.Size = new System.Drawing.Size(253, 311);
644
            this.layoutControlGroup9.Size = new System.Drawing.Size(252, 306);
542 645
            this.layoutControlGroup9.Text = "Mapped In-OPC Image";
543 646
            // 
544 647
            // layoutControlItem12
......
546 649
            this.layoutControlItem12.Control = this.pictureEditMappedOPCIn;
547 650
            this.layoutControlItem12.Location = new System.Drawing.Point(0, 0);
548 651
            this.layoutControlItem12.Name = "layoutControlItem12";
549
            this.layoutControlItem12.Size = new System.Drawing.Size(229, 268);
652
            this.layoutControlItem12.Size = new System.Drawing.Size(228, 261);
550 653
            this.layoutControlItem12.TextSize = new System.Drawing.Size(0, 0);
551 654
            this.layoutControlItem12.TextVisible = false;
552 655
            // 
......
554 657
            // 
555 658
            this.layoutControlGroup10.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
556 659
            this.layoutControlItem13});
557
            this.layoutControlGroup10.Location = new System.Drawing.Point(506, 317);
660
            this.layoutControlGroup10.Location = new System.Drawing.Point(505, 322);
558 661
            this.layoutControlGroup10.Name = "layoutControlGroup10";
559
            this.layoutControlGroup10.Size = new System.Drawing.Size(255, 311);
662
            this.layoutControlGroup10.Size = new System.Drawing.Size(253, 306);
560 663
            this.layoutControlGroup10.Text = "Mapped Out-OPC Image";
561 664
            // 
562 665
            // layoutControlItem13
......
564 667
            this.layoutControlItem13.Control = this.pictureEditMappedOPCOut;
565 668
            this.layoutControlItem13.Location = new System.Drawing.Point(0, 0);
566 669
            this.layoutControlItem13.Name = "layoutControlItem13";
567
            this.layoutControlItem13.Size = new System.Drawing.Size(231, 268);
670
            this.layoutControlItem13.Size = new System.Drawing.Size(229, 261);
568 671
            this.layoutControlItem13.TextSize = new System.Drawing.Size(0, 0);
569 672
            this.layoutControlItem13.TextVisible = false;
570 673
            // 
571
            // GroupLine
674
            // GroupAttribute
572 675
            // 
573
            this.GroupLine.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
574
            this.layoutControlGroup1});
575
            this.GroupLine.Location = new System.Drawing.Point(0, 0);
576
            this.GroupLine.Name = "GroupLine";
577
            this.GroupLine.Size = new System.Drawing.Size(761, 628);
578
            this.GroupLine.Text = "Line";
676
            this.GroupAttribute.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
677
            this.layoutControlGroup11});
678
            this.GroupAttribute.Location = new System.Drawing.Point(0, 0);
679
            this.GroupAttribute.Name = "GroupAttribute";
680
            this.GroupAttribute.Size = new System.Drawing.Size(758, 628);
681
            this.GroupAttribute.Text = "Attribute";
579 682
            // 
580
            // layoutControlGroup1
683
            // layoutControlGroup11
581 684
            // 
582
            this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
583
            this.layoutControlItem9});
584
            this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
585
            this.layoutControlGroup1.Name = "layoutControlGroup1";
586
            this.layoutControlGroup1.Size = new System.Drawing.Size(761, 628);
587
            this.layoutControlGroup1.Text = "ID2 Line List";
685
            this.layoutControlGroup11.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
686
            this.layoutControlItem14});
687
            this.layoutControlGroup11.Location = new System.Drawing.Point(0, 0);
688
            this.layoutControlGroup11.Name = "layoutControlGroup11";
689
            this.layoutControlGroup11.Size = new System.Drawing.Size(758, 628);
690
            this.layoutControlGroup11.Text = "ID2 Attribute List";
588 691
            // 
589
            // layoutControlItem9
692
            // layoutControlItem14
590 693
            // 
591
            this.layoutControlItem9.Control = this.gridControlLine;
592
            this.layoutControlItem9.Location = new System.Drawing.Point(0, 0);
593
            this.layoutControlItem9.Name = "layoutControlItem9";
594
            this.layoutControlItem9.Size = new System.Drawing.Size(737, 585);
595
            this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
596
            this.layoutControlItem9.TextVisible = false;
694
            this.layoutControlItem14.Control = this.gridControlAttribute;
695
            this.layoutControlItem14.Location = new System.Drawing.Point(0, 0);
696
            this.layoutControlItem14.Name = "layoutControlItem14";
697
            this.layoutControlItem14.Size = new System.Drawing.Size(734, 583);
698
            this.layoutControlItem14.TextSize = new System.Drawing.Size(0, 0);
699
            this.layoutControlItem14.TextVisible = false;
597 700
            // 
598 701
            // layoutControlItem2
599 702
            // 
600 703
            this.layoutControlItem2.Control = this.btnSave;
601
            this.layoutControlItem2.Location = new System.Drawing.Point(915, 675);
704
            this.layoutControlItem2.Location = new System.Drawing.Point(923, 674);
602 705
            this.layoutControlItem2.MaxSize = new System.Drawing.Size(88, 40);
603 706
            this.layoutControlItem2.MinSize = new System.Drawing.Size(88, 40);
604 707
            this.layoutControlItem2.Name = "layoutControlItem2";
......
610 713
            // layoutControlItem3
611 714
            // 
612 715
            this.layoutControlItem3.Control = this.btnClose;
613
            this.layoutControlItem3.Location = new System.Drawing.Point(1013, 675);
716
            this.layoutControlItem3.Location = new System.Drawing.Point(1021, 674);
614 717
            this.layoutControlItem3.MaxSize = new System.Drawing.Size(90, 40);
615 718
            this.layoutControlItem3.MinSize = new System.Drawing.Size(90, 40);
616 719
            this.layoutControlItem3.Name = "layoutControlItem3";
......
622 725
            // splitterItem1
623 726
            // 
624 727
            this.splitterItem1.AllowHotTrack = true;
625
            this.splitterItem1.Location = new System.Drawing.Point(785, 0);
728
            this.splitterItem1.Location = new System.Drawing.Point(782, 0);
626 729
            this.splitterItem1.Name = "splitterItem1";
627
            this.splitterItem1.Size = new System.Drawing.Size(5, 675);
730
            this.splitterItem1.Size = new System.Drawing.Size(10, 674);
628 731
            // 
629 732
            // layoutControlGroup3
630 733
            // 
631 734
            this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
632 735
            this.layoutControlItem1});
633
            this.layoutControlGroup3.Location = new System.Drawing.Point(790, 0);
736
            this.layoutControlGroup3.Location = new System.Drawing.Point(792, 0);
634 737
            this.layoutControlGroup3.Name = "layoutControlGroup3";
635
            this.layoutControlGroup3.Size = new System.Drawing.Size(313, 225);
738
            this.layoutControlGroup3.Size = new System.Drawing.Size(319, 224);
636 739
            this.layoutControlGroup3.Text = "Aveva Symbol Structure";
637 740
            // 
638 741
            // layoutControlItem1
......
640 743
            this.layoutControlItem1.Control = this.treeListAvevaSymbol;
641 744
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
642 745
            this.layoutControlItem1.Name = "layoutControlItem1";
643
            this.layoutControlItem1.Size = new System.Drawing.Size(289, 182);
746
            this.layoutControlItem1.Size = new System.Drawing.Size(295, 179);
644 747
            this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
645 748
            this.layoutControlItem1.TextVisible = false;
646 749
            // 
647 750
            // emptySpaceItem2
648 751
            // 
649 752
            this.emptySpaceItem2.AllowHotTrack = false;
650
            this.emptySpaceItem2.Location = new System.Drawing.Point(1003, 675);
753
            this.emptySpaceItem2.Location = new System.Drawing.Point(1011, 674);
651 754
            this.emptySpaceItem2.MaxSize = new System.Drawing.Size(10, 40);
652 755
            this.emptySpaceItem2.MinSize = new System.Drawing.Size(10, 40);
653 756
            this.emptySpaceItem2.Name = "emptySpaceItem2";
......
659 762
            // 
660 763
            this.layoutControlGroup6.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
661 764
            this.layoutControlItem7});
662
            this.layoutControlGroup6.Location = new System.Drawing.Point(790, 230);
765
            this.layoutControlGroup6.Location = new System.Drawing.Point(792, 234);
663 766
            this.layoutControlGroup6.Name = "layoutControlGroup6";
664
            this.layoutControlGroup6.Size = new System.Drawing.Size(313, 403);
767
            this.layoutControlGroup6.Size = new System.Drawing.Size(319, 400);
665 768
            this.layoutControlGroup6.Text = "Aveva Symbols";
666 769
            // 
667 770
            // layoutControlItem7
......
669 772
            this.layoutControlItem7.Control = this.galleryControlAvevaSymbols;
670 773
            this.layoutControlItem7.Location = new System.Drawing.Point(0, 0);
671 774
            this.layoutControlItem7.Name = "layoutControlItem7";
672
            this.layoutControlItem7.Size = new System.Drawing.Size(289, 360);
775
            this.layoutControlItem7.Size = new System.Drawing.Size(295, 355);
673 776
            this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
674 777
            this.layoutControlItem7.TextVisible = false;
675 778
            // 
676 779
            // splitterItem4
677 780
            // 
678 781
            this.splitterItem4.AllowHotTrack = true;
679
            this.splitterItem4.Location = new System.Drawing.Point(790, 225);
782
            this.splitterItem4.Location = new System.Drawing.Point(792, 224);
680 783
            this.splitterItem4.Name = "splitterItem4";
681
            this.splitterItem4.Size = new System.Drawing.Size(313, 5);
784
            this.splitterItem4.Size = new System.Drawing.Size(319, 10);
682 785
            // 
683 786
            // layoutControlItem8
684 787
            // 
685 788
            this.layoutControlItem8.Control = this.btnRefreshSymbol;
686
            this.layoutControlItem8.Location = new System.Drawing.Point(790, 633);
789
            this.layoutControlItem8.Location = new System.Drawing.Point(792, 634);
687 790
            this.layoutControlItem8.Name = "layoutControlItem8";
688
            this.layoutControlItem8.Size = new System.Drawing.Size(313, 42);
791
            this.layoutControlItem8.Size = new System.Drawing.Size(319, 40);
689 792
            this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
690 793
            this.layoutControlItem8.TextVisible = false;
691 794
            // 
692
            // GroupAttribute
795
            // simpleSeparator1
693 796
            // 
694
            this.GroupAttribute.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
695
            this.layoutControlGroup11});
696
            this.GroupAttribute.Location = new System.Drawing.Point(0, 0);
697
            this.GroupAttribute.Name = "GroupAttribute";
698
            this.GroupAttribute.Size = new System.Drawing.Size(761, 628);
699
            this.GroupAttribute.Text = "Attribute";
797
            this.simpleSeparator1.AllowHotTrack = false;
798
            this.simpleSeparator1.Location = new System.Drawing.Point(0, 319);
799
            this.simpleSeparator1.Name = "simpleSeparator1";
800
            this.simpleSeparator1.Size = new System.Drawing.Size(737, 2);
700 801
            // 
701
            // gridControlAttribute
802
            // splitterItem6
702 803
            // 
703
            this.gridControlAttribute.Location = new System.Drawing.Point(36, 78);
704
            this.gridControlAttribute.MainView = this.gridViewAttribute;
705
            this.gridControlAttribute.MenuManager = this.ribbonControl;
706
            this.gridControlAttribute.Name = "gridControlAttribute";
707
            this.gridControlAttribute.Size = new System.Drawing.Size(733, 581);
708
            this.gridControlAttribute.TabIndex = 18;
709
            this.gridControlAttribute.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
710
            this.gridViewAttribute});
711
            // 
712
            // gridViewAttribute
713
            // 
714
            this.gridViewAttribute.GridControl = this.gridControlAttribute;
715
            this.gridViewAttribute.Name = "gridViewAttribute";
716
            this.gridViewAttribute.OptionsView.ShowGroupPanel = false;
717
            // 
718
            // layoutControlItem14
719
            // 
720
            this.layoutControlItem14.Control = this.gridControlAttribute;
721
            this.layoutControlItem14.Location = new System.Drawing.Point(0, 0);
722
            this.layoutControlItem14.Name = "layoutControlItem14";
723
            this.layoutControlItem14.Size = new System.Drawing.Size(737, 585);
724
            this.layoutControlItem14.TextSize = new System.Drawing.Size(0, 0);
725
            this.layoutControlItem14.TextVisible = false;
726
            // 
727
            // layoutControlGroup11
728
            // 
729
            this.layoutControlGroup11.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
730
            this.layoutControlItem14});
731
            this.layoutControlGroup11.Location = new System.Drawing.Point(0, 0);
732
            this.layoutControlGroup11.Name = "layoutControlGroup11";
733
            this.layoutControlGroup11.Size = new System.Drawing.Size(761, 628);
734
            this.layoutControlGroup11.Text = "ID2 Attribute List";
804
            this.splitterItem6.AllowHotTrack = true;
805
            this.splitterItem6.Location = new System.Drawing.Point(0, 266);
806
            this.splitterItem6.Name = "splitterItem6";
807
            this.splitterItem6.Size = new System.Drawing.Size(737, 5);
735 808
            // 
736 809
            // MappingForm
737 810
            // 
738 811
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
739 812
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
740
            this.ClientSize = new System.Drawing.Size(1123, 762);
813
            this.ClientSize = new System.Drawing.Size(1131, 766);
741 814
            this.Controls.Add(this.layoutControl1);
742 815
            this.Controls.Add(this.ribbonControl);
743 816
            this.Name = "MappingForm";
......
749 822
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit();
750 823
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
751 824
            this.layoutControl1.ResumeLayout(false);
825
            ((System.ComponentModel.ISupportInitialize)(this.gridControlLineNumberAttribute)).EndInit();
826
            ((System.ComponentModel.ISupportInitialize)(this.gridViewLineNumberAttribute)).EndInit();
827
            ((System.ComponentModel.ISupportInitialize)(this.gridControlAttribute)).EndInit();
828
            ((System.ComponentModel.ISupportInitialize)(this.gridViewAttribute)).EndInit();
752 829
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditMappedOPCOut.Properties)).EndInit();
753 830
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditMappedOPCIn.Properties)).EndInit();
754 831
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditID2OPC.Properties)).EndInit();
......
766 843
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
767 844
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
768 845
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).EndInit();
846
            ((System.ComponentModel.ISupportInitialize)(this.GroupLine)).EndInit();
847
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
848
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
849
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup12)).EndInit();
850
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit();
851
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem7)).EndInit();
769 852
            ((System.ComponentModel.ISupportInitialize)(this.GroupSymbol)).EndInit();
770 853
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem2)).EndInit();
771 854
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).EndInit();
......
785 868
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
786 869
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup10)).EndInit();
787 870
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit();
788
            ((System.ComponentModel.ISupportInitialize)(this.GroupLine)).EndInit();
789
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
790
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
871
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).EndInit();
872
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup11)).EndInit();
873
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
791 874
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
792 875
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
793 876
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit();
......
798 881
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
799 882
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem4)).EndInit();
800 883
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
801
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).EndInit();
802
            ((System.ComponentModel.ISupportInitialize)(this.gridControlAttribute)).EndInit();
803
            ((System.ComponentModel.ISupportInitialize)(this.gridViewAttribute)).EndInit();
804
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
805
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup11)).EndInit();
884
            ((System.ComponentModel.ISupportInitialize)(this.simpleSeparator1)).EndInit();
885
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem6)).EndInit();
806 886
            this.ResumeLayout(false);
807 887
            this.PerformLayout();
808 888

  
......
869 949
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewAttribute;
870 950
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup11;
871 951
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14;
952
        private DevExpress.XtraGrid.GridControl gridControlLineNumberAttribute;
953
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewLineNumberAttribute;
954
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup12;
955
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15;
956
        private DevExpress.XtraLayout.SimpleSeparator simpleSeparator1;
957
        private DevExpress.XtraLayout.SplitterItem splitterItem6;
958
        private DevExpress.XtraLayout.SplitterItem splitterItem7;
872 959
    }
873 960
}
DTI_PID/APIDConverter/Form/MappingForm.cs
32 32
            SetOPCMappingTable();
33 33
            SetAvevaSymbolStructure();
34 34
            SetLineMappingTable();
35
            SetLineNumberAttributeMappingTable();
35 36
            SetAttributeMappingTable();
36 37

  
37 38
            #region Events/UI
......
171 172
        }
172 173
        private void SetLineMappingTable()
173 174
        {
174

  
175 175
            DataTable dt = Project_DB.GetLineMappingTable();
176 176
            dt.Columns.Add("Type");
177 177
            foreach (DataRow row in dt.Rows)
178
                row["Type"] = "Line Property";
178
                row["Type"] = "Line";
179 179
            gridControlLine.DataSource = dt;
180 180

  
181
            gridViewLine.Columns["Name"].OptionsColumn.AllowEdit = false;
181 182
            gridViewLine.Columns["UID"].Visible = false;
182 183
            gridViewLine.Columns["DATA1"].Visible = false;
183 184
            gridViewLine.Columns["APID_SYMBOL"].Caption = "APID Line";
......
219 220
            gridControlLine.RepositoryItems.Add(lookUpEdit);
220 221
            gridViewLine.Columns["APID_SYMBOL"].ColumnEdit = lookUpEdit;
221 222
        }
223
        private void SetLineNumberAttributeMappingTable()
224
        {
225
            DataTable dt = Project_DB.SelectProjectLineProperties();
226
            dt.Columns.Add("Type");
227
            foreach (DataRow row in dt.Rows)
228
                row["Type"] = "Line";
229
            gridControlLineNumberAttribute.DataSource = dt;
230

  
231
            gridViewLineNumberAttribute.Columns["DisplayName"].OptionsColumn.AllowEdit = false;
232
            gridViewLineNumberAttribute.Columns["DisplayName"].Caption = "Attribute Name";
233
            gridViewLineNumberAttribute.Columns["UID"].Visible = false;
234
            gridViewLineNumberAttribute.Columns["APID_SYMBOL"].Visible = false;
235
            gridViewLineNumberAttribute.Columns["Type"].GroupIndex = 0;
236
            gridViewLineNumberAttribute.ExpandAllGroups();
237

  
238
            #region set lookUpEdit
239
            DataTable attributeTable = APIDUtils.GetAPIDAttributes();
240
            RepositoryItemGridLookUpEdit lookUpEdit = new RepositoryItemGridLookUpEdit();
241
            lookUpEdit.BeginInit();
242
            lookUpEdit.DataSource = attributeTable;
243
            lookUpEdit.DisplayMember = "DisplayMember";
244
            lookUpEdit.ValueMember = "Value";
245
            lookUpEdit.NullText = "";
246
            lookUpEdit.BestFitMode = BestFitMode.BestFit;
247
            lookUpEdit.KeyUp += lookUpEdit_KeyUp;
248
            lookUpEdit.Popup += lookUpEdit_Popup;
249
            lookUpEdit.EndInit();
250

  
251
            lookUpEdit.View.OptionsBehavior.AutoPopulateColumns = false;
252
            DevExpress.XtraGrid.Columns.GridColumn colType = lookUpEdit.View.Columns.AddField("DisplayType");
253
            colType.GroupIndex = 0;
254
            colType.VisibleIndex = 0;
255
            colType.Caption = "Type";
256
            DevExpress.XtraGrid.Columns.GridColumn colStyle = lookUpEdit.View.Columns.AddField("Name");
257
            colStyle.VisibleIndex = 1;
258
            #endregion
259

  
260
            gridControlLineNumberAttribute.RepositoryItems.Add(lookUpEdit);
261
            gridViewLineNumberAttribute.Columns["APID_ATTRIBUTE"].ColumnEdit = lookUpEdit;
262
        }
222 263
        private void SetAttributeMappingTable()
223 264
        {
224 265
            RepositoryItemButtonEdit clearButton = new RepositoryItemButtonEdit();
......
344 385
                    string[] split = apidAttr.Split(new char[] { '|' });
345 386
                    apidAttrType = split[split.Length - 1];
346 387
                }
347

  
388
                attributeDatas.Add(new Tuple<string, string, string>(uid, apidAttr, apidAttrType));
389
            }
390
            DataTable lineNumberAttributeDT = gridControlLineNumberAttribute.DataSource as DataTable;
391
            foreach (DataRow row in lineNumberAttributeDT.Rows)
392
            {
393
                string uid = row["UID"].ToString();
394
                string apidAttr = row["APID_ATTRIBUTE"].ToString();
395
                string apidAttrType = string.Empty;
396
                if (!string.IsNullOrEmpty(apidAttr))
397
                {
398
                    string[] split = apidAttr.Split(new char[] { '|' });
399
                    apidAttrType = split[split.Length - 1];
400
                }
348 401
                attributeDatas.Add(new Tuple<string, string, string>(uid, apidAttr, apidAttrType));
349 402
            }
350 403
            #endregion

내보내기 Unified diff

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