统计库存总量

//页脚统计举例
                    //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));

相关文章:

  • 2022-01-07
  • 2021-07-19
  • 2021-09-06
  • 2022-01-05
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-10
  • 2021-08-24
  • 2021-10-02
  • 2021-08-19
  • 2021-11-03
  • 2021-12-03
  • 2022-12-23
相关资源
相似解决方案