From b097dfc5a8879c198f4f2f9c32b28cfe4c7fc829 Mon Sep 17 00:00:00 2001 From: ch <37327@LLOOCCY> Date: 星期日, 02 一月 2022 19:16:40 +0800 Subject: [PATCH] 新增了单据里面删除按钮方法 --- WebAPI/Controllers/BaseSet/Gy_CustomerController.cs | 23 ++++++----------------- 1 files changed, 6 insertions(+), 17 deletions(-) diff --git a/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs b/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs index 9ec1e53..ee9a7f6 100644 --- a/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_CustomerController.cs @@ -25,7 +25,7 @@ /// </summary> [Route("Gy_Customer/list")] [HttpGet] - public object list(string sWhere,string Organization) + public object list(string sWhere, string Organization) { try { @@ -39,22 +39,11 @@ string sql = sql1 + sWhere + " order by HItemID desc"; ds = oCN.RunProcReturn(sql, "h_v_Gy_CustomerList"); } - if (ds == null || ds.Tables[0].Rows.Count == 0) - { - objJsonResult.code = "0"; - objJsonResult.count = 0; - objJsonResult.Message = "false锛�"; - objJsonResult.data = null; - return objJsonResult; - } - else - { - objJsonResult.code = "1"; - objJsonResult.count = 1; - objJsonResult.Message = "Sucess锛�"; - objJsonResult.data = ds.Tables[0]; - return objJsonResult; - } + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; } catch (Exception e) { -- Gitblit v1.9.1