|
|
@@ -329,6 +329,7 @@ namespace MySystem
|
|
|
CreateDate = DateTime.Now,
|
|
|
CreateMan = Operator,
|
|
|
UserId = store.UserId, //创客
|
|
|
+ ToUserId = tostore.UserId, //收货创客
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ChangeRecordNo = ChangeNo, //变更记录单号
|
|
|
BizBatchNo = BatchNo, //业务批次号
|
|
|
@@ -343,33 +344,10 @@ namespace MySystem
|
|
|
FromDate = DateTime.Now, //出库时间
|
|
|
FromRemark = OutNote, //出库备注
|
|
|
SourceStoreId = machine.SourceStoreId, //源仓库
|
|
|
+ ToStoreId = tostore.Id, //收货仓库
|
|
|
StoreId = store.Id, //仓库
|
|
|
});
|
|
|
|
|
|
- db.StoreChangeHistory.Add(new StoreChangeHistory()
|
|
|
- {
|
|
|
- CreateDate = DateTime.Now,
|
|
|
- CreateMan = Operator,
|
|
|
- UserId = tostore.UserId, //创客
|
|
|
- BrandId = BrandId, //产品类型
|
|
|
- ChangeRecordNo = ChangeNo, //变更记录单号
|
|
|
- BizBatchNo = BatchNo, //业务批次号
|
|
|
- TransType = 1, //交易类型
|
|
|
- SnNo = SnNo, //SN编号
|
|
|
- SnType = machine.PosSnType, //SN机具类型
|
|
|
- StockOpDirect = 0, //库存操作方向
|
|
|
- DeviceVendor = machine.DeviceName, //设备厂商
|
|
|
- DeviceModel = machine.DeviceKind, //设备型号
|
|
|
- DeviceType = machine.DeviceType, //设备类型
|
|
|
- ToUserId = tostore.UserId, //收货创客
|
|
|
- ToStoreId = tostore.Id, //创客退货收货仓库
|
|
|
- ToDate = DateTime.Now, //入库时间
|
|
|
- ToRemark = OutNote, //入库备注
|
|
|
- SourceStoreId = machine.SourceStoreId, //源仓库
|
|
|
- StoreId = tostore.Id, //仓库
|
|
|
- });
|
|
|
- db.SaveChanges();
|
|
|
-
|
|
|
// RemoveClass.DeletePosMachineList("PosMachineTwoList:" + storefor.StoreId, machine.Id);
|
|
|
// RedisDbconn.Instance.AddList("PosMachineTwoList:" + tostorefor.StoreId, machine);
|
|
|
|
|
|
@@ -654,6 +632,7 @@ namespace MySystem
|
|
|
CreateDate = DateTime.Now,
|
|
|
CreateMan = Operator,
|
|
|
UserId = store.UserId, //创客
|
|
|
+ ToUserId = touser.Id, //收货创客
|
|
|
BrandId = BrandId, //产品类型
|
|
|
ChangeRecordNo = ChangeNo, //变更记录单号
|
|
|
BizBatchNo = BatchNo, //业务批次号
|
|
|
@@ -671,26 +650,6 @@ namespace MySystem
|
|
|
StoreId = store.Id, //仓库
|
|
|
});
|
|
|
|
|
|
- db.StoreChangeHistory.Add(new StoreChangeHistory()
|
|
|
- {
|
|
|
- CreateDate = DateTime.Now,
|
|
|
- CreateMan = Operator,
|
|
|
- UserId = touser.Id, //创客
|
|
|
- BrandId = BrandId, //产品类型
|
|
|
- ChangeRecordNo = ChangeNo, //变更记录单号
|
|
|
- BizBatchNo = BatchNo, //业务批次号
|
|
|
- TransType = 0, //交易类型
|
|
|
- SnNo = SnNo, //SN编号
|
|
|
- SnType = machine.PosSnType, //SN机具类型
|
|
|
- StockOpDirect = 0, //库存操作方向
|
|
|
- DeviceVendor = machine.DeviceName, //设备厂商
|
|
|
- DeviceModel = machine.DeviceKind, //设备型号
|
|
|
- DeviceType = machine.DeviceType, //设备类型
|
|
|
- ToUserId = touser.Id, //收货创客
|
|
|
- ToDate = DateTime.Now, //入库时间
|
|
|
- ToRemark = OutNote, //入库备注
|
|
|
- SourceStoreId = machine.SourceStoreId, //源仓库
|
|
|
- });
|
|
|
machine.BuyUserId = touser.Id;
|
|
|
machine.UserId = touser.Id;
|
|
|
machine.TransferTime = DateTime.Now;
|