From a961ca32f736027331319d94837f84507ac81df5 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期五, 20 十二月 2024 12:37:34 +0800 Subject: [PATCH] 提交 --- CY_ECommercePlatform/CY.WebForm/Pages/financial/WaixieExpenses.aspx.cs | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/financial/WaixieExpenses.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/financial/WaixieExpenses.aspx.cs index 1ebb739..f826db9 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/financial/WaixieExpenses.aspx.cs +++ b/CY_ECommercePlatform/CY.WebForm/Pages/financial/WaixieExpenses.aspx.cs @@ -81,11 +81,28 @@ var fukuanshenqing = _fukuanshenqingBLL.GetModelByKeyid(id.ToInt32().Value); if (fukuanshenqing != null) { - var oA_Suppliers = oA_SuppliersBLL.getSingleSupplier(fukuanshenqing.SupplierId.ToString()); - this.txtPaymentUnit.Value = oA_Suppliers.Name; + if (!string.IsNullOrWhiteSpace(fukuanshenqing.Huming)) + { + this.txtPaymentUnit.Value = fukuanshenqing.Huming; + } + else + { + if (fukuanshenqing.SupplierId > 0) + { + var oA_Suppliers = oA_SuppliersBLL.getSingleSupplier(fukuanshenqing.SupplierId.ToString()); + if (oA_Suppliers != null) + { + this.txtPaymentUnit.Value = oA_Suppliers.Name; + this.txtSupplierId.Value = oA_Suppliers.Keyid.ToString(); + } + } + + + } + this.Keyid.Value = id; - this.txtSupplierId.Value = oA_Suppliers.Keyid.ToString(); + this.txtYouwufapiao.Value = fukuanshenqing.YouwufapiaoName; -- Gitblit v1.9.1