Ejemplo n.º 1
0
 public HandScore(string name, string value, CompNameAttribute compName, string dimension, int sequence, ReadType type, string userID, string userLastName, string userFirstName)
 {
     this.name          = name;
     this.value         = value;
     this.compName      = compName;
     this.dimension     = dimension;
     this.sequence      = sequence;
     this.type          = type;
     this.userID        = userID;
     this.userLastName  = userLastName;
     this.userFirstName = userFirstName;
 }
Ejemplo n.º 2
0
        public void InitializeHandScore(string name, string value, string conditioncode, string compName, string dimension, int sequence, string type, string userID, string userLastName, string userFirstName)
        {
            this.name          = name;
            this.value         = value;
            this.conditioncode = conditioncode;
            switch (compName.ToLower())
            {
            case "score points":
                this.compName = CompNameAttribute.ScorePoints;
                break;

            case "scorepoints":
                this.compName = CompNameAttribute.ScorePoints;
                break;

            case "overall":
                this.compName = CompNameAttribute.ScorePoints;
                break;

            case "condition codes":
                this.compName = CompNameAttribute.ConditionCodes;
                break;

            case "conditioncodes":
                this.compName = CompNameAttribute.ConditionCodes;
                break;

            case "dimension":
                this.compName = CompNameAttribute.Dimension;
                break;

            default:
                this.compName = CompNameAttribute.Dimension;
                break;
            }
            this.dimension = dimension;
            this.sequence  = sequence;
            switch (type.ToLower())
            {
            case "initial":
                this.type = ReadType.Initial;
                break;

            case "reliability":
                this.type = ReadType.Reliability;
                break;

            case "additional":
                this.type = ReadType.Reliability;
                break;

            case "backread":
                this.type = ReadType.Backread;
                break;

            case "resolution":
                this.type = ReadType.Resolution;
                break;

            case "manager read":
                this.type = ReadType.ManageOverride;
                break;

            case "manageoverride":
                this.type = ReadType.ManageOverride;
                break;

            case "manageroverride":
                this.type = ReadType.ManageOverride;
                break;

            case "machineinitial":
                this.type = ReadType.Initial;
                break;

            case "machine initial read":
                this.type = ReadType.Initial;
                break;

            case "targeted backread":
                this.type = ReadType.TargetedBackread;
                break;

            case "targetedbackread":
                this.type = ReadType.TargetedBackread;
                break;

            case "rescore":
                this.type = ReadType.Rescore;
                break;

            case "dimension rater":
                this.type = ReadType.Analytic;
                break;

            case "analytic":
                this.type = ReadType.Analytic;
                break;

            case "dimension rescore":
                this.type = ReadType.Analytic;
                break;

            case "final":
                this.type = ReadType.Final;
                break;

            default:
                throw new Exception("Unknown ReadType: " + type);
                break;
            }
            this.userID        = userID;
            this.userLastName  = userLastName;
            this.userFirstName = userFirstName;
        }