Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
        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;
            }
        }