下线操作需要审批

dev
dengyu 1 month ago
parent c381417c08
commit 74c660263b

@ -37,6 +37,9 @@ public class CM_BaseInfoService : ICM_BaseInfoService
private readonly ISaasDbService saasService;
private readonly IEPPlusService epplusService;
private readonly ICM_State_Change_TemplatImportService templatImportService;
private readonly ICM_RentInService CM_RentInService;
private readonly ICM_RentOutService CM_RentOutService;
private readonly ICM_SellCtnService CM_SellCtnService;
/// <summary>
///
@ -50,6 +53,10 @@ public class CM_BaseInfoService : ICM_BaseInfoService
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
epplusService = _serviceProvider.GetRequiredService<IEPPlusService>();
templatImportService = _serviceProvider.GetRequiredService<ICM_State_Change_TemplatImportService>();
CM_RentInService = _serviceProvider.GetRequiredService<ICM_RentInService>();
CM_RentOutService = _serviceProvider.GetRequiredService<ICM_RentOutService>();
CM_SellCtnService = _serviceProvider.GetRequiredService<ICM_SellCtnService>();
}
/// <summary>
@ -354,6 +361,12 @@ public class CM_BaseInfoService : ICM_BaseInfoService
tenantDb.Updateable(Head).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand();
if (Head.BillState == "1100")
{
CM_RentInService.CM_RentIn_Confirm(Head.Id);
}
return DataResult.Successed($"执行成功!", MultiLanguageConst.OperationSuccess);
}
@ -382,6 +395,13 @@ public class CM_BaseInfoService : ICM_BaseInfoService
tenantDb.Updateable(Head).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand();
if (Head.BillState == "1100")
{
CM_RentOutService.CM_RentOut_Confirm(Head.Id);
}
return DataResult.Successed($"执行成功!", MultiLanguageConst.OperationSuccess);
}
@ -410,6 +430,12 @@ public class CM_BaseInfoService : ICM_BaseInfoService
tenantDb.Updateable(Head).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand();
if (Head.BillState == "1100")
{
CM_SellCtnService.CM_SellCtn_Confirm(Head.Id);
}
return DataResult.Successed($"执行成功!", MultiLanguageConst.OperationSuccess);
}

Loading…
Cancel
Save