Example #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 <Providerm> list, long customerNum)
 {
     for (int i = 0; i < list.Count; i++)
     {
         list[i].CustomerNum = customerNum;
         Providerm providerm = Crud.ProvidermCrud.SelectOne(customerNum, list[i].ProvNum);
         if (providerm == null)                       //not in db
         {
             Crud.ProvidermCrud.Insert(list[i], true);
         }
         else
         {
             Crud.ProvidermCrud.Update(list[i]);
         }
     }
 }
Example #2
0
		public string GetSelected(Providerm pv) {
			try {
				if(Session["ProvNum"]!=null) {
					Int64.TryParse(Session["ProvNum"].ToString(),out ProvNum);
				}
				if(pv.ProvNum==ProvNum){
					return @" selected=""selected""";
				}
				else{
					return "";
				}
			}
			catch(Exception ex) {
				Logger.LogError("CustomerNum="+CustomerNum+ " pv.ProvNum="+pv.ProvNum,ex);
				return "";
			}
		}
Example #3
0
 /// <remarks/>
 public void SynchProvidersAsync(string RegistrationKey, Providerm[] providerList) {
     this.SynchProvidersAsync(RegistrationKey, providerList, null);
 }
Example #4
0
 /// <remarks/>
 public void SynchProvidersAsync(string RegistrationKey, Providerm[] providerList, object userState) {
     if ((this.SynchProvidersOperationCompleted == null)) {
         this.SynchProvidersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchProvidersOperationCompleted);
     }
     this.InvokeAsync("SynchProviders", new object[] {
                 RegistrationKey,
                 providerList}, this.SynchProvidersOperationCompleted, userState);
 }
Example #5
0
 public void SynchProviders(string RegistrationKey, Providerm[] providerList) {
     this.Invoke("SynchProviders", new object[] {
                 RegistrationKey,
                 providerList});
 }