///<summary>Only run on server for mobile. 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 <Documentm> list, long customerNum) { for (int i = 0; i < list.Count; i++) { list[i].CustomerNum = customerNum; Documentm documentm = Crud.DocumentmCrud.SelectOne(customerNum, list[i].DocNum); if (documentm == null) //not in db { Crud.DocumentmCrud.Insert(list[i], true); } else { Crud.DocumentmCrud.Update(list[i]); } } }
/// <remarks/> public void SynchDocumentsAsync(string RegistrationKey, Documentm[] documentList) { this.SynchDocumentsAsync(RegistrationKey, documentList, null); }
/// <remarks/> public void SynchDocumentsAsync(string RegistrationKey, Documentm[] documentList, object userState) { if ((this.SynchDocumentsOperationCompleted == null)) { this.SynchDocumentsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchDocumentsOperationCompleted); } this.InvokeAsync("SynchDocuments", new object[] { RegistrationKey, documentList}, this.SynchDocumentsOperationCompleted, userState); }
public void SynchDocuments(string RegistrationKey, Documentm[] documentList) { this.Invoke("SynchDocuments", new object[] { RegistrationKey, documentList}); }