コード例 #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;
        }