프로젝트

일반

사용자정보

개정판 d18553cd

IDd18553cdfc1047f7ef5e4155e60ed1289e59796a
상위 57a567be
하위 f93ac710

김태성이(가) 일년 이상 전에 추가함

issue #00000 BriefAndImages 수정

Change-Id: Ia032aa277fb2daf6130712507319094218dc8623

차이점 보기:

ID2.Manager/ID2.Manager/Controls/BriefAndImages.Designer.cs
215 215
            this.label2.Location = new System.Drawing.Point(3, 3);
216 216
            this.label2.Margin = new System.Windows.Forms.Padding(3);
217 217
            this.label2.Name = "label2";
218
            this.label2.Size = new System.Drawing.Size(49, 12);
218
            this.label2.Size = new System.Drawing.Size(65, 12);
219 219
            this.label2.TabIndex = 1;
220
            this.label2.Text = "- 삼성 -";
220
            this.label2.Text = "- 삼성DS -";
221 221
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
222 222
            // 
223 223
            // txtBriefSec
ID2.Manager/ID2.Manager/Controls/BriefAndImages.cs
120 120
        {
121 121
            foreach (var image in images)
122 122
            {
123
                ListViewDataItem item = new ListViewDataItem(Guid.NewGuid().ToString());
124
                item.ImageAlignment = ContentAlignment.MiddleCenter;
125
                item.Text = "";
126
                item.Image = GetImage(image);
127
                item.TextImageRelation = TextImageRelation.Overlay;
128
                lstToImages.Items.Add(item);
123
                AddToImage(image);
129 124
            }
130 125

  
131 126
            if (images?.Count() > 0)
......
134 129
            }
135 130
        }
136 131

  
132
        public void AddToImage(Byte[] image,bool SelectItem = false)
133
        {
134
            ListViewDataItem item = new ListViewDataItem(Guid.NewGuid().ToString());
135
            item.ImageAlignment = ContentAlignment.MiddleCenter;
136
            item.Text = "";
137
            item.Image = GetImage(image);
138
            item.TextImageRelation = TextImageRelation.Overlay;
139
            lstToImages.Items.Add(item);
140

  
141
            if (SelectItem)
142
            {
143
                lstToImages.SelectedItem = item; 
144
            }
145
        }
146

  
137 147
        public void SetFrImages(List<Byte[]> images)
138 148
        {
139 149
            foreach (var image in images)
140 150
            {
141
                ListViewDataItem item = new ListViewDataItem(Guid.NewGuid().ToString());
142
                item.ImageAlignment = ContentAlignment.MiddleCenter;
143
                item.Text = "";
144
                item.Image = GetImage(image);
145
                item.TextImageRelation = TextImageRelation.Overlay;
146
                lstFrImages.Items.Add(item);
151
                AddFrImage(image);
147 152
            }
148 153

  
149 154
            if (images?.Count() > 0)
......
152 157
            }
153 158
        }
154 159

  
160

  
161
        public void AddFrImage(Byte[] image, bool SelectItem = false)
162
        {
163
            ListViewDataItem item = new ListViewDataItem(Guid.NewGuid().ToString());
164
            item.ImageAlignment = ContentAlignment.MiddleCenter;
165
            item.Text = "";
166
            item.Image = GetImage(image);
167
            item.TextImageRelation = TextImageRelation.Overlay;
168
            lstFrImages.Items.Add(item);
169

  
170
            if (SelectItem)
171
            {
172
                lstFrImages.SelectedItem = item;
173
            }
174
        }
175

  
176

  
155 177
        public void Clear()
156 178
        {
157 179
            this.DataBindings.Clear();
ID2.Manager/ID2.Manager/Main.Designer.cs
441 441
            this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
442 442
            this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 85F));
443 443
            this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
444
            this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 185F));
444
            this.tableLayoutPanelCondition.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 201F));
445 445
            this.tableLayoutPanelCondition.Controls.Add(this.radDropDownListFrReviewStatus, 4, 1);
446 446
            this.tableLayoutPanelCondition.Controls.Add(this.radDropDownListToIsDiscussion, 2, 1);
447 447
            this.tableLayoutPanelCondition.Controls.Add(this.radLabelFrReviewStatus, 3, 1);
......
491 491
            this.radDropDownListFrReviewStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
492 492
            this.radDropDownListFrReviewStatus.DropDownAnimationEnabled = true;
493 493
            this.radDropDownListFrReviewStatus.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
