예제 #1
0
 public Vendor(EnterpriseDataset.VendorTableRow vendor)
     : base(vendor)
 {
     //Constructor
     try { }
     catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new vendor instance.", ex); }
 }
예제 #2
0
 public Shipper(EnterpriseDataset.VendorTableRow vendor)
 {
     //Constructor
     try {
         if (vendor != null)
         {
             this._number = vendor.Number;
             if (!vendor.IsNameNull())
             {
                 this._name = vendor.Name;
             }
             if (!vendor.IsStatusNull())
             {
                 this._status = vendor.Status;
             }
             if (!vendor.IsAddressLine1Null())
             {
                 this._addressline1 = vendor.AddressLine1;
             }
             if (!vendor.IsAddressLine2Null())
             {
                 this._addressline2 = vendor.AddressLine2;
             }
             if (!vendor.IsCityNull())
             {
                 this._city = vendor.City;
             }
             if (!vendor.IsStateNull())
             {
                 this._state = vendor.State;
             }
             if (!vendor.IsZipNull())
             {
                 this._zip = vendor.Zip;
             }
             if (!vendor.IsZip4Null())
             {
                 this._zip4 = vendor.Zip4;
             }
         }
     }
     catch (Exception ex) { throw new ApplicationException("Unexpected exception creating new shipper instance.", ex); }
 }