| | |
| | | ProductLevel_MP::Create( "2", isproductcatagory, this, isfromdb ); |
| | | ProductLevel_MP::Create( "3", isproductcatagory, this, isfromdb ); |
| | | } |
| | | |
| | | existsalestlevel := SalesLevel_MP::FindSalesLevelTypeIndex( "2") |
| | | if( isnull( existsalestlevel ) ){ |
| | | SalesLevel_MP::Create( "1",this,isfromdb); |
| | | SalesLevel_MP::Create( "2",this,isfromdb); |
| | | } |
| | | *] |
| | | } |
| | |
| | | |
| | | } |
| | | |
| | | }else{ |
| | | info( "Invaild product" ); |
| | | } |
| | | } |
| | | *] |
| | |
| | | [* |
| | | // Administrator Aug-16-2023 (created) |
| | | // list to deal |
| | | //info( "Get list to deal of product" ); |
| | | info( "Get list to deal of product" ); |
| | | listToDeal := construct( structured[MappingProduct] ); |
| | | |
| | | if( isnull( businesstypes ) or businesstypes.Size() = 0 ) { |
| | |
| | | } |
| | | } else { |
| | | if( iskeyproduct = true ){ |
| | | listToDeal := selectset( this, MappingProduct, item, item.KeyProduct() = true, businesstypes.Find( item.BusinessType()) > 0 ); |
| | | listToDeal := selectset( this, MappingProduct, item, item.KeyProduct() = true and businesstypes.Find( item.BusinessType()) >= 0 ); |
| | | } |
| | | else{ |
| | | listToDeal := selectset( this, MappingProduct, item, businesstypes.Find( item.BusinessType()) > 0 ); |
| | | listToDeal := selectset( this, MappingProduct, item, businesstypes.Find( item.BusinessType()) >= 0 ); |
| | | } |
| | | } |
| | | totalcount := listToDeal.Size(); |