From 2e3315a84b4288731760cd8dff58529ca5b5d141 Mon Sep 17 00:00:00 2001 From: luanhui Date: Wed, 17 Jan 2018 17:02:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E5=88=B6=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProductionNotificationPrint.cs | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/B3_DongFangWanQi.Web/Pages/B3_DongFangWanQi/Bills/ProductionNotification_/ProductionNotificationPrint.cs b/B3_DongFangWanQi.Web/Pages/B3_DongFangWanQi/Bills/ProductionNotification_/ProductionNotificationPrint.cs index 6e9fd49..feb2c03 100644 --- a/B3_DongFangWanQi.Web/Pages/B3_DongFangWanQi/Bills/ProductionNotification_/ProductionNotificationPrint.cs +++ b/B3_DongFangWanQi.Web/Pages/B3_DongFangWanQi/Bills/ProductionNotification_/ProductionNotificationPrint.cs @@ -4,7 +4,9 @@ using System.Linq; using System.Text; using B3_DongFangWanQi.BL; using B3_DongFangWanQi.BO; +using BWP.B3Frameworks.BO.MoneyTemplate; using BWP.B3Sale.BO; +using Forks.Utils; namespace BWP.Web.Pages.B3_DongFangWanQi.Bills.ProductionNotification_ { @@ -14,7 +16,39 @@ namespace BWP.Web.Pages.B3_DongFangWanQi.Bills.ProductionNotification_ { dic.Add("$Details", Dmo.Details); dic.Add("$DetailType", typeof(ProductionNotification_Detail)); + dic.Add("$相同产品并行显示", Get相同产品并行显示()); } + void AddSolidSType(StringBuilder str) + { + str.Append(@""); + } + private string Get相同产品并行显示() + { + var str = new StringBuilder(); + str.Append("
"); + AddSolidSType(str); + str.Append(@""); + + str.Append(""); + foreach (IGrouping grouping in Dmo.Details.GroupBy(x=>x.Goods_Name)) + { + foreach (ProductionNotification_Detail detail in grouping) + { + str.Append(""); + } + str.Append(""); + } + str.Append(""); + return str.ToString(); + } } }
订单号发货时间购货客户存货调整数量规格备注
"+ detail.Order_ID+ ""+detail.LoadTime+""+detail.Customer_Name+""+detail.Goods_Name+""+detail.SendNumber + ""+detail.Goods_Spec+""+detail.Remark+"
"+(Money<二位小数>?)grouping.Sum(x=>(x.SendNumber??0).Value)+"