Ejemplo 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 <Recallm> list, long customerNum)
 {
     for (int i = 0; i < list.Count; i++)
     {
         list[i].CustomerNum = customerNum;
         Recallm recallm = Crud.RecallmCrud.SelectOne(customerNum, list[i].RecallNum);
         if (recallm == null)               //not in db
         {
             Crud.RecallmCrud.Insert(list[i], true);
         }
         else
         {
             Crud.RecallmCrud.Update(list[i]);
         }
     }
 }
Ejemplo n.º 2
0
 /// <remarks/>
 public void SynchRecallsAsync(string RegistrationKey, Recallm[] recallList) {
     this.SynchRecallsAsync(RegistrationKey, recallList, null);
 }
Ejemplo n.º 3
0
 /// <remarks/>
 public void SynchRecallsAsync(string RegistrationKey, Recallm[] recallList, object userState) {
     if ((this.SynchRecallsOperationCompleted == null)) {
         this.SynchRecallsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchRecallsOperationCompleted);
     }
     this.InvokeAsync("SynchRecalls", new object[] {
                 RegistrationKey,
                 recallList}, this.SynchRecallsOperationCompleted, userState);
 }
Ejemplo n.º 4
0
 public void SynchRecalls(string RegistrationKey, Recallm[] recallList) {
     this.Invoke("SynchRecalls", new object[] {
                 RegistrationKey,
                 recallList});
 }