프로젝트

일반

사용자정보

개정판 b7b123ba

IDb7b123ba30e3ea87ea56005063d0578a300fc821
상위 f676f99a
하위 74c491f9

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

dev issue #507 : set border file

Change-Id: I36050512de1968cc8867593e25aa97c0b9d7e113

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
1044 1044
                Log.Write("Fail Create Drawing");
1045 1045

  
1046 1046
            if (newDrawing != null)
1047
            {
1048
                SetBorderFile();
1047 1049
                return true;
1050
            }
1048 1051
            else
1049 1052
                return false;
1050 1053
        }
1051 1054

  
1055
        private void SetBorderFile()
1056
        {
1057
            ETCSetting setting = ETCSetting.GetInstance();
1058

  
1059
            if (!string.IsNullOrEmpty(setting.BorderFilePath) && System.IO.File.Exists(setting.BorderFilePath))
1060
            {
1061
                foreach (Ingr.RAD2D.SmartFrame2d smartFrame in radApp.ActiveDocument.ActiveSheet.SmartFrames2d)
1062
                {
1063
                    if (!string.IsNullOrEmpty(smartFrame.LinkMoniker) && smartFrame.LinkMoniker != setting.BorderFilePath)
1064
                    {
1065
                        smartFrame.ChangeSource(Ingr.RAD2D.OLEInsertionTypeConstant.igOLELinked, setting.BorderFilePath, true);
1066
                        smartFrame.Update();
1067
                    }
1068
                        
1069
                }
1070
            }
1071
        }
1072

  
1052 1073
        /// <summary>
1053 1074
        /// DrawingName, DrawingNumber를 확인하여 중복이 있으면 _1을 붙이고 +1씩 한다.
1054 1075
        /// </summary>
DTI_PID/SPPIDConverter/ConverterDocking.cs
232 232

  
233 233
        private void simpleButton1_Click(object sender, EventArgs e)
234 234
        {
235

  
236
            foreach (RADObject item in application.ActiveDocument.SelectSet)
235
            Placement placement = new Placement();
236
            if (application.ActiveSelectSet.Count > 0)
237 237
            {
238
                DependencyObject dependencyObject = item as DependencyObject;
239
                if (dependencyObject != null)
238
                string modelItemId = null;
239
                Symbol2d symbol2D = application.ActiveSelectSet[0] as Symbol2d;
240
                DependencyObject dependency = application.ActiveSelectSet[0] as DependencyObject;
241
                application.ActiveSelectSet.RemoveAll();
242
                if (symbol2D != null)
240 243
                {
241
                    Ingr.RAD2D.LineStringGeometry2d lineStringGeometry = dependencyObject.GetGeometry() as Ingr.RAD2D.LineStringGeometry2d;
242
                    int verticesCount = lineStringGeometry.VertexCount;
243
                    double[] vertices = null;
244
                    lineStringGeometry.GetVertices(ref verticesCount, ref vertices);
245
                    for (int i = 0; i < verticesCount; i++)
244
                    return;
245
                    foreach (var attributes in symbol2D.AttributeSets)
246 246
                    {
247
                        double x = 0;
248
                        double y = 0;
249
                        lineStringGeometry.GetVertex(i + 1, ref x, ref y);
247
                        foreach (var attribute in attributes)
248
                        {
249
                            if (attribute.Name == "ModelID")
250
                                modelItemId = attribute.GetValue().ToString();
251
                        }
250 252
                    }
251 253

  
252
                    double minX = 0;
253
                    double minY = 0;
254
                    double maxX = 0;
255
                    double maxY = 0;
256
                    dependencyObject.DrawingObjects[0].Range(out minX, out minY, out maxX, out maxY);
254
                    if (modelItemId!=null)
255
                    {
256
                        LMADataSource dataSource = new LMADataSource();
257
                        LMModelItem modelItem = dataSource.GetModelItem(modelItemId);
258
                        foreach (LMRepresentation item in modelItem.Representations)
259
                        {
260
                            if (item.ModelItemID == modelItemId)
261
                            {
262
                                dataSource = placement.PIDDataSource;
263
                                LMSymbol symbol = dataSource.GetSymbol(item.Id);
264
                                double oldx = symbol.get_XCoordinate();
265
                                double oldy = symbol.get_YCoordinate();
266
                                symbol2D.Move(0, 0, 0, GridSetting.GetInstance().Length);
267

  
268
                                dataSource = new LMADataSource();
269
                                //dataSource = placement.PIDDataSource;
270
                                symbol = dataSource.GetSymbol(item.Id);
271
                                double x = symbol.get_XCoordinate();
272
                                double y = symbol.get_YCoordinate();
273
                            }
274
                        }
275
                    }
257 276
                }
258
                Symbol2d symbol2D = item as Symbol2d;
259
                if (symbol2D != null)
277
                else if (dependency != null)
260 278
                {
261
                    double minX = 0;
262
                    double minY = 0;
263
                    double maxX = 0;
264
                    double maxY = 0;
265
                    symbol2D.Range(out minX, out minY, out maxX, out maxY);
279
                    foreach (dynamic item in dependency.DrawingObjects)
280
                    {
281
                        item.Move(0, 0, 0, GridSetting.GetInstance().Length);
282
                    }
266 283
                }
267 284
            }
268
            
269 285

  
270 286
            return;
271 287
            Thread outThread = new Thread(func2 =>
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.textBoxVendorSymbolPath = new DevExpress.XtraEditors.ButtonEdit();
35
            this.btnImportData = new DevExpress.XtraEditors.SimpleButton();
36
            this.btnExportData = new DevExpress.XtraEditors.SimpleButton();
34 37
            this.btnExportExcel = new DevExpress.XtraEditors.SimpleButton();
35 38
            this.spinEditDrainValveCellCount = new DevExpress.XtraEditors.SpinEdit();
36 39
            this.spinEditMinSymbolGridCellCount = new DevExpress.XtraEditors.SpinEdit();
......
68 71
            this.splitterItem5 = new DevExpress.XtraLayout.SplitterItem();
69 72
            this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
70 73
            this.layoutControlItem25 = new DevExpress.XtraLayout.LayoutControlItem();
74
            this.layoutControlItem26 = new DevExpress.XtraLayout.LayoutControlItem();
75
            this.layoutControlItem27 = new DevExpress.XtraLayout.LayoutControlItem();
71 76
            this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
72 77
            this.splitterItem3 = new DevExpress.XtraLayout.SplitterItem();
73 78
            this.tabbedControlGroup = new DevExpress.XtraLayout.TabbedControlGroup();
......
102 107
            this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
103 108
            this.layoutControlGroup12 = new DevExpress.XtraLayout.LayoutControlGroup();
104 109
            this.layoutControlItem24 = new DevExpress.XtraLayout.LayoutControlItem();
110
            this.layoutControlGroup13 = new DevExpress.XtraLayout.LayoutControlGroup();
111
            this.layoutControlItem28 = new DevExpress.XtraLayout.LayoutControlItem();
105 112
            this.GroupGridSetting = new DevExpress.XtraLayout.LayoutControlGroup();
106 113
            this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem();
107 114
            this.layoutControlGroupSnapGrid = new DevExpress.XtraLayout.LayoutControlGroup();
......
114 121
            this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
115 122
            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
116 123
            this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
117
            this.btnExportData = new DevExpress.XtraEditors.SimpleButton();
118
            this.layoutControlItem26 = new DevExpress.XtraLayout.LayoutControlItem();
119
            this.btnImportData = new DevExpress.XtraEditors.SimpleButton();
120
            this.layoutControlItem27 = new DevExpress.XtraLayout.LayoutControlItem();
121
            this.textBoxVendorSymbolPath = new DevExpress.XtraEditors.ButtonEdit();
122
            this.layoutControlItem28 = new DevExpress.XtraLayout.LayoutControlItem();
123
            this.layoutControlGroup13 = new DevExpress.XtraLayout.LayoutControlGroup();
124
            this.btnBorder = new DevExpress.XtraEditors.ButtonEdit();
125
            this.layoutControlItem29 = new DevExpress.XtraLayout.LayoutControlItem();
126
            this.layoutControlGroup14 = new DevExpress.XtraLayout.LayoutControlGroup();
124 127
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit();
125 128
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
126 129
            this.layoutControl1.SuspendLayout();
130
            ((System.ComponentModel.ISupportInitialize)(this.textBoxVendorSymbolPath.Properties)).BeginInit();
127 131
            ((System.ComponentModel.ISupportInitialize)(this.spinEditDrainValveCellCount.Properties)).BeginInit();
128 132
            ((System.ComponentModel.ISupportInitialize)(this.spinEditMinSymbolGridCellCount.Properties)).BeginInit();
129 133
            ((System.ComponentModel.ISupportInitialize)(this.comboBoxEditUnit.Properties)).BeginInit();
......
157 161
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem5)).BeginInit();
158 162
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit();
159 163
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem25)).BeginInit();
164
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).BeginInit();
165
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).BeginInit();
160 166
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
161 167
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).BeginInit();
162 168
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).BeginInit();
......
191 197
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
192 198
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup12)).BeginInit();
193 199
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem24)).BeginInit();
200
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup13)).BeginInit();
201
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).BeginInit();
194 202
            ((System.ComponentModel.ISupportInitialize)(this.GroupGridSetting)).BeginInit();
