Beispiel #1
0
        private void DataGrid1_ItemCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
        {
            if (e.CommandName == "ShowInfo")
            {
                DocsPaWR.InfoDocumento newinfoDoc = null;
                if (e.Item.ItemIndex >= 0)
                {
                    string str_indexSel = ((Label)this.DataGrid1.Items[e.Item.ItemIndex].Cells[7].Controls[1]).Text;
                    int    indexSel     = Int32.Parse(str_indexSel);

                    this.infoDoc = RicercaDocumentiControllatiSessionMng.GetListaInfoDocumenti(this);

                    if (indexSel > -1)
                    {
                        newinfoDoc = (DocsPAWA.DocsPaWR.InfoDocumento) this.infoDoc[indexSel];
                    }

                    if (newinfoDoc != null)
                    {
                        DocumentManager.setRisultatoRicerca(this, newinfoDoc);
                        FascicoliManager.removeFascicoloSelezionato(this);
                        FascicoliManager.removeFolderSelezionato(this);
                        RicercaDocumentiControllatiSessionMng.ClearSessionData(this);
                        Response.Write("<script>window.open('../documento/gestionedoc.aspx?tab=protocollo','principale');</script>");
                        Response.Write("<script>window.close();</script>");
                    }
                }
            }
        }
Beispiel #2
0
        private void setDocInTrasm()
        {
            Session["Controllati"] = null;
            string[] idDocControllati = new string[hash_checked.Count];

            hash_checked = DocumentManager.getHash(this);

            if (hash_checked != null && hash_checked.Count > 0)
            {
                infoDoc = RicercaDocumentiControllatiSessionMng.GetListaInfoDocumenti(this);

                int i = 0;
                if (this.Folder != null && this.Folder.idFascicolo != "")
                {
                    foreach (DictionaryEntry de in hash_checked)
                    {
                        idDocControllati[i] = de.Value.ToString();
                        i++;
                    }
                }
                RicercaDocumentiControllatiSessionMng.ClearSessionData(this);

                Session["Controllati"] = idDocControllati;

                Response.Write("<script>window.close();</script>");
            }

            else
            {
                Response.Write("<script>alert('Selezionare almeno un documento da trasmettere');</script>");
            }
        }