1
yusijie
2023-05-25 6592e8f84bf7958dd256a33b66e1fa3203296312
WebAPI/Controllers/WebAPIController.cs
@@ -26,6 +26,7 @@
        private json objjson = new json();
        private json objJsonResult = new json();
        SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
        Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
        //public static string sUrl = "http://183.129.128.86:9090/WEBS-WMSTest/WebService1.asmx";
        //  private POInStockBillServices oclscg_poinstockbillmain = new POInStockBillServices();
        /// <summary>
@@ -244,6 +245,49 @@
            }
        }
        /// <summary>
        /// 菜单栏
        /// </summary>
        /// <returns></returns>
        [Route("Web/MenuBar")]
        [HttpGet]
        public object MenuBar(string UserName)
        {
            try
            {
                //获取系统参数
                string Ret = "";
                if (oSystemParameter.ShowBill(ref Ret))
                {
                    //判断客户为龙山汽配
                    if (oSystemParameter.omodel.WMS_CampanyName == "龙山汽配")
                    {
                        //判断是否有查询权限
                        if (!DBUtility.ClsPub.Security_Log("Xt_MenuBar_Unfold", 1, false, UserName))
                        {
                            objjson.code = "0";
                            objjson.count = 0;
                            objjson.Message = "无展开菜单栏权限!";
                            objjson.data = null;
                            return objjson;
                        }
                    }
                }
                objjson.code = "0";
                objjson.count = 1;
                objjson.Message = "展开成功!";
                objjson.data = 1;
                return objjson;
            }
            catch (Exception e)
            {
                objjson.code = "0";
                objjson.count = 0;
                objjson.Message = "异常!" + e.Message;
                objjson.data = null;
                return objjson; ;
            }
        }
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="UserName"></param>