프로젝트

일반

사용자정보

개정판 1a3a74a8

ID1a3a74a852f9bc7b336894b94d205a8c5fb1202e
상위 34ec41f5
하위 44c5399a, b65a7e32

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

dev issue #000 : 라벨들 위치 설정가능하게 / 모델링 수정

Change-Id: I69a1eaa92469426c6e329dde3c7f652660f19f56

차이점 보기:

DTI_PID/BaseModel/BaseModel.csproj
80 80
  <ItemGroup>
81 81
    <Compile Include="Model\ChildSymbol.cs" />
82 82
    <Compile Include="Model\Equipment.cs" />
83
    <Compile Include="Model\SPPID\SPPIDLabelLocationInfo.cs" />
83 84
    <Compile Include="Model\TrimLine.cs" />
84 85
    <Compile Include="Model\Other\Association.cs" />
85 86
    <Compile Include="Model\Other\Attribute.cs" />
DTI_PID/BaseModel/Model/Document.cs
217 217
                    HEIGHT = item.Element("HEIGHT").Value,
218 218
                    ANGLE = Convert.ToDouble(item.Element("ANGLE").Value),
219 219
                    AREA = item.Element("AREA").Value,
220
                    CONNLINE = item.Element("CONNLINE").Value
220
                    CONNLINE = item.Element("CONNLINE").Value,
221
                    SCENE = item.Element("SCENE").Value
221 222
                };
222 223
                SetLineNumberRuns(item, lineNumber.RUNS);
223 224
                SetProperties(item.Element("PROPERTIES"), lineNumber.PROPERTIES);
......
241 242
                    ANGLE = Convert.ToDouble(item.Element("ANGLE").Value),
242 243
                    WIDTH = item.Element("WIDTH").Value,
243 244
                    HEIGHT = item.Element("HEIGHT").Value,
244
                    AREA = item.Element("AREA").Value
245
                    AREA = item.Element("AREA").Value,
246
                    SCENE = item.Element("SCENE").Value
245 247
                };
246 248

  
247 249
                TEXTINFOS.Add(text);
......
262 264
                    ANGLE = Convert.ToDouble(item.Element("ANGLE").Value),
263 265
                    WIDTH = item.Element("WIDTH").Value,
264 266
                    HEIGHT = item.Element("HEIGHT").Value,
265
                    AREA = item.Element("AREA").Value
267
                    AREA = item.Element("AREA").Value,
268
                    SCENE = item.Element("SCENE").Value
266 269
                };
267 270

  
268 271
                NOTES.Add(note);
DTI_PID/BaseModel/Model/LineNumber.cs
16 16
        private double _ANGLE;
17 17
        private string _AREA;
18 18
        private string _CONNLINE;
19
        private string _SCENE;
19 20
        private List<LineRun> _RUNS = new List<LineRun>();
20 21
        private List<Property> _PROPERTIES = new List<Property>();
21 22
        private List<Attribute> _ATTRIBUTES = new List<Attribute>();
......
49 50
        public List<Attribute> ATTRIBUTES { get => _ATTRIBUTES; set => _ATTRIBUTES = value; }
50 51
        public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; }
51 52
        public string CONNLINE { get => _CONNLINE; set => _CONNLINE = value; }
53

  
54
        public string SCENE
55
        {
56
            get
57
            {
58
                return _SCENE;
59
            }
60
            set
61
            {
62
                string[] split = value.Split(',');
63
                X1 = Convert.ToDouble(split[0]);
64
                Y1 = Convert.ToDouble(split[1]);
65
                X2 = X1 + Convert.ToDouble(split[2]);
66
                Y2 = Y1 + Convert.ToDouble(split[3]);
67
            }
68
        }
69
        public double X1 { get; set; }
70
        public double X2 { get; set; }
71
        public double Y1 { get; set; }
72
        public double Y2 { get; set; }
73

  
74
        public SPPIDLabelLocationInfo SPPIDLabelLocation { get; set; }
52 75
    }
53 76
}
DTI_PID/BaseModel/Model/Note.cs
17 17
        private string _WIDTH;
18 18
        private string _HEIGHT;
19 19
        private string _AREA;
20
        private string _SCENE;
20 21
        private SPPIDSymbolInfo _SPPID;
21 22

  
22 23
        public string UID { get => _UID; set => _UID = value; }
......
46 47
        public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; }
47 48
        public string AREA { get => _AREA; set => _AREA = value; }
48 49
        public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; }
50

  
51
        public string SCENE
52
        {
53
            get
54
            {
55
                return _SCENE;
56
            }
57
            set
58
            {
59
                string[] split = value.Split(',');
60
                X1 = Convert.ToDouble(split[0]);
61
                Y1 = Convert.ToDouble(split[1]);
62
                X2 = X1 + Convert.ToDouble(split[2]);
63
                Y2 = Y1 + Convert.ToDouble(split[3]);
64
            }
65
        }
66
        public double X1 { get; set; }
67
        public double X2 { get; set; }
68
        public double Y1 { get; set; }
69
        public double Y2 { get; set; }
70
        public SPPIDLabelLocationInfo SPPIDLabelLocation { get; set; }
49 71
    }
50 72
}
DTI_PID/BaseModel/Model/SPPID/SPPIDLabelLocationInfo.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Converter.BaseModel
8
{
9
    public class SPPIDLabelLocationInfo
10
    {
11
        public double X1 { get; set; }
12
        public double X2 { get; set; }
13
        public double Y1 { get; set; }
14
        public double Y2 { get; set; }
15
    }
16
}
DTI_PID/BaseModel/Model/Text.cs
18 18
        private string _WIDTH;
19 19
        private string _HEIGHT;
20 20
        private string _AREA;
21
        private string _SCENE;
21 22
        private SPPIDSymbolInfo _SPPID;
22 23
        private bool _ASSOCIATION;
23 24

  
......
50 51
        public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; }
51 52
        public bool ASSOCIATION { get => _ASSOCIATION; set => _ASSOCIATION = value; }
52 53
        public string OWNER { get => _OWNER; set => _OWNER = value; }
54

  
55
        public string SCENE
56
        {
57
            get
58
            {
59
                return _SCENE;
60
            }
61
            set
62
            {
63
                string[] split = value.Split(',');
64
                X1 = Convert.ToDouble(split[0]);
65
                Y1 = Convert.ToDouble(split[1]);
66
                X2 = X1 + Convert.ToDouble(split[2]);
67
                Y2 = Y1 + Convert.ToDouble(split[3]);
68
            }
69
        }
70
        public double X1 { get; set; }
71
        public double X2 { get; set; }
72
        public double Y1 { get; set; }
73
        public double Y2 { get; set; }
74
        public SPPIDLabelLocationInfo SPPIDLabelLocation { get; set; }
53 75
    }
54 76
}
DTI_PID/BaseModel/Project_DB.cs
15 15
        const string SPPID_SYMBOL_MAPPING_TABLE = "T_SPPID_SYMBOL_MAPPING";
16 16
        const string SPPID_ATTRIBUTE_MAPPING_TABLE = "T_SPPID_ATTRIBUTE_MAPPING";
17 17
        const string SPPID_ETC_SETTING_TABLE = "T_SPPID_ETC_SETTING_TABLE";
18
        const string SPPID_LABEL_LOCATION_TABLE = "T_SPPID_LABEL_LOCATION";
18 19

  
19 20
        const string LineProperties_TABLE = "LineProperties";
20 21
        const string LineTypes_TABLE = "LineTypes";
......
205 206
                        cmd.CommandText = string.Format("CREATE TABLE {0} (UID TEXT PRIMARY KEY, SPPID_ATTRIBUTE TEXT)", SPPID_ATTRIBUTE_MAPPING_TABLE);
206 207
                        cmd.ExecuteNonQuery();
207 208
                    }
209
                    if (dt.Select(string.Format("NAME = '{0}'", SPPID_LABEL_LOCATION_TABLE)).Length == 0)
210
                    {
211
                        cmd.CommandText = string.Format("CREATE TABLE {0} (UID TEXT PRIMARY KEY, LOCATION INT DEFAULT 0)", SPPID_LABEL_LOCATION_TABLE);
212
                        cmd.ExecuteNonQuery();
213
                    }
208 214
                }
209 215
            }
210 216
        }
......
407 413
                    using (SQLiteCommand cmd = connection.CreateCommand())
408 414
                    {
409 415
                        cmd.CommandText = string.Format(@"
410
                            SELECT sa.UID, sa.DisplayAttribute, st.TYPE, spa.SPPID_ATTRIBUTE, sp.SPPID_SYMBOL_PATH 
416
                            SELECT sa.UID, sa.DisplayAttribute, st.TYPE, spa.SPPID_ATTRIBUTE, sp.SPPID_SYMBOL_PATH, spl.LOCATION 
411 417
                            FROM {1} as sa, {0} as st 
412 418
                                 LEFT OUTER JOIN {2} as sp 
413 419
                                      ON sa.UID = SP.UID 
414 420
                                LEFT OUTER JOIN {3} as spa 
415 421
                                     ON sa.UID = spa.UID
416
                            WHERE sa.SymbolType_UID = st.UID;", SymbolType_TABLE, SymbolAttribute_TABLE, SPPID_SYMBOL_MAPPING_TABLE, SPPID_ATTRIBUTE_MAPPING_TABLE);
422
                                LEFT OUTER JOIN {4} as spl 
423
                                     ON sa.UID = spl.UID
424
                            WHERE sa.SymbolType_UID = st.UID;", SymbolType_TABLE, SymbolAttribute_TABLE, SPPID_SYMBOL_MAPPING_TABLE, SPPID_ATTRIBUTE_MAPPING_TABLE, SPPID_LABEL_LOCATION_TABLE);
417 425
                        using (SQLiteDataReader dr = cmd.ExecuteReader())
418 426
                            dt.Load(dr);
419 427
                    }
......
531 539
            }
532 540
            return true;
533 541
        }
542

  
543
        public static bool InsertLocationMapping(List<Tuple<string, int>> datas)
