| | |
| | | using System.Web.Http; |
| | | using WebAPI.BLL; |
| | | using WebAPI.Models; |
| | | using WebAPI.Utility; |
| | | |
| | | namespace WebAPI.Controllers |
| | | { |
| | |
| | | return objjson; ; |
| | | } |
| | | #endregion |
| | | #region[打印idSession] |
| | | [Route("linteridSession")] |
| | | [HttpPost] |
| | | public object linteridSession([FromBody] JObject linterid) |
| | | { |
| | | var _linterid = linterid["linterid"].ToString(); |
| | | var _huserName = linterid["HUserName"].ToString(); |
| | | var postMesseege = _linterid + ";" + _huserName; |
| | | //HttpHelper.PostData("http://localhost:8082/ZYMES/layuiAdmin.std-v1.2.1/src/views/SRM/Api/SRM_Web_PoBarCodeBillApi.ashx", postMesseege); |
| | | HttpHelper.PostData("http://60.191.21.115:9090/layuiAdmin.std-v1.2.1/src/views/SRM/Api/SRM_Web_PoBarCodeBillApi.ashx", postMesseege); |
| | | SQLHelper.ClsCNSRM oCn = new SQLHelper.ClsCNSRM(); |
| | | string sql = $"Update Gy_BarCodeBill set HPrintQty=isnull(HPrintQty,0) + 1 where HItemID in ({_linterid})"; |
| | | oCn.RunProc(sql); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = ""; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | |
| | | //HttpContext.Current.Session["linterid"]; |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | } |