Skip to content

Commit 28e8de7

Browse files
new version updated
1 parent 7bc2afd commit 28e8de7

File tree

13,239 files changed

+2259280
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

13,239 files changed

+2259280
-7
lines changed

.gitignore

+5-7
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ node_modules/
44
bin
55
obj
66
v16
7-
#below packages replaced with line 8 /Code/Solutions/packages
8-
# packages
9-
/Code/Solutions/packages
7+
packages
108
.vs
119
package-lock.json
1210
$tf/
@@ -15,7 +13,7 @@ HAMS_Requirements/
1513
.tfignore
1614
*.txt
1715
*.xlsx
18-
/Database/DanpheEMR_OS.bak
19-
20-
/Code/Websites/DanpheEMR/Properties/PublishProfiles
21-
16+
/Code/Solutions/global.json
17+
/Code/Websites/DanpheEMR/appsettings.json
18+
/Database/DanpheEMR_CompleteDB_4th_August_2019.bak
19+
/Code/Websites/DanpheEMR/DanpheEmrAPI.xml

Code/.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# ignorig global.json
4+
/Solutions/global.json
5+
6+
#ignoring appsettings.json
7+
/Websites/DanpheEMR/appsettings.json

Code/Components/DanpheEMR.AccTransfer/Accounting/AccountingTransferData.cs

+9,272
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<configSections>
4+
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
5+
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
6+
</configSections>
7+
<connectionStrings>
8+
<add name="accConnStr" connectionString="Data Source=WINDOWS-0KVGKAU\SQLEXPRESS;Initial Catalog=LIVE_HAMS_EMR_30th_April_2019;Integrated Security=True;MultipleActiveResultSets=true" />
9+
</connectionStrings>
10+
<startup>
11+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
12+
</startup>
13+
<entityFramework>
14+
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
15+
<parameters>
16+
<parameter value="mssqllocaldb" />
17+
</parameters>
18+
</defaultConnectionFactory>
19+
<providers>
20+
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
21+
</providers>
22+
</entityFramework>
23+
<runtime>
24+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
25+
<dependentAssembly>
26+
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
27+
<bindingRedirect oldVersion="0.0.0.0-4.1.1.2" newVersion="4.2.0.0" />
28+
</dependentAssembly>
29+
<dependentAssembly>
30+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
31+
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
32+
</dependentAssembly>
33+
<dependentAssembly>
34+
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
35+
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
36+
</dependentAssembly>
37+
<dependentAssembly>
38+
<assemblyIdentity name="System.Reflection.Metadata" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
39+
<bindingRedirect oldVersion="0.0.0.0-1.3.0.0" newVersion="1.3.0.0" />
40+
</dependentAssembly>
41+
<dependentAssembly>
42+
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
43+
<bindingRedirect oldVersion="0.0.0.0-1.2.0.0" newVersion="1.2.0.0" />
44+
</dependentAssembly>
45+
<dependentAssembly>
46+
<assemblyIdentity name="System.Xml.ReaderWriter" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
47+
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.1.0" />
48+
</dependentAssembly>
49+
</assemblyBinding>
50+
</runtime>
51+
</configuration>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{65F2D966-FEAA-4B2B-A818-9BAA4BD2BB3E}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<RootNamespace>DanpheEMR.AccTransfer</RootNamespace>
10+
<AssemblyName>DanpheEMR.AccTransfer</AssemblyName>
11+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14+
<Deterministic>true</Deterministic>
15+
<IsWebBootstrapper>false</IsWebBootstrapper>
16+
<PublishUrl>D:\Publishexe\</PublishUrl>
17+
<Install>true</Install>
18+
<InstallFrom>Disk</InstallFrom>
19+
<UpdateEnabled>false</UpdateEnabled>
20+
<UpdateMode>Foreground</UpdateMode>
21+
<UpdateInterval>7</UpdateInterval>
22+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
23+
<UpdatePeriodically>false</UpdatePeriodically>
24+
<UpdateRequired>false</UpdateRequired>
25+
<MapFileExtensions>true</MapFileExtensions>
26+
<AutorunEnabled>true</AutorunEnabled>
27+
<ApplicationRevision>1</ApplicationRevision>
28+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
29+
<UseApplicationTrust>false</UseApplicationTrust>
30+
<PublishWizardCompleted>true</PublishWizardCompleted>
31+
<BootstrapperEnabled>true</BootstrapperEnabled>
32+
</PropertyGroup>
33+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
34+
<PlatformTarget>AnyCPU</PlatformTarget>
35+
<DebugSymbols>true</DebugSymbols>
36+
<DebugType>full</DebugType>
37+
<Optimize>false</Optimize>
38+
<OutputPath>bin\Debug\</OutputPath>
39+
<DefineConstants>DEBUG;TRACE</DefineConstants>
40+
<ErrorReport>prompt</ErrorReport>
41+
<WarningLevel>4</WarningLevel>
42+
<Prefer32Bit>false</Prefer32Bit>
43+
</PropertyGroup>
44+
<ItemGroup>
45+
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
46+
<HintPath>..\..\Solutions\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
47+
</Reference>
48+
<Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
49+
<HintPath>..\..\Solutions\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll</HintPath>
50+
</Reference>
51+
<Reference Include="Json.Net, Version=1.0.16.1, Culture=neutral, processorArchitecture=MSIL">
52+
<HintPath>..\..\Solutions\packages\Json.Net.1.0.16\lib\netstandard2.0\Json.Net.dll</HintPath>
53+
</Reference>
54+
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
55+
<HintPath>..\..\Solutions\packages\Newtonsoft.Json.11.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
56+
</Reference>
57+
<Reference Include="System" />
58+
<Reference Include="System.ComponentModel.DataAnnotations" />
59+
<Reference Include="System.Configuration" />
60+
<Reference Include="System.Core" />
61+
<Reference Include="System.Data.Entity.Design" />
62+
<Reference Include="System.Xml.Linq" />
63+
<Reference Include="System.Data.DataSetExtensions" />
64+
<Reference Include="Microsoft.CSharp" />
65+
<Reference Include="System.Data" />
66+
<Reference Include="System.Net.Http" />
67+
<Reference Include="System.Xml" />
68+
</ItemGroup>
69+
<ItemGroup>
70+
<Compile Include="Accounting\AccountingTransferData.cs" />
71+
<Compile Include="Program.cs" />
72+
<Compile Include="Properties\AssemblyInfo.cs" />
73+
<Compile Include="TransferToACC.cs" />
74+
</ItemGroup>
75+
<ItemGroup>
76+
<None Include="App.config">
77+
<SubType>Designer</SubType>
78+
</None>
79+
<None Include="packages.config">
80+
<SubType>Designer</SubType>
81+
</None>
82+
</ItemGroup>
83+
<ItemGroup>
84+
<ProjectReference Include="..\DanpheEMR.Core\DanpheEMR.Core.csproj">
85+
<Project>{60955cc2-3e42-4c29-9c75-483d93519b6d}</Project>
86+
<Name>DanpheEMR.Core</Name>
87+
</ProjectReference>
88+
<ProjectReference Include="..\DanpheEMR.DalLayer\DanpheEMR.DalLayer.csproj">
89+
<Project>{ec22cbd9-a8e4-467a-8a16-43f3e71b4290}</Project>
90+
<Name>DanpheEMR.DalLayer</Name>
91+
</ProjectReference>
92+
<ProjectReference Include="..\DanpheEMR.Security\DanpheEMR.Security.csproj">
93+
<Project>{8991b666-5859-409a-a2df-396a5d54fd72}</Project>
94+
<Name>DanpheEMR.Security</Name>
95+
</ProjectReference>
96+
<ProjectReference Include="..\DanpheEMR.ServerModel\DanpheEMR.ServerModel.csproj">
97+
<Project>{df409ee3-c34b-4ae6-9070-3c1554d41402}</Project>
98+
<Name>DanpheEMR.ServerModel</Name>
99+
</ProjectReference>
100+
</ItemGroup>
101+
<ItemGroup>
102+
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
103+
<Visible>False</Visible>
104+
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 and x64%29</ProductName>
105+
<Install>true</Install>
106+
</BootstrapperPackage>
107+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
108+
<Visible>False</Visible>
109+
<ProductName>.NET Framework 3.5 SP1</ProductName>
110+
<Install>false</Install>
111+
</BootstrapperPackage>
112+
</ItemGroup>
113+
<ItemGroup>
114+
<WCFMetadata Include="Connected Services\" />
115+
</ItemGroup>
116+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
117+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using DanpheEMR.AccTransfer;
7+
using DanpheEMR.Core;
8+
using DanpheEMR.ServerModel;
9+
10+
namespace DanpheEMR.AccTransfer
11+
{
12+
public class Program
13+
{
14+
static void Main(string[] args)
15+
{
16+
//if (TransferToACC.EnabledData())
17+
//{
18+
// Console.WriteLine("transfer to acc in progress..");
19+
// TransferToACC obj = new TransferToACC();
20+
// var post = TransferToACC.PostData(1); //inventory transfer
21+
// Program.ShowMessage((post == 0) ? "0 Records of inventory transfer" : "inventory " + post + " records transferrd successfully");
22+
// Console.WriteLine("Billing records transfer to acc in progress..");
23+
// var Billingpost = TransferToACC.PostData(2); //billing transfer
24+
// Program.ShowMessage((Billingpost == 0) ? " 0 Records of billing transfer" : "Billing " + Billingpost + " records transferrd successfully");
25+
// Console.WriteLine("Pharmacy records transfer to acc in progress..");
26+
// var Pharmacypost = TransferToACC.PostData(3); //pharmacy transfer
27+
// Program.ShowMessage((Pharmacypost == 0) ? "0 Records of pharmacy transfer" : "Pharmacy " + Pharmacypost + " records transferrd successfully");
28+
29+
// if (post >= 0 && Pharmacypost >= 0 && Billingpost >= 0)
30+
// Console.WriteLine("transferred successfully");
31+
// else
32+
// Console.WriteLine("transfer failed");
33+
34+
//}else
35+
//{
36+
// Console.WriteLine("Automatic transfer not allowed!! Please contact administrator to enable Automatic Accounting Transfer...");
37+
//}
38+
39+
}
40+
public static void ShowMessage(string message)
41+
{
42+
Console.WriteLine(message);
43+
}
44+
45+
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("DanpheEMR.AccTransafer")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("DanpheEMR.AccTransafer")]
13+
[assembly: AssemblyCopyright("Copyright © 2019")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("65f2d966-feaa-4b2b-a818-9baa4bd2bb3e")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Configuration;
7+
using DanpheEMR.AccTransfer;
8+
using DanpheEMR.ServerModel;
9+
using System.Reflection;
10+
using DanpheEMR.Core;
11+
using Newtonsoft.Json.Linq;
12+
using Newtonsoft.Json;
13+
14+
namespace DanpheEMR.AccTransfer
15+
{
16+
public class TransferToACC
17+
{
18+
public static string accConn = ConfigurationManager.ConnectionStrings["accConnStr"].ConnectionString;
19+
public static string plainConnString;
20+
21+
22+
//check enabled automatic transfer to accounting
23+
public static bool EnabledData()
24+
{
25+
try
26+
{
27+
var con = TransferToACC.getConnection(accConn); // decrypted connectionstring;
28+
CoreDbContext coreDbContext = new CoreDbContext(con);
29+
var result = (from par in coreDbContext.Parameters
30+
where (par.ParameterGroupName == "Accounting" && par.ParameterName == "AccountingTransfer")
31+
select par.ParameterValue).FirstOrDefault();
32+
var data = (JObject)JsonConvert.DeserializeObject(result);
33+
var check = data["AutomaticTransfer"].Value<string>();
34+
if (check == "True")
35+
return true;
36+
else return false;
37+
}
38+
catch (Exception ex)
39+
{
40+
Console.WriteLine(ex);
41+
return false;
42+
}
43+
}
44+
45+
46+
public static string getConnection(string encConnString)
47+
{
48+
string connString = "";
49+
string[] parts = encConnString.Split(';');
50+
string encUserId = "";
51+
string decUserId = "";
52+
string encPassword = "";
53+
string decPassword = "";
54+
for (int i = 0; i < parts.Length; i++)
55+
{
56+
string part = parts[i].Trim();
57+
if (part.StartsWith("user Id="))
58+
{
59+
encUserId = part.Replace("User Id=", "");
60+
decUserId = DanpheEMR.Security.RBAC.DecryptPassword(encUserId);
61+
connString = encConnString.Replace(encUserId, decUserId);
62+
}
63+
else if (part.StartsWith("Password="))
64+
{
65+
encPassword = part.Replace("Password=", "");
66+
decPassword = DanpheEMR.Security.RBAC.DecryptPassword(encPassword);
67+
connString = encConnString.Replace(encPassword, decPassword);
68+
}
69+
}
70+
plainConnString = (connString.Length > 0) ? connString : encConnString;
71+
return plainConnString;
72+
}
73+
74+
}
75+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="EntityFramework" version="6.2.0" targetFramework="net461" />
4+
<package id="Json.Net" version="1.0.16" targetFramework="net461" />
5+
<package id="Newtonsoft.Json" version="11.0.1" targetFramework="net461" />
6+
</packages>

0 commit comments

Comments
 (0)