Initial Commit

This commit is contained in:
2016-07-27 00:32:34 -04:00
commit 8d162b2035
701 changed files with 188672 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,73 @@
USE [Mobile_Registration]
GO
/****** Object: Table [dbo].[Hosts_Guids] Script Date: 01/02/2013 00:53:26 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
-- WILL ONLY WORK LIKE THIS ON SQL 2008
CREATE TABLE [dbo].[Hosts_Guids](
[ID] [bigint] IDENTITY(1,1) NOT NULL,
[SystemApiKey] [nchar](22) NOT NULL,
[Host_Guid] [uniqueidentifier] NOT NULL,
[Internal_IP] [nchar](15) NOT NULL,
[External_IP] [nchar](15) NOT NULL,
[Port] [int] NOT NULL,
[Practice_Name] [nvarchar](50) NOT NULL,
[UpdatedToVersion] [varchar](15) NULL,
[LastServerUpdate] [datetime] NULL,
[IsInternal] [bit] NULL,
CONSTRAINT [Hosts_Guids.Primary Key - ID] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
CONSTRAINT [IX_SystemApiKeys] UNIQUE NONCLUSTERED
(
[SystemApiKey] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
--
-- INDEXES
--
-- Now tie System Api Keys and Host Guids together
CREATE UNIQUE NONCLUSTERED INDEX [IX_SystemApiKeys - HostGuid] ON [dbo].[Hosts_Guids]
(
[SystemApiKey] ASC,
[Host_Guid] ASC
) ON [PRIMARY];
-- Create an Index on Host Guids
CREATE NONCLUSTERED INDEX [IX_HostGUIDs] ON [dbo].[Hosts_Guids]
(
[Host_Guid] ASC
) ON [PRIMARY];
-- Create an Index on Mobile Api Versions (for later lookup)
CREATE NONCLUSTERED INDEX [IX_ApiVersions] ON [dbo].[Hosts_Guids]
(
[UpdatedToVersion] DESC
) ON [PRIMARY];
-- Create an Index on last IP Update (for seeing who doesn't use it)
CREATE NONCLUSTERED INDEX [IX_IPUpade] ON [dbo].[Hosts_Guids]
(
[LastServerUpdate] ASC
) ON [PRIMARY];
SET ANSI_PADDING OFF
GO

Binary file not shown.

View File

@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v2.0.50727"/></startup>
<appSettings>
<add key="Url" value="ppsmobile.mckesson.com"/>
<add key="Port" value="443" />
<add key="SQLServer" value="127.0.0.1" />
<add key="SQLInstance" value="SQLEXPRESS" />
<add key="SQLDatabaseName" value="Mobile_Registration" />
<add key="SQLUsername" value="sa" />
<add key="SQLPassword" value="Clinical$1" />
</appSettings>
</configuration>

Binary file not shown.

View File

@@ -0,0 +1,59 @@
USE [Mobile_Registration]
GO
/****** Object: Table [dbo].[Hosts_Guids] Script Date: 01/01/2013 23:54:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
if not exists(select * from sys.columns where Name = N'UpdatedToVersion' and Object_ID = Object_ID(N'[dbo].[Hosts_Guids]'))
begin
ALTER TABLE [dbo].[Hosts_Guids] ADD [UpdatedToVersion] VARCHAR(15) NULL;
ALTER TABLE [dbo].[Hosts_Guids] ADD [LastServerUpdate] DateTime NULL;
ALTER TABLE [dbo].[Hosts_Guids] ADD [IsInternal] bit NULL;
-- Create new Primary Key Constraint off of ID
ALTER TABLE [dbo].[Hosts_Guids] ADD CONSTRAINT [Hosts_Guids.Primary Key - ID] PRIMARY KEY CLUSTERED ([ID] ASC);
-- Create System Api Key Constraint of SystemApiKey
ALTER TABLE [dbo].[Hosts_Guids] ADD CONSTRAINT [IX_SystemApiKeys] UNIQUE NONCLUSTERED
(
[SystemApiKey] ASC
)
--Only works on SQLServer 2008 it seems
--WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = OFF) ON [PRIMARY]
--
-- INDEXES
--
-- Now tie System Api Keys and Host Guids together
CREATE UNIQUE NONCLUSTERED INDEX [IX_SystemApiKeys - HostGuid] ON [dbo].[Hosts_Guids]
(
[SystemApiKey] ASC,
[Host_Guid] ASC
) ON [PRIMARY];
-- Create an Index on Host Guids
CREATE NONCLUSTERED INDEX [IX_HostGUIDs] ON [dbo].[Hosts_Guids]
(
[Host_Guid] ASC
) ON [PRIMARY];
-- Create an Index on Mobile Api Versions (for later lookup)
CREATE NONCLUSTERED INDEX [IX_ApiVersions] ON [dbo].[Hosts_Guids]
(
[UpdatedToVersion] DESC
) ON [PRIMARY];
-- Create an Index on last IP Update (for seeing who doesn't use it)
CREATE NONCLUSTERED INDEX [IX_IPUpade] ON [dbo].[Hosts_Guids]
(
[LastServerUpdate] ASC
) ON [PRIMARY];
END
GO

Binary file not shown.

View File

@@ -0,0 +1,3 @@
@echo off
c:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil.exe Pluto.RegistrationServer.exe

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,3 @@
@echo off
net start "McKesson Mobile Gateway Server"

View File

@@ -0,0 +1,3 @@
@echo off
net stop "McKesson Mobile Gateway Server"

View File

@@ -0,0 +1,3 @@
@echo off
c:\Windows\Microsoft.NET\Framework\v2.0.50727\installutil.exe /u Pluto.RegistrationServer.exe

Binary file not shown.