Ignore:
Timestamp:
Mar 29, 2013, 6:19:53 PM (11 years ago)
Author:
garnier
Message:

Passage en blanc des elements ignorés dans la beamLine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_softwarePanel.cc

    r411 r412  
    271271      if ( current > dtmanage_->getBeamLineSize() )
    272272        {
    273           GWt_dialog warningDialog("PSPA :: verification des sections", " bad section definition 1 !", GWt_dialog::Error,true,true);
    274           warningDialog.exec();
    275           return false;
     273          sections_[a]->setErrors("This section element could not be after previous session last element");
     274          exec_go_->disable();
     275          return false;
    276276        }
    277277     
     
    283283      int numeroFin = dtmanage_->getNumeroFromElementLabel( finString);
    284284     
    285       if ( numeroFin < current || numeroFin > dtmanage_->getBeamLineSize())
    286         {
    287           GWt_dialog warningDialog("PSPA : Checking of sections", " bad section definition 2 !", GWt_dialog::Error, true,true);
    288           warningDialog.exec();
    289           return false;
    290         }
     285      if ( numeroFin < current)
     286      {
     287        sections_[a]->setErrors("Last section element should be after first section element");
     288        exec_go_->disable();
     289        return false;
     290      }
     291
     292      if (numeroFin > dtmanage_->getBeamLineSize())
     293      {
     294        sections_[a]->setErrors("Last section element number is greater than the beam line size");
     295        exec_go_->disable();
     296        return false;
     297      }
    291298     
    292299      // preparation de la ligne suivante
Note: See TracChangeset for help on using the changeset viewer.