Przeglądaj źródła

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

金隅分支
liangkun 3 lat temu
rodzic
commit
926b36713b
1 zmienionych plików z 7 dodań i 6 usunięć
  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 Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz