Exemplo 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 <AllergyDefm> list, long customerNum)
 {
     for (int i = 0; i < list.Count; i++)
     {
         list[i].CustomerNum = customerNum;
         AllergyDefm allergyDefm = Crud.AllergyDefmCrud.SelectOne(customerNum, list[i].AllergyDefNum);
         if (allergyDefm == null)               //not in db
         {
             Crud.AllergyDefmCrud.Insert(list[i], true);
         }
         else
         {
             Crud.AllergyDefmCrud.Update(list[i]);
         }
     }
 }
Exemplo n.º 2
0
 /// <remarks/>
 public void SynchAllergyDefsAsync(string RegistrationKey, AllergyDefm[] allergyDefList) {
     this.SynchAllergyDefsAsync(RegistrationKey, allergyDefList, null);
 }
Exemplo n.º 3
0
 /// <remarks/>
 public void SynchAllergyDefsAsync(string RegistrationKey, AllergyDefm[] allergyDefList, object userState) {
     if ((this.SynchAllergyDefsOperationCompleted == null)) {
         this.SynchAllergyDefsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchAllergyDefsOperationCompleted);
     }
     this.InvokeAsync("SynchAllergyDefs", new object[] {
                 RegistrationKey,
                 allergyDefList}, this.SynchAllergyDefsOperationCompleted, userState);
 }
Exemplo n.º 4
0
 public void SynchAllergyDefs(string RegistrationKey, AllergyDefm[] allergyDefList) {
     this.Invoke("SynchAllergyDefs", new object[] {
                 RegistrationKey,
                 allergyDefList});
 }