494
            this.radDropDownListFrReviewStatus.Location = new System.Drawing.Point(336, 34);
494
            this.radDropDownListFrReviewStatus.Location = new System.Drawing.Point(332, 34);
495 495
            this.radDropDownListFrReviewStatus.Name = "radDropDownListFrReviewStatus";
496
            this.radDropDownListFrReviewStatus.Size = new System.Drawing.Size(97, 20);
496
            this.radDropDownListFrReviewStatus.Size = new System.Drawing.Size(93, 20);
497 497
            this.radDropDownListFrReviewStatus.TabIndex = 18;
498 498
            // 
499 499
            // radDropDownListToIsDiscussion
......
503 503
            this.radDropDownListToIsDiscussion.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
504 504
            this.radDropDownListToIsDiscussion.Location = new System.Drawing.Point(146, 34);
505 505
            this.radDropDownListToIsDiscussion.Name = "radDropDownListToIsDiscussion";
506
            this.radDropDownListToIsDiscussion.Size = new System.Drawing.Size(97, 20);
506
            this.radDropDownListToIsDiscussion.Size = new System.Drawing.Size(93, 20);
507 507
            this.radDropDownListToIsDiscussion.TabIndex = 17;
508 508
            // 
509 509
            // radLabelFrReviewStatus
510 510
            // 
511 511
            this.radLabelFrReviewStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
512 512
            this.radLabelFrReviewStatus.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
513
            this.radLabelFrReviewStatus.Location = new System.Drawing.Point(250, 35);
513
            this.radLabelFrReviewStatus.Location = new System.Drawing.Point(246, 35);
514 514
            this.radLabelFrReviewStatus.Name = "radLabelFrReviewStatus";
515 515
            this.radLabelFrReviewStatus.Size = new System.Drawing.Size(59, 17);
516 516
            this.radLabelFrReviewStatus.TabIndex = 7;
......
540 540
            // 
541 541
            this.radLabelAVEVAStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
542 542
            this.radLabelAVEVAStatus.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
543
            this.radLabelAVEVAStatus.Location = new System.Drawing.Point(250, 64);
543
            this.radLabelAVEVAStatus.Location = new System.Drawing.Point(246, 64);
544 544
            this.radLabelAVEVAStatus.Name = "radLabelAVEVAStatus";
545 545
            this.radLabelAVEVAStatus.Size = new System.Drawing.Size(86, 17);
546 546
            this.radLabelAVEVAStatus.TabIndex = 8;
......
550 550
            // 
551 551
            this.radLabelIsID2Work.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
552 552
            this.radLabelIsID2Work.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
553
            this.radLabelIsID2Work.Location = new System.Drawing.Point(440, 35);
553
            this.radLabelIsID2Work.Location = new System.Drawing.Point(432, 35);
554 554
            this.radLabelIsID2Work.Name = "radLabelIsID2Work";
555 555
            this.radLabelIsID2Work.Size = new System.Drawing.Size(80, 17);
556 556
            this.radLabelIsID2Work.TabIndex = 6;
......
560 560
            // 
561 561
            this.radLabelJobLevel.Anchor = System.Windows.Forms.AnchorStyles.Left;
562 562
            this.radLabelJobLevel.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
563
            this.radLabelJobLevel.Location = new System.Drawing.Point(440, 6);
563
            this.radLabelJobLevel.Location = new System.Drawing.Point(432, 6);
564 564
            this.radLabelJobLevel.Name = "radLabelJobLevel";
565 565
            this.radLabelJobLevel.Size = new System.Drawing.Size(47, 17);
566 566
            this.radLabelJobLevel.TabIndex = 7;
......
611 611
            this.radButtonSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
612 612
            this.radButtonSearch.Cursor = System.Windows.Forms.Cursors.WaitCursor;
613 613
            this.radButtonSearch.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
614
            this.radButtonSearch.Location = new System.Drawing.Point(884, 4);
614
            this.radButtonSearch.Location = new System.Drawing.Point(876, 4);
615 615
            this.radButtonSearch.Name = "radButtonSearch";
616 616
            this.tableLayoutPanelCondition.SetRowSpan(this.radButtonSearch, 5);
617 617
            this.radButtonSearch.Size = new System.Drawing.Size(54, 136);
......
625 625
            this.radDropDownListProject.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
626 626
            this.radDropDownListProject.Location = new System.Drawing.Point(146, 5);
627 627
            this.radDropDownListProject.Name = "radDropDownListProject";
