@using IwbZero.Setting @using NPOI.SS.Formula.Functions @using ShwasherSys.Authorization.Permissions @using ShwasherSys.CustomerInfo @using ShwasherSys.Models.OrderInfo @using ShwasherSys.Order.Dto @using ShwasherSys.OrderSendInfo @using ShwasherSys.OrderSendInfo.Dto @{ Layout = null; ViewBag.Title = "OrderDetail"; /*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 + " 日       ";*/ OrderHeaderDto orderHeader = ViewBag.OrderHeadDto; Customer customer = ViewBag.Customer; CustomerSend customerSend = ViewBag.CustomerSend; List orderItemSendDtos = ViewBag.OrderItemSendDtos; Boolean isCanViewPrice = IsGranted(PermissionNames.PagesOrderInfoOrderStatusMgQueryOrderPrice); } 订单明细信息 @* *@ @**@

 订单基本资料
流水号
@orderHeader.Id
客户订单号
@orderHeader.StockNo
客户编号
@orderHeader.CustomerId
联系人
@orderHeader.LinkName
电话
@orderHeader.Telephone
客户名称
@customer.CustomerName
传真
@orderHeader.Fax
订单日期
@orderHeader.OrderDate 送货地址 @customerSend.SendAdress
@if (isCanViewPrice) { } @{ string remark = @" 1,发货单编号红色显示则表示该发货单还没有开票
2,尚没有生成发货单,则显示未生成
3,每个明细还有剩余未发送,则剩余数量红色显示
4,送货时间显示绿色时候,表示离要求发货日期还有三天
5,送货日期显示红色时,表示已超过要求的发货日期 "; int index = 1; decimal totalAllPrice = 0; foreach (var itemSendDto in orderItemSendDtos) { DateTime loDt = itemSendDto.SendDate; DateTime loNow = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day); TimeSpan loSpan = loDt - loNow; string lcSendDate = string.Format("{0:d}", itemSendDto.SendDate); if (loSpan.Days < 0) { lcSendDate = "" + lcSendDate + ""; } if (loSpan.Days > -1 && loSpan.Days < 4) { lcSendDate = "" + lcSendDate + ""; } string lcReport = itemSendDto.IsReport=="Y" ? "需要" : "不需要"; string lcStatusName = ""; switch (itemSendDto.OrderItemStatusId) { case 15: lcStatusName = "完成审核"; break; case 9: lcStatusName = "发货"; break; case 11: lcStatusName = "结束"; break; } string lcIsPartSend = (itemSendDto.IsPartSend == "Y" ? "可以" : "不可以") + " 部分送货"; decimal isSendQuantity = itemSendDto.IsSendQuantity ?? 0; decimal loLeftNub = itemSendDto.Quantity - isSendQuantity; @if (isCanViewPrice) { } index++; totalAllPrice += itemSendDto.TotalPrice; } } @if (isCanViewPrice) { }
 订单详细信息
序号
产品编号 零件号 规格 材质 型号
表色
硬度 数量 单位
单价
总金额
送货日期
检验报告
备注
@index @itemSendDto.ProductNo @itemSendDto.PartNo @itemSendDto.Model @itemSendDto.Material @itemSendDto.ProductName @itemSendDto.SurfaceColor @itemSendDto.Rigidity @itemSendDto.Quantity @itemSendDto.OrderUnitName@itemSendDto.Price @itemSendDto.CurrencyId @itemSendDto.TotalPrice @itemSendDto.CurrencyId@Html.Raw(lcSendDate) @lcReport @itemSendDto.OrderItemDesc
@if (itemSendDto.ViewOrderSendStickBills.Count>0) { foreach (var sendItem in itemSendDto.ViewOrderSendStickBills) { string lcSendBillNo = sendItem.OrderSendBillNo; if (!string.IsNullOrEmpty(lcSendBillNo)) { if (string.IsNullOrEmpty(sendItem.OrderStickBillNo)) { lcSendBillNo = "" + lcSendBillNo + ""; } } else { lcSendBillNo= "未生成"; } } }
状态:@lcStatusName @lcIsPartSend @if (loSpan.Days < 0) { 超期的天数:@loSpan.Days } else { 剩余的天数:@loSpan.Days } 已发货数量:@isSendQuantity 剩余数量:@loLeftNub
发货单号 发货数量 发货时间 操作人编号 发货备注
@Html.Raw(lcSendBillNo) @sendItem.SendQuantity @sendItem.SendDate @sendItem.UserIDLastMod @sendItem.Remark
合计: 总金额:@totalAllPrice
说明: @Html.Raw(remark)
@**@