Quintiq file version 2.0 #parent: List832 Response OnDoubleClick ( H_MaterialInfo selection ) id:Response_List832_OnDoubleClick { #keys: '[414724.0.160542461]' CanBindMultiple: false DefinitionID: 'Responsedef_WebList_OnDoubleClick' QuillAction { Body: [* if( not isnull( selection)) { if(selection.MaterialType()="半成品") { OrderCode:=""; if( txtSaveForecastData_FM.Text().Length()>0) { JForecast := JSON::Parse( txtSaveForecastData_FM.Text()); OrderCode := JForecast.Get( "OrderCode").GetString(); } jResult := H_FunctionClass::SM_GetMaterialData( MacroPlan,selection.SKU(),selection.NeedQty(), OrderCode,"-",selection.NeedDate()); if(jResult.Get( "Status").GetBoolean()) { de_dh_FM_ProductMP.FixedFilter( "object.ParentSKU() = " + selection.SKU().AsQUILL() + " and object.ForecastID() = " + OrderCode.AsQUILL() ); } else { WebMessageBox::Warning( jResult.Get( "Msg").GetString()); } } else { // 弹出物料反签授权 } } *] GroupServerCalls: false } }