Esempio n. 1
0
        private void LoadParameters()
        {
            try
            {
                _reportId   = decimal.Parse(Request.QueryString["rptid"]);
                _reportType = int.Parse(Request.QueryString["rpttype"]);

                Session[this.UniqueID + ":ReportId"]   = _reportId;
                Session[this.UniqueID + ":ReportType"] = _reportType;
            }
            catch
            {
                //do nothing
            }

            _reportId   = (decimal)Session[this.UniqueID + ":ReportId"];
            _reportType = (int)Session[this.UniqueID + ":ReportType"];
            if (Session[this.UniqueID + ":Report"] != null)
            {
                _report = (Report)Session[this.UniqueID + ":Report"];
            }
            else
            {
                _report = _user.ReportSystem.GetReport(_reportId, _user.ReportSystem.GetReportType(_reportType), false);
            }
        }
Esempio n. 2
0
        private void LoadParameters()
        {
            // comes from report page
            _report = (FI.BusinessObjects.Report)Session["Report"];

            // out if saved or not dirty
            if (_report.IsSaved)
            {
                try
                {
                    _report.Close(false);
                    _report.IsSelected = false;
                    _report.SaveHeader();
                }
                catch (Exception exc)
                {
                    this.ShowException(exc);
                }
                Server.Transfer("ReportList.aspx?content=List", false);
            }
        }
        private void LoadParameters()
        {
            // comes from report page
            _report=(FI.BusinessObjects.Report)Session["Report"];

            // out if saved
            if(_report.IsSaved )
            {
                try
                {
                    _report.Close(false);
                    _report.IsSelected=false;
                    _report.SaveHeader();
                }
                catch(Exception exc)
                {
                    this.ShowException(exc);
                }
                Server.Transfer("ReportList.aspx?content=List" , false);
            }
        }
        private void LoadParameters()
        {
            try
            {
                _reportId=decimal.Parse(Request.QueryString["rptid"]);
                _reportType=int.Parse(Request.QueryString["rpttype"]);

                Session[this.UniqueID + ":ReportId"]=_reportId;
                Session[this.UniqueID + ":ReportType"]=_reportType;
            }
            catch
            {
                //do nothing
            }

            _reportId=(decimal)Session[this.UniqueID + ":ReportId"];
            _reportType=(int)Session[this.UniqueID + ":ReportType"];
            _reportProxy=_user.ReportSystem.GetReport(_reportId , _user.ReportSystem.GetReportType(_reportType) , false);
        }