| Quintiq file version 2.0 | 
| #parent: #root | 
| Method SetAttributeAfterApplyData () id:Method_DialogCreateEditStockingPoint_SetAttributeAfterApplyData | 
| { | 
|   #keys: '[135040.0.232650761]' | 
|   Body: | 
|   [* | 
|     // Set attributes before commiting the data | 
|     //..following TC style | 
|     data := DataHolderDialogData.Data(); | 
|      | 
|     unitid := ''; | 
|     parentUnit := selParentUnit.Data(); | 
|     if( not isnull(  parentUnit ) ) | 
|     { | 
|       unitid := parentUnit.ID(); | 
|     }             | 
|     data.UnitID( unitid ); | 
|      | 
|     //handle validity start/end | 
|     start := Date::MinDate(); | 
|     end := Date::MaxDate(); | 
|     if( CheckboxHasStart.Checked() ) | 
|     { | 
|       start := dsStart.Date(); | 
|     } | 
|     if( CheckboxHasEnd.Checked() ) | 
|     { | 
|       end := dsEnd.Date(); | 
|     } | 
|      | 
|     data.Start( start ); | 
|     data.End( end ); | 
|   *] | 
| } |