|
|
|
@ -71,6 +71,7 @@ namespace BWP.Web.Pages.B3YunKen.Reports |
|
|
|
list.Add(new Tuple<string, string>("SaleKind_Name", "销售类型")); |
|
|
|
list.Add(new Tuple<string, string>("Employee_Name", "销售人员")); |
|
|
|
list.Add(new Tuple<string, string>("CreditPolicy_Name", "信用政策")); |
|
|
|
list.Add(new Tuple<string, string>("OutBillID", "出库单号")); |
|
|
|
list.Add(new Tuple<string, string>("FreightMoney", "运费")); |
|
|
|
list.Add(new Tuple<string, string>("Money", "验收金额")); |
|
|
|
list.Add(new Tuple<string, string>("Store_Name", "仓库")); |
|
|
|
@ -93,6 +94,8 @@ namespace BWP.Web.Pages.B3YunKen.Reports |
|
|
|
list.Add(new Tuple<string, string>("NetPrice", "去包装净价")); |
|
|
|
list.Add(new Tuple<string, string>("ToFreightNetPrice", "去运费单价")); |
|
|
|
list.Add(new Tuple<string, string>("PolicyPrice", "政策价格")); |
|
|
|
list.Add(new Tuple<string, string>("OutNum", "出库数量")); |
|
|
|
list.Add(new Tuple<string, string>("OutMoney", "出库金额")); |
|
|
|
list.Add(new Tuple<string, string>("CustomerDealer_Name", "经销商")); |
|
|
|
|
|
|
|
var section = mPageLayoutManager.AddSection("显示字段", "显示字段"); |
|
|
|
@ -219,11 +222,14 @@ B3SaleDataSources.经销商), s => long.Parse(s)), "CustomerDealer_ID")); |
|
|
|
var goods = new JoinAlias(typeof(SaleGoods)); |
|
|
|
var packageData = new JoinAlias(typeof(PackageData)); |
|
|
|
var outStore = new JoinAlias(typeof(SaleOutStore)); |
|
|
|
var outDetail = new JoinAlias(typeof(SaleOutStore_Detail)); |
|
|
|
dom.RegisterQueryTable(typeof(PackageData), new string[] { "Goods_ID", "Price", "AccountingUnit_ID" }, GetGoods_Package()); |
|
|
|
dom.From.AddJoin(JoinType.Left, new DQDmoSource(detail), |
|
|
|
DQCondition.EQ(main, "ID", detail, "CustomerAccept_ID")); |
|
|
|
dom.From.AddJoin(JoinType.Left, new DQDmoSource(outStore), DQCondition.And(DQCondition.EQ(detail, "BillType",DmoTypeIDAttribute.GetID(typeof(SaleOutStore))), |
|
|
|
DQCondition.EQ(outStore, "ID", detail, "BillID"))); |
|
|
|
dom.From.AddJoin(JoinType.Left, new DQDmoSource(outDetail), DQCondition.And(DQCondition.EQ(detail, "BillType", DmoTypeIDAttribute.GetID(typeof(SaleOutStore))), |
|
|
|
DQCondition.EQ(outDetail, "ID", detail, "SourceBillDetailID"))); |
|
|
|
dom.From.AddJoin(JoinType.Left, new DQDmoSource(packageData), |
|
|
|
DQCondition.And(DQCondition.EQ(packageData, "Goods_ID", detail, "SaleGoods_ID"), DQCondition.EQ(packageData, "AccountingUnit_ID", main, "AccountingUnit_ID"))); |
|
|
|
dom.From.AddJoin(JoinType.Left, new DQDmoSource(goods), |
|
|
|
@ -287,6 +293,18 @@ B3SaleDataSources.经销商), s => long.Parse(s)), "CustomerDealer_ID")); |
|
|
|
dom.Columns.Add(DQSelectColumn.Create(DQExpression.Field(outStore, field), item.Text)); |
|
|
|
dom.GroupBy.Expressions.Add(DQExpression.Field(outStore, field)); |
|
|
|
break; |
|
|
|
case "OutBillID": |
|
|
|
dom.Columns.Add(DQSelectColumn.Create(DQExpression.Field(outStore, "ID"), item.Text)); |
|
|
|
dom.GroupBy.Expressions.Add(DQExpression.Field(outStore, "ID")); |
|
|
|
break; |
|
|
|
case "OutNum": |
|
|
|
dom.Columns.Add(DQSelectColumn.Create(DQExpression.Sum(DQExpression.Field(outDetail, "Number")), item.Text)); |
|
|
|
SumColumnIndexs.Add(dom.Columns.Count - 1); |
|
|
|
break; |
|
|
|
case "OutMoney": |
|
|
|
dom.Columns.Add(DQSelectColumn.Create(DQExpression.Sum(DQExpression.Field(outDetail, "Money")), item.Text)); |
|
|
|
SumColumnIndexs.Add(dom.Columns.Count - 1); |
|
|
|
break; |
|
|
|
case "GoodsPropertyCatalog_Name": |
|
|
|
case "Goods_Name": |
|
|
|
case "BrandItem_Name": |
|
|
|
|