195 203
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit();
196 204
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupSnapGrid)).BeginInit();
......
203 211
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
204 212
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
205 213
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
206
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).BeginInit();
207
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).BeginInit();
208
            ((System.ComponentModel.ISupportInitialize)(this.textBoxVendorSymbolPath.Properties)).BeginInit();
209
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).BeginInit();
210
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup13)).BeginInit();
214
            ((System.ComponentModel.ISupportInitialize)(this.btnBorder.Properties)).BeginInit();
215
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem29)).BeginInit();
216
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup14)).BeginInit();
211 217
            this.SuspendLayout();
212 218
            // 
213 219
            // ribbonControl
......
255 261
            this.layoutControl1.Controls.Add(this.pictureEditMapped);
256 262
            this.layoutControl1.Controls.Add(this.checkEditSnapGrid);
257 263
            this.layoutControl1.Controls.Add(this.textBoxFlowMarkSymbolPath);
264
            this.layoutControl1.Controls.Add(this.btnBorder);
258 265
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
259 266
            this.layoutControl1.Location = new System.Drawing.Point(0, 27);
260 267
            this.layoutControl1.Name = "layoutControl1";
......
263 270
            this.layoutControl1.TabIndex = 2;
264 271
            this.layoutControl1.Text = "layoutControl1";
265 272
            // 
273
            // textBoxVendorSymbolPath
274
            // 
275
            this.textBoxVendorSymbolPath.Location = new System.Drawing.Point(184, 370);
276
            this.textBoxVendorSymbolPath.MenuManager = this.ribbonControl;
277
            this.textBoxVendorSymbolPath.Name = "textBoxVendorSymbolPath";
278
            this.textBoxVendorSymbolPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
279
            new DevExpress.XtraEditors.Controls.EditorButton()});
280
            this.textBoxVendorSymbolPath.Size = new System.Drawing.Size(596, 20);
281
            this.textBoxVendorSymbolPath.StyleController = this.layoutControl1;
282
            this.textBoxVendorSymbolPath.TabIndex = 40;
283
            this.textBoxVendorSymbolPath.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.textBoxETC_ButtonClick);
284
            // 
285
            // btnImportData
286
            // 
287
            this.btnImportData.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnImportData.ImageOptions.SvgImage")));
288
            this.btnImportData.Location = new System.Drawing.Point(825, 690);
289
            this.btnImportData.Name = "btnImportData";
290
            this.btnImportData.Size = new System.Drawing.Size(286, 38);
291
            this.btnImportData.StyleController = this.layoutControl1;
292
            this.btnImportData.TabIndex = 39;
293
            this.btnImportData.Text = "Import Mapping Data";
294
            this.btnImportData.Click += new System.EventHandler(this.btnImportData_Click);
295
            // 
296
            // btnExportData
297
            // 
298
            this.btnExportData.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnExportData.ImageOptions.SvgImage")));
299
            this.btnExportData.Location = new System.Drawing.Point(825, 648);
300
            this.btnExportData.Name = "btnExportData";
301
            this.btnExportData.Size = new System.Drawing.Size(286, 38);
302
            this.btnExportData.StyleController = this.layoutControl1;
303
            this.btnExportData.TabIndex = 38;
304
            this.btnExportData.Text = "Export Mapping Data";
305
            this.btnExportData.Click += new System.EventHandler(this.btnExportData_Click);
306
            // 
266 307
            // btnExportExcel
267 308
            // 
268 309
            this.btnExportExcel.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnExportExcel.ImageOptions.Image")));
......
358 399
            // 
359 400
            // checkComboBoxNoteLocation
360 401
            // 
361
            this.checkComboBoxNoteLocation.Location = new System.Drawing.Point(538, 102);
402
            this.checkComboBoxNoteLocation.Location = new System.Drawing.Point(538, 169);
362 403
            this.checkComboBoxNoteLocation.MenuManager = this.ribbonControl;
363 404
            this.checkComboBoxNoteLocation.Name = "checkComboBoxNoteLocation";
364 405
            this.checkComboBoxNoteLocation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
......
369 410
            // 
370 411
            // checkComboBoxTextLocation
371 412
            // 
372
            this.checkComboBoxTextLocation.Location = new System.Drawing.Point(538, 78);
413
            this.checkComboBoxTextLocation.Location = new System.Drawing.Point(538, 145);
373 414
            this.checkComboBoxTextLocation.MenuManager = this.ribbonControl;
374 415
            this.checkComboBoxTextLocation.Name = "checkComboBoxTextLocation";
375 416
            this.checkComboBoxTextLocation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
......
391 432
            // 
392 433
            // textBoxDrainValveSize
393 434
            // 
394
            this.textBoxDrainValveSize.Location = new System.Drawing.Point(184, 236);
435
            this.textBoxDrainValveSize.Location = new System.Drawing.Point(184, 303);
395 436
            this.textBoxDrainValveSize.MenuManager = this.ribbonControl;
396 437
            this.textBoxDrainValveSize.Name = "textBoxDrainValveSize";
397 438
            this.textBoxDrainValveSize.Size = new System.Drawing.Size(596, 20);
......
400 441
            // 
401 442
            // textBoxNoteSymbolPath
402 443
            // 
403
            this.textBoxNoteSymbolPath.Location = new System.Drawing.Point(184, 102);
444
            this.textBoxNoteSymbolPath.Location = new System.Drawing.Point(184, 169);
404 445
            this.textBoxNoteSymbolPath.MenuManager = this.ribbonControl;
405 446
            this.textBoxNoteSymbolPath.Name = "textBoxNoteSymbolPath";
406 447
            this.textBoxNoteSymbolPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
......
412 453
            // 
413 454
            // textBoxTextSymbolPath
414 455
            // 
415
            this.textBoxTextSymbolPath.Location = new System.Drawing.Point(184, 78);
456
            this.textBoxTextSymbolPath.Location = new System.Drawing.Point(184, 145);
416 457
            this.textBoxTextSymbolPath.MenuManager = this.ribbonControl;
417 458
            this.textBoxTextSymbolPath.Name = "textBoxTextSymbolPath";
418 459
            this.textBoxTextSymbolPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
......
588 629
            // 
589 630
            // textBoxFlowMarkSymbolPath
590 631
            // 
591
            this.textBoxFlowMarkSymbolPath.Location = new System.Drawing.Point(184, 169);
632
            this.textBoxFlowMarkSymbolPath.Location = new System.Drawing.Point(184, 236);
592 633
            this.textBoxFlowMarkSymbolPath.MenuManager = this.ribbonControl;
593 634
            this.textBoxFlowMarkSymbolPath.Name = "textBoxFlowMarkSymbolPath";
594 635
            this.textBoxFlowMarkSymbolPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
......
681 722
            this.layoutControlItem25.TextSize = new System.Drawing.Size(0, 0);
682 723
            this.layoutControlItem25.TextVisible = false;
683 724
            // 
725
            // layoutControlItem26
726
            // 
727
            this.layoutControlItem26.Control = this.btnExportData;
728
            this.layoutControlItem26.Location = new System.Drawing.Point(0, 605);
729
            this.layoutControlItem26.Name = "layoutControlItem26";
730
            this.layoutControlItem26.Size = new System.Drawing.Size(290, 42);
731
            this.layoutControlItem26.TextSize = new System.Drawing.Size(0, 0);
732
            this.layoutControlItem26.TextVisible = false;
733
            // 
734
            // layoutControlItem27
735
            // 
736
            this.layoutControlItem27.Control = this.btnImportData;
737
            this.layoutControlItem27.Location = new System.Drawing.Point(0, 647);
738
            this.layoutControlItem27.Name = "layoutControlItem27";
739
            this.layoutControlItem27.Size = new System.Drawing.Size(290, 42);
740
            this.layoutControlItem27.TextSize = new System.Drawing.Size(0, 0);
741
            this.layoutControlItem27.TextVisible = false;
742
            // 
684 743
            // emptySpaceItem2
685 744
            // 
686 745
            this.emptySpaceItem2.AllowHotTrack = false;
......
903 962
            this.layoutControlGroup9,
904 963
            this.layoutControlGroup10,
905 964
            this.layoutControlGroup12,
906
            this.layoutControlGroup13});
965
            this.layoutControlGroup13,
966
            this.layoutControlGroup14});
907 967
            this.GroupETCSetting.Location = new System.Drawing.Point(0, 0);
908 968
            this.GroupETCSetting.Name = "GroupETCSetting";
909 969
            this.GroupETCSetting.Size = new System.Drawing.Size(772, 685);
......
912 972
            // emptySpaceItem3
913 973
            // 
914 974
            this.emptySpaceItem3.AllowHotTrack = false;
915
            this.emptySpaceItem3.Location = new System.Drawing.Point(0, 292);
975
            this.emptySpaceItem3.Location = new System.Drawing.Point(0, 359);
916 976
            this.emptySpaceItem3.Name = "emptySpaceItem3";
917
            this.emptySpaceItem3.Size = new System.Drawing.Size(772, 393);
977
            this.emptySpaceItem3.Size = new System.Drawing.Size(772, 326);
918 978
            this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
919 979
            // 
920 980
            // layoutControlGroup9
......
924 984
            this.layoutControlItem7,
925 985
            this.layoutControlItem16,
926 986
            this.layoutControlItem17});
927
            this.layoutControlGroup9.Location = new System.Drawing.Point(0, 0);
987
            this.layoutControlGroup9.Location = new System.Drawing.Point(0, 67);
928 988
            this.layoutControlGroup9.Name = "layoutControlGroup9";
929 989
            this.layoutControlGroup9.Size = new System.Drawing.Size(772, 91);
930 990
            this.layoutControlGroup9.Text = "Text && Note Setting";
......
973 1033
            // 
974 1034
            this.layoutControlGroup10.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
975 1035
            this.layoutControlItem14});
976
            this.layoutControlGroup10.Location = new System.Drawing.Point(0, 158);
1036
            this.layoutControlGroup10.Location = new System.Drawing.Point(0, 225);
977 1037
            this.layoutControlGroup10.Name = "layoutControlGroup10";
978 1038
            this.layoutControlGroup10.Size = new System.Drawing.Size(772, 67);
979 1039
            this.layoutControlGroup10.Text = "Drain Valve Setting";
......
991 1051
            // 
992 1052
            this.layoutControlGroup12.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
993 1053
            this.layoutControlItem24});
994
            this.layoutControlGroup12.Location = new System.Drawing.Point(0, 91);
1054
            this.layoutControlGroup12.Location = new System.Drawing.Point(0, 158);
995 1055
            this.layoutControlGroup12.Name = "layoutControlGroup12";
996 1056
            this.layoutControlGroup12.Size = new System.Drawing.Size(772, 67);
997 1057
            this.layoutControlGroup12.Text = "Flow Mark";
......
1005 1065
            this.layoutControlItem24.Text = "Flow Mark Symbol Path";
1006 1066
            this.layoutControlItem24.TextSize = new System.Drawing.Size(145, 14);
1007 1067
            // 
1068
            // layoutControlGroup13
1069
            // 
1070
            this.layoutControlGroup13.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
1071
            this.layoutControlItem28});
1072
            this.layoutControlGroup13.Location = new System.Drawing.Point(0, 292);
1073
            this.layoutControlGroup13.Name = "layoutControlGroup13";
