public override OperationResponse Execute() { logger.Info("begin"); OperationResponse res = new OperationResponse(); try { LibroFirmaCambiaStatoRequest request = new LibroFirmaCambiaStatoRequest(); request.elemento = _element; request.UserInfo = NavigationHandler.CurrentUser; request.IdorrGlobaliRuolo = NavigationHandler.RuoloInfo.Id; request.NuovoStato = _nuovoStato; logger.Debug("chiamata ws..."); LibroFirmaResponse response = WSStub.CambiaStatoElementoLibroFirma(request); if (response.Code == LibroFirmaResponseCode.OK) { res.Success = true; } else { res.Success = false; res.Error = Resources.Errors.Common_SystemError; } logger.Debug("chiamata eseguita"); } catch (Exception e) { res.Success = false; res.Error = Resources.Errors.Common_SystemError; return(res); } return(res); }
public LibroFirmaResponse CambiaStatoElementoLibroFirma(LibroFirmaCambiaStatoRequest request) { SetUserId(request.UserInfo); return(MobileManager.CambiaStatoElementoLibroFirma(request)); }