protected override BMCIPC.FloorStatusDataResponse GetSlotStatus()
        {
            List <FloorStatusData> actualRetResults = null;

            using (InstallationDataContext InstallationDataContext =
                       new InstallationDataContext(_commonUtilities.GetConnectionString()))
            {
                actualRetResults = InstallationDataContext.GetSlotStatus("", -1);
            }
            return(new FloorStatusDataResponse()
            {
                Response = actualRetResults
            });
        }
Пример #2
0
        private void GetDbSettings()
        {
            string strKeyvalue = string.Empty;
            string strWebUrl   = string.Empty;

            try
            {
                oFactoryResetTransport.ExchangeConnectionString  = oCommonutilities.GetConnectionString();
                oFactoryResetTransport.TicketingConnectionString = oCommonutilities.GetTicketConnectionString();
                oFactoryResetTransport.CMPConnectionString       = oCommonutilities.GetCMPConnectionString();
                oFactoryResetTransport.TicketLocationCode        = oCommonutilities.GetTicketLocationCode();
                ConfigManager.SetConfigurationMode(ConfigManager.ConfigurationMode.AppConfig);
                if (ConfigManager.Read("ServicesListFromDB") != null)
                {
                    if (ConfigManager.Read("ServicesListFromDB").ToUpper() == "TRUE")
                    {
                        strListarray = null;
                        strListarray = oFactoryReset.GetSettingValue("ServiceNames").Split(',');
                    }
                }
                GetExchangeServerSettings(oFactoryReset.RetrieveServerDetails(oFactoryResetTransport.ExchangeConnectionString));
                //Dictionary<string, string> ExchangeRegistryEntries = oFactoryReset.GetRegistryEntries(oFactoryResetTransport.RegistryKeyValue);
                //foreach (KeyValuePair<string, string> KVPServer in ExchangeRegistryEntries)
                //{
                //    strKeyvalue = KVPServer.Key.Substring(KVPServer.Key.LastIndexOf('\\') + 1);

                //    if (strKeyvalue == "Default_Server_IP")
                //    {
                //        if (!string.IsNullOrEmpty(KVPServer.Value.ToString()))
                //        {

                //        }
                //    }

                //    if (strKeyvalue == "EnableDhcp")
                //    {
                //        if (!string.IsNullOrEmpty(KVPServer.Value.ToString()))
                //        {

                //        }
                //    }
                //    if (strKeyvalue == "BindIPAddress")
                //    {
                //        if (!string.IsNullOrEmpty(KVPServer.Value.ToString()))
                //        {

                //        }
                //    }

                //    if (strKeyvalue == "BGSWebService")
                //    {
                //        if (!string.IsNullOrEmpty(KVPServer.Value.ToString()))
                //        {
                //            strWebUrl = KVPServer.Value.ToString();
                //            strWebUrl = strWebUrl.Substring(strWebUrl.IndexOf("//") + 2);
                //            //txtEnterpriseweburl.Text = strWebUrl.Substring(0, strWebUrl.IndexOf("/"));
                //        }

                //    }

                //}
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }