zrg
2024-04-02 7eec29ace1b0fd5e8e9671c7b13120b36d14b596
WebAPI/Controllers/XSGL/Xs_CusRatingChangeBillController.cs
@@ -37,14 +37,14 @@
            {
                List<object> columnNameList = new List<object>();
                //查看权限
                //if (!DBUtility.ClsPub.Security_Log("Gy_ProjectStage_Query", 1, false, user))
                //{
                //    objJsonResult.code = "0";
                //    objJsonResult.count = 0;
                //    objJsonResult.Message = "无查看权限!";
                //    objJsonResult.data = null;
                //    return objJsonResult;
                //}
                if (!DBUtility.ClsPub.Security_Log("Xs_CusRatingChangeBill_Query", 1, false, user))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无查看权限!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                if (sWhere == null || sWhere.Equals(""))
                {
@@ -359,7 +359,7 @@
                objJsonResult.code = "1";
                objJsonResult.count = 1;
                objJsonResult.Message = "Sucess!";
                objJsonResult.Message = "您已删除单据号为" + BillOld.omodel.HBillNo + "的信用额度申请单!";
                objJsonResult.data = null;
                return objJsonResult;
            }
@@ -817,10 +817,20 @@
        /// </summary>
        [Route("Xs_CusRatingChangeBill/getCustomerBalance")]
        [HttpGet]
        public object getCustomerBalance(Int64 HCusID)
        public object getCustomerBalance(Int64 HCusID, string CurUserName)
        {
            try
            {
                //查看权限
                if (!DBUtility.ClsPub.Security_Log("Gy_Customer_Balance", 1, false, CurUserName))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无客户余额查看权限!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                string sql = "exec h_p_Gy_Customer_CrediControl " + HCusID;
                ds = oCN.RunProcReturn(sql, "h_p_Gy_Customer_CrediControl");
                if(ds == null || ds.Tables[0].Rows.Count == 0)