From d025fb7f76a203f3d29f7041611115a00f7a010c Mon Sep 17 00:00:00 2001 From: 杨乐 <yang.le.192@qq.com> Date: 星期一, 14 二月 2022 16:19:14 +0800 Subject: [PATCH] 无数据的情况下去掉提示,直接显示无数据的列表,且带出操作工具栏 --- WebAPI/Controllers/CGGL/Kf_POStockInBackBillController.cs | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/CGGL/Kf_POStockInBackBillController.cs b/WebAPI/Controllers/CGGL/Kf_POStockInBackBillController.cs index 6fc6675..4f07283 100644 --- a/WebAPI/Controllers/CGGL/Kf_POStockInBackBillController.cs +++ b/WebAPI/Controllers/CGGL/Kf_POStockInBackBillController.cs @@ -37,11 +37,23 @@ } ds = oCN.RunProcReturn("select * from h_v_Kf_POStockInBackBillList " + sWhere + " order by 鏃ユ湡 desc", "h_v_Kf_POStockInBackBillList"); + + //if (ds.Tables[0].Rows.Count != 0 || ds != null) + //{ objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.Message = "Sucess锛�"; objJsonResult.data = ds.Tables[0]; return objJsonResult; + //} + //else + //{ + //objJsonResult.code = "0"; + //objJsonResult.count = 0; + //objJsonResult.Message = "鏃犳暟鎹�"; + //objJsonResult.data = null; + //return objJsonResult; + //} } catch (Exception ex) { -- Gitblit v1.9.1