예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string        oggettoId = Request["oggettoId"];
                string        context   = Request["context"];
                OggettoCustom oggCust   = null;
                if ("D".Equals(context))
                {
                    oggCust = ProfilazioneDocManager.getOggettoById(oggettoId, this);
                }
                else
                {
                    oggCust = ProfilazioneFascManager.getOggettoById(oggettoId, this);
                }
                ConfigurationInfo conf = new ConfigurationInfo();
                conf.Value = oggCust.CONFIG_OBJ_EST;
                ConfInfo   = conf;
            }

            this.lbl_descr.Text  = IntegrationAdapter.DescriptionLabel;
            this.lbl_codice.Text = IntegrationAdapter.IdLabel;
            this.dg_OggEst.Columns[1].HeaderText = IntegrationAdapter.IdLabel;
            this.dg_OggEst.Columns[2].HeaderText = IntegrationAdapter.DescriptionLabel;
        }
예제 #2
0
 private IIntegrationAdapter GetIntegrationAdapter(string oggettoId, string type, string adapterId, string adapterVersion, string position)
 {
     if (!string.IsNullOrEmpty(position))
     {
         Templates     template = (Templates)Session["template"];
         int           pos      = Int32.Parse(position);
         OggettoCustom temp     = template.ELENCO_OGGETTI[pos];
         if (temp != null && !string.IsNullOrEmpty(temp.CONFIG_OBJ_EST))
         {
             ConfigurationInfo conf = new ConfigurationInfo();
             conf.Value = temp.CONFIG_OBJ_EST;
             return(IntegrationAdapterFactory.Instance.GetAdapterConfigured(conf));
         }
     }
     if (!string.IsNullOrEmpty(oggettoId))
     {
         OggettoCustom oggCust = null;
         if ("D".Equals(type))
         {
             oggCust = ProfilazioneDocManager.getOggettoById(oggettoId, this);
         }
         else
         {
             oggCust = ProfilazioneFascManager.getOggettoById(oggettoId, this);
         }
         ConfigurationInfo conf = new ConfigurationInfo();
         conf.Value = oggCust.CONFIG_OBJ_EST;
         return(IntegrationAdapterFactory.Instance.GetAdapterConfigured(conf));
     }
     else
     {
         if (!string.IsNullOrEmpty(adapterVersion))
         {
             return(IntegrationAdapterFactory.Instance.GetAdapter(adapterId, new Version(adapterVersion)));
         }
         else
         {
             return(IntegrationAdapterFactory.Instance.GetAdapter(adapterId));
         }
     }
 }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["IdOggCustom"] != null && Request.QueryString["IdTemplate"] != null)
            {
                idOggetto  = Request.QueryString["IdOggCustom"];
                idTemplate = Request.QueryString["IdTemplate"];
                if (!string.IsNullOrEmpty(idOggetto) && !string.IsNullOrEmpty(idTemplate))
                {
                    oggettoCustom   = ProfilazioneDocManager.getOggettoById(idOggetto, this);
                    lbl_titolo.Text = oggettoCustom.DESCRIZIONE;
                    contatori       = ProfilazioneDocManager.GetValuesContatoriDoc(this, oggettoCustom);
                    msg_Elimina.GetMessageBoxResponse += new Utilities.MessageBox.Message(this.msg_Elimina_GetMessageBoxResponse);
                }
            }

            if (!IsPostBack)
            {
                caricaDgContatori();
                impostaVisualizzazione();
            }
        }