Exemple #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 <Allergym> list, long customerNum)
 {
     for (int i = 0; i < list.Count; i++)
     {
         list[i].CustomerNum = customerNum;
         Allergym allergym = Crud.AllergymCrud.SelectOne(customerNum, list[i].AllergyNum);
         if (allergym == null)               //not in db
         {
             Crud.AllergymCrud.Insert(list[i], true);
         }
         else
         {
             Crud.AllergymCrud.Update(list[i]);
         }
     }
 }
 /// <remarks/>
 public void SynchAllergiesAsync(string RegistrationKey, Allergym[] allergyList) {
     this.SynchAllergiesAsync(RegistrationKey, allergyList, null);
 }
 /// <remarks/>
 public void SynchAllergiesAsync(string RegistrationKey, Allergym[] allergyList, object userState) {
     if ((this.SynchAllergiesOperationCompleted == null)) {
         this.SynchAllergiesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchAllergiesOperationCompleted);
     }
     this.InvokeAsync("SynchAllergies", new object[] {
                 RegistrationKey,
                 allergyList}, this.SynchAllergiesOperationCompleted, userState);
 }
 public void SynchAllergies(string RegistrationKey, Allergym[] allergyList) {
     this.Invoke("SynchAllergies", new object[] {
                 RegistrationKey,
                 allergyList});
 }