| | |
| | | } |
| | | } |
| | | [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"; |