프로젝트

일반

사용자정보

개정판 1278ba59

ID1278ba59c663a44cf01a1f5f2458ae34b8e29669
상위 fbf04b7b
하위 133ad3d9, e46c6f64, 23eb98bf

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

dev issue #000 : edit ui

Change-Id: Ic0cd1a7977a59f61a1772c35644b3f36e67100a2

차이점 보기:

DTI_PID/BaseModel/BaseModel.csproj
42 42
    <Reference Include="System.Xml" />
43 43
  </ItemGroup>
44 44
  <ItemGroup>
45
    <Compile Include="Document.cs" />
46
    <Compile Include="Line.cs" />
47
    <Compile Include="LineNumber.cs" />
48
    <Compile Include="Note.cs" />
45
    <Compile Include="ProjectInfo.cs" />
46
    <Compile Include="Item\Document.cs" />
47
    <Compile Include="Item\Line.cs" />
48
    <Compile Include="Item\LineNumber.cs" />
49
    <Compile Include="Item\Note.cs" />
49 50
    <Compile Include="Properties\AssemblyInfo.cs" />
50
    <Compile Include="Symbol.cs" />
51
    <Compile Include="Text.cs" />
51
    <Compile Include="Item\Symbol.cs" />
52
    <Compile Include="Item\Text.cs" />
52 53
  </ItemGroup>
53 54
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
54 55
</Project>
DTI_PID/BaseModel/Document.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
using System.IO;
7
using System.Xml.Linq;
8
using System.Windows.Forms;
9

  
10
namespace Converter.BaseModel
11
{
12
    public class Document
13
    {
14
        private string _DWGNAME;
15
        private string _SIZE;
16
        private List<Symbol> _SYMBOLS;
17
        private List<Text> _TEXTINFOS;
18
        private List<Note> _NOTES;
19
        private List<Line> _LINES;
20
        private List<LineNumber> _LINENUMBERS;
21

  
22
        public List<Symbol> SYMBOLS { get => _SYMBOLS; set => _SYMBOLS = value; }
23
        public List<Text> TEXTINFOS { get => _TEXTINFOS; set => _TEXTINFOS = value; }
24
        public List<Note> NOTES { get => _NOTES; set => _NOTES = value; }
25
        public List<Line> LINES { get => _LINES; set => _LINES = value; }
26
        public List<LineNumber> LINENUMBERS { get => _LINENUMBERS; set => _LINENUMBERS = value; }
27
        public string DWGNAME { get => _DWGNAME; set => _DWGNAME = value; }
28
        public string SIZE { get => _SIZE; set => _SIZE = value; }
29

  
30
        public Document(string xmlPath)
31
        {
32
            try
33
            {
34
                XElement xml = XElement.Load(xmlPath);
35
                DWGNAME = xml.Element("DWGNAME").Value;
36
                SIZE = xml.Element("SIZE").Value;
37

  
38
                SetSymbol(xml.Element("SYMBOLS"));
39
                SetLine(xml.Element("LINEINFOS"));
40
                SetLineNumber(xml.Element("LINENOS"));
41
                SetText(xml.Element("TEXTINFOS"));
42
                SetNote(xml.Element("NOTES"));
43
            }
44
            catch (Exception ex)
45
            {
46
                MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace);
47
            }
48
        }
49

  
50
        private void SetSymbol(XElement node)
51
        {
52
            foreach (XElement item in node.Elements("SYMBOL"))
53
            {
54
                SYMBOLS.Add(new Symbol()
55
                {
56

  
57
                });
58
            }
59
        }
60

  
61
        private void SetLine(XElement node)
62
        {
63
            foreach (XElement item in node.Elements("LINE"))
64
            {
65
                LINES.Add(new Line()
66
                {
67

  
68
                });
69
            }
70
        }
71

  
72
        private void SetLineNumber(XElement node)
73
        {
74
            foreach (XElement item in node.Elements("LINE_NO"))
75
            {
76
                LINENUMBERS.Add(new LineNumber()
77
                {
78

  
79
                });
80
            }
81
        }
82

  
83
        private void SetText(XElement node)
84
        {
85
            foreach (XElement item in node.Elements("ATTRIBUTE"))
86
            {
87
                TEXTINFOS.Add(new Text()
88
                {
89

  
90
                });
91
            }
92
        }
93

  
94
        private void SetNote(XElement node)
95
        {
96
            foreach (XElement item in node.Elements("ATTRIBUTE"))
97
            {
98
                NOTES.Add(new Note()
99
                {
100

  
101
                });
102
            }
103
        }
104
    }
