Example #1
0
        /// <summary>
        /// Metodo per la chiusura di un fase di lavoro
        /// </summary>
        /// <param name="result">Risultato dell'azione precedente</param>
        /// <param name="details">Dettagli sul risultato precedente</param>
        private void CloseReportVoice(SaveChangesToRoleReportResult result, String details)
        {
            if (Report[Report.Count - 1].Result == SaveChangesToRoleReportResult.Waiting || Report[Report.Count - 1].Result != SaveChangesToRoleReportResult.KO)
            {
                Report[Report.Count - 1].Result = result;
            }
            Report[Report.Count - 1].Description += "<br />" + details;
            Report[Report.Count - 1].ImageUrl     = Report[Report.Count - 1].Result == SaveChangesToRoleReportResult.OK ? "Images/completed.jpg" : "Images/failed.jpg";

            // Se la fase è Finish o se il risultato dell'operazione è un errore, viene inizializzato il report
            if (SaveChangesRequest.Phase == SaveChangesToRolePhase.Finish || result == SaveChangesToRoleReportResult.KO)
            {
                ReportingUtils.PrintRequest = new PrintReportObjectTransformationRequest()
                {
                    DataObject  = Report.ToArray(),
                    ContextName = "ModificaRuolo",
                    ReportKey   = "ModificaRuolo"
                }
            }
            ;

            //ABBATANGELI-PANICI LIBRO FIRMA
            if (SaveChangesRequest.Phase == SaveChangesToRolePhase.Finish)
            {
                SaveChangesToRoleRequest saveChangesRequest = CallContextStack.CurrentContext.ContextState["SaveChangesRequest"] as SaveChangesToRoleRequest;
                string idRuoloOld         = saveChangesRequest.IdOldRole;
                bool   interrompiProcessi = GetSessionInterrompiProcessi();
                bool   storicizzaProcessi = GetSessionStoricizzaProcessi();
                if (interrompiProcessi)
                {
                    AsyncCallback callback = new AsyncCallback(CallBack);
                    invalidaPassiCorrelati = new InvalidaPassiCorrelatiDelegate(InvalidaPassiCorrelati);
                    DocsPAWA.AdminTool.Manager.SessionManager sessionManager = new DocsPAWA.AdminTool.Manager.SessionManager();
                    invalidaPassiCorrelati.BeginInvoke("R", idRuoloOld, string.Empty, sessionManager.getUserAmmSession(), callback, null);
                }
                else if (storicizzaProcessi)
                {
                    string        idRuoloNew = SaveChangesRequest.ModifiedRole.IDGruppo;
                    AsyncCallback callback   = new AsyncCallback(CallBackStoricizza);
                    storicizzaPassiCorrelati = new StoricizzaPassiCorrelatiDelegate(StoricizzaPassiCorrelati);
                    storicizzaPassiCorrelati.BeginInvoke(idRuoloOld, idRuoloNew, callback, null);
                }
            }
            //FINE
        }
Example #2
0
 public SaveChangesToRoleResponse SaveChangesToRole(SaveChangesToRoleRequest request)
 {
     AmmUtils.WebServiceLink ws = new AmmUtils.WebServiceLink();
     return(ws.SaveChangesToRole(request));
 }
Example #3
0
        // private void AmmSpostaRuolo(NttDataWA.DocsPaWR.OrgRuolo ruolo)
        // {
        //     this._esitoOperazione = docsPaWS.AmmSpostaRuolo(ruolo);
        // }

        // private void AmmSpostaUO(NttDataWA.DocsPaWR.OrgUO uoDaSpostare, NttDataWA.DocsPaWR.OrgUO uoPadre)
        // {
        //     this._esitoOperazione = ws.AmmSpostaUO(uoDaSpostare,uoPadre);
        //     ws = null;
        // }

        // private void AmmStampaOrganigramma(XmlDocument xmlDoc)
        // {
        //     UIManager.WebServiceLink ws = new UIManager.WebServiceLink();
        //     this._filePDF = ws.AmmStampaOrganigramma(xmlDoc);
        //     ws = null;
        // }

        // public void GetListaRuoliAOO(string idRegistro)
        // {
        //     this.AmmGetListaRuoliAOO(idRegistro);
        // }

        ///// <summary>
        // /// Ritorna tutti i ruoli associati ad una determinata AOO (Registro o RF)
        ///// </summary>
        ///// <param name="idRegistro"></param>
        // private void AmmGetListaRuoliAOO(string idRegistro)
        // {
        //     UIManager.WebServiceLink ws = new UIManager.WebServiceLink();

        //     ArrayList lista = ws.AmmGetListaRuoliAOO(idRegistro);

        //     if (lista.Count > 0)
        //         this._listaRuoliAOO = new ArrayList(lista);

        //     lista = null;

        //     ws = null;
        // }

        // private void AmmPerformUpDown(string idCorrGlobDaSpostare, string idPesoDaSpostare, string idCorrGlobSubisce, string idPesoSubisce)
        // {
        //     UIManager.WebServiceLink ws = new UIManager.WebServiceLink();
        //     this._esitoOperazione = ws.AmmOrdinamento(idCorrGlobDaSpostare, idPesoDaSpostare, idCorrGlobSubisce, idPesoSubisce);
        //     ws = null;
        // }

        #endregion

        public SaveChangesToRoleResponse SaveChangesToRole(SaveChangesToRoleRequest request)
        {
            return(docsPaWS.SaveChangesToRole(request));
        }