Пример #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 <Statementm> list, long customerNum)
 {
     for (int i = 0; i < list.Count; i++)
     {
         list[i].CustomerNum = customerNum;
         Statementm statementm = Crud.StatementmCrud.SelectOne(customerNum, list[i].StatementNum);
         if (statementm == null)               //not in db
         {
             Crud.StatementmCrud.Insert(list[i], true);
         }
         else
         {
             Crud.StatementmCrud.Update(list[i]);
         }
     }
 }
Пример #2
0
 /// <remarks/>
 public void SynchStatementsAsync(string RegistrationKey, Statementm[] statementList) {
     this.SynchStatementsAsync(RegistrationKey, statementList, null);
 }
Пример #3
0
 /// <remarks/>
 public void SynchStatementsAsync(string RegistrationKey, Statementm[] statementList, object userState) {
     if ((this.SynchStatementsOperationCompleted == null)) {
         this.SynchStatementsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchStatementsOperationCompleted);
     }
     this.InvokeAsync("SynchStatements", new object[] {
                 RegistrationKey,
                 statementList}, this.SynchStatementsOperationCompleted, userState);
 }
Пример #4
0
 public void SynchStatements(string RegistrationKey, Statementm[] statementList) {
     this.Invoke("SynchStatements", new object[] {
                 RegistrationKey,
                 statementList});
 }