Ejemplo n.º 1
0
 public static FullReportRecord GetFullReportRecord(PiramidaRecord record, string title = null)
 {
     FullReportRecord rec=new FullReportRecord();
     rec.Title = String.IsNullOrEmpty(title) ? record.Title : title;
     rec.Key = record.Key;
     rec.Selectable = true;
     rec.Children = new List<FullReportRecord>();
     return rec;
 }
Ejemplo n.º 2
0
 public RecordTypeDB(PiramidaRecord dbRecord, int parNumber,
     double minValue = -10e100, double maxValue = 10e100, double divParam = 1, double multParam = 1,
     string id = null, string title = null, ResultTypeEnum resultType = ResultTypeEnum.sum, DBOperEnum dbOper = DBOperEnum.sum,
     bool toChart = false, bool visible = false, string formatDouble = "#,0.##")
 {
     DBRecord = dbRecord;
     ParNumber = parNumber;
     MinValue = minValue;
     MaxValue = maxValue;
     DivParam = divParam;
     MultParam = multParam;
     Visible = visible;
     ToChart = toChart;
     ID = id == null ? dbRecord.Key : id;
     Title = title == null ? dbRecord.Title : title;
     ResultType = resultType;
     DBOper = dbOper;
     FormatDouble = formatDouble;
 }