private void InitStat(StatConfigItem stat) { if (stat != null) { CalcMode = stat.CalcMode; UseSubTotal = stat.UseSubTotal; fStatFields = stat.StatFieldList; } else { CalcMode = StatCalcMode.None; UseSubTotal = false; fStatFields = new List <StatFieldConfigItem>(); } }
protected DbStatListSource(StatConfigItem stat) { InitStat(stat); }