private bool SaveTemplate()
        {
            try
            {
                this.Template.NOME = this.txtTitle.Text;
                if (this.rblShare.Items[0].Selected)
                {
                    for (int k = 0; k < this.Template.MITTENTE.Length; k++)
                    {
                        this.Template.MITTENTE[k].ID_CORR_GLOBALI = 0;
                    }
                }
                else
                {
                    this.Template.ID_PEOPLE = "";
                }

                DocsPaWR.InfoUtente infoUtente = UserManager.GetInfoUser();
                this.Template.CODICE = "MT_" + TransmissionModelsManager.GetTemplateSystemId();
                TransmissionModelsManager.SaveTemplate(this.Template, infoUtente);

                return(true);
            }
            catch
            {
                return(false);
            }
        }
        private bool SaveTemplate()
        {
            try
            {
                this.Transmission.cessione = new CessioneDocumento();
                this.Transmission.cessione.idPeopleNewPropr = this.rblUsers.SelectedValue.Split('_')[0];
                this.Transmission.cessione.idRuoloNewPropr  = this.rblUsers.SelectedValue.Split('_')[1];
                this.Transmission = impostaUtenteConNotifica(this.Transmission);
                this.Transmission.daAggiornare = true;


                this.Template.NOME = this.txtTitle.Text;
                if (this.rblShare.Items[0].Selected)
                {
                    for (int k = 0; k < this.Template.MITTENTE.Length; k++)
                    {
                        this.Template.MITTENTE[k].ID_CORR_GLOBALI = 0;
                    }
                }
                else
                {
                    this.Template.ID_PEOPLE = "";
                }

                this.Template.CEDE_DIRITTI        = "1";
                this.Template.ID_PEOPLE_NEW_OWNER = this.rblUsers.SelectedValue.Split('_')[0];
                this.Template.ID_GROUP_NEW_OWNER  = this.rblUsers.SelectedValue.Split('_')[1];

                if (this.Transmission.mantieniScrittura)
                {
                    this.Template.MANTIENI_LETTURA   = "1";
                    this.Template.MANTIENI_SCRITTURA = "1";
                }
                else
                {
                    this.Template.MANTIENI_SCRITTURA = "0";
                    if (this.Transmission.mantieniLettura)
                    {
                        this.Template.MANTIENI_LETTURA = "1";
                    }
                    else
                    {
                        this.Template.MANTIENI_LETTURA = "0";
                    }
                }

                DocsPaWR.InfoUtente infoUtente = UserManager.GetInfoUser();
                this.Template.CODICE = "MT_" + TransmissionModelsManager.GetTemplateSystemId();
                TransmissionModelsManager.SaveTemplate(this.Template, infoUtente);

                return(true);
            }
            catch
            {
                return(false);
            }
        }
Beispiel #3
0
        private void PerformSaveModel()
        {
            DocsPaWR.ModelloTrasmissione modello = (NttDataWA.DocsPaWR.ModelloTrasmissione)Session["Modello"];

            DocsPaWR.InfoUtente infoUtente = UserManager.GetInfoUser();

            TransmissionModelsManager.SaveTemplate(modello, infoUtente);

            Session.Remove("modelloToSave");
        }