文件名从 _Main/BL/Type_MatAttrSettingAndPlanningStrategy/StaticMethod_deleteIfExistByMatCode#136.qbl 修改 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod deleteIfExistByMatCode ( |
| | | StaticMethod DeleteIfExistByMatCode ( |
| | | GlobalOTDTable parent, |
| | | Strings matCodes |
| | | Strings matCode |
| | | ) |
| | | { |
| | | TextBody: |
| | | [* |
| | | // yypsybs Jul-2-2023 (created) |
| | | toDels := selectset( parent, MatAttrSettingAndPlanStrategy, item, true, matCodes.Find( item.MatCode() ) <> -1 ); |
| | | toDels := selectset( parent, MatAttrSettingAndPlanStrategy, item, true, matCode.Find( item.MatCode() ) >= 0 ); |
| | | if( toDels.Size() > 0 ) { |
| | | traverse( toDels, Elements, toDel ) { |
| | | toDel.Delete(); |