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 { } }
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 { } }
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); }
protected override void LoadViewState(object savedState) { base.LoadViewState(savedState); try { _reportID = (Guid)ViewState[VSKEY_REPORT_ID]; _report = Business.Report.Create(_reportID, _itatSystem); } catch { } }
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; }
private bool GetContextData() { try { _report = (Business.Report)Context.Items[Common.Names._CNTXT_Report]; } catch { return false; } return _report != null; }
protected override void LoadViewState(object savedState) { base.LoadViewState(savedState); _report = (Business.Report)ViewState[VSKEY_REPORT]; }