Page 1 of 1
OpenDentBusiness AppointmentDeleteds request
Posted: Mon Apr 24, 2017 10:17 am
by tim
Hi,
Could the following method be added to the OpenDentBusiness.AppointmentDeleteds class:
Code: Select all
public static List<AppointmentDeleted> GetChangedSince(DateTime changedSince)
{
if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
{
return Meth.GetObject<List<AppointmentDeleted>>(MethodBase.GetCurrentMethod(), changedSince);
}
string command = "SELECT * FROM appointmentdeleted WHERE DateTStamp > " + POut.DateT(changedSince);
return Crud.AppointmentDeletedCrud.SelectMany(command);
}
Thanks.
Re: OpenDentBusiness AppointmentDeleteds request
Posted: Mon Apr 24, 2017 11:57 am
by jsalmon
We can add that method for you.
Re: OpenDentBusiness AppointmentDeleteds request
Posted: Tue Apr 25, 2017 4:48 am
by tim
jsalmon wrote:We can add that method for you.
Great! Could the following method also be added:
Code: Select all
public static List<long> GetChangedSinceAptNums(DateTime changedSince) {
if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) {
return Meth.GetObject<List<long>>(MethodBase.GetCurrentMethod(), changedSince);
}
string command = "SELECT AptNum FROM appointmentdeleted WHERE DateTStamp > " + POut.DateT(changedSince);
DataTable dt = Db.GetTable(command);
List<long> aptnums = new List<long>(dt.Rows.Count);
for (int i = 0; i < dt.Rows.Count; i++)
{
aptnums.Add(PIn.Long(dt.Rows[i]["AptNum"].ToString()));
}
return aptnums;
}
Thanks again.
Re: OpenDentBusiness AppointmentDeleteds request
Posted: Tue Apr 25, 2017 7:52 am
by cmcgehee
Sure, we'll include that one too.
Re: OpenDentBusiness AppointmentDeleteds request
Posted: Tue Apr 25, 2017 11:29 am
by cmcgehee
I added these two methods to the head and to 17.1.8. I did modify them and renamed one so that they matched our patterns a little better.
Re: OpenDentBusiness AppointmentDeleteds request
Posted: Tue Apr 25, 2017 11:36 am
by tim
cmcgehee wrote:I added these two methods to the head and to 17.1.8. I did modify them and renamed one so that they matched our patterns a little better.
Thanks for the quick reply, Chris.
Is it possible for
this request to be added as well? It looks like it may have been forgotten.
Re: OpenDentBusiness AppointmentDeleteds request
Posted: Tue Apr 25, 2017 11:54 am
by cmcgehee
Oh sure. I should be able to add that, too.