프로젝트

일반

사용자정보

개정판 82fd7a58

ID82fd7a58ca30d07049b4db6ef550fd71f3c0bb0f
상위 45d645bf
하위 412f283c, 455456c5

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

issue #000: convert web service 에서 service 호출 전 DB 에 Insert 하는 로직 수정.

Change-Id: I5c23d39139c4b66ff5d19edf1db86059d0f0a8f4

차이점 보기:

ConvertService/ServiceBase/ConvertionWebService/Conversion.asmx.cs
150 150
                
151 151
                using (DeepView_Entity _entity = new DeepView_Entity(ConnectStringBuilder.DeepViewConnectionString().ToString()))
152 152
                {
153
                    if (string.IsNullOrEmpty(group_No))
154
                    {
155
                        group_No = "0";
156
                    }
157
                    if (!prj_No.Equals("150128"))
158
                    {
159
                        //Omsk 는 웹서비스 호출 시 인코딩
160
                        //Omsk 제외는 Markus 에서 인코딩
161
                        document_Url = Base64Decode(document_Url);
162
                    }
153 163
                    var doc = _entity.DOCUMENT_ITEM.Where(d => d.ID == document_Id).FirstOrDefault();
154 164
                    if (doc != null)
155 165
                    {
......
180 190
                                result = "deleteobject error:"+ex.ToString();
181 191
                            }
182 192
                                                    
183
                        }
184
                        var converterdoc = _entity.CONVERTER_DOC.Where(c => c.DOCUMENT_ID == doc.DOCUMENT_ID).FirstOrDefault();
185
                        _entity.DeleteObject(converterdoc);
186
                        _entity.DeleteObject(doc);
187
                        _entity.SaveChanges();
188
                        //document_Url = HttpUtility.UrlDecode(document_Url);
189
                    }
190
                    int cnt = _entity.DOCUMENT_ITEM.ToList().Count;
191
                    if (string.IsNullOrEmpty(group_No))
192
                    {
193
                        group_No = "0";
194
                    }
195
                    if (!prj_No.Equals("150128"))
196
                    {
197
                        //Omsk 는 웹서비스 호출 시 인코딩
198
                        //Omsk 제외는 Markus 에서 인코딩
199
                        document_Url = Base64Decode(document_Url);
200
                    }
201
                    _entity.AddToDOCUMENT_ITEM(new DOCUMENT_ITEM
202
                    {
203
                        ID = document_Id,
204
                        REVISION = rev_No,
205
                        DOCUMENT_NO = document_No,
206
                        DOCUMENT_NAME = document_Name,
207
                        GROUP_NO = group_No,
208
                        ORIGINAL_FILE = document_Url,
209
                        DOCUMENT_ID = _doc_id,
210
                        PROJECT_NO = prj_No,
211
                    });
193
                        }else
194
                        {
195
                            doc.REVISION = rev_No;
196
                            doc.ORIGINAL_FILE = document_Url;
197
                            doc.GROUP_NO = group_No;
198
                            doc.DOCUMENT_NO = document_No;
199
                            doc.DOCUMENT_NAME = document_Name;
200
                        }                        
201
                    }else
202
                    {
203
                        _entity.AddToDOCUMENT_ITEM(new DOCUMENT_ITEM
204
                        {
205
                            ID = document_Id,
206
                            REVISION = rev_No,
207
                            DOCUMENT_NO = document_No,
208
                            DOCUMENT_NAME = document_Name,
209
                            GROUP_NO = group_No,
210
                            ORIGINAL_FILE = document_Url,
211
                            DOCUMENT_ID = _doc_id,
212
                            PROJECT_NO = prj_No,
213
                        });                        
214
                    }                    
215
                    
212 216
                    _entity.AddToCONVERTER_DOC(new CONVERTER_DOC
213 217
                    {
214 218
                        ID = _id,
......
477 481
                string _id = shortGuid();
478 482
                string _doc_id = ((UInt32)document_Id.GetHashCode()).ToString();
479 483
                using (DeepView_Entity _entity = new DeepView_Entity(ConnectStringBuilder.DeepViewConnectionString().ToString()))
480
                {                    
481
                    var doc = _entity.DOCUMENT_ITEM.Where(d => d.ID == document_Id).FirstOrDefault();
482
                    if(doc != null)
483
                    {
484
                        var converterdoc = _entity.CONVERTER_DOC.Where(c => c.DOCUMENT_ID == doc.DOCUMENT_ID).FirstOrDefault();
485
                        _entity.DeleteObject(converterdoc);
486
                        _entity.DeleteObject(doc);
487
                        _entity.SaveChanges();
488
                        //document_Url = HttpUtility.UrlDecode(document_Url);
489
                    }
490
                    int cnt = _entity.DOCUMENT_ITEM.ToList().Count;
491
                    if(string.IsNullOrEmpty(group_No))
484
                {
485
                    if (string.IsNullOrEmpty(group_No))
492 486
                    {
493 487
                        group_No = "0";
494 488
                    }
......
498 492
                        //Omsk 제외는 Markus 에서 인코딩
499 493
                        document_Url = Base64Decode(document_Url);
500 494
                    }
501
                    _entity.AddToDOCUMENT_ITEM(new DOCUMENT_ITEM
495
                    var doc = _entity.DOCUMENT_ITEM.Where(d => d.ID == document_Id).FirstOrDefault();
496
                    if(doc != null)
502 497
                    {
503
                        ID = document_Id,
504
                        REVISION = rev_No,
505
                        DOCUMENT_NO = document_No,
506
                        DOCUMENT_NAME = document_Name,
507
                        GROUP_NO = group_No,
508
                        ORIGINAL_FILE = document_Url,
509
                        DOCUMENT_ID = _doc_id,
510
                        PROJECT_NO = prj_No,
511
                    });
498
                        doc.REVISION = rev_No;
499
                        doc.ORIGINAL_FILE = document_Url;
500
                        doc.GROUP_NO = group_No;
501
                        doc.DOCUMENT_NO = document_No;
502
                        doc.DOCUMENT_NAME = document_Name;                        
503
                    }else
504
                    {
505
                        _entity.AddToDOCUMENT_ITEM(new DOCUMENT_ITEM
506
                        {
507
                            ID = document_Id,
508
                            REVISION = rev_No,
509
                            DOCUMENT_NO = document_No,
510
                            DOCUMENT_NAME = document_Name,
511
                            GROUP_NO = group_No,
512
                            ORIGINAL_FILE = document_Url,
513
                            DOCUMENT_ID = _doc_id,
514
                            PROJECT_NO = prj_No,
515
                        });
516
                    }
517
                    
512 518
                    _entity.AddToCONVERTER_DOC(new CONVERTER_DOC
513 519
                    {
514 520
                        ID = _id,

내보내기 Unified diff

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