Exemplo n.º 1
0
 public Member(int cusid)
 {
     try
     {
         tbl_Customer member = new tbl_Customer(cusid, false);
         this.CusId = member.cusID.ToString();
         this.OptIn = false;
         this.CusCustNum = member.cusCustNum;
         this.ScreenName = member.cusDisplayName;
         this.UserName = member.cusUserName;
         this.MemberId = member.SfgId.ToString();
         this.FirstName = member.cusFirstName;
         this.LastName = member.cusLastName;
         this.Address = new Address(member.addID);
     }
     catch { }
 }
 private static Address GetAddress(shiptotype sfgObject)
 {
     Address ahObject = new Address();
     try
     {
         EventLogger.LogEvent("ENTERING -> SFGWrapper.GateKeeperTranslators.GetAddressInfo()");
         ahObject.Address1 = sfgObject.SADDR1;
         ahObject.Address2 = sfgObject.SADDR2;
         ahObject.Address3 = sfgObject.SADDR3;
         ahObject.City = sfgObject.SCITY;
         ahObject.Country = sfgObject.SCOUNTRY;
         ahObject.Phone = sfgObject.SPHONE;
         ahObject.StateCode = sfgObject.SST;
         ahObject.State = string.Empty; //TODO: where is this?
         ahObject.PostalCode = sfgObject.SZIP;
         EventLogger.LogEvent("LEAVING -> SFGWrapper.GateKeeperTranslators.GetAddressInfo()");
     }
     catch
     {
         //we dont have ship to addresses
     }
     return ahObject;
 }