From 5e7b57af029d4e26557ff081a338cd5e5604a4fb Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期五, 08 八月 2025 16:51:34 +0800
Subject: [PATCH] 条码转存模块 添加 客户编号 款号 分组 字段

---
 WebAPI/Controllers/WebAPIController.cs |   65 ++++++++++++++++++++++++++------
 1 files changed, 52 insertions(+), 13 deletions(-)

diff --git a/WebAPI/Controllers/WebAPIController.cs b/WebAPI/Controllers/WebAPIController.cs
index 73e2772..399f33c 100644
--- a/WebAPI/Controllers/WebAPIController.cs
+++ b/WebAPI/Controllers/WebAPIController.cs
@@ -21098,7 +21098,8 @@
         }
         #region [浠庢暟鎹簱鍔犺浇鑿滃崟 APP]
 
-        //public class AppMenuLoad {
+        //public class AppMenuLoad
+        //{
         //    public string HitemID { get; set; } // 涓婚敭
         //    public string HPartentID { get; set; } = "0"; // 鐖惰妭鐐笽D
         //    public string HEntryID { get; set; } // 鑿滃崟鑺傜偣id
@@ -21114,9 +21115,40 @@
         //}
         //[Route("Web/MenuList_APP")]
         //[HttpGet]
-        //public object MenuList_APP()
+        //public object MenuList_APP(string HMaker, string HType)
         //{
-        //    return null;
+        //    try {
+        //        DataSet ds = oCN.RunProcReturn("exec h_p_Gy_MenuDefineSet_APP_Get" +
+        //            "@HMaker = '" + HMaker + "'" +
+        //            "@HType = '" + HType + "'"
+        //            , "h_p_Gy_MenuDefineSet_APP_Get");
+
+        //        if((bool)ds.Tables[0].Rows[0]["returntype"] == true)
+        //        {
+        //            objJsonResult.code = "1";
+        //            objJsonResult.count = 1;
+        //            objJsonResult.Message = ds.Tables[0].Rows[0]["mesg"].ToString();
+        //            objJsonResult.data = ds.Tables[1];
+        //            return objJsonResult;
+        //        }
+        //        else
+        //        {
+        //            objJsonResult.code = "0";
+        //            objJsonResult.count = 0;
+        //            objJsonResult.Message = ds.Tables[0].Rows[0]["mesg"].ToString();
+        //            return objJsonResult;
+        //        }
+
+        //    }
+        //    catch(Exception e)
+        //    {
+        //        objJsonResult.code = "0";
+        //        objJsonResult.count = 0;
+        //        objJsonResult.Message = e.ToString();
+        //        objJsonResult.data = null;
+        //        return objJsonResult;
+        //    }
+
         //}
 
         //[Route("Web/SetMenuList_APP")]
@@ -21133,20 +21165,27 @@
         //        string MenuName = sArray[2].ToString();
         //        string type = sArray[3].ToString();
 
-        //        if(String.Equals(type, "APP", StringComparison.InvariantCultureIgnoreCase))
+        //        if (String.Equals(type, "APP", StringComparison.InvariantCultureIgnoreCase))
         //        {
+        //            oCN.BeginTran();
         //            List<AppMenuLoad> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<AppMenuLoad>>(msg2);
-        //            string sql2 = "";
-
-        //            foreach (AppMenuLoad one in list)
+        //            string sql1 = "delete from Gy_MenuDefineSet_APP where HMenuName = '" + MenuName + "' and HMaker = '" + user + "'";
+        //            oCN.RunProcReturn(sql1, "Gy_MenuDefineSet_APP");
+        //            list.ForEach(one =>
         //            {
-        //                StringBuilder sqlFragment = new StringBuilder();
-        //                sqlFragment.Append("insert into Gy_MenuDefineSet(");
-        //                var oneType = one.GetType();
-        //            }
+        //                string sql2 = "insert into Gy_MenuDefineSet_APP( HEntryID, HIndex, HName, HMenuName, HPicNum, HShowMode, HMaker)" +
+        //               "Values('" + one.HEntryID + "','" + one.HIndex + "','" + one.HName + "','" + one.HName +
+        //               "','" + MenuName + "','" + one.HPicNum + "','" + one.HShowMode + "','" + user + "')";
+        //                oCN.RunProcReturn(sql2, "Gy_MenuDefineSet_APP");
+        //            });
 
+        //            oCN.Commit();
 
-        //            return null;
+        //            objJsonResult.code = "1";
+        //            objJsonResult.count = 1;
+        //            objJsonResult.Message = "璁剧疆鎴愬姛锛�";
+        //            objJsonResult.data = null;
+        //            return objJsonResult;
         //        }
         //        else
         //        {
@@ -21158,7 +21197,7 @@
         //        }
 
         //    }
-        //    catch(Exception e)
+        //    catch (Exception e)
         //    {
         //        objJsonResult.code = "0";
         //        objJsonResult.count = 0;

--
Gitblit v1.9.1