Exemple #1
0
        protected override void LoadFromRow(DataRow _dataRow)
        {
            SummitDS.BodyShopRow _thisRow = _dataRow as SummitDS.BodyShopRow;

            if (_thisRow != null)
            {
                this._ID                        = _thisRow.shop_id;
                this.m_strShopName              = _thisRow.Isshop_nameNull() ? String.Empty : _thisRow.shop_name;
                this.m_strAddress1              = _thisRow.Isaddress1Null() ? String.Empty : _thisRow.address1;
                this.m_strAddress2              = _thisRow.Isaddress2Null() ? String.Empty : _thisRow.address2;
                this.m_strCity                  = _thisRow.IscityNull() ? String.Empty : _thisRow.city;
                this.m_strState                 = _thisRow.IsstateNull() ? String.Empty : _thisRow.state;
                this.m_strZip                   = _thisRow.IszipNull() ? String.Empty : _thisRow.zip;
                this.m_strPhone                 = _thisRow.IsphoneNull() ? String.Empty : _thisRow.phone;
                this.m_strFax                   = _thisRow.IsfaxNull() ? String.Empty : _thisRow.fax;
                this.m_strEmail                 = _thisRow.IsemailNull() ? String.Empty : _thisRow.email;
                this.m_strWebsite               = _thisRow.IswebsiteNull() ? String.Empty : _thisRow.website;
                this.m_strBusinessLicence       = _thisRow.Isbusiness_licenseNull() ? String.Empty : _thisRow.business_license;
                this.m_strEpsLicence            = _thisRow.Isepa_licenseNull() ? String.Empty : _thisRow.epa_license;
                this.m_strBarLicence            = _thisRow.Isbar_licenseNull() ? String.Empty : _thisRow.bar_license;
                this.m_strNetWorkName           = _thisRow.Isnetwork_nameNull() ? String.Empty : _thisRow.network_name;
                this.m_strCertificationVehicles = _thisRow.Iscertification_vehiclesNull() ? String.Empty : _thisRow.certification_vehicles;
                this.m_strThirdPartyProviders   = _thisRow.Isthird_party_providersNull() ? String.Empty : _thisRow.third_party_providers;
                this.m_iRating                  = _thisRow.IsratingsNull() ? (Nullable <Int32>)null : _thisRow.ratings;
                this.m_fLatitude                = _thisRow.IslatitudeNull() ? (Nullable <double>)null : _thisRow.latitude;
                this.m_fLongitude               = _thisRow.IslongitudeNull() ? (Nullable <double>)null : _thisRow.longitude;
                this.m_strManager               = _thisRow.IsmanagerNull() ? String.Empty : _thisRow.manager;
                this.m_strSystemAdmin           = _thisRow.Issystem_adminNull() ? String.Empty : _thisRow.system_admin;
                this.m_strPortalAdminPassword   = _thisRow.Isportal_admin_passwordNull() ? String.Empty : _thisRow.portal_admin_password;
                this.m_strTagLine               = _thisRow.Iscompany_tag_lineNull() ? String.Empty : _thisRow.company_tag_line;
                this.m_strOwner                 = _thisRow.IsownerNull() ? String.Empty : _thisRow.owner;
                this.m_iNoPremierShop           = _thisRow.IsnoPremierShopNull() ? (Nullable <Int32>)null : _thisRow.noPremierShop;
                this.m_iNoHelpSelection         = _thisRow.IsnoHelpSelectionNull() ? (Nullable <Int32>)null : _thisRow.noHelpSelection;
                this.m_bIsPremierShop           = _thisRow.IsisPremierShopNull() ? (Nullable <Boolean>)null : _thisRow.isPremierShop;
                this.m_strContent               = _thisRow.IscontentNull() ? String.Empty : _thisRow.content;
                this.m_strImagePath             = _thisRow.Isimage_pathNull() ? String.Empty : _thisRow.image_path;
                this.m_iMessageCount            = _thisRow.IsmessageCountNull() ? (Nullable <Int32>)null : _thisRow.messageCount;
                this.m_iAvailableMessages       = _thisRow.IsavailableMessagesNull() ? (Nullable <Int32>)null : _thisRow.availableMessages;
                this.m_dtExpirationDate         = _thisRow.IsexpirationDateNull() ? (Nullable <DateTime>)null : _thisRow.expirationDate;

                //  this.m_dt_ts = _thisRow.Is_tsNull() ? (Nullable<DateTime>) null : _thisRow._ts ;
                _rowToSave = _thisRow;
            }
        }