| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("Gy_MaterialController/DeltetBarCodeBill")] |
| | | [HttpGet] |
| | | public object DeltetBarCodeBill(string HInterID, string user) |
| | | [HttpPost] |
| | | public object DeltetBarCodeBill([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 user = sArray[1].ToString(); |
| | | |
| | | //编辑权限 |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_BarCodeBillList_Edit", 1, false, user)) |
| | | { |
| | |
| | | |
| | | try |
| | | { |
| | | Int64 lngBillKey = 0; |
| | | lngBillKey = DBUtility.ClsPub.isLong(HInterID); |
| | | if (lngBillKey == 0) |
| | | //Int64 lngBillKey = 0; |
| | | //lngBillKey = DBUtility.ClsPub.isLong(HInterID); |
| | | if (HInterID == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | |
| | | return objJsonResult; |
| | | } |
| | | DataSet Ds; |
| | | Ds = oCN.RunProcReturn("Select * from h_v_IF_BarCodeBillList Where HItemID=" + lngBillKey.ToString(), "h_v_IF_BarCodeBillList"); |
| | | Ds = oCN.RunProcReturn("Select * from h_v_IF_BarCodeBillList Where HItemID in (" + HInterID + ")", "h_v_IF_BarCodeBillList"); |
| | | if (Ds.Tables[0].Rows.Count != 0) |
| | | { |
| | | oCN.BeginTran(); |
| | | oCN.RunProc("Delete from Gy_BarCodeBill Where HItemID=" + lngBillKey.ToString()); |
| | | oCN.RunProc("Delete from Gy_BarCodeBill Where HItemID in (" + HInterID + ")"); |
| | | |
| | | oCN.Commit(); |
| | | objJsonResult.code = "1"; |
| | |
| | | objJsonResult.Message = "删除成功"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | #endregion |
| | | |