628
            this.radDropDownListProject.Size = new System.Drawing.Size(97, 20);
628
            this.radDropDownListProject.Size = new System.Drawing.Size(93, 20);
629 629
            this.radDropDownListProject.TabIndex = 7;
630 630
            // 
631 631
            // radLabelDocumentNo
632 632
            // 
633 633
            this.radLabelDocumentNo.Anchor = System.Windows.Forms.AnchorStyles.Left;
634 634
            this.radLabelDocumentNo.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
635
            this.radLabelDocumentNo.Location = new System.Drawing.Point(630, 6);
635
            this.radLabelDocumentNo.Location = new System.Drawing.Point(618, 6);
636 636
            this.radLabelDocumentNo.Name = "radLabelDocumentNo";
637 637
            this.radLabelDocumentNo.Size = new System.Drawing.Size(49, 17);
638 638
            this.radLabelDocumentNo.TabIndex = 6;
......
641 641
            // radTextBoxDocumentNo
642 642
            // 
643 643
            this.radTextBoxDocumentNo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
644
            this.radTextBoxDocumentNo.Location = new System.Drawing.Point(716, 5);
644
            this.radTextBoxDocumentNo.Location = new System.Drawing.Point(704, 5);
645 645
            this.radTextBoxDocumentNo.Name = "radTextBoxDocumentNo";
646
            this.radTextBoxDocumentNo.Size = new System.Drawing.Size(97, 20);
646
            this.radTextBoxDocumentNo.Size = new System.Drawing.Size(93, 20);
647 647
            this.radTextBoxDocumentNo.TabIndex = 8;
648 648
            // 
649 649
            // radLabelPersonInCharge
650 650
            // 
651 651
            this.radLabelPersonInCharge.Anchor = System.Windows.Forms.AnchorStyles.Left;
652 652
            this.radLabelPersonInCharge.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
653
            this.radLabelPersonInCharge.Location = new System.Drawing.Point(250, 6);
653
            this.radLabelPersonInCharge.Location = new System.Drawing.Point(246, 6);
654 654
            this.radLabelPersonInCharge.Name = "radLabelPersonInCharge";
655 655
            this.radLabelPersonInCharge.Size = new System.Drawing.Size(47, 17);
656 656
            this.radLabelPersonInCharge.TabIndex = 6;
......
661 661
            this.radDropDownListPersonInCharge.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
662 662
            this.radDropDownListPersonInCharge.DropDownAnimationEnabled = true;
663 663
            this.radDropDownListPersonInCharge.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
664
            this.radDropDownListPersonInCharge.Location = new System.Drawing.Point(336, 5);
664
            this.radDropDownListPersonInCharge.Location = new System.Drawing.Point(332, 5);
665 665
            this.radDropDownListPersonInCharge.Name = "radDropDownListPersonInCharge";
666
            this.radDropDownListPersonInCharge.Size = new System.Drawing.Size(97, 20);
666
            this.radDropDownListPersonInCharge.Size = new System.Drawing.Size(93, 20);
667 667
            this.radDropDownListPersonInCharge.TabIndex = 9;
668 668
            // 
669 669
            // radLabel1
......
681 681
            this.radDropDownListJobLevel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
682 682
            this.radDropDownListJobLevel.DropDownAnimationEnabled = true;
683 683
            this.radDropDownListJobLevel.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
684
            this.radDropDownListJobLevel.Location = new System.Drawing.Point(526, 5);
684
            this.radDropDownListJobLevel.Location = new System.Drawing.Point(518, 5);
685 685
            this.radDropDownListJobLevel.Name = "radDropDownListJobLevel";
686
            this.radDropDownListJobLevel.Size = new System.Drawing.Size(97, 20);
686
            this.radDropDownListJobLevel.Size = new System.Drawing.Size(93, 20);
687 687
            this.radDropDownListJobLevel.TabIndex = 11;
688 688
            // 
689 689
            // radLabelID2Status
......
700 700
            // 
701 701
            this.radLabel10.Anchor = System.Windows.Forms.AnchorStyles.Left;
702 702
            this.radLabel10.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
703
            this.radLabel10.Location = new System.Drawing.Point(250, 93);
703
            this.radLabel10.Location = new System.Drawing.Point(246, 93);
704 704
            this.radLabel10.Name = "radLabel10";
705 705
            this.radLabel10.Size = new System.Drawing.Size(61, 17);
706 706
            this.radLabel10.TabIndex = 9;
......
711 711
            this.radDropDownListIsID2Work.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
712 712
            this.radDropDownListIsID2Work.DropDownAnimationEnabled = true;
713 713
            this.radDropDownListIsID2Work.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
714
            this.radDropDownListIsID2Work.Location = new System.Drawing.Point(526, 34);
714
            this.radDropDownListIsID2Work.Location = new System.Drawing.Point(518, 34);
715 715
            this.radDropDownListIsID2Work.Name = "radDropDownListIsID2Work";
716
            this.radDropDownListIsID2Work.Size = new System.Drawing.Size(97, 20);
716
            this.radDropDownListIsID2Work.Size = new System.Drawing.Size(93, 20);
717 717
            this.radDropDownListIsID2Work.TabIndex = 12;
718 718
            // 
719 719
            // radDropDownListID2Status
......
723 723
            this.radDropDownListID2Status.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
724 724
            this.radDropDownListID2Status.Location = new System.Drawing.Point(146, 63);
725 725
            this.radDropDownListID2Status.Name = "radDropDownListID2Status";
726
            this.radDropDownListID2Status.Size = new System.Drawing.Size(97, 20);
726
            this.radDropDownListID2Status.Size = new System.Drawing.Size(93, 20);
727 727
            this.radDropDownListID2Status.TabIndex = 13;
728 728
            // 
729 729
            // radDropDownListAVEVAStatus
......
731 731
            this.radDropDownListAVEVAStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
732 732
            this.radDropDownListAVEVAStatus.DropDownAnimationEnabled = true;
733 733
            this.radDropDownListAVEVAStatus.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
734
            this.radDropDownListAVEVAStatus.Location = new System.Drawing.Point(336, 63);
734
            this.radDropDownListAVEVAStatus.Location = new System.Drawing.Point(332, 63);
735 735
            this.radDropDownListAVEVAStatus.Name = "radDropDownListAVEVAStatus";
736
            this.radDropDownListAVEVAStatus.Size = new System.Drawing.Size(97, 20);
736
            this.radDropDownListAVEVAStatus.Size = new System.Drawing.Size(93, 20);
737 737
            this.radDropDownListAVEVAStatus.TabIndex = 14;
738 738
            // 
739 739
            // radDropDownListProdIsResult
......
743 743
            this.radDropDownListProdIsResult.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
744 744
            this.radDropDownListProdIsResult.Location = new System.Drawing.Point(146, 92);
745 745
            this.radDropDownListProdIsResult.Name = "radDropDownListProdIsResult";
746
            this.radDropDownListProdIsResult.Size = new System.Drawing.Size(97, 20);
746
            this.radDropDownListProdIsResult.Size = new System.Drawing.Size(93, 20);
747 747
            this.radDropDownListProdIsResult.TabIndex = 15;
748 748
            // 
749 749
            // radDropDownListClientIsResult
......
751 751
            this.radDropDownListClientIsResult.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
752 752
            this.radDropDownListClientIsResult.DropDownAnimationEnabled = true;
753 753
            this.radDropDownListClientIsResult.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
754
            this.radDropDownListClientIsResult.Location = new System.Drawing.Point(336, 92);
754
            this.radDropDownListClientIsResult.Location = new System.Drawing.Point(332, 92);
755 755
            this.radDropDownListClientIsResult.Name = "radDropDownListClientIsResult";
756
            this.radDropDownListClientIsResult.Size = new System.Drawing.Size(97, 20);
756
            this.radDropDownListClientIsResult.Size = new System.Drawing.Size(93, 20);
757 757
            this.radDropDownListClientIsResult.TabIndex = 16;
758 758
            // 
759 759
            // radLabel6
......
770 770
            // 
771 771
            this.radLabel7.Anchor = System.Windows.Forms.AnchorStyles.Left;
772 772
            this.radLabel7.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
773
            this.radLabel7.Location = new System.Drawing.Point(250, 121);
773
            this.radLabel7.Location = new System.Drawing.Point(246, 121);
774 774
            this.radLabel7.Name = "radLabel7";
775 775
            this.radLabel7.Size = new System.Drawing.Size(72, 17);
776 776
            this.radLabel7.TabIndex = 12;
......
793 793
            this.radDropDownListGateway.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
794 794
            this.radDropDownListGateway.Location = new System.Drawing.Point(146, 120);
795 795
            this.radDropDownListGateway.Name = "radDropDownListGateway";
796
            this.radDropDownListGateway.Size = new System.Drawing.Size(97, 20);
796
            this.radDropDownListGateway.Size = new System.Drawing.Size(93, 20);
