Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                Response.Expires = -1;

                // Recupero della storia del ruolo
                RoleHistoryResponse response = UserManager.GetRoleHistory(new RoleHistoryRequest()
                {
                    IdCorrGlobRole = Request["idCorr"]
                });

                // Impostazione delle informazioni necessarie per l'eventuale generazione del report
                ReportingUtils.PrintRequest = new PrintReportObjectTransformationRequest()
                {
                    ContextName = "GestioneRuolo",
                    ReportKey   = "StoriaRuolo",
                    DataObject  = response.RoleHistoryItems
                };

                // Impostazione del link per l'apertura della pagina del report
                this.btnEsporta.OnClientClick = ReportingUtils.GetOpenReportPageScript(false);



                this.dgHistory.DataSource = response.RoleHistoryItems;
                this.dgHistory.DataBind();
            }
            catch (Exception ex)
            {
                this.ClientScript.RegisterStartupScript(this.GetType(), "Alert", "alert('Si è verificato un errore durante la ricostruzione della storia del ruolo.');self.close();", true);
            }
        }
Exemplo n.º 2
0
        private void InitializeContent()
        {
            DocumentoDiritto docDiritti = this.VisibilityList[this.RowSelected.DataItemIndex];

            this.response = RoleManager.GetRoleHistory(new RoleHistoryRequest()
            {
                IdCorrGlobRole = (docDiritti.soggetto as Ruolo).systemId
            });
            GrdGridHistoryRole_Bind();
        }