示例#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]);
         }
     }
 }
示例#2
0
 /// <remarks/>
 public void SynchPrescriptionsAsync(string RegistrationKey, RxPatm[] rxList) {
     this.SynchPrescriptionsAsync(RegistrationKey, rxList, null);
 }
示例#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);
 }
示例#4
0
 public void SynchPrescriptions(string RegistrationKey, RxPatm[] rxList) {
     this.Invoke("SynchPrescriptions", new object[] {
                 RegistrationKey,
                 rxList});
 }