1074
            this.layoutControlGroup13.Size = new System.Drawing.Size(772, 67);
1075
            this.layoutControlGroup13.Text = "Vendor Package Symbol";
1076
            // 
1077
            // layoutControlItem28
1078
            // 
1079
            this.layoutControlItem28.Control = this.textBoxVendorSymbolPath;
1080
            this.layoutControlItem28.Location = new System.Drawing.Point(0, 0);
1081
            this.layoutControlItem28.Name = "layoutControlItem28";
1082
            this.layoutControlItem28.Size = new System.Drawing.Size(748, 24);
1083
            this.layoutControlItem28.Text = "Symbol Path";
1084
            this.layoutControlItem28.TextSize = new System.Drawing.Size(145, 14);
1085
            // 
1008 1086
            // GroupGridSetting
1009 1087
            // 
1010 1088
            this.GroupGridSetting.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
......
1125 1203
            this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
1126 1204
            this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
1127 1205
            // 
1128
            // btnExportData
1206
            // btnBorder
1129 1207
            // 
1130
            this.btnExportData.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnExportData.ImageOptions.SvgImage")));
1131
            this.btnExportData.Location = new System.Drawing.Point(825, 648);
1132
            this.btnExportData.Name = "btnExportData";
1133
            this.btnExportData.Size = new System.Drawing.Size(286, 38);
1134
            this.btnExportData.StyleController = this.layoutControl1;
1135
            this.btnExportData.TabIndex = 38;
1136
            this.btnExportData.Text = "Export Mapping Data";
1137
            this.btnExportData.Click += new System.EventHandler(this.btnExportData_Click);
1138
            // 
1139
            // layoutControlItem26
1140
            // 
1141
            this.layoutControlItem26.Control = this.btnExportData;
1142
            this.layoutControlItem26.Location = new System.Drawing.Point(0, 605);
1143
            this.layoutControlItem26.Name = "layoutControlItem26";
1144
            this.layoutControlItem26.Size = new System.Drawing.Size(290, 42);
1145
            this.layoutControlItem26.TextSize = new System.Drawing.Size(0, 0);
1146
            this.layoutControlItem26.TextVisible = false;
1147
            // 
1148
            // btnImportData
1149
            // 
1150
            this.btnImportData.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnImportData.ImageOptions.SvgImage")));
1151
            this.btnImportData.Location = new System.Drawing.Point(825, 690);
1152
            this.btnImportData.Name = "btnImportData";
1153
            this.btnImportData.Size = new System.Drawing.Size(286, 38);
1154
            this.btnImportData.StyleController = this.layoutControl1;
1155
            this.btnImportData.TabIndex = 39;
1156
            this.btnImportData.Text = "Import Mapping Data";
1157
            this.btnImportData.Click += new System.EventHandler(this.btnImportData_Click);
1158
            // 
1159
            // layoutControlItem27
1160
            // 
1161
            this.layoutControlItem27.Control = this.btnImportData;
1162
            this.layoutControlItem27.Location = new System.Drawing.Point(0, 647);
1163
            this.layoutControlItem27.Name = "layoutControlItem27";
1164
            this.layoutControlItem27.Size = new System.Drawing.Size(290, 42);
1165
            this.layoutControlItem27.TextSize = new System.Drawing.Size(0, 0);
1166
            this.layoutControlItem27.TextVisible = false;
1167
            // 
1168
            // textBoxVendorSymbolPath
1169
            // 
1170
            this.textBoxVendorSymbolPath.Location = new System.Drawing.Point(184, 303);
1171
            this.textBoxVendorSymbolPath.MenuManager = this.ribbonControl;
1172
            this.textBoxVendorSymbolPath.Name = "textBoxVendorSymbolPath";
1173
            this.textBoxVendorSymbolPath.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
1208
            this.btnBorder.Location = new System.Drawing.Point(184, 78);
1209
            this.btnBorder.MenuManager = this.ribbonControl;
1210
            this.btnBorder.Name = "btnBorder";
1211
            this.btnBorder.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
1174 1212
            new DevExpress.XtraEditors.Controls.EditorButton()});
1175
            this.textBoxVendorSymbolPath.Size = new System.Drawing.Size(596, 20);
1176
            this.textBoxVendorSymbolPath.StyleController = this.layoutControl1;
1177
            this.textBoxVendorSymbolPath.TabIndex = 40;
1178
            this.textBoxVendorSymbolPath.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.textBoxETC_ButtonClick);
1213
            this.btnBorder.Size = new System.Drawing.Size(596, 20);
1214
            this.btnBorder.StyleController = this.layoutControl1;
1215
            this.btnBorder.TabIndex = 41;
1216
            this.btnBorder.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.btnBorder_ButtonClick);
1179 1217
            // 
1180
            // layoutControlItem28
1218
            // layoutControlItem29
1181 1219
            // 
1182
            this.layoutControlItem28.Control = this.textBoxVendorSymbolPath;
1183
            this.layoutControlItem28.Location = new System.Drawing.Point(0, 0);
1184
            this.layoutControlItem28.Name = "layoutControlItem28";
1185
            this.layoutControlItem28.Size = new System.Drawing.Size(748, 24);
1186
            this.layoutControlItem28.Text = "Symbol Path";
1187
            this.layoutControlItem28.TextSize = new System.Drawing.Size(145, 14);
1220
            this.layoutControlItem29.Control = this.btnBorder;
1221
            this.layoutControlItem29.Location = new System.Drawing.Point(0, 0);
1222
            this.layoutControlItem29.Name = "layoutControlItem29";
1223
            this.layoutControlItem29.Size = new System.Drawing.Size(748, 24);
1224
            this.layoutControlItem29.Text = "File Path";
1225
            this.layoutControlItem29.TextSize = new System.Drawing.Size(145, 14);
1188 1226
            // 
1189
            // layoutControlGroup13
1227
            // layoutControlGroup14
1190 1228
            // 
1191
            this.layoutControlGroup13.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
1192
            this.layoutControlItem28});
1193
            this.layoutControlGroup13.Location = new System.Drawing.Point(0, 225);
1194
            this.layoutControlGroup13.Name = "layoutControlGroup13";
1195
            this.layoutControlGroup13.Size = new System.Drawing.Size(772, 67);
1196
            this.layoutControlGroup13.Text = "Vendor Package Symbol";
1229
            this.layoutControlGroup14.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
1230
            this.layoutControlItem29});
1231
            this.layoutControlGroup14.Location = new System.Drawing.Point(0, 0);
1232
            this.layoutControlGroup14.Name = "layoutControlGroup14";
1233
            this.layoutControlGroup14.Size = new System.Drawing.Size(772, 67);
1234
            this.layoutControlGroup14.Text = "Border Setting";
1197 1235
            // 
1198 1236
            // MappingForm
1199 1237
            // 
......
1211 1249
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit();
1212 1250
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
1213 1251
            this.layoutControl1.ResumeLayout(false);
1252
            ((System.ComponentModel.ISupportInitialize)(this.textBoxVendorSymbolPath.Properties)).EndInit();
1214 1253
            ((System.ComponentModel.ISupportInitialize)(this.spinEditDrainValveCellCount.Properties)).EndInit();
1215 1254
            ((System.ComponentModel.ISupportInitialize)(this.spinEditMinSymbolGridCellCount.Properties)).EndInit();
1216 1255
            ((System.ComponentModel.ISupportInitialize)(this.comboBoxEditUnit.Properties)).EndInit();
......
1244 1283
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem5)).EndInit();
1245 1284
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit();
1246 1285
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem25)).EndInit();
1286
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).EndInit();
1287
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).EndInit();
1247 1288
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
1248 1289
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).EndInit();
1249 1290
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).EndInit();
......
1278 1319
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
1279 1320
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup12)).EndInit();
1280 1321
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem24)).EndInit();
1322
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup13)).EndInit();
1323
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).EndInit();
1281 1324
            ((System.ComponentModel.ISupportInitialize)(this.GroupGridSetting)).EndInit();
1282 1325
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit();
1283 1326
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupSnapGrid)).EndInit();
......
1290 1333
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
1291 1334
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
1292 1335
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
1293
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem26)).EndInit();
1294
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem27)).EndInit();
1295
            ((System.ComponentModel.ISupportInitialize)(this.textBoxVendorSymbolPath.Properties)).EndInit();
