Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method ReceivingPanelMaterials ( 
 | 
  NamedValueTree requestnvt 
 | 
) as stream[NamedValueTree] 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    logfile( "--------------------------------------1,进来了------------------------------------------------" ); 
 | 
    nameValue := requestnvt.Root(); 
 | 
     
 | 
    bodyHandle := requestnvt.GetHandle( "Body" ); 
 | 
    restHandle := requestnvt.GetHandle( "Rest" ); 
 | 
    restPayloadHandle := requestnvt.GetHandle( "RestPayload" ); 
 | 
     
 | 
    bodyNameValue := nameValue.Child( bodyHandle ); 
 | 
    restNameValue := bodyNameValue.Child( restHandle ); 
 | 
    restPayloadNameValue := restNameValue.Child( restPayloadHandle ); 
 | 
     
 | 
    businessTypeHandle := requestnvt.GetHandle( "businessType" ); 
 | 
    businessTypeNameValue := restPayloadNameValue.Child( businessTypeHandle ); 
 | 
     
 | 
    businessType := businessTypeNameValue.GetValueAsString(); 
 | 
     
 | 
    if ( businessType = "车载" ) { 
 | 
      PanelMaterialVehicle::ReceiveDataGeneration( this, requestnvt ); 
 | 
    } else if ( businessType = "汽车电子" ) { 
 | 
      PanelMaterialAutomotiveElectronics::ReceiveDataGeneration( this, requestnvt ); 
 | 
    } else if ( businessType = "天华" ) { 
 | 
      PanelMaterialTianHua::ReceiveDataGeneration( this, requestnvt ); 
 | 
    } else if ( businessType = "运动健康" ) { 
 | 
      PanelMaterialSportsHealth::ReceiveDataGeneration( this, requestnvt ); 
 | 
    } else if ( businessType = "专显" ) { 
 | 
      PanelMaterialSpecializedDisplay::ReceiveDataGeneration( this, requestnvt ); 
 | 
    } else if ( businessType = "IT" ) { 
 | 
      PanelMaterialIT::ReceiveDataGeneration( this, requestnvt ); 
 | 
    } else if ( businessType = "TM17" ) { 
 | 
      PanelMaterialTM17::ReceiveDataGeneration( this, requestnvt ); 
 | 
    } else if ( businessType = "TM18" ) { 
 | 
      PanelMaterialTM18::ReceiveDataGeneration( this, requestnvt ); 
 | 
    } 
 | 
     
 | 
    info( "---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" ); 
 | 
     
 | 
    replynvt := LibInt_MessageAccessor::CreateEmptyMessage(); 
 | 
    LibInt_MessageAccessor::SetHeaderProperty( replynvt, "Content-Type", "application/json" ); 
 | 
    LibInt_MessageAccessor::SetHeaderProperty( replynvt, "path", "/panelMaterial/send" ); 
 | 
     
 | 
    rootNamedValue := replynvt.Root(); 
 | 
    bodyHandle := replynvt.GetHandle( "Body" ); 
 | 
     
 | 
    //petHandle := replynvt.GetHandle( "Pet" ); 
 | 
    bodyNamedValue := rootNamedValue.Child( bodyHandle ); 
 | 
    codeHandler := replynvt.GetHandle( "code" ); 
 | 
    codeNamedValue := bodyNamedValue.AddChild( codeHandler ); 
 | 
    codeNamedValue.SetValue( 200 ); 
 | 
     
 | 
    info( "响应------------------------------------------------------------" ); 
 | 
    info( replynvt.ToString() ); 
 | 
     
 | 
     
 | 
    return emit( replynvt ); 
 | 
  *] 
 | 
} 
 |