zzr99
2022-01-14 5e97cb34d9d8dc608de861eac31c7c10fdec2b5b
WebAPI/Controllers/CGGL/Cg_PurchaseReturnController.cs
@@ -74,7 +74,8 @@
            //    objJsonResult.data = null;
            //    return objJsonResult;
            //}
            try
            {
            Int64 lngBillKey = 0;
            lngBillKey = DBUtility.ClsPub.isLong(HInterID);
            if (lngBillKey == 0)
@@ -88,6 +89,24 @@
            DLL.ClsKf_SellOutBackBill oBill = new DLL.ClsKf_SellOutBackBill();
            if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo))
            {
                    if (oBill.omodel.HCloseMan != "")
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "当前单据已关闭,不能审核";
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                    if (oBill.omodel.HDeleteMan != "")
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "当前单据已作废,不能审核";
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                if (IsAudit == 1)
                {
                    if (oBill.omodel.HBillStatus == 2)
@@ -130,7 +149,6 @@
                        return objJsonResult;
                    }
                }
            }
            else
            {
@@ -141,6 +159,15 @@
                return objJsonResult;
            }
        }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "审核失败或反审核失败 " + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
    }
}