개정판 41e26743
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