Connected the project database and added a tool strip to the view patient/prescription info form.

This commit is contained in:
Adam McCane 2024-02-02 16:00:30 -05:00
parent a5cfb16d80
commit 14317064ea
11 changed files with 10175 additions and 20 deletions

View File

@ -1,5 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="Louis__Pharmacy_CNSA212_FP.Properties.Settings.FPCASConnectionString"
connectionString="Data Source=100.102.137.92;Initial Catalog=FPCAS;User ID=admin;Password=password;Encrypt=False"
providerName="System.Data.SqlClient" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@


File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@


View File

@ -46,6 +46,11 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="FPCASDataSet.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>FPCASDataSet.xsd</DependentUpon>
</Compile>
<Compile Include="frmAddPatientPhysician.cs">
<SubType>Form</SubType>
</Compile>
@ -102,6 +107,17 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="FPCASDataSet.xsc">
<DependentUpon>FPCASDataSet.xsd</DependentUpon>
</None>
<None Include="FPCASDataSet.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>FPCASDataSet.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
<None Include="FPCASDataSet.xss">
<DependentUpon>FPCASDataSet.xsd</DependentUpon>
</None>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>

View File

@ -8,22 +8,30 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace Louis__Pharmacy_CNSA212_FP.Properties
{
namespace Louis__Pharmacy_CNSA212_FP.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.8.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
{
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=100.102.137.92;Initial Catalog=FPCAS;User ID=admin;Password=password;" +
"Encrypt=False")]
public string FPCASConnectionString {
get {
return ((string)(this["FPCASConnectionString"]));
}
}
}
}

View File

@ -1,7 +1,14 @@
<?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>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Louis__Pharmacy_CNSA212_FP.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="FPCASConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
&lt;ConnectionString&gt;Data Source=100.102.137.92;Initial Catalog=FPCAS;User ID=admin;Password=password;Encrypt=False&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=100.102.137.92;Initial Catalog=FPCAS;User ID=admin;Password=password;Encrypt=False</Value>
</Setting>
</Settings>
</SettingsFile>

View File

@ -30,20 +30,35 @@ namespace Louis__Pharmacy_CNSA212_FP
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmInfo));
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
this.SuspendLayout();
//
// toolStrip1
//
this.toolStrip1.Location = new System.Drawing.Point(0, 0);
this.toolStrip1.Name = "toolStrip1";
this.toolStrip1.Size = new System.Drawing.Size(690, 25);
this.toolStrip1.TabIndex = 0;
this.toolStrip1.Text = "toolStrip1";
//
// frmInfo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.ClientSize = new System.Drawing.Size(690, 380);
this.Controls.Add(this.toolStrip1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Name = "frmInfo";
this.Text = "Louis\' Pharmacy - View Patient / Prescription Info";
this.Load += new System.EventHandler(this.frmInfo_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ToolStrip toolStrip1;
}
}

View File

@ -16,5 +16,12 @@ namespace Louis__Pharmacy_CNSA212_FP
{
InitializeComponent();
}
private void frmInfo_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'fPCASDataSet.patientCount' table. You can move, or remove it, as needed.
this.patientCountTableAdapter.Fill(this.fPCASDataSet.patientCount);
}
}
}

View File

@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>