Skip to content

Instantly share code, notes, and snippets.

@hasokeric
Created August 31, 2016 15:29
Show Gist options
  • Save hasokeric/7b5fbb537b9fbf78db9aeb41a52661a6 to your computer and use it in GitHub Desktop.
Save hasokeric/7b5fbb537b9fbf78db9aeb41a52661a6 to your computer and use it in GitHub Desktop.
Set Invoice Selected in AR Cash Receipt Entry
public void selectInv(int invc)
{
EpiDataView edv = oTrans.Factory("InvcHead");
for(int i =0; i < edv.dataView.Count; i++)
{
if((int)edv.dataView[i]["InvoiceNum"] == invc)
{
//edv.Row =i;
edv.RaiseRowChanged(i,edv.Row);
edv.Notify(new EpiNotifyArgs(oTrans, i, EpiTransaction.NotifyType.Initialize));
edv.dataView[i]["InvcSelected"]=true;
edv.Notify(new EpiNotifyArgs(oTrans, i, edv.Column));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment