Core
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
|
||||
# PatientMgr specific files
|
||||
/SaPatientMgr/Resources/BuildDate.txt
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
using Sarand.Core.CodeTypes;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.App
|
||||
{
|
||||
//=======================================================================
|
||||
public abstract class SpmApplication
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
protected SpmApplication ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Database.
|
||||
public abstract ISacsDatabase GetDatabase (SpmSessionContext sessionContext);
|
||||
//public abstract bool ColumnExists (SbmSessionContext sessionContext, SbmDbDfn.ColumnIdx columnIdx);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Code Type console.
|
||||
public abstract SaCodeTypeConsole GetCodeTypeConsole (SpmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.App
|
||||
{
|
||||
//=======================================================================
|
||||
public static class Spm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Version.
|
||||
public static String Version { get; } = "0.0.1";
|
||||
// History.
|
||||
// 0.0.1 Apr-2019 Initial.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Constants.
|
||||
public static readonly String ApplicationCaption = "Sarand PatientMgr";
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Site. NB Only code should be used on database.
|
||||
public enum Site
|
||||
{
|
||||
Unknown = 0,
|
||||
Addenbrookes = 10, /* 'ANT' */
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// System codes - predefined lists of codes that cannot be changed.
|
||||
public enum SystemCode
|
||||
{
|
||||
Unknown = 0,
|
||||
// General.
|
||||
Site = 1,
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using Sarand.Core.CodeTypes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.App
|
||||
{
|
||||
//=======================================================================
|
||||
public static class SpmGlobals
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// System.
|
||||
public static SpmSystem System { get; set; } = null;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Application.
|
||||
public static SpmApplication Application { get; set; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Consoles.
|
||||
public static SaCodeTypeConsole GetCodeTypeConsole (SpmUserContext userContext)
|
||||
{
|
||||
return Application.GetCodeTypeConsole(userContext);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Clear globals.
|
||||
public static void clear ()
|
||||
{
|
||||
System = null;
|
||||
Application = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.App
|
||||
{
|
||||
//=======================================================================
|
||||
public class SpmSecurityContext
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.App
|
||||
{
|
||||
//=======================================================================
|
||||
public class SpmSessionContext
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Protected construction - use derived object.
|
||||
protected SpmSessionContext (ushort index, Spm.Site site)
|
||||
{
|
||||
Index = index;
|
||||
Site = site;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
public ushort Index { get; protected set; }
|
||||
public Spm.Site Site { get; protected set; }
|
||||
public String SiteCode { get { return SpmSystem.GetSiteCode(Site); } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Comparison.
|
||||
public bool Equals (SpmSessionContext sessionContext)
|
||||
{
|
||||
if (sessionContext.Index != Index) return false;
|
||||
if (sessionContext.Site != Site) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.App
|
||||
{
|
||||
//=======================================================================
|
||||
/// <summary>
|
||||
/// PatientMgr global properties.
|
||||
/// <para>Restricted to properties that are global to all apps - desktop, console, service, web, mobile.</para>
|
||||
/// <para>Do not store any user related information here.</para>
|
||||
/// </summary>
|
||||
public class SpmSessionProfile
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
protected SpmSessionProfile()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.App
|
||||
{
|
||||
//=======================================================================
|
||||
// S P M S y s t e m - C o d e T y p e s
|
||||
//=======================================================================
|
||||
public partial class SpmSystem
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// S y s t e m - C o d e T y p e s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using Sarand.Core.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.App
|
||||
{
|
||||
//=======================================================================
|
||||
// S P M S y s t e m - S t a t i c s
|
||||
//=======================================================================
|
||||
public partial class SpmSystem
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// SLM System - Static initialisation.
|
||||
static SpmSystem ()
|
||||
{
|
||||
//---------------------------------------------------------------
|
||||
// Sites.
|
||||
sites.Add((int)Spm.Site.Addenbrookes, "ANT", "Addenbrookes");
|
||||
|
||||
//---------------------------------------------------------------
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
using Sarand.Core.App;
|
||||
using Sarand.Core.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.App
|
||||
{
|
||||
//=======================================================================
|
||||
public abstract partial class SpmSystem : SacsSystem
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// System Code types.
|
||||
private static List<TypeCodeDesc> sites = new List<TypeCodeDesc>();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction - use derived objects.
|
||||
protected SpmSystem (PropertySet properties)
|
||||
{
|
||||
// Configure extended logging.
|
||||
extendedLoggingOptions = StringList.Split(properties.GetPropertyValue("Logging", "ExtendedLogging"));
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Application definitions.
|
||||
public static String GetCopyrightNotice (bool html = false)
|
||||
{
|
||||
return (html ? "© " : "(c) ") + "2002- " + DateTime.Today.Year + " Sarand Ltd";
|
||||
}
|
||||
public static bool IsSysAdminSession ()
|
||||
{
|
||||
// Dev mode.
|
||||
if (IsDevHost()) return true;
|
||||
// Production servers.
|
||||
if (UserName.ContainsCI("Sarand"))
|
||||
{
|
||||
if (ComputerName.EqualsCI("Norman")) return true;
|
||||
}
|
||||
// Development.
|
||||
if (ComputerName.ContainsCI("Sarand")) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S y s t e m C o d e s
|
||||
//-------------------------------------------------------------------
|
||||
public static List<TypeCodeDesc> GetCodesOfType (Spm.SystemCode systemCode)
|
||||
{
|
||||
// Lists are cloned to avoid modifications to the internal static lists.
|
||||
switch (systemCode)
|
||||
{
|
||||
//-----------------------------------------------------------
|
||||
case Spm.SystemCode.Site:
|
||||
return new List<TypeCodeDesc>(sites);
|
||||
|
||||
//-----------------------------------------------------------
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// System code utilities.
|
||||
public static Spm.Site GetSiteForCode (String siteCode)
|
||||
{
|
||||
return (Spm.Site)sites.GetTypeForCode(siteCode);
|
||||
}
|
||||
public static String GetSiteCode (Spm.Site site)
|
||||
{
|
||||
return sites.GetCodeForType((int)site);
|
||||
}
|
||||
public static String GetSiteDesc (Spm.Site site)
|
||||
{
|
||||
return sites.GetDescForType((int)site, site.ToString());
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// D a t a M a n a g e r s
|
||||
//-------------------------------------------------------------------
|
||||
public abstract SpmAdmissionMgr CreateAdmissionMgr (SpmUserContext userContext);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// E x t e n d e d L o g g i n g
|
||||
//-------------------------------------------------------------------
|
||||
// Extended logging options.
|
||||
public enum ExtendedLogginOption
|
||||
{
|
||||
SecurityProfile,
|
||||
DbQueryExecution,
|
||||
Printing,
|
||||
ServiceRequests,
|
||||
}
|
||||
public static readonly String ExtendedLogging_SecurityProfile = "SecurityProfile";
|
||||
public static readonly String ExtendedLogging_DbQueryExecution = "DbQueryExecution";
|
||||
public static readonly String ExtendedLogging_Printing = "Printing";
|
||||
public static readonly String ExtendedLogging_ServiceRequests = "ServiceRequests";
|
||||
private List<String> extendedLoggingOptions;
|
||||
//-------------------------------------------------------------------
|
||||
public bool IsExtendedLogging (ExtendedLogginOption extendedLoggingOption)
|
||||
{
|
||||
if (extendedLoggingOptions == null) return false;
|
||||
if (extendedLoggingOption == ExtendedLogginOption.SecurityProfile)
|
||||
return extendedLoggingOptions.ContainsCI(ExtendedLogging_SecurityProfile);
|
||||
if (extendedLoggingOption == ExtendedLogginOption.DbQueryExecution)
|
||||
return extendedLoggingOptions.ContainsCI(ExtendedLogging_DbQueryExecution);
|
||||
if (extendedLoggingOption == ExtendedLogginOption.Printing)
|
||||
return extendedLoggingOptions.ContainsCI(ExtendedLogging_Printing);
|
||||
if (extendedLoggingOption == ExtendedLogginOption.ServiceRequests)
|
||||
return extendedLoggingOptions.ContainsCI(ExtendedLogging_ServiceRequests);
|
||||
return false;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.App
|
||||
{
|
||||
//=======================================================================
|
||||
public class SpmUserContext
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
public SpmSessionContext SessionContext { get; protected set; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.Mgr
|
||||
{
|
||||
//=======================================================================
|
||||
public abstract partial class SpmAdmissionMgr : SpmItemMgr
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
protected SpmAdmissionMgr (SpmUserContext userContext) :
|
||||
base(userContext)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.Core.CodeTypes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Core.Mgr
|
||||
{
|
||||
//=======================================================================
|
||||
public abstract class SpmItemMgr : SacsItemMgr
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private SaCodeTypeConsole codeTypeConsole;
|
||||
// Managers.
|
||||
private SpmAdmissionMgr admissionMgr;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Static initialisation.
|
||||
static SpmItemMgr ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
protected SpmItemMgr (SpmUserContext userContext)
|
||||
{
|
||||
if (userContext == null)
|
||||
throw new NotSupportedException("SpmItemMgr User context must be supplied");
|
||||
UserContext = userContext;
|
||||
}
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
if (admissionMgr != null) admissionMgr.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
public SpmUserContext UserContext { get; }
|
||||
public SpmSessionContext SessionContext { get { return UserContext.SessionContext; } }
|
||||
public SaCodeTypeConsole CodeTypeConsole { get { if (codeTypeConsole == null) codeTypeConsole = SpmGlobals.GetCodeTypeConsole(UserContext); { return codeTypeConsole; } } }
|
||||
// Managers.
|
||||
public SpmAdmissionMgr AdmissionMgr { get { if (admissionMgr == null) admissionMgr = SpmGlobals.System.CreateAdmissionMgr(UserContext); return admissionMgr; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Utilities.
|
||||
/*
|
||||
public bool ColumnExists (SpmDbDfn.ColumnIdx columnIdx)
|
||||
{
|
||||
SpmApplication application = SpmGlobals.Application;
|
||||
if (application != null)
|
||||
return application.ColumnExists(SessionContext, columnIdx);
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard1.3</TargetFramework>
|
||||
<RootNamespace>Sarand.PatientMgr</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Core - Copy\**" />
|
||||
<EmbeddedResource Remove="Core - Copy\**" />
|
||||
<None Remove="Core - Copy\**" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Core\Bus\" />
|
||||
<Folder Include="Core\Consoles\" />
|
||||
<Folder Include="Core\Data\" />
|
||||
<Folder Include="Core\UpdateLog\" />
|
||||
<Folder Include="Core\WebService\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsCoreBase\SacsCoreBase.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,20 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[assembly: AssemblyTitle("SaPatMgrUnitTests")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SaPatMgrUnitTests")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2019")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
[assembly: Guid("e133e234-02d4-43e9-9667-35b9a0fb0d2c")]
|
||||
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{E133E234-02D4-43E9-9667-35B9A0FB0D2C}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Sarand.PatientMgr</RootNamespace>
|
||||
<AssemblyName>SaPatMgrUnitTests</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||
<IsCodedUITest>False</IsCodedUITest>
|
||||
<TestProjectType>UnitTest</TestProjectType>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="UnitTest1.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Resources\" />
|
||||
<Folder Include="Tests\Core\" />
|
||||
<Folder Include="Tests\Win\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.props'))" />
|
||||
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.1.3.2\build\net45\MSTest.TestAdapter.targets')" />
|
||||
</Project>
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace SaPatMgrUnitTests
|
||||
{
|
||||
[TestClass]
|
||||
public class UnitTest1
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestMethod1 ()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="MSTest.TestAdapter" version="1.3.2" targetFramework="net46" />
|
||||
<package id="MSTest.TestFramework" version="1.3.2" targetFramework="net46" />
|
||||
</packages>
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("SaPatMgrWinDbas")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SaPatMgrWinDbas")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2019")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("9f5d8526-b4b9-457f-8dba-e6b79b938aa9")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{9F5D8526-B4B9-457F-8DBA-E6B79B938AA9}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Sarand.PatientMgr</RootNamespace>
|
||||
<AssemblyName>SaPatMgrWinDbas</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Win\Dbas\App\SpmSystem_WinDbas.cs" />
|
||||
<Compile Include="Win\Dbas\Mgr\SpmAdmissionMgr_Dbas.cs" />
|
||||
<Compile Include="Win\Dbas\Utils\SpmDbDfnGenerator.cs" />
|
||||
<Compile Include="Win\Dbas\Utils\SpmFileUtil.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsCoreBase\SacsCoreBase.csproj">
|
||||
<Project>{7528f88e-a24d-4d6b-be6c-9d5fb14f0cb5}</Project>
|
||||
<Name>SacsCoreBase</Name>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsWinDbas\SacsWinDbas.csproj">
|
||||
<Project>{86e11448-66df-4eb6-922f-c84e220608ad}</Project>
|
||||
<Name>SacsWinDbas</Name>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SaPatMgrCore\SaPatMgrCore.csproj">
|
||||
<Project>{57674a5e-b0f1-49ca-a56f-f8b8ca12fbf6}</Project>
|
||||
<Name>SaPatMgrCore</Name>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Win\Dbas\Base\" />
|
||||
<Folder Include="Win\Dbas\Bus\" />
|
||||
<Folder Include="Win\Dbas\Consoles\" />
|
||||
<Folder Include="Win\Dbas\Data\" />
|
||||
<Folder Include="Win\Dbas\Internal\" />
|
||||
<Folder Include="Win\Dbas\UpdateLog\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,51 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.Core.IO;
|
||||
using Sarand.PatientMgr.Win.Dbas.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Sarand.PatientMgr.Win.Dbas.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.App
|
||||
{
|
||||
//=======================================================================
|
||||
public class SpmSystem_WinDbas : SpmSystem
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Static initialisation.
|
||||
public static void InitStatics ()
|
||||
{
|
||||
// Initialise static environment values.
|
||||
ComputerName = System.Environment.MachineName;
|
||||
UserName = Environment.UserName;
|
||||
ApplicationPath = System.Reflection.Assembly.GetEntryAssembly().Location;
|
||||
ApplicationFolder = Path.GetDirectoryName(ApplicationPath);
|
||||
AssemblyBuildAt = FileUtil.GetFileLastWriteTime(ApplicationPath);
|
||||
|
||||
// Initialise other statics.
|
||||
SpmFileUtil.InitStatics();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmSystem_WinDbas (PropertySet properties) : base(properties)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// D a t a M a n a g e r s
|
||||
//-------------------------------------------------------------------
|
||||
public override SpmAdmissionMgr CreateAdmissionMgr (SpmUserContext userContext)
|
||||
{
|
||||
return new SpmAdmissionMgr_Dbas(userContext);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Mgr
|
||||
{
|
||||
//=======================================================================
|
||||
internal partial class SpmAdmissionMgr_Dbas : SpmAdmissionMgr
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmAdmissionMgr_Dbas (SpmUserContext userContext) :
|
||||
base(userContext)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Utilities.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.Core.IO;
|
||||
using Sarand.Win.Dbas.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Utils
|
||||
{
|
||||
//=======================================================================
|
||||
public static class SpmDbDfnGenerator
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Definitions.
|
||||
public class DbDfnGeneratorResultData
|
||||
{
|
||||
public bool Success { get; internal set; }
|
||||
public String ErrorMessage { get; internal set; }
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
//private static string messageBoxTitle = "PatientMgr database definition generator";
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>Generate database definitions.</summary>
|
||||
public static DbDfnGeneratorResultData Generate (String connectionString)
|
||||
{
|
||||
DbDfnGeneratorResultData resultData = new DbDfnGeneratorResultData();
|
||||
|
||||
// Locate output folder:
|
||||
String directory = GetOutputFolder(resultData);
|
||||
if (String.IsNullOrEmpty(directory) || !FileUtil.IsDirectory(directory)) return resultData;
|
||||
|
||||
// Open database.
|
||||
// NB Must be ODBC connection - especially to retrieve index columns.
|
||||
SacsDatabaseConsole.OdbcConfig config = new SacsDatabaseConsole.OdbcConfig();
|
||||
config.connectionString = connectionString;
|
||||
SacsDatabase database = SacsDatabaseConsole.OpenOdbcDatabase(config);
|
||||
|
||||
// Generate database definition:
|
||||
GenerateDatabaseDefinition(database, directory, resultData);
|
||||
return resultData;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
private static bool GenerateDatabaseDefinition (SacsDatabase database, String directory, DbDfnGeneratorResultData resultData)
|
||||
{
|
||||
|
||||
DatabaseDefinitionGenerator.Config config = new DatabaseDefinitionGenerator.Config();
|
||||
config.Database = database;
|
||||
config.OutputDirectory = directory;
|
||||
config.NamespaceDefinition = "Sarand.PatientMgr.Core.App";
|
||||
config.NamespaceTableObjects = "Sarand.PatientMgr.Win.Dbas.Internal";
|
||||
config.ClassnameDefinition = "SpmDbDfn";
|
||||
config.TablesExcluded.AddRange(new String[] { "NextId", "SaCode", "SaCodeType", "SaSecItem", "SaSecurityItem", "SaSecLink", "SaSecurityLink", "SaItemData", "SaItemDoc", "SaItemOption", "SaInterface", "SaInterfaceProcess", "SaInterfaceProcessMessage", "SaInterfaceDataItem", "SaInterfaceProcessDataItem", "SaAttrUpdate" });
|
||||
// Columns to exclude from update.
|
||||
config.InsertOnlyColumns.Add(".*", "CreateOn,CreateBy,CreateHost");
|
||||
// Table class.
|
||||
config.TableClass.NamespaceBaseClass = "Sarand.PatientMgr.Win.Dbas.Data";
|
||||
config.TableClass.BaseClass = "SpmDbDataItem";
|
||||
config.TableClass.MandatoryConstructorDbInfo = true;
|
||||
// Generate database definition.
|
||||
DatabaseDefinitionGenerator generator = new DatabaseDefinitionGenerator();
|
||||
resultData.Success = generator.Generate(config);
|
||||
return resultData.Success;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
private static String GetOutputFolder (DbDfnGeneratorResultData resultData)
|
||||
{
|
||||
String fn = "SpmDbDfnGenerator.GetOutputFolder";
|
||||
String assemblyDirectory = FileUtil.GetParentDirectory((Assembly.GetAssembly(typeof(DatabaseDefinitionGenerator)).Location));
|
||||
String directory = assemblyDirectory;
|
||||
Logger.Debug(fn + " Assembly folder: " + directory);
|
||||
// Locate the parent of the 'Workspace' solution root folder.
|
||||
String projectFolder = "Workspace";
|
||||
while (!String.IsNullOrEmpty(directory))
|
||||
{
|
||||
if (FileUtil.IsDirectory(directory + Path.DirectorySeparatorChar + projectFolder))
|
||||
{
|
||||
break;
|
||||
}
|
||||
directory = FileUtil.GetParentDirectory(directory);
|
||||
}
|
||||
if (String.IsNullOrEmpty(directory))
|
||||
{
|
||||
resultData.ErrorMessage = "Failed to find '" + projectFolder + "' solution root folder in assembly path:\n\n" + assemblyDirectory;
|
||||
Logger.Warn(resultData.ErrorMessage);
|
||||
return String.Empty;
|
||||
}
|
||||
// Code files are generated to '..\Dbas\Generated\PatientMgr\' folder.
|
||||
directory += Path.DirectorySeparatorChar + "Database" + Path.DirectorySeparatorChar + "Generated" + Path.DirectorySeparatorChar + "PatientMgr";
|
||||
Logger.Debug(fn + " Output folder: " + directory);
|
||||
if (!FileUtil.ValidateDirectory(directory, true))
|
||||
{
|
||||
resultData.ErrorMessage = "Output folder not found:\n\n" + directory;
|
||||
Logger.Warn(resultData.ErrorMessage);
|
||||
return String.Empty;
|
||||
}
|
||||
return directory;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.Core.IO;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Utils
|
||||
{
|
||||
//=======================================================================
|
||||
/// <summary>
|
||||
/// Static implementations of fucntions required by FileUtil.
|
||||
/// </summary>
|
||||
public class SpmFileUtil
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Initialise statics.
|
||||
public static void InitStatics ()
|
||||
{
|
||||
FileUtil.DirectoryExists = IsDirectory;
|
||||
FileUtil.DirectoryGetParent = GetParentDirectory;
|
||||
FileUtil.DirectoryCreateDirectory = CreateDirectory;
|
||||
FileUtil.FileExists = IsFile;
|
||||
FileUtil.FileReadAllLines = FileReadAllLines;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// D i r e c t o r y
|
||||
//-------------------------------------------------------------------
|
||||
public static bool IsDirectory (String directoryPath)
|
||||
{
|
||||
try
|
||||
{
|
||||
return Directory.Exists(directoryPath);
|
||||
}
|
||||
catch (Exception exc) { Logger.Debug("SlmFileUtil.IsDirectory " + exc.GetType().Name + ": " + exc.Message); }
|
||||
return false;
|
||||
}
|
||||
public static String GetParentDirectory (String filepath)
|
||||
{
|
||||
try
|
||||
{
|
||||
DirectoryInfo parentDirectoryInfo = Directory.GetParent(filepath);
|
||||
if (parentDirectoryInfo != null)
|
||||
return parentDirectoryInfo.FullName;
|
||||
}
|
||||
catch (Exception exc) { Logger.Debug("SlmFileUtil.GetParentDirectory " + exc.GetType().Name + ": " + exc.Message); }
|
||||
return String.Empty;
|
||||
}
|
||||
public static bool CreateDirectory (String directoryPath)
|
||||
{
|
||||
try
|
||||
{
|
||||
DirectoryInfo info = Directory.CreateDirectory(directoryPath);
|
||||
return info.Exists;
|
||||
}
|
||||
catch (Exception exc) { Logger.Debug("SlmFileUtil.CreateDirectory " + exc.GetType().Name + ": " + exc.Message); }
|
||||
return false;
|
||||
}
|
||||
//-------------------------------------------------------------------
|
||||
// F i l e
|
||||
//-------------------------------------------------------------------
|
||||
public static bool IsFile (String filePath)
|
||||
{
|
||||
try
|
||||
{
|
||||
return File.Exists(filePath);
|
||||
}
|
||||
catch (Exception exc) { Logger.Debug("SlmFileUtil.IsFile " + exc.GetType().Name + ": " + exc.Message); }
|
||||
return false;
|
||||
}
|
||||
public static String[] FileReadAllLines (String filePath)
|
||||
{
|
||||
try
|
||||
{
|
||||
return File.ReadAllLines(filePath);
|
||||
}
|
||||
catch (Exception exc) { Logger.Debug("SlmFileUtil.FileReadAllLines " + exc.GetType().Name + ": " + exc.Message); }
|
||||
return new String[0];
|
||||
}
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("SaPatMgrWinForms")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SaPatMgrWinForms")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2019")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("7601486b-9563-40bb-81f0-7b45d9f62d70")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,76 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{7601486B-9563-40BB-81F0-7B45D9F62D70}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Sarand.PatientMgr</RootNamespace>
|
||||
<AssemblyName>SaPatMgrWinForms</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Win\Forms\App\SpmGlobals_Win.cs" />
|
||||
<Compile Include="Win\Forms\App\SpmSessionProfile_Win.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsCoreBase\SacsCoreBase.csproj">
|
||||
<Project>{7528f88e-a24d-4d6b-be6c-9d5fb14f0cb5}</Project>
|
||||
<Name>SacsCoreBase</Name>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsWinForms\SacsWinForms.csproj">
|
||||
<Project>{18353651-1f1a-4b23-91fb-bdb9aa56bc57}</Project>
|
||||
<Name>SacsWinForms</Name>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SaPatMgrCore\SaPatMgrCore.csproj">
|
||||
<Project>{57674a5e-b0f1-49ca-a56f-f8b8ca12fbf6}</Project>
|
||||
<Name>SaPatMgrCore</Name>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Win\Forms\Base\" />
|
||||
<Folder Include="Win\Forms\Controls\" />
|
||||
<Folder Include="Win\Forms\Filters\" />
|
||||
<Folder Include="Win\Forms\Maint\" />
|
||||
<Folder Include="Win\Forms\Panels\" />
|
||||
<Folder Include="Win\Forms\Procs\" />
|
||||
<Folder Include="Win\Forms\TabPages\" />
|
||||
<Folder Include="Win\Forms\Testing\" />
|
||||
<Folder Include="Win\Forms\Views\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.App
|
||||
{
|
||||
//=======================================================================
|
||||
public static class SpmGlobals_Win
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Session profile.
|
||||
public static SpmSessionProfile_Win SessionProfile { get; set; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Clear globals.
|
||||
public static void clear ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.App
|
||||
{
|
||||
//=======================================================================
|
||||
/// <summary>
|
||||
/// PatientMgr global properties for desktop/console applications.
|
||||
/// </summary>
|
||||
public class SpmSessionProfile_Win : SpmSessionProfile
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
protected SpmSessionProfile_Win ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("SaPatMgrWinProcs")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SaPatMgrWinProcs")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2019")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("ed6a8e47-67fb-42ca-9b6e-9095c427b64c")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{ED6A8E47-67FB-42CA-9B6E-9095C427B64C}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Sarand.PatientMgr</RootNamespace>
|
||||
<AssemblyName>SaPatMgrWinProcs</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsCoreBase\SacsCoreBase.csproj">
|
||||
<Project>{7528f88e-a24d-4d6b-be6c-9d5fb14f0cb5}</Project>
|
||||
<Name>SacsCoreBase</Name>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsWinOffice\SacsWinOffice.csproj">
|
||||
<Project>{e9106099-66b4-42db-af28-c34cf1aff2aa}</Project>
|
||||
<Name>SacsWinOffice</Name>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SaPatMgrCore\SaPatMgrCore.csproj">
|
||||
<Project>{57674a5e-b0f1-49ca-a56f-f8b8ca12fbf6}</Project>
|
||||
<Name>SaPatMgrCore</Name>
|
||||
<Private>False</Private>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Win\Consoles\" />
|
||||
<Folder Include="Win\DataHelpers\" />
|
||||
<Folder Include="Win\Interfaces\" />
|
||||
<Folder Include="Win\Procs\" />
|
||||
<Folder Include="Win\Reports\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,79 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28307.572
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaPatientMgr", "SaPatientMgr\SaPatientMgr.csproj", "{3103B105-D3FA-4A64-A3D5-1B6EA680472B}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SacsCoreBase", "..\..\Common-C#\Workspace\SacsCoreBase\SacsCoreBase.csproj", "{7528F88E-A24D-4D6B-BE6C-9D5FB14F0CB5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SacsWinDbas", "..\..\Common-C#\Workspace\SacsWinDbas\SacsWinDbas.csproj", "{86E11448-66DF-4EB6-922F-C84E220608AD}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SacsWinForms", "..\..\Common-C#\Workspace\SacsWinForms\SacsWinForms.csproj", "{18353651-1F1A-4B23-91FB-BDB9AA56BC57}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SacsWinOffice", "..\..\Common-C#\Workspace\SacsWinOffice\SacsWinOffice.csproj", "{E9106099-66B4-42DB-AF28-C34CF1AFF2AA}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaPatMgrWinDbas", "SaPatMgrWinDbas\SaPatMgrWinDbas.csproj", "{9F5D8526-B4B9-457F-8DBA-E6B79B938AA9}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaPatMgrWinForms", "SaPatMgrWinForms\SaPatMgrWinForms.csproj", "{7601486B-9563-40BB-81F0-7B45D9F62D70}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SaPatMgrCore", "SaPatMgrCore\SaPatMgrCore.csproj", "{57674A5E-B0F1-49CA-A56F-F8B8CA12FBF6}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaPatMgrWinProcs", "SaPatMgrWinProcs\SaPatMgrWinProcs.csproj", "{ED6A8E47-67FB-42CA-9B6E-9095C427B64C}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaPatMgrUnitTests", "SaPatMgrUnitTests\SaPatMgrUnitTests.csproj", "{E133E234-02D4-43E9-9667-35B9A0FB0D2C}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3103B105-D3FA-4A64-A3D5-1B6EA680472B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3103B105-D3FA-4A64-A3D5-1B6EA680472B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3103B105-D3FA-4A64-A3D5-1B6EA680472B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3103B105-D3FA-4A64-A3D5-1B6EA680472B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7528F88E-A24D-4D6B-BE6C-9D5FB14F0CB5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7528F88E-A24D-4D6B-BE6C-9D5FB14F0CB5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7528F88E-A24D-4D6B-BE6C-9D5FB14F0CB5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7528F88E-A24D-4D6B-BE6C-9D5FB14F0CB5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{86E11448-66DF-4EB6-922F-C84E220608AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{86E11448-66DF-4EB6-922F-C84E220608AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{86E11448-66DF-4EB6-922F-C84E220608AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{86E11448-66DF-4EB6-922F-C84E220608AD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{18353651-1F1A-4B23-91FB-BDB9AA56BC57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{18353651-1F1A-4B23-91FB-BDB9AA56BC57}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{18353651-1F1A-4B23-91FB-BDB9AA56BC57}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{18353651-1F1A-4B23-91FB-BDB9AA56BC57}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E9106099-66B4-42DB-AF28-C34CF1AFF2AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E9106099-66B4-42DB-AF28-C34CF1AFF2AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E9106099-66B4-42DB-AF28-C34CF1AFF2AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E9106099-66B4-42DB-AF28-C34CF1AFF2AA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9F5D8526-B4B9-457F-8DBA-E6B79B938AA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9F5D8526-B4B9-457F-8DBA-E6B79B938AA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9F5D8526-B4B9-457F-8DBA-E6B79B938AA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9F5D8526-B4B9-457F-8DBA-E6B79B938AA9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7601486B-9563-40BB-81F0-7B45D9F62D70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7601486B-9563-40BB-81F0-7B45D9F62D70}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7601486B-9563-40BB-81F0-7B45D9F62D70}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7601486B-9563-40BB-81F0-7B45D9F62D70}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{57674A5E-B0F1-49CA-A56F-F8B8CA12FBF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{57674A5E-B0F1-49CA-A56F-F8B8CA12FBF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{57674A5E-B0F1-49CA-A56F-F8B8CA12FBF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{57674A5E-B0F1-49CA-A56F-F8B8CA12FBF6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{ED6A8E47-67FB-42CA-9B6E-9095C427B64C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{ED6A8E47-67FB-42CA-9B6E-9095C427B64C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{ED6A8E47-67FB-42CA-9B6E-9095C427B64C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{ED6A8E47-67FB-42CA-9B6E-9095C427B64C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E133E234-02D4-43E9-9667-35B9A0FB0D2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E133E234-02D4-43E9-9667-35B9A0FB0D2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E133E234-02D4-43E9-9667-35B9A0FB0D2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E133E234-02D4-43E9-9667-35B9A0FB0D2C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {16CEAE1F-B95C-49D0-81D8-9553FCD25988}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
|
||||
</startup>
|
||||
</configuration>
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
namespace Sarand.PatientMgr.App.Forms
|
||||
{
|
||||
partial class SaPatientMgrForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent ()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "Form1";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.Win.Forms;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.App.Forms
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SaPatientMgrForm : SacsForm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SacsForm.Config
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = null;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
private SaPatientMgrForm () : this(new Config()) { }
|
||||
public SaPatientMgrForm (Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
InitializeComponent();
|
||||
|
||||
// Configuration.
|
||||
Text = Spm.ApplicationCaption;
|
||||
ShowIcon = false;
|
||||
MinimizeBox = false;
|
||||
MaximizeBox = false;
|
||||
WindowState = FormWindowState.Maximized;
|
||||
}
|
||||
protected override void Dispose (bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
if (components != null)
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl ()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
}
|
||||
protected override void OnShown (EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.Core.App;
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.PatientMgr.App.Forms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.App
|
||||
{
|
||||
//=======================================================================
|
||||
static class Program
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>The main entry point for the application.</summary>
|
||||
[STAThread]
|
||||
static void Main (string[] args)
|
||||
{
|
||||
// Parse command line.
|
||||
SacsCommandLineInfo CmdLineInfo = new SacsCommandLineInfo(args);
|
||||
bool runProcesses = (CmdLineInfo.ProcessDefinitions.Count > 0);
|
||||
|
||||
// PatientMgr Application.
|
||||
String logMessageSuffix = (runProcesses ? " [auto]" : "");
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
// Main form.
|
||||
SaPatientMgrForm.Config configMainForm = new SaPatientMgrForm.Config();
|
||||
using (Form mainForm = new SaPatientMgrForm(configMainForm))
|
||||
{
|
||||
Application.Run(mainForm);
|
||||
}
|
||||
Logger.Info(Spm.ApplicationCaption + " End" + logMessageSuffix, true);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.Core.IO;
|
||||
using Sarand.PatientMgr.Win.Dbas.App;
|
||||
using Sarand.PatientMgr.Win.Forms.App;
|
||||
using Sarand.Win.Dbas.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.PatientMgr.App
|
||||
{
|
||||
//=======================================================================
|
||||
class SaPatientMgrApp : SacsStateItem, IDisposable
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private static SaPatientMgrApp app = null;
|
||||
private PropertySet properties = null;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SaPatientMgrApp (String initialLogMessage)
|
||||
{
|
||||
app = this;
|
||||
SpmSystem_WinDbas.InitStatics();
|
||||
|
||||
// Locate properties file:
|
||||
String propertiesFilePath = FileUtil.LocateFileRelative("SaPatientMgr.cfg", new List<String> { "Bin" });
|
||||
properties = PropertySet.GetPropertiesFromFile(propertiesFilePath);
|
||||
if (properties != null)
|
||||
{
|
||||
//properties.Dump();
|
||||
|
||||
Spm.Site Site = EnumUtil.ParseEnum(properties.GetPropertyValue("Config", "Site"), Spm.Site.Unknown);
|
||||
|
||||
// Default logger properties.
|
||||
Logger.LogFilenamePrefix = "SPM-Desktop";
|
||||
Logger.LogFolder = properties.GetPropertyValue("Logging", "Folder");
|
||||
#if DEBUG
|
||||
Logger.ConsoleLevel = SaMessageLevel.Trace;
|
||||
#endif
|
||||
Logger.LogFileLevel = EnumUtil.StartsWith(properties.GetPropertyValue("Logging", "Level"), SaMessageLevel.Info);
|
||||
Logger.Info(initialLogMessage, true);
|
||||
Logger.Info("Logging level: " + Logger.LogFileLevel);
|
||||
|
||||
// Configure extended logging.
|
||||
List<String> extendedLoggingOptions = StringList.Split(properties.GetPropertyValue("Logging", "ExtendedLogging"));
|
||||
if (!extendedLoggingOptions.IsEmpty())
|
||||
Logger.Info("Extended logging: " + extendedLoggingOptions.Concat(","));
|
||||
}
|
||||
else SetErrorState("Properties file not found");
|
||||
|
||||
SessionContext = new SpmSessionContext_Desktop(0, Site);
|
||||
InitGlobals();
|
||||
//SpmGlobals.DbConsole.VerifyDatabaseSchema();
|
||||
}
|
||||
public void Dispose ()
|
||||
{
|
||||
app = null;
|
||||
DeinitGlobals();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
public Spm.Site Site { get; } = Spm.Site.Unknown;
|
||||
public SpmSessionContext SessionContext { get; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n s t a n c e
|
||||
//-------------------------------------------------------------------
|
||||
public static SaPatientMgrApp getInstance ()
|
||||
{
|
||||
return app;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// G l o b a l s
|
||||
//-------------------------------------------------------------------
|
||||
private void InitGlobals ()
|
||||
{
|
||||
// System.
|
||||
SpmGlobals.System = new SpmSystem_WinDbas(properties);
|
||||
|
||||
// Database.
|
||||
SacsDatabase database = OpenDatabase();
|
||||
//SpmGlobals.DbConsole = new LogisticsMgrDbConsoleDbas();
|
||||
|
||||
// Global application.
|
||||
SpmGlobals.Application = new SpmApplication_Desktop(properties, SessionContext, database);
|
||||
|
||||
// Session profile.
|
||||
SpmSessionProfile_Desktop sessionProfile = new SpmSessionProfile_Desktop();
|
||||
SpmGlobals_Win.SessionProfile = sessionProfile;
|
||||
}
|
||||
private SacsDatabase OpenDatabase ()
|
||||
{
|
||||
SacsDatabaseConsole.OdbcConfig config = new SacsDatabaseConsole.OdbcConfig();
|
||||
config.location = properties.GetPropertyValue("Database", "Location");
|
||||
config.user = properties.GetPropertyValue("Database", "User");
|
||||
config.pword = properties.GetPropertyValue("Database", "Pword");
|
||||
Logger.Trace("BusinessMgrApp OpenDatabase Location=" + config.location);
|
||||
|
||||
SacsDatabase database = SacsDatabaseConsole.OpenOdbcDatabase(config);
|
||||
|
||||
bool catalogDatabase = true;
|
||||
if (catalogDatabase)
|
||||
{
|
||||
foreach (String tableName in database.GetTableNames())
|
||||
{
|
||||
database.GetTableDfn(tableName);
|
||||
}
|
||||
}
|
||||
return database;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
private void DeinitGlobals ()
|
||||
{
|
||||
SpmGlobals.clear();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.Core.CodeTypes;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.Win.Dbas.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Sarand.PatientMgr.App
|
||||
{
|
||||
//=======================================================================
|
||||
public class SpmApplication_Desktop : SpmApplication
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmApplication_Desktop (PropertySet properties, SpmSessionContext sessionContext, SacsDatabase database)
|
||||
{
|
||||
Properties = properties;
|
||||
SessionContext = sessionContext;
|
||||
Database = database;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
public PropertySet Properties { get; }
|
||||
public SpmSessionContext SessionContext { get; }
|
||||
public SacsDatabase Database { get; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Database.
|
||||
public override ISacsDatabase GetDatabase (SpmSessionContext sessionContext)
|
||||
{
|
||||
return Database;
|
||||
}
|
||||
//public override bool ColumnExists (SbmSessionContext sessionContext, SbmDbDfn.ColumnIdx columnIdx)
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Code Type console.
|
||||
public override SaCodeTypeConsole GetCodeTypeConsole (SpmUserContext userContext)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.PatientMgr.App
|
||||
{
|
||||
//=======================================================================
|
||||
public class SpmSessionContext_Desktop : SpmSessionContext
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmSessionContext_Desktop (ushort index, Spm.Site site) :
|
||||
base(index, site)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using Sarand.PatientMgr.Win.Forms.App;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.PatientMgr.App
|
||||
{
|
||||
//=======================================================================
|
||||
/// <summary>
|
||||
/// PatientMgr global properties for desktop application.
|
||||
/// </summary>
|
||||
public class SpmSessionProfile_Desktop : SpmSessionProfile_Win
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmSessionProfile_Desktop ()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("SaPatientMgr")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("SaPatientMgr")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2019")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("3103b105-d3fa-4a64-a3d5-1b6ea680472b")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Sarand.PatientMgr.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Sarand.PatientMgr.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Sarand.PatientMgr.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{3103B105-D3FA-4A64-A3D5-1B6EA680472B}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>Sarand.PatientMgr</RootNamespace>
|
||||
<AssemblyName>SaPatientMgr</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>Resources\icon\SaWardMgr.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App\Forms\SaPatientMgrForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="App\Forms\SaPatientMgrForm.Designer.cs">
|
||||
<DependentUpon>SaPatientMgrForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="App\Program.cs" />
|
||||
<Compile Include="App\SaPatientMgrApp.cs" />
|
||||
<Compile Include="App\SpmApplication_Desktop.cs" />
|
||||
<Compile Include="App\SpmSessionContext_Desktop.cs" />
|
||||
<Compile Include="App\SpmSessionProfile_Desktop.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="App\Consoles\" />
|
||||
<Folder Include="App\Panels\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsCoreBase\SacsCoreBase.csproj">
|
||||
<Project>{7528f88e-a24d-4d6b-be6c-9d5fb14f0cb5}</Project>
|
||||
<Name>SacsCoreBase</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsWinDbas\SacsWinDbas.csproj">
|
||||
<Project>{86e11448-66df-4eb6-922f-c84e220608ad}</Project>
|
||||
<Name>SacsWinDbas</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsWinForms\SacsWinForms.csproj">
|
||||
<Project>{18353651-1f1a-4b23-91fb-bdb9aa56bc57}</Project>
|
||||
<Name>SacsWinForms</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\..\Common-C#\Workspace\SacsWinOffice\SacsWinOffice.csproj">
|
||||
<Project>{e9106099-66b4-42db-af28-c34cf1aff2aa}</Project>
|
||||
<Name>SacsWinOffice</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SaPatMgrCore\SaPatMgrCore.csproj">
|
||||
<Project>{57674a5e-b0f1-49ca-a56f-f8b8ca12fbf6}</Project>
|
||||
<Name>SaPatMgrCore</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SaPatMgrWinDbas\SaPatMgrWinDbas.csproj">
|
||||
<Project>{9f5d8526-b4b9-457f-8dba-e6b79b938aa9}</Project>
|
||||
<Name>SaPatMgrWinDbas</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SaPatMgrWinForms\SaPatMgrWinForms.csproj">
|
||||
<Project>{7601486b-9563-40bb-81f0-7b45d9f62d70}</Project>
|
||||
<Name>SaPatMgrWinForms</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\SaPatMgrWinProcs\SaPatMgrWinProcs.csproj">
|
||||
<Project>{ed6a8e47-67fb-42ca-9b6e-9095c427b64c}</Project>
|
||||
<Name>SaPatMgrWinProcs</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Resources\icon\SaWardMgr.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>if not exist "$(SolutionDir)..\Bin" (
|
||||
echo Creating '$(SolutionDir)..\Bin' folder.
|
||||
mkdir "$(SolutionDir)..\Bin"
|
||||
)
|
||||
if not exist "$(SolutionDir)..\Bin\$(ConfigurationName)" (
|
||||
echo Creating '$(SolutionDir)..\Bin\$(ConfigurationName)' folder.
|
||||
mkdir "$(SolutionDir)..\Bin\$(ConfigurationName)"
|
||||
)
|
||||
copy /y "$(TargetDir)*.dll" "$(SolutionDir)..\Bin\$(ConfigurationName)\"
|
||||
copy /y "$(TargetDir)*.exe" "$(SolutionDir)..\Bin\$(ConfigurationName)\"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user