Пример #1
0
        public PayrollName NameFor(string tagCodeName)
        {
            string      nameClass    = ClassNameFor(tagCodeName);
            PayrollName nameInstance = (PayrollName)Activator.CreateInstance(Type.GetType(nameClass));

            return(nameInstance);
        }
Пример #2
0
        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);
        }
Пример #3
0
        // 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);
        }
Пример #4
0
        public PayrollName EmptyNameFor(CodeNameRefer termTag)
        {
            PayrollName emptyTag = NameFor(termTag.Name);

            return(emptyTag);
        }