Exemplo n.º 1
0
        public static ProductionAmplatsGlobalTSysSettings getSystemSettingsProductionInfo(string SiteTag)
        {
            ProductionAmplatsGlobalTSysSettings theResult = new ProductionAmplatsGlobalTSysSettings();

            foreach (ProductionAmplatsGlobalTSysSettings ui in SystemSettingsProduction)
            {
                if (ui.SiteTag == SiteTag)
                {
                    theResult = ui;
                    break;
                }
            }

            return(theResult);
        }
Exemplo n.º 2
0
        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)
                {
                }
            }
        }