Quintiq file version 2.0 #parent: #root Method OnOK () id:Method_DialogPublishPlan_OnOK { #keys: '[415136.0.1255982634]' Body: [* this.ApplyChanges(); showlabel := '是否发送'; plannames := construct( Strings ); if( cbCustomDemand.Checked() ){ plannames.Add( lblCustomDemand.Label() ); } if( cbOfflinePlan.Checked() ){ plannames.Add( lblOfflinePlan.Label() ); } if( cbShiftPlan.Checked() ){ plannames.Add( lblShiftPlan.Label() ); } if( cbAssembleOnlinePlan.Checked() ){ plannames.Add( lblAssembleOnlinePlan.Label() ); } if( cbInventoryPlan.Checked() ){ plannames.Add( lblInventoryPlan.Label() ); } showlabel := showlabel.Concat( plannames.Concatenate( "、" ) ).Concat( '?' ); currentuser := QuintiqUser::CurrentUser().DisplayName(); if( WebMessageBox::Question( this, showlabel, 'OK|Cancel' ) = 0 ){ InterfaceDataset.PublishPlanReportData( MacroPlan, cbCustomDemand.Checked() , cbOfflinePlan.Checked() , cbShiftPlan.Checked() , cbAssembleOnlinePlan.Checked() , cbInventoryPlan.Checked() , currentuser ); } this.Close(); *] }