public PayrollName NameFor(string tagCodeName) { string nameClass = ClassNameFor(tagCodeName); PayrollName nameInstance = (PayrollName)Activator.CreateInstance(Type.GetType(nameClass)); return(nameInstance); }
public PayrollName FindName(uint tagCode) { PayrollName baseTag = null; if (Models.ContainsKey((TagCode)tagCode)) { baseTag = Models[(TagCode)tagCode]; } else { baseTag = Models[TagCode.TAG_UNKNOWN]; } return(baseTag); }
// pay tag cache public PayrollName NameFromModels(CodeNameRefer termTag) { PayrollName baseTag = null; if (!Models.ContainsKey((TagCode)termTag.Code)) { baseTag = EmptyNameFor(termTag); Models[(TagCode)termTag.Code] = baseTag; } else { baseTag = Models[(TagCode)termTag.Code]; } return(baseTag); }
public PayrollName EmptyNameFor(CodeNameRefer termTag) { PayrollName emptyTag = NameFor(termTag.Name); return(emptyTag); }