544
        {
545
            Project_Info projectInfo = Project_Info.GetInstance();
546
            using (SQLiteConnection connection = new SQLiteConnection(string.Format(CultureInfo.CurrentCulture, "Data Source = {0}", projectInfo.DBFilePath)))
547
            {
548
                try
549
                {
550
                    connection.Open();
551
                    using (SQLiteTransaction transaction = connection.BeginTransaction())
552
                    {
553
                        try
554
                        {
555
                            using (SQLiteCommand cmd = connection.CreateCommand())
556
                            {
557
                                foreach (var item in datas)
558
                                {
559
                                    cmd.Parameters.Clear();
560
                                    cmd.CommandText = string.Format("INSERT OR REPLACE INTO {0} (UID, LOCATION) VALUES (@UID, @LOCATION)", SPPID_LABEL_LOCATION_TABLE);
561
                                    cmd.Parameters.AddWithValue("@UID", item.Item1);
562
                                    cmd.Parameters.AddWithValue("@LOCATION", item.Item2);
563
                                    cmd.ExecuteNonQuery();
564
                                }
565
                            }
566
                            transaction.Commit();
567
                            connection.Close();
568
                        }
569
                        catch (Exception ex)
570
                        {
571
                            transaction.Rollback();
572
                        }
573
                        finally
574
                        {
575
                            transaction.Dispose();
576
                        }
577
                    }
578
                }
579
                catch (Exception ex)
580
                {
581
                    return false;
582
                }
583
                finally
584
                {
585
                    connection.Dispose();
586
                }
587
            }
588
            return true;
589
        }
534 590
    }
535 591
}
DTI_PID/SPPIDConverter/AutoModeling.cs
1276 1276

  
1277 1277
                            if (mapping != null)
1278 1278
                            {
1279
                                Array array = new double[] { 0, text.SPPID.ORIGINAL_X, text.SPPID.ORIGINAL_Y };
1279
                                Array array = null;
1280
                                double x = 0;
1281
                                double y = 0;
1282
                                if (mapping.Location == Location.None)
1283
                                {
1284
                                    x = text.SPPID.ORIGINAL_X;
1285
                                    y = text.SPPID.ORIGINAL_Y;
1286
                                }
1287
                                    
1288
                                if (mapping.Location.HasFlag(Location.Center))
1289
                                {
1290
                                    x = (text.SPPIDLabelLocation.X1 + text.SPPIDLabelLocation.X2) / 2;
1291
                                    y = (text.SPPIDLabelLocation.Y1 + text.SPPIDLabelLocation.Y2) / 2;
1292
                                }
1293

  
1294
                                if (mapping.Location.HasFlag(Location.Left))
1295
                                    x = text.SPPIDLabelLocation.X1;
1296
                                else if (mapping.Location.HasFlag(Location.Right))
1297
                                    x = text.SPPIDLabelLocation.X2;
1298

  
1299
                                if (mapping.Location.HasFlag(Location.Down))
1300
                                    y = text.SPPIDLabelLocation.Y1;
1301
                                else if (mapping.Location.HasFlag(Location.Up))
1302
                                    y = text.SPPIDLabelLocation.Y2;
1303

  
1304
                                array = new double[] { 0, x, y };
1305

  
1280 1306
                                LMLabelPersist _LMLabelPersist = _placement.PIDPlaceLabel(mapping.SPPIDSYMBOLNAME, ref array, Rotation: text.ANGLE, LabeledItem: _LMSymbol.AsLMRepresentation(), IsLeaderVisible: true);
1281 1307
                                if (_LMLabelPersist!=null)
1282 1308
                                {
1283
                                    DependencyObject tt = radApp.ActiveDocument.ActiveSheet.DrawingObjects[((dynamic)_LMLabelPersist).GraphicOID];
1284
                                    double x1 = 0;
1285
                                    double x2 = 0;
1286
                                    double y1 = 0;
1287
                                    double y2 = 0;
1288
                                    tt.Range(out x1, out y1, out x2, out y2);
1289

  
1290
                                    _LMLabelPersist.Commit();
1291
                                    _placement.PIDRemovePlacement(_LMLabelPersist.AsLMRepresentation());
1292
                                    ReleaseCOMObjects(_LMLabelPersist);
1293
                                    double newX = Math.Abs(x1 - x2) / 2;
1294
                                    double newY = Math.Abs(y1 - y2) / 2;
1295
                                    array = new double[] { 0, text.SPPID.ORIGINAL_X + newX, text.SPPID.ORIGINAL_Y - newY };
1296
                                    _LMLabelPersist = _placement.PIDPlaceLabel(mapping.SPPIDSYMBOLNAME, ref array, Rotation: text.ANGLE, LabeledItem: _LMSymbol.AsLMRepresentation(), IsLeaderVisible: true);
1297 1309
                                    _LMLabelPersist.Commit();
1298 1310
                                    ReleaseCOMObjects(_LMLabelPersist);
1299 1311
                                }
DTI_PID/SPPIDConverter/ConverterForm.cs
412 412
                        DisplayAttribute = row["DisplayAttribute"] == null ? "" : row["DisplayAttribute"].ToString(),
413 413
                        Type = row["Type"] == null ? "" : row["Type"].ToString(),
414 414
                        SPPIDATTRIBUTENAME = row["SPPID_ATTRIBUTE"] == null ? "" : row["SPPID_ATTRIBUTE"].ToString(),
415
                        SPPIDSYMBOLNAME = row["SPPID_SYMBOL_PATH"] == null ? "" : row["SPPID_SYMBOL_PATH"].ToString()
415
                        SPPIDSYMBOLNAME = row["SPPID_SYMBOL_PATH"] == null ? "" : row["SPPID_SYMBOL_PATH"].ToString(),
416
                        Location = DBNull.Value.Equals(row["LOCATION"]) ? Model.Location.None : (Location)row["LOCATION"]
416 417
                    });
417 418
                }
418 419
            }
......
552 553
#if DEBUG
553 554
            this.Visible = false;
554 555

  
555
            //SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\11111.xml");
556
            SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\11111.xml");
556 557
            //SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\Isocynates-325_Page50.xml");
557
            SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\Isocynates-325_Page49.xml");
558
            //SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\Isocynates-325_Page49.xml");
558 559
            document.SymbolMappings = symbolMappings;
559 560
            document.ChildSymbolMappings = childSymbolMappings;
560 561
            document.LineMappings = lineMappings;
DTI_PID/SPPIDConverter/Form/MappingForm.Designer.cs
31 31
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MappingForm));
32 32
            this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl();
33 33
            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
34
            this.checkComboBoxNoteLocation = new DevExpress.XtraEditors.CheckedComboBoxEdit();
35
            this.checkComboBoxTextLocation = new DevExpress.XtraEditors.CheckedComboBoxEdit();
34 36
            this.btnImageRefresh = new DevExpress.XtraEditors.SimpleButton();
35 37
            this.textBoxDrainValveSize = new DevExpress.XtraEditors.TextEdit();
36 38
            this.textBoxNoteSymbolPath = new DevExpress.XtraEditors.ButtonEdit();
......
39 41
            this.gridControlLineNumber = new DevExpress.XtraGrid.GridControl();
40 42
            this.gridViewLineNumber = new DevExpress.XtraGrid.Views.Grid.GridView();
41 43
            this.btnClose = new DevExpress.XtraEditors.SimpleButton();
42
            this.gridControlAssociation = new DevExpress.XtraGrid.GridControl();
43
            this.gridViewAssociation = new DevExpress.XtraGrid.Views.Grid.GridView();
44
            this.gridControlAttribute = new DevExpress.XtraGrid.GridControl();
45
            this.gridViewAttribute = new DevExpress.XtraGrid.Views.Grid.GridView();
44 46
            this.gridControlLine = new DevExpress.XtraGrid.GridControl();
45 47
            this.gridViewLine = new DevExpress.XtraGrid.Views.Grid.GridView();
46 48
            this.gridControlSymbol = new DevExpress.XtraGrid.GridControl();
......
60 62
            this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
61 63
            this.splitterItem3 = new DevExpress.XtraLayout.SplitterItem();
62 64
            this.tabbedControlGroup = new DevExpress.XtraLayout.TabbedControlGroup();
65
            this.GroupETCSetting = new DevExpress.XtraLayout.LayoutControlGroup();
66
            this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
67
            this.layoutControlGroup9 = new DevExpress.XtraLayout.LayoutControlGroup();
68
            this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
69
            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
70
            this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem();
71
            this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem();
72
            this.layoutControlGroup10 = new DevExpress.XtraLayout.LayoutControlGroup();
73
            this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
63 74
            this.GroupSymbol = new DevExpress.XtraLayout.LayoutControlGroup();
64 75
            this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem();
65 76
            this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
......
79 90
            this.GroupAttribute = new DevExpress.XtraLayout.LayoutControlGroup();
80 91
            this.layoutControlGroup7 = new DevExpress.XtraLayout.LayoutControlGroup();
81 92
            this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
82
            this.GroupETCSetting = new DevExpress.XtraLayout.LayoutControlGroup();
83
            this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
84
            this.layoutControlGroup9 = new DevExpress.XtraLayout.LayoutControlGroup();
85
            this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
86
            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
87
            this.layoutControlGroup10 = new DevExpress.XtraLayout.LayoutControlGroup();
88
            this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
89 93
            this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
90 94
            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
91 95
            this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
96
            this.checkComboBoxLineNumberLocation = new DevExpress.XtraEditors.CheckedComboBoxEdit();
97
            this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem();
92 98
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit();
93 99
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
94 100
            this.layoutControl1.SuspendLayout();
101
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxNoteLocation.Properties)).BeginInit();
102
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxTextLocation.Properties)).BeginInit();
95 103
            ((System.ComponentModel.ISupportInitialize)(this.textBoxDrainValveSize.Properties)).BeginInit();
96 104
            ((System.ComponentModel.ISupportInitialize)(this.textBoxNoteSymbolPath.Properties)).BeginInit();
97 105
            ((System.ComponentModel.ISupportInitialize)(this.textBoxTextSymbolPath.Properties)).BeginInit();
98 106
            ((System.ComponentModel.ISupportInitialize)(this.textBoxLineNumberPath.Properties)).BeginInit();
99 107
            ((System.ComponentModel.ISupportInitialize)(this.gridControlLineNumber)).BeginInit();
100 108
            ((System.ComponentModel.ISupportInitialize)(this.gridViewLineNumber)).BeginInit();
101
            ((System.ComponentModel.ISupportInitialize)(this.gridControlAssociation)).BeginInit();
102
            ((System.ComponentModel.ISupportInitialize)(this.gridViewAssociation)).BeginInit();
109
            ((System.ComponentModel.ISupportInitialize)(this.gridControlAttribute)).BeginInit();
110
            ((System.ComponentModel.ISupportInitialize)(this.gridViewAttribute)).BeginInit();
103 111
            ((System.ComponentModel.ISupportInitialize)(this.gridControlLine)).BeginInit();
104 112
            ((System.ComponentModel.ISupportInitialize)(this.gridViewLine)).BeginInit();
105 113
            ((System.ComponentModel.ISupportInitialize)(this.gridControlSymbol)).BeginInit();
......
118 126
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
119 127
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).BeginInit();
120 128
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).BeginInit();
129
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).BeginInit();
130
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
131
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup9)).BeginInit();
132
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
133
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
134
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit();
135
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit();
136
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup10)).BeginInit();
137
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
121 138
            ((System.ComponentModel.ISupportInitialize)(this.GroupSymbol)).BeginInit();
122 139
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit();
123 140
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
......
137 154
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).BeginInit();
138 155
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).BeginInit();
139 156
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
140
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).BeginInit();
141
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
142
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup9)).BeginInit();
143
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
144
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
145
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup10)).BeginInit();
146
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
147 157
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
148 158
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
149 159
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
160
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxLineNumberLocation.Properties)).BeginInit();
161
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit();
150 162
            this.SuspendLayout();
151 163
            // 
152 164
            // ribbonControl
......
161 173
            this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False;
162 174
            this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages;
163 175
            this.ribbonControl.ShowToolbarCustomizeItem = false;
164
            this.ribbonControl.Size = new System.Drawing.Size(1094, 27);
176
            this.ribbonControl.Size = new System.Drawing.Size(1094, 32);
165 177
            this.ribbonControl.Toolbar.ShowCustomizeItem = false;
166 178
            // 
167 179
            // layoutControl1
168 180
            // 
181
            this.layoutControl1.Controls.Add(this.checkComboBoxLineNumberLocation);
182
            this.layoutControl1.Controls.Add(this.checkComboBoxNoteLocation);
183
            this.layoutControl1.Controls.Add(this.checkComboBoxTextLocation);
169 184
            this.layoutControl1.Controls.Add(this.btnImageRefresh);
170 185
            this.layoutControl1.Controls.Add(this.textBoxDrainValveSize);
171 186
            this.layoutControl1.Controls.Add(this.textBoxNoteSymbolPath);
......
173 188
            this.layoutControl1.Controls.Add(this.textBoxLineNumberPath);
174 189
            this.layoutControl1.Controls.Add(this.gridControlLineNumber);
175 190
            this.layoutControl1.Controls.Add(this.btnClose);
176
            this.layoutControl1.Controls.Add(this.gridControlAssociation);
191
            this.layoutControl1.Controls.Add(this.gridControlAttribute);
177 192
            this.layoutControl1.Controls.Add(this.gridControlLine);
178 193
            this.layoutControl1.Controls.Add(this.gridControlSymbol);
179 194
            this.layoutControl1.Controls.Add(this.pictureEditSPPIDSymbol);
......
182 197
            this.layoutControl1.Controls.Add(this.pictureEditID2Symbol);
183 198
            this.layoutControl1.Controls.Add(this.pictureEditMapped);
184 199
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
185
            this.layoutControl1.Location = new System.Drawing.Point(0, 27);
200
            this.layoutControl1.Location = new System.Drawing.Point(0, 32);
186 201
            this.layoutControl1.Name = "layoutControl1";
187 202
            this.layoutControl1.Root = this.Root;
188
            this.layoutControl1.Size = new System.Drawing.Size(1094, 743);
203
            this.layoutControl1.Size = new System.Drawing.Size(1094, 738);
189 204
            this.layoutControl1.TabIndex = 2;
190 205
            this.layoutControl1.Text = "layoutControl1";
191 206
            // 
207
            // checkComboBoxNoteLocation
208
            // 
209
            this.checkComboBoxNoteLocation.Location = new System.Drawing.Point(522, 103);
210
            this.checkComboBoxNoteLocation.MenuManager = this.ribbonControl;
211
            this.checkComboBoxNoteLocation.Name = "checkComboBoxNoteLocation";
212
            this.checkComboBoxNoteLocation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
213
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
214
            this.checkComboBoxNoteLocation.Size = new System.Drawing.Size(177, 20);
215
            this.checkComboBoxNoteLocation.StyleController = this.layoutControl1;
216
            this.checkComboBoxNoteLocation.TabIndex = 29;
217
            // 
218
            // checkComboBoxTextLocation
219
            // 
220
            this.checkComboBoxTextLocation.Location = new System.Drawing.Point(522, 79);
221
            this.checkComboBoxTextLocation.MenuManager = this.ribbonControl;
222
            this.checkComboBoxTextLocation.Name = "checkComboBoxTextLocation";
223
            this.checkComboBoxTextLocation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
224
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
225
            this.checkComboBoxTextLocation.Size = new System.Drawing.Size(177, 20);
226
            this.checkComboBoxTextLocation.StyleController = this.layoutControl1;
227
            this.checkComboBoxTextLocation.TabIndex = 28;
228
            // 
192 229
            // btnImageRefresh
193 230
            // 
194 231
            this.btnImageRefresh.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnImageRefresh.ImageOptions.SvgImage")));
195
            this.btnImageRefresh.Location = new System.Drawing.Point(744, 641);
232
            this.btnImageRefresh.Location = new System.Drawing.Point(749, 638);
196 233
            this.btnImageRefresh.Name = "btnImageRefresh";
197
            this.btnImageRefresh.Size = new System.Drawing.Size(326, 38);
234
            this.btnImageRefresh.Size = new System.Drawing.Size(321, 36);
198 235
            this.btnImageRefresh.StyleController = this.layoutControl1;
199 236
            this.btnImageRefresh.TabIndex = 27;
200 237
            this.btnImageRefresh.Text = "Refresh SPPID Image";
......
202 239
            // 
203 240
            // textBoxDrainValveSize
204 241
            // 
205
            this.textBoxDrainValveSize.Location = new System.Drawing.Point(206, 169);
242
            this.textBoxDrainValveSize.Location = new System.Drawing.Point(175, 172);
206 243
            this.textBoxDrainValveSize.MenuManager = this.ribbonControl;
207 244
            this.textBoxDrainValveSize.Name = "textBoxDrainValveSize";
208
            this.textBoxDrainValveSize.Size = new System.Drawing.Size(493, 20);
245
            this.textBoxDrainValveSize.Size = new System.Drawing.Size(524, 20);
209 246
            this.textBoxDrainValveSize.StyleController = this.layoutControl1;
210 247
            this.textBoxDrainValveSize.TabIndex = 26;
211 248
            // 
212 249
            // textBoxNoteSymbolPath
213 250
            // 
214
            this.textBoxNoteSymbolPath.Location = new System.Drawing.Point(206, 102);
251
            this.textBoxNoteSymbolPath.Location = new System.Drawing.Point(175, 103);
215 252
            this.textBoxNoteSymbolPath.MenuManager = this.ribbonControl;
216 253
            this.textBoxNoteSymbolPath.Name = "textBoxNoteSymbolPath";
217 254
            this.textBoxNoteSymbolPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
218 255
            new DevExpress.XtraEditors.Controls.EditorButton()});
219
            this.textBoxNoteSymbolPath.Size = new System.Drawing.Size(493, 20);
256
            this.textBoxNoteSymbolPath.Size = new System.Drawing.Size(260, 20);
220 257
            this.textBoxNoteSymbolPath.StyleController = this.layoutControl1;
221 258
            this.textBoxNoteSymbolPath.TabIndex = 25;
222 259
            this.textBoxNoteSymbolPath.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.textBoxETC_ButtonClick);
223 260
            // 
224 261
            // textBoxTextSymbolPath
225 262
            // 
226
            this.textBoxTextSymbolPath.Location = new System.Drawing.Point(206, 78);
263
            this.textBoxTextSymbolPath.Location = new System.Drawing.Point(175, 79);
227 264
            this.textBoxTextSymbolPath.MenuManager = this.ribbonControl;
228 265
            this.textBoxTextSymbolPath.Name = "textBoxTextSymbolPath";
229 266
            this.textBoxTextSymbolPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
230 267
            new DevExpress.XtraEditors.Controls.EditorButton()});
231
            this.textBoxTextSymbolPath.Size = new System.Drawing.Size(493, 20);
268
            this.textBoxTextSymbolPath.Size = new System.Drawing.Size(260, 20);
232 269
            this.textBoxTextSymbolPath.StyleController = this.layoutControl1;
233 270
            this.textBoxTextSymbolPath.TabIndex = 24;
234 271
            this.textBoxTextSymbolPath.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.textBoxETC_ButtonClick);
235 272
            // 
236 273
            // textBoxLineNumberPath
237 274
            // 
238
            this.textBoxLineNumberPath.Location = new System.Drawing.Point(206, 78);
275
            this.textBoxLineNumberPath.Location = new System.Drawing.Point(208, 79);
239 276
            this.textBoxLineNumberPath.MenuManager = this.ribbonControl;
240 277
            this.textBoxLineNumberPath.Name = "textBoxLineNumberPath";
241 278
            this.textBoxLineNumberPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
242 279
            new DevExpress.XtraEditors.Controls.EditorButton()});
243 280
            this.textBoxLineNumberPath.Properties.ReadOnly = true;
244
            this.textBoxLineNumberPath.Size = new System.Drawing.Size(493, 20);
281
            this.textBoxLineNumberPath.Size = new System.Drawing.Size(234, 20);
245 282
            this.textBoxLineNumberPath.StyleController = this.layoutControl1;
246 283
            this.textBoxLineNumberPath.TabIndex = 23;
247 284
            this.textBoxLineNumberPath.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.textBoxLineNumberPath_ButtonClick);
248 285
            // 
249 286
            // gridControlLineNumber
250 287
            // 
251
            this.gridControlLineNumber.Location = new System.Drawing.Point(36, 102);
288
            this.gridControlLineNumber.Location = new System.Drawing.Point(36, 103);
252 289
            this.gridControlLineNumber.MainView = this.gridViewLineNumber;
253 290
            this.gridControlLineNumber.MenuManager = this.ribbonControl;
254 291
            this.gridControlLineNumber.Name = "gridControlLineNumber";
255
            this.gridControlLineNumber.Size = new System.Drawing.Size(663, 565);
292
            this.gridControlLineNumber.Size = new System.Drawing.Size(663, 559);
256 293
            this.gridControlLineNumber.TabIndex = 21;
257 294
            this.gridControlLineNumber.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
258 295
            this.gridViewLineNumber});
......
267 304
            // btnClose
268 305
            // 
269 306
            this.btnClose.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnClose.ImageOptions.SvgImage")));
270
            this.btnClose.Location = new System.Drawing.Point(996, 695);
307
            this.btnClose.Location = new System.Drawing.Point(996, 690);
271 308
            this.btnClose.Name = "btnClose";
272 309
            this.btnClose.Size = new System.Drawing.Size(86, 36);
273 310
            this.btnClose.StyleController = this.layoutControl1;
......
275 312
            this.btnClose.Text = "  Close  ";
276 313
            this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
277 314
            // 
278
            // gridControlAssociation
315
            // gridControlAttribute
279 316
            // 
280
            this.gridControlAssociation.Location = new System.Drawing.Point(36, 78);
281
            this.gridControlAssociation.MainView = this.gridViewAssociation;
282
            this.gridControlAssociation.MenuManager = this.ribbonControl;
283
            this.gridControlAssociation.Name = "gridControlAssociation";
284
            this.gridControlAssociation.Size = new System.Drawing.Size(663, 589);
285
            this.gridControlAssociation.TabIndex = 19;
286
            this.gridControlAssociation.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
287
            this.gridViewAssociation});
317
            this.gridControlAttribute.Location = new System.Drawing.Point(36, 79);
318
            this.gridControlAttribute.MainView = this.gridViewAttribute;
319
            this.gridControlAttribute.MenuManager = this.ribbonControl;
320
            this.gridControlAttribute.Name = "gridControlAttribute";
321
            this.gridControlAttribute.Size = new System.Drawing.Size(663, 583);
322
            this.gridControlAttribute.TabIndex = 19;
323
            this.gridControlAttribute.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
324
            this.gridViewAttribute});
288 325
            // 
289
            // gridViewAssociation
326
            // gridViewAttribute
290 327
            // 
291
            this.gridViewAssociation.GridControl = this.gridControlAssociation;
292
            this.gridViewAssociation.Name = "gridViewAssociation";
293
            this.gridViewAssociation.OptionsView.ShowGroupPanel = false;
294
            this.gridViewAssociation.ShowingEditor += new System.ComponentModel.CancelEventHandler(this.gridView_ShowingEditor);
328
            this.gridViewAttribute.GridControl = this.gridControlAttribute;
329
            this.gridViewAttribute.Name = "gridViewAttribute";
330
            this.gridViewAttribute.OptionsView.ShowGroupPanel = false;
331
            this.gridViewAttribute.ShowingEditor += new System.ComponentModel.CancelEventHandler(this.gridView_ShowingEditor);
295 332
            // 
296 333
            // gridControlLine
297 334
            // 
298
            this.gridControlLine.Location = new System.Drawing.Point(36, 78);
335
            this.gridControlLine.Location = new System.Drawing.Point(36, 79);
299 336
            this.gridControlLine.MainView = this.gridViewLine;
300 337
            this.gridControlLine.MenuManager = this.ribbonControl;
301 338
            this.gridControlLine.Name = "gridControlLine";
302
            this.gridControlLine.Size = new System.Drawing.Size(663, 589);
339
            this.gridControlLine.Size = new System.Drawing.Size(663, 583);
303 340
            this.gridControlLine.TabIndex = 18;
304 341
            this.gridControlLine.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
305 342
            this.gridViewLine});
......
313 350
            // 
314 351
            // gridControlSymbol
315 352
            // 
316
            this.gridControlSymbol.Location = new System.Drawing.Point(36, 78);
353
            this.gridControlSymbol.Location = new System.Drawing.Point(36, 79);
317 354
            this.gridControlSymbol.MainView = this.gridViewSymbol;
318 355
            this.gridControlSymbol.MenuManager = this.ribbonControl;
319 356
            this.gridControlSymbol.Name = "gridControlSymbol";
320
            this.gridControlSymbol.Size = new System.Drawing.Size(663, 269);
357
            this.gridControlSymbol.Size = new System.Drawing.Size(663, 265);
321 358
            this.gridControlSymbol.TabIndex = 16;
322 359
            this.gridControlSymbol.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
323 360
            this.gridViewSymbol});
......
334 371
            // 
335 372
            // pictureEditSPPIDSymbol
336 373
            // 
337
            this.pictureEditSPPIDSymbol.Location = new System.Drawing.Point(756, 375);
374
            this.pictureEditSPPIDSymbol.Location = new System.Drawing.Point(761, 381);
338 375
            this.pictureEditSPPIDSymbol.MenuManager = this.ribbonControl;
339 376
            this.pictureEditSPPIDSymbol.Name = "pictureEditSPPIDSymbol";
340 377
            this.pictureEditSPPIDSymbol.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
341 378
            this.pictureEditSPPIDSymbol.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;
342
            this.pictureEditSPPIDSymbol.Size = new System.Drawing.Size(302, 250);
379
            this.pictureEditSPPIDSymbol.Size = new System.Drawing.Size(297, 241);
343 380
            this.pictureEditSPPIDSymbol.StyleController = this.layoutControl1;
344 381
            this.pictureEditSPPIDSymbol.TabIndex = 15;
345 382
            // 
346 383
            // btnSave
347 384
            // 
348 385
            this.btnSave.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnSave.ImageOptions.SvgImage")));
349
            this.btnSave.Location = new System.Drawing.Point(893, 695);
386
            this.btnSave.Location = new System.Drawing.Point(893, 690);
350 387
            this.btnSave.Name = "btnSave";
351 388
            this.btnSave.Size = new System.Drawing.Size(84, 36);
352 389
            this.btnSave.StyleController = this.layoutControl1;
......
357 394
            // treeListSPPIDTreeList
358 395
            // 
359 396
            this.treeListSPPIDTreeList.Cursor = System.Windows.Forms.Cursors.Default;
360
            this.treeListSPPIDTreeList.Location = new System.Drawing.Point(744, 43);
397
            this.treeListSPPIDTreeList.Location = new System.Drawing.Point(749, 45);
361 398
            this.treeListSPPIDTreeList.Name = "treeListSPPIDTreeList";
362
            this.treeListSPPIDTreeList.Size = new System.Drawing.Size(326, 292);
399
            this.treeListSPPIDTreeList.Size = new System.Drawing.Size(321, 289);
363 400
            this.treeListSPPIDTreeList.TabIndex = 12;
364 401
            this.treeListSPPIDTreeList.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.treeListSPPIDTreeList_FocusedNodeChanged);
365 402
            this.treeListSPPIDTreeList.DoubleClick += new System.EventHandler(this.treeListSPPIDTreeList_DoubleClick);
366 403
            // 
367 404
            // pictureEditID2Symbol
368 405
            // 
369
            this.pictureEditID2Symbol.Location = new System.Drawing.Point(36, 399);
406
            this.pictureEditID2Symbol.Location = new System.Drawing.Point(36, 403);
370 407
            this.pictureEditID2Symbol.MenuManager = this.ribbonControl;
371 408
            this.pictureEditID2Symbol.Name = "pictureEditID2Symbol";
372 409
            this.pictureEditID2Symbol.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
373 410
            this.pictureEditID2Symbol.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;
374
            this.pictureEditID2Symbol.Size = new System.Drawing.Size(316, 268);
411
            this.pictureEditID2Symbol.Size = new System.Drawing.Size(316, 259);
375 412
            this.pictureEditID2Symbol.StyleController = this.layoutControl1;
376 413
            this.pictureEditID2Symbol.TabIndex = 4;
377 414
            // 
378 415
            // pictureEditMapped
379 416
            // 
380
            this.pictureEditMapped.Location = new System.Drawing.Point(385, 399);
417
            this.pictureEditMapped.Location = new System.Drawing.Point(390, 403);
381 418
            this.pictureEditMapped.MenuManager = this.ribbonControl;
382 419
            this.pictureEditMapped.Name = "pictureEditMapped";
383 420
            this.pictureEditMapped.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
384 421
            this.pictureEditMapped.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;
385
            this.pictureEditMapped.Size = new System.Drawing.Size(314, 268);
422
            this.pictureEditMapped.Size = new System.Drawing.Size(309, 259);
386 423
            this.pictureEditMapped.StyleController = this.layoutControl1;
387 424
            this.pictureEditMapped.TabIndex = 5;
388 425
            // 
......
399 436
            this.layoutControlItem4,
400 437
            this.emptySpaceItem1});
401 438
            this.Root.Name = "Root";
402
            this.Root.Size = new System.Drawing.Size(1094, 743);
439
            this.Root.Size = new System.Drawing.Size(1094, 738);
403 440
            this.Root.TextVisible = false;
404 441
            // 
405 442
            // layoutControlGroup2
......
409 446
            this.layoutControlGroup5,
410 447
            this.splitterItem5,
411 448
            this.layoutControlItem15});
412
            this.layoutControlGroup2.Location = new System.Drawing.Point(720, 0);
449
            this.layoutControlGroup2.Location = new System.Drawing.Point(725, 0);
