Beispiel #1
0
        public virtual ActionResult MissionCreateWorkflow(
            string operationNumber,
            int missionId,
            bool?isVpsResend,
            string missionRoles,
            int?missionTypeId)
        {
            var missionModel = _viewModelMapperHelper.GetMissionbyId(missionId);

            var resendVpsFlow = isVpsResend ?? false;
            var groupCode     = resendVpsFlow
                ? DivisionOpusGroup.VPS
                : _missionService.DetermineGroupCode(missionModel.Mission);

            var taskTypeCode = _missionService.DetermineWorkflowCode(groupCode);

            var validatorsResponse = _k2DataService.GetValidators(taskTypeCode, null);

            validatorsResponse.Validators = _viewModelMapperHelper
                                            .FilterMandatory(
                validatorsResponse.Validators,
                missionModel.MissionbyId.Header.Type,
                missionModel.MissionbyId.IsHaitiCountry,
                taskTypeCode,
                missionModel.Mission.Operation.OperationData.OperationType.Code);

            Logger.GetLogger().WriteDebug(
                "ViewController",
                "Method: MissionCreateWorkflow : UserName: "******"MissionsWorkflow", modelTaskView));
        }