| | |
| | | } |
| | | } |
| | | [Route("POOrderAccept")] |
| | | [HttpGet] |
| | | [HttpPost] |
| | | /// <summary> |
| | | /// 订单接受 |
| | | /// </summary> |
| | | /// <param name="HInterID"></param> |
| | | /// <returns></returns> |
| | | public object POOrderAccept(string HInterID, string HBillNo, string HUser) |
| | | public object POOrderAccept([FromBody] JObject oData) |
| | | { |
| | | var _value = oData["oData"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string HInter = sArray[0].ToString(); |
| | | string HInterID = HInter.Replace("\"", ""); //内码 |
| | | string HBillNo = sArray[1].ToString().Replace("\"", ""); |
| | | string HUser = sArray[2].ToString(); //用户名 |
| | | |
| | | try |
| | | { |
| | | if (DBUtility.ClsPub.isLong(HInterID) == 0) |
| | | if (DBUtility.ClsPub.isStrNull(HInterID) == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | DAL.ClsCg_POOrderBill oBill = new DAL.ClsCg_POOrderBill(); |
| | | oBill.WebAccept(DBUtility.ClsPub.isLong(HInterID), DBUtility.ClsPub.isStrNull(HBillNo), DBUtility.ClsPub.isStrNull(HUser), ref DBUtility.ClsPub.sExeReturnInfo); |
| | | objJsonResult.code = "0"; |
| | |
| | | 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_gysjqhf = '" + 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; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |