Beispiel #1
0
 protected override void SetID()
 {
     SummitDS.View_MyCustomerRow thisRow = _rowToSave as SummitDS.View_MyCustomerRow;
     if (thisRow != null)
     {
         this._ID = thisRow.user_id;
     }
 }
Beispiel #2
0
        protected override void LoadFromRow(DataRow _dataRow)
        {
            SummitDS.View_MyCustomerRow row = _dataRow as SummitDS.View_MyCustomerRow;

            if (row != null)
            {
                this._ID                    = row.user_id;
                iUserId                     = row.user_id;
                iShopId                     = row.shop_id;
                strUserName                 = row.IsusernameNull() ? String.Empty : row.username;
                this.Zip                    = row.IszipNull() ? String.Empty : row.zip;
                strFirstName                = row.Isfirst_nameNull() ? String.Empty : row.first_name;
                strLastName                 = row.Islast_nameNull() ? String.Empty : row.last_name;
                strPhone                    = row.IsphoneNull() ? String.Empty : row.phone;
                strModel                    = row.IsmodelNull() ? String.Empty : row.model;
                strMake                     = row.IsmakeNull() ? String.Empty : row.make;
                strYear                     = row.IsyearNull() ? String.Empty : row.year;
                strEmail                    = row.IsemailNull() ? String.Empty : row.email;
                iVehicleId                  = row.Isvehicle_idNull() ? (Nullable <Int32>)null : row.vehicle_id;
                dtInDate                    = row.IsDateInNull() ? (Nullable <DateTime>)null : row.DateIn;
                dtOutDate                   = row.IsDateOutNull() ? (Nullable <DateTime>)null : row.DateOut;
                iVehicleStatus              = row.IsVehicleStatusNull() ? (Nullable <Int32>)null : row.VehicleStatus;
                iContactMethod              = row.IscontactMethodNull() ? (Nullable <Int32>)null : row.contactMethod;
                strShopName                 = row.Isshop_nameNull() ? String.Empty : row.shop_name;
                strClaimNumber              = row.Isclaim_numberNull() ? String.Empty : row.claim_number;
                strROIdentifier             = row.Isrepair_order_identifierNull() ? String.Empty : row.repair_order_identifier;
                companyName                 = row.Iscompany_nameNull() ? String.Empty : row.company_name;
                strAgentName                = row.Isagent_nameNull() ? String.Empty : row.agent_name;
                strEstimatorName            = row.Isestimate_file_identifierNull() ? String.Empty : row.estimate_file_identifier;
                strNetTotalAmount           = row.Isnet_total_amountNull() ? String.Empty : row.net_total_amount;
                dtUpdatedDate               = row.IsupdatedEntryTimeNull() ? (Nullable <DateTime>)null : row.updatedEntryTime;
                strPushNotificationDeviceId = row.Ispush_notification_device_idNull() ? String.Empty : row.push_notification_device_id;
                dtCreatedDate               = row.IscreateddateNull() ? (Nullable <DateTime>)null : row.createddate;
                dtDeliveryDate              = row.IsDeliveryDateNull() ? (Nullable <DateTime>)null : row.DeliveryDate;
                strStatusOfVehicle          = row.IsStatusNull() ? String.Empty : row.Status;
                strEstimateFileIdentifier   = row.Isestimate_file_identifierNull() ? String.Empty : row.estimate_file_identifier;
            }
        }