Beispiel #1
0
        public SQM.Shared.CorrectiveAction CreateCorrectiveAction(PROB_CAUSE_STEP cause)
        {
            SQM.Shared.CorrectiveAction action = new SQM.Shared.CorrectiveAction();
            action.RelatedCauseNo   = cause.ITERATION_NO;
            action.RelatedCause     = cause.WHY_OCCUR;
            action.RelatedCauseType = cause.CAUSE_TYPE;
            action.Action           = action.ActionCode = "";
            action.VerifyStatus     = "";
            action.EffDate          = DateTime.UtcNow;

            return(action);
        }
Beispiel #2
0
        public SQM.Shared.CorrectiveAction CreateCorrectiveAction(PROB_CAUSE_STEP cause, PROB_CAUSE_ACTION existingAction)
        {
            SQM.Shared.CorrectiveAction action = CreateCorrectiveAction(cause);
            action.ActionNo   = existingAction.ACTION_NO;
            action.ActionCode = existingAction.ACTION_CD;
            action.Action     = existingAction.ACTION_DESC;
            action.ActionCode = existingAction.ACTION_CD;
            if (existingAction.EFF_DT.HasValue)
            {
                action.EffDate = Convert.ToDateTime(existingAction.EFF_DT);
            }
            action.Responsible1 = existingAction.RESPONSIBLE1;
            if (existingAction.RESPONSIBLE1_PERSON.HasValue)
            {
                action.Responsible1ID = (decimal)existingAction.RESPONSIBLE1_PERSON;
            }
            action.Responsible2       = existingAction.RESPONSIBLE2;
            action.VerifyStatus       = existingAction.VERIFY_STATUS;
            action.VerifyObservations = existingAction.VERIFY_OBSERVATIONS;

            return(action);
        }