protected override IEnumerable GetItems() { var filter = string.Empty; //var filter = "BillDate BETWEEN '" + dtpBillDate1.Value.Date.ToString() + "' AND dateadd(day, 1, '" + dtpBillDate2.Value.Date.ToString() + "')"; //var s = txtSupplierName.Text.Trim(); //if (s != "") // filter += " AND SupplierName LIKE '%" + s + "%'"; var bl = new StoreReportBL(); var list = bl.GetViews(filter); return(list); }
public ServerResponse Post([FromBody] QueryCondition queryCondition) { var res = new ServerResponse(); using (StoreReportBL StoreReportBL = new StoreReportBL()) { try { res.Data = StoreReportBL.GetDataByQueryCondition(queryCondition); } catch (Exception ex) { res.Success = false; } } return(res); }