413 450
            this.layoutControlGroup2.Name = "layoutControlGroup2";
414
            this.layoutControlGroup2.Size = new System.Drawing.Size(354, 683);
451
            this.layoutControlGroup2.Size = new System.Drawing.Size(349, 678);
415 452
            this.layoutControlGroup2.Text = "SPPID Symbol";
416 453
            // 
417 454
            // layoutControlItem8
......
419 456
            this.layoutControlItem8.Control = this.treeListSPPIDTreeList;
420 457
            this.layoutControlItem8.Location = new System.Drawing.Point(0, 0);
421 458
            this.layoutControlItem8.Name = "layoutControlItem8";
422
            this.layoutControlItem8.Size = new System.Drawing.Size(330, 296);
459
            this.layoutControlItem8.Size = new System.Drawing.Size(325, 293);
423 460
            this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
424 461
            this.layoutControlItem8.TextVisible = false;
425 462
            // 
......
427 464
            // 
428 465
            this.layoutControlGroup5.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
429 466
            this.layoutControlItem9});
430
            this.layoutControlGroup5.Location = new System.Drawing.Point(0, 301);
467
            this.layoutControlGroup5.Location = new System.Drawing.Point(0, 303);
431 468
            this.layoutControlGroup5.Name = "layoutControlGroup5";
432
            this.layoutControlGroup5.Size = new System.Drawing.Size(330, 297);
469
            this.layoutControlGroup5.Size = new System.Drawing.Size(325, 290);
433 470
            this.layoutControlGroup5.Text = "SPPID Image";
434 471
            // 
435 472
            // layoutControlItem9
......
437 474
            this.layoutControlItem9.Control = this.pictureEditSPPIDSymbol;
438 475
            this.layoutControlItem9.Location = new System.Drawing.Point(0, 0);
439 476
            this.layoutControlItem9.Name = "layoutControlItem9";
440
            this.layoutControlItem9.Size = new System.Drawing.Size(306, 254);
477
            this.layoutControlItem9.Size = new System.Drawing.Size(301, 245);
441 478
            this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
442 479
            this.layoutControlItem9.TextVisible = false;
443 480
            // 
444 481
            // splitterItem5
445 482
            // 
446 483
            this.splitterItem5.AllowHotTrack = true;
447
            this.splitterItem5.Location = new System.Drawing.Point(0, 296);
484
            this.splitterItem5.Location = new System.Drawing.Point(0, 293);
448 485
            this.splitterItem5.Name = "splitterItem5";
449
            this.splitterItem5.Size = new System.Drawing.Size(330, 5);
486
            this.splitterItem5.Size = new System.Drawing.Size(325, 10);
450 487
            // 
451 488
            // layoutControlItem15
452 489
            // 
453 490
            this.layoutControlItem15.Control = this.btnImageRefresh;
454
            this.layoutControlItem15.Location = new System.Drawing.Point(0, 598);
491
            this.layoutControlItem15.Location = new System.Drawing.Point(0, 593);
455 492
            this.layoutControlItem15.Name = "layoutControlItem15";
456
            this.layoutControlItem15.Size = new System.Drawing.Size(330, 42);
493
            this.layoutControlItem15.Size = new System.Drawing.Size(325, 40);
457 494
            this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0);
458 495
            this.layoutControlItem15.TextVisible = false;
459 496
            // 
460 497
            // emptySpaceItem2
461 498
            // 
462 499
            this.emptySpaceItem2.AllowHotTrack = false;
463
            this.emptySpaceItem2.Location = new System.Drawing.Point(0, 683);
500
            this.emptySpaceItem2.Location = new System.Drawing.Point(0, 678);
464 501
            this.emptySpaceItem2.Name = "emptySpaceItem2";
465 502
            this.emptySpaceItem2.Size = new System.Drawing.Size(881, 40);
466 503
            this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
......
470 507
            this.splitterItem3.AllowHotTrack = true;
471 508
            this.splitterItem3.Location = new System.Drawing.Point(715, 0);
472 509
            this.splitterItem3.Name = "splitterItem3";
473
            this.splitterItem3.Size = new System.Drawing.Size(5, 683);
510
            this.splitterItem3.Size = new System.Drawing.Size(10, 678);
474 511
            // 
475 512
            // tabbedControlGroup
476 513
            // 
477 514
            this.tabbedControlGroup.Location = new System.Drawing.Point(0, 0);
478 515
            this.tabbedControlGroup.Name = "tabbedControlGroup";
479
            this.tabbedControlGroup.SelectedTabPage = this.GroupSymbol;
480
            this.tabbedControlGroup.Size = new System.Drawing.Size(715, 683);
516
            this.tabbedControlGroup.SelectedTabPage = this.GroupLineNumber;
517
            this.tabbedControlGroup.Size = new System.Drawing.Size(715, 678);
481 518
            this.tabbedControlGroup.TabPages.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
482 519
            this.GroupSymbol,
483 520
            this.GroupLine,
......
485 522
            this.GroupAttribute,
486 523
            this.GroupETCSetting});
487 524
            // 
525
            // GroupETCSetting
526
            // 
527
            this.GroupETCSetting.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
528
            this.emptySpaceItem3,
529
            this.layoutControlGroup9,
530
            this.layoutControlGroup10});
531
            this.GroupETCSetting.Location = new System.Drawing.Point(0, 0);
532
            this.GroupETCSetting.Name = "GroupETCSetting";
533
            this.GroupETCSetting.Size = new System.Drawing.Size(691, 632);
534
            this.GroupETCSetting.Text = "ETC Setting";
535
            // 
536
            // emptySpaceItem3
537
            // 
538
            this.emptySpaceItem3.AllowHotTrack = false;
539
            this.emptySpaceItem3.Location = new System.Drawing.Point(0, 162);
540
            this.emptySpaceItem3.Name = "emptySpaceItem3";
541
            this.emptySpaceItem3.Size = new System.Drawing.Size(691, 470);
542
            this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
543
            // 
544
            // layoutControlGroup9
545
            // 
546
            this.layoutControlGroup9.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
547
            this.layoutControlItem5,
548
            this.layoutControlItem7,
549
            this.layoutControlItem16,
550
            this.layoutControlItem17});
551
            this.layoutControlGroup9.Location = new System.Drawing.Point(0, 0);
552
            this.layoutControlGroup9.Name = "layoutControlGroup9";
553
            this.layoutControlGroup9.Size = new System.Drawing.Size(691, 93);
554
            this.layoutControlGroup9.Text = "Text && Note Setting";
555
            // 
556
            // layoutControlItem5
557
            // 
558
            this.layoutControlItem5.Control = this.textBoxTextSymbolPath;
559
            this.layoutControlItem5.Location = new System.Drawing.Point(0, 0);
560
            this.layoutControlItem5.Name = "layoutControlItem5";
561
            this.layoutControlItem5.Size = new System.Drawing.Size(403, 24);
562
            this.layoutControlItem5.Text = "SPPID Text Symbol Path";
563
            this.layoutControlItem5.TextSize = new System.Drawing.Size(136, 14);
564
            // 
565
            // layoutControlItem7
566
            // 
567
            this.layoutControlItem7.Control = this.textBoxNoteSymbolPath;
568
            this.layoutControlItem7.Location = new System.Drawing.Point(0, 24);
569
            this.layoutControlItem7.Name = "layoutControlItem7";
570
            this.layoutControlItem7.Size = new System.Drawing.Size(403, 24);
571
            this.layoutControlItem7.Text = "SPPID Note Symbol Path";
572
            this.layoutControlItem7.TextSize = new System.Drawing.Size(136, 14);
573
            // 
574
            // layoutControlItem16
575
            // 
576
            this.layoutControlItem16.Control = this.checkComboBoxTextLocation;
577
            this.layoutControlItem16.Location = new System.Drawing.Point(403, 0);
578
            this.layoutControlItem16.Name = "layoutControlItem16";
579
            this.layoutControlItem16.Size = new System.Drawing.Size(264, 24);
580
            this.layoutControlItem16.Text = "Label Location";
581
            this.layoutControlItem16.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
582
            this.layoutControlItem16.TextSize = new System.Drawing.Size(78, 14);
583
            this.layoutControlItem16.TextToControlDistance = 5;
584
            // 
585
            // layoutControlItem17
586
            // 
587
            this.layoutControlItem17.Control = this.checkComboBoxNoteLocation;
588
            this.layoutControlItem17.Location = new System.Drawing.Point(403, 24);
589
            this.layoutControlItem17.Name = "layoutControlItem17";
590
            this.layoutControlItem17.Size = new System.Drawing.Size(264, 24);
591
            this.layoutControlItem17.Text = "Label Location";
592
            this.layoutControlItem17.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
593
            this.layoutControlItem17.TextSize = new System.Drawing.Size(78, 14);
594
            this.layoutControlItem17.TextToControlDistance = 5;
595
            // 
596
            // layoutControlGroup10
597
            // 
598
            this.layoutControlGroup10.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
599
            this.layoutControlItem14});
600
            this.layoutControlGroup10.Location = new System.Drawing.Point(0, 93);
601
            this.layoutControlGroup10.Name = "layoutControlGroup10";
602
            this.layoutControlGroup10.Size = new System.Drawing.Size(691, 69);
603
            this.layoutControlGroup10.Text = "Drain Valve Setting";
604
            // 
605
            // layoutControlItem14
606
            // 
607
            this.layoutControlItem14.Control = this.textBoxDrainValveSize;
608
            this.layoutControlItem14.Location = new System.Drawing.Point(0, 0);
609
            this.layoutControlItem14.Name = "layoutControlItem14";
610
            this.layoutControlItem14.Size = new System.Drawing.Size(667, 24);
611
            this.layoutControlItem14.Text = "Drain Valve Size";
612
            this.layoutControlItem14.TextSize = new System.Drawing.Size(136, 14);
613
            // 
488 614
            // GroupSymbol
489 615
            // 
490 616
            this.GroupSymbol.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
......
495 621
            this.layoutControlGroup1});
496 622
            this.GroupSymbol.Location = new System.Drawing.Point(0, 0);
