From 6bb722be12f95d3f55a141555be2c79b8fcaeca9 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期五, 07 二月 2025 08:35:44 +0800 Subject: [PATCH] 订单打印能查看合同 --- CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx.cs | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx.cs index 0c907bc..fbe26e9 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx.cs +++ b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx.cs @@ -54,7 +54,7 @@ selCooperativeStateId.DataBind(); selSuppliersLevelId.DataSource = _Sys_DictionaryBLL.GetDataByType("渚涘簲鍟嗙骇鍒�"); selSuppliersLevelId.DataBind(); - selSuppliersTypeId.DataSource = _Sys_DictionaryBLL.GetDataByType("渚涘簲鍟嗙被鍒� "); + selSuppliersTypeId.DataSource = _Sys_DictionaryBLL.GetDataByType("渚涘簲鍟嗙被鍒� ").OrderBy(x=>x.LastUpdateTime); selSuppliersTypeId.DataBind(); } @@ -82,6 +82,9 @@ this.txtName.Value = supplier.Name; this.txtOfficersMobile.Value = supplier.OfficersMobile; this.txtOfficersQQ.Value = supplier.OfficersQQ; + this.txtBank.Value = supplier.Bank; + this.txtHuming.Value = supplier.Huming; + this.txtAccountID.Value = supplier.AccountID; this.txtPostcode.Value = supplier.Postcode; this.txtQQ.Value = supplier.QQ; this.txtRegisterCapital.Value = supplier.RegisterCapital.ToString2(); @@ -221,6 +224,17 @@ supplier.Name = this.txtName.Value; supplier.OfficersMobile = this.txtOfficersMobile.Value; supplier.OfficersQQ = this.txtOfficersQQ.Value; + if (!string.IsNullOrEmpty(this.txtHuming.Value)) + { + supplier.Huming = this.txtHuming.Value; + } + else + { + supplier.Huming = this.txtName.Value; + } + + supplier.Bank = this.txtBank.Value; + supplier.AccountID = this.txtAccountID.Value; supplier.Postcode = this.txtPostcode.Value; supplier.QQ = this.txtQQ.Value; supplier.RegisterCapital = (string.IsNullOrEmpty(this.txtRegisterCapital.Value) ? "0" : this.txtRegisterCapital.Value).ToInt32(); @@ -243,7 +257,15 @@ supplier.LastUpdateTime = System.DateTime.Now; if (_OA_SuppliersBLL.InsertModel(supplier)) { - JavaScript.MessageBox("鏂板鎴愬姛", this,true,true); + if (!string.IsNullOrEmpty(Request["flasss"])) + { + JavaScript.MessageBoxCloseAndRefreshparent("鏂板鎴愬姛", this); + } + else + { + JavaScript.MessageBox("鏂板鎴愬姛", this, true, true); + } + } else JavaScript.MessageBox("娣诲姞澶辫触", this); -- Gitblit v1.9.1