did a little more work on Refills
This commit is contained in:
@@ -226,17 +226,17 @@ namespace FWA_MAIN
|
||||
if (gvPrescription.SelectedRow != null)
|
||||
{
|
||||
|
||||
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);
|
||||
}
|
||||
else
|
||||
{
|
||||
string script = "window.open('MaxRefillNotif.aspx', 'PopupWindow', 'width=600,height=400,left=100,top=100');";
|
||||
ScriptManager.RegisterStartupScript(this, GetType(), "popup", script, true);
|
||||
}
|
||||
PharmacyDataTier.RefreshRefill(gvPrescription.SelectedRow.Cells[0].Text);
|
||||
BindData();
|
||||
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);
|
||||
}
|
||||
else
|
||||
{
|
||||
string script = "window.open('MaxRefillNotif.aspx', 'PopupWindow', 'width=600,height=400,left=100,top=100');";
|
||||
ScriptManager.RegisterStartupScript(this, GetType(), "popup", script, true);
|
||||
}
|
||||
PharmacyDataTier.RefreshRefill(gvPrescription.SelectedRow.Cells[0].Text);
|
||||
BindData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -47,9 +47,17 @@ namespace FWA_MAIN
|
||||
|
||||
protected void btnRefDelete_OnClick(object sender, EventArgs e)
|
||||
{
|
||||
PharmacyDataTier.DeleteRefill(gvRefills.SelectedRow.Cells[0].Text);
|
||||
PharmacyDataTier.RefreshRefill(gvRefills.SelectedRow.Cells[4].Text);
|
||||
Fill();
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
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)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
70b4448723339e99ed60f3c81dc6a5d1da61b1ddf61a97f8541739006170aed6
|
||||
feafdb195a4113bc7d55e6cf55d7dcf2413ba64944ee378d3abf65104964d9e6
|
||||
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user