| | |
| | | if (db.Queryable<LocCntrRel>().Count(a => a.S_CNTR_CODE.Trim() == cntrCode) == 0) |
| | | { |
| | | var cir = new LocCntrRel { S_LOC_CODE = loc, S_CNTR_CODE = cntrCode}; |
| | | var con = new Container { S_CODE = cntrCode,N_DETAIL_COUNT = 1,C_FULL="0" }; |
| | | var con = new Container { S_CODE = cntrCode,N_DETAIL_COUNT = 1,C_FULL="2" };//默认满 主动绑定服务用 |
| | | db.Insertable<LocCntrRel>(cir).ExecuteCommand(); |
| | | db.Insertable<Container>(con).ExecuteCommand(); |
| | | if (!string.IsNullOrEmpty(itemCode)) |
| | | { |
| | | LogHelper.Info($"绑定容器参数:{JsonConvert.SerializeObject(con)}"); |
| | | ContainerHelper.BindCntrItem(cntrCode, itemCode, itemName); |
| | | //有物料的话就是满的 |
| | | con.C_FULL = "2"; |
| | | db.Updateable(con).UpdateColumns(it => it.C_FULL).ExecuteCommand(); |
| | | ////有物料的话就是满的 |
| | | //con.C_FULL = "2"; |
| | | //db.Updateable(con).UpdateColumns(it => it.C_FULL).ExecuteCommand(); |
| | | } |
| | | } |
| | | } |