프로젝트

일반

사용자정보

개정판 fbdb9f2a

IDfbdb9f2aefe3b26239e833eba32af73843387019
상위 17d9dc0d
하위 a69da858, 1c2a2348

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

dev issue #000 : SPPID Symbol 이미지 비교 기능 추가

Change-Id: Ia4fb9385d4879f6ee4618b049b5006bf777c744a

차이점 보기:

DTI_PID/SPPIDConverter/ConverterForm.cs
200 200
                InitETCSetting();
201 201
            }
202 202
        }
203

  
203 204
        private void InitETCSetting()
204 205
        {
205 206
            Project_Info _ProjectInfo = Project_Info.GetInstance();
DTI_PID/SPPIDConverter/Form/MappingForm.Designer.cs
30 30
        {
31 31
            this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl();
32 32
            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
33
            this.btnImageRefresh = new DevExpress.XtraEditors.SimpleButton();
33 34
            this.textBoxDrainValveSize = new DevExpress.XtraEditors.TextEdit();
34 35
            this.textBoxNoteSymbolPath = new DevExpress.XtraEditors.ButtonEdit();
35 36
            this.textBoxTextSymbolPath = new DevExpress.XtraEditors.ButtonEdit();
......
51 52
            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
52 53
            this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
53 54
            this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
54
            this.splitterItem2 = new DevExpress.XtraLayout.SplitterItem();
55 55
            this.layoutControlGroup5 = new DevExpress.XtraLayout.LayoutControlGroup();
56 56
            this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
57 57
            this.splitterItem5 = new DevExpress.XtraLayout.SplitterItem();
58
            this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
58 59
            this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
59 60
            this.splitterItem3 = new DevExpress.XtraLayout.SplitterItem();
60 61
            this.tabbedControlGroup = new DevExpress.XtraLayout.TabbedControlGroup();
61
            this.GroupETCSetting = new DevExpress.XtraLayout.LayoutControlGroup();
62
            this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
63
            this.layoutControlGroup9 = new DevExpress.XtraLayout.LayoutControlGroup();
64
            this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
65
            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
66
            this.layoutControlGroup10 = new DevExpress.XtraLayout.LayoutControlGroup();
67
            this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
68 62
            this.GroupSymbol = new DevExpress.XtraLayout.LayoutControlGroup();
69 63
            this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem();
70 64
            this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
......
84 78
            this.GroupAssociation = new DevExpress.XtraLayout.LayoutControlGroup();
85 79
            this.layoutControlGroup7 = new DevExpress.XtraLayout.LayoutControlGroup();
86 80
            this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
81
            this.GroupETCSetting = new DevExpress.XtraLayout.LayoutControlGroup();
82
            this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
83
            this.layoutControlGroup9 = new DevExpress.XtraLayout.LayoutControlGroup();
84
            this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
85
            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
86
            this.layoutControlGroup10 = new DevExpress.XtraLayout.LayoutControlGroup();
87
            this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
87 88
            this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
88 89
            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
89 90
            this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
......
109 110
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
110 111
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
111 112
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
112
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem2)).BeginInit();
113 113
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup5)).BeginInit();
114 114
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
115 115
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem5)).BeginInit();
116
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit();
116 117
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
117 118
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).BeginInit();
118 119
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).BeginInit();
119
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).BeginInit();
120
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
121
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup9)).BeginInit();
122
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
123
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
124
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup10)).BeginInit();
125
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
126 120
            ((System.ComponentModel.ISupportInitialize)(this.GroupSymbol)).BeginInit();
127 121
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit();
128 122
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
......
142 136
            ((System.ComponentModel.ISupportInitialize)(this.GroupAssociation)).BeginInit();
143 137
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).BeginInit();
144 138
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
139
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).BeginInit();
140
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
141
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup9)).BeginInit();
142
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
143
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
144
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup10)).BeginInit();
145
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
145 146
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
146 147
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
147 148
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
......
164 165
            // 
165 166
            // layoutControl1
166 167
            // 
168
            this.layoutControl1.Controls.Add(this.btnImageRefresh);
167 169
            this.layoutControl1.Controls.Add(this.textBoxDrainValveSize);
168 170
            this.layoutControl1.Controls.Add(this.textBoxNoteSymbolPath);
169 171
            this.layoutControl1.Controls.Add(this.textBoxTextSymbolPath);
......
186 188
            this.layoutControl1.TabIndex = 2;
187 189
            this.layoutControl1.Text = "layoutControl1";
188 190
            // 
191
            // btnImageRefresh
192
            // 
193
            this.btnImageRefresh.ImageOptions.SvgImage = global::Converter.SPPID.Properties.Resources.actions_refresh;
194
            this.btnImageRefresh.Location = new System.Drawing.Point(749, 638);
195
            this.btnImageRefresh.Name = "btnImageRefresh";
196
            this.btnImageRefresh.Size = new System.Drawing.Size(321, 36);
197
            this.btnImageRefresh.StyleController = this.layoutControl1;
198
            this.btnImageRefresh.TabIndex = 27;
199
            this.btnImageRefresh.Text = "Refresh SPPID Image";
200
            this.btnImageRefresh.Click += new System.EventHandler(this.btnImageRefresh_Click);
201
            // 
189 202
            // textBoxDrainValveSize
190 203
            // 
191 204
            this.textBoxDrainValveSize.Location = new System.Drawing.Point(206, 172);
......
319 332
            // 
320 333
            // pictureEditSPPIDSymbol
321 334
            // 
322
            this.pictureEditSPPIDSymbol.Location = new System.Drawing.Point(761, 401);
335
            this.pictureEditSPPIDSymbol.Location = new System.Drawing.Point(761, 381);
323 336
            this.pictureEditSPPIDSymbol.MenuManager = this.ribbonControl;
324 337
            this.pictureEditSPPIDSymbol.Name = "pictureEditSPPIDSymbol";
325 338
            this.pictureEditSPPIDSymbol.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
326 339
            this.pictureEditSPPIDSymbol.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;
327
            this.pictureEditSPPIDSymbol.Size = new System.Drawing.Size(297, 251);
340
            this.pictureEditSPPIDSymbol.Size = new System.Drawing.Size(297, 241);
328 341
            this.pictureEditSPPIDSymbol.StyleController = this.layoutControl1;
329 342
            this.pictureEditSPPIDSymbol.TabIndex = 15;
330 343
            // 
......
344 357
            this.treeListSPPIDTreeList.Cursor = System.Windows.Forms.Cursors.Default;
345 358
            this.treeListSPPIDTreeList.Location = new System.Drawing.Point(749, 45);
346 359
            this.treeListSPPIDTreeList.Name = "treeListSPPIDTreeList";
347
            this.treeListSPPIDTreeList.Size = new System.Drawing.Size(321, 309);
360
            this.treeListSPPIDTreeList.Size = new System.Drawing.Size(321, 289);
348 361
            this.treeListSPPIDTreeList.TabIndex = 12;
362
            this.treeListSPPIDTreeList.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.treeListSPPIDTreeList_FocusedNodeChanged);
349 363
            this.treeListSPPIDTreeList.DoubleClick += new System.EventHandler(this.treeListSPPIDTreeList_DoubleClick);
350 364
            // 
351 365
            // pictureEditID2Symbol
......
390 404
            // 
391 405
            this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
392 406
            this.layoutControlItem8,
393
            this.splitterItem2,
394 407
            this.layoutControlGroup5,
395
            this.splitterItem5});
408
            this.splitterItem5,
409
            this.layoutControlItem15});
396 410
            this.layoutControlGroup2.Location = new System.Drawing.Point(725, 0);
397 411
            this.layoutControlGroup2.Name = "layoutControlGroup2";
398 412
            this.layoutControlGroup2.Size = new System.Drawing.Size(349, 678);
......
403 417
            this.layoutControlItem8.Control = this.treeListSPPIDTreeList;
404 418
            this.layoutControlItem8.Location = new System.Drawing.Point(0, 0);
405 419
            this.layoutControlItem8.Name = "layoutControlItem8";
406
            this.layoutControlItem8.Size = new System.Drawing.Size(325, 313);
420
            this.layoutControlItem8.Size = new System.Drawing.Size(325, 293);
407 421
            this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
408 422
            this.layoutControlItem8.TextVisible = false;
409 423
            // 
410
            // splitterItem2
411
            // 
412
            this.splitterItem2.AllowHotTrack = true;
