コード例 #1
0
		private void GetReport()
		{
			//If this is a "Copy", then it is based on an existing Report.
			//If this is an "Add", then there is no existing Report.
			string qsValue = "Not Defned";
			try
			{
				qsValue = Request.QueryString[Common.Names._QS_REPORT_ID];
				_reportID = new Guid(qsValue);
				_report = Business.Report.Create(_reportID, _itatSystem);
			}
			catch
			{
			}
		}
コード例 #2
0
		protected override void LoadViewState(object savedState)
		{
			base.LoadViewState(savedState);
			_externalTerms = (Dictionary<string, Business.ExternalTerm>)ViewState[VSKEY_EXTERNALTERMS];
			try
			{
				_report = (Business.Report)ViewState[VSKEY_REPORT];
			}
			catch { }
		}
コード例 #3
0
		private void GetReport()
		{
			string qsValue = Request.QueryString[Common.Names._QS_REPORT_ID];
			if (string.IsNullOrEmpty(qsValue))
				_report = null;
			else
				_report = Business.Report.Create(new Guid(qsValue), _itatSystem);
			//			if (!string.IsNullOrEmpty(qsValue))
			//					throw new Exception("Unable to create report from ID: " + qsValue + "      " +  ex.Message);
		}
コード例 #4
0
		protected override void LoadViewState(object savedState)
		{
			base.LoadViewState(savedState);
			try
			{
				_reportID = (Guid)ViewState[VSKEY_REPORT_ID];
				_report = Business.Report.Create(_reportID, _itatSystem);
			}
			catch { }
		}
コード例 #5
0
		private bool GetQueryString()
		{
			string qsValue = Request.QueryString[Common.Names._QS_REPORT_ID];
			Guid reportId = Guid.Empty;
			try
			{
				reportId = new Guid(qsValue);
			}
			catch
			{
				return false;
			}
			try
			{
				_report = Business.Report.Create(reportId, _itatSystem);
			}
			catch
			{
				return false;
			}
			return _report != null;
		}
コード例 #6
0
		private bool GetContextData()
		{
			try
			{
				_report = (Business.Report)Context.Items[Common.Names._CNTXT_Report];
			}
			catch
			{
				return false;
			}
			return _report != null;
		}
コード例 #7
0
		protected override void LoadViewState(object savedState)
		{
			base.LoadViewState(savedState);
			_report = (Business.Report)ViewState[VSKEY_REPORT];
		}