497 623
            this.GroupSymbol.Name = "GroupSymbol";
498
            this.GroupSymbol.Size = new System.Drawing.Size(691, 636);
624
            this.GroupSymbol.Size = new System.Drawing.Size(691, 632);
499 625
            this.GroupSymbol.Text = "Symbol";
500 626
            // 
501 627
            // splitterItem1
502 628
            // 
503 629
            this.splitterItem1.AllowHotTrack = true;
504
            this.splitterItem1.Location = new System.Drawing.Point(0, 316);
630
            this.splitterItem1.Location = new System.Drawing.Point(0, 314);
505 631
            this.splitterItem1.Name = "splitterItem1";
506
            this.splitterItem1.Size = new System.Drawing.Size(691, 5);
632
            this.splitterItem1.Size = new System.Drawing.Size(691, 10);
507 633
            // 
508 634
            // layoutControlGroup3
509 635
            // 
510 636
            this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
511 637
            this.layoutControlItem1});
512
            this.layoutControlGroup3.Location = new System.Drawing.Point(0, 321);
638
            this.layoutControlGroup3.Location = new System.Drawing.Point(0, 324);
513 639
            this.layoutControlGroup3.Name = "layoutControlGroup3";
514
            this.layoutControlGroup3.Size = new System.Drawing.Size(344, 315);
640
            this.layoutControlGroup3.Size = new System.Drawing.Size(344, 308);
515 641
            this.layoutControlGroup3.Text = "ID2 Image";
516 642
            // 
517 643
            // layoutControlItem1
......
519 645
            this.layoutControlItem1.Control = this.pictureEditID2Symbol;
520 646
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
521 647
            this.layoutControlItem1.Name = "layoutControlItem1";
522
            this.layoutControlItem1.Size = new System.Drawing.Size(320, 272);
648
            this.layoutControlItem1.Size = new System.Drawing.Size(320, 263);
523 649
            this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
524 650
            this.layoutControlItem1.TextVisible = false;
525 651
            // 
......
527 653
            // 
528 654
            this.layoutControlGroup4.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
529 655
            this.layoutControlItem2});
530
            this.layoutControlGroup4.Location = new System.Drawing.Point(349, 321);
656
            this.layoutControlGroup4.Location = new System.Drawing.Point(354, 324);
531 657
            this.layoutControlGroup4.Name = "layoutControlGroup4";
532
            this.layoutControlGroup4.Size = new System.Drawing.Size(342, 315);
658
            this.layoutControlGroup4.Size = new System.Drawing.Size(337, 308);
533 659
            this.layoutControlGroup4.Text = "Mapped Image";
534 660
            // 
535 661
            // layoutControlItem2
......
537 663
            this.layoutControlItem2.Control = this.pictureEditMapped;
538 664
            this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
539 665
            this.layoutControlItem2.Name = "layoutControlItem2";
540
            this.layoutControlItem2.Size = new System.Drawing.Size(318, 272);
666
            this.layoutControlItem2.Size = new System.Drawing.Size(313, 263);
541 667
            this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
542 668
            this.layoutControlItem2.TextVisible = false;
543 669
            // 
544 670
            // splitterItem4
545 671
            // 
546 672
            this.splitterItem4.AllowHotTrack = true;
547
            this.splitterItem4.Location = new System.Drawing.Point(344, 321);
673
            this.splitterItem4.Location = new System.Drawing.Point(344, 324);
548 674
            this.splitterItem4.Name = "splitterItem4";
549
            this.splitterItem4.Size = new System.Drawing.Size(5, 315);
675
            this.splitterItem4.Size = new System.Drawing.Size(10, 308);
550 676
            // 
551 677
            // layoutControlGroup1
552 678
            // 
......
554 680
            this.layoutControlItem6});
555 681
            this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
556 682
            this.layoutControlGroup1.Name = "layoutControlGroup1";
557
            this.layoutControlGroup1.Size = new System.Drawing.Size(691, 316);
683
            this.layoutControlGroup1.Size = new System.Drawing.Size(691, 314);
558 684
            this.layoutControlGroup1.Text = "ID2 Symbol List";
559 685
            // 
560 686
            // layoutControlItem6
......
562 688
            this.layoutControlItem6.Control = this.gridControlSymbol;
563 689
            this.layoutControlItem6.Location = new System.Drawing.Point(0, 0);
564 690
            this.layoutControlItem6.Name = "layoutControlItem6";
565
            this.layoutControlItem6.Size = new System.Drawing.Size(667, 273);
691
            this.layoutControlItem6.Size = new System.Drawing.Size(667, 269);
566 692
            this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
567 693
            this.layoutControlItem6.TextVisible = false;
568 694
            // 
......
572 698
            this.layoutControlGroup6});
573 699
            this.GroupLine.Location = new System.Drawing.Point(0, 0);
574 700
            this.GroupLine.Name = "GroupLine";
575
            this.GroupLine.Size = new System.Drawing.Size(691, 636);
701
            this.GroupLine.Size = new System.Drawing.Size(691, 632);
576 702
            this.GroupLine.Text = "Line";
577 703
            // 
578 704
            // layoutControlGroup6
......
581 707
            this.layoutControlItem10});
582 708
            this.layoutControlGroup6.Location = new System.Drawing.Point(0, 0);
583 709
            this.layoutControlGroup6.Name = "layoutControlGroup6";
584
            this.layoutControlGroup6.Size = new System.Drawing.Size(691, 636);
710
            this.layoutControlGroup6.Size = new System.Drawing.Size(691, 632);
585 711
            this.layoutControlGroup6.Text = "ID2 Line List";
586 712
            // 
587 713
            // layoutControlItem10
......
589 715
            this.layoutControlItem10.Control = this.gridControlLine;
590 716
            this.layoutControlItem10.Location = new System.Drawing.Point(0, 0);
591 717
            this.layoutControlItem10.Name = "layoutControlItem10";
592
            this.layoutControlItem10.Size = new System.Drawing.Size(667, 593);
718
            this.layoutControlItem10.Size = new System.Drawing.Size(667, 587);
593 719
            this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
594 720
            this.layoutControlItem10.TextVisible = false;
595 721
            // 
......
599 725
            this.layoutControlGroup8});
600 726
            this.GroupLineNumber.Location = new System.Drawing.Point(0, 0);
601 727
            this.GroupLineNumber.Name = "GroupLineNumber";
602
            this.GroupLineNumber.Size = new System.Drawing.Size(691, 636);
728
            this.GroupLineNumber.Size = new System.Drawing.Size(691, 632);
603 729
            this.GroupLineNumber.Text = "Line Number";
604 730
            // 
605 731
            // layoutControlGroup8
606 732
            // 
607 733
            this.layoutControlGroup8.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
608 734
            this.layoutControlItem13,
609
            this.layoutControlItem3});
735
            this.layoutControlItem3,
736
            this.layoutControlItem18});
610 737
            this.layoutControlGroup8.Location = new System.Drawing.Point(0, 0);
611 738
            this.layoutControlGroup8.Name = "layoutControlGroup8";
612
            this.layoutControlGroup8.Size = new System.Drawing.Size(691, 636);
739
            this.layoutControlGroup8.Size = new System.Drawing.Size(691, 632);
613 740
            this.layoutControlGroup8.Text = "ID2 Line Number";
614 741
            // 
615 742
            // layoutControlItem13
......
617 744
            this.layoutControlItem13.Control = this.gridControlLineNumber;
618 745
            this.layoutControlItem13.Location = new System.Drawing.Point(0, 24);
619 746
            this.layoutControlItem13.Name = "layoutControlItem13";
620
            this.layoutControlItem13.Size = new System.Drawing.Size(667, 569);
747
            this.layoutControlItem13.Size = new System.Drawing.Size(667, 563);
621 748
            this.layoutControlItem13.TextSize = new System.Drawing.Size(0, 0);
622 749
            this.layoutControlItem13.TextVisible = false;
623 750
            // 
......
626 753
            this.layoutControlItem3.Control = this.textBoxLineNumberPath;
627 754
            this.layoutControlItem3.Location = new System.Drawing.Point(0, 0);
628 755
            this.layoutControlItem3.Name = "layoutControlItem3";
629
            this.layoutControlItem3.Size = new System.Drawing.Size(667, 24);
756
            this.layoutControlItem3.Size = new System.Drawing.Size(410, 24);
630 757
            this.layoutControlItem3.Text = "SPPID Line Number Label Path";
758
            this.layoutControlItem3.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
631 759
            this.layoutControlItem3.TextSize = new System.Drawing.Size(167, 14);
760
            this.layoutControlItem3.TextToControlDistance = 5;
632 761
            // 
633 762
            // GroupAttribute
634 763
            // 
......
636 765
            this.layoutControlGroup7});
637 766
            this.GroupAttribute.Location = new System.Drawing.Point(0, 0);
638 767
            this.GroupAttribute.Name = "GroupAttribute";
639
            this.GroupAttribute.Size = new System.Drawing.Size(691, 636);
768
            this.GroupAttribute.Size = new System.Drawing.Size(691, 632);
640 769
            this.GroupAttribute.Text = "Attribute";
641 770
            // 
642 771
            // layoutControlGroup7
......
645 774
            this.layoutControlItem11});
646 775
            this.layoutControlGroup7.Location = new System.Drawing.Point(0, 0);
647 776
            this.layoutControlGroup7.Name = "layoutControlGroup7";
648
            this.layoutControlGroup7.Size = new System.Drawing.Size(691, 636);
777
            this.layoutControlGroup7.Size = new System.Drawing.Size(691, 632);
649 778
            this.layoutControlGroup7.Text = "ID2 Attribute List";
650 779
            // 
651 780
            // layoutControlItem11
652 781
            // 
653
            this.layoutControlItem11.Control = this.gridControlAssociation;
782
            this.layoutControlItem11.Control = this.gridControlAttribute;
654 783
            this.layoutControlItem11.Location = new System.Drawing.Point(0, 0);
655 784
            this.layoutControlItem11.Name = "layoutControlItem11";
656
            this.layoutControlItem11.Size = new System.Drawing.Size(667, 593);
