| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | DataSet ds2 = oCN.RunProcReturn("exec h_p_Kf_CheckSellOutBill_BalanceQuery " + HInterID, "h_p_Kf_CheckSellOutBill_BalanceQuery"); |
| | | DataSet ds2 = oCN.RunProcReturn("exec h_p_Kf_CheckSellOutBill_CrediControl " + HInterID, "h_p_Kf_CheckSellOutBill_BalanceQuery"); |
| | | |
| | | if ((int)ds2.Tables[0].Rows[0]["HBack"] == 1) |
| | | if (ds2 == null) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = ds2.Tables[0].Rows[0]["HRemark"].ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | throw new Exception("无返回值!"); |
| | | }else |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucess!"; |
| | | objJsonResult.data = ds2.Tables[1]; |
| | | objJsonResult.data = ds2.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | } |