private void CleanSessionTabTrasm(string tab) { TrasmManager.removeDocTrasmQueryEff(this); TrasmManager.removeDataTableRic(this); TrasmManager.removeDocTrasmSel(this); if (!tab.Equals("allegati") || !tab.Equals("versioni")) { if (tab.Equals("trasmissioni")) { // System.Diagnostics.Trace.WriteLine(this.GetType().ToString()+"top.principale.iFrame_dx.document.location='tabTrasmissioniEff.aspx';"); Response.Write("<script language='javascript'>top.principale.iFrame_dx.document.location='tabTrasmissioniEff.aspx';</script>"); } else { // Se è attivo l'autopreview viene effettuato direttamente il refresh della pagina di destra in modo da aggiornare // i dati sullo stato di checkout del documento (MAC INPS 71) if (ConfigSettings.getKey(ConfigSettings.KeysENUM.DOCUMENT_AUTOPREVIEW).ToLower() == "true") { Response.Write("<script language='javascript'>try {top.principale.iFrame_dx.document.location='tabDoc.aspx'} catch(e) { try {top.principale.iFrame_dx.document.location='tabDoc.aspx'} catch(e) {} }</script>"); } else // PAT: Non vogliono che la pagina di destra si refreshi quando cliccano sul tab profilo if (Session["refreshDxPageVisualizzatore"] == null && Convert.ToBoolean(Session["refreshDxPageVisualizzatore"]) != true) { Response.Write("<script language='javascript'>try {top.principale.iFrame_dx.document.location='tabDoc.aspx'} catch(e) { try {top.principale.iFrame_dx.document.location='tabDoc.aspx'} catch(e) {} }</script>"); } } } }
private void CleanSessionRisultatiRicerca() { TrasmManager.removeDocTrasmSel(this); TrasmManager.removeDocTrasmQueryEff(this); TrasmManager.removeDataTableRic(this); TrasmManager.removeDataTableEff(this); TrasmManager.removeDataTableRic(this); }
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); } }