Beispiel #1
0
        protected string GetImmaginePercentuale(DocsPaWR.ReportPregressi item)
        {
            string result      = "../../images/progressBar/00_perc.jpg";
            int    numDoc      = Int32.Parse(item.numDoc);
            int    elaborati   = 0;
            double percentuale = 0;

            if (item.itemPregressi != null && item.itemPregressi.Length > 0)
            {
                elaborati   = item.itemPregressi.Length;
                percentuale = (100 * elaborati) / numDoc;
                result      = percentuale.ToString();
            }
            if (percentuale >= 0 && percentuale < 10)
            {
                result = "../../images/progressBar/00_perc.jpg";
            }
            if (percentuale >= 10 && percentuale < 20)
            {
                result = "../../images/progressBar/10_perc.jpg";
            }
            if (percentuale >= 20 && percentuale < 30)
            {
                result = "../../images/progressBar/20_perc.jpg";
            }
            if (percentuale >= 30 && percentuale < 40)
            {
                result = "../../images/progressBar/30_perc.jpg";
            }
            if (percentuale >= 40 && percentuale < 50)
            {
                result = "../../images/progressBar/40_perc.jpg";
            }
            if (percentuale >= 50 && percentuale < 60)
            {
                result = "../../images/progressBar/50_perc.jpg";
            }
            if (percentuale >= 60 && percentuale < 70)
            {
                result = "../../images/progressBar/60_perc.jpg";
            }
            if (percentuale >= 70 && percentuale < 80)
            {
                result = "../../images/progressBar/70_perc.jpg";
            }
            if (percentuale >= 80 && percentuale < 90)
            {
                result = "../../images/progressBar/80_perc.jpg";
            }
            if (percentuale >= 90 && percentuale < 100)
            {
                result = "../../images/progressBar/90_perc.jpg";
            }
            if (percentuale == 100)
            {
                result = "../../images/progressBar/100_perc.jpg";
            }

            return(result);
        }
Beispiel #2
0
        protected string GetNumeroDocumenti(DocsPaWR.ReportPregressi item)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(item.numDoc))
            {
                result = item.numDoc;
            }
            return(result);
        }
Beispiel #3
0
        protected string GetDataFine(DocsPaWR.ReportPregressi item)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(item.dataFine))
            {
                result = item.dataFine;
            }
            return(result);
        }
Beispiel #4
0
        protected string NumPercentuale(DocsPaWR.ReportPregressi item)
        {
            string result      = "0";
            int    numDoc      = Int32.Parse(item.numDoc);
            int    elaborati   = 0;
            double percentuale = 0;

            if (item.itemPregressi != null && item.itemPregressi.Length > 0)
            {
                elaborati   = item.itemPregressi.Length;
                percentuale = (100 * elaborati) / numDoc;
                result      = percentuale.ToString();
            }
            return(result);
        }
Beispiel #5
0
        //Andrea
        protected String GetImageErrore(DocsPaWR.ReportPregressi item)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(item.inError))
            {
                if (!item.inError.Equals("0"))
                {
                    result = "../../images/ico_warning.png";
                }
                else
                {
                    result = "../../images/check_policy.gif";
                }
            }
            return(result);
        }
Beispiel #6
0
        //Andrea
        protected string GetNumeroDiErrori(DocsPaWR.ReportPregressi item)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(item.inError))
            {
                if (item.inError.Equals("0"))
                {
                    result = "Nessun errore presente";
                }
                else
                {
                    if (item.inError.Equals("1"))
                    {
                        result = "Presente 1 errore";
                    }
                    else
                    {
                        result = "Sono presenti " + item.inError + " errori";
                    }
                }
            }
            return(result);
        }
Beispiel #7
0
        protected string GetNumeroDiErrori(DocsPaWR.ReportPregressi item)
        {
            string result = string.Empty;

            if (!string.IsNullOrEmpty(item.inError))
            {
                if (item.inError.Equals("0"))
                {
                    result = this.GetLabel("ImportPreviousNoError");
                }
                else
                {
                    if (item.inError.Equals("1"))
                    {
                        result = this.GetLabel("ImportPreviousOneError");
                    }
                    else
                    {
                        result = this.GetLabel("ImportPreviousMoreErrors").Replace("@@", item.inError);
                    }
                }
            }
            return(result);
        }
Beispiel #8
0
        protected string GetReportID(DocsPaWR.ReportPregressi item)
        {
            string result = item.systemId;

            return(result);
        }