Beispiel #1
0
 /// <summary>
 /// error() - SavedReport error handler method
 /// </summary>
 protected void error(bool errRep = false)
 {
     const string me = "SavedReport__error_";
     Log.set("SR.error()");
     log.Info("error() model.errRecover = " + model.errRecover.ToString());
     if (model.errRecover)
     {
         Msg.AskFOK(me + "Corrupted saved report TSmatchINFO");
         model.elements = Raw(model);
         dRep = Docs.getDoc(sRep);
         if (dRep == null || errRep) Msg.F(me + "recover impossible");
         GetSavedReport();
         Recover(sINFO, RecoverToDo.ResetRep);
         //21/7           Recover(mod, sRep,  RecoverToDo.ResetRep);
     }
     else model.isChanged = true;  // say, that TSmatchINFO.xlsx should be re-written
     Log.exit();
 }