duhe
2024-03-12 c1df9ef90d1d8edcad3c767ce5b2f559b463e1c8
WebAPI/Controllers/XSGL/Xs_SeOrderBillController.cs
@@ -1922,25 +1922,25 @@
                }
                if (IsAudit == 1) //行反关闭提交
                {
                    //oBill.oCn.BeginTran();
                    oBill.oCn.BeginTran();
                    //行反关闭提交
                    if (oBill.CancelRow(lngBillKey, HEntryID, oBill.omodel.HBillNo, CurUserName, ref DBUtility.ClsPub.sExeReturnInfo) == true)
                    {
                        //ds = oCN.RunProcReturn("exec h_p_Kf_CheckSeOrderBill_CrediControl " + oBill.omodel.HInterID, "h_p_Kf_CheckSeOrderBill_CrediControl");
                        //if (ds.Tables[0].Rows[0]["HBack"].ToString() == "1")
                        //{
                        //    objJsonResult.code = "0";
                        //    objJsonResult.count = 0;
                        //    objJsonResult.Message = "审核失败!原因:" + ds.Tables[0].Rows[0]["HRemark"].ToString();
                        //    objJsonResult.data = null;
                        //    oBill.oCn.RollBack();
                        //    return objJsonResult;
                        //}
                        ds = oCN.RunProcReturn("exec h_p_Kf_CheckSeOrderBill_CrediControl " + oBill.omodel.HInterID, "h_p_Kf_CheckSeOrderBill_CrediControl");
                        if (ds.Tables[0].Rows[0]["HBack"].ToString() == "1")
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "审核失败!原因:" + ds.Tables[0].Rows[0]["HRemark"].ToString();
                            objJsonResult.data = null;
                            oBill.oCn.RollBack();
                            return objJsonResult;
                        }
                        objJsonResult.code = "1";
                        objJsonResult.count = 1;
                        objJsonResult.Message = "反关闭成功";
                        objJsonResult.data = null;
                        //oBill.oCn.Commit();
                        oBill.oCn.Commit();
                        return objJsonResult;
                    }
                    else
@@ -1949,7 +1949,7 @@
                        objJsonResult.count = 0;
                        objJsonResult.Message = "反关闭失败!原因:" + DBUtility.ClsPub.sExeReturnInfo;
                        objJsonResult.data = null;
                        //oBill.oCn.RollBack();
                        oBill.oCn.RollBack();
                        return objJsonResult;
                    }
                }