Browse Source

加收购重量。

master
yibo 7 years ago
parent
commit
317741b528
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Reports/StatPayAnalyse.cs

+ 8
- 2
B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Reports/StatPayAnalyse.cs View File

@ -53,18 +53,21 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports
result.Data.SumRow["实付金额"] = billSum.Item1; result.Data.SumRow["实付金额"] = billSum.Item1;
if (ColumnNames.Contains("收购头数")) if (ColumnNames.Contains("收购头数"))
result.Data.SumRow["收购头数"] = billSum.Item2; result.Data.SumRow["收购头数"] = billSum.Item2;
if (ColumnNames.Contains("收购重量"))
result.Data.SumRow["收购重量"] = billSum.Item3;
} }
return result; return result;
} }
Tuple< Money<>? ,int?>GetBillSum()
Tuple<Money<>?, int?, Money<decimal>?> GetBillSum()
{ {
var query = base.GetQueryDom(); var query = base.GetQueryDom();
var n = new DQueryDom(new JoinAlias(typeof(StatPay))); var n = new DQueryDom(new JoinAlias(typeof(StatPay)));
n.Where.Conditions.Add(DQCondition.And(query.Where.Conditions)); n.Where.Conditions.Add(DQCondition.And(query.Where.Conditions));
n.Columns.Add(DQSelectColumn.Sum("ActualMoney")); n.Columns.Add(DQSelectColumn.Sum("ActualMoney"));
n.Columns.Add(DQSelectColumn.Sum("RealNumber")); n.Columns.Add(DQSelectColumn.Sum("RealNumber"));
return n.EExecuteScalar<Money<>?,int?>();
n.Columns.Add(DQSelectColumn.Sum("RealWeight"));
return n.EExecuteScalar<Money<>?, int?, Money<decimal>?>();
} }
public override Forks.EnterpriseServices.DataForm.DFDataTable GetDFDataTable(TSingSoft.WebControls2.DFGrids.QuerySettings settings) public override Forks.EnterpriseServices.DataForm.DFDataTable GetDFDataTable(TSingSoft.WebControls2.DFGrids.QuerySettings settings)
@ -77,6 +80,8 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports
result.SumRow["实付金额"] = billSum.Item1; result.SumRow["实付金额"] = billSum.Item1;
if (ColumnNames.Contains("收购头数")) if (ColumnNames.Contains("收购头数"))
result.SumRow["收购头数"] = billSum.Item2; result.SumRow["收购头数"] = billSum.Item2;
if (ColumnNames.Contains("收购重量"))
result.SumRow["收购重量"] = billSum.Item3;
} }
return result; return result;
} }
@ -119,6 +124,7 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports
mDisplayHelper.AddOptionItem("结算日期", "_bill", "Date", false); mDisplayHelper.AddOptionItem("结算日期", "_bill", "Date", false);
mDisplayHelper.AddOptionItem("供应商", "_bill", "Supplier_Name", false); mDisplayHelper.AddOptionItem("供应商", "_bill", "Supplier_Name", false);
mDisplayHelper.AddOptionItem("收购头数", "_bill", "RealNumber", false); mDisplayHelper.AddOptionItem("收购头数", "_bill", "RealNumber", false);
mDisplayHelper.AddOptionItem("收购重量", "_bill", "RealWeight", false);
mDisplayHelper.AddOptionItem("过磅单号", "_bill", "Weigh_ID", false); mDisplayHelper.AddOptionItem("过磅单号", "_bill", "Weigh_ID", false);
mDisplayHelper.AddOptionItem("过磅日期", () => DQExpression.Snippet("CAST([_weight].[WeighTime] AS DATE)").ECastType<DateTime?>(), false); mDisplayHelper.AddOptionItem("过磅日期", () => DQExpression.Snippet("CAST([_weight].[WeighTime] AS DATE)").ECastType<DateTime?>(), false);
mDisplayHelper.AddOptionItem("实付金额", "_bill", "ActualMoney", false); mDisplayHelper.AddOptionItem("实付金额", "_bill", "ActualMoney", false);


Loading…
Cancel
Save