Beispiel #1
0
        protected void OkButton_Click(object sender, System.EventArgs e)
        {
            try
            {
                if (this.radioSave.Checked)
                {
                    _report.Close(true);
                    _report.IsSelected = false;
                    _report.SaveHeader();
                    Server.Transfer("ReportList.aspx?content=List", false);
                }
                else if (this.radioDiscard.Checked)
                {
                    _report.Close(false);
                    _report.IsSelected = false;
                    _report.SaveHeader();
                    Server.Transfer("ReportList.aspx?content=List", false);
                }
                else if (this.radioSaveAs.Checked)
                {
                    // save copy
                    _report.Clone(this.txtName.Text, this.txtDescription.Text);

                    // discard changes
                    _report.Close(false);
                    _report.IsSelected = false;
                    _report.SaveHeader();
                    Server.Transfer("ReportList.aspx?content=List", false);
                }
            }
            catch (Exception exc)
            {
                this.ShowException(exc);
            }
        }
Beispiel #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);
            }
        }