made QOL changes to refill edit
This commit is contained in:
parent
f83804237c
commit
63e5ad09fb
@ -48,7 +48,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
dgvRefills.DataSource = ds.Tables[0];
|
dgvRefills.DataSource = ds.Tables[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
private void frmRefill_reLoad(object sender, EventArgs e)
|
public void frmRefill_reLoad(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
int rxID = 0;
|
int rxID = 0;
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
|
|
||||||
refillID = (row.Cells[0].Value).ToString();
|
refillID = (row.Cells[0].Value).ToString();
|
||||||
|
|
||||||
frmRefillAdd add = new frmRefillAdd(false);
|
frmRefillAdd add = new frmRefillAdd(false, this);
|
||||||
add.MdiParent = MdiParent;
|
add.MdiParent = MdiParent;
|
||||||
add.StartPosition = FormStartPosition.CenterScreen;
|
add.StartPosition = FormStartPosition.CenterScreen;
|
||||||
add.Show();
|
add.Show();
|
||||||
|
@ -16,9 +16,11 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
private static bool isAdd;
|
private static bool isAdd;
|
||||||
public DataSet ds = new DataSet();
|
public DataSet ds = new DataSet();
|
||||||
public string currentID = "";
|
public string currentID = "";
|
||||||
|
private frmRefill SourceForm;
|
||||||
public frmRefillAdd(bool isNew)
|
public frmRefillAdd(bool isNew, frmRefill refillform)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
SourceForm = refillform;
|
||||||
isAdd = isNew;
|
isAdd = isNew;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
@ -126,6 +128,9 @@ namespace Louis__Pharmacy_CNSA212_FP
|
|||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SourceForm.frmRefill_reLoad(sender, e);
|
||||||
|
Close();
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user