785
            this.layoutControlItem11.Size = new System.Drawing.Size(667, 587);
657 786
            this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
658 787
            this.layoutControlItem11.TextVisible = false;
659 788
            // 
660
            // GroupETCSetting
661
            // 
662
            this.GroupETCSetting.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
663
            this.emptySpaceItem3,
664
            this.layoutControlGroup9,
665
            this.layoutControlGroup10});
666
            this.GroupETCSetting.Location = new System.Drawing.Point(0, 0);
667
            this.GroupETCSetting.Name = "GroupETCSetting";
668
            this.GroupETCSetting.Size = new System.Drawing.Size(691, 636);
669
            this.GroupETCSetting.Text = "ETC Setting";
670
            // 
671
            // emptySpaceItem3
672
            // 
673
            this.emptySpaceItem3.AllowHotTrack = false;
674
            this.emptySpaceItem3.Location = new System.Drawing.Point(0, 158);
675
            this.emptySpaceItem3.Name = "emptySpaceItem3";
676
            this.emptySpaceItem3.Size = new System.Drawing.Size(691, 478);
677
            this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
678
            // 
679
            // layoutControlGroup9
680
            // 
681
            this.layoutControlGroup9.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
682
            this.layoutControlItem5,
683
            this.layoutControlItem7});
684
            this.layoutControlGroup9.Location = new System.Drawing.Point(0, 0);
685
            this.layoutControlGroup9.Name = "layoutControlGroup9";
686
            this.layoutControlGroup9.Size = new System.Drawing.Size(691, 91);
687
            this.layoutControlGroup9.Text = "Text && Note Setting";
688
            // 
689
            // layoutControlItem5
690
            // 
691
            this.layoutControlItem5.Control = this.textBoxTextSymbolPath;
692
            this.layoutControlItem5.Location = new System.Drawing.Point(0, 0);
693
            this.layoutControlItem5.Name = "layoutControlItem5";
694
            this.layoutControlItem5.Size = new System.Drawing.Size(667, 24);
695
            this.layoutControlItem5.Text = "SPPID Text Symbol Path";
696
            this.layoutControlItem5.TextSize = new System.Drawing.Size(167, 14);
697
            // 
698
            // layoutControlItem7
699
            // 
700
            this.layoutControlItem7.Control = this.textBoxNoteSymbolPath;
701
            this.layoutControlItem7.Location = new System.Drawing.Point(0, 24);
702
            this.layoutControlItem7.Name = "layoutControlItem7";
703
            this.layoutControlItem7.Size = new System.Drawing.Size(667, 24);
704
            this.layoutControlItem7.Text = "SPPID Note Symbol Path";
705
            this.layoutControlItem7.TextSize = new System.Drawing.Size(167, 14);
706
            // 
707
            // layoutControlGroup10
708
            // 
709
            this.layoutControlGroup10.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
710
            this.layoutControlItem14});
711
            this.layoutControlGroup10.Location = new System.Drawing.Point(0, 91);
712
            this.layoutControlGroup10.Name = "layoutControlGroup10";
713
            this.layoutControlGroup10.Size = new System.Drawing.Size(691, 67);
714
            this.layoutControlGroup10.Text = "Drain Valve Setting";
715
            // 
716
            // layoutControlItem14
717
            // 
718
            this.layoutControlItem14.Control = this.textBoxDrainValveSize;
719
            this.layoutControlItem14.Location = new System.Drawing.Point(0, 0);
720
            this.layoutControlItem14.Name = "layoutControlItem14";
721
            this.layoutControlItem14.Size = new System.Drawing.Size(667, 24);
722
            this.layoutControlItem14.Text = "Drain Valve Size";
723
            this.layoutControlItem14.TextSize = new System.Drawing.Size(167, 14);
724
            // 
725 789
            // layoutControlItem12
726 790
            // 
727 791
            this.layoutControlItem12.Control = this.btnClose;
728
            this.layoutControlItem12.Location = new System.Drawing.Point(984, 683);
792
            this.layoutControlItem12.Location = new System.Drawing.Point(984, 678);
729 793
            this.layoutControlItem12.MaxSize = new System.Drawing.Size(90, 40);
730 794
            this.layoutControlItem12.MinSize = new System.Drawing.Size(90, 40);
731 795
            this.layoutControlItem12.Name = "layoutControlItem12";
......
737 801
            // layoutControlItem4
738 802
            // 
739 803
            this.layoutControlItem4.Control = this.btnSave;
740
            this.layoutControlItem4.Location = new System.Drawing.Point(881, 683);
804
            this.layoutControlItem4.Location = new System.Drawing.Point(881, 678);
741 805
            this.layoutControlItem4.MaxSize = new System.Drawing.Size(88, 40);
742 806
            this.layoutControlItem4.MinSize = new System.Drawing.Size(88, 40);
743 807
            this.layoutControlItem4.Name = "layoutControlItem4";
......
749 813
            // emptySpaceItem1
750 814
            // 
751 815
            this.emptySpaceItem1.AllowHotTrack = false;
752
            this.emptySpaceItem1.Location = new System.Drawing.Point(969, 683);
816
            this.emptySpaceItem1.Location = new System.Drawing.Point(969, 678);
753 817
            this.emptySpaceItem1.MaxSize = new System.Drawing.Size(15, 40);
754 818
            this.emptySpaceItem1.MinSize = new System.Drawing.Size(15, 40);
755 819
            this.emptySpaceItem1.Name = "emptySpaceItem1";
......
757 821
            this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
758 822
            this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
759 823
            // 
824
            // checkComboBoxLineNumberLocation
825
            // 
826
            this.checkComboBoxLineNumberLocation.Location = new System.Drawing.Point(529, 79);
827
            this.checkComboBoxLineNumberLocation.MenuManager = this.ribbonControl;
828
            this.checkComboBoxLineNumberLocation.Name = "checkComboBoxLineNumberLocation";
829
            this.checkComboBoxLineNumberLocation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
830
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
831
            this.checkComboBoxLineNumberLocation.Size = new System.Drawing.Size(170, 20);
832
            this.checkComboBoxLineNumberLocation.StyleController = this.layoutControl1;
833
            this.checkComboBoxLineNumberLocation.TabIndex = 30;
834
            // 
835
            // layoutControlItem18
836
            // 
837
            this.layoutControlItem18.Control = this.checkComboBoxLineNumberLocation;
838
            this.layoutControlItem18.Location = new System.Drawing.Point(410, 0);
839
            this.layoutControlItem18.Name = "layoutControlItem18";
840
            this.layoutControlItem18.Size = new System.Drawing.Size(257, 24);
841
            this.layoutControlItem18.Text = "Label Location";
842
            this.layoutControlItem18.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
843
            this.layoutControlItem18.TextSize = new System.Drawing.Size(78, 14);
844
            this.layoutControlItem18.TextToControlDistance = 5;
845
            // 
760 846
            // MappingForm
761 847
            // 
762 848
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
......
773 859
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit();
774 860
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
775 861
            this.layoutControl1.ResumeLayout(false);
862
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxNoteLocation.Properties)).EndInit();
863
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxTextLocation.Properties)).EndInit();
776 864
            ((System.ComponentModel.ISupportInitialize)(this.textBoxDrainValveSize.Properties)).EndInit();
777 865
            ((System.ComponentModel.ISupportInitialize)(this.textBoxNoteSymbolPath.Properties)).EndInit();
778 866
            ((System.ComponentModel.ISupportInitialize)(this.textBoxTextSymbolPath.Properties)).EndInit();
779 867
            ((System.ComponentModel.ISupportInitialize)(this.textBoxLineNumberPath.Properties)).EndInit();
780 868
            ((System.ComponentModel.ISupportInitialize)(this.gridControlLineNumber)).EndInit();
781 869
            ((System.ComponentModel.ISupportInitialize)(this.gridViewLineNumber)).EndInit();
782
            ((System.ComponentModel.ISupportInitialize)(this.gridControlAssociation)).EndInit();
783
            ((System.ComponentModel.ISupportInitialize)(this.gridViewAssociation)).EndInit();
870
            ((System.ComponentModel.ISupportInitialize)(this.gridControlAttribute)).EndInit();
871
            ((System.ComponentModel.ISupportInitialize)(this.gridViewAttribute)).EndInit();
784 872
            ((System.ComponentModel.ISupportInitialize)(this.gridControlLine)).EndInit();
785 873
            ((System.ComponentModel.ISupportInitialize)(this.gridViewLine)).EndInit();
786 874
            ((System.ComponentModel.ISupportInitialize)(this.gridControlSymbol)).EndInit();
......
799 887
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
800 888
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).EndInit();
801 889
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).EndInit();
890
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).EndInit();
891
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
892
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup9)).EndInit();
893
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
894
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
895
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit();
896
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit();
897
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup10)).EndInit();
898
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
802 899
            ((System.ComponentModel.ISupportInitialize)(this.GroupSymbol)).EndInit();
803 900
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit();
804 901
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
......
818 915
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).EndInit();
819 916
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).EndInit();
820 917
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
821
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).EndInit();
822
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
823
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup9)).EndInit();
824
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
825
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
826
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup10)).EndInit();
827
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
828 918
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
829 919
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
830 920
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
921
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxLineNumberLocation.Properties)).EndInit();
922
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit();
831 923
            this.ResumeLayout(false);
832 924
            this.PerformLayout();
833 925

  
......
868 960
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup6;
869 961
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
870 962
        private DevExpress.XtraLayout.LayoutControlGroup GroupAttribute;
871
        private DevExpress.XtraGrid.GridControl gridControlAssociation;
872
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewAssociation;
963
        private DevExpress.XtraGrid.GridControl gridControlAttribute;
964
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewAttribute;
873 965
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
874 966
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup7;
875 967
        private DevExpress.XtraEditors.SimpleButton btnClose;
......
895 987
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
896 988
        private DevExpress.XtraEditors.SimpleButton btnImageRefresh;
897 989
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15;
990
        private DevExpress.XtraEditors.CheckedComboBoxEdit checkComboBoxNoteLocation;
991
        private DevExpress.XtraEditors.CheckedComboBoxEdit checkComboBoxTextLocation;
992
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16;
993
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem17;
994
        private DevExpress.XtraEditors.CheckedComboBoxEdit checkComboBoxLineNumberLocation;
995
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem18;
898 996
    }
899 997
}
DTI_PID/SPPIDConverter/Form/MappingForm.cs
54 54
        DataTable SPPIDSymbolPathDT;
55 55
        DataTable lineDT;
56 56
        DataTable linePropertyDT;
57
        DataTable associationDT;
57
        DataTable attributeDT;
58 58

  
59 59
        ButtonEdit currentButtonEdit;
60
        public MappingForm(DataTable symbolDT, DataTable SPPIDSymbolPathDT, DataTable lineDT, DataTable linePropertyDT, DataTable associationDT)
60
        public MappingForm(DataTable symbolDT, DataTable SPPIDSymbolPathDT, DataTable lineDT, DataTable linePropertyDT, DataTable attributeDT)
61 61
        {
62 62
            InitializeComponent();
63 63
            this.symbolDT = symbolDT;
64 64
            this.SPPIDSymbolPathDT = SPPIDSymbolPathDT;
65 65
            this.lineDT = lineDT;
66 66
            this.linePropertyDT = linePropertyDT;
67
            this.associationDT = associationDT;
67
            this.attributeDT = attributeDT;
68

  
69
            checkComboBoxTextLocation.EditValueChanging += TextEdit1_EditValueChanging;
70
            checkComboBoxTextLocation.Properties.SeparatorChar = ',';
71
            checkComboBoxTextLocation.Properties.SetFlags(typeof(Model.Location));
72
            checkComboBoxTextLocation.Properties.SelectAllItemVisible = false;
73
            removeCombinedFlags(checkComboBoxTextLocation);
74

  
75
            checkComboBoxNoteLocation.EditValueChanging += TextEdit1_EditValueChanging;
76
            checkComboBoxNoteLocation.Properties.SeparatorChar = ',';
77
            checkComboBoxNoteLocation.Properties.SetFlags(typeof(Model.Location));
78
            checkComboBoxNoteLocation.Properties.SelectAllItemVisible = false;
79
            removeCombinedFlags(checkComboBoxNoteLocation);
80

  
81
            checkComboBoxLineNumberLocation.EditValueChanging += TextEdit1_EditValueChanging;
82
            checkComboBoxLineNumberLocation.Properties.SeparatorChar = ',';
83
            checkComboBoxLineNumberLocation.Properties.SetFlags(typeof(Model.Location));
84
            checkComboBoxLineNumberLocation.Properties.SelectAllItemVisible = false;
85
            removeCombinedFlags(checkComboBoxLineNumberLocation);
68 86

  
69 87
            InitID2GridView();
70 88
            InitSPPIDSymbolTree();
......
74 92
            textBoxLineNumberPath.Properties.Buttons[0].Kind = ButtonPredefines.Glyph;
75 93
            textBoxLineNumberPath.Properties.Buttons[0].Image = Resources.cancel_16x16;
76 94
            if (linePropertyDT.Columns.Count > 0 && linePropertyDT.Rows.Count > 0)
77
            {
78 95
                textBoxLineNumberPath.Text = linePropertyDT.Rows[0]["SPPID_SYMBOL_PATH"] != DBNull.Value ? (string)linePropertyDT.Rows[0]["SPPID_SYMBOL_PATH"] : null;
79
            }
80 96
        }
81 97

  
82 98
        private void InitID2GridView()
......
107 123
            gridViewLine.ExpandAllGroups();
108 124

  
109 125
            // Association GridView
110
            gridControlAssociation.DataSource = associationDT;
111
            gridViewAssociation.Columns["UID"].Visible = false;
112
            gridViewAssociation.Columns["DisplayAttribute"].Caption = "Attribute Name";
113
            gridViewAssociation.Columns["SPPID_SYMBOL_PATH"].Caption = "SPPID Symbol Path";
114
            gridViewAssociation.Columns["Type"].GroupIndex = 0;
115
            gridViewAssociation.Columns["SPPID_SYMBOL_PATH"].OptionsColumn.AllowEdit = false;
116
            gridControlAssociation.RepositoryItems.Add(clearButton);
117
            gridViewAssociation.ExpandAllGroups();
126
            gridControlAttribute.DataSource = attributeDT;
127
            gridViewAttribute.Columns["UID"].Visible = false;
128
            gridViewAttribute.Columns["DisplayAttribute"].Caption = "Attribute Name";
129
            gridViewAttribute.Columns["SPPID_ATTRIBUTE"].Caption = "SPPID Attribute Name";
130
            gridViewAttribute.Columns["SPPID_SYMBOL_PATH"].Caption = "SPPID Symbol Path";
131
            gridViewAttribute.Columns["Type"].GroupIndex = 0;
132
            gridViewAttribute.Columns["SPPID_SYMBOL_PATH"].OptionsColumn.AllowEdit = false;
133
            gridViewAttribute.Columns["LOCATION"].Caption = "Label Location";
134

  
135
            RepositoryItemCheckedComboBoxEdit checkedComboEdit = new RepositoryItemCheckedComboBoxEdit();
136
            foreach (DataRow item in attributeDT.Rows)
137
            {
138
                int i = 0;
139
                if (DBNull.Value.Equals(item["LOCATION"]))
140
                    item["LOCATION"] = 0;
141
                else if (!int.TryParse(item["LOCATION"].ToString(), out i))
142
                    item["LOCATION"] = 0;
143
            }
144
                
145
            checkedComboEdit.EditValueChanging += TextEdit1_EditValueChanging;
146
            checkedComboEdit.SeparatorChar = ',';
147
            checkedComboEdit.SetFlags(typeof(Model.Location));
148
            checkedComboEdit.SelectAllItemVisible = false;
149
            removeCombinedFlags(checkedComboEdit);
150

  
151
            gridControlAttribute.RepositoryItems.Add(checkedComboEdit);
152
            gridViewAttribute.Columns["LOCATION"].ColumnEdit = checkedComboEdit;
153
            gridControlAttribute.RepositoryItems.Add(clearButton);
154
            gridViewAttribute.ExpandAllGroups();
118 155

  
119 156
            // LineNumber GridView
120 157
            gridControlLineNumber.DataSource = linePropertyDT;
......
131 168
            gridViewSymbol.Columns["Clear"].MaxWidth = 16;
132 169
            gridViewLine.Columns["Clear"].ColumnEdit = clearButton;
133 170
            gridViewLine.Columns["Clear"].MaxWidth = 16;
134
            gridViewAssociation.Columns["Clear"].ColumnEdit = clearButton;
135
            gridViewAssociation.Columns["Clear"].MaxWidth = 16;
171
            gridViewAttribute.Columns["Clear"].ColumnEdit = clearButton;
172
            gridViewAttribute.Columns["Clear"].MaxWidth = 16;
173
        }
174

  
175
        private void TextEdit1_EditValueChanging(object sender, DevExpress.XtraEditors.Controls.ChangingEventArgs e)
176
        {
177
            Model.Location location = (Model.Location)e.NewValue;
178
            int i = (int)location;
179
            if (
180
                i == 1 || i == 2 || i == 4 || i == 8 || 
181
                (location.HasFlag(Model.Location.Left) && location.HasFlag(Model.Location.Right)) ||
182
                (location.HasFlag(Model.Location.Up) && location.HasFlag(Model.Location.Down))
183
                )
184
                e.Cancel = true;
185

  
186
        }
187

  
188
        private void removeCombinedFlags(RepositoryItemCheckedComboBoxEdit ri)
189
        {
190
            for (int i = ri.Items.Count - 1; i > 0; i--)
191
            {
192
                Enum val1 = ri.Items[i].Value as Enum;
193
                for (int j = i - 1; j >= 0; j--)
194
                {
195
                    Enum val2 = ri.Items[j].Value as Enum;
196
                    if (val1.HasFlag(val2))
197
                    {
198
                        ri.Items.RemoveAt(i);
199
                        break;
200
                    }
201
                }
202
            }
203
        }
204

  
205
        private void removeCombinedFlags(CheckedComboBoxEdit ri)
206
        {
207
            for (int i = ri.Properties.Items.Count - 1; i > 0; i--)
208
            {
209
                Enum val1 = ri.Properties.Items[i].Value as Enum;
210
                for (int j = i - 1; j >= 0; j--)
211
                {
212
                    Enum val2 = ri.Properties.Items[j].Value as Enum;
213
                    if (val1.HasFlag(val2))
214
                    {
215
                        ri.Properties.Items.RemoveAt(i);
216
                        break;
217
                    }
218
                }
219
            }
136 220
        }
137 221

  
138 222
        private void InitSPPIDSymbolTree()
......
165 249
            textBoxTextSymbolPath.Text = _ETCSetting.TextSymbolPath;
166 250
            textBoxNoteSymbolPath.Text = _ETCSetting.NoteSymbolPath;
167 251
            textBoxDrainValveSize.Text = _ETCSetting.DrainValveSize;
252

  
253
            checkComboBoxTextLocation.EditValue = _ETCSetting.TextLocation;
254
            checkComboBoxNoteLocation.EditValue = _ETCSetting.NoteLocation;
255
            checkComboBoxLineNumberLocation.EditValue = _ETCSetting.LineNumberLocation;
168 256
        }
169 257

  
170 258
        private void textBoxETC_ButtonClick(object sender, ButtonPressedEventArgs e)
......
199 287
                value = gridViewSymbol.GetRowCellDisplayText(gridViewSymbol.FocusedRowHandle, "SPPID_SYMBOL_PATH");
200 288
            else if (tabbedControlGroup.SelectedTabPage.Name == "GroupLine" && gridViewLine.FocusedRowHandle >= 0)
201 289
                value = gridViewLine.GetRowCellDisplayText(gridViewLine.FocusedRowHandle, "SPPID_SYMBOL_PATH");
... 이 차이점은 표시할 수 있는 최대 줄수를 초과해서 이 차이점은 잘렸습니다.

내보내기 Unified diff

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