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 <DiseaseDefm> list, long customerNum)
 {
     for (int i = 0; i < list.Count; i++)
     {
         list[i].CustomerNum = customerNum;
         DiseaseDefm diseaseDefm = Crud.DiseaseDefmCrud.SelectOne(customerNum, list[i].DiseaseDefNum);
         if (diseaseDefm == null)               //not in db
         {
             Crud.DiseaseDefmCrud.Insert(list[i], true);
         }
         else
         {
             Crud.DiseaseDefmCrud.Update(list[i]);
         }
     }
 }
Ejemplo n.º 2
0
 /// <remarks/>
 public void SynchDiseaseDefsAsync(string RegistrationKey, DiseaseDefm[] diseaseDefList) {
     this.SynchDiseaseDefsAsync(RegistrationKey, diseaseDefList, null);
 }
Ejemplo n.º 3
0
 /// <remarks/>
 public void SynchDiseaseDefsAsync(string RegistrationKey, DiseaseDefm[] diseaseDefList, object userState) {
     if ((this.SynchDiseaseDefsOperationCompleted == null)) {
         this.SynchDiseaseDefsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchDiseaseDefsOperationCompleted);
     }
     this.InvokeAsync("SynchDiseaseDefs", new object[] {
                 RegistrationKey,
                 diseaseDefList}, this.SynchDiseaseDefsOperationCompleted, userState);
 }
Ejemplo n.º 4
0
 public void SynchDiseaseDefs(string RegistrationKey, DiseaseDefm[] diseaseDefList) {
     this.Invoke("SynchDiseaseDefs", new object[] {
                 RegistrationKey,
                 diseaseDefList});
 }