chenhaozhe
5 天以前 25c2291ded30737b07fb7c93e5e231cc64733d2a
WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
@@ -2033,6 +2033,53 @@
        }
        #endregion
        #region 销售出库单 价格查询
        [Route("Kf_SellOutBill/GetKf_CheckSellOutBill_BalanceQuery")]
        [HttpGet]
        public object GetKf_CheckSellOutBill_BalanceQuery(string HInterID, string user)
        {
            try
            {
                //判断查询权限
                if (!DBUtility.ClsPub.Security_Log("Kf_SellOutBill_Money", 1, false, user))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无权限查询!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                DataSet ds2 = oCN.RunProcReturn("exec h_p_Kf_CheckSellOutBill_BalanceQuery " + HInterID, "h_p_Kf_CheckSellOutBill_BalanceQuery");
                if ((int)ds2.Tables[0].Rows[0]["HBack"] == 1)
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = ds2.Tables[0].Rows[0]["HRemark"].ToString();
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "Sucess!";
                    objJsonResult.data = ds2.Tables[1];
                    return objJsonResult;
                }
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "Exception!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #region 样品销售出库 审核/反审核
        /// <summary>
        /// </summary>