From 9ec7cf906a983509fccd9ab360e1ac0e46a904eb Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 12 四月 2025 15:38:48 +0800
Subject: [PATCH] 生产退料

---
 DevApp/Gs.DevApp/UserControl/UCUpFile.cs |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/DevApp/Gs.DevApp/UserControl/UCUpFile.cs b/DevApp/Gs.DevApp/UserControl/UCUpFile.cs
index beb75dc..5bb6164 100644
--- a/DevApp/Gs.DevApp/UserControl/UCUpFile.cs
+++ b/DevApp/Gs.DevApp/UserControl/UCUpFile.cs
@@ -25,7 +25,19 @@
             btnUpSelect.Click += BtnUpSelect_Click;
             btnUp.Click += BtnUp_Click;
         }
+
+        /// <summary>
+        /// 
+        /// </summary>
         public string parentGuid
+        {
+            get;
+            set;
+        }
+        /// <summary>
+        /// 
+        /// </summary>
+        public string parentGroup
         {
             get;
             set;
@@ -86,7 +98,6 @@
 
         private async Task UploadFileAsync(string url, string filePath)
         {
-            UcLoading _loading = new UcLoading();
             string _parentGuid = parentGuid;
             using (var httpClient = new HttpClient())
                 try
@@ -98,7 +109,7 @@
                         using (var fs = File.OpenRead(filePath))
                         using (var streamContent = new StreamContent(fs))
                         {
-                            form.Add(streamContent, "file", _parentGuid + "~" + Path.GetFileName(filePath));
+                            form.Add(streamContent, "file", _parentGuid + "~" + Path.GetFileName(filePath) + "~" + parentGroup);
                             var response = await httpClient.PostAsync(url, form);
                             var responseString =
                                 await response.Content.ReadAsStringAsync();
@@ -112,7 +123,7 @@
                     Gs.DevApp.ToolBox.MsgHelper.ShowError(ex.Message);
 
                 }
-            _loading.Close();
+
         }
 
         #endregion

--
Gitblit v1.9.3