|
|
@@ -277,12 +277,13 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem |
|
|
|
//读入库申请记录 |
|
|
|
var assinfoapp = db.FindEntity<Ass_AssetsInfoApplyEntity>(m => m.AAProcessId == processId); |
|
|
|
var assPurchase = db.FindEntity<Ass_PurchaseEntity>(a => a.PId == assinfoapp.PId); |
|
|
|
//通知申请人 |
|
|
|
var purchaseApplyEntity = db.FindEntity<Ass_PurchaseApplyEntity>(a => a.PAId == assPurchase.PAId); |
|
|
|
purchaseApplyEntity.PIsInStorage = "已入库"; |
|
|
|
db.Update(purchaseApplyEntity); |
|
|
|
if (null != assPurchase) |
|
|
|
if (assPurchase != null) |
|
|
|
{ |
|
|
|
//通知申请人 |
|
|
|
var purchaseApplyEntity = db.FindEntity<Ass_PurchaseApplyEntity>(a => a.PAId == assPurchase.PAId); |
|
|
|
purchaseApplyEntity.PIsInStorage = "已入库"; |
|
|
|
db.Update(purchaseApplyEntity); |
|
|
|
|
|
|
|
assPurchase.PStoregeStatus = 2; |
|
|
|
db.Update(assPurchase); |
|
|
|
} |
|
|
@@ -376,7 +377,7 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem |
|
|
|
db.Insert(ass_assetschangeitem); |
|
|
|
//更新总库存 |
|
|
|
assinfoitem.AStock = assinfoitem.AStock + assitemapp.AAIStock; |
|
|
|
assinfoitem.AAssType = assPurchase.PAssType; |
|
|
|
//assinfoitem.AAssType = assPurchase.PAssType; |
|
|
|
db.Update(assinfoitem); |
|
|
|
if (insertassinfoitem.AIIsInStorage == false) |
|
|
|
{ |
|
|
|