From df44ef7acaf24ff63662bf8a9b7e8fdd1a065366 Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期三, 18 十月 2023 13:21:45 +0800 Subject: [PATCH] 1 --- WebAPI/Controllers/POOrderController.cs | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/POOrderController.cs b/WebAPI/Controllers/POOrderController.cs index 4778e3a..94c2541 100644 --- a/WebAPI/Controllers/POOrderController.cs +++ b/WebAPI/Controllers/POOrderController.cs @@ -306,5 +306,51 @@ return objJsonResult; } } + + [Route("Cg_Poorder/UpdateSupSendGoodsDateRemark")] + [HttpGet] + /// <summary> + /// 鏇存柊鍥炲浜ゆ湡 -- 鍑礉濂堢壒 + /// </summary> + /// <param name=""></param> + /// <returns></returns> + public object UpdateSupSendGoodsDateRemark(string HInterID, string HEntryID,string HSupSendGoodsDateRemark) + { + try + { + if (HInterID == null || HInterID == "" || HInterID == "undefined" || HEntryID == null || HEntryID == "" || HEntryID == "undefined") + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鎿嶄綔澶辫触锛佷富鍐呯爜鎴栧瓙鍐呯爜涓虹┖"; + objJsonResult.data = 1; + return objJsonResult; + } + + string sql = ""; + + sql = "update Cg_POOrderBillSub set HSupSendGoodsDateRemark = '" + HSupSendGoodsDateRemark + "' where HInterID = " + HInterID + " and HEntryID = " + HEntryID; + oCn.RunProc(sql); + + //鍑礉濂堢壒 + sql = "update AIS20210820164804..T_PUR_POORDERENTRY set F_aaaa_Date1 = '" + HSupSendGoodsDateRemark + "' where FID = " + HInterID + " and FENTRYID = " + HEntryID; + oCn.RunProc(sql); + + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鎿嶄綔鎴愬姛锛�"; + objJsonResult.data = 1; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + } } \ No newline at end of file -- Gitblit v1.9.1