예제 #1
0
 protected override void LoadFromRow(DataRow _dataRow)
 {
     SummitDS.InsuranceInformationRow _thisRow = _dataRow as SummitDS.InsuranceInformationRow;
     if (_thisRow != null)
     {
         this._ID                   = _thisRow.insurance_id;
         this.m_iUserId             = _thisRow.user_id;
         this.m_strAgentName        = _thisRow.Isagent_nameNull() ? String.Empty : _thisRow.agent_name;
         this.m_strAgentPhone       = _thisRow.Isagent_phoneNull() ? String.Empty : _thisRow.agent_phone;
         this.m_strAgentCellPhone   = _thisRow.Isagent_cell_phoneNull() ? String.Empty : _thisRow.agent_cell_phone;
         this.m_strAgentWebSite     = _thisRow.Isagent_websiteNull() ? String.Empty : _thisRow.agent_website;
         this.m_strCompanyName      = _thisRow.Iscompany_nameNull() ? String.Empty : _thisRow.company_name;
         this.m_strCompanyEmail     = _thisRow.Iscompany_emailNull() ? String.Empty : _thisRow.company_email;
         this.m_strCompanyCellPhone = _thisRow.Iscompany_cell_phoneNull() ? String.Empty : _thisRow.company_cell_phone;
         this.m_strCompanyWebSite   = _thisRow.Iscompany_websiteNull() ? String.Empty : _thisRow.company_website;
         this.m_strPolicyNo         = _thisRow.Ispolicy_noNull() ? String.Empty : _thisRow.policy_no;
         this.m_strAgentEmail       = _thisRow.Isagent_emailNull() ? String.Empty : _thisRow.agent_email;
         this.m_dtExpirationDate    = _thisRow.Isexpiration_dateNull() ? (Nullable <DateTime>)null : _thisRow.expiration_date;
         this.m_strCompanyFax       = _thisRow.Iscompany_faxNull() ? String.Empty : _thisRow.company_fax;
         this.m_strCompanyAddress   = _thisRow.Iscompany_addressNull() ? String.Empty : _thisRow.company_address;
         this.m_strCompanyCity      = _thisRow.Iscompany_cityNull() ? String.Empty : _thisRow.company_city;
         this.m_strCompanyState     = _thisRow.Iscompany_stateNull() ? String.Empty : _thisRow.company_state;
         this.m_strCompanyZip       = _thisRow.Iscompany_zipNull() ? String.Empty : _thisRow.company_zip;
         this.m_strClaimNumber      = _thisRow.Isclaim_numberNull() ? String.Empty : _thisRow.claim_number;
         this.m_strROIdentifier     = _thisRow.Isrepair_order_identifierNull() ? String.Empty : _thisRow.repair_order_identifier;
         this.m_strNetTotalAmount   = _thisRow.Isnet_total_amountNull() ? String.Empty : _thisRow.net_total_amount;
         this.m_strTotalROAmount    = _thisRow.Istotal_ro_amountNull() ? String.Empty : _thisRow.total_ro_amount;
         this.m_dtDateOfLoss        = _thisRow.Isdate_of_lossNull() ? (Nullable <DateTime>)null : _thisRow.date_of_loss;
         this.m_dDeductible         = _thisRow.IsdeductibleNull() ? (Nullable <Decimal>)null : _thisRow.deductible;
         _rowToSave                 = _thisRow;
     }
 }