1296
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem28)).EndInit();
1297
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup13)).EndInit();
1336
            ((System.ComponentModel.ISupportInitialize)(this.btnBorder.Properties)).EndInit();
1337
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem29)).EndInit();
1338
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup14)).EndInit();
1298 1339
            this.ResumeLayout(false);
1299 1340
            this.PerformLayout();
1300 1341

  
......
1394 1435
        private DevExpress.XtraEditors.ButtonEdit textBoxVendorSymbolPath;
1395 1436
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup13;
1396 1437
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem28;
1438
        private DevExpress.XtraEditors.ButtonEdit btnBorder;
1439
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup14;
1440
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem29;
1397 1441
    }
1398 1442
}
DTI_PID/SPPIDConverter/Form/MappingForm.cs
294 294
            textBoxVendorSymbolPath.Properties.Buttons[0].Kind = ButtonPredefines.Glyph;
295 295
            textBoxVendorSymbolPath.Properties.Buttons[0].Image = Resources.pencolor_16x16;
296 296

  
297
            btnBorder.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
298

  
297 299
            ETCSetting _ETCSetting = ETCSetting.GetInstance();
298 300
            textBoxTextSymbolPath.Text = _ETCSetting.TextSymbolPath;
299 301
            textBoxNoteSymbolPath.Text = _ETCSetting.NoteSymbolPath;
300 302
            textBoxDrainValveSize.Text = _ETCSetting.DrainValveSize;
301 303
            textBoxVendorSymbolPath.Text = _ETCSetting.VendorPackageSymbolPath;
302 304
            textBoxFlowMarkSymbolPath.Text = _ETCSetting.FlowMarkSymbolPath;
305
            btnBorder.Text = _ETCSetting.BorderFilePath;
303 306

  
304 307
            checkComboBoxTextLocation.EditValue = _ETCSetting.TextLocation;
305 308
            checkComboBoxNoteLocation.EditValue = _ETCSetting.NoteLocation;
......
425 428
            _ETCSetting.TextLocation = (Model.Location)checkComboBoxTextLocation.EditValue;
426 429
            _ETCSetting.NoteLocation = (Model.Location)checkComboBoxNoteLocation.EditValue;
427 430
            _ETCSetting.LineNumberLocation = (Model.Location)checkComboBoxLineNumberLocation.EditValue;
431
            _ETCSetting.BorderFilePath = btnBorder.Text;
428 432
            string jsonString = JsonConvert.SerializeObject(_ETCSetting);
429 433
            dicSetting.Add("ETCSetting", jsonString);
430 434

  
......
838 842
            else
839 843
                MessageBox.Show(Msg.Fail, Msg.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
840 844
        }
845

  
846
        private void btnBorder_ButtonClick(object sender, ButtonPressedEventArgs e)
847
        {
848
            XtraOpenFileDialog open = new XtraOpenFileDialog();
849
            open.Multiselect = false;
850
            if (open.ShowDialog() == DialogResult.OK)
851
                btnBorder.Text = open.FileName;
852
            else
853
                btnBorder.Text = string.Empty;
854
        }
841 855
    }
842 856
}
DTI_PID/SPPIDConverter/SPPIDModel/ETCSetting.cs
18 18
        public string DrainValveSize { get => _DrainValveSize; set => _DrainValveSize = value; }
19 19
        public string VendorPackageSymbolPath { get; set; }
20 20
        public string FlowMarkSymbolPath { get; set; }
21
        public string BorderFilePath { get; set; }
21 22

  
22 23
        public Model.Location TextLocation { get; set; }
23 24
        public Model.Location NoteLocation { get; set; }
DTI_PID/SPPIDConverter/Util/SPPIDUtil.cs
69 69
                _ETCSetting.NoteLocation = jsonETCSetting.NoteLocation;
70 70
                _ETCSetting.LineNumberLocation = jsonETCSetting.LineNumberLocation;
71 71
                _ETCSetting.FlowMarkSymbolPath = jsonETCSetting.FlowMarkSymbolPath;
72
                _ETCSetting.BorderFilePath = jsonETCSetting.BorderFilePath;
72 73
            }
73 74
            catch (Exception ex)
74 75
            {

내보내기 Unified diff

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