프로젝트

일반

사용자정보

개정판 c247e6b4

IDc247e6b4f573b0b3618cc2dc8cc609a8e42dfda9
상위 5bffa106
하위 d2cd1e16

humkyung 이(가) 6년 이상 전에 추가함

Implementing issue #539: 사용자 사인으로 등록된 객체 생성시 오류

차이점 보기:

KCOMDataModel/Common/ConnectStringBuilder.cs
36 36
                    = new DataModel.KCOMEntities(EntityConnectionStringBuilder(bl, DeepViewMeta).ToString()))
37 37
                {
38 38
                    var _catalog = entity.PROPERTIES.Where(property => property.TYPE == InitialCatalogString
39
                                                                        && property.PROPERTY == ProjectNo);
39
                                                                        /*&& property.PROPERTY == ProjectNo*/);
40 40
                    EntityConnectionStringBuilder builder = null;
41 41
                    if (_catalog.Count() > 0)
42 42
                    {
MarkupToPDF/Common/GetUserSign.cs
10 10
{
11 11
    public class GetUserSign
12 12
    {
13
        /// <summary>
14
        /// get signature of given user of given project
15
        /// </summary>
16
        /// <param name="UserID"></param>
17
        /// <param name="ProjectNo"></param>
18
        /// <returns></returns>
13 19
        public string GetSign(string UserID, string ProjectNo)
14 20
        {
15 21
            var ModelWFConnectionString = ConnectStringBuilder.ProjectCIConnectString(ProjectNo).ToString();
16
            using (CIEntities entity = new CIEntities(ModelWFConnectionString))
22
            if (null != ModelWFConnectionString)
17 23
            {
18
                var _sign = entity.SIGN_INFO.Where(sin => sin.MEMBER_USER_ID == UserID);
19
                if (_sign.Count() > 0)
24
                using (CIEntities entity = new CIEntities(ModelWFConnectionString))
20 25
                {
21
                    return _sign.First().SIGN_STR;
22
                }
23
                else
24
                {
25
                    return null;
26
                    var _sign = entity.SIGN_INFO.Where(sin => sin.MEMBER_USER_ID == UserID);
27
                    if (_sign.Count() > 0)
28
                    {
29
                        return _sign.First().SIGN_STR;
30
                    }
31
                    else
32
                    {
33
                        return null;
34
                    }
26 35
                }
27 36
            }
37

  
38
            return null;
28 39
        }
29 40
    }
30 41
}

내보내기 Unified diff

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