Exemplo n.º 1
0
 ///<summary>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 <RxPatm> list, long customerNum)
 {
     for (int i = 0; i < list.Count; i++)
     {
         list[i].CustomerNum = customerNum;
         RxPatm rxPatm = Crud.RxPatmCrud.SelectOne(customerNum, list[i].RxNum);
         if (rxPatm == null)                       //not in db
         {
             Crud.RxPatmCrud.Insert(list[i], true);
         }
         else
         {
             Crud.RxPatmCrud.Update(list[i]);
         }
     }
 }
Exemplo n.º 2
0
 /// <remarks/>
 public void SynchPrescriptionsAsync(string RegistrationKey, RxPatm[] rxList) {
     this.SynchPrescriptionsAsync(RegistrationKey, rxList, null);
 }
Exemplo n.º 3
0
 /// <remarks/>
 public void SynchPrescriptionsAsync(string RegistrationKey, RxPatm[] rxList, object userState) {
     if ((this.SynchPrescriptionsOperationCompleted == null)) {
         this.SynchPrescriptionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchPrescriptionsOperationCompleted);
     }
     this.InvokeAsync("SynchPrescriptions", new object[] {
                 RegistrationKey,
                 rxList}, this.SynchPrescriptionsOperationCompleted, userState);
 }
Exemplo n.º 4
0
 public void SynchPrescriptions(string RegistrationKey, RxPatm[] rxList) {
     this.Invoke("SynchPrescriptions", new object[] {
                 RegistrationKey,
                 rxList});
 }