public static IList StatisticPersonRP() { //return BeOperationInvoker.Invoke<I_CO_IA.Statistic.I_CO_IA_Statistic, IList>( // channel => // { // return channel.GetPersonPlanStats(activityguid); // }); DataManager.Public.StatisticModel model = new DataManager.Public.StatisticModel(); return(model.GetPersonRPStatByDate(DateTime.Now.Year.ToString() + "-01-01", DateTime.Now.Year.ToString() + "-12-31").ToList <PersonPlanStatisticData>()); }
/// <summary> /// 查询统计 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_Stat_Click(object sender, RoutedEventArgs e) { DataManager.Public.StatisticModel model = new DataManager.Public.StatisticModel(); PersonPlanStatisticSource = model.GetPersonRPStatByDate(de_fromdate.DateTime.ToString("yyyy-MM-dd"), de_todate.DateTime.ToString("yyyy-MM-dd")).ToList <PersonPlanStatisticData>(); }