프로젝트

일반

사용자정보

개정판 0c624340

ID0c624340f1fa1a937e933aa5f137063d15fe110d
상위 3ad12023
하위 5a4df73e, acc8cdcf

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

issue #000: Consolidate markupinfo select 문 수정, Team Consolidate는 LE의 Team 에서만 Consolidate 하도록 수정.

Change-Id: I4ed3955a98327ed3b63b94e2b993e640498529ae

차이점 보기:

KCOM_API/ServiceDeepView.svc.cs
1846 1846
                List<KCOMDataModel.DataModel.MARKUP_DATA> instanceDataSet = new List<KCOMDataModel.DataModel.MARKUP_DATA>();
1847 1847
                using (CIEntities Entity = new CIEntities(ConnectStringBuilder.ProjectCIConnectString(project_no).ToString()))
1848 1848
                {
1849
                    var markupInfo = Entity.MARKUP_INFO.Where(entity => entity.DOCINFO_ID == _doc_id).OrderByDescending(i => i.CONSOLIDATE).OrderByDescending(j => j.CREATE_TIME).FirstOrDefault();
1850
                    if (markupInfo.CONSOLIDATE == 1)
1849
                    var markupInfo = Entity.MARKUP_INFO.Where(entity => entity.DOCINFO_ID == _doc_id && entity.CONSOLIDATE == 1).OrderByDescending(j => j.CREATE_TIME).FirstOrDefault();
1850
                    if (markupInfo != null)
1851 1851
                    {
1852 1852
                        markupInfo.AVOID_CONSOLIDATE = 1;
1853 1853
                    }
......
2084 2084
                List<KCOMDataModel.DataModel.MARKUP_DATA> instanceDataSet = new List<KCOMDataModel.DataModel.MARKUP_DATA>();
2085 2085
                using (CIEntities Entity = new CIEntities(ConnectStringBuilder.ProjectCIConnectString(project_no).ToString()))
2086 2086
                {
2087
                    var markupInfo = Entity.MARKUP_INFO.Where(entity => entity.DOCINFO_ID == _doc_id).OrderByDescending(i => i.CONSOLIDATE).OrderByDescending(j => j.CREATE_TIME).FirstOrDefault();
2088
                    if (markupInfo.PART_CONSOLIDATE == 1)
2087
                    string user_dept = Entity.MEMBER.Where(m => m.ID == _user_id).FirstOrDefault().DEPARTMENT;
2088
                    var markupInfos = Entity.MARKUP_INFO.Where(entity => entity.DOCINFO_ID == _doc_id
2089
                    && entity.PART_CONSOLIDATE == 1
2090
                    ).OrderByDescending(j => j.CREATE_TIME).ToList();
2091
                    foreach (var markupinfo in markupInfos)
2089 2092
                    {
2090
                        markupInfo.AVOID_CONSOLIDATE = 1;
2093
                        string markupdept = Entity.MEMBER.Where(m => m.ID == markupinfo.USER_ID).FirstOrDefault().DEPARTMENT;
2094
                        if (user_dept == markupdept)
2095
                        {
2096
                            markupinfo.AVOID_CONSOLIDATE = 1;
2097
                        }
2091 2098
                    }
2092 2099

  
2093 2100
                    foreach (MarkupInfoItem item in markupInfoItems)

내보내기 Unified diff

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