소스 검색

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

金隅分支
liangkun 3 년 전
부모
커밋
926b36713b
1개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  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 파일 보기

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


불러오는 중...
취소
저장