コード例 #1
0
        private void LoadParameters()
        {
            decimal userId     = -1;
            decimal reportId   = -1;
            int     reportType = -1;

            try
            {
                userId     = decimal.Parse(Request.QueryString["userId"]);
                reportId   = decimal.Parse(Request.QueryString["rptid"]);
                reportType = int.Parse(Request.QueryString["rptType"]);

                Session[this.UniqueID + ":UserId"]     = userId;
                Session[this.UniqueID + ":ReportId"]   = reportId;
                Session[this.UniqueID + ":ReportType"] = reportType;
            }
            catch
            {
                //do nothing
            }

            userId     = (decimal)Session[this.UniqueID + ":UserId"];
            reportId   = (decimal)Session[this.UniqueID + ":ReportId"];
            reportType = (int)Session[this.UniqueID + ":ReportType"];

            _userProxy   = new FI.BusinessObjects.User(userId, true); //not a proxy cause oltp db name is required
            _reportProxy = _userProxy.ReportSystem.GetReport(reportId, _userProxy.ReportSystem.GetReportType(reportType), false);
        }
        private void LoadParameters()
        {
            decimal reportId   = -1;
            int     reportType = -1;

            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);
        }
コード例 #3
0
        private void LoadParameters()
        {
            decimal userId=-1;
            decimal reportId=-1;
            int reportType=-1;

            try
            {
                userId=decimal.Parse(Request.QueryString["userId"]);
                reportId=decimal.Parse(Request.QueryString["rptid"]);
                reportType=int.Parse(Request.QueryString["rptType"]);

                Session[this.UniqueID + ":UserId"]=userId;
                Session[this.UniqueID + ":ReportId"]=reportId;
                Session[this.UniqueID + ":ReportType"]=reportType;
            }
            catch
            {
                //do nothing
            }

            userId=(decimal)Session[this.UniqueID + ":UserId"];
            reportId=(decimal)Session[this.UniqueID + ":ReportId"];
            reportType=(int)Session[this.UniqueID + ":ReportType"];

            _userProxy = new FI.BusinessObjects.User(userId, true); //not a proxy cause oltp db name is required
            _reportProxy=_userProxy.ReportSystem.GetReport(reportId , _userProxy.ReportSystem.GetReportType(reportType) , false);
        }
        private void LoadParameters()
        {
            decimal reportId=-1;
            int reportType=-1;

            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);
        }