From c3ad7025d45c0cd270396e83e6ba0e200d64c575 Mon Sep 17 00:00:00 2001 From: ch <37327@LLOOCCY> Date: 星期日, 31 七月 2022 14:59:32 +0800 Subject: [PATCH] 修改了 生产任务单维护根据单据号倒序排列 以及流转卡 已经有下游进出站单后,不允许删除 --- WebAPI/Controllers/SellOutBackController.cs | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/SellOutBackController.cs b/WebAPI/Controllers/SellOutBackController.cs index c8a743f..1b4d8fd 100644 --- a/WebAPI/Controllers/SellOutBackController.cs +++ b/WebAPI/Controllers/SellOutBackController.cs @@ -246,6 +246,8 @@ { try { + if (String.IsNullOrEmpty(sWhere)) + sWhere = "and 1 = 1 "; ds = webserver.GetKf_PonderationBillMain_Temp(HBillID, HBillType, sWhere); if (ds == null || ds.Tables[0].Rows.Count <= 0) { @@ -399,7 +401,7 @@ websLsmain.HEmpID = lsmain[0].HEmpID; websLsmain.HRemark = lsmain[0].HRemark; websLsmain.HMaker = lsmain[0].HMaker; - + websLsmain.HBillType = "1247";//鍥哄畾鍊� if (webserver.set_SaveSellOutBackBill_New(websLsmain, sSourceBillType, ref DBUtility.ClsPub.sErrInfo)) { objJsonResult.code = "0"; -- Gitblit v1.9.1