Beispiel #1
0
 public ActionResult CustomColumns(int?orgid)
 {
     try
     {
         Response.ContentType = "text/plain";
         var m = new CustomReportsModel(DbUtil.Db, orgid);
         var s = m.StandardColumns(includeRoot: false).ToString();
         foreach (var line in s.SplitLines())
         {
             Response.Write("  {0}\n".Fmt(line));
         }
         Response.Write("\n");
         return(new EmptyResult());
     }
     catch (Exception ex)
     {
         return(Message(ex.Message));
     }
 }
Beispiel #2
0
        private static IEnumerable <CustomReportColumn> GetAllStandardColumns(CustomReportsModel model)
        {
            var reportXml = model.StandardColumns();

            return(MapXmlToCustomReportColumn(reportXml));
        }