@using Abp.Authorization @using IwbZero.Setting @using NPOI.SS.Formula.Functions @using ShwasherSys.Authorization.Permissions @using ShwasherSys.CustomerInfo @using ShwasherSys.Invoice @using ShwasherSys.OrderSendInfo @using ShwasherSys.OrderSendInfo.Dto @{ Layout = null; ViewBag.Title = "InvoiceBillDetail"; Customer customerInfo = ViewBag.CustomerInfo; OrderSendBillDto sendBill = ViewBag.SendBill; string sendStickBillNo = ViewBag.SendStickBillNo; 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 + " 日       "; bool isCanViewPrice = PermissionChecker.IsGranted(PermissionNames.PagesOrderInfoOrderMgQueryOrderPrice); } 发票详情 @* *@ @**@

@{ var colspan = isCanViewPrice ? 17 : 11; var col3 = colspan/5; var col4 = colspan/4+1; var col5 = colspan/5; var col6 = colspan/3; var col7 = colspan/2+1; var col8 = colspan / 7; } @{ var col2 = colspan - 2; } @{ } @if (isCanViewPrice) { }
开票前对账(发票)
客户: @customerInfo.CustomerName 地址: @if (sendBill != null) { @sendBill.SendAddress }
联系电话: @if (sendBill != null) { @sendBill.ContactTels } 联系人: @if (sendBill != null) { @sendBill.ContactMan }
单号: @sendStickBillNo @Html.Raw(tddate)
@if (isCanViewPrice) { } @{ int index = 1; decimal ldAccontTotal = 0; decimal ldNoTaxTotal = 0; string currencyId = "CNY"; foreach (var orderSend in orderSends) { var sendQuantity = string.Format("{0:N3}", orderSend.SendQuantity ?? 0); var price = string.Format("{0:N3}", orderSend.Price); var logisticsFee = string.Format("{0:N3}", orderSend.LogisticsFee); var moldFee = string.Format("{0:N3}", orderSend.MoldFee); var noTaxprice = string.Format("{0:N3}", orderSend.AfterTaxPrice); var totalprice = string.Format("{0:N3}", orderSend.totalprice); var totalNoTaxprice = string.Format("{0:N3}", (orderSend.SendQuantity ?? 0) * orderSend.AfterTaxPrice); var sendDate = string.Format("{0:yyyy-MM-dd}", orderSend.SendDate); currencyId = orderSend.CurrencyId; string tmp = ""; @if (index == orderSends.Count) { tmp = "border-bottom: 1px solid #888383;"; } @if (string.IsNullOrEmpty(orderSend.StockNo)) { } else { } @if (isCanViewPrice) { } ldAccontTotal += orderSend.totalprice; ldNoTaxTotal += orderSend.AfterTaxTotalprice; index++; } string lcAccontTotal = string.Format("{0:N3}", ldAccontTotal); string lcNoTaxTotal = string.Format("{0:N3}", ldNoTaxTotal); }
序号 客户订单号 送货单号 送货日期 零件号 规格 产品名 硬度 表色 数量 单位 含税单价 不含税单价 模具费 运费 含税总价 不含税总价
@index@orderSend.OrderNo@orderSend.StockNo@orderSend.OrderSendBillNo @sendDate @orderSend.PartNo @orderSend.Model @orderSend.ProductName @orderSend.Rigidity @orderSend.SurfaceColor @sendQuantity @orderSend.OrderUnitName@price @noTaxprice @moldFee @logisticsFee @totalprice @totalNoTaxprice
总金额(@currencyId): @lcAccontTotal   @lcNoTaxTotal
@**@