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 <Pharmacym> list, long customerNum)
 {
     for (int i = 0; i < list.Count; i++)
     {
         list[i].CustomerNum = customerNum;
         Pharmacym pharmacym = Crud.PharmacymCrud.SelectOne(customerNum, list[i].PharmacyNum);
         if (pharmacym == null)               //not in db
         {
             Crud.PharmacymCrud.Insert(list[i], true);
         }
         else
         {
             Crud.PharmacymCrud.Update(list[i]);
         }
     }
 }
		protected void Page_Load(object sender,EventArgs e) {
			try {
				CustomerNum=util.GetCustomerNum(Message);
				if(CustomerNum==0) {
					return;
				}
				if(Request["PharmacyNum"]!=null) {
					Int64.TryParse(Request["PharmacyNum"].ToString().Trim(),out PharmacyNum);
				}
				phar=Pharmacyms.GetOne(CustomerNum,PharmacyNum);
				String DialString1=@"&nbsp;&nbsp;&nbsp;<a href=""tel:";
				String DialString2=@""" class=""style2"">dial</a>";
				if(!String.IsNullOrEmpty(phar.Phone)) {
					DialLinkPhone=DialString1+phar.Phone+DialString2;
				} 
			}
			catch(Exception ex) {
				LabelError.Text=Util.ErrorMessage;
				Logger.LogError(ex);
			}

		}
Ejemplo n.º 3
0
 /// <remarks/>
 public void SynchPharmaciesAsync(string RegistrationKey, Pharmacym[] pharmacyList) {
     this.SynchPharmaciesAsync(RegistrationKey, pharmacyList, null);
 }
Ejemplo n.º 4
0
 /// <remarks/>
 public void SynchPharmaciesAsync(string RegistrationKey, Pharmacym[] pharmacyList, object userState) {
     if ((this.SynchPharmaciesOperationCompleted == null)) {
         this.SynchPharmaciesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSynchPharmaciesOperationCompleted);
     }
     this.InvokeAsync("SynchPharmacies", new object[] {
                 RegistrationKey,
                 pharmacyList}, this.SynchPharmaciesOperationCompleted, userState);
 }
Ejemplo n.º 5
0
 public void SynchPharmacies(string RegistrationKey, Pharmacym[] pharmacyList) {
     this.Invoke("SynchPharmacies", new object[] {
                 RegistrationKey,
                 pharmacyList});
 }