| | |
| | | return objjson; |
| | | } |
| | | } |
| | | |
| | | [Route("DeltetBarCodeBill")] |
| | | [HttpGet] |
| | | public object DeltetBarCodeBill(string HInterID, string HUserName) |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | try |
| | | { |
| | | WebAPIController.Add_Log("条码档案删除", HUserName, "条码档案删除"); |
| | | oCN.BeginTran(); |
| | | //LogService.Write("Delete From Gy_BarCodeBill where HItemID in(" + HInterID + ")") ; |
| | | oCN.RunProc("Delete From Gy_BarCodeBill where HItemID in(" + HInterID + ") "); |
| | | oCN.Commit(); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "删除成功!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exception!" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |