| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Web.Services.Configuration; |
| | | using Top.Api; |
| | | |
| | | namespace HH.WCS.ZhongCeJinTan.wms |
| | | { |
| | |
| | | |
| | | internal static bool delCntrItem(string cntrCode) |
| | | { |
| | | LogHelper.Info($"删除容器{cntrCode}", "Mes任务下发"); |
| | | LogHelper.Info($"删除容器{cntrCode}"); |
| | | var db = new SqlHelper<object>().GetInstance(); |
| | | |
| | | var tp = db.Queryable<CntrItemRel>().Where(it => it.S_CNTR_CODE == cntrCode).First(); |
| | |
| | | return db.Deleteable<CntrItemRel>().Where(it => it.S_CNTR_CODE == cntrCode).ExecuteCommand() > 0; |
| | | } |
| | | } |
| | | |
| | | internal static bool delCntrLoc(string cntrCode) |
| | | { |
| | | LogHelper.Info($"删除货位容器{cntrCode}"); |
| | | var db = new SqlHelper<object>().GetInstance(); |
| | | |
| | | var tp = db.Queryable<LocCntrRel>().Where(it => it.S_CNTR_CODE == cntrCode).First(); |
| | | if (tp == null) |
| | | { |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | return db.Deleteable<CntrItemRel>().Where(it => it.S_CNTR_CODE == cntrCode).ExecuteCommand() > 0; |
| | | } |
| | | } |
| | | |
| | | |
| | | internal static bool delCntr(string cntrCode) |
| | | { |
| | | var db = new SqlHelper<object>().GetInstance(); |