| | |
| | | using System.Net; |
| | | using System.Net.Http; |
| | | using System.Web.Http; |
| | | using System.Windows.Forms; |
| | | using WebAPI; |
| | | using WebAPI.Models; |
| | | using WebAPI.Service; |
| | |
| | | /// <returns></returns> |
| | | [Route("WEBSController/GetDeletePackUnionBill_Json")] |
| | | [HttpGet] |
| | | public object GetDeletePackUnionBill_Json(long HInterID, string HBillType, string HMaker) |
| | | public object GetDeletePackUnionBill_Json(long HInterID, string HBillNo, string HBarCode_Pack, string HMaker) |
| | | { |
| | | try |
| | | { |
| | | oCn.RunProc("exec h_p_WMS_PackUnionBill_Delete " + HInterID.ToString() + ",'" + HBillType + "','" + HMaker + "'", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å ææå"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | string HComputerName = SystemInformation.ComputerName; //设å¤åç§° |
| | | string HIPAddress = ""; //IP |
| | | string HModCaption = "PDAçäº§å æå"; //模åå |
| | | if (oWebs.set_DeletePackUnionBill(HInterID, HBillNo, HBarCode_Pack, HMaker, HComputerName, HIPAddress, HModCaption, ref DBUtility.ClsPub.sErrInfo)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å ææå"; //æåï¼ |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = DBUtility.ClsPub.sErrInfo; //å¤±è´¥ï¼ |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// ä¸ä¼ å é¤ç»æåä¿¡æ¯ 20231027ä½åº |
| | | ///// </summary> |
| | | ///// <returns></returns> |
| | | //[Route("WEBSController/GetDeletePackUnionBill_Json")] |
| | | //[HttpGet] |
| | | //public object GetDeletePackUnionBill_Json(long HInterID, string HBillType, string HMaker) |
| | | //{ |
| | | // try |
| | | // { |
| | | // oCn.RunProc("exec h_p_WMS_PackUnionBill_Delete " + HInterID.ToString() + ",'" + HBillType + "','" + HMaker + "'", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 1; |
| | | // objJsonResult.Message = "å ææå"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | // catch (Exception e) |
| | | // { |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "å æå¤±è´¥ï¼" + e.ToString(); |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | // } |
| | | //} |
| | | |
| | | #endregion |
| | | |
| | | #endregion |