did a little more work on Refills
This commit is contained in:
parent
9c78ff1aed
commit
69e33fd0a8
@ -155,7 +155,7 @@
|
|||||||
<virtualDirectoryDefaults allowSubDirConfig="true" />
|
<virtualDirectoryDefaults allowSubDirConfig="true" />
|
||||||
<site name="FWA_MAIN" id="1">
|
<site name="FWA_MAIN" id="1">
|
||||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||||
<virtualDirectory path="/" physicalPath="C:\Users\eggman\Nextcloud\TSCT\2nd Year\SEM 4\RiderProjects\FWA_MAIN\FWA_MAIN" />
|
<virtualDirectory path="/" physicalPath="C:\Users\caschick221\RiderProjects\FWA_MAIN\FWA_MAIN" />
|
||||||
</application>
|
</application>
|
||||||
<bindings>
|
<bindings>
|
||||||
<binding protocol="http" bindingInformation="*:5000:localhost" />
|
<binding protocol="http" bindingInformation="*:5000:localhost" />
|
||||||
|
@ -226,17 +226,17 @@ namespace FWA_MAIN
|
|||||||
if (gvPrescription.SelectedRow != null)
|
if (gvPrescription.SelectedRow != null)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (int.Parse(gvPrescription.SelectedRow.Cells[2].Text) < int.Parse(gvPrescription.SelectedRow.Cells[1].Text))
|
if (int.Parse(gvPrescription.SelectedRow.Cells[2].Text) < int.Parse(gvPrescription.SelectedRow.Cells[1].Text))
|
||||||
{
|
{
|
||||||
PharmacyDataTier.AddRefill(PharmacyDataTier.GetNextRefillID().ToString(), DateTime.Now, gvPrescription.SelectedRow.Cells[5].Text,gvPrescription.SelectedRow.Cells[4].Text,gvPrescription.SelectedRow.Cells[0].Text);
|
PharmacyDataTier.AddRefill(PharmacyDataTier.GetNextRefillID().ToString(), DateTime.Now, gvPrescription.SelectedRow.Cells[5].Text,gvPrescription.SelectedRow.Cells[4].Text,gvPrescription.SelectedRow.Cells[0].Text);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string script = "window.open('MaxRefillNotif.aspx', 'PopupWindow', 'width=600,height=400,left=100,top=100');";
|
string script = "window.open('MaxRefillNotif.aspx', 'PopupWindow', 'width=600,height=400,left=100,top=100');";
|
||||||
ScriptManager.RegisterStartupScript(this, GetType(), "popup", script, true);
|
ScriptManager.RegisterStartupScript(this, GetType(), "popup", script, true);
|
||||||
}
|
}
|
||||||
PharmacyDataTier.RefreshRefill(gvPrescription.SelectedRow.Cells[0].Text);
|
PharmacyDataTier.RefreshRefill(gvPrescription.SelectedRow.Cells[0].Text);
|
||||||
BindData();
|
BindData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -47,9 +47,17 @@ namespace FWA_MAIN
|
|||||||
|
|
||||||
protected void btnRefDelete_OnClick(object sender, EventArgs e)
|
protected void btnRefDelete_OnClick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
PharmacyDataTier.DeleteRefill(gvRefills.SelectedRow.Cells[0].Text);
|
|
||||||
PharmacyDataTier.RefreshRefill(gvRefills.SelectedRow.Cells[4].Text);
|
try
|
||||||
Fill();
|
{
|
||||||
|
|
||||||
|
PharmacyDataTier.DeleteRefill(gvRefills.SelectedRow.Cells[0].Text);
|
||||||
|
PharmacyDataTier.RefreshRefill(gvRefills.SelectedRow.Cells[4].Text);
|
||||||
|
Fill();
|
||||||
|
}
|
||||||
|
catch (Exception exception)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void gvRefills_OnRowCommand(object sender, GridViewCommandEventArgs e)
|
protected void gvRefills_OnRowCommand(object sender, GridViewCommandEventArgs e)
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
70b4448723339e99ed60f3c81dc6a5d1da61b1ddf61a97f8541739006170aed6
|
feafdb195a4113bc7d55e6cf55d7dcf2413ba64944ee378d3abf65104964d9e6
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user