| | |
| | | restNameValue := bodyNameValue.Child( restHandle ); |
| | | restPayloadNameValue := restNameValue.Child( restPayloadHandle ); |
| | | |
| | | releaseDateHandle := requestnvt.GetHandle( "releaseDate" ); |
| | | businessTypeHandle := requestnvt.GetHandle( "businessType" ); |
| | | scenarioNameHandle := requestnvt.GetHandle( "scenarioName" ); |
| | | |
| | | releaseDateNameValue := restPayloadNameValue.Child( releaseDateHandle ); |
| | | businessTypeNameValue := restPayloadNameValue.Child( businessTypeHandle ); |
| | | scenarioNameNameValue := restPayloadNameValue.Child( scenarioNameHandle ); |
| | | |
| | | info( "发布时间:", releaseDateNameValue.GetValueAsString(), " 事业部:", businessTypeNameValue.GetValueAsString(), " 版本号:", scenarioNameNameValue.GetValueAsString() ); |
| | | |
| | | panelMaterialsHandle := requestnvt.GetHandle( "panelMaterials" ); |
| | | panelMaterialsNameValue := restPayloadNameValue.Child( panelMaterialsHandle ); |
| | | childPanelMaterialsNameValue := panelMaterialsNameValue.Children(); |
| | | productIDHandle := requestnvt.GetHandle( "productID" ); |
| | | productDescriptionHandle := requestnvt.GetHandle( "productDescription" ); |
| | | startDateHandle := requestnvt.GetHandle( "startDate" ); |
| | | quantityHandle := requestnvt.GetHandle( "quantity" ); |
| | | traverse ( childPanelMaterialsNameValue, Elements, cpmnv ) { |
| | | info( "产品:", cpmnv.Child( productIDHandle ).GetValueAsString() ); |
| | | info( "产品描述:", cpmnv.Child( productDescriptionHandle ).GetValueAsString() ); |
| | | info( "开始时间:", cpmnv.Child( startDateHandle ).GetValueAsString() ); |
| | | info( "数量:", cpmnv.Child( quantityHandle ).GetValueAsString() ); |
| | | if ( businessTypeNameValue.GetValueAsString() = "车载" ) { |
| | | PanelMaterialVehicle::ReceiveDataGeneration( this, requestnvt ); |
| | | } |
| | | |
| | | |
| | | info( "---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" ); |
| | | |
| | |
| | | categoryNamedValue := petNamedValue.AddChild( categoryHandle ); |
| | | categoryIDHandle := replynvt.GetHandle( "Id" ); |
| | | categoryIDNamedValue := categoryNamedValue.AddChild( categoryIDHandle ); |
| | | categoryIDNamedValue.SetValue( "TestID" ); |
| | | categoryIDNamedValue.SetValue( 3 ); |
| | | categoryNameHandle := replynvt.GetHandle( "Name" ); |
| | | categoryNameNamedValue := categoryNamedValue.AddChild( categoryNameHandle ); |
| | | categoryNameNamedValue.SetValue( "TestName" ); |
| | | categoryNameNamedValue.SetValue( "Cat" ); |
| | | petNameHandle := replynvt.GetHandle( "Name" ); |
| | | petNameValue := petNamedValue.AddChild( petNameHandle ); |
| | | petNameValue.SetValue( "Pet1" ); |
| | | petIdHandle := replynvt.GetHandle( "PetId" ); |
| | | petIdNameValue := petNamedValue.AddChild( petIdHandle ); |
| | | petIdNameValue.SetValue( "Pet1" ); |
| | | petIdNameValue.SetValue( 1 ); |
| | | |
| | | photoUrlHandle := replynvt.GetHandle( "PhotoUrl" ); |
| | | photoUrlNameValue := petNamedValue.AddChild( photoUrlHandle ); |
| | | urlHandle := replynvt.GetHandle( "Url" ); |
| | | photoUrlNameValue.AddChild( urlHandle, "地址1" ); |
| | | photoUrlNameValue.AddChild( urlHandle, "url1" ); |
| | | |
| | | statusHandle := replynvt.GetHandle( "Status" ); |
| | | statusNameValue := petNamedValue.AddChild( statusHandle ); |
| | | statusNameValue.SetValue( "可用" ); |
| | | statusNameValue.SetValue( "available" ); |
| | | |
| | | tagHandle := replynvt.GetHandle( "Tag" ); |
| | | tagNameValue := petNamedValue.AddChild( tagHandle ); |
| | | tagIdHandle := replynvt.GetHandle( "Id" ); |
| | | tagNameValue.AddChild( tagIdHandle, "aaa" ); |
| | | tagNameValue.AddChild( tagIdHandle, 123 ); |
| | | tagNameHandle := replynvt.GetHandle( "Name" ); |
| | | tagNameValue.AddChild( tagNameHandle, "vvvvvv" ); |
| | | tagNameValue.AddChild( tagNameHandle, "tag1" ); |
| | | |
| | | |
| | | info( rootNamedValue.ToString() ); |
| | | info( replynvt.ToString() ); |
| | | |
| | | |
| | | return emit( replynvt ); |