Merge branch 'master' of http://101.37.171.70:10101/r/SRM-API-HK
| | |
| | | public object DeltetBarCodeBill([FromBody] JObject oData) |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | |
| | | try |
| | | { |
| | | var _value = oData["oData"].ToString(); |
| | |
| | | string HInter = sArray[0].ToString(); |
| | | string HInterID = HInter.Replace("\"", ""); |
| | | string HUserName = sArray[1].ToString(); |
| | | |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_SupMaterPack_Delete", 1, false, HUserName)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无保存权限!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | string FCusName = oSystemParameter.GetSingleSystemParameter("WMS_CampanyName", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | string sql = "select HItemID,HBarCode,HSourceInterID,HSourceEntryID,HQty,HBarCodeType,HSourceBillType from Gy_BarCodeBill where HItemID in(" + HInterID + ") "; |
| | | //LogService.Write("删除sql:" + sql); |
| | |
| | | string VsWhere = sWhere; |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | DataSet ds; |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_SupMaterPack_Query", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无保存权限!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //其他过滤 |
| | | //string sql = " where 1 = 1 " + sqlWhere; |
| | | ////转换特殊字符 |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran(); |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_SupMaterPack_Delete", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "无保存权限!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | oCN.BeginTran(); |
| | | |
| | | // oCN.RunProc("delete from Gy_UserMaterRelation where HInterID = " + HItemID); |
| | | oCN.RunProc("delete from Gy_UserMaterRelation where HItemID='" + HItemID + "'"); |