797 797
            this.radDropDownListGateway.TabIndex = 19;
798 798
            // 
799 799
            // radDropDownListRegistration
......
801 801
            this.radDropDownListRegistration.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
802 802
            this.radDropDownListRegistration.DropDownAnimationEnabled = true;
803 803
            this.radDropDownListRegistration.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
804
            this.radDropDownListRegistration.Location = new System.Drawing.Point(336, 120);
804
            this.radDropDownListRegistration.Location = new System.Drawing.Point(332, 120);
805 805
            this.radDropDownListRegistration.Name = "radDropDownListRegistration";
806
            this.radDropDownListRegistration.Size = new System.Drawing.Size(97, 20);
806
            this.radDropDownListRegistration.Size = new System.Drawing.Size(93, 20);
807 807
            this.radDropDownListRegistration.TabIndex = 20;
808 808
            // 
809 809
            // tableLayoutPanelGroup
ID2.Manager/ID2.Manager/Main.cs
145 145
            SaveDockingLayout();
146 146
        }
147 147

  
148
      
149

  
150
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
151
        {
152
            if (keyData == (Keys.V | Keys.Control))
153
            {
154
                System.Diagnostics.Debug.WriteLine("KeyDown CTRL + V");
155
                
156
                if(Clipboard.ContainsImage())
157
                {
158
                    var IsDoftech = true;
159
                    var selectReview = true;
160
                    string category = "";
161
                    byte[] imageBytes = null;
162

  
163
                    Image clipboardImage = Clipboard.GetImage();
164

  
165
                    using (MemoryStream stream = new MemoryStream())
166
                    {
167
                        clipboardImage.Save(stream, System.Drawing.Imaging.ImageFormat.Png);
168
                        imageBytes = stream.ToArray();
169
                    }
170

  
171
                    if (this.radGridViewDocuments.SelectedRows.Count() > 0 && this.radGridViewDocuments.SelectedRows.First().DataBoundItem is Documents doc)
172
                    {
173

  
174
                        /// 도프텍 or 삼성
175
                        if (informations.ActiveUser.Role != "Manager")
176
                        {
177
                            IsDoftech = false;
178
                        }
179

  
180
                        /// 검토 or 검증
181
                        if (radPageViewComment.SelectedPage != radPageViewPageReview)
182
                        {
183
                            selectReview = false;
184
                        }
185

  
186
                        if (IsDoftech && selectReview)
187
                        {
188
                            category = "toreview";
189
                        }
190
                        else if (!IsDoftech && selectReview)
191
                        {
192
                            category = "frreview";
193
                        }
194
                        else if (IsDoftech && !selectReview)
195
                        {
196
                            category = "prodvalidation";
197
                        }
198
                        else 
199
                        {
200
                            category = "clientvalidation";
201
                        }
202

  
203

  
204
                        AttFileInfo newFile = new AttFileInfo
205
                        {
206
                            FileID = Guid.NewGuid().ToString(),
207
                            RefID = doc.DocID,
208
                            Category = category,
209
                            FileType = "image/png",
210
                            FileName = "ClipBoard",
211
                            FilePath = "ClipBoard",
212
                            FileExtension = ".png",
213
                            CreatedDate = DateTime.Now,
214
                            Creator = informations.ActiveUser.ID,
215
                            FileData = imageBytes
216

  
217
                        };
218

  
219
                        doc.AttFiles.Add(newFile);
220

  
221
                        switch(category)
222
                        {
223
                            case "toreview":
224
                                briefAndImagesReview.AddToImage(newFile.FileData, true);
225
                                break;
226
                            case "frreview":
227
                                briefAndImagesReview.AddFrImage(newFile.FileData, true);
228
                                break;
229
                            case "prodvalidation":
230
                                briefAndImagesValidation.AddToImage(newFile.FileData, true);
231
                                break;
232
                            case "clientvalidation":
233
                                briefAndImagesValidation.AddFrImage(newFile.FileData, true);
234
                                break;
235
                        }
236

  
237
                        MessageBox.Show("수정 필요!!!!!!!!!");
238
                    }
239
                }
240
            }
241

  
242
            return base.ProcessCmdKey(ref msg, keyData);
243
        }
244

  
148 245
        private void RadGridViewDocuments_CreateRowInfo(object sender, GridViewCreateRowInfoEventArgs e)
149 246
        {
150 247
            if (e.RowInfo is GridViewSearchRowInfo)

내보내기 Unified diff

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