private void InitData() { kindex = new KIndexData(); kindex.Ico = urad.ICO; kindex.Jmeno = urad.Jmeno; kindex.UcetniJednotka = KIndexData.UcetniJednotkaInfo.Load(urad.ICO); _calc_Stat = urad.StatistikaRegistruSmluv(); }
public static Analytics.StatisticsSubjectPerYear <Smlouva.Statistics.Data> CalculateStats(Firma f, int?obor) { StatisticsSubjectPerYear <Smlouva.Statistics.Data> res = null; if (obor.HasValue && obor != 0) { res = new StatisticsSubjectPerYear <Smlouva.Statistics.Data>( f.ICO, Smlouva.Statistics.Calculate($"ico:{f.ICO} AND oblast:{Smlouva.SClassification.Classification.ClassifSearchQuery(obor.Value)}") ); } else { res = new StatisticsSubjectPerYear <Smlouva.Statistics.Data>( f.ICO, Smlouva.Statistics.Calculate($"ico:{f.ICO}") ); } return(res); }