| | |
| | | String parentunitid, |
| | | String capacitytype, |
| | | String unitofmeasurename |
| | | ) |
| | | ) as Unit |
| | | { |
| | | TextBody: |
| | | [* |
| | |
| | | unit := Unit::FindById( owner, id ); |
| | | |
| | | if( id="天马集团" and isnull( unit ) ){ |
| | | owner.Unit( relnew, |
| | | unit := owner.Unit( relnew, |
| | | ID := id, |
| | | Name := name, |
| | | UnitOfMeasureName := unitofmeasurename, |
| | |
| | | CapacityType := capacitytype ); |
| | | }else{ |
| | | if( isnull( unit ) ){ |
| | | owner.Unit( relnew, ID := id, |
| | | unit := owner.Unit( relnew, ID := id, |
| | | Name := name, |
| | | ParentUnitID := parentunitid, |
| | | CapacityType := capacitytype, |
| | |
| | | unit.UnitOfMeasureName( unitofmeasurename ); |
| | | } |
| | | } |
| | | |
| | | return unit; |
| | | *] |
| | | } |