public override void Finish(TaskWorkStatus status, TaskWork task) { using (var scope = new TransactionScope()) { switch (status) { case TaskWorkStatus.K2ProcessApproved: ProjectInfo.FinishNode(ProjectId, WorkflowCode, NodeCode.MajorLease_FinanceAnalysis_Confirm, ProjectStatus.Finished); var majorLeasePackage = new MajorLeaseChangePackage(); majorLeasePackage.GeneratePackageTask(ProjectId); break; } scope.Complete(); } }
public override void Finish(TaskWorkStatus status, TaskWork task) { switch (status) { case TaskWorkStatus.K2ProcessApproved: ProjectInfo.FinishNode(ProjectId, FlowCode.MajorLease_ConsInfo, NodeCode.MajorLease_ConsInfo_Confirm, ProjectStatus.Finished); var majorLeasePackage = new MajorLeaseChangePackage(); majorLeasePackage.GeneratePackageTask(ProjectId); UpdateConsInvtCheckingStatus(); break; } }