413
            this.splitterItem2.Location = new System.Drawing.Point(0, 623);
414
            this.splitterItem2.Name = "splitterItem2";
415
            this.splitterItem2.Size = new System.Drawing.Size(325, 10);
416
            // 
417 424
            // layoutControlGroup5
418 425
            // 
419 426
            this.layoutControlGroup5.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
420 427
            this.layoutControlItem9});
421
            this.layoutControlGroup5.Location = new System.Drawing.Point(0, 323);
428
            this.layoutControlGroup5.Location = new System.Drawing.Point(0, 303);
422 429
            this.layoutControlGroup5.Name = "layoutControlGroup5";
423
            this.layoutControlGroup5.Size = new System.Drawing.Size(325, 300);
430
            this.layoutControlGroup5.Size = new System.Drawing.Size(325, 290);
424 431
            this.layoutControlGroup5.Text = "SPPID Image";
425 432
            // 
426 433
            // layoutControlItem9
......
428 435
            this.layoutControlItem9.Control = this.pictureEditSPPIDSymbol;
429 436
            this.layoutControlItem9.Location = new System.Drawing.Point(0, 0);
430 437
            this.layoutControlItem9.Name = "layoutControlItem9";
431
            this.layoutControlItem9.Size = new System.Drawing.Size(301, 255);
438
            this.layoutControlItem9.Size = new System.Drawing.Size(301, 245);
432 439
            this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
433 440
            this.layoutControlItem9.TextVisible = false;
434 441
            // 
435 442
            // splitterItem5
436 443
            // 
437 444
            this.splitterItem5.AllowHotTrack = true;
438
            this.splitterItem5.Location = new System.Drawing.Point(0, 313);
445
            this.splitterItem5.Location = new System.Drawing.Point(0, 293);
439 446
            this.splitterItem5.Name = "splitterItem5";
440 447
            this.splitterItem5.Size = new System.Drawing.Size(325, 10);
441 448
            // 
449
            // layoutControlItem15
450
            // 
451
            this.layoutControlItem15.Control = this.btnImageRefresh;
452
            this.layoutControlItem15.Location = new System.Drawing.Point(0, 593);
453
            this.layoutControlItem15.Name = "layoutControlItem15";
454
            this.layoutControlItem15.Size = new System.Drawing.Size(325, 40);
455
            this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0);
456
            this.layoutControlItem15.TextVisible = false;
457
            // 
442 458
            // emptySpaceItem2
443 459
            // 
444 460
            this.emptySpaceItem2.AllowHotTrack = false;
......
467 483
            this.GroupAssociation,
468 484
            this.GroupETCSetting});
469 485
            // 
470
            // GroupETCSetting
471
            // 
472
            this.GroupETCSetting.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
473
            this.emptySpaceItem3,
474
            this.layoutControlGroup9,
475
            this.layoutControlGroup10});
476
            this.GroupETCSetting.Location = new System.Drawing.Point(0, 0);
477
            this.GroupETCSetting.Name = "GroupETCSetting";
478
            this.GroupETCSetting.Size = new System.Drawing.Size(691, 632);
479
            this.GroupETCSetting.Text = "ETC Setting";
480
            // 
481
            // emptySpaceItem3
482
            // 
483
            this.emptySpaceItem3.AllowHotTrack = false;
484
            this.emptySpaceItem3.Location = new System.Drawing.Point(0, 162);
485
            this.emptySpaceItem3.Name = "emptySpaceItem3";
486
            this.emptySpaceItem3.Size = new System.Drawing.Size(691, 470);
487
            this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
488
            // 
489
            // layoutControlGroup9
490
            // 
491
            this.layoutControlGroup9.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
492
            this.layoutControlItem5,
493
            this.layoutControlItem7});
494
            this.layoutControlGroup9.Location = new System.Drawing.Point(0, 0);
495
            this.layoutControlGroup9.Name = "layoutControlGroup9";
496
            this.layoutControlGroup9.Size = new System.Drawing.Size(691, 93);
497
            this.layoutControlGroup9.Text = "Text && Note Setting";
498
            // 
499
            // layoutControlItem5
500
            // 
501
            this.layoutControlItem5.Control = this.textBoxTextSymbolPath;
502
            this.layoutControlItem5.Location = new System.Drawing.Point(0, 0);
