private void btnDailyUrgentPoReport_Execute(object sender, SimpleActionExecuteEventArgs e) { DailyUrgentPoReport_CM poReport = new DailyUrgentPoReport_CM(); if (poReport.RunReport()) XtraMessageBox.Show(string.Format("报表已储存在以下位置 : {0}", poReport.SaveFilePath), "完成"); poReport = null; }
private void btnRunDailyUrgentPoReport_Click(object sender, EventArgs e) { DailyUrgentPoReport poReport; switch (rgDailyUrgent.EditValue.ToString()) { case "CM": poReport = new DailyUrgentPoReport_CM(); break; default: poReport = new DailyUrgentPoReport(); break; } if (poReport.RunReport()) XtraMessageBox.Show(string.Format("报表已储存在以下位置 : {0}", poReport.SaveFilePath), "完成"); poReport = null; }