private ReportSaleGraphModel POS_emp(DateTime DF, DateTime DT) {//"2016/05/10", "2016/06/10" emp = new ReportSaleGraphModel(); var a = String.Format("{0:yyyy/M/d}", DF); var b = String.Format("{0:yyyy/M/d}", DT); var result = webHandler.POS_Employeer_selling(a, b); if (result == null || result == "") { return(null); } emp.GraphCollection = new ObservableCollection <ReportSaleGraphModel>(); string[] arr = result.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); foreach (var item in arr) { string[] arg = item.Split(new string[] { "---" }, StringSplitOptions.None); emp.GraphCollection.Add(new ReportSaleGraphModel() { Graphname = arg[0], Graphvalue = arg[1], }); } return(emp); }
private void Page_Loaded(object sender, RoutedEventArgs e) { most = new ReportSaleGraphModel(); emp = new ReportSaleGraphModel(); qty = new ReportSaleGraphModel(); saleReport = new ReportSaleModel(); saleReport1 = new ReportSaleModel(); }