프로젝트

일반

사용자정보

개정판 35afe17c

ID35afe17cb1acb6ff056f50d1d2d11836c94e1372
상위 90a0bfa9
하위 5e52ea63, b2a7c1f8, 84c48033

김동진이(가) 5년 이상 전에 추가함

issue #000: daelim source merged(interface id select)

Change-Id: I5ed76834d4bd6ffc81b53aca13b6573e616ca961

차이점 보기:

IKCOM/Interface.cs
46 46
        public string ProjectNO { get; set; }
47 47
        public string UserID { get; set; }
48 48
        public string DocumentItemID { get; set; }
49
        public string EnsembleID { get; set; }
49 50
        public bool NewCommentPermission { get; set; }
50 51
        public bool CreateFinalPDFPermission { get; set; }
51 52
        public bool bPartner { get; set; }
KCOM/App.xaml.cs
112 112
                    App.ViewInfo = new IKCOM.ViewInfo
113 113
                    {
114 114
                        DocumentItemID = result.DocumentItemID,
115
                        EnsembleID = result.DocumentItemID,
115 116
                        //DocumentItemID = "10001",
116 117
                        bPartner = result.bPartner,
117 118
                        CreateFinalPDFPermission = result.CreateFinalPDFPermission,
......
134 135
                        App.ViewInfo = new IKCOM.ViewInfo
135 136
                        {
136 137
                            DocumentItemID = result.DocumentItemID,
138
                            EnsembleID = result.DocumentItemID,
137 139
                            //DocumentItemID = "10001",
138 140
                            bPartner = result.bPartner,
139 141
                            CreateFinalPDFPermission = result.CreateFinalPDFPermission,
KCOM/Services/BaseServices.cs
673 673

  
674 674
        public void SetView(ViewInfo info)
675 675
        {
676
            string docid = BaseClient.GetDocItemID(info.EnsembleID);
676 677
            this._ViewInfo = info;
678
            if (!string.IsNullOrEmpty(docid))
679
            {
680
                this._ViewInfo.DocumentItemID = docid;
681
            }
682
            
677 683
            if (!(App.ViewInfo.ProjectNO == "000000" || App.ViewInfo.ProjectNO == "000001"))
678 684
            {
679 685
                ViewerDataModel.Instance.SystemMain.dzTopMenu.btnTopStamp.Visibility = Visibility.Collapsed;
KCOM_API/ServiceDeepView.svc.cs
509 509

  
510 510
            return _result;
511 511
        }
512
        /// <summary>
513
        /// DOCUMENT_ITEM Table 의 ID 로 Item 을 Select
514
        /// </summary>
515
        /// <param name="ensemble_id"></param>
516
        /// <returns></returns>
512 517
        [OperationContract]
513 518
        public string GetDocItemID(string ensemble_id)
514 519
        {
......
520 525
                CIEntities entity = new CIEntities(ConnectStringBuilder.ProjectCIConnectString("markus").ToString());
521 526

  
522 527
                var _items = entity.DOCUMENT_ITEM.Where(data => data.ID == ensemble_id).FirstOrDefault();
523

  
524
                _result = _items.DOCUMENT_ID;
528
                if(_items != null)
529
                    _result = _items.DOCUMENT_ID;
525 530
            }
526 531
            catch (Exception ex)
527 532
            {

내보내기 Unified diff

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