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);
            }
        }
 protected void CopyButton_Click(object sender, System.EventArgs e)
 {
     try
     {
         _reportProxy.Open();
         _reportProxy.Clone(this.txtName.Text, this.txtDescription.Text);
         Server.Transfer("ReportList.aspx?content=List", false);
     }
     catch (Exception exc)
     {
         this.ShowException(exc);
     }
 }