Beispiel #1
0
        private void btnConfirmTipoReport_Click(object sender, EventArgs e)
        {
            try
            {
                IModel space = null;
                if (optSituazioneFornitore.Checked)
                {
                    space = new ReportJobFornitoreModel();
                }
                else if (optResocontoFornitori.Checked)
                {
                    space = new ReportJobFornitoriModel();
                }
                else if (optSituazioneCommittente.Checked)
                {
                    space = new ReportJobCommittenteModel();
                }
                else if (optResocontoCommittenti.Checked)
                {
                    space = new ReportJobCommittentiModel();
                }

                space.Model = new ReportJobDto();
                AddSpace(space);
                panelTipoReport.Visible = false;
            }
            catch (Exception ex)
            {
                UtilityError.Write(ex);
            }
        }
Beispiel #2
0
        private void btnConfirmTipoReport_Click(object sender, EventArgs e)
        {
            try
            {
                IModel space = null;
                if (optSituazioneFornitore.Checked)
                    space = new ReportJobFornitoreModel();
                else if(optResocontoFornitori.Checked)
                    space = new ReportJobFornitoriModel();
                else if (optSituazioneCommittente.Checked)
                    space = new ReportJobCommittenteModel();
                else if (optResocontoCommittenti.Checked)
                    space = new ReportJobCommittentiModel();

                space.Model = new ReportJobDto();
                AddSpace(space);
                panelTipoReport.Visible = false;

            }
            catch (Exception ex)
            {
                UtilityError.Write(ex);
            }
        }