@using IwbZero.Setting @using NPOI.SS.Formula.Functions @using ShwasherSys.Common @using ShwasherSys.CustomerInfo @using ShwasherSys.OrderSendInfo @using ShwasherSys.OrderSendInfo.Dto @using ShwasherSys.ProductInfo @{ Layout = null; ViewBag.Title = "OrderSendBillDetail"; Customer customerInfo = ViewBag.CustomerInfo; OrderSendBillDto sendBill = ViewBag.SendBill; List orderSends = ViewBag.OrderSends; string sendTitle = SettingManager.GetSettingValue("SysUserCop") + SettingManager.GetSettingValue("SENDBILLTITLE"); string sendAddress = SettingManager.GetSettingValue("SENDADDRESS"); string sendTel = SettingManager.GetSettingValue("SENDTELEPHONE"); string tddate = "日期: " + DateTime.Now.Year + " 年 " + DateTime.Now.Month + " 月 " + DateTime.Now.Day + " 日       "; ShwasherSys.Inspection.TemplateInfo templateInfo = ViewBag.TemplateInfo; string tmpKey =""; if (templateInfo != null) { tmpKey = templateInfo.TempKey; } List customerDefaultProducts = ViewBag.CustomerDefaultProducts; List productProperties = ViewBag.MaterialProductProperties; } 发货单打印 @* *@ @**@

单号:@sendBill.Id
@sendAddress
@Html.Raw(sendTel)
客户: @customerInfo.CustomerName 地址: @sendBill.SendAddress
联系电话: @sendBill.ContactTels 联系人: @sendBill.ContactMan
@Html.Raw(tddate)
@{ int index = 1; foreach (var orderSend in orderSends) { var sendQuantity = Math.Round(Math.Floor(orderSend.SendQuantity * 1000) / 1000, 3);//发货数量 var quantityPerPack = orderSend.QuantityPerPack ?? 0; quantityPerPack = quantityPerPack == 0 ? sendQuantity : quantityPerPack;//每包数量,如果为0则等于发货数量 decimal packageCount = sendQuantity == 0 ? 0 : (sendQuantity <= quantityPerPack ? 1 : Math.Floor(orderSend.SendQuantity / quantityPerPack)); var sysl = sendQuantity - quantityPerPack * packageCount; string mHsCode = CommonQueryService.GetMaterialHsCode(orderSend.ProductNo, productProperties); string productHsCode = CommonQueryService.GetProductHsCode(orderSend.CustomerId, orderSend.ProductNo, customerDefaultProducts); @if (string.IsNullOrEmpty(orderSend.StockNo)) { } else { } index++; } }
序号 客户订单号 零件号 描述 规格 表色 材质 硬度 单位 数量 产品海关编号 材料海关编号 (箱数*千件数+零头数=发货数) 批次号
箱数 千件/箱 零头 总数
@index@orderSend.OrderNo@orderSend.StockNo@orderSend.PartNo @orderSend.ProductName @orderSend.Model @orderSend.SurfaceColor @orderSend.Material @orderSend.Rigidity 千件 @sendQuantity @productHsCode @mHsCode @packageCount @quantityPerPack @sysl @sendQuantity @orderSend.ProductBatchNum
制表人: 送货人: 签收人: 送货日期: