Esempio n. 1
0
 /// <summary>
 /// 编辑或新增一个报表
 /// </summary>
 /// <param name="reportId"></param>
 /// <returns></returns>
 public ActionResult EditReport(long?reportId)
 {
     if (reportId == null || reportId == 0)
     {
         var model = new ReportOutput();
         return(View(model));
     }
     else
     {
         var report = _reportAppService.GetReport(reportId.Value);
         report.IsPlaceholder = report.IsPlaceholder == null ? false : report.IsPlaceholder.Value;
         return(View(report));
     }
 }