///<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]); } } }
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 ""; } }
/// <remarks/> public void SynchProvidersAsync(string RegistrationKey, Providerm[] providerList) { this.SynchProvidersAsync(RegistrationKey, providerList, null); }
/// <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); }
public void SynchProviders(string RegistrationKey, Providerm[] providerList) { this.Invoke("SynchProviders", new object[] { RegistrationKey, providerList}); }