Ejemplo n.º 1
0
        protected override void LoadFromRow(DataRow _dataRow)
        {
            SummitDS.SP_Search_InProcessUsersRow row = _dataRow as SummitDS.SP_Search_InProcessUsersRow;

            if (row != null)
            {
                this._ID                  = row.id;
                iUserId                   = row.user_id;
                iUserVehicleStatusId      = row.IsuserVehicleStatusIdNull() ? (Nullable <Int32>)null : row.userVehicleStatusId;
                iVehicleId                = row.Isvehicle_idNull() ? (Nullable <Int32>)null : row.vehicle_id;
                strUserName               = row.IsusernameNull() ? String.Empty : row.username;
                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;
                iShopId                   = row.Isshop_idNull() ? (Nullable <Int32>)null : row.shop_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.Isro_IdentifierNull() ? String.Empty : row.ro_Identifier;
                companyName               = row.Iscompany_nameNull() ? String.Empty : row.company_name;
                strAgentName              = row.Isagent_nameNull() ? String.Empty : row.agent_name;
                strNetTotalAmount         = row.Isnet__Total_AmountNull() ? String.Empty : row.net__Total_Amount;
                dtUpdatedDate             = row.IsUpdatedDateNull() ? (Nullable <DateTime>)null : row.UpdatedDate;
                strEstimateFileIdentifier = row.Isestimate_file_identifierNull() ? String.Empty : row.estimate_file_identifier;
            }
        }
Ejemplo n.º 2
0
 protected override void SetID()
 {
     SummitDS.SP_Search_InProcessUsersRow thisRow = _rowToSave as SummitDS.SP_Search_InProcessUsersRow;
     if (thisRow != null)
     {
         this._ID = thisRow.id;
     }
 }