/// <summary> /// verifica se la trasmissione è stata effettuata /// dall'utente correntemente connesso /// </summary> /// <returns></returns> private bool CheckTrasmEffettuataDaUtenteCorrente() { bool retValue = false; DocsPaWR.Trasmissione trasm = TrasmManager.getDocTrasmSel(this); if (trasm != null && trasm.utente != null) { retValue = (trasm.utente.idPeople.Equals(UserManager.getInfoUtente(this).idPeople)); } return(retValue); }
private void Page_Load(object sender, System.EventArgs e) { try { // prelevo l'informazione del colore del tema dal DB string Tema = GetCssAmministrazione(); string color = string.Empty; if (Tema != null && !Tema.Equals("")) { string[] realTema = Tema.Split('^'); color = realTema[2]; } else { color = "810d06"; } red = Convert.ToInt32(color.Substring(0, 2), 16); green = Convert.ToInt32(color.Substring(2, 2), 16); blu = Convert.ToInt32(color.Substring(4), 16); // Put user code to initialize the page here Utils.startUp(this); Page.Response.Expires = 0; //Leggo la trasmissione dalla sessione trasmSel = TrasmManager.getDocTrasmSel(this);; if (trasmSel != null) { //cerco il tipo di trasmissione tipoTrasm = Request.QueryString["tipoRic"]; if (tipoTrasm == "R") { drawDettagliTrasmRic(trasmSel); } else if (tipoTrasm == "E") { drawDettagliTrasmEff(trasmSel); } } } catch (System.Exception ex) { ErrorManager.redirect(this, ex); } }
private void Page_Load(object sender, System.EventArgs e) { try { Utils.startUp(this); Page.Response.Expires = 0; this.tblTx.Style.Remove("border-collapse"); // prelevo l'informazione del colore del tema dal DB string Tema = GetCssAmministrazione(); string color = string.Empty; if (Tema != null && !Tema.Equals("")) { string[] realTema = Tema.Split('^'); color = realTema[2]; } else { color = "810d06"; } red = Convert.ToInt32(color.Substring(0, 2), 16); green = Convert.ToInt32(color.Substring(2, 2), 16); blu = Convert.ToInt32(color.Substring(4), 16); //Prendo la trasmissione selezionata dall'utente e ne visualizzo i dettagli if (TrasmManager.getDocTrasmSel(this) != null) { trasmSel = TrasmManager.getDocTrasmSel(this); DrawInfoDoc(tblTx, trasmSel); DrawOggDoc(tblTx, trasmSel); //vanno fatti una sola volta comunque fuori dal ciclo DrawNoteGen(tblTx, trasmSel); //prendo le trasm singole dalla Trasm listTrasmSing = trasmSel.trasmissioniSingole; if (listTrasmSing != null) { for (int g = 0; g < listTrasmSing.Length; g++) { DocsPaWR.TrasmissioneSingola trasmSing = (DocsPAWA.DocsPaWR.TrasmissioneSingola)listTrasmSing[g]; DrawTable(tblTx, trasmSing, g); } } } else { //solo per fargli vis la note gen // DocsPaWR.Trasmissione trasmVuota= new DocsPAWA.DocsPaWR.Trasmissione(); // trasmVuota.noteGenerali="&nbps;"; // DrawNoteGen(tblTx,trasmVuota); } //TrasmManager.removeDocTrasmSel(this); // TrasmManager.removeDocTrasmQueryEff(this); //string s = "<SCRIPT language='javascript'>document.getElementById('" + tblTx.ID + "').focus() </SCRIPT>"; //RegisterStartupScript("focus", s); } catch (System.Exception es) { ErrorManager.redirect(this, es); } }
private void Page_Load(object sender, System.EventArgs e) { try { Utils.startUp(this); Page.Response.Expires = 0; this.tblTx.Style.Remove("border-collapse"); if (Session["fascicolo"] != null) { string fasc = (string)Session["fascicolo"]; if (fasc.ToUpper().Equals("TODOLIST") || fasc.ToUpper().Equals("RICERCA")) { this.btn_chiudi.Visible = false; } else { this.btn_chiudi.Visible = true; } } else { this.btn_chiudi.Visible = true; } string chiudi = Request.QueryString["chiudi"]; if (!string.IsNullOrEmpty(chiudi)) { if (chiudi.ToUpper().Equals("SI")) { this.btn_chiudi.Visible = true; } else { this.btn_chiudi.Visible = false; } } //Prendo la trasmissione selezionata dall'utente e ne visualizzo i dettagli if (TrasmManager.getDocTrasmSel(this) != null) { trasmSel = TrasmManager.getDocTrasmSel(this); //creazione delle righe su Informazioni Generali DrawInfoFasc(tblTx, trasmSel); DrawOggFasc(tblTx, trasmSel); //vanno fatti una sola volta comunque fuori dal ciclo DrawNoteGen(tblTx, trasmSel); //prendo le trasm singole dalla Trasm listTrasmSing = trasmSel.trasmissioniSingole; if (listTrasmSing != null) { for (int g = 0; g < listTrasmSing.Length; g++) { DocsPaWR.TrasmissioneSingola trasmSing = (DocsPAWA.DocsPaWR.TrasmissioneSingola)listTrasmSing[g]; DrawTable(tblTx, trasmSing, g); } } } else { //solo per fargli vis la note gen // DocsPaWR.Trasmissione trasmVuota= new DocsPAWA.DocsPaWR.Trasmissione(); // trasmVuota.noteGenerali="&nbps;"; // DrawNoteGen(tblTx,trasmVuota); } TrasmManager.removeDocTrasmSel(this); // TrasmManager.removeDocTrasmQueryEff(this); } catch (System.Exception es) { ErrorManager.redirect(this, es); } }