public static void SetUserInfo(string sysDBTag) { 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); } }
public static void SetProductionGlobalInfo(string sysDBTag) { DataTable siteList = TConnections.GetSiteList(); foreach (DataRow dr in siteList.Rows) { try { ProductionAmplatsGlobalTSysSettings theProductionInfo = new ProductionAmplatsGlobalTSysSettings(); theProductionInfo.SiteTag = dr["Name"].ToString(); theProductionInfo.GetSysSettings(sysDBTag, dr["Name"].ToString()); SystemSettingsProduction.Add(theProductionInfo); } catch (Exception) { } } }