lazhen
2024-10-29 4419b51e5cfed824ca592ae5cba7654994ee005d
_Main/UI/MacroPlannerWebApp/Component_DialogReportArchiveConfirm/Method_OnOK.def
@@ -6,23 +6,16 @@
  Body:
  [*
    this.ApplyChanges();
    info( '------------------',cbCustomDemand.Checked()
        ,cbOfflinePlan.Checked()
        ,cbShiftPlan.Checked()
        ,cbAssembleOnlinePlan.Checked()
        ,cbInventoryPlan.Checked()
        ,cbTRCDemand.Checked()
        ,cbTransferPlan.Checked()
        ,cbPackagePlan.Checked() );
      showlabel := '是否存档';
    if( cbCustomDemand.Checked()
        or cbOfflinePlan.Checked()
        or cbShiftPlan.Checked()
        or cbAssembleOnlinePlan.Checked()
        or cbInventoryPlan.Checked()
        or cbTRCDemand.Checked()
        or cbTransferPlan.Checked()
        or cbPackagePlan.Checked() ){
    //showlabel := '是否存档';
    //if( cbCustomDemand.Checked()
    //    or cbOfflinePlan.Checked()
    //    or cbShiftPlan.Checked()
    //    or cbAssembleOnlinePlan.Checked()
    //    or cbInventoryPlan.Checked()
    //    or cbTRCDemand.Checked()
    //    or cbTransferPlan.Checked()
    //    or cbPackagePlan.Checked() ){
      showlabel := '是否存档';
      plannames := construct( Strings );
      if( cbCustomDemand.Checked() ){
@@ -50,14 +43,13 @@
        plannames.Add( lblPackagePlan.Label() );
      }
      showlabel := showlabel.Concat( plannames.Concatenate( "、" ) ).Concat( '?' );
      info( '*****************************' );
    //  info( '*****************************' );
      if( WebMessageBox::Question( this, showlabel, 'OK|Cancel' ) = 0 ){
      }
    }else{
      info( '************###########*****************' );
      WebMessageBox::Information( this, '未选择任何计划进行存档' )
    }
    //}else{
    //  info( '************###########*****************' );
    //  WebMessageBox::Information( this, '未选择任何计划进行存档' )
    //}
    this.Close();
  *]
}