コード例 #1
0
 public Client(ClientDS.ClientDetailTableRow client)
 {
     //Constructor
     try {
         if (client != null)
         {
             if (!client.IsClientIDNull())
             {
                 this._clientid = client.ClientID;
             }
             if (!client.IsClientNumberNull())
             {
                 this._clientnumber = client.ClientNumber;
             }
             this._number   = client.NUMBER;
             this._division = client.DIVISION;
             if (!client.IsNAMENull())
             {
                 this._name = client.NAME;
             }
             if (!client.IsSTATUSNull())
             {
                 this._status = client.STATUS;
             }
             if (!client.IsUPS_SHIPPER_NBRNull())
             {
                 this._ups_shipper_nbr = client.UPS_SHIPPER_NBR;
             }
             if (!client.IsABBREVIATIONNull())
             {
                 this._abbreviation = client.ABBREVIATION;
             }
             if (!client.IsADDRESS_LINE1Null())
             {
                 this._address_line1 = client.ADDRESS_LINE1;
             }
             if (!client.IsADDRESS_LINE2Null())
             {
                 this._address_line2 = client.ADDRESS_LINE2;
             }
             if (!client.IsCITYNull())
             {
                 this._city = client.CITY;
             }
             if (!client.IsSTATENull())
             {
                 this._state = client.STATE;
             }
             if (!client.IsZIPNull())
             {
                 this._zip = client.ZIP;
             }
             if (!client.IsZIP4Null())
             {
                 this._zip4 = client.ZIP4;
             }
             if (!client.IsDELIVERY_BILL_TYPENull())
             {
                 this._delivery_bill_type = client.DELIVERY_BILL_TYPE;
             }
             if (!client.IsCARTON_COMMODITYNull())
             {
                 this._carton_commodity = client.CARTON_COMMODITY;
             }
             if (!client.IsDELIVERY_BILLNull())
             {
                 this._delivery_bill = client.DELIVERY_BILL;
             }
             if (!client.IsDBILL_COPIESNull())
             {
                 this._dbill_copies = client.DBILL_COPIES;
             }
             if (!client.IsIsSanNull())
             {
                 this._issan = client.IsSan;
             }
             if (!client.IsInvoiceProgramNull())
             {
                 this._invoiceprogram = client.InvoiceProgram;
             }
             if (!client.IsContactNameNull())
             {
                 this._contactname = client.ContactName;
             }
             if (!client.IsPhoneNull())
             {
                 this._phone = client.Phone;
             }
             if (!client.IsFaxNull())
             {
                 this._fax = client.Fax;
             }
             if (!client.IsMnemonicNull())
             {
                 this._mnemonic = client.Mnemonic;
             }
             if (!client.IsBLNumberOnInvoiceNull())
             {
                 this._blnumberoninvoice = client.BLNumberOnInvoice;
             }
             if (!client.IsARNumberNull())
             {
                 this._arnumber = client.ARNumber;
             }
             if (!client.IsPickupZipNull())
             {
                 this._pickupzip = client.PickupZip;
             }
             if (!client.IsManifestPerTrailerNull())
             {
                 this._manifestpertrailer = client.ManifestPerTrailer;
             }
             if (!client.IsLastUpdatedNull())
             {
                 this._lastupdated = client.LastUpdated;
             }
             if (!client.IsUserIDNull())
             {
                 this._userid = client.UserID;
             }
         }
     }
     catch (Exception ex) { throw new ApplicationException("Unexpected exception creating new client instance.", ex); }
 }