503
            this.layoutControlItem5.Name = "layoutControlItem5";
504
            this.layoutControlItem5.Size = new System.Drawing.Size(667, 24);
505
            this.layoutControlItem5.Text = "SPPID Text Symbol Path";
506
            this.layoutControlItem5.TextSize = new System.Drawing.Size(167, 14);
507
            // 
508
            // layoutControlItem7
509
            // 
510
            this.layoutControlItem7.Control = this.textBoxNoteSymbolPath;
511
            this.layoutControlItem7.Location = new System.Drawing.Point(0, 24);
512
            this.layoutControlItem7.Name = "layoutControlItem7";
513
            this.layoutControlItem7.Size = new System.Drawing.Size(667, 24);
514
            this.layoutControlItem7.Text = "SPPID Note Symbol Path";
515
            this.layoutControlItem7.TextSize = new System.Drawing.Size(167, 14);
516
            // 
517
            // layoutControlGroup10
518
            // 
519
            this.layoutControlGroup10.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
520
            this.layoutControlItem14});
521
            this.layoutControlGroup10.Location = new System.Drawing.Point(0, 93);
522
            this.layoutControlGroup10.Name = "layoutControlGroup10";
523
            this.layoutControlGroup10.Size = new System.Drawing.Size(691, 69);
524
            this.layoutControlGroup10.Text = "Drain Valve Setting";
525
            // 
526
            // layoutControlItem14
527
            // 
528
            this.layoutControlItem14.Control = this.textBoxDrainValveSize;
529
            this.layoutControlItem14.Location = new System.Drawing.Point(0, 0);
530
            this.layoutControlItem14.Name = "layoutControlItem14";
531
            this.layoutControlItem14.Size = new System.Drawing.Size(667, 24);
532
            this.layoutControlItem14.Text = "Drain Valve Size";
533
            this.layoutControlItem14.TextSize = new System.Drawing.Size(167, 14);
534
            // 
535 486
            // GroupSymbol
536 487
            // 
537 488
            this.GroupSymbol.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
......
704 655
            this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
705 656
            this.layoutControlItem11.TextVisible = false;
706 657
            // 
658
            // GroupETCSetting
659
            // 
660
            this.GroupETCSetting.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
661
            this.emptySpaceItem3,
662
            this.layoutControlGroup9,
663
            this.layoutControlGroup10});
664
            this.GroupETCSetting.Location = new System.Drawing.Point(0, 0);
665
            this.GroupETCSetting.Name = "GroupETCSetting";
666
            this.GroupETCSetting.Size = new System.Drawing.Size(691, 632);
667
            this.GroupETCSetting.Text = "ETC Setting";
668
            // 
669
            // emptySpaceItem3
670
            // 
671
            this.emptySpaceItem3.AllowHotTrack = false;
672
            this.emptySpaceItem3.Location = new System.Drawing.Point(0, 162);
673
            this.emptySpaceItem3.Name = "emptySpaceItem3";
674
            this.emptySpaceItem3.Size = new System.Drawing.Size(691, 470);
675
            this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
676
            // 
677
            // layoutControlGroup9
678
            // 
679
            this.layoutControlGroup9.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
680
            this.layoutControlItem5,
681
            this.layoutControlItem7});
682
            this.layoutControlGroup9.Location = new System.Drawing.Point(0, 0);
683
            this.layoutControlGroup9.Name = "layoutControlGroup9";
684
            this.layoutControlGroup9.Size = new System.Drawing.Size(691, 93);
685
            this.layoutControlGroup9.Text = "Text && Note Setting";
686
            // 
687
            // layoutControlItem5
688
            // 
689
            this.layoutControlItem5.Control = this.textBoxTextSymbolPath;
690
            this.layoutControlItem5.Location = new System.Drawing.Point(0, 0);
691
            this.layoutControlItem5.Name = "layoutControlItem5";
692
            this.layoutControlItem5.Size = new System.Drawing.Size(667, 24);
693
            this.layoutControlItem5.Text = "SPPID Text Symbol Path";
694
            this.layoutControlItem5.TextSize = new System.Drawing.Size(167, 14);
695
            // 
696
            // layoutControlItem7
697
            // 
698
            this.layoutControlItem7.Control = this.textBoxNoteSymbolPath;
699
            this.layoutControlItem7.Location = new System.Drawing.Point(0, 24);
700
            this.layoutControlItem7.Name = "layoutControlItem7";
701
            this.layoutControlItem7.Size = new System.Drawing.Size(667, 24);
702
            this.layoutControlItem7.Text = "SPPID Note Symbol Path";
703
            this.layoutControlItem7.TextSize = new System.Drawing.Size(167, 14);
704
            // 
705
            // layoutControlGroup10
706
            // 
707
            this.layoutControlGroup10.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
708
            this.layoutControlItem14});
709
            this.layoutControlGroup10.Location = new System.Drawing.Point(0, 93);
710
            this.layoutControlGroup10.Name = "layoutControlGroup10";
711
            this.layoutControlGroup10.Size = new System.Drawing.Size(691, 69);
712
            this.layoutControlGroup10.Text = "Drain Valve Setting";
713
            // 
714
            // layoutControlItem14
715
            // 
716
            this.layoutControlItem14.Control = this.textBoxDrainValveSize;
717
            this.layoutControlItem14.Location = new System.Drawing.Point(0, 0);
718
            this.layoutControlItem14.Name = "layoutControlItem14";
719
            this.layoutControlItem14.Size = new System.Drawing.Size(667, 24);
720
            this.layoutControlItem14.Text = "Drain Valve Size";
721
            this.layoutControlItem14.TextSize = new System.Drawing.Size(167, 14);
722
            // 
707 723
            // layoutControlItem12
708 724
            // 
709 725
            this.layoutControlItem12.Control = this.btnClose;
......
774 790
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
775 791
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
776 792
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
777
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem2)).EndInit();
778 793
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup5)).EndInit();
779 794
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
780 795
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem5)).EndInit();
796
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit();
781 797
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
782 798
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).EndInit();
783 799
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).EndInit();
784
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).EndInit();
785
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
786
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup9)).EndInit();
787
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
788
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
789
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup10)).EndInit();
790
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
791 800
            ((System.ComponentModel.ISupportInitialize)(this.GroupSymbol)).EndInit();
792 801
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit();
793 802
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
......
807 816
            ((System.ComponentModel.ISupportInitialize)(this.GroupAssociation)).EndInit();
808 817
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).EndInit();
809 818
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
819
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).EndInit();
820
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
821
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup9)).EndInit();
822
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
823
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
824
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup10)).EndInit();
825
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
810 826
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
811 827
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
812 828
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
......
825 841
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2;
826 842
        private DevExpress.XtraTreeList.TreeList treeListSPPIDTreeList;
827 843
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
828
        private DevExpress.XtraLayout.SplitterItem splitterItem2;
829 844
        private DevExpress.XtraEditors.SimpleButton btnSave;
830 845
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
831 846
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2;
......
876 891
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup10;
877 892
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14;
878 893
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
894
        private DevExpress.XtraEditors.SimpleButton btnImageRefresh;
895
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15;
879 896
    }
880 897
}
DTI_PID/SPPIDConverter/Form/MappingForm.cs
16 16
using DevExpress.XtraEditors;
17 17
using Converter.BaseModel;
18 18
using Converter.SPPID.Properties;
19
using Converter.SPPID.DB;
19 20
using Newtonsoft.Json;
21
using System.Runtime.InteropServices;
20 22

  
21 23
namespace Converter.SPPID.Form
22 24
{
23 25
    public partial class MappingForm : DevExpress.XtraBars.Ribbon.RibbonForm
24 26
    {
27
        [StructLayout(LayoutKind.Sequential)]
28
        public struct SHFILEINFO
29
        {
30
            public IntPtr hIcon;
31
            public IntPtr iIcon;
32
            public uint dwAttributes;
33

  
34
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)]
35
            public string szDisplayName;
36

  
37
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 80)]
38
            public string szTypeName;
39
        };
40

  
41
        class Win32
42
        {
43
            public const uint SHGFI_ICON = 0x100;
44
            public const uint SHGFI_LARGEICON = 0x0; // Large icon
45
            public const uint SHGFI_SMALLICON = 0x1; // Small icon
46
            public const uint USEFILEATTRIBUTES = 0x000000010; // when the full path isn't available
47
            [DllImport("shell32.dll")]
48
            public static extern IntPtr SHGetFileInfo(string pszPath, uint dwFileAttributes, ref SHFILEINFO psfi, uint cbSizeFileInfo, uint uFlags);
49
            [DllImport("User32.dll")]
50
            public static extern int DestroyIcon(IntPtr hIcon);
51
        }
52

  
25 53
        DataTable symbolDT;
26 54
        DataTable SPPIDSymbolPathDT;
27 55
        DataTable lineDT;
......
115 143
            treeListSPPIDTreeList.OptionsView.ShowColumns = false;
116 144
            treeListSPPIDTreeList.OptionsView.ShowHorzLines = false;
117 145
            treeListSPPIDTreeList.OptionsView.ShowVertLines = false;
118
            treeListSPPIDTreeList.OptionsView.FocusRectStyle = DrawFocusRectStyle.None;
146
            treeListSPPIDTreeList.OptionsView.FocusRectStyle = DrawFocusRectStyle.CellFocus;
119 147
            treeListSPPIDTreeList.OptionsBehavior.Editable = false;
148

  
120 149
            treeListSPPIDTreeList.Columns["FullPath"].Visible = false;
121 150

  
122 151
            treeListSPPIDTreeList.ExpandToLevel(0);
......
262 291

  
263 292
                if (File.Exists(_ImagePath))
264 293
                    pictureEditID2Symbol.Image = Image.FromFile(_ImagePath);
294

  
295
                string fullPath = _MappedPath;
296
                string _ID2ImagePath = info.SPPID_ImageDirPath + fullPath + ".png";
297

  
298
                if (pictureEditMapped.Image != null)
299
                {
300
                    pictureEditMapped.Image.Dispose();
301
                    pictureEditMapped.Image = null;
302
                }
303

  
304
                if (File.Exists(_ID2ImagePath))
305
                {
306
                    pictureEditMapped.Image = Image.FromFile(_ID2ImagePath);
307
                }
265 308
            }
266 309
        }
267 310

  
......
310 353
            }
311 354
        }
312 355

  
313
        
356
        private void btnImageRefresh_Click(object sender, EventArgs e)
357
        {
358
            Cursor = Cursors.WaitCursor;
359
            Project_Info project_Info = Project_Info.GetInstance();
360
            string symbolPath = SPPID_DB.GetPlantPID_T_OPTIONSETTING_Value("Catalog Explorer root path");
361
            foreach (DataRow row in SPPIDSymbolPathDT.Rows)
362
            {
363
                if (row["FullPath"] != DBNull.Value && !string.IsNullOrEmpty((string)row["FullPath"]))
364
                {  
365
                    string fullPath = !string.IsNullOrEmpty((string)row["FullPath"]) ? row["FullPath"].ToString() : null;
366
                    if (!string.IsNullOrEmpty(fullPath))
367
                    {
368
                        string _ID2ImagePath = project_Info.SPPID_ImageDirPath + fullPath + ".png";
369
                        string _SPPIDSymbolPath = symbolPath + fullPath;
370

  
371
                        if (File.Exists(_SPPIDSymbolPath) && !File.Exists(_ID2ImagePath))
372
                        {
373
                            try
374
                            {
375
                                IntPtr hImgLarge; //the handle to the system image list
376
                                SHFILEINFO shinfo = new SHFILEINFO();
377
                                hImgLarge = Win32.SHGetFileInfo(_SPPIDSymbolPath, 0, ref shinfo, (uint)Marshal.SizeOf(shinfo), Win32.SHGFI_ICON | Win32.SHGFI_LARGEICON | Win32.USEFILEATTRIBUTES);
378
                                Icon icon = (Icon)Icon.FromHandle(shinfo.hIcon).Clone();
379
                                Win32.DestroyIcon(shinfo.hIcon);
380

  
381
                                Bitmap bmp = icon.ToBitmap();
382
                                string fileDirectory = Path.GetDirectoryName(_ID2ImagePath);
383
                                Directory.CreateDirectory(fileDirectory);
384
                                bmp.Save(_ID2ImagePath);
385
                            }
386
                            catch (Exception ex)
387
                            {
388

  
389
                            }
390
                        }
391
                    }
392
                }
393
            }
394
            Cursor = Cursors.Default;
395
        }
396

  
397
        private void treeListSPPIDTreeList_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e)
398
        {
399
            if (e.Node != null)
400
            {
401
                Project_Info project_Info = Project_Info.GetInstance();
402
                string fullPath = e.Node.GetDisplayText("FullPath");
403
                string _ID2ImagePath = project_Info.SPPID_ImageDirPath + fullPath + ".png";
404

  
405
                if (pictureEditSPPIDSymbol.Image != null)
406
                {
407
                    pictureEditSPPIDSymbol.Image.Dispose();
408
                    pictureEditSPPIDSymbol.Image = null;
409
                }
410

  
411
                if (File.Exists(_ID2ImagePath))
412
                    pictureEditSPPIDSymbol.Image = Image.FromFile(_ID2ImagePath);
413
            }
414
        }
314 415
    }
315 416
}
DTI_PID/SPPIDConverter/Properties/Resources.Designer.cs
81 81
        }
82 82
        
83 83
        /// <summary>
84
        ///   DevExpress.Utils.Svg.SvgImage 형식의 지역화된 리소스를 찾습니다.
85
        /// </summary>
86
        internal static DevExpress.Utils.Svg.SvgImage actions_refresh {
87
            get {
88
                object obj = ResourceManager.GetObject("actions_refresh", resourceCulture);
89
                return ((DevExpress.Utils.Svg.SvgImage)(obj));
90
            }
91
        }
92
        
93
        /// <summary>
84 94
        ///   System.Drawing.Bitmap 형식의 지역화된 리소스를 찾습니다.
85 95
        /// </summary>
86 96
        internal static System.Drawing.Bitmap apply_16x16 {
DTI_PID/SPPIDConverter/Properties/Resources.resx
136 136
  <data name="changedatasourcepivottable" type="System.Resources.ResXFileRef, System.Windows.Forms">
137 137
    <value>..\Resources\changedatasourcepivottable.svg;DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v18.2, Version=18.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
138 138
  </data>
139
  <data name="pencolor_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
140
    <value>..\Resources\pencolor_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
141
  </data>
139 142
  <data name="save" type="System.Resources.ResXFileRef, System.Windows.Forms">
140 143
    <value>..\Resources\save.svg;DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v18.2, Version=18.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
141 144
  </data>
......
160 163
  <data name="actions_database" type="System.Resources.ResXFileRef, System.Windows.Forms">
161 164
    <value>..\Resources\actions_database.svg;DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v18.2, Version=18.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
162 165
  </data>
163
  <data name="pencolor_16x16" type="System.Resources.ResXFileRef, System.Windows.Forms">
164
    <value>..\Resources\pencolor_16x16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
166
  <data name="actions_refresh" type="System.Resources.ResXFileRef, System.Windows.Forms">
167
    <value>..\Resources\actions_refresh.svg;DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v18.2, Version=18.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
165 168
  </data>
166 169
</root>
DTI_PID/SPPIDConverter/Resources/actions_refresh.svg
1
<?xml version='1.0' encoding='UTF-8'?>
2
<svg x="0px" y="0px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 32 32" xml:space="preserve" id="Layer_1">
3
  <g id="Refresh_1_">
4
    <path d="M24.5,7.5C22.3,5.3,19.3,4,16,4C10.1,4,5.1,8.3,4.2,14h4.1c0.9-3.4,4-6,7.7-6c2.2,0,4.2,0.9,5.6,2.4L18,14   h5.7h4.1H28V4L24.5,7.5z" fill="#039C23" class="Green" />
5
    <path d="M16.2,24c-2.2,0-4.2-0.9-5.6-2.4l3.6-3.6H8.4H4.4H4.2v10l3.5-3.5c2.2,2.2,5.2,3.5,8.5,3.5   C22.1,28,27,23.7,28,18h-4.1C23,21.4,19.9,24,16.2,24z" fill="#039C23" class="Green" />
6
  </g>
7
</svg>
DTI_PID/SPPIDConverter/SPPIDConverter.csproj
286 286
  <ItemGroup>
287 287
    <None Include="Resources\pencolor_16x16.png" />
288 288
  </ItemGroup>
289
  <ItemGroup />
289
  <ItemGroup>
290
    <None Include="Resources\actions_refresh.svg" />
291
  </ItemGroup>
290 292
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
291 293
</Project>

내보내기 Unified diff

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