From ed4c84635e9ca554a05fae3521029df338193e8a Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 06 二月 2026 15:44:36 +0800
Subject: [PATCH] 修改供应商其他资质上传

---
 CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx.cs |   63 ++++++++++++++++---------------
 1 files changed, 32 insertions(+), 31 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx.cs
index 317a942..0dc2d0e 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx.cs
@@ -321,37 +321,7 @@
                 return;
             }
 
-            #region
-            //鍏跺畠璧勮川鏂囦欢
-            OA_SuppliersOtherQualification model = new OA_SuppliersOtherQualification();
-            CY.WebForm.cs.UploadCS.UpFileResult _UpFileResult3 = CY.WebForm.cs.UploadCS.Upload("ProductPics", model.FileId);
-
-            if (_UpFileResult3.returnerror.Count == 0)
-            {
-                ArrayList NameList = new ArrayList();
-                for (int i = 0; i < _UpFileResult3.returnfilename.Count; i++)
-                {
-                    OA_SuppliersOtherQualification model1 = new OA_SuppliersOtherQualification();
-                    model1.FileId = _UpFileResult3.returnfilename[i].ToString();
-                    model1.SuppliersId = Request["Keyid"].ToInt32();
-                    NameList.Add(model1);
-                }
-                string[] aaa = (Request.Form["OldProductPics"]??"").Split(',');
-                for (int i = 0; i < aaa.Length; i++)
-                {
-                    if (!string.IsNullOrEmpty(aaa[i].ToString2()))
-                    {
-                        OA_SuppliersOtherQualification newmodel = new OA_SuppliersOtherQualification();
-                        newmodel.FileId = aaa[i].ToString2();
-                        newmodel.SuppliersId = Request["Keyid"].ToInt32();
-                        NameList.Add(newmodel);
-                    }
-                }
-                _OA_SuppliersOtherQualificationBLL.DeleteAllModel(supplier.Keyid.ToString());
-                _OA_SuppliersOtherQualificationBLL.InsertModelList(NameList, supplier.Keyid.ToString());
-            }
-
-            #endregion
+            
 
             supplier.CooperativeStateId = this.selCooperativeStateId.Value.ToInt32();
             supplier.SuppliersLevelId = this.selSuppliersLevelId.Value.ToInt32();
@@ -405,6 +375,37 @@
                 supplier.CreateTime = System.DateTime.Now;
                 if (_OA_SuppliersBLL.InsertModel(supplier))
                 {
+                    #region
+                    //鍏跺畠璧勮川鏂囦欢
+                    OA_SuppliersOtherQualification model = new OA_SuppliersOtherQualification();
+                    CY.WebForm.cs.UploadCS.UpFileResult _UpFileResult3 = CY.WebForm.cs.UploadCS.Upload("ProductPics", model.FileId);
+
+                    if (_UpFileResult3.returnerror.Count == 0)
+                    {
+                        ArrayList NameList = new ArrayList();
+                        for (int i = 0; i < _UpFileResult3.returnfilename.Count; i++)
+                        {
+                            OA_SuppliersOtherQualification model1 = new OA_SuppliersOtherQualification();
+                            model1.FileId = _UpFileResult3.returnfilename[i].ToString();
+                            model1.SuppliersId = supplier.Keyid;
+                            NameList.Add(model1);
+                        }
+                        string[] aaa = (Request.Form["OldProductPics"] ?? "").Split(',');
+                        for (int i = 0; i < aaa.Length; i++)
+                        {
+                            if (!string.IsNullOrEmpty(aaa[i].ToString2()))
+                            {
+                                OA_SuppliersOtherQualification newmodel = new OA_SuppliersOtherQualification();
+                                newmodel.FileId = aaa[i].ToString2();
+                                newmodel.SuppliersId = supplier.Keyid;
+                                NameList.Add(newmodel);
+                            }
+                        }
+                        _OA_SuppliersOtherQualificationBLL.DeleteAllModel(supplier.Keyid.ToString());
+                        _OA_SuppliersOtherQualificationBLL.InsertModelList(NameList, supplier.Keyid.ToString());
+                    }
+
+                    #endregion
                     if (!string.IsNullOrEmpty(Request["flasss"]))
                     {
                         JavaScript.MessageBoxCloseAndRefreshparent("鏂板鎴愬姛", this);

--
Gitblit v1.9.1