Пример #1
0
        public string GetFeedValue(List <string> theFields, MnemonicFeed _column, string _else)
        {
            string strFeed = GetFeed(theFields, _column);

            if (strFeed == "")
            {
                strFeed = _else;
            }
            return(strFeed);
        }
Пример #2
0
        public string GetFeedUser(List <string> theFields, MnemonicFeed _column, string _else)
        {
            Users  oUser   = new Users(user, dsn);
            string strFeed = GetFeed(theFields, _column);

            if (strFeed != "")
            {
                strFeed = oUser.GetFullNameWithLanID(oUser.GetId(strFeed));
            }
            else
            {
                strFeed = _else;
            }
            return(strFeed);
        }
Пример #3
0
        public int GetFeedUser(List <string> theFields, MnemonicFeed _column, int _else)
        {
            Users  oUser   = new Users(user, dsn);
            int    intFeed = 0;
            string strFeed = GetFeed(theFields, _column);

            if (strFeed != "")
            {
                intFeed = oUser.GetId(strFeed);
            }
            else
            {
                intFeed = _else;
            }
            return(intFeed);
        }
Пример #4
0
 public string GetFeed(string _code, MnemonicFeed _column)
 {
     return(GetFeed(GetFeed(_code), _column));
 }
Пример #5
0
        public string GetFeed(List <string> theFields, MnemonicFeed _column)
        {
            string strReturn = "";

            if (theFields.Count > 0)
            {
                switch (_column)
                {
                case MnemonicFeed.Name:
                    strReturn = theFields[1];
                    break;

                case MnemonicFeed.ResRating:
                    strReturn = theFields[2];
                    break;

                case MnemonicFeed.AppRating:
                    strReturn = theFields[4];
                    break;

                case MnemonicFeed.Status:
                    if (theFields.Count > 45)
                    {
                        strReturn = theFields[45];
                    }
                    break;

                case MnemonicFeed.PM:
                    if (theFields.Count > 50)
                    {
                        strReturn = theFields[50];
                    }
                    break;

                case MnemonicFeed.FM:
                    if (theFields.Count > 51)
                    {
                        strReturn = theFields[51];
                    }
                    break;

                case MnemonicFeed.DM:
                    if (theFields.Count > 52)
                    {
                        strReturn = theFields[52];
                    }
                    break;

                case MnemonicFeed.AppOwner:
                    if (theFields.Count > 53)
                    {
                        strReturn = theFields[53];
                    }
                    break;

                case MnemonicFeed.ATL:
                    if (theFields.Count > 54)
                    {
                        strReturn = theFields[54];
                    }
                    break;

                case MnemonicFeed.CIO:
                    if (theFields.Count > 55)
                    {
                        strReturn = theFields[55];
                    }
                    break;
                }
            }
            return(strReturn);
        }