protected void InizializzaPagina() { WSConservazioneLocale.Contatori contatori = Utils.ConservazioneManager.GetContatori(this.infoUtente); //MEV CS 1.4 //contatori istanze di esibizione WSConservazioneLocale.ContatoriEsibizione contatoriEsibizione = Utils.ConservazioneManager.GetContatoriEsibizioneConservazione(this.infoUtente); this.lbl_daCertificare.Text = (contatoriEsibizione.InAttesaDiCertificazione + contatoriEsibizione.InAttesaDiCertificazione_Certificata).ToString(); this.lbl_nuove.Text = contatori.Inviate.ToString(); this.lbl_lavorazione.Text = contatori.InLavorazione.ToString(); this.lbl_firmate.Text = contatori.Firmate.ToString(); this.lbl_conservate.Text = contatori.Conservate.ToString(); this.lbl_chiuse.Text = contatori.Chiuse.ToString(); this.lbl_notifiche.Text = contatori.Notifiche.ToString(); this.lbl_amm.Text = this.amm.Codice + " - " + this.amm.Descrizione; }
/// <summary> /// Metodo che inizializza la tabella di riepilogo delle istanze di esibizione /// </summary> protected void InizializzaTableRiepilogoIstanze(DocsPaWR.Utente user) { // Per ogni roulo, gestisco la tabella for (int i = 0; i < user.ruoli.Length; i++) { // Chiamata al Be per il conteggio delle istanze di esibizione WSConservazioneLocale.ContatoriEsibizione contatori = Utils.ConservazioneManager.GetContatoriEsibizione(this.infoUtente, user.ruoli[i].idGruppo); // Variabili per il conteggio istanze di esibizione int totIstanzeRichiestaCertificazione = 0; int totIstanzeCertificate = 0; int totIstanzeNuove = 0; int totIstanzeChiuse = 0; int totIstanzeRifiutate = 0; // Calcolo conteggio istanze di esibizione totIstanzeRichiestaCertificazione = contatori.InAttesaDiCertificazione + contatori.InAttesaDiCertificazione_Certificata; //totIstanzeCertificate = contatori.Chiuse + contatori.Chiuse_Certificata; totIstanzeCertificate = contatori.Chiuse_Certificata; //calcolo numero istanze nuove //somma campi nuove e nuove_certificata (deve essere sempre 0) del contatore //dovrebbe essere o 0 o 1 totIstanzeNuove = contatori.Nuove + contatori.Nuove_Certificata; //calcolo numero istanze chiuse (senza certificazione) totIstanzeChiuse = contatori.Chiuse; //calcolo numero istanze rifiutate //somma campi rifiutate (deve essere sempre 0) e rifiutate_certificata del contatore totIstanzeRifiutate = contatori.Rifiutate + contatori.Rifiutate_Certificata; // Valori della tabella lbl_IstanzeRichiestaCertificazione.Text = totIstanzeRichiestaCertificazione.ToString(); lbl_IstanzeCertificate.Text = totIstanzeCertificate.ToString(); lbl_IstanzeNuove.Text = totIstanzeNuove.ToString(); lbl_IstanzeChiuse.Text = totIstanzeChiuse.ToString(); lbl_IstanzeRifiutate.Text = totIstanzeRifiutate.ToString(); // Intestazione: // Riga di intestazione TableRow tblRowRuolo = new TableRow(); // Cell Intestazione TableCell tblCellRuolo = new TableCell(); tblCellRuolo.CssClass = "tab_riepiologo_sx"; // Costruisco il corpo della Cell intestazione tblCellRuolo.Text = user.ruoli[i].descrizione; tblCellRuolo.Font.Bold = true; tblCellRuolo.ColumnSpan = 2; // Inserisco la cell nella row tblRowRuolo.Cells.Add(tblCellRuolo); // Aggiungo la riga Intestazione alla table this.table_riepilogo.Rows.Add(tblRowRuolo); #region NUOVE // Riga Istanze Nuove // Creo la riga Istanze Nuove TableRow tblRow0 = new TableRow(); tblRow0.CssClass = "RowOverFirstEsib"; //tblRow0.Attributes["onmouseover"] = "this.className='RowOverSelected';"; //tblRow0.Attributes["onmouseout"] = "this.className='RowOverFirst';"; // Creo le celle Istanze Nuove // Descrizione e Valore TableCell tableCellDescr0 = new TableCell(); tableCellDescr0.CssClass = "tab_riepiologo_sx"; TableCell tableCellValue0 = new TableCell(); tableCellValue0.CssClass = "tab_riepiologo_dx"; // Impostazione delle cell Descrizione e Valore tableCellDescr0.Text = "Nuove"; tableCellValue0.Text = lbl_IstanzeNuove.Text; // Aggiungo le celle alla riga tblRow0.Cells.Add(tableCellDescr0); tblRow0.Cells.Add(tableCellValue0); // Aggiungo la riga Istanze Nuove alla table this.table_riepilogo.Rows.Add(tblRow0); #endregion #region RICHIESTA CERTIFICAZIONE // Riga Istanze Richiesta di Certificazione // Creo la riga Istanze Richiesta di Certificazione TableRow tblRow = new TableRow(); tblRow.CssClass = "RowOverFirstEsib"; //tblRow.Attributes["onmouseover"] = "this.className='RowOverSelected';"; //tblRow.Attributes["onmouseout"] = "this.className='RowOverFirst';"; // Creo le celle Istanze richiesta certificazione: // Descrizione e Valore TableCell tableCellDescr = new TableCell(); tableCellDescr.CssClass = "tab_riepiologo_sx"; TableCell tableCellValue = new TableCell(); tableCellValue.CssClass = "tab_riepiologo_dx"; // Impostazione delle cell Descrizione e Valore tableCellDescr.Text = "Richiesta Certificazione"; tableCellValue.Text = lbl_IstanzeRichiestaCertificazione.Text; // Aggiungo le celle alla riga tblRow.Cells.Add(tableCellDescr); tblRow.Cells.Add(tableCellValue); // Aggiungo la riga Istanze Richiesta di Certificazione alla table this.table_riepilogo.Rows.Add(tblRow); #endregion #region CERTIFICATE // Riga Istanze Certificate // Creo la riga Istanze Certficate TableRow tblRow2 = new TableRow(); tblRow2.CssClass = "RowOverFirstEsib"; //tblRow2.Attributes["onmouseover"] = "this.className='RowOverSelected';"; //tblRow2.Attributes["onmouseout"] = "this.className='RowOverFirst';"; // Creo le celle Descrizione e valore per le Istanze Certificate TableCell tableCellDescr2 = new TableCell(); tableCellDescr2.CssClass = "tab_riepiologo_sx"; TableCell tableCellValue2 = new TableCell(); tableCellValue2.CssClass = "tab_riepiologo_dx"; // impostazione delle cell Descrizione e Valore tableCellDescr2.Text = "Certificate"; tableCellValue2.Text = lbl_IstanzeCertificate.Text; // Aggiungo le celle alla riga Istanze Cerificate tblRow2.Cells.Add(tableCellDescr2); tblRow2.Cells.Add(tableCellValue2); // Aggiungo la riga alla table this.table_riepilogo.Rows.Add(tblRow2); #endregion #region CHIUSE // Riga Istanze Chiuse // Creo la riga Istanze Chiuse TableRow tblRow3 = new TableRow(); tblRow3.CssClass = "RowOverFirstEsib"; //tblRow3.Attributes["onmouseover"] = "this.className='RowOverSelected';"; //tblRow3.Attributes["onmouseout"] = "this.className='RowOverFirst';"; // Creo le celle Descrizione e valore per le Istanze Chiuse TableCell tableCellDescr3 = new TableCell(); tableCellDescr3.CssClass = "tab_riepiologo_sx"; TableCell tableCellValue3 = new TableCell(); tableCellValue3.CssClass = "tab_riepiologo_dx"; // impostazione delle celle Descrizione e Valore tableCellDescr3.Text = "Chiuse"; tableCellValue3.Text = lbl_IstanzeChiuse.Text; // Aggiungo le celle alla riga Istanze Chiuse tblRow3.Cells.Add(tableCellDescr3); tblRow3.Cells.Add(tableCellValue3); // Aggiungo la riga alla table this.table_riepilogo.Rows.Add(tblRow3); #endregion #region RIFIUTATE // Riga Istanze Rifiutate // Creo la riga Istanze Rifiutate TableRow tblRow4 = new TableRow(); tblRow4.CssClass = "RowOverFirstEsib"; //tblRow4.Attributes["onmouseover"] = "this.className='RowOverSelected';"; //tblRow4.Attributes["onmouseout"] = "this.className='RowOverFirst';"; // Creo le celle Descrizione e valore per le Istanze Rifiutate TableCell tableCellDescr4 = new TableCell(); tableCellDescr4.CssClass = "tab_riepiologo_sx"; TableCell tableCellValue4 = new TableCell(); tableCellValue4.CssClass = "tab_riepiologo_dx"; // Impostazione delle celle Descrizione e Valore tableCellDescr4.Text = "Rifiutate"; tableCellValue4.Text = lbl_IstanzeRifiutate.Text; // Aggiungo le celle alla riga Istanze Rifiutate tblRow4.Cells.Add(tableCellDescr4); tblRow4.Cells.Add(tableCellValue4); // Aggiungo la riga alla table this.table_riepilogo.Rows.Add(tblRow4); #endregion } }