///<summary>Takes the list of changes from the dental office and makes updates to those items in the mobile server db. Also, make sure to run DeletedObjects.DeleteForMobile().</summary> public static void UpdateFromChangeList(List <RxPatm> list, long customerNum) { for (int i = 0; i < list.Count; i++) { list[i].CustomerNum = customerNum; RxPatm rxPatm = Crud.RxPatmCrud.SelectOne(customerNum, list[i].RxNum); if (rxPatm == null) //not in db { Crud.RxPatmCrud.Insert(list[i], true); } else { Crud.RxPatmCrud.Update(list[i]); } } }
/// <remarks/> public void SynchPrescriptionsAsync(string RegistrationKey, RxPatm[] rxList) { this.SynchPrescriptionsAsync(RegistrationKey, rxList, null); }
/// <remarks/> public void SynchPrescriptionsAsync(string RegistrationKey, RxPatm[] rxList, object userState) { if ((this.SynchPrescriptionsOperationCompleted == null)) { this.SynchPrescriptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchPrescriptionsOperationCompleted); } this.InvokeAsync("SynchPrescriptions", new object[] { RegistrationKey, rxList}, this.SynchPrescriptionsOperationCompleted, userState); }
public void SynchPrescriptions(string RegistrationKey, RxPatm[] rxList) { this.Invoke("SynchPrescriptions", new object[] { RegistrationKey, rxList}); }