| Quintiq file version 2.0 | 
| #parent: #root | 
| Method UISetLabelLotSize ( | 
|   Boolean isInit, | 
|   UnitOfMeasure_MP uomScrValue | 
| ) id:Method_DialogCreateEditPISPSpecification_UISetLabelLotSize | 
| { | 
|   #keys: '[135040.0.226033806]' | 
|   Body: | 
|   [* | 
|     // Set labels lot size for different uom selection. | 
|     // ***uomScreenValue has to be an argument because getting it inside this method directly causing error (via DropDownListUOM.Data()) | 
|     /* | 
|     //todo!! set UOM warning image | 
|     //few limitation faced now, hence, skip this features: | 
|     //1. No 'image' component available to be used (Quintiq NB171804 ) | 
|     // | 
|     */ | 
|      | 
|     pisp     := DataHolderDialogData.Data().WrappedInstance(); | 
|     pispspec := guard( pisp.PISPSpecification(), null( PISPSpecification ) ); | 
|      | 
|     hasuom := guard( pispspec.HasUnitOfMeasure(), false ); | 
|     uom    := ifexpr( hasuom,  | 
|                       pisp.UnitOfMeasure_MP(),  | 
|                       pisp.Product_MP().UnitOfMeasure_MP() ); | 
|      | 
|     uomDataValue   := guard( uom.Name(), "" ); | 
|     uomScreenValue := guard( uomScrValue.Name(), "" ); | 
|     uomValue := ifexpr( isInit, | 
|                         uomDataValue, | 
|                         uomScreenValue ); | 
|     EditFieldInputLotSizeUOM.Label( Translations::MP_Designer_DialogCreateEditPISPSpecificationWeb_SetLabelInputLotSize( uomValue ) ); | 
|   *] | 
| } |