//页脚统计举例
//int recordCount;
//DataTable dt = DbUtils.GetPageWithSp(pcpstr, out recordCount);
//decimal buyNumAll = decimal.Parse(dt.Compute("Sum(buyNum)", "").ToString());//购买数量统计
//decimal buyAllMoney = (decimal)dt.Compute("Sum(buyAllMoney)", "");
//decimal profit = (decimal)dt.Compute("Sum(profit)", "");
//List<dynamic> footerlist = new List<dynamic> { new { goodsName = "合计", buyNum = buyNumAll, buyAllMoney = buyAllMoney, profit = profit } };
context.Response.Write(JSONhelper.FormatJSONForEasyuiDataGrid(recordCount, dt));
//context.Response.Write(JSONhelper.FormatJSONForEasyuiDataGrid(recordCount, dt, footerlist));
统计库存总量
最新推荐文章于 2024-08-19 16:02:01 发布