Esempio n. 1
0
 ///<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]);
         }
     }
 }
Esempio n. 2
0
 /// <remarks/>
 public void SynchDocumentsAsync(string RegistrationKey, Documentm[] documentList) {
     this.SynchDocumentsAsync(RegistrationKey, documentList, null);
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 public void SynchDocuments(string RegistrationKey, Documentm[] documentList) {
     this.Invoke("SynchDocuments", new object[] {
                 RegistrationKey,
                 documentList});
 }