Example #1
0
 public static void SetUserInfo(string sysDBTag)
 {
     if (UserInfo.Count == 0)
     {
         DataTable siteList = TConnections.GetSiteList();
         foreach (DataRow dr in siteList.Rows)
         {
             TUserProduction theUser = new TUserProduction();
             theUser.SiteTag = dr["Name"].ToString();
             theUser.SetUserInfo(TUserInfo.UserID, sysDBTag, dr["Name"].ToString());
             UserInfo.Add(theUser);
         }
     }
 }
Example #2
0
        public static TUserProduction getUserInfo(string SiteTag)
        {
            TUserProduction theResult = new TUserProduction();

            foreach (TUserProduction ui in UserInfo)
            {
                if (ui.SiteTag == SiteTag)
                {
                    theResult = ui;
                    break;
                }
            }

            return(theResult);
        }