コード例 #1
0
        protected string GetLineaExcel(DocsPaWR.ItemReportPregressi item)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(item.ordinale))
            {
                result = item.ordinale;
            }
            return(result);
        }
コード例 #2
0
        protected string GetNumeroAllegati(DocsPaWR.ItemReportPregressi report)
        {
            string result = "0";

            if (report.Allegati != null)
            {
                result = report.Allegati.Length.ToString();
            }
            return(result);
        }
コード例 #3
0
        protected string GetUtenteRuolo(DocsPaWR.ItemReportPregressi report)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(report.idUtente))
            {
                DocsPaWR.Utente utente = null;
                if (this.Utenti == null)
                {
                    this.Utenti = new Dictionary <string, DocsPaWR.Utente>();
                }

                if (Utenti.ContainsKey(report.idUtente))
                {
                    utente = Utenti[report.idUtente];
                }
                else
                {
                    utente = UserManager.GetUtenteByIdPeople(report.idUtente);
                    Utenti.Add(report.idUtente, utente);
                }

                if (utente != null)
                {
                    result = utente.nome + " " + utente.cognome;
                }
            }

            if (!string.IsNullOrEmpty(report.idRuolo))
            {
                if (this.Ruoli == null)
                {
                    this.Ruoli = new Dictionary <string, DocsPaWR.Ruolo>();
                }
                DocsPaWR.Ruolo ruolo = null;

                if (Ruoli.ContainsKey(report.idRuolo))
                {
                    ruolo = Ruoli[report.idRuolo];
                }
                else
                {
                    ruolo = UserManager.getRuoloByIdGruppo(report.idRuolo, this.Page);
                    Ruoli.Add(report.idRuolo, ruolo);
                }

                if (ruolo != null)
                {
                    result = result + " (" + ruolo.descrizione + ")";
                }
            }

            return(result);
        }
コード例 #4
0
        protected string GetErrore(DocsPaWR.ItemReportPregressi report)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(report.errore))
            {
                string[] errori = report.errore.Split('|');
                result = "<ul>";
                foreach (string err in errori)
                {
                    result += "<li>" + err + "</li>";
                }
                result += "</ul>";
            }
            return(result);
        }
コード例 #5
0
        protected String GetImageAvviso(DocsPaWR.ItemReportPregressi item)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(item.esito))
            {
                if (item.esito.Equals("W"))
                {
                    result = "../../images/ico_warning.png";
                }
                else
                {
                    if (item.esito.Equals("E"))
                    {
                        result = "../../images/ico_error.png";
                    }
                }
            }
            return(result);
        }
コード例 #6
0
        /*
         * private void asyncImport(IAsyncResult ar)
         * {
         *  bool bResult = mDelegate.EndInvoke(ar);
         *
         *  string mess = string.Empty;
         *
         *  if(ar.IsCompleted)
         *      mess = "Importazione eseguita correttamente.";
         *  else
         *      mess = "Errori nell'importazione.";
         *
         *  lbl_alert.Text = mess;
         * }
         */

        protected string GetTipoAvviso(DocsPaWR.ItemReportPregressi item)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(item.esito))
            {
                if (item.esito.Equals("W"))
                {
                    result = "Attenzione";
                }
                else
                {
                    if (item.esito.Equals("E"))
                    {
                        result = "Errore";
                    }
                }
            }
            return(result);
        }
コード例 #7
0
        protected string GetRegistro(DocsPaWR.ItemReportPregressi report)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(report.idRegistro))
            {
                if (this.Registri == null)
                {
                    this.Registri = new Dictionary <string, DocsPaWR.Registro>();
                }
                if (this.Registri.ContainsKey(report.idRegistro))
                {
                    result = this.Registri[report.idRegistro].codRegistro;
                }
                else
                {
                    DocsPaWR.Registro reg = WsInstance.GetRegistroBySistemId(report.idRegistro);
                    this.Registri.Add(report.idRegistro, reg);
                    result = reg.codRegistro;
                }
            }
            return(result);
        }
コード例 #8
0
 protected string GetEsito(DocsPaWR.ItemReportPregressi report)
 {
     return(report.esito);
 }
コード例 #9
0
 protected string GetData(DocsPaWR.ItemReportPregressi report)
 {
     return(report.data);
 }
コード例 #10
0
 protected string GetItemID(DocsPaWR.ItemReportPregressi report)
 {
     return(report.systemId);
 }
コード例 #11
0
 protected string GetTipoOperazione(DocsPaWR.ItemReportPregressi report)
 {
     return(report.tipoOperazione);
 }
コード例 #12
0
 protected string GetNumProtoExcel(DocsPaWR.ItemReportPregressi report)
 {
     return(report.idNumProtocolloExcel);
 }
コード例 #13
0
 protected string GetDocumento(DocsPaWR.ItemReportPregressi report)
 {
     return(report.idDocumento);
 }