Ver código fonte

采购审批通过方法修改,增加采购申请表空判断

金隅分支
liangkun 3 anos atrás
pai
commit
926b36713b
1 arquivos alterados com 7 adições e 6 exclusões
  1. +7
    -6
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs

+ 7
- 6
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/AssetManagementSystem/Ass_AssetsInfoApply/Ass_AssetsInfoApplyService.cs Ver arquivo

@@ -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)
{


Carregando…
Cancelar
Salvar