| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | /// <summary> |
| | | ///删除功能 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("Cg_POInStockBill/DeltetPOInStockBill")] |
| | | [HttpGet] |
| | | public object DeltetPOInStockBill(string HInterID) |
| | | { |
| | | try |
| | | { |
| | | oCN.BeginTran(); |
| | | oCN.RunProc("Delete From Cg_POInStockBillMain where HInterID = " + HInterID); |
| | | oCN.RunProc("Delete From Cg_POInStockBillSub where HInterID = " + 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; |
| | | } |
| | | } |
| | | |
| | | |
| | | // |