105
}
DTI_PID/BaseModel/Item/Document.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
using System.IO;
7
using System.Xml.Linq;
8
using System.Windows.Forms;
9

  
10
namespace Converter.BaseModel
11
{
12
    public class Document
13
    {
14
        private string _DWGNAME;
15
        private string _SIZE;
16
        private List<Symbol> _SYMBOLS;
17
        private List<Text> _TEXTINFOS;
18
        private List<Note> _NOTES;
19
        private List<Line> _LINES;
20
        private List<LineNumber> _LINENUMBERS;
21

  
22
        public List<Symbol> SYMBOLS { get => _SYMBOLS; set => _SYMBOLS = value; }
23
        public List<Text> TEXTINFOS { get => _TEXTINFOS; set => _TEXTINFOS = value; }
24
        public List<Note> NOTES { get => _NOTES; set => _NOTES = value; }
25
        public List<Line> LINES { get => _LINES; set => _LINES = value; }
26
        public List<LineNumber> LINENUMBERS { get => _LINENUMBERS; set => _LINENUMBERS = value; }
27
        public string DWGNAME { get => _DWGNAME; set => _DWGNAME = value; }
28
        public string SIZE { get => _SIZE; set => _SIZE = value; }
29

  
30
        public Document(string xmlPath)
31
        {
32
            try
33
            {
34
                XElement xml = XElement.Load(xmlPath);
35
                DWGNAME = xml.Element("DWGNAME").Value;
36
                SIZE = xml.Element("SIZE").Value;
37

  
38
                SetSymbol(xml.Element("SYMBOLS"));
39
                SetLine(xml.Element("LINEINFOS"));
40
                SetLineNumber(xml.Element("LINENOS"));
41
                SetText(xml.Element("TEXTINFOS"));
42
                SetNote(xml.Element("NOTES"));
43
            }
44
            catch (Exception ex)
45
            {
46
                MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace);
47
            }
48
        }
49

  
50
        private void SetSymbol(XElement node)
51
        {
52
            foreach (XElement item in node.Elements("SYMBOL"))
53
            {
54
                SYMBOLS.Add(new Symbol()
55
                {
56

  
57
                });
58
            }
59
        }
60

  
61
        private void SetLine(XElement node)
62
        {
63
            foreach (XElement item in node.Elements("LINE"))
64
            {
65
                LINES.Add(new Line()
66
                {
67

  
68
                });
69
            }
70
        }
71

  
72
        private void SetLineNumber(XElement node)
73
        {
74
            foreach (XElement item in node.Elements("LINE_NO"))
75
            {
76
                LINENUMBERS.Add(new LineNumber()
77
                {
78

  
79
                });
80
            }
81
        }
82

  
83
        private void SetText(XElement node)
84
        {
85
            foreach (XElement item in node.Elements("ATTRIBUTE"))
86
            {
87
                TEXTINFOS.Add(new Text()
88
                {
89

  
90
                });
91
            }
92
        }
93

  
94
        private void SetNote(XElement node)
95
        {
96
            foreach (XElement item in node.Elements("ATTRIBUTE"))
97
            {
98
                NOTES.Add(new Note()
99
                {
100

  
101
                });
102
            }
103
        }
104
    }
105
}
DTI_PID/BaseModel/Item/Line.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 Line
10
    {
11
    }
12
}
DTI_PID/BaseModel/Item/LineNumber.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 LineNumber
10
    {
11
    }
12
}
DTI_PID/BaseModel/Item/Note.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 Note
10
    {
11
    }
12
}
DTI_PID/BaseModel/Item/Symbol.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 Symbol
10
    {
11
    }
12
}
DTI_PID/BaseModel/Item/Text.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 Text
10
    {
11
    }
12
}
DTI_PID/BaseModel/Line.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 Line
10
    {
11
    }
12
}
DTI_PID/BaseModel/LineNumber.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 LineNumber
10
    {
11
    }
12
}
DTI_PID/BaseModel/Note.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 Note
10
    {
11
    }
12
}
DTI_PID/BaseModel/ProjectInfo.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 ProjectInfo
10
    {
11

  
12
    }
13
}
DTI_PID/BaseModel/Symbol.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 Symbol
10
    {
11
    }
12
}
DTI_PID/BaseModel/Text.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 Text
10
    {
11
    }
12
}
DTI_PID/SPPIDConverter_AutoModeling/ConverterForm.Designer.cs
35 35
            this.btnLoadFile = new DevExpress.XtraEditors.SimpleButton();
36 36
            this.btnItemMapping = new DevExpress.XtraEditors.SimpleButton();
37 37
            this.btnSPPIDDB = new DevExpress.XtraEditors.SimpleButton();
38
            this.gridControlAutoConverter = new DevExpress.XtraGrid.GridControl();
39
            this.gridViewAutoConverter = new DevExpress.XtraGrid.Views.Grid.GridView();
38
            this.gridControlConverter = new DevExpress.XtraGrid.GridControl();
39
            this.gridViewConverter = new DevExpress.XtraGrid.Views.Grid.GridView();
40 40
            this.buttonEdit1 = new DevExpress.XtraEditors.ButtonEdit();
41 41
            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
42 42
            this.layoutControlGroupAutoConverter = new DevExpress.XtraLayout.LayoutControlGroup();
......
65 65
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit();
66 66
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
67 67
            this.layoutControl1.SuspendLayout();
68
            ((System.ComponentModel.ISupportInitialize)(this.gridControlAutoConverter)).BeginInit();
69
            ((System.ComponentModel.ISupportInitialize)(this.gridViewAutoConverter)).BeginInit();
68
            ((System.ComponentModel.ISupportInitialize)(this.gridControlConverter)).BeginInit();
69
            ((System.ComponentModel.ISupportInitialize)(this.gridViewConverter)).BeginInit();
70 70
            ((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).BeginInit();
71 71
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
72 72
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupAutoConverter)).BeginInit();
......
110 110
            this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False;
111 111
            this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages;
112 112
            this.ribbonControl.ShowToolbarCustomizeItem = false;
113
            this.ribbonControl.Size = new System.Drawing.Size(1066, 32);
113
            this.ribbonControl.Size = new System.Drawing.Size(1266, 32);
114 114
            this.ribbonControl.Toolbar.ShowCustomizeItem = false;
115 115
            // 
116 116
            // layoutControl1
......
119 119
            this.layoutControl1.Controls.Add(this.btnLoadFile);
120 120
            this.layoutControl1.Controls.Add(this.btnItemMapping);
121 121
            this.layoutControl1.Controls.Add(this.btnSPPIDDB);
122
            this.layoutControl1.Controls.Add(this.gridControlAutoConverter);
122
            this.layoutControl1.Controls.Add(this.gridControlConverter);
123 123
            this.layoutControl1.Controls.Add(this.buttonEdit1);
124 124
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
125 125
            this.layoutControl1.Location = new System.Drawing.Point(0, 32);
126 126
            this.layoutControl1.Name = "layoutControl1";
127 127
            this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(982, 292, 650, 400);
128 128
            this.layoutControl1.Root = this.Root;
129
            this.layoutControl1.Size = new System.Drawing.Size(1066, 515);
129
            this.layoutControl1.Size = new System.Drawing.Size(1266, 471);
130 130
            this.layoutControl1.TabIndex = 1;
131 131
            this.layoutControl1.Text = "layoutControl1";
132 132
            // 
133 133
            // btnRun
134 134
            // 
135 135
            this.btnRun.ImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.next;
136
            this.btnRun.Location = new System.Drawing.Point(723, 58);
136
            this.btnRun.Location = new System.Drawing.Point(874, 58);
137 137
            this.btnRun.Name = "btnRun";
138 138
            this.btnRun.Size = new System.Drawing.Size(63, 36);
139 139
            this.btnRun.StyleController = this.layoutControl1;
140 140
            this.btnRun.TabIndex = 9;
141 141
            this.btnRun.Text = "Run";
142
            this.btnRun.Click += new System.EventHandler(this.btnRun_Click);
142 143
            // 
143 144
            // btnLoadFile
144 145
            // 
......
149 150
            this.btnLoadFile.StyleController = this.layoutControl1;
150 151
            this.btnLoadFile.TabIndex = 8;
151 152
            this.btnLoadFile.Text = "Load Files";
153
            this.btnLoadFile.Click += new System.EventHandler(this.btnLoadFile_Click);
152 154
            // 
153 155
            // btnItemMapping
154 156
            // 
155 157
            this.btnItemMapping.ImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.properties;
156
            this.btnItemMapping.Location = new System.Drawing.Point(824, 310);
158
            this.btnItemMapping.Location = new System.Drawing.Point(975, 310);
157 159
            this.btnItemMapping.Name = "btnItemMapping";
158
            this.btnItemMapping.Size = new System.Drawing.Size(218, 36);
160
            this.btnItemMapping.Size = new System.Drawing.Size(267, 36);
159 161
            this.btnItemMapping.StyleController = this.layoutControl1;
160 162
            this.btnItemMapping.TabIndex = 7;
161 163
            this.btnItemMapping.Text = "Setting";
......
163 165
            // btnSPPIDDB
164 166
            // 
165 167
            this.btnSPPIDDB.ImageOptions.SvgImage = global::Converter.SPPID.AutoModeling.Properties.Resources.properties;
166
            this.btnSPPIDDB.Location = new System.Drawing.Point(824, 58);
168
            this.btnSPPIDDB.Location = new System.Drawing.Point(975, 58);
167 169
            this.btnSPPIDDB.Name = "btnSPPIDDB";
168
            this.btnSPPIDDB.Size = new System.Drawing.Size(218, 36);
170
            this.btnSPPIDDB.Size = new System.Drawing.Size(267, 36);
169 171
            this.btnSPPIDDB.StyleController = this.layoutControl1;
170 172
            this.btnSPPIDDB.TabIndex = 5;
171 173
            this.btnSPPIDDB.Text = "Setting";
172 174
            // 
173
            // gridControlAutoConverter
175
            // gridControlConverter
174 176
            // 
175
            this.gridControlAutoConverter.Location = new System.Drawing.Point(24, 98);
176
            this.gridControlAutoConverter.MainView = this.gridViewAutoConverter;
177
            this.gridControlAutoConverter.MenuManager = this.ribbonControl;
178
            this.gridControlAutoConverter.Name = "gridControlAutoConverter";
179
            this.gridControlAutoConverter.Size = new System.Drawing.Size(762, 393);
180
            this.gridControlAutoConverter.TabIndex = 4;
181
            this.gridControlAutoConverter.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
182
            this.gridViewAutoConverter});
177
            this.gridControlConverter.Location = new System.Drawing.Point(24, 98);
178
            this.gridControlConverter.MainView = this.gridViewConverter;
179
            this.gridControlConverter.MenuManager = this.ribbonControl;
180
            this.gridControlConverter.Name = "gridControlConverter";
181
            this.gridControlConverter.Size = new System.Drawing.Size(913, 349);
182
            this.gridControlConverter.TabIndex = 4;
183
            this.gridControlConverter.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
184
            this.gridViewConverter});
183 185
            // 
184
            // gridViewAutoConverter
186
            // gridViewConverter
185 187
            // 
186
            this.gridViewAutoConverter.GridControl = this.gridControlAutoConverter;
187
            this.gridViewAutoConverter.Name = "gridViewAutoConverter";
188
            this.gridViewAutoConverter.OptionsView.ShowGroupPanel = false;
188
            this.gridViewConverter.GridControl = this.gridControlConverter;
189
            this.gridViewConverter.Name = "gridViewConverter";
190
            this.gridViewConverter.OptionsView.ShowGroupPanel = false;
189 191
            // 
190 192
            // buttonEdit1
191 193
            // 
192
            this.buttonEdit1.Location = new System.Drawing.Point(862, 192);
194
            this.buttonEdit1.Location = new System.Drawing.Point(1013, 192);
193 195
            this.buttonEdit1.MenuManager = this.ribbonControl;
194 196
            this.buttonEdit1.Name = "buttonEdit1";
195 197
            this.buttonEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
196 198
            new DevExpress.XtraEditors.Controls.EditorButton()});
197
            this.buttonEdit1.Size = new System.Drawing.Size(180, 20);
199
            this.buttonEdit1.Size = new System.Drawing.Size(229, 20);
198 200
            this.buttonEdit1.StyleController = this.layoutControl1;
199 201
            this.buttonEdit1.TabIndex = 10;
200 202
            // 
......
210 212
            this.emptySpaceItem1,
211 213
            this.splitterItem1});
212 214
            this.Root.Name = "Root";
213
            this.Root.Size = new System.Drawing.Size(1066, 515);
215
            this.Root.Size = new System.Drawing.Size(1266, 471);
214 216
            this.Root.TextVisible = false;
215 217
            // 
216 218
            // layoutControlGroupAutoConverter
......
224 226
            this.layoutControlItem6});
225 227
            this.layoutControlGroupAutoConverter.Location = new System.Drawing.Point(0, 0);
226 228
            this.layoutControlGroupAutoConverter.Name = "layoutControlGroupAutoConverter";
227
            this.layoutControlGroupAutoConverter.Size = new System.Drawing.Size(790, 495);
229
            this.layoutControlGroupAutoConverter.Size = new System.Drawing.Size(941, 451);
228 230
            this.layoutControlGroupAutoConverter.Text = "Auto Converter";
229 231
            // 
230 232
            // layoutControlItem1
231 233
            // 
232
            this.layoutControlItem1.Control = this.gridControlAutoConverter;
234
            this.layoutControlItem1.Control = this.gridControlConverter;
233 235
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 40);
234 236
            this.layoutControlItem1.Name = "layoutControlItem1";
235
            this.layoutControlItem1.Size = new System.Drawing.Size(766, 397);
237
            this.layoutControlItem1.Size = new System.Drawing.Size(917, 353);
236 238
            this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
237 239
            this.layoutControlItem1.TextVisible = false;
238 240
            // 
......
253 255
            this.emptySpaceItem2.AllowHotTrack = false;
254 256
            this.emptySpaceItem2.Location = new System.Drawing.Point(98, 0);
255 257
            this.emptySpaceItem2.Name = "emptySpaceItem2";
256
            this.emptySpaceItem2.Size = new System.Drawing.Size(601, 40);
258
            this.emptySpaceItem2.Size = new System.Drawing.Size(752, 40);
257 259
            this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
258 260
            // 
259 261
            // layoutControlItem6
260 262
            // 
261 263
            this.layoutControlItem6.Control = this.btnRun;
262
            this.layoutControlItem6.Location = new System.Drawing.Point(699, 0);
264
            this.layoutControlItem6.Location = new System.Drawing.Point(850, 0);
263 265
            this.layoutControlItem6.MaxSize = new System.Drawing.Size(67, 40);
264 266
            this.layoutControlItem6.MinSize = new System.Drawing.Size(67, 40);
265 267
            this.layoutControlItem6.Name = "layoutControlItem6";
......
278 280
            this.layoutControlItem2,
279 281
            this.simpleLabelItem1,
280 282
            this.simpleLabelItem2});
281
            this.layoutControlGroupSPPIDDB.Location = new System.Drawing.Point(800, 0);
283
            this.layoutControlGroupSPPIDDB.Location = new System.Drawing.Point(951, 0);
282 284
            this.layoutControlGroupSPPIDDB.Name = "layoutControlGroupSPPIDDB";
283
            this.layoutControlGroupSPPIDDB.Size = new System.Drawing.Size(246, 134);
285
            this.layoutControlGroupSPPIDDB.Size = new System.Drawing.Size(295, 134);
284 286
            this.layoutControlGroupSPPIDDB.Text = "SPPID DB";
285 287
            // 
286 288
            // labelSPPIDPlantName
......
288 290
            this.labelSPPIDPlantName.AllowHotTrack = false;
289 291
            this.labelSPPIDPlantName.Location = new System.Drawing.Point(78, 40);
290 292
            this.labelSPPIDPlantName.Name = "labelSPPIDPlantName";
291
            this.labelSPPIDPlantName.Size = new System.Drawing.Size(144, 18);
293
            this.labelSPPIDPlantName.Size = new System.Drawing.Size(193, 18);
292 294
            this.labelSPPIDPlantName.Text = "SPPIDPlantName";
293 295
            this.labelSPPIDPlantName.TextSize = new System.Drawing.Size(93, 14);
294 296
            // 
......
297 299
            this.labelSPPIDDBStatus.AllowHotTrack = false;
298 300
            this.labelSPPIDDBStatus.Location = new System.Drawing.Point(51, 58);
299 301
            this.labelSPPIDDBStatus.Name = "labelSPPIDDBStatus";
300
            this.labelSPPIDDBStatus.Size = new System.Drawing.Size(171, 18);
302
            this.labelSPPIDDBStatus.Size = new System.Drawing.Size(220, 18);
301 303
            this.labelSPPIDDBStatus.Text = "SPPIDDBStatus";
302 304
            this.labelSPPIDDBStatus.TextSize = new System.Drawing.Size(93, 14);
303 305
            // 
......
306 308
            this.layoutControlItem2.Control = this.btnSPPIDDB;
307 309
            this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
308 310
            this.layoutControlItem2.Name = "layoutControlItem2";
309
            this.layoutControlItem2.Size = new System.Drawing.Size(222, 40);
311
            this.layoutControlItem2.Size = new System.Drawing.Size(271, 40);
310 312
            this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
311 313
            this.layoutControlItem2.TextVisible = false;
312 314
            // 
......
346 348
            this.btnID2Project,
347 349
            this.simpleLabelItem3,
348 350
            this.simpleLabelItem4});
349
            this.layoutControlGroupID2Project.Location = new System.Drawing.Point(800, 134);
351
            this.layoutControlGroupID2Project.Location = new System.Drawing.Point(951, 134);
350 352
            this.layoutControlGroupID2Project.Name = "layoutControlGroupID2Project";
351
            this.layoutControlGroupID2Project.Size = new System.Drawing.Size(246, 118);
353
            this.layoutControlGroupID2Project.Size = new System.Drawing.Size(295, 118);
352 354
            this.layoutControlGroupID2Project.Text = "ID2 Project";
353 355
            // 
354 356
            // labelID2ProjectName
......
356 358
            this.labelID2ProjectName.AllowHotTrack = false;
357 359
            this.labelID2ProjectName.Location = new System.Drawing.Point(90, 24);
358 360
            this.labelID2ProjectName.Name = "labelID2ProjectName";
359
            this.labelID2ProjectName.Size = new System.Drawing.Size(132, 18);
361
            this.labelID2ProjectName.Size = new System.Drawing.Size(181, 18);
360 362
            this.labelID2ProjectName.Text = "ID2ProjectName";
361 363
            this.labelID2ProjectName.TextSize = new System.Drawing.Size(93, 14);
362 364
            // 
......
365 367
            this.labelID2ProjectStatus.AllowHotTrack = false;
366 368
            this.labelID2ProjectStatus.Location = new System.Drawing.Point(51, 42);
367 369
            this.labelID2ProjectStatus.Name = "labelID2ProjectStatus";
368
            this.labelID2ProjectStatus.Size = new System.Drawing.Size(171, 18);
370
            this.labelID2ProjectStatus.Size = new System.Drawing.Size(220, 18);
369 371
            this.labelID2ProjectStatus.Text = "ID2ProjectStatus";
370 372
            this.labelID2ProjectStatus.TextSize = new System.Drawing.Size(93, 14);
371 373
            // 
......
374 376
            this.btnID2Project.Control = this.buttonEdit1;
375 377
            this.btnID2Project.Location = new System.Drawing.Point(0, 0);
376 378
            this.btnID2Project.Name = "btnID2Project";
377
            this.btnID2Project.Size = new System.Drawing.Size(222, 24);
379
            this.btnID2Project.Size = new System.Drawing.Size(271, 24);
378 380
            this.btnID2Project.Text = "Path :";
379 381
            this.btnID2Project.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
380 382
            this.btnID2Project.TextSize = new System.Drawing.Size(33, 14);
......
414 416
            this.layoutControlItem4,
415 417
            this.labelItemMappingStatus,
416 418
            this.simpleLabelItem5});
417
            this.layoutControlGroupItemMapping.Location = new System.Drawing.Point(800, 252);
419
            this.layoutControlGroupItemMapping.Location = new System.Drawing.Point(951, 252);
418 420
            this.layoutControlGroupItemMapping.Name = "layoutControlGroupItemMapping";
419
            this.layoutControlGroupItemMapping.Size = new System.Drawing.Size(246, 116);
421
            this.layoutControlGroupItemMapping.Size = new System.Drawing.Size(295, 116);
420 422
            this.layoutControlGroupItemMapping.Text = "Item Mapping";
421 423
            // 
422 424
            // layoutControlItem4
......
424 426
            this.layoutControlItem4.Control = this.btnItemMapping;
425 427
            this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
426 428
            this.layoutControlItem4.Name = "layoutControlItem4";
427
            this.layoutControlItem4.Size = new System.Drawing.Size(222, 40);
429
            this.layoutControlItem4.Size = new System.Drawing.Size(271, 40);
428 430
            this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
429 431
            this.layoutControlItem4.TextVisible = false;
430 432
            // 
......
433 435
            this.labelItemMappingStatus.AllowHotTrack = false;
434 436
            this.labelItemMappingStatus.Location = new System.Drawing.Point(51, 40);
435 437
            this.labelItemMappingStatus.Name = "labelItemMappingStatus";
436
            this.labelItemMappingStatus.Size = new System.Drawing.Size(171, 18);
438
            this.labelItemMappingStatus.Size = new System.Drawing.Size(220, 18);
437 439
            this.labelItemMappingStatus.Text = "MappingStatus";
438 440
            this.labelItemMappingStatus.TextSize = new System.Drawing.Size(93, 14);
439 441
            // 
......
453 455
            // emptySpaceItem1
454 456
            // 
455 457
            this.emptySpaceItem1.AllowHotTrack = false;
456
            this.emptySpaceItem1.Location = new System.Drawing.Point(800, 368);
458
            this.emptySpaceItem1.Location = new System.Drawing.Point(951, 368);
457 459
            this.emptySpaceItem1.Name = "emptySpaceItem1";
458
            this.emptySpaceItem1.Size = new System.Drawing.Size(246, 127);
460
            this.emptySpaceItem1.Size = new System.Drawing.Size(295, 83);
459 461
            this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
460 462
            // 
461 463
            // splitterItem1
462 464
            // 
463 465
            this.splitterItem1.AllowHotTrack = true;
464
            this.splitterItem1.Location = new System.Drawing.Point(790, 0);
466
            this.splitterItem1.Location = new System.Drawing.Point(941, 0);
465 467
            this.splitterItem1.Name = "splitterItem1";
466
            this.splitterItem1.Size = new System.Drawing.Size(10, 495);
468
            this.splitterItem1.Size = new System.Drawing.Size(10, 451);
467 469
            // 
468 470
            // ConverterForm
469 471
            // 
470 472
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
471 473
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
472
            this.ClientSize = new System.Drawing.Size(1066, 547);
474
            this.ClientSize = new System.Drawing.Size(1266, 503);
473 475
            this.Controls.Add(this.layoutControl1);
474 476
            this.Controls.Add(this.ribbonControl);
475 477
            this.Name = "ConverterForm";
......
479 481
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit();
480 482
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
481 483
            this.layoutControl1.ResumeLayout(false);
482
            ((System.ComponentModel.ISupportInitialize)(this.gridControlAutoConverter)).EndInit();
483
            ((System.ComponentModel.ISupportInitialize)(this.gridViewAutoConverter)).EndInit();
484
            ((System.ComponentModel.ISupportInitialize)(this.gridControlConverter)).EndInit();
485
            ((System.ComponentModel.ISupportInitialize)(this.gridViewConverter)).EndInit();
484 486
            ((System.ComponentModel.ISupportInitialize)(this.buttonEdit1.Properties)).EndInit();
485 487
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
486 488
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupAutoConverter)).EndInit();
......
516 518
        private DevExpress.XtraBars.Ribbon.RibbonControl ribbonControl;
517 519
        private DevExpress.XtraLayout.LayoutControl layoutControl1;
518 520
        private DevExpress.XtraEditors.SimpleButton btnSPPIDDB;
519
        private DevExpress.XtraGrid.GridControl gridControlAutoConverter;
520
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewAutoConverter;
521
        private DevExpress.XtraGrid.GridControl gridControlConverter;
522
        private DevExpress.XtraGrid.Views.Grid.GridView gridViewConverter;
521 523
        private DevExpress.XtraLayout.LayoutControlGroup Root;
522 524
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroupAutoConverter;
523 525
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
DTI_PID/SPPIDConverter_AutoModeling/ConverterForm.cs
8 8
using System.Threading.Tasks;
9 9
using System.Windows.Forms;
10 10
using Microsoft.VisualBasic;
11
using DevExpress.XtraEditors.Repository;
12
using DevExpress.XtraEditors.Controls;
13
using DevExpress.XtraEditors;
11 14

  
12 15
namespace Converter.SPPID.AutoModeling
13 16
{
14 17
    public partial class ConverterForm : DevExpress.XtraBars.Ribbon.RibbonForm
15 18
    {
19
        DataTable converterDT = new DataTable();
20
        RepositoryItemComboBox templateComboBox;
21

  
16 22
        public ConverterForm()
17 23
        {
18 24
            InitializeComponent();
25

  
26
            //Color color = Color.FromArgb(67, 117, 219);
27
            //layoutControlGroupAutoConverter.AppearanceGroup.BorderColor = color;
28
            //layoutControlGroupAutoConverter.AllowBorderColorBlending = true;
29
            //layoutControlGroupSPPIDDB.AppearanceGroup.BorderColor = color;
30
            //layoutControlGroupSPPIDDB.AllowBorderColorBlending = true;
31
            //layoutControlGroupID2Project.AppearanceGroup.BorderColor = color;
32
            //layoutControlGroupID2Project.AllowBorderColorBlending = true;
33
            //layoutControlGroupItemMapping.AppearanceGroup.BorderColor = color;
34
            //layoutControlGroupItemMapping.AllowBorderColorBlending = true;
35
            InitGridControl();
36
        }
37

  
38
        private void InitGridControl()
39
        {
40
            #region Converter Page
41
            gridViewConverter.OptionsSelection.MultiSelect = true;
42
            gridViewConverter.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;
43

  
44
            DataColumn col = converterDT.Columns.Add("colDrawingFileName");
45
            col.Caption = "Drawing File Name";
46
            col = converterDT.Columns.Add("colUnit");
47
            col.Caption = "Unit";
48
            col = converterDT.Columns.Add("colTemplate");
49
            col.Caption = "Template";
50
            col = converterDT.Columns.Add("colDrawingNumber");
51
            col.Caption = "Drawing Number";
52
            col = converterDT.Columns.Add("colDrawingName");
53
            col.Caption = "Drawing Name";
54
            col = converterDT.Columns.Add("colStatus");
55
            col.Caption = "Status";
56
            col = converterDT.Columns.Add("colUID");
57
            gridControlConverter.DataSource = converterDT;
58

  
59
            templateComboBox = new RepositoryItemComboBox();
60
            templateComboBox.TextEditStyle = TextEditStyles.DisableTextEditor;
61
            gridControlConverter.RepositoryItems.Add(templateComboBox);
62
            gridViewConverter.Columns["colTemplate"].ColumnEdit = templateComboBox;
63

  
64
            RepositoryItemButtonEdit unitButton = new RepositoryItemButtonEdit();
65
            unitButton.ButtonClick += UnitButton_ButtonClick;
66
            unitButton.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
67
            gridControlConverter.RepositoryItems.Add(unitButton);
68
            gridViewConverter.Columns["colUnit"].ColumnEdit = unitButton;
69

  
70
            gridViewConverter.Columns["colDrawingFileName"].OptionsColumn.AllowEdit = false;
71
            gridViewConverter.Columns["colUnit"].OptionsColumn.ReadOnly = true;
72
            gridViewConverter.Columns["colStatus"].OptionsColumn.AllowEdit = false;
73
            gridViewConverter.Columns["colUID"].Visible = false;
74

  
75
            gridViewConverter.BestFitColumns();
76
            #endregion
77
        }
78

  
79
        private void UnitButton_ButtonClick(object sender, ButtonPressedEventArgs e)
80
        {
81
            //UnitForm unitForm = new UnitForm(dUnit);
82
            //if (unitForm.ShowDialog() == DialogResult.OK)
83
            //{
84
            //    ButtonEdit button = sender as ButtonEdit;
85
            //    button.EditValue = unitForm.SelectedUnit;
86
            //    gridViewConverter.CloseEditor();
87
            //    gridViewConverter.UpdateCurrentRow();
88
            //    gridViewConverter.BestFitColumns();
89
            //}
90
        }
91

  
92
        private void btnLoadFile_Click(object sender, EventArgs e)
93
        {
94
            OpenFileDialog dia = new OpenFileDialog();
95
            dia.Multiselect = true;
96
            dia.Filter = "Xml Files(*.xml)|*.xml";
97

  
98
            if (dia.ShowDialog() == DialogResult.OK)
99
            {
100
                foreach (string fileName in dia.FileNames)
101
                {
102
                    
103
                }
104
            }
105
        }
106

  
107
        private void btnRun_Click(object sender, EventArgs e)
108
        {
109
            DialogResult = DialogResult.OK;
19 110
        }
20 111
    }
21 112
}
DTI_PID/SPPIDConverter_AutoModeling/MainWrapper.cs
24 24
            {
25 25
                //dynamic application = Interaction.GetObject("", "PIDAutomation.Application");
26 26
                //dynamic newDrawing = application.Drawings.Add(sUnit, sTemplate, sDrawingNumber, sDrawingName);
27
                MessageBox.Show("OK");
27 28
            }
28 29
        }
29 30
    }
DTI_PID/SPPIDConverter_AutoModeling/SPPIDConverter_AutoModeling.csproj
31 31
    <ErrorReport>prompt</ErrorReport>
32 32
    <WarningLevel>4</WarningLevel>
33 33
  </PropertyGroup>
34
  <PropertyGroup>
35
    <StartupObject />
36
  </PropertyGroup>
34 37
  <ItemGroup>
35 38
    <Reference Include="DevExpress.Data.v18.2, Version=18.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
36 39
    <Reference Include="DevExpress.Printing.v18.2.Core, Version=18.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />

내보내기 Unified diff

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