프로젝트

일반

사용자정보

개정판 41e26743

ID41e26743f0d1d2c8173da9607f26c85ef3fc35e7
상위 5c05308b
하위 7279182a

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #000 : fluid code의 fluid system 값 설정

Change-Id: If7119a15cc1822cecbf3d66dc70c57763a635d32

차이점 보기:

DTI_PID/SPPIDConverter/AutoModeling.cs
2336 2336
                        ReModelingLine(groupLine, _lMConnector, _LMSymbolStart, _LMSymbolEnd, bRemodelingStart, bRemodelingEnd);
2337 2337

  
2338 2338
                    FlowMarkModeling(groupLine);
2339
                    LineNumberModelingOnlyOne(groupLine);
2339
                    //LineNumberModelingOnlyOne(groupLine);
2340 2340

  
2341 2341
                    ReleaseCOMObjects(_lMConnector);
2342 2342

  
......
4487 4487
                                    if (mapping != null && !string.IsNullOrEmpty(attribute.VALUE) && attribute.VALUE != "None")
4488 4488
                                    {
4489 4489
                                        LMAAttribute _LMAAttribute = _LMModelItem.Attributes[mapping.SPPIDATTRIBUTENAME];
4490
                                        if (_LMAAttribute != null)
4490
                                        if (mapping.SPPIDATTRIBUTENAME == "OperFluidCode" && !string.IsNullOrEmpty(attribute.VALUE))
4491
                                        {
4492
                                            LMAAttribute _FluidSystemAttribute = _LMModelItem.Attributes["FluidSystem"];
4493
                                            if (_FluidSystemAttribute != null)
4494
                                            {
4495
                                                DataTable dt = SPPID_DB.GetFluidSystemInfo(attribute.VALUE);
4496
                                                if (dt.Rows.Count == 1)
4497
                                                {
4498
                                                    string fluidSystem = dt.Rows[0]["CODELIST_TEXT"].ToString();
4499
                                                    if (DBNull.Value.Equals(_FluidSystemAttribute.get_Value()))
4500
                                                        _FluidSystemAttribute.set_Value(fluidSystem);
4501
                                                    else if (_FluidSystemAttribute.get_Value() != fluidSystem)
4502
                                                        _FluidSystemAttribute.set_Value(fluidSystem);
4503

  
4504
                                                    if (_LMAAttribute != null)
4505
                                                    {
4506
                                                        if (DBNull.Value.Equals(_LMAAttribute.get_Value()))
4507
                                                            _LMAAttribute.set_Value(attribute.VALUE);
4508
                                                        else if (_LMAAttribute.get_Value() != attribute.VALUE)
4509
                                                            _LMAAttribute.set_Value(attribute.VALUE);
4510
                                                    }
4511
                                                }
4512
                                                if (dt != null)
4513
                                                    dt.Dispose();
4514
                                            }
4515
                                        }
4516
                                        else if (_LMAAttribute != null)
4491 4517
                                        {
4492 4518
                                            if (DBNull.Value.Equals(_LMAAttribute.get_Value()))
4493 4519
                                                _LMAAttribute.set_Value(attribute.VALUE);
4494 4520
                                            else if (_LMAAttribute.get_Value() != attribute.VALUE)
4495 4521
                                                _LMAAttribute.set_Value(attribute.VALUE);
4496

  
4497 4522
                                        }
4498 4523
                                    }
4499 4524
                                }

내보내기 Unified diff

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