프로젝트

일반

사용자정보

개정판 a3390f45

IDa3390f45e4379e3847b2ffd0c986d1e747b0e863
상위 a9f6ef3c
하위 02ca11ff

조봉훈이(가) 일년 이상 전에 추가함

Excluding validation when connecting equipment without nozzle

Change-Id: Ib580820327e6de4b1d51fd630b04508212d41269

차이점 보기:

DTI_PID/SPPIDConverter/BaseModel/Document.cs
972 972
                        Line connLine = connector.ConnectedObject as Line;
973 973
                        string connUID = string.Empty;
974 974
                        bool result = false;
975
                        if (connSymbol != null && connSymbol.CONNECTORS.Find(x => x.ConnectedObject == item) == null)
975
                        if (connSymbol != null && connSymbol.GetType() != typeof(Equipment) && connSymbol.CONNECTORS.Find(x => x.ConnectedObject == item) == null)
976 976
                        {
977 977
                            result = true;
978 978
                            connUID = connSymbol.UID;
......
995 995

  
996 996
                        if (!connectedItem.Contains(connector.CONNECTEDITEM))
997 997
                            connectedItem.Add(connector.CONNECTEDITEM);
998
                        else
998
                        else if (connSymbol == null || (connSymbol != null && connSymbol.GetType() != typeof(Equipment)))
999 999
                        {
1000 1000
                            validationStringBuilder.AppendLine("Check connection!");
1001 1001
                            validationStringBuilder.AppendLine("UID : " + item.UID);
......
1004 1004
                    }
1005 1005
                }
1006 1006

  
1007
                if (item.CONNECTORS.Find(x => x.CONNECTEDITEM == item.UID) != null)
1007
                if (item.CONNECTORS.Find(x => !(x.ConnectedObject != null && x.ConnectedObject.GetType() == typeof(Equipment)) && x.CONNECTEDITEM == item.UID) != null)
1008 1008
                {
1009 1009
                    validationStringBuilder.AppendLine("Check connection!");
1010 1010
                    validationStringBuilder.AppendLine("UID : " + item.UID);

내보내기 Unified diff

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