9732 lines
552 KiB
HTML
9732 lines
552 KiB
HTML
<!-- Main content -->
|
|
<link href="__SERVER_URL__webroot/epicvelocity/css/style.DEFAULT.css">
|
|
<link rel="stylesheet" href="__SERVER_URL__webroot/css/jquery-confirm/jquery-confirm.min.css">
|
|
<script src="__SERVER_URL__webroot/js/jquery-confirm/jquery-confirm.min.js"></script>
|
|
<link rel="stylesheet" href="__SERVER_URL__rtgv3/css/select2.min.css">
|
|
<!--<link rel="stylesheet" href="__SERVER_URL__rtgv3/css/dataTables.css">-->
|
|
<link rel="stylesheet" href="__SERVER_URL__rtgv3/DataTables/datatables.min.css">
|
|
<script src="__SERVER_URL__admin_lte/plugins/jQuery/jQuery-2.2.0.min.js"></script>
|
|
<script src="__SERVER_URL__webroot/rtgv3/js/select2.full.min.js"></script>
|
|
<!--<script src="__SERVER_URL__webroot/rtgv3/js/dataTables.js"></script>-->
|
|
<script src="__SERVER_URL__webroot/rtgv3/DataTables/datatables.min.js"></script>
|
|
<script src="__SERVER_URL__webroot/rtgv3/js/moment.js"></script>
|
|
<script src="__SERVER_URL__webroot/js/upload_html.js?v=2.0.3"></script>
|
|
<script src="__SERVER_URL__webroot/js/recent_report.js?v=2.0.1"></script>
|
|
<script src="__SERVER_URL__webroot/js/creditanalysis.js?v=2.0.1"></script>
|
|
<script src="__SERVER_URL__webroot/js/bootstrap-datepicker.js"></script>
|
|
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
|
|
<link rel="stylesheet" href="__SERVER_URL__webroot/datepicker/bootstrap-datetimepicker.min.css">
|
|
<link rel="stylesheet" href="__SERVER_URL__webroot/epicvelocity/css/evlg-page.css" />
|
|
|
|
<script>
|
|
var AFFILIATE_URL = '__SERVER_URL__dashboard/getClientListByType';
|
|
var saveIdentityID = '__SERVER_URL__uploadhtml/identityIQSave';
|
|
var select_url = "__SERVER_URL__uploadhtml/getSelectedInfo";
|
|
var URL = "__SERVER_URL__uploadhtml/index";
|
|
var credit_analysis_url = "__SERVER_URL__uploadhtml/getClientDetails";
|
|
var HISTORY_CODE_URL = "__SERVER_URL__uploadhtml/saveCode";
|
|
var DIVLENTH = 1;
|
|
var CONTENT_NO = 1;
|
|
var hasHistory = false;
|
|
var is_editable = false;
|
|
var history_id = 0;
|
|
var is_from_history = 0;
|
|
var BANK_LIST_INDEX_LESS = [];
|
|
var BANK_LIST_INDEX_LESS_ASSOC = [];
|
|
var CREDIT_REPORT_ADDRESS_LIST = [];
|
|
var CREDIT_REPORT_KEY_ADDRESS_LIST = [];
|
|
var PERSONAL_INFO_FROM_CREDIT_REPORT = [];
|
|
var INQUIRY_INFO_FROM_CREDIT_REPORT = [];
|
|
</script>
|
|
<style>
|
|
.form-group .control-label {
|
|
text-align: right !important
|
|
}
|
|
|
|
#form-table th {
|
|
padding-left: 10px !important;
|
|
}
|
|
|
|
.item-clear-btn {
|
|
border: none !important;
|
|
padding: 0 !important;
|
|
min-height: auto !important;
|
|
color: #72afd2 !important;
|
|
font-weight: 400 !important;
|
|
font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, font-family !important;
|
|
font-size: 14px !important;
|
|
}
|
|
|
|
|
|
</style>
|
|
<style>
|
|
|
|
</style>
|
|
<link rel="stylesheet" href="__SERVER_URL__webroot/css/velocity.css?1.0.0">
|
|
<div id="credit-report-content-modal" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Account History</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12 content-data">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<section class="content" id="top-content">
|
|
<div class="row">
|
|
<img id='client-file-load' src='__SERVER_URL__webroot/loading/loading.gif'>
|
|
<!-- right column -->
|
|
<div class="col-md-12">
|
|
<!-- Horizontal Form -->
|
|
<div class="box box-info">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title"> Enter Your Information Below</h3>
|
|
<div id="btn-up-0" style="text-align:right;position:absolute;top: 10px;right: 10px;">
|
|
<a href="#bottom-content"><span class="glyphicon glyphicon-circle-arrow-down" style="font-size: 25px;" title="Go To Bottom Area"></span></a>
|
|
<div id="btn-up-1" style="display: none;"><a href="#main-content-0" id="btn-arrow-up-0"><span class="fa-stack fa-lg" style="font-size:16px;font-weight: 500;" title="Go To Content Area 1"><i class="fa fa-circle fa-stack-2x"></i><i class="fa-stack-1x fa-inverse">1</i></span></a></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- /.box-header -->
|
|
<!-- form start -->
|
|
<form enctype="multipart/form-data" id="inputformId" class="form-horizontal" method="post" action="__SERVER_URL__webroot/Staff/SERTG.php">
|
|
__STEP_STATUS__
|
|
<input name="is_from_velocity" value="1" type="hidden" />
|
|
<input name="is_client_file_load" value="0" type="hidden" />
|
|
<input name="dd_id" value="0" type="hidden" />
|
|
<input name="update_id" value="0" type="hidden" />
|
|
<input name="slot_array" type="hidden" />
|
|
<input type="hidden" name="userType" value="__USER_TYPE__">
|
|
<input type="hidden" name="member_id" value="__MEMBER_ID__">
|
|
<input type="hidden" name="employee_id" value="__EMPLOYEE_ID__">
|
|
<input type="hidden" name="admin_enhance_img" value="__ADMIN_ACC_ENHANCE_IMAGE__">
|
|
<input type="hidden" name="admin_inquiry_img" value="__ADMIN_ACC_INQUIRY_IMAGE__">
|
|
<input type="hidden" name="isFirst" value="1">
|
|
<input type="hidden" name="isAccImageExist_1" value="0">
|
|
<input type="hidden" name="isAttImageExist_1" value="0">
|
|
<input type="hidden" name="client_name" value="">
|
|
<input type="hidden" name="isClientSelect" value="0">
|
|
<input type="hidden" name="isLetterStream" value="0">
|
|
<input type="hidden" name="member_email" value="__MEMBER_EMAIL__">
|
|
<input type="hidden" name="onload_id" value="__ONLOAD_ID__">
|
|
<input type="hidden" name="letter_email_signature" value="__LETTER_EMAIL_SIGNATURE__">
|
|
<input type="hidden" name="client_email" value="">
|
|
<input type="hidden" name="temp_report_type" value="__TEMEP_REPORT_TYPE__">
|
|
<input type="hidden" name="from_load" value="1">
|
|
<input type="hidden" name="sttInquery_1" value="1">
|
|
<input type="hidden" name="isSTT_1" value="1"> __IS_EMPLOYEE__
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<input type="hidden" value="63" name="form_id" class="form-control">
|
|
<!-- right column -->
|
|
<div class="col-md-10">
|
|
<div class="form-group">
|
|
<label class="col-sm-5 control-label"></label>
|
|
<div class="col-sm-3 client-status">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" value="2" onclick="affiliateShow(this)" name="client_type">
|
|
Show affiliate clients
|
|
<img id="affiliate-loader" src="__SERVER_URL__webroot/images/ajax-loader.gif" style="display: none;width: 15px;">
|
|
</label>
|
|
</div>
|
|
</div>
|
|
__EMPLOYEE_CHECKBOX__
|
|
</div>
|
|
<div class="form-group affiliate-hide client-status affiliate-list">
|
|
<label class="col-sm-5 control-label">Affiliate List</label>
|
|
<div class="col-sm-7">
|
|
<select name="affiliate_client_id" class="form-control" onchange="generateAffiliateClientList(this)">
|
|
|
|
</select>
|
|
<img src="__SERVER_URL__webroot/images/ajax-loader.gif" style="display: none;">
|
|
</div>
|
|
</div>
|
|
<div class="form-group affiliate-hide client-status employee-list">
|
|
<label class="col-sm-5 control-label">Employee List</label>
|
|
<div class="col-sm-7">
|
|
<select name="dropdown_employee_id" class="form-control" onchange="generateEmployeeClientList(this)">
|
|
|
|
</select>
|
|
<img src="__SERVER_URL__webroot/images/ajax-loader.gif" style="display: none;">
|
|
</div>
|
|
</div>
|
|
<div class="form-group" _DISPLAY_NONE__>
|
|
<label class="col-sm-5 control-label">PLEASE SELECT</label>
|
|
<input type="hidden" name="client_id" value="0" />
|
|
<div class="col-sm-7 client-dropdown-sm-div">
|
|
<select onchange="clientInfo(this)" id="client-contact-id" name="select" class="form-control client-dropdown">
|
|
</select>
|
|
</div>
|
|
</div>
|
|
__REPORT_SOURCE_TYPES__
|
|
<div class="form-group required">
|
|
<label class="col-sm-5 control-label">Personal Information<br>(First Name,Last Name,Street no,Street Name,City,State)</label>
|
|
<div class="col-sm-7">
|
|
<textarea name="personal_info" class="form-control" rows="6" required></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group required">
|
|
<label class="col-sm-5 control-label">Date of birth</label>
|
|
<div class="col-sm-3">
|
|
<input type="text" id="birth_date" name="current_dob" class="form-control" required>
|
|
</div>
|
|
<label class="col-sm-2 control-label">SSN (last 4)</label>
|
|
<div class="col-sm-2">
|
|
<input type="text" id="sincerely" name="ssn" class="form-control" maxlength="4" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group required">
|
|
<label class="col-sm-5 control-label">Credit Report Data Resource</label>
|
|
<div class="col-sm-7">
|
|
<input type="text" id="sincerely" name="cr_data" class="form-control" required>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group required">
|
|
<label class="col-sm-5 control-label">Destination</label>
|
|
<div class="col-sm-7">
|
|
<dl class="dropdown-x">
|
|
<dt>
|
|
<div>
|
|
<a onclick="chooseDropDown(this);" href="javascript:;">
|
|
<span class="choose-dest">Choose Item</span>
|
|
<p id="dest-id" class="multiSel"></p>
|
|
</a>
|
|
</div>
|
|
</dt>
|
|
<dd>
|
|
<div class="mutliSelect dest-list" id="maindestination">
|
|
<ul>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="3" data-view="TRANS UNION DESTINATIONS" /> TRANS UNION DESTINATIONS</li>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="1" data-view="EXPERIAN DESTINATIONS" /> EXPERIAN DESTINATIONS</li>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="2" data-view="EQUIFAX DESTINATIONS" /> EQUIFAX DESTINATIONS</li>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="4" data-view="INNOVIS DESTINATIONS" /> INNOVIS DESTINATIONS</li>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="5" data-view="LEXISNEXIS DESTINATIONS" /> LEXISNEXIS DESTINATIONS</li>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="6" data-view="SAGESTREAM LLC DESTINATIONS" /> SAGESTREAM LLC DESTINATIONS</li>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="7" data-view="CHEX SYSTEMS DESTINATIONS" /> CHEX SYSTEMS DESTINATIONS</li>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="8" data-view="MIB INC DESTINATIONS" /> MIB INC DESTINATIONS</li>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="9" data-view="FACTOR TRUST DESTINATIONS" /> FACTOR TRUST DESTINATIONS</li>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="11" data-view="DATA FURNISHERS" /> DATA FURNISHERS</li>
|
|
<li><input onclick="getOption(this);" name="destination[]" type="checkbox" value="10" data-view="OTHER" /> OTHER</li>
|
|
</ul>
|
|
</div>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<input type="hidden" value="1" name="isNotSaved">
|
|
<div id="address-div"></div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<button style="width:100%;margin-bottom:10px;" type="button" id="browseForm" class="btn btn-success btn-orange-color" onclick="getFormData()">Client Files</button>
|
|
<span>
|
|
<img style="height:25px;display:none;position: absolute;top: 5px;left: -16px;" id="browseImg" class="rtg-loading-img" src="__SERVER_URL__webroot/loading/loading.gif">
|
|
</span>
|
|
<button type="button" style="display:none;width:100%;margin-bottom:10px;" id="process-html-btn" class="btn btn-success btn-orange-color" onclick="getHTMLByClientId(this)">View Credit Report</button>
|
|
<button type="button" style="width:100%;margin-bottom:10px;" class="btn btn-success btn-orange-color" onclick=" showmodal(this)">Data Furnishers</button>
|
|
<a id="dashboard-btn" href="#" style="display:none;width:100%;" class="btn btn-success btn-orange-color">Client Dashboard</a>
|
|
<a id="stt-pi-letter-btn" href="#" onclick="getSttInfo();" href="#" style="display:none;width:100%;margin-top:10px;" class="btn btn-success btn-orange-color">Letter Sets</a>
|
|
<span>
|
|
<img style="height:25px;display:none" id="process-html-loader" class="rtg-loading-img" src="__SERVER_URL__webroot/loading/loading.gif">
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<!-- right column -->
|
|
<div class="col-md-12">
|
|
<hr/>
|
|
<!--for uploading media-->
|
|
<div id="image-area" class="input-file-field counter">
|
|
<label id='slot-title_1' style='width:100%;'></label>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group view-allcheck">
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<label for="">Velocity Quick Start: Easy To Go</label>
|
|
</div>
|
|
<div class="col-md-9 col-offset-3">
|
|
<dl class="dropdown-x">
|
|
<dt>
|
|
<div>
|
|
<a onclick="chooseDropDown(this);" href="javascript:;">
|
|
<span class="choose-dest">Choose Item</span>
|
|
<p id="dest-id" class="multiSel"></p>
|
|
</a>
|
|
</div>
|
|
</dt>
|
|
<dd>
|
|
<div class="mutliSelect" id="maindestination">
|
|
<ul>
|
|
<li><input data-id="1" value="4" class="enhance-tag" type="checkbox" name="enhance_check_1" id="stt_preset_1" onclick="setInqueryCheck(this)"> <span>STT Preset Letter</span></li>
|
|
<li><input data-id="1" value="1" class="enhance-tag" type="checkbox" name="enhance_check_1" id="acc_enhance_1" onclick="setInqueryCheck(this)"> <span>Enhance Personal Identifiers</span></li>
|
|
<li><input data-id="1" value="2" class="enhance-tag" type="checkbox" name="enhance_check_1" id="acc_inquery_1" onclick="setInqueryCheck(this)"> <span>This Item is a Multiple Inquiry Removal attack</span></li>
|
|
<li><input data-id="1" value="3" class="enhance-tag" type="checkbox" name="enhance_check_1" id="acc_multiple_1" onclick="setInqueryCheck(this)"> <span>Multiple Negative attacks</span></li>
|
|
<li><input data-id="1" value="5" class="enhance-tag" type="checkbox" name="enhance_check_1" id="public_record_attack_1" onclick="setInqueryCheck(this)"> <span>Public Records Attack</span></li>
|
|
</ul>
|
|
</div>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group ">
|
|
<div class="dest-checkbox" id="dest-checkbox_1">
|
|
<ul style="list-style:none;" id="dest_ul_check_1">
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="form-group input-file-field" id="input-file-field">
|
|
<div class="row">
|
|
<div class="col-md-12 df-area" id="df-area_1" style="display:none">
|
|
<div class="row">
|
|
<div class="col-md-3 col-md-offset-2">
|
|
<label for="">DATA FUNISHERS NAME/ADDRESS is:</label>
|
|
<textarea placeholder="e.g, KAY JEWELERS, 375 GHENT RD AKRON, OH 44333" name="df_textarea_1" class="form-control df-textarea" id="" cols="30" rows="10"></textarea>
|
|
<input type="hidden" data-name="" value="" id="df_selected_address_val_1" name="df_selected_address_value[]" />
|
|
</div>
|
|
<!--df changes-->
|
|
<div class="col-md-3 col-md-offset-2">
|
|
<div class="row">
|
|
<input name="letter_stream_bank_list_1" type="hidden" value="" />
|
|
<div class="col-md-12">
|
|
<label class='pull-left control-label'>Negative Item category</label>
|
|
<select onchange="getBankCategoryInfoForDF(this)" class="form-control" name="df_item_bankCategory_1">
|
|
<option value="0"> Please select</option>
|
|
<option value="4"> All</option>
|
|
<option value="3"> TransUnion</option>
|
|
<option value="1"> Experian</option>
|
|
<option value="2"> Equifax</option>
|
|
</select>
|
|
<img id="df_bank_loader_1" src="__SERVER_URL__webroot/images/ajax-loader.gif" class="df-loader">
|
|
</div>
|
|
<div class="col-md-12" id="df_item_bankCategory_list_1"></div>
|
|
<div class="col-md-12">
|
|
<label class="pull-left control-label">Inquiries Category</label>
|
|
<div class="inquiries-area">
|
|
<select onchange="getInquiryItemCategoryInfoForDF(this)" class="form-control" name="df_item_inquirey_1">
|
|
<option value="0"> Please select</option>
|
|
<option value="4"> All</option>
|
|
<option value="3"> TransUnion</option>
|
|
<option value="1"> Experian</option>
|
|
<option value="2"> Equifax</option>
|
|
</select>
|
|
</div>
|
|
<img id="df_inquiry_loader_1" src="__SERVER_URL__webroot/images/ajax-loader.gif" class="df-loader">
|
|
</div>
|
|
<div class="col-md-12" id="df_item_inquirey_list_1"></div>
|
|
<div class="col-md-12">
|
|
<label class="pull-left control-label">Public Record Category</label>
|
|
<div class="public-records-area">
|
|
<select onchange="getPublicItemCategoryInfoForDF(this)" class="form-control" name="df_item_public_1">
|
|
<option value="0"> Please select</option>
|
|
<option value="4"> All</option>
|
|
<option value="3"> TransUnion</option>
|
|
<option value="1"> Experian</option>
|
|
<option value="2"> Equifax</option>
|
|
</select>
|
|
</div>
|
|
<img id="df_public_loader_1" src="__SERVER_URL__webroot/images/ajax-loader.gif" class="df-loader">
|
|
</div>
|
|
<div class="col-md-12" id="df_item_public_list_1"></div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="col-md-2">
|
|
|
|
|
|
</div>
|
|
|
|
<!--df changes-->
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-3 col-md-offset-2">
|
|
<label for="">VERBIAGE POSSIBILITIES</label>
|
|
<select name="df_deopdown_1" class="form-control df-dropdown">
|
|
<option value="">Choose Item</option>
|
|
<option value="1"> DF PUBLIC RECORD ATTACK</option>
|
|
<option value="2"> DF PUBLIC RECORD ATTACK LETTER to COURT for PROCEDURES</option>
|
|
<option value="3"> DF Non-Medical COLLECTIONS/ CHARGE-OFFS/ COLLECTION-CHARGE OFFS/ and or CHARGE OFF-COLECTIONS</option>
|
|
<option value="4"> DF MEDICAL COLLECTIONS</option>
|
|
<option value="5"> DF STUDENT LOAN DELINQUENCIES/DEROGATORIES for PAANL or PAANLPR status </option>
|
|
<option value="6"> DF STUDENT LOAN DELINQUENCIES/DEROGATORIES for REMOVAL </option>
|
|
<option value="7"> DF NON-STUDENT LOAN DELINQUENCIES/DEROGATORIES for PAANL or PAANLPR status </option>
|
|
<option value="8"> DF NON-STUDENT LOAN DELINQUENCIES/DEROGATORIES for REMOVAL </option>
|
|
<option value="9"> DF INQUIRIES </option>
|
|
<option value="10"> DF PERSONAL INFORMATION ISSUES </option>
|
|
<option value="11"> DF OTHER UNKNOWN/GENERAL attacks </option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="col-sm-5 col-sm-offset-1">
|
|
<div class="view-img">
|
|
<img id="acc_img_1" style="display:none;" class="image-responsive att-image" src="" />
|
|
<img id="enhance_img_1" style="display:none;" class="image-responsive att-image" src="__ADMIN_ACC_ENHANCE_IMAGE__" />
|
|
<img id="inquiry_img_1" style="display:none;" class="image-responsive att-image" src="__ADMIN_ACC_INQUIRY_IMAGE__" />
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="control-label"> Click the Drop Down Box To Help Explain The Possible Issues with this Item</label>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="col-sm-2">
|
|
<label class="control-label" style="padding:0;">Item Image <br> (PNG/JPEG)<br><div style="margin-top:80px;">Put In The Box:<br>Account Name<br>Data Furnisher Address<br>Account Number</div></label>
|
|
<label class="control-label rebuttal-class">REBUTTAL</label>
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<input type="hidden" value="0" name="acc_img_clear_1" id="acc_img_clear" />
|
|
<input type="hidden" name="temp_acc_img_1" value id="temp_acc_img_1" />
|
|
<input type="hidden" value="0" name="check_indicator_1" value id="temp_acc_img_1" />
|
|
<input type="hidden" name="acc_img_url_1" value id="acc_img_url_1" />
|
|
<input type="file" data-id="1" onchange="uploadphotos(this, 1)" name="image_1" id="image_1" class="form-control">
|
|
<span class="help-block text-center">
|
|
<textarea class="form-control" name="image_text_area_1" rows="12" style="height:270px;"></textarea>
|
|
</span>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<select name="rebuttal_1" id="" class="form-control">
|
|
<option value="">Choose Item</option>
|
|
<option value="1">Account REBUTTAL</option>
|
|
<option value="2">INQUIRY REBUTTAL</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-1">
|
|
<label id="label1"><a style="cursor:hand;cursor:pointer;margin-right: 30px;" onClick="clearFile(this);" data-id="1">Clear</a></label>
|
|
</div>
|
|
<div class="col-sm-4 acc-issues-div">
|
|
<div id="item-category_1"></div>
|
|
<label class="pull-left control-label">Item's attack number</label>
|
|
<select onchange="getItemAttackValue(this)" class="form-control" name="item_attack_num_1">
|
|
<option value="0">Choose Item</option>
|
|
<option value="1">This is FIRST TIME using the M2CA methods for THIS ITEM</option>
|
|
<option value="2">This is SECOND TIME using the M2CA methods for THIS ITEM</option>
|
|
<option value="3">This is THIRD TIME using the M2CA methods for THIS ITEM</option>
|
|
<option value="4">I DO NOT KNOW if this is FIRST, SECOND, ETC. time using a M2CA method!</option>
|
|
</select>
|
|
<label class="pull-left control-label" style="display:none">Inquiries Category</label>
|
|
<div class="inquiries-area" style="display:none">
|
|
<select onchange="getInquiryItemCategoryInfo(this)" class="form-control" name="item_inquirey_1">
|
|
<option value="4">All</option>
|
|
<option value="3"> TransUnion</option>
|
|
<option value="1"> Experian</option>
|
|
<option value="2"> Equifax</option>
|
|
</select>
|
|
</div>
|
|
<label class="pull-left control-label" style="display:none">Negative Item Names</label>
|
|
|
|
<div class="banklist" style="display:none">
|
|
|
|
</div>
|
|
<label class="pull-left control-label" style="display:none">Late Pays / 2 Or Less Item Names</label>
|
|
|
|
<div class="late-pays-banklist" style="display:none">
|
|
|
|
</div>
|
|
<div id="item-public-category_1" class="publicRecordcategoryDiv"></div>
|
|
<label class="pull-left control-label">Ownership/Responsibility of item issues</label>
|
|
<select class="form-control" name="item_ownership_1">
|
|
<option value="">Choose Item</option>
|
|
<option value="1">Item is mine YET is NOT proven COMPLIANT in its reporting.</option>
|
|
<option value="2">This item is NOT MINE and is result of FRAUD and or IDENTITY THEFT.</option>
|
|
<option value="3">ITEM IS MINE, but I AM NOT LIABLE due to FRAUDULENT activities.</option>
|
|
<option value="4">Item has too many inconsistencies and or deficiencies to be VALID and COMPLIANT!</option>
|
|
<option value="5">I do not know</option>
|
|
</select>
|
|
<label class="pull-left control-label">Item Discontinuance</label>
|
|
<select onchange="getItemDiscont(this)" class="form-control" name="item_discount_1">
|
|
<option value="">Choose Item</option>
|
|
<option value="1">This ITEM is a PERSONAL ITEM</option>
|
|
<option value="2">This ITEM is an INQUIRY ALLEGATION</option>
|
|
<option value="3">This ITEM is an ACCOUNT</option>
|
|
<option value="4">This ITEM is NOT A PERSONAL IDENTIFIER ITEM, NOT AN INQUIRY, NOT AN ACCOUNT</option>
|
|
</select>
|
|
<label class="pull-left control-label">Account Number Issues</label>
|
|
<dl class="dropdown-x" id="acc-num-sub">
|
|
<dt>
|
|
<div>
|
|
<a onclick="chooseDropDown(this);" href="javascript:;">
|
|
<span class="choose-dest">Choose Item</span>
|
|
<p class="multiSel"></p>
|
|
</a>
|
|
</div>
|
|
</dt>
|
|
<dd>
|
|
<div class="mutliSelect" id="acc-num-sub_1">
|
|
<ul>
|
|
<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_1[]" type="checkbox" value="1" data-view="Account number is MISSING or NOT REPORTED" /> Account number is MISSING or NOT REPORTED</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_1[]" type="checkbox" value="2" data-view="ACCOUNT NUMBER IS INACCURATE" /> ACCOUNT NUMBER IS INACCURATE</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_1[]" type="checkbox" value="3" data-view="Account Number TRUNCATION has EXACTLY FOUR" /> Account Number TRUNCATION has EXACTLY
|
|
FOUR
|
|
</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_1[]" type="checkbox" value="4" data-view="Account Number TRUNCATION has ONLY THREE OR LESS" /> Account Number TRUNCATION has ONLY
|
|
THREE OR LESS</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_1[]" type="checkbox" value="5" data-view="Account Number TRUNCATION has FIVE OR MORE" /> Account Number TRUNCATION has FIVE OR
|
|
MORE
|
|
</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_1[]" type="checkbox" value="-1" data-view="OTHER" /> OTHER</li>
|
|
</ul>
|
|
</div>
|
|
</dd>
|
|
|
|
</dl>
|
|
<span class="help-block text-center" style="display: none;">
|
|
<textarea name="acc_number_other_1" id="acc-other" class="form-control remove-textarea" rows="5"></textarea>
|
|
</span>
|
|
<label class="pull-left control-label">Account Aspect Issues</label>
|
|
<dl class="dropdown-x" id="acc-aspect-sub">
|
|
<dt>
|
|
<div>
|
|
<a onclick="chooseDropDown(this);" href="javascript:;">
|
|
<span class="choose-dest">Choose Item</span>
|
|
<p class="multiSel"></p>
|
|
</a>
|
|
</div>
|
|
</dt>
|
|
<dd>
|
|
<div class="mutliSelect" id="acc-aspect-sub_1">
|
|
<ul>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="1"> ACCOUNTNAME/CREDITORNAME/DFNAME</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="2"> DF/CREDITORADDRESSISSUES</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="3"> Accountberissue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="4"> OriginalCreditor(OC)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="5"> ReportedName(s)issue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="6"> Nameidentificationber(s)issue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="7"> ReportedAddress(es)issue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="8"> Addressidentificationber(s)issue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="9"> AddressResidenceType(s)issue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="10"> AddressGeographicCode(s)issue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="11"> ReportedDateOfBirth(orYearofBirth)issue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="12"> Reportedtelephoneber(s)issue(s)akacontact(s)issue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="13"> Spouse(s)/co-applicant(s)/roommate(s)issue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="14"> Employer(s)issue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="15"> Employment/JobDescription(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="16"> ReinvestigationInformation</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="17"> AccountHistory</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="18"> OnRecorduntil</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="19"> Monthlypayment</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="20"> AccountResponsibility</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="21"> paymentAmount(orRecentpaymentAmount)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="22"> PaymentHistoryGuide</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="23"> BalanceHistory</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="24"> DateofREQUEST(Inquiry)(akaDateOfPermissiblePurposeakaDOPP)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="25"> INQUIRY TYPE ake Permissible Purpose Type</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="26"> DATEOPEN(OpenDate)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="27"> CURRENTBALANCEAMOUNT(BALANCE)(RecentBalanceReported)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="28"> PastDueBALANCEreported</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="29"> CreditLIMIT(HighLimitReported)(orOriginalAmount)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="30"> Highbalancereported</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="31"> LATEPAYMENTDATE(LPD)akaDateofLatePayment(DOLP)reported</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="32"> DOFD DATEOFFIRSTDELINQUENCY</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="33"> DFMD-DATEofFIRSTMAJORDELINQUENCY</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="34"> STATUSDATEissue(s)akaDateofStatusissue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="35"> Status</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="36"> DateVERIFIEDissue(s)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="37"> BALANCEDATEissue(s)(akaBalanceUpdated)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="38"> PAYMENTDATEakaDATEOFPAYMENT(DOP)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="39"> STATUSDATE/DATEOFSTATUSnotmatchingReportingDate/Balancedate/DateVerified/DateUpdated</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="40"> DATEVERIFIEDnotmatchingReportingDate/StatusDate/BalanceDate/DateUpdated</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="41"> BALANCEDATEnotmatchingReportingDate/StatusDate/DateVerified/DateUpdated</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="42"> DateREPORTED(akaREPORTDATE)(akaFirstReported)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="43"> DATEFILEDakaFILINGDATE</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="44"> Plaintiffofpublicrecord</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="45"> DATEDISMISSED</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="46"> DATEDISCHARGED</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="47"> LIABILITYLIMIT</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="48"> ASSETAMOUNT</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="49"> ACCOUNTCOMMENTS/NOTATIONS</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="50"> MONTHLYPAYMENTAMOUNT</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="51"> DOLP-DATEofLASTPAYMENT</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="52"> DOLA-DATEOFLASTACTIVITY</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="53"> CHARGE-OFFAMOUNT(akaCOA)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="54"> CHARGE-OFFDATE(akaCOD)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="55"> ACCOUNTTYPE</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="56"> ACCOUNTOWNERSHIP/RESPONSIBILITY</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="57"> ACCOUNTHIGHLIMIT</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="58"> ACCOUNTTERMS(akaberOfMonths)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="59"> ACCOUNTHISTORICALPAYMENTGRIDorMONTHTOMONTHDISPLAY</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="60"> ACCOUNT30/60/90STATUS</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="61"> DATEREPORTED(REPORTDATE)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="62"> ACCOUNTSTATUS</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="63"> STATUSDATE(akaStatusUpdated)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="64"> HIGHBALANCEAMOUNT</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="65"> PaymentStatusDetails</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="66"> BalloonPayment</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="67"> CreditorContactPhone</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="68"> CreditorContactAddress</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="69"> CompanySold-to</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="70"> CreditorClassificationCode(CCC)</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="71"> PaymentStatusDetails</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="72"> DEROGATORYCONDITIONnotspecificbutalleged</li>
|
|
<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_1[]" type="checkbox" value="73"> OTHER</li>
|
|
</ul>
|
|
</div>
|
|
</dd>
|
|
</dl>
|
|
<span class="help-block text-center" style="display:none;">
|
|
<textarea name="acc_aspect_other_1" id="acc-aspect" class="form-control remove-textarea" rows="5"></textarea>
|
|
</span>
|
|
<label class="pull-left control-label">Account Derogatory Type</label>
|
|
<dl class="dropdown-x" id="acc-derogatory-sub">
|
|
<dt>
|
|
<div>
|
|
<a onclick="chooseDropDown(this);" href="javascript:;">
|
|
<span class="choose-dest">Choose Item</span>
|
|
<p class="multiSel"></p>
|
|
</a>
|
|
</div>
|
|
</dt>
|
|
<dd>
|
|
<div class="mutliSelect" id="acc-derogatory-sub_1">
|
|
<ul>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Bankruptcy Public Record Option" value="1"> Bankruptcy Public
|
|
Record Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Judgment Public Record Option" value="4"> Judgment Public
|
|
Record Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Tax Lien Public Record Option" value="7"> Tax Lien Public
|
|
Record Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Foreclosure Option" value="10"> Foreclosure Option </li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Short Sale Option" value="13"> Short Sale Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Repossession Option" value="16"> Repossession Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Child Support Arrears Option" value="19"> Child Support Arrears
|
|
Option
|
|
</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Alimony Arrears Option" value="21"> Alimony Arrears Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Charge-Off Option" value="23"> Charge-Off Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="REGULAR Non-Medical Debt Collection Option" value="25"> REGULAR
|
|
Non-Medical Debt Collection Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="MEDICAL Debt Collection Option" value="28"> MEDICAL Debt
|
|
Collection Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="DEROGATORY/DELINQUENT STUDENT LOAN Option" value="32"> DEROGATORY/DELINQUENT
|
|
STUDENT LOAN Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Late Payment Option" value="34"> Late Payment Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="Inquiry Option" value="36"> Inquiry Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="DEROGATORY CLAIM Option" value="38"> DEROGATORY CLAIM Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="DEFICIENT REPORTED DATA Option" value="41"> DEFICIENT REPORTED
|
|
DATA Option</li>
|
|
<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_1[]" type="checkbox" data-view="OTHER" value="-1"> OTHER</li>
|
|
</ul>
|
|
</div>
|
|
</dd>
|
|
</dl>
|
|
<span class="help-block text-center" style="display:none;">
|
|
<textarea name="acc_derogatory_other_1" id="acc-other" class="form-control remove-textarea" rows="5"></textarea>
|
|
</span>
|
|
<label class="pull-left control-label">Other</label>
|
|
<span class="help-block text-center">
|
|
<textarea onkeyup="accOtherkepress(this)" name="acc_other_1" id="acc-other" class="form-control" rows="5"></textarea>
|
|
</span>
|
|
|
|
</div>
|
|
<div class="col-sm-1">
|
|
<label id="label1"><a onclick="addImageBtn()" id="add-image-btn" style="padding: 1px 6px;" class="btn btn-success"><i class="fa fa-plus"></i></a></label>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<hr/>
|
|
<div class="attachment-whole-area">
|
|
<div class="form-group view-allcheck"></div>
|
|
|
|
<div class="form-group">
|
|
<div class="att-checkbox" id="att-checkbox_1">
|
|
<ul style="list-style:none;" id="att_ul_check_1">
|
|
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="view-img">
|
|
<img id="att_img_1" style="display:none;" class="image-responsive att-image" src="__SERVER_URL__webroot/cmsuser_logo/invoice-logo.png" />
|
|
</div>
|
|
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-md-12" style="text-align:center;">Add Image Here for Proof: Example: SS, Proof ID, Current Bill ect. Must be PNG or JPEG</label>
|
|
</div>
|
|
<div id="add-new-attach">
|
|
<div class="form-group add-new-attach" id="add-new-attach">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="col-md-offset-3 col-md-6">
|
|
<input type="hidden" value="0" name="att_img_clear_1" id="att_img_clear" />
|
|
<input type="hidden" value="0" name="isExistAttach_1" id="att_img_clear" />
|
|
<input type="hidden" value="" name="temp_attachment_1" id="attachment_1" />
|
|
<input type="hidden" name="attachment_img_url_1" value="" id="attachment_img_url_1" />
|
|
<input type="file" data-id="1" onchange="uploadphotos(this, 2)" name="attachment_1" id="1" class="form-control" />
|
|
</div>
|
|
<div class="col-md-1">
|
|
<label id="label1"><a style="cursor:hand;cursor:pointer;" onClick="clearImage(1);" data-id="4">Clear</a></label>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<label id="label1"><a onClick="addAttachament()" id="add-attach-btn" style="padding: 1px 6px;" class="btn btn-success"><i class="fa fa-plus"></i></a></label>
|
|
</div>
|
|
<div class="col-md-1"></div>
|
|
</div>
|
|
</div>
|
|
<input id="indicate" type="hidden" name="indiactor" value="save" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-3 col-sm-8" id="bottom-content">
|
|
<button type="button" id="resetForm" class="btn btn-info btn-orange-color" style="margin-top: 5px;margin-bottom: 5px;">Reset</button>
|
|
<button name="action" value="create_new" style="display: none;margin-right: 5px;margin-top: 5px;margin-bottom: 5px;" onclick="return createNew(this);" type="submit" id="create-new-btn" class="btn btn-info btn-orange-color">Create New & Generate</button>
|
|
<button type="button" id="save_button" onclick="return submitForm(this)" value="save_btn" class="btn btn-info btn-orange-color" style="margin-top: 5px;margin-bottom: 5px;">Save</button>
|
|
<button type="submit" id="generate_button" onclick="return generate()" name="formAction" value="generate" class="btn btn-info btn-orange-color" style="margin-top: 5px;margin-bottom: 5px;">Save & Generate</button>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
<div class="box-footer">
|
|
<div id="btn-up-0" style="text-align:right;">
|
|
<a href="#top-content"><span class="glyphicon glyphicon-circle-arrow-up" style="font-size: 25px;" title="Go To Top Area"></span></a>
|
|
<div id="btn-up-1" style="display: none;"><a href="#main-content-0" id="btn-arrow-up-0"><span class="fa-stack fa-lg" style="font-size:16px;font-weight: 500;" title="Go To Content Area 1"><i class="fa fa-circle fa-stack-2x"></i><i class="fa-stack-1x fa-inverse">1</i></span></a></div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box-footer -->
|
|
<!-- /before saving modal -->
|
|
<div id="before-saving-modal" class="modal fade" data-backdrop="static" data-keyboard="false" role="dialog">
|
|
<div class="modal-dialog modal-md">
|
|
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" style="top:30%;color: white;"><i class="fa fa-close"></i></button>
|
|
<h4 class="modal-title" id="formModalLabel">
|
|
What Type Of Letter Would You Like To Save This As: Check Below 1 Or Multiple
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<dl class="dropdown-x">
|
|
<dt>
|
|
<div>
|
|
<a onclick="chooseDropDown(this);" href="javascript:;">
|
|
<span class="choose-dest">Choose Item</span>
|
|
<p class="multiSel"></p>
|
|
</a>
|
|
</div>
|
|
</dt>
|
|
<dd>
|
|
<div class="mutliSelect" id="maindestination">
|
|
__LETTER_TYPES__
|
|
</div>
|
|
</dd>
|
|
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
|
|
<div class="download-area __IS_VELOCITY_USER__" style="margin-left: 15px;">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="form-group">
|
|
<div class="radio dload">
|
|
<label>
|
|
<input type="radio" value="1" name="download_type" class="" checked/>
|
|
Download
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
__SAVE_LETTER__
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="form-group">
|
|
<div class="radio dload">
|
|
<label>
|
|
<input type="radio" value="2" name="download_type" class="" />
|
|
Download as
|
|
</label>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group" style="margin-right: 0;">
|
|
__EXPORT_TYPE_DROPDOWN__
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="checkbox">
|
|
<label>
|
|
<input type="checkbox" onclick="checkAllExport(this)" name="checkallExport" disabled> Check all
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div id="date-action" style="margin-left: 15px;">
|
|
<div class="row">
|
|
<div class="col-md-3" style="padding-left: 0;">
|
|
<label class="control-label">Date Of Next Action</label>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="form-group" style="margin-right: 0;">
|
|
<div class="input-group date date-only">
|
|
<input type="text" placeholder="Please select date" name="next_section_date" class="form-control" readonly />
|
|
<div class="input-group-addon">
|
|
<span class="glyphicon glyphicon-th"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
__DAY_SELECTION_DROPDOWN__
|
|
</div>
|
|
</div>
|
|
__LETTER_DROPDOWN__
|
|
</div>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
|
|
<span>
|
|
<img style="height:25px;display:none" id="saveloading" class="rtg-loading-img" src="__SERVER_URL__webroot/loading/loading.gif">
|
|
</span>
|
|
<button type="button" data-type="0" id="before-save" class="btn btn-default btn-orange-color">Save</button>
|
|
<button type="button" id="before-cancel" class="btn btn-default btn-orange-color" data-dismiss="modal">Cancel</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<!-- /before saving modal -->
|
|
<!-- letter stream modal -->
|
|
<div id="letter-stream-modal" class="modal fade" data-backdrop="static" data-keyboard="false" role="dialog">
|
|
<div class="modal-dialog modal-md">
|
|
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header" style="height: 44px;background:#3c8dbc;">
|
|
<button type="button" class="close" data-dismiss="modal" style="top:30%;color: white;"><i class="fa fa-close"></i></button>
|
|
<h4 class="modal-title" style="line-height: 0.8; color: white;">Destination and Address Mapping</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-6 col-xs-12">
|
|
<p class="pull-left">Please confirm the addresses below to send the letter(s) to letterstream.com</p>
|
|
</div>
|
|
<div class="col-md-2 col-xs-12">
|
|
<div class="row">
|
|
<div class="col-md-12 col-xs-12">
|
|
<div class="radio" style="padding-top:0">
|
|
<label>
|
|
<input checked type="radio" name="mailType" value="firstclass"/>
|
|
First Class
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2 col-xs-12">
|
|
<div class="row">
|
|
<div class="col-md-12 col-xs-12">
|
|
<div class="radio" style="padding-top:0">
|
|
<label>
|
|
<input type="radio" name="mailType" value="certified"/>
|
|
Certified
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2 col-xs-12">
|
|
<div class="row">
|
|
<div class="col-md-12 col-xs-12">
|
|
<div class="checkbox" style="padding-top:0">
|
|
<label>
|
|
<input type="checkbox" name="is_letterstream_duplex" value="Y"/>
|
|
Double Sided Print
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="letter-stream-content table-responsive"></div>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<span>
|
|
<img style="height:25px;display:none" id="saveloading-letter" class="rtg-loading-img" src="__SERVER_URL__webroot/loading/loading.gif">
|
|
</span>
|
|
<button type="button" id="letter-stream-btn" onclick="letterStreamSubmit()" class="btn btn-default btn-orange-color">Confirm</button>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<!-- /letter stream modal -->
|
|
</form>
|
|
</div>
|
|
<!-- /.box -->
|
|
<div class="modal" id="formModal" tabindex="-1" role="dialog" aria-labelledby="formModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header" style="height: 44px;background:#3c8dbc;">
|
|
<h4 class="modal-title" id="formModalLabel" style="line-height: 0.8; color: white;">Form Management</h4>
|
|
<button type="button" class="close" style="margin-top: -8px;" onclick="toggleModal()" aria-label="Close">
|
|
<span aria-hidden="true" style="color: white;"><i class="fa fa-close"></i></span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group">
|
|
<div class="col-sm-3 client-status">
|
|
<div class="radio">
|
|
<label>
|
|
<input type="radio" value="2" onclick="affiliateFormShow(this)" name="client_type">
|
|
Show affiliate clients
|
|
<img id="affiliate-loader-form" src="__SERVER_URL__webroot/images/ajax-loader.gif" style="display: none;width: 15px;">
|
|
</label>
|
|
</div>
|
|
</div>
|
|
__EMPLOYEE_RADIO_BUTTON__
|
|
<div class="col-sm-3 client-status">
|
|
<div class="radio">
|
|
<label>
|
|
<input type="radio" value="3" onclick="affiliateFormShow(this)" name="client_type" checked>
|
|
All clients
|
|
<img id="all-loader-form" src="__SERVER_URL__webroot/images/ajax-loader.gif" style="display: none;width: 15px;">
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group affiliate-hide client-status form-affiliate-list">
|
|
<label class="col-sm-2 control-label">Affiliate List</label>
|
|
<div class="col-sm-5">
|
|
<select name="form_affiliate_client_id" class="form-control" onchange="sertgAffiliateFormList(this)">
|
|
|
|
</select>
|
|
<img src="__SERVER_URL__webroot/images/ajax-loader.gif" style="display: none;">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="form-group affiliate-hide client-status form-employee-list">
|
|
<label class="col-sm-2 control-label">Employee List</label>
|
|
<div class="col-sm-5">
|
|
<select name="form_dropdown_employee_id" class="form-control" onchange="sertgEmployeeFormList(this)">
|
|
</select>
|
|
<img src="__SERVER_URL__webroot/images/ajax-loader.gif" style="display: none;">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12 ">
|
|
<div class="box-body table-responsive index-table-section" style="overflow-y:scroll; max-height:450px;">
|
|
<table class="display table table-bordered table-hover" id="form-table">
|
|
<thead>
|
|
<tr>
|
|
<th style="color: #3c8dbc;">
|
|
<input onclick="velocityAllCheckbox(this)" type="checkbox" value="0" name="velocity_id-all">
|
|
</th>
|
|
<th style="color: #3c8dbc;">Id</th>
|
|
<th style="color: #3c8dbc;">Personal Information</th>
|
|
<th style="color: #3c8dbc;">Date of birth</th>
|
|
<th style="color: #3c8dbc;">SSN</th>
|
|
<th style="color: #3c8dbc;">Source</th>
|
|
<th style="color: #3c8dbc;">Letter Types</th>
|
|
<th style="color: #3c8dbc;">Modified On</th>
|
|
<th style="color: #3c8dbc;">Date Of Next Action</th>
|
|
<th style="color: #3c8dbc;">Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button id="modal-delete-btn" style="margin-top: 15px;" type="button" class="btn btn-danger pull-left" onclick="deleteAllForm()">Delete selected</button>
|
|
<img style="height:25px;display:none;padding-left: 10px;margin-top: 5px;" id="delete_loading" class="rtg-loading-img pull-left" src="__SERVER_URL__webroot/loading/loading.gif">
|
|
<button id="modal-btn" style="margin-top: 15px;" type="button" class="btn btn-secondary btn-success btn-orange-color" onclick="toggleModal()">Close</button>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- /.row -->
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="client-html" class="modal fade" role="dialog">
|
|
<div class="modal-dialog" style="width: 70%;">
|
|
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header" style="height: 44px;background:#3c8dbc;">
|
|
<button type="button" onclick="removeViewHTML(this)" class="close client-html-close" data-dismiss="modal" style="top:30%;color: white;"><i class="fa fa-close"></i></button>
|
|
<h4 class="modal-title" id="formModalLabel" style="line-height: 0.8; color: white;">
|
|
Credit Report HTML
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body" id="top-area">
|
|
<textarea name="html_content" cols="30" rows="10" style="display:none;"></textarea>
|
|
<div class="text-left">
|
|
<div id="btn-up-0" style="text-align:left;">
|
|
<a href="#bottom-area"><span class="glyphicon glyphicon-circle-arrow-down top-bottom-area-icon" style="font-size: 25px;display:none" title="Go To Bottom Area"></span></a>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 text-right">
|
|
<img id="save-loader" class="pull-right" style="display:none;padding-left:5px" src="__SERVER_URL__webroot/images/ajax-loader.gif" />
|
|
<button type="button" data-loader="save-loader" onclick="checkconsoleFunction(this, true)" class="btn btn-primary btn-orange-color">Save</button>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="view-html" id="main-html-area"></div>
|
|
</div>
|
|
</div>
|
|
<div class="text-left">
|
|
<div id="btn-up-2" style="text-align:left;margin-top:10px">
|
|
<a href="#top-area" id="bottom-area"><span class="glyphicon glyphicon-circle-arrow-up top-bottom-area-icon" style="font-size: 25px;display:none" title="Go To Top Area"></span></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div class="row">
|
|
<div class="col-md-12 text-right">
|
|
<img id="save-loader-2" class="pull-right" style="display:none;padding-left:5px" src="__SERVER_URL__webroot/images/ajax-loader.gif" />
|
|
<button data-loader="save-loader-2" onclick="checkconsoleFunction(this, true)" type="button" class="btn btn-primary btn-orange-color">Save</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<!--/.col (right) -->
|
|
</div>
|
|
<!-- /.row -->
|
|
|
|
<div id="dialog">
|
|
|
|
</div>
|
|
<div class="row" style="display:none">
|
|
<div class="col-md-12">
|
|
<div class="credit-report" id="main-html-area"></div>
|
|
</div>
|
|
</div>
|
|
<!-- /.content -->
|
|
|
|
|
|
</section>
|
|
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
var onload_id = $('input[name=onload_id]').val();
|
|
if (onload_id > 0) {
|
|
getValueById(null, onload_id);
|
|
}
|
|
});
|
|
if (!$("#client-contact-id").hasClass("select2-hidden-accessible")) {
|
|
$('.client-dropdown').select2();
|
|
}
|
|
$('select[name=dropdown_employee_id]').select2();
|
|
$('select[name=affiliate_client_id]').select2();
|
|
var CLIENT_DEFAULT_LIST = [];
|
|
var hasLetterStream = false;
|
|
var GENERATE_RESULT = false;
|
|
var CLIENT_ASYNC = true;
|
|
var isClientFiles = false;
|
|
var BANK_DROP_DOWN = "";
|
|
var BANK_LATE_PAYS_DROP_DOWN = "";
|
|
var BANK_ASSOC = "";
|
|
var DB_KEY_ASSOC = "";
|
|
var DB_PUBLIC_KEY_ASSOC = "";
|
|
var BANK_LIST = "";
|
|
var BANK_VALUE_BY_KEY = {};
|
|
var INQUIRY_VALUE_BY_KEY = {};
|
|
var BANK_LATE_PAYS_LIST = "";
|
|
var BANK_ASSOC_CHUNK_LIST = "";
|
|
var STT_BANK_LIST = "";
|
|
var BANK_CHUNK_LIST = [];
|
|
var INQ_KEY_DATE = "";
|
|
var SLOT_ITEM = 10;
|
|
var MAX_SLOT_ITEM = 20;
|
|
var SLOT_END = 1;
|
|
var DD_ID = "";
|
|
var CLICK = [];
|
|
var ARRAY_INDEX = 0;
|
|
var SLOT_ARRAY_INDEX = 0;
|
|
var VIEW_SLOT_ARRAY = [];
|
|
var SLOT = [];
|
|
|
|
var confirmAlertValue = 0;
|
|
|
|
var MIN_CONTENT_LENGHT = 100;
|
|
var TOTAL_CLICK = 1;
|
|
|
|
var checkboxString = '';
|
|
var attcheckboxString = '';
|
|
var attAllcheck = '';
|
|
var divlen = 1;
|
|
var count_itemDiscont_ForAttack = [0];
|
|
var count_acc_num_ForAttack = [0];
|
|
var count_acc_aspect_ForAttack = [0];
|
|
var count_acc_derogatory_ForAttack = [0];
|
|
var count_acc_other_ForAttack = [0];
|
|
var count_acc_other_text_ForAttack = [0];
|
|
var CREATE_SPACE = "";
|
|
var SELECTED_BANK_ARRAY = [];
|
|
|
|
function getAddressList(dest_id) {
|
|
var array = [];
|
|
array[1] = ['EXPERIAN PO BOX 9701, ALLEN, TX 75013',
|
|
'EXPERIAN PO BOX 4500, ALLEN, TX 75013',
|
|
'EXPERIAN PO BOX 2002, ALLEN, TX 75013',
|
|
'OTHER'
|
|
];
|
|
|
|
array[2] = ['EQUIFAX PO Box740256, ATLANTA,GA 30374-0256',
|
|
'EQUIFAX PO Box740241, ATLANTA,GA 30374-0241',
|
|
'OTHER'
|
|
];
|
|
|
|
array[3] = ['Trans Union PO Box 2000, CHESTER, PA 19016-2000',
|
|
'Trans Union PO Box 1000, CHESTER, PA 19022-1000',
|
|
'Trans Union PO Box 2000, CHESTER, PA 19022-2000',
|
|
'OTHER'
|
|
|
|
];
|
|
|
|
array[4] = ['INNOVIS PO Box 1640, Pittsburgh, PA 15230-1640',
|
|
'INNOVIS 875 Greentree Road, 8 Parkway Center, Pittsburgh, PA 15220'
|
|
];
|
|
|
|
array[5] = ['LexisNexis PO Box 105108, Atlanta, GA 30348'];
|
|
|
|
array[6] = [' SageStream LLC LexisNexis Risk Solutions Consumer Center P. O. Box 105108, Atlanta, Georgia 30348-5108'];
|
|
|
|
array[7] = ['Chex Systems ATTN: Consumer Relations, 7805 Hudson Rd., Ste. 100, Woodbury, MN 55125'];
|
|
|
|
array[8] = [
|
|
'(US RESIDENTS) MIB Inc 50 Braintree Hill Park, Suite 400, Braintree, MA 02184-8734',
|
|
|
|
' (CANADIAN RESIDENTS) MIB Inc 330 university Avenue, Suite 501, Toronto, Canada M5G 1R7'
|
|
];
|
|
|
|
array[9] = ['FactorTrust PO Box 3653,Alpharhetta, GA 30023'];
|
|
|
|
return array[dest_id];
|
|
}
|
|
|
|
function getAddresses(value, title) {
|
|
|
|
var array = getAddressList(value);
|
|
//var selectTag = '<select id="address_'+value+'" onchange="otherAddress(this)" data-placeholder="CHOOSE '+title+' ADDRESS" name="destination_sub_menu_'+value+'[]" class="form-control select2" multiple="multiple">';
|
|
var selectTag = '<dl class="dropdown-x" id="address_' + value + '">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">CHOOSE ' + title + ' ADDRESS</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect">' +
|
|
'<ul>';
|
|
|
|
var count = 1
|
|
for (var x in array) {
|
|
var val = array[x];
|
|
if (val == 'OTHER') {
|
|
val = -1;
|
|
selectTag = selectTag + '<li><input onclick="getDestOption(this);" data-view="' + array[x] + '" type="checkbox" value = "' + val + '" name="destination_sub_menu_' + value + '[]"> ' + array[x] + '</li>'; //'<option value = "'+val+'">'+array[x]+'</option>';
|
|
} else {
|
|
selectTag = selectTag + '<li><input onclick="getDestOption(this);" data-view="' + array[x] + '" type="checkbox" value = "' + count + '" name="destination_sub_menu_' + value + '[]"> ' + array[x] + '</li>';
|
|
}
|
|
count++;
|
|
}
|
|
|
|
selectTag = selectTag + '</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>';
|
|
|
|
var addressHTML = '<div class="remove-all"><div class="form-group">' +
|
|
'<label class="col-sm-5 control-label"></label>' +
|
|
'<div class="col-sm-7">' +
|
|
selectTag +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<div class="form-group" id="address_other" style="display:none;">' +
|
|
'<label class="col-sm-5 control-label">OTHER</label>' +
|
|
'<div class="col-sm-7">' +
|
|
'<textarea id="destination_sub_menu_other_' + value + '" class="form-control" name="destination_sub_menu_other_' + value + '"></textarea>' +
|
|
'</div>' +
|
|
'</div></div>';
|
|
|
|
$('#address-div').append(addressHTML);
|
|
|
|
|
|
|
|
// return selectTag;
|
|
|
|
|
|
}
|
|
|
|
function get_destination_name(dest_value) {
|
|
var destination = ['', 'EXPERIAN DESTINATIONS', 'EQUIFAX DESTINATIONS', 'TRANS UNION DESTINATIONS', 'INNOVIS DESTINATIONS', 'LEXISNEXIS DESTINATIONS', 'SAGESTREAM LLC DESTINATIONS', 'CHEX SYSTEMS DESTINATIONS', 'MIB INC DESTINATIONS', 'FACTOR TRUST DESTINATIONS', 'OTHER'];
|
|
return destination[dest_value];
|
|
}
|
|
|
|
function otherAddress(selectTag) {
|
|
var value = $(selectTag).val();
|
|
var destValue = selectTag.name.replace('destination_sub_menu_', '').replace('[]', '');
|
|
if ($.inArray("-1", value) !== -1) {
|
|
var placeholder = get_destination_name(destValue);
|
|
var tag = $(selectTag).parent().parent().next('div');
|
|
//tag.children('div').children('textarea').attr('name','destination_sub_menu_'+selectTag.value);
|
|
tag.children('div').children('textarea').attr("placeholder", placeholder);
|
|
tag.css('display', 'block');
|
|
} else {
|
|
$(selectTag).parent().parent().next('div').css('display', 'none');
|
|
}
|
|
}
|
|
SLOT[ARRAY_INDEX] = 1;
|
|
CLICK[ARRAY_INDEX] = 1;
|
|
|
|
function addImageBtn(view = null, slot_end = null, isNotSTT = true) {
|
|
var divlen = 0;
|
|
var isEmpty = true;
|
|
var destinations = $("input[name='destination[]']")
|
|
.map(function() {
|
|
if ($(this).prop('checked')) {
|
|
isEmpty = false;
|
|
return false;
|
|
}
|
|
}).get();
|
|
//if ($('#dest-id').children().length == 0) {
|
|
if (isEmpty) {
|
|
alert("Please select at least one destination.");
|
|
return false;
|
|
}
|
|
CREATE_SPACE = "";
|
|
TOTAL_CLICK++;
|
|
//console.log('Total click:' +TOTAL_CLICK);
|
|
|
|
if (TOTAL_CLICK > MIN_CONTENT_LENGHT) {
|
|
alert("You can not add more than " + MIN_CONTENT_LENGHT + " items");
|
|
return;
|
|
}
|
|
|
|
|
|
//console.log("view value"+view);
|
|
//console.log("slot_end"+slot_end);
|
|
if (view == null) {
|
|
CLICK[ARRAY_INDEX]++;
|
|
//console.log("click"+CLICK[ARRAY_INDEX]);
|
|
//console.log("index"+ARRAY_INDEX);
|
|
//console.log("-----------------------");
|
|
|
|
var permission = checkContentPermission(CLICK[ARRAY_INDEX]);
|
|
if (permission == 1) {
|
|
|
|
divlen = executeNoThanks(isNotSTT);
|
|
|
|
} else if (permission == 2) {
|
|
divlen = executeContinue(isNotSTT);
|
|
} else {
|
|
CLICK[ARRAY_INDEX]--;
|
|
}
|
|
|
|
//console.log('Permission: '+permission+'\n');
|
|
$('input[name=slot_array]').val(SLOT);
|
|
} else {
|
|
//console.log("click"+CLICK[ARRAY_INDEX]);
|
|
//console.log("index"+ARRAY_INDEX);
|
|
//console.log("-----------------------");
|
|
CLICK[ARRAY_INDEX]++;
|
|
SLOT[ARRAY_INDEX]++;
|
|
divlen = getAccContentNew(ARRAY_INDEX, CLICK[ARRAY_INDEX], isNotSTT);
|
|
scroll_to();
|
|
if (slot_end == 1) {
|
|
ARRAY_INDEX++;
|
|
getSlotLevel(ARRAY_INDEX);
|
|
SLOT[ARRAY_INDEX] = 0;
|
|
CLICK[ARRAY_INDEX] = 0;
|
|
|
|
}
|
|
$('input[name=slot_array]').val(SLOT);
|
|
|
|
|
|
}
|
|
createDynamicSequenceAutoGenerateCheckbox()
|
|
return divlen;
|
|
}
|
|
|
|
|
|
function getAccContent() {
|
|
|
|
//console.log('Inside GetACCContent: \n Index: '+index+' Click: '+click);
|
|
|
|
var len = $('.input-file-field').length;
|
|
var divlen = ++DIVLENGTH;
|
|
var df_div = dfDropDownTextArea(divlen);
|
|
var isAccImageExist = '<input type="hidden" name="isAccImageExist_' + divlen + '" value="0">';
|
|
var imageTagArea = df_div + '<div class="col-sm-5 col-sm-offset-1">' +
|
|
'<div class="view-img">' +
|
|
'<img id="acc_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="enhance_img_' + divlen + '" style="display:none;" class="image-responsive att-image" src=""/>' +
|
|
'<img id="inquiry_img_' + divlen + '" style="display:none;" class="image-responsive att-image" src=""/>' +
|
|
'</div>' +
|
|
'</div>';
|
|
|
|
var checkboxDiv = '<div class="form-group remove-all">' +
|
|
'<div class="dest-checkbox" id="dest-checkbox_' + divlen + '">' +
|
|
'<ul style="list-style:none;" id="dest_ul_check_' + divlen + '">' +
|
|
checkboxString +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</div>';
|
|
var itemcategoryDiv = '<div id="item-category_' + divlen + '"></div>';
|
|
var publicRecordcategoryDiv = '<div id="item-public-category_' + divlen + '" class="publicRecordcategoryDiv"></div>';
|
|
var item_attack_discont = itemcategoryDiv + '<label class="pull-left control-label">Item' + "'" + 's attack number</label>' +
|
|
'<select onchange="getItemAttackValue(this)" class="form-control" name="item_attack_num_' + divlen + '">' +
|
|
'<option value="0">Choose Item</option>\n' +
|
|
'<option value="1">This is FIRST TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="2">This is SECOND TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="3">This is THIRD TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="4">I DO NOT KNOW if this is FIRST, SECOND, ETC. time using a M2CA method!</option>' +
|
|
'</select>'
|
|
|
|
+'<label class="pull-left control-label">Ownership/Responsibility of item issues</label>\n' +
|
|
'<select class="form-control" name="item_ownership_' + divlen + '">\n' +
|
|
'<option value="">Choose Item</option>' +
|
|
'<option value="1">Item is mine YET is NOT proven COMPLIANT in its reporting.</option>' +
|
|
'<option value="2">This item is NOT MINE and is result of FRAUD and or IDENTITY THEFT.</option>' +
|
|
'<option value="3">ITEM IS MINE, but I AM NOT LIABLE due to FRAUDULENT activities.</option>' +
|
|
'<option value="4">Item has too many inconsistencies and or deficiencies to be VALID and COMPLIANT!</option>' +
|
|
'<option value="5">I do not know</option>' +
|
|
' </select>' +
|
|
'<label class="pull-left control-label">Item Discontinuance</label>' +
|
|
'<select onchange="getItemDiscont(this)" class="form-control" name="item_discount_' + divlen + '">' +
|
|
'<option value="">Choose Item</option>' +
|
|
'<option value="1">This ITEM is a PERSONAL ITEM</option>' +
|
|
'<option value="2">This ITEM is an INQUIRY ALLEGATION</option>' +
|
|
'<option value="3">This ITEM is an ACCOUNT</option>' +
|
|
'<option value="4">This ITEM is NOT A PERSONAL IDENTIFIER ITEM, NOT AN INQUIRY, NOT AN ACCOUNT</option>' +
|
|
'</select>';
|
|
var velocityQuickStartDropdown2 = setVelocityQuickStartDropDown(divlen);
|
|
var allCheck = '<div class="row remove-all">' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="form-group remove-all view-allcheck">' +
|
|
attAllcheck +
|
|
'</div>' +
|
|
'</div> ' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="row">' +
|
|
velocityQuickStartDropdown2 +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>';
|
|
var slot_title = "<div class='row'>" +
|
|
" <div class='col-md-12'>" +
|
|
"<label id='slot-title_" + divlen + "' style='width:100%;'></label>" +
|
|
"</div>" +
|
|
"</div>";
|
|
|
|
var html = '<div id="slot_' + ARRAY_INDEX + '"><hr>' + slot_title + allCheck + checkboxDiv + '<div class="form-group input-file-field counter remove-all" id="input-file-field">' +
|
|
'<div class="row">' +
|
|
imageTagArea +
|
|
'<div class="col-md-6">' +
|
|
'<label class="control-label"> Click the Drop Down Box To Help Explain The Possible Issues with this Item</label>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<br>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label class="control-label" style="padding:0;">Item Image <br> (PNG/JPEG)<br><div style="margin-top:80px;">Put In The Box:<br>Account Name<br>Data Furnisher Address<br>Account Number</div></label>' +
|
|
'<label class="control-label rebuttal-class rebuttal-class1" >REBUTTAL</label>\n' +
|
|
'</div>' +
|
|
'<div class="col-sm-3">' +
|
|
'<input type="hidden" value="0" name="acc_img_clear_' + divlen + '" id="acc_img_clear" />' +
|
|
'<input type="hidden" value="" name="temp_acc_img_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
isAccImageExist +
|
|
'<input type="hidden" value="0" name="check_indicator_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
'<input type="hidden" name="acc_img_url_' + divlen + '" value id="acc_img_url_' + divlen + '"/>' +
|
|
'<input type="file" onchange="uploadphotos(this,1)" data-id="' + divlen + '" name="image_' + divlen + '" id="image_' + divlen + '" class="form-control" />' +
|
|
'<span class="help-block text-center">' +
|
|
'<textarea oninput="updateValueSTTInquiry(this)" onchange="updateValueSTTInquiry(this)" onkeyup="updateValueSTTInquiry(this)" class="form-control" name="image_text_area_' + divlen + '" rows="12" style="height:261px;"></textarea>' +
|
|
'</span>' +
|
|
'<div class="row">\n' +
|
|
'<div class="col-md-12">\n' +
|
|
' <select name="rebuttal_' + divlen + '" id="" class="form-control">\n' +
|
|
' <option value="">Choose Item</option>\n' +
|
|
' <option value="1">Account REBUTTAL</option>\n' +
|
|
' <option value="2">INQUIRY REBUTTAL</option>\n' +
|
|
' </select>\n' +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<div class="col-sm-1">' +
|
|
'<label id="label1"><a style="cursor:hand;cursor:pointer;margin-right: 30px;" onClick="clearFile(this);" data-id="' + divlen + '">Clear</a></label>' +
|
|
'</div>' +
|
|
'<div class="col-sm-4 acc-issues-div">' +
|
|
item_attack_discont +
|
|
'<label class="pull-left control-label">Account Number Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-num-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-num-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="1" data-view="Account number is MISSING or NOT REPORTED" /> Account number is MISSING or NOT REPORTED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="2" data-view="ACCOUNT NUMBER IS INACCURATE" /> ACCOUNT NUMBER IS INACCURATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="3" data-view="Account Number TRUNCATION has EXACTLY FOUR" /> Account Number TRUNCATION has EXACTLY FOUR</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="4" data-view="Account Number TRUNCATION has ONLY THREE OR LESS" /> Account Number TRUNCATION has ONLY THREE OR LESS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="5" data-view="Account Number TRUNCATION has FIVE OR MORE" /> Account Number TRUNCATION has FIVE OR MORE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="-1" data-view="OTHER" /> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_number_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Aspect Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-aspect-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-aspect-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="1"> ACCOUNTNAME/CREDITORNAME/DFNAME</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="2"> DF/CREDITORADDRESSISSUES</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="3"> Accountberissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="4"> OriginalCreditor(OC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="5"> ReportedName(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="6"> Nameidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="7"> ReportedAddress(es)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="8"> Addressidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="9"> AddressResidenceType(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="10"> AddressGeographicCode(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="11"> ReportedDateOfBirth(orYearofBirth)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="12"> Reportedtelephoneber(s)issue(s)akacontact(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="13"> Spouse(s)/co-applicant(s)/roommate(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="14"> Employer(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="15"> Employment/JobDescription(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="16"> ReinvestigationInformation</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="17"> AccountHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="18"> OnRecorduntil</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="19"> Monthlypayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="20"> AccountResponsibility</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="21"> paymentAmount(orRecentpaymentAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="22"> PaymentHistoryGuide</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="23"> BalanceHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="24"> DateofREQUEST(Inquiry)(akaDateOfPermissiblePurposeakaDOPP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="25"> INQUIRY TYPE ake Permissible Purpose Type</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="26"> DATEOPEN(OpenDate)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="27"> CURRENTBALANCEAMOUNT(BALANCE)(RecentBalanceReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="28"> PastDueBALANCEreported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="29"> CreditLIMIT(HighLimitReported)(orOriginalAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="30"> Highbalancereported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="31"> LATEPAYMENTDATE(LPD)akaDateofLatePayment(DOLP)reported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="32"> DOFD DATEOFFIRSTDELINQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="33"> DFMD-DATEofFIRSTMAJORDELINQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="34"> STATUSDATEissue(s)akaDateofStatusissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="35"> Status</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="36"> DateVERIFIEDissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="37"> BALANCEDATEissue(s)(akaBalanceUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="38"> PAYMENTDATEakaDATEOFPAYMENT(DOP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="39"> STATUSDATE/DATEOFSTATUSnotmatchingReportingDate/Balancedate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="40"> DATEVERIFIEDnotmatchingReportingDate/StatusDate/BalanceDate/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="41"> BALANCEDATEnotmatchingReportingDate/StatusDate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="42"> DateREPORTED(akaREPORTDATE)(akaFirstReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="43"> DATEFILEDakaFILINGDATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="44"> Plaintiffofpublicrecord</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="45"> DATEDISMISSED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="46"> DATEDISCHARGED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="47"> LIABILITYLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="48"> ASSETAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="49"> ACCOUNTCOMMENTS/NOTATIONS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="50"> MONTHLYPAYMENTAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="51"> DOLP-DATEofLASTPAYMENT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="52"> DOLA-DATEOFLASTACTIVITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="53"> CHARGE-OFFAMOUNT(akaCOA)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="54"> CHARGE-OFFDATE(akaCOD)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="55"> ACCOUNTTYPE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="56"> ACCOUNTOWNERSHIP/RESPONSIBILITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="57"> ACCOUNTHIGHLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="58"> ACCOUNTTERMS(akaberOfMonths)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="59"> ACCOUNTHISTORICALPAYMENTGRIDorMONTHTOMONTHDISPLAY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="60"> ACCOUNT30/60/90STATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="61"> DATEREPORTED(REPORTDATE)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="62"> ACCOUNTSTATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="63"> STATUSDATE(akaStatusUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="64"> HIGHBALANCEAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="65"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="66"> BalloonPayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="67"> CreditorContactPhone</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="68"> CreditorContactAddress</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="69"> CompanySold-to</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="70"> CreditorClassificationCode(CCC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="71"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="72"> DEROGATORYCONDITIONnotspecificbutalleged</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="73"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_aspect_other_' + divlen + '" id="acc-aspect" class="form-control remove-textarea" rows="5">' +
|
|
'</textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Derogatory Type</label>' +
|
|
'<dl class="dropdown-x" id="acc-derogatory-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-derogatory-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Bankruptcy Public Record Option" value="1"> Bankruptcy Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Judgment Public Record Option" value="4"> Judgment Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Tax Lien Public Record Option" value="7"> Tax Lien Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Foreclosure Option" value="10"> Foreclosure Option </li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Short Sale Option" value="13"> Short Sale Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Repossession Option" value="16"> Repossession Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Child Support Arrears Option" value="19"> Child Support Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Alimony Arrears Option" value="21"> Alimony Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Charge-Off Option" value="23"> Charge-Off Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="REGULAR Non-Medical Debt Collection Option" value="25"> REGULAR Non-Medical Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="MEDICAL Debt Collection Option" value="28"> MEDICAL Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY/DELINQUENT STUDENT LOAN Option" value="32"> DEROGATORY/DELINQUENT STUDENT LOAN Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Late Payment Option" value="34"> Late Payment Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Inquiry Option" value="36"> Inquiry Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY CLAIM Option" value="38"> DEROGATORY CLAIM Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEFICIENT REPORTED DATA Option" value="41"> DEFICIENT REPORTED DATA Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="OTHER" value="-1"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_derogatory_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Other</label>' +
|
|
'<span class="help-block text-center"> ' +
|
|
'<textarea onkeyup="accOtherkepress(this)" name="acc_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>'
|
|
|
|
+'</div>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label id="label1"><a onclick="addImageBtn()" id="add-image-btn" style="padding: 1px 6px;margin-right:10px;" class="btn btn-success"><i class="fa fa-plus"></i></a></label>' +
|
|
'<label id="label1"><a onclick="removeImageArea(this)" data-id="' + ARRAY_INDEX + '" id="remove" style="padding: 1px 6px;" class="btn btn-danger"><i class="fa fa-minus"></i></a></label>' +
|
|
'</div>'
|
|
|
|
+
|
|
'</div>'; +
|
|
'</div>';
|
|
|
|
|
|
$('#image-area').append(html);
|
|
$('.select2').select2();
|
|
$('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
|
|
$('.bank-input_' + divlen).each(function() {
|
|
var currentItem = $(this).val();
|
|
if ($.inArray(currentItem, SELECTED_BANK_ARRAY) !== -1) {
|
|
if (!$(this).prop('checked')) {
|
|
$(this).click();
|
|
$('textarea[name=image_text_area_' + divlen + ']').val('')
|
|
}
|
|
|
|
}
|
|
});
|
|
/*$('.dest-checkbox').children('ul').children('li').each(function(){
|
|
var value = $(this).children('input.dfclass').prop('checked');
|
|
if(value){
|
|
$('.dfclass:not(:checked)').parent().hide();
|
|
}
|
|
});*/
|
|
|
|
}
|
|
|
|
|
|
function dynamicBankList(len) {
|
|
var bankCategoryHTML = "<label class='pull-left control-label'>Negative Item category</label>" +
|
|
'<select onchange="getBankCategoryInfo(this)" class="form-control" name="item_bankCategory_' + len + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>';
|
|
var label = '<label class="pull-left control-label">Negative Item Names</label>';
|
|
|
|
var html = "";
|
|
if (BANK_DROP_DOWN != "") {
|
|
html = label + generateMultipleBankList(BANK_LIST, len);
|
|
}
|
|
|
|
return (bankCategoryHTML + html + dynamiclatepaysBankList(len));
|
|
}
|
|
|
|
|
|
function dynamiclatepaysBankList(len) {
|
|
// alert(1213);
|
|
var bankCategoryHTML = "<label class='pull-left control-label'>Late Pays / 2 Or Less Item Category</label>" +
|
|
'<select onchange="getLatepays2less(this)" class="form-control" name="late_pays2days_' + len + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>';
|
|
var label = '<label class="pull-left control-label">Late Pays / 2 Or Less Item Names</label>';
|
|
|
|
var html = "";
|
|
if (BANK_LATE_PAYS_DROP_DOWN != "") {
|
|
html = label + generateLatePaysMultipleBankList(BANK_LATE_PAYS_LIST, len);
|
|
}
|
|
|
|
return (bankCategoryHTML + html);
|
|
}
|
|
|
|
function getBankAssoc(client_id) {
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'bankInfo',
|
|
client_id: client_id
|
|
},
|
|
success: function(data) {
|
|
var json = JSON.parse(data);
|
|
console.log('bankassoc', json);
|
|
|
|
BANK_ASSOC = [];
|
|
for (var i in json) {
|
|
BANK_ASSOC[i] = {
|
|
'value1': json[i].value1,
|
|
'value2': json[i].value2,
|
|
'value3': json[i].value3,
|
|
'value4': json[i].value4,
|
|
'value5': json[i].value5,
|
|
'value6': json[i].value6,
|
|
'isJson': json[i].isJson
|
|
};
|
|
}
|
|
|
|
|
|
//var value = bank_name+"\n"+json.value1+"\n"+json.value2+"\n"+json.value3;
|
|
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
// getFormData(action,info);
|
|
}
|
|
});
|
|
}
|
|
|
|
function removeExtraNumberFromBank(bank_name) {
|
|
var bankNameArray = bank_name.split('-');
|
|
$.each(bankNameArray, function(i, value) {
|
|
var index = value;
|
|
if (index != null && index >= 1 && index <= 100) {
|
|
bank_name = bank_name.replace("-" + index, "");
|
|
return false;
|
|
}
|
|
})
|
|
return bank_name;
|
|
}
|
|
|
|
function setBankInfoInTextAreaForSTT(selected_bank_id_list) {
|
|
var finalString = "";
|
|
var mainString = "";
|
|
$.each(BANK_LIST, function(index, val) {
|
|
if ($.inArray(index, selected_bank_id_list) !== -1) {
|
|
var info = BANK_ASSOC[index];
|
|
|
|
var bank_name = val;
|
|
bank_name = removeExtraNumberFromBank(bank_name)
|
|
var accTypeString = "Account type: ";
|
|
var accAllarray = [];
|
|
if (finalString) {
|
|
finalString += '\n' + bank_name;
|
|
} else {
|
|
finalString = bank_name;
|
|
}
|
|
if (info.isJson && info.isJson == 1) {
|
|
// if (info.value1.account) {
|
|
// if (finalString) {
|
|
// finalString += "\n" + info.value1.account;
|
|
// } else {
|
|
// finalString = info.value1.account;
|
|
// }
|
|
// }
|
|
// if (info.value2) {
|
|
// if (finalString) {
|
|
// finalString += "\n" + info.value2;
|
|
// } else {
|
|
// finalString = info.value2;
|
|
// }
|
|
// }
|
|
// if (info.value3) {
|
|
// if (finalString) {
|
|
// finalString += "\n" + info.value3;
|
|
// } else {
|
|
// finalString = info.value3;
|
|
// }
|
|
// }
|
|
// if (info.value1.accType) {
|
|
// if (finalString) {
|
|
// finalString += "\n" + accTypeString + info.value1.accType;
|
|
// } else {
|
|
// finalString = accTypeString + info.value1.accType;
|
|
// }
|
|
// }
|
|
//
|
|
//
|
|
//
|
|
// if (info.value5.account) {
|
|
// if (finalString) {
|
|
// finalString += "\n" + info.value5.account;
|
|
// } else {
|
|
// finalString = info.value5.account;
|
|
// }
|
|
// }
|
|
//
|
|
//
|
|
// if (info.value5.accType) {
|
|
// if (finalString) {
|
|
// finalString += "\n" + accTypeString + info.value5.accType;
|
|
// } else {
|
|
// finalString = accTypeString + info.value5.accType;
|
|
// }
|
|
// }
|
|
//
|
|
//
|
|
//
|
|
// if (info.value6.account) {
|
|
// if (finalString) {
|
|
// finalString += "\n" + info.value6.account;
|
|
// } else {
|
|
// finalString = info.value6.account;
|
|
// }
|
|
// }
|
|
//
|
|
// if (info.value6.accType) {
|
|
// if (finalString) {
|
|
// finalString += "\n" + accTypeString + info.value6.accType;
|
|
// } else {
|
|
// finalString = accTypeString + info.value6.accType;
|
|
// }
|
|
// }
|
|
if (info.value1.account != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value1.account;
|
|
} else {
|
|
finalString = info.value1.account;
|
|
}
|
|
}
|
|
if (info.value2 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value2;
|
|
} else {
|
|
finalString = info.value2;
|
|
}
|
|
}
|
|
if (info.value3 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value3;
|
|
} else {
|
|
finalString = info.value3;
|
|
}
|
|
}
|
|
if (info.value1.accType != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value1.accType;
|
|
} else {
|
|
finalString = accTypeString + info.value1.accType;
|
|
}
|
|
}
|
|
|
|
if (info.value1.account != "") {
|
|
accAllarray[info.value1.account] = finalString;
|
|
}
|
|
|
|
finalString = bank_name;
|
|
|
|
if (info.value5.account != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value5.account;
|
|
} else {
|
|
finalString = info.value5.account;
|
|
}
|
|
}
|
|
|
|
if (info.value2 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value2;
|
|
} else {
|
|
finalString = info.value2;
|
|
}
|
|
}
|
|
|
|
if (info.value3 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value3;
|
|
} else {
|
|
finalString = info.value3;
|
|
}
|
|
}
|
|
|
|
if (info.value5.accType != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value5.accType;
|
|
} else {
|
|
finalString = accTypeString + info.value5.accType;
|
|
}
|
|
}
|
|
|
|
if (info.value5.account != "") {
|
|
accAllarray[info.value5.account] = finalString;
|
|
}
|
|
finalString = bank_name;
|
|
|
|
if (info.value6.account != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value6.account;
|
|
} else {
|
|
finalString = info.value6.account;
|
|
}
|
|
}
|
|
|
|
if (info.value2 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value2;
|
|
} else {
|
|
finalString = info.value2;
|
|
}
|
|
}
|
|
|
|
if (info.value3 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value3;
|
|
} else {
|
|
finalString = info.value3;
|
|
}
|
|
}
|
|
|
|
if (info.value6.accType != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value6.accType;
|
|
} else {
|
|
finalString = accTypeString + info.value6.accType;
|
|
}
|
|
}
|
|
|
|
if (info.value6.account != "") {
|
|
accAllarray[info.value6.account] = finalString;
|
|
}
|
|
|
|
var apparentString = "";
|
|
for (var i in accAllarray) {
|
|
if (apparentString != "") {
|
|
apparentString += "\n\n" + accAllarray[i];
|
|
} else {
|
|
apparentString = accAllarray[i];
|
|
}
|
|
}
|
|
finalString = apparentString;
|
|
|
|
|
|
} else {
|
|
if (info.value1) {
|
|
if (finalString) {
|
|
finalString += "\n" + info.value1;
|
|
} else {
|
|
finalString = info.value1;
|
|
}
|
|
}
|
|
|
|
if (info.value5) {
|
|
if (finalString) {
|
|
finalString += "\n" + info.value5;
|
|
} else {
|
|
finalString = info.value5;
|
|
}
|
|
}
|
|
|
|
if (info.value6) {
|
|
if (finalString) {
|
|
finalString += "\n" + info.value6;
|
|
} else {
|
|
finalString = info.value6;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (finalString) {
|
|
mainString += finalString
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
return mainString;
|
|
}
|
|
|
|
function getBankInfo(elem) {
|
|
var className = $(elem).attr('name');
|
|
var isLatePays = false
|
|
if (className.indexOf("late_pays_item_bank_") >= 0) {
|
|
isLatePays = true;
|
|
className = className.replace('late_pays_item_bank_', '');
|
|
var divlen = className.replace('[]', '');
|
|
} else {
|
|
className = className.replace('item_bank_', '');
|
|
var divlen = className.replace('[]', '');
|
|
}
|
|
//alert(divlen);
|
|
var dd_id = $(elem).val();
|
|
var category = $('select[name=item_bankCategory_' + divlen + ']').val();
|
|
var bankchecheckboxs = $('.bank-input_' + divlen) //
|
|
if (isLatePays) {
|
|
category = $('select[name=late_pays2days_' + divlen + ']').val();
|
|
bankchecheckboxs = $('.late-pays-bank-input_' + divlen)
|
|
}
|
|
//var dd_id
|
|
var currentbaninfoList = "";
|
|
//SELECTED_BANK_ARRAY = [];
|
|
bankchecheckboxs.each(function() {
|
|
var input = $(this);
|
|
if (input.prop('checked') && dd_id == input.val()) {
|
|
|
|
var infostring = "";
|
|
var currentValue = input.val();
|
|
input.addClass('removal-bank');
|
|
var bank_name = input.data('view');
|
|
var bankNameArray = bank_name.split('-');
|
|
$.each(bankNameArray, function(i, value) {
|
|
var index = value;
|
|
|
|
if (index != null && index >= 1 && index <= 100) {
|
|
bank_name = bank_name.replace("-" + index, "");
|
|
return false;
|
|
}
|
|
})
|
|
|
|
var info = BANK_ASSOC[currentValue];
|
|
|
|
var finalString = "";
|
|
if (bank_name != "") {
|
|
finalString = bank_name;
|
|
}
|
|
//console.log('my test assoc',category,isLatePays,divlen,className)
|
|
if (bank_name == "Unknown Company Name") {
|
|
bank_name = "";
|
|
}
|
|
var accTypeString = "Account type: ";
|
|
var accAllarray = [];
|
|
if (category == 4 && typeof info !== 'undefined') {
|
|
if (info.isJson && info.isJson == 1) {
|
|
if (info.value1.account != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value1.account;
|
|
} else {
|
|
finalString = info.value1.account;
|
|
}
|
|
}
|
|
if (info.value2 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value2;
|
|
} else {
|
|
finalString = info.value2;
|
|
}
|
|
}
|
|
if (info.value3 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value3;
|
|
} else {
|
|
finalString = info.value3;
|
|
}
|
|
}
|
|
if (info.value1.accType != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value1.accType;
|
|
} else {
|
|
finalString = accTypeString + info.value1.accType;
|
|
}
|
|
}
|
|
|
|
if (info.value1.account != "") {
|
|
accAllarray[info.value1.account] = finalString;
|
|
}
|
|
|
|
finalString = bank_name;
|
|
|
|
if (info.value5.account != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value5.account;
|
|
} else {
|
|
finalString = info.value5.account;
|
|
}
|
|
}
|
|
|
|
if (info.value2 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value2;
|
|
} else {
|
|
finalString = info.value2;
|
|
}
|
|
}
|
|
|
|
if (info.value3 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value3;
|
|
} else {
|
|
finalString = info.value3;
|
|
}
|
|
}
|
|
|
|
if (info.value5.accType != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value5.accType;
|
|
} else {
|
|
finalString = accTypeString + info.value5.accType;
|
|
}
|
|
}
|
|
|
|
if (info.value5.account != "") {
|
|
accAllarray[info.value5.account] = finalString;
|
|
}
|
|
finalString = bank_name;
|
|
|
|
if (info.value6.account != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value6.account;
|
|
} else {
|
|
finalString = info.value6.account;
|
|
}
|
|
}
|
|
|
|
if (info.value2 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value2;
|
|
} else {
|
|
finalString = info.value2;
|
|
}
|
|
}
|
|
|
|
if (info.value3 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value3;
|
|
} else {
|
|
finalString = info.value3;
|
|
}
|
|
}
|
|
|
|
if (info.value6.accType != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value6.accType;
|
|
} else {
|
|
finalString = accTypeString + info.value6.accType;
|
|
}
|
|
}
|
|
|
|
if (info.value6.account != "") {
|
|
accAllarray[info.value6.account] = finalString;
|
|
}
|
|
|
|
var apparentString = "";
|
|
for (var i in accAllarray) {
|
|
if (apparentString != "") {
|
|
apparentString += "\n\n" + accAllarray[i];
|
|
} else {
|
|
apparentString = accAllarray[i];
|
|
}
|
|
}
|
|
finalString = apparentString;
|
|
} else {
|
|
if (info.value1 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value1;
|
|
} else {
|
|
finalString = info.value1;
|
|
}
|
|
}
|
|
|
|
if (info.value5 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value5;
|
|
} else {
|
|
finalString = info.value5;
|
|
}
|
|
}
|
|
|
|
if (info.value6 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value6;
|
|
} else {
|
|
finalString = info.value6;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} else if (category == 3 && typeof info !== 'undefined') {
|
|
if (info.isJson == 1) {
|
|
if (info.value1.account != null) {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value1.account;
|
|
} else {
|
|
finalString = info.value1.account;
|
|
}
|
|
}
|
|
} else {
|
|
if (info.value1 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value1;
|
|
} else {
|
|
finalString = info.value1;
|
|
}
|
|
}
|
|
}
|
|
} else if (category == 2 && typeof info !== 'undefined') {
|
|
if (info.isJson == 1) {
|
|
if (info.value6.account != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value6.account;
|
|
} else {
|
|
finalString = info.value6.account;
|
|
}
|
|
}
|
|
} else {
|
|
if (info.value6 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value6;
|
|
} else {
|
|
finalString = info.value6;
|
|
}
|
|
}
|
|
}
|
|
} else if (category == 1 && typeof info !== 'undefined') {
|
|
if (info.isJson == 1) {
|
|
if (info.value5.account != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value5.account;
|
|
} else {
|
|
finalString = info.value5.account;
|
|
}
|
|
}
|
|
} else {
|
|
if (info.value5 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value5;
|
|
} else {
|
|
finalString = info.value5;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
if (category != 4 && typeof info !== 'undefined') {
|
|
if (info.value2 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value2;
|
|
} else {
|
|
finalString = info.value2;
|
|
}
|
|
}
|
|
|
|
if (info.value3 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + info.value3;
|
|
} else {
|
|
finalString = info.value3;
|
|
}
|
|
}
|
|
}
|
|
// if(info.value4 != ""){
|
|
// if(finalString != ""){
|
|
// finalString += "\n"+info.value4;
|
|
// }else {
|
|
// finalString = info.value4;
|
|
// }
|
|
// }
|
|
// Account type comment
|
|
var accTypeString = "Account type: ";
|
|
if (category == 4) {
|
|
// if(info.isJson == 1){
|
|
// if(info.value1.accType != ""){
|
|
// if(finalString != ""){
|
|
// finalString += "\n"+accTypeString+info.value1.accType;
|
|
// }else {
|
|
// finalString = accTypeString+info.value1.accType;
|
|
// }
|
|
// }
|
|
//
|
|
// if(info.value5.accType != ""){
|
|
// if(finalString != ""){
|
|
// finalString += "\n"+accTypeString+info.value5.accType;
|
|
// }else {
|
|
// finalString = accTypeString+info.value5.accType;
|
|
// }
|
|
// }
|
|
//
|
|
// if(info.value6.accType != ""){
|
|
// if(finalString != ""){
|
|
// finalString += "\n"+accTypeString+info.value6.accType;
|
|
// }else {
|
|
// finalString = accTypeString+info.value6.accType;
|
|
// }
|
|
// }
|
|
// } else{
|
|
// if(info.value4 != ""){
|
|
// if(finalString != ""){
|
|
// finalString += "\n"+accTypeString+info.value4;
|
|
// }else {
|
|
// finalString = accTypeString+info.value4;
|
|
// }
|
|
// }
|
|
// }
|
|
} else if (category == 3 && typeof info !== 'undefined') {
|
|
if (info.isJson == 1) {
|
|
if (info.value1.accType != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value1.accType;
|
|
} else {
|
|
finalString = accTypeString + info.value1.accType;
|
|
}
|
|
}
|
|
} else {
|
|
if (info.value1 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value4;
|
|
} else {
|
|
finalString = info.value4;
|
|
}
|
|
}
|
|
}
|
|
} else if (category == 2 && typeof info !== 'undefined') {
|
|
if (info.isJson == 1) {
|
|
if (info.value6.accType != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value6.accType;
|
|
} else {
|
|
finalString = accTypeString + info.value6.accType;
|
|
}
|
|
}
|
|
} else {
|
|
if (info.value4 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value4;
|
|
} else {
|
|
finalString = accTypeString + info.value4;
|
|
}
|
|
}
|
|
}
|
|
} else if (category == 1 && typeof info !== 'undefined') {
|
|
if (info.isJson == 1) {
|
|
if (info.value5.accType != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value5.accType;
|
|
} else {
|
|
finalString = accTypeString + info.value5.accType;
|
|
}
|
|
}
|
|
} else {
|
|
if (info.value4 != "") {
|
|
if (finalString != "") {
|
|
finalString += "\n" + accTypeString + info.value4;
|
|
} else {
|
|
finalString = accTypeString + info.value4;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
currentbaninfoList = finalString;
|
|
|
|
|
|
} else if (!input.prop('checked') && dd_id == input.val()) {
|
|
if (!isLatePays) {
|
|
$('.allbank').each(function() {
|
|
var banCurrentValue = $(this).val();
|
|
if (banCurrentValue == dd_id) {
|
|
removeBank($(this));
|
|
}
|
|
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
if (!isLatePays) {
|
|
var bankArray = [];
|
|
$('.allbank').each(function() {
|
|
var item = $(this).val();
|
|
if ($(this).prop('checked')) {
|
|
bankArray.push($(this).val());
|
|
bankArray = bankArray.filter(onlyUnique);
|
|
}
|
|
})
|
|
SELECTED_BANK_ARRAY = bankArray;
|
|
|
|
//console.log('SELECTED_BANK_ARRAY');
|
|
//console.log(SELECTED_BANK_ARRAY);
|
|
$('.allbank').each(function() {
|
|
var thisitem = $(this).val();
|
|
if (!$(this).prop('checked')) {
|
|
if ($.inArray(thisitem, SELECTED_BANK_ARRAY) !== -1) {
|
|
//$(this).click();
|
|
// addBankSelected($(this))
|
|
}
|
|
}
|
|
});
|
|
}
|
|
var previousVal = $('textarea[name=image_text_area_' + divlen + ']').val();
|
|
$('textarea[name=image_text_area_' + divlen + ']').val('');
|
|
var newLine = "";
|
|
if (currentbaninfoList != "" && previousVal != "") {
|
|
newLine = "\n\n";
|
|
}
|
|
|
|
if (previousVal + newLine + currentbaninfoList)
|
|
$('textarea[name=image_text_area_' + divlen + ']').val(previousVal + newLine + currentbaninfoList);
|
|
currentbaninfoList = "";
|
|
newLine = "";
|
|
}
|
|
|
|
function onlyUnique(value, index, self) {
|
|
return self.indexOf(value) === index;
|
|
}
|
|
|
|
function getMaxValue($dataArray) {
|
|
$returnValue = "";
|
|
if ($dataArray != null) {
|
|
$max = $dataArray[0].length;
|
|
if ($max > 0) {
|
|
$returnValue = $dataArray[0];
|
|
}
|
|
$.each($dataArray, function(key, value) {
|
|
if (key > 0) {
|
|
$currentLen = value.length;
|
|
if ($currentLen > $max) {
|
|
$max = $currentLen;
|
|
$returnValue = value;
|
|
}
|
|
}
|
|
})
|
|
}
|
|
return $returnValue;
|
|
}
|
|
|
|
function getSubCategoryInfo(elem) {
|
|
var className = $(elem).attr('name');
|
|
className = className.replace('negative_item_', '');
|
|
var divlen = className.replace('[]', '');
|
|
var category_id = $('select[name=item_category_' + divlen + ']').val();
|
|
var currentValue = $(elem).val();
|
|
|
|
//console.log('DB_KEY_ASSOC', DB_KEY_ASSOC);
|
|
var currentbaninfoList = "";
|
|
$('.negative-input_' + divlen).each(function() {
|
|
var input = $(this);
|
|
if (input.prop('checked')) {
|
|
var infostring = "";
|
|
var currentValue = input.val();
|
|
var bank_name = input.data('view')
|
|
//alert(bank_name);
|
|
var info = DB_KEY_ASSOC[currentValue];
|
|
//console.log('my info');
|
|
//console.log(info);
|
|
if (info != null) {
|
|
if (category_id == 1) {
|
|
infostring = info.value1
|
|
} else if (category_id == 2) {
|
|
infostring = info.value2
|
|
} else if (category_id == 3) {
|
|
infostring = info.value3
|
|
} else if (category_id == 4) {
|
|
if (info.status1 == 1) {
|
|
infostring = info.value1
|
|
}
|
|
|
|
if (info.status2 == 1) {
|
|
if (infostring == "") {
|
|
infostring = info.value2;
|
|
} else {
|
|
infostring = infostring + "\n" + info.value2;
|
|
}
|
|
}
|
|
|
|
if (info.status3 == 1) {
|
|
if (infostring == "") {
|
|
infostring = info.value3;
|
|
} else {
|
|
infostring = infostring + "\n" + info.value3;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (currentbaninfoList != "") {
|
|
currentbaninfoList += "\n";
|
|
}
|
|
currentbaninfoList = bank_name + ":\n" + infostring;
|
|
}
|
|
|
|
|
|
});
|
|
|
|
var previousValue = $('textarea[name=image_text_area_' + divlen + ']').val()
|
|
currentbaninfoList = currentbaninfoList + "\n\n";
|
|
if (previousValue + currentbaninfoList)
|
|
$('textarea[name=image_text_area_' + divlen + ']').val(previousValue + currentbaninfoList);
|
|
currentbaninfoList = "";
|
|
|
|
}
|
|
|
|
function getInquiriesSubCategoryInfo(elem) {
|
|
|
|
var className = $(elem).attr('name');
|
|
className = className.replace('negative_inq_item_', '');; //negative_item_2
|
|
var divlen = className.replace('[]', '');
|
|
var category_id = $('select[name=item_inquirey_' + divlen + ']').val();
|
|
var currentValue = $(elem).val();
|
|
//alert(category_id);
|
|
//console.log(DB_KEY_ASSOC);
|
|
var currentbaninfoList = "";
|
|
$('.negative-inq-input_' + divlen).each(function() {
|
|
var input = $(this);
|
|
if (input.prop('checked')) {
|
|
var infostring = "";
|
|
var currentValue = input.val();
|
|
var bank_name = input.data('view')
|
|
if (currentbaninfoList != "") {
|
|
currentbaninfoList += "\n";
|
|
}
|
|
currentbaninfoList = bank_name;
|
|
}
|
|
|
|
|
|
});
|
|
|
|
var previousValue = $('textarea[name=image_text_area_' + divlen + ']').val();
|
|
currentbaninfoList = currentbaninfoList + "\n\n";
|
|
$('textarea[name=image_text_area_' + divlen + ']').val('');
|
|
//alert($('textarea[name=image_text_area_'+divlen+']').val());
|
|
if (previousValue + currentbaninfoList) {
|
|
$('textarea[name=image_text_area_' + divlen + ']').val(previousValue + currentbaninfoList);
|
|
}
|
|
currentbaninfoList = "";
|
|
|
|
}
|
|
|
|
function getpublicSubCategoryInfo(elem) {
|
|
|
|
var className = $(elem).attr('name');
|
|
className = className.replace('public_negative_item_', '');
|
|
var divlen = className.replace('[]', '');
|
|
var category_id = $('select[name=item_public_category_' + divlen + ']').val();
|
|
var currentValue = $(elem).val();
|
|
var currentbaninfoList = "";
|
|
var input = $(elem);
|
|
if (input.prop('checked')) {
|
|
|
|
var infostring = "";
|
|
var currentValue = input.val();
|
|
var bank_name = input.data('view')
|
|
//=====================
|
|
var bankNameArray = bank_name.split('-');
|
|
$.each(bankNameArray, function(i, value) {
|
|
var index = value;
|
|
if (index != null && index >= 1 && index <= 100) {
|
|
bank_name = bank_name.replace("-" + index, "");
|
|
return false;
|
|
}
|
|
})
|
|
//====================
|
|
//alert(bank_name);
|
|
var info = DB_PUBLIC_KEY_ASSOC[currentValue];
|
|
//alert(info);
|
|
//console.log(info);
|
|
if (category_id == 1) {
|
|
infostring = info.value1
|
|
} else if (category_id == 2) {
|
|
infostring = info.value2
|
|
} else if (category_id == 3) {
|
|
infostring = info.value3
|
|
} else if (category_id == 4) {
|
|
infostring = "";
|
|
if (info.status1 == 1) {
|
|
infostring = info.value1
|
|
}
|
|
|
|
if (info.status2 == 1) {
|
|
if (infostring == "") {
|
|
infostring = info.value2;
|
|
} else {
|
|
infostring = infostring + "\n" + info.value2;
|
|
}
|
|
}
|
|
|
|
if (info.status3 == 1) {
|
|
if (infostring == "") {
|
|
infostring = info.value3;
|
|
} else {
|
|
infostring = infostring + "\n" + info.value3;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (currentbaninfoList != "") {
|
|
currentbaninfoList += "\n";
|
|
}
|
|
currentbaninfoList = bank_name + ":" + infostring;
|
|
}
|
|
|
|
var previousValue = $('textarea[name=image_text_area_' + divlen + ']').val();
|
|
currentbaninfoList = currentbaninfoList + "\n";
|
|
$('textarea[name=image_text_area_' + divlen + ']').val('');
|
|
var current_category = $('select[name=item_public_category_' + divlen + ']').val();
|
|
var space = "";
|
|
if (CREATE_SPACE != "") {
|
|
if (CREATE_SPACE != current_category) {
|
|
//alert(CREATE_SPACE+"====="+current_category);
|
|
space = "\n";
|
|
}
|
|
}
|
|
if (previousValue + space + currentbaninfoList)
|
|
$('textarea[name=image_text_area_' + divlen + ']').val(previousValue + space + currentbaninfoList);
|
|
currentbaninfoList = "";
|
|
CREATE_SPACE = current_category;
|
|
}
|
|
|
|
|
|
function setPublicRecordIntoTextAreaForSTT() {
|
|
var infostring = "";
|
|
var public_record_title_list = [];
|
|
$.each(DB_PUBLIC_KEY_ID_ASSOC, function(i1, value1) {
|
|
var bank_name = value1;
|
|
var bankNameArray = bank_name.split('-');
|
|
$.each(bankNameArray, function(i, value2) {
|
|
var index = value2;
|
|
if (index != null && index >= 1 && index <= 100) {
|
|
bank_name = bank_name.replace("-" + index, "");
|
|
var temp_pb = {
|
|
value: i1,
|
|
title: bank_name
|
|
};
|
|
public_record_title_list[i1] = bank_name;
|
|
return false;
|
|
}
|
|
})
|
|
})
|
|
|
|
$.each(DB_PUBLIC_KEY_ASSOC, function(index, info) {
|
|
if (public_record_title_list[index]) {
|
|
if (infostring) {
|
|
infostring += public_record_title_list[index] + ": ";
|
|
} else {
|
|
infostring += public_record_title_list[index] + ": ";
|
|
}
|
|
}
|
|
if (info.status1 == 1) {
|
|
if (infostring) {
|
|
infostring += info.value1
|
|
} else {
|
|
infostring += info.value1
|
|
}
|
|
}
|
|
|
|
if (info.status2 == 1) {
|
|
if (infostring) {
|
|
infostring += "\n" + info.value2;
|
|
} else {
|
|
infostring = info.value2;
|
|
}
|
|
}
|
|
|
|
if (info.status3 == 1) {
|
|
if (infostring) {
|
|
infostring += "\n" + info.value3;
|
|
} else {
|
|
infostring = info.value3;
|
|
}
|
|
}
|
|
});
|
|
|
|
return infostring;
|
|
|
|
}
|
|
|
|
function getAccContentNew(index, click, isNotSTT) {
|
|
|
|
//console.log('Inside GetACCContent: \n Index: '+index+' Click: '+click);
|
|
var len = $('.input-file-field').length;
|
|
//late pays
|
|
var divlen = len;
|
|
var isAccImageExist = '<input type="hidden" name="isAccImageExist_' + divlen + '" value="0">';
|
|
var bankList = dynamicBankList(divlen);
|
|
|
|
var latepaysbankList = ""; //dynamiclatepaysBankList(divlen);
|
|
var inquiry_dropdown = getInquiryItemCategoryDropDown(divlen);
|
|
var df_div = dfDropDownTextArea(divlen);
|
|
$publicrecordHtml = getPublicRecordDropDown(divlen);
|
|
var is_stt = '<input type="hidden" value="1" class="" name="isSTT_' + divlen + '" />';
|
|
var inquiry_with_stt = '<input type="hidden" value="1" class="sttInq" name="sttInquery_' + divlen + '"/>';
|
|
inquiry_with_stt += is_stt;
|
|
if ($('select[name=select]').val() == 0) {
|
|
$publicrecordHtml = "";
|
|
}
|
|
var imageTagArea = df_div + '<div class="col-sm-5 col-sm-offset-1">' +
|
|
'<div class="view-img">' +
|
|
'<img id="acc_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="enhance_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="inquiry_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'</div>' +
|
|
'</div>';
|
|
|
|
var checkboxDiv = '<div class="form-group remove-all">' +
|
|
'<div class="dest-checkbox" id="dest-checkbox_' + divlen + '">' +
|
|
'<ul style="list-style:none;" id="dest_ul_check_' + divlen + '">' +
|
|
checkboxString +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</div>';
|
|
var itemcategoryDiv = '<div id="item-category_' + divlen + '"></div>';
|
|
var publicRecordcategoryDiv = '<div id="item-public-category_' + divlen + '" class="publicRecordcategoryDiv"></div>';
|
|
var item_attack_discont = itemcategoryDiv + '<label class="pull-left control-label">Item' + "'" + 's attack number</label>' +
|
|
'<select onchange="getItemAttackValue(this)" class="form-control" name="item_attack_num_' + divlen + '">' +
|
|
'<option value="0">Choose Item</option>\n' +
|
|
'<option value="1">This is FIRST TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="2">This is SECOND TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="3">This is THIRD TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="4">I DO NOT KNOW if this is FIRST, SECOND, ETC. time using a M2CA method!</option>' +
|
|
'</select>' +
|
|
inquiry_dropdown +
|
|
bankList + latepaysbankList +
|
|
publicRecordcategoryDiv +
|
|
'<label class="pull-left control-label">Ownership/Responsibility of item issues</label>\n' +
|
|
'<select class="form-control" name="item_ownership_' + divlen + '">\n' +
|
|
'<option value="">Choose Item</option>\n' +
|
|
'<option value="1">Item is mine YET is NOT proven COMPLIANT in its reporting.</option>' +
|
|
'<option value="2">This item is NOT MINE and is result of FRAUD and or IDENTITY THEFT.</option>' +
|
|
'<option value="3">ITEM IS MINE, but I AM NOT LIABLE due to FRAUDULENT activities.</option>' +
|
|
'<option value="4">Item has too many inconsistencies and or deficiencies to be VALID and COMPLIANT!</option>' +
|
|
'<option value="5">I do not know</option>' +
|
|
' </select>' +
|
|
'<label class="pull-left control-label">Item Discontinuance</label>' +
|
|
'<select onchange="getItemDiscont(this)" class="form-control" name="item_discount_' + divlen + '">' +
|
|
'<option value="">Choose Item</option>' +
|
|
'<option value="1">This ITEM is a PERSONAL ITEM</option>' +
|
|
'<option value="2">This ITEM is an INQUIRY ALLEGATION</option>' +
|
|
'<option value="3">This ITEM is an ACCOUNT</option>' +
|
|
'<option value="4">This ITEM is NOT A PERSONAL IDENTIFIER ITEM, NOT AN INQUIRY, NOT AN ACCOUNT</option>' +
|
|
'</select>';
|
|
|
|
var velocityQuickStartDropdown = setVelocityQuickStartDropDown(divlen);
|
|
var allCheck = '<div class="row remove-all">' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="form-group remove-all view-allcheck">' +
|
|
attAllcheck +
|
|
'</div>' +
|
|
'</div> ' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="row">' +
|
|
velocityQuickStartDropdown +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>';
|
|
var slot_title = "<div class='row'>" +
|
|
" <div class='col-md-12'>" +
|
|
"<label id='slot-title_" + divlen + "' style='width:100%;'></label>" +
|
|
"</div>" +
|
|
"</div>";
|
|
|
|
var html = '<div id="slot_' + index + '_' + click + '" class="remove-view-slot"><hr>' + slot_title + allCheck + checkboxDiv + '<div class="form-group input-file-field counter remove-all" id="input-file-field">' +
|
|
'<div class="row">' +
|
|
imageTagArea +
|
|
'<div class="col-md-6">' +
|
|
'<label class="control-label"> Click the Drop Down Box To Help Explain The Possible Issues with this Item</label>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<br>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label class="control-label" style="padding:0;">Item Image <br> (PNG/JPEG)<br><div style="margin-top:80px;">Put In The Box:<br>Account Name<br>Data Furnisher Address<br>Account Number</div></label>' +
|
|
'<label class="control-label rebuttal-class rebuttal-class1">REBUTTAL</label>\n' +
|
|
'</div>' +
|
|
'<div class="col-sm-3">' +
|
|
'<input type="hidden" value="0" name="acc_img_clear_' + divlen + '" id="acc_img_clear" />' +
|
|
'<input type="hidden" value="" name="temp_acc_img_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
isAccImageExist +
|
|
'<input type="hidden" value="0" name="check_indicator_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
'<input type="hidden" name="acc_img_url_' + divlen + '" value id="acc_img_url_' + divlen + '"/>' +
|
|
'<input type="file" onchange="uploadphotos(this,1)" data-id="' + divlen + '" name="image_' + divlen + '" id="image_' + divlen + '" class="form-control" />' +
|
|
'<span class="help-block text-center">' +
|
|
'<textarea oninput="updateValueSTTInquiry(this)" onchange="updateValueSTTInquiry(this)" onkeyup="updateValueSTTInquiry(this)" class="form-control" name="image_text_area_' + divlen + '" rows="12" style="height:261px;"></textarea>' +
|
|
'</span>' +
|
|
'<div class="row">\n' +
|
|
'<div class="col-md-12">\n' +
|
|
' <select name="rebuttal_' + divlen + '" id="" class="form-control">\n' +
|
|
' <option value="">Choose Item</option>\n' +
|
|
' <option value="1">Account REBUTTAL</option>\n' +
|
|
' <option value="2">INQUIRY REBUTTAL</option>\n' +
|
|
' </select>\n' +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<div class="col-sm-1">' +
|
|
'<label id="label1"><a style="cursor:hand;cursor:pointer;margin-right: 30px;" onClick="clearFile(this);" data-id="' + divlen + '">Clear</a></label>' +
|
|
'</div>' +
|
|
'<div class="col-sm-4 acc-issues-div">' +
|
|
item_attack_discont +
|
|
'<label class="pull-left control-label">Account Number Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-num-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-num-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="1" data-view="Account number is MISSING or NOT REPORTED" /> Account number is MISSING or NOT REPORTED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="2" data-view="ACCOUNT NUMBER IS INACCURATE" /> ACCOUNT NUMBER IS INACCURATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="3" data-view="Account Number TRUNCATION has EXACTLY FOUR" /> Account Number TRUNCATION has EXACTLY FOUR</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="4" data-view="Account Number TRUNCATION has ONLY THREE OR LESS" /> Account Number TRUNCATION has ONLY THREE OR LESS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="5" data-view="Account Number TRUNCATION has FIVE OR MORE" /> Account Number TRUNCATION has FIVE OR MORE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="-1" data-view="OTHER" /> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_number_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Aspect Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-aspect-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-aspect-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="1"> ACCOUNTNAME/CREDITORNAME/DFNAME</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="2"> DF/CREDITORADDRESSISSUES</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="3"> Accountberissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="4"> OriginalCreditor(OC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="5"> ReportedName(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="6"> Nameidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="7"> ReportedAddress(es)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="8"> Addressidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="9"> AddressResidenceType(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="10"> AddressGeographicCode(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="11"> ReportedDateOfBirth(orYearofBirth)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="12"> Reportedtelephoneber(s)issue(s)akacontact(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="13"> Spouse(s)/co-applicant(s)/roommate(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="14"> Employer(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="15"> Employment/JobDescription(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="16"> ReinvestigationInformation</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="17"> AccountHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="18"> OnRecorduntil</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="19"> Monthlypayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="20"> AccountResponsibility</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="21"> paymentAmount(orRecentpaymentAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="22"> PaymentHistoryGuide</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="23"> BalanceHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="24"> DateofREQUEST(Inquiry)(akaDateOfPermissiblePurposeakaDOPP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="25"> INQUIRY TYPE ake Permissible Purpose Type</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="26"> DATEOPEN(OpenDate)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="27"> CURRENTBALANCEAMOUNT(BALANCE)(RecentBalanceReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="28"> PastDueBALANCEreported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="29"> CreditLIMIT(HighLimitReported)(orOriginalAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="30"> Highbalancereported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="31"> LATEPAYMENTDATE(LPD)akaDateofLatePayment(DOLP)reported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="32"> DOFD DATE OF FIRST DEL INQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="33"> DFMD-DATEofFIRSTMAJORDELINQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="34"> STATUSDATEissue(s)akaDateofStatusissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="35"> Status</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="36"> DateVERIFIEDissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="37"> BALANCEDATEissue(s)(akaBalanceUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="38"> PAYMENTDATEakaDATEOFPAYMENT(DOP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="39"> STATUSDATE/DATEOFSTATUSnotmatchingReportingDate/Balancedate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="40"> DATEVERIFIEDnotmatchingReportingDate/StatusDate/BalanceDate/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="41"> BALANCEDATEnotmatchingReportingDate/StatusDate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="42"> DateREPORTED(akaREPORTDATE)(akaFirstReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="43"> DATEFILEDakaFILINGDATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="44"> Plaintiffofpublicrecord</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="45"> DATEDISMISSED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="46"> DATEDISCHARGED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="47"> LIABILITYLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="48"> ASSETAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="49"> ACCOUNTCOMMENTS/NOTATIONS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="50"> MONTHLYPAYMENTAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="51"> DOLP-DATEofLASTPAYMENT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="52"> DOLA-DATEOFLASTACTIVITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="53"> CHARGE-OFFAMOUNT(akaCOA)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="54"> CHARGE-OFFDATE(akaCOD)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="55"> ACCOUNTTYPE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="56"> ACCOUNTOWNERSHIP/RESPONSIBILITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="57"> ACCOUNTHIGHLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="58"> ACCOUNTTERMS(akaberOfMonths)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="59"> ACCOUNTHISTORICALPAYMENTGRIDorMONTHTOMONTHDISPLAY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="60"> ACCOUNT30/60/90STATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="61"> DATEREPORTED(REPORTDATE)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="62"> ACCOUNTSTATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="63"> STATUSDATE(akaStatusUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="64"> HIGHBALANCEAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="65"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="66"> BalloonPayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="67"> CreditorContactPhone</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="68"> CreditorContactAddress</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="69"> CompanySold-to</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="70"> CreditorClassificationCode(CCC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="71"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="72"> DEROGATORYCONDITIONnotspecificbutalleged</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="73"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_aspect_other_' + divlen + '" id="acc-aspect" class="form-control remove-textarea" rows="5">' +
|
|
'</textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Derogatory Type</label>' +
|
|
'<dl class="dropdown-x" id="acc-derogatory-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-derogatory-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Bankruptcy Public Record Option" value="1"> Bankruptcy Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Judgment Public Record Option" value="4"> Judgment Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Tax Lien Public Record Option" value="7"> Tax Lien Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Foreclosure Option" value="10"> Foreclosure Option </li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Short Sale Option" value="13"> Short Sale Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Repossession Option" value="16"> Repossession Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Child Support Arrears Option" value="19"> Child Support Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Alimony Arrears Option" value="21"> Alimony Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Charge-Off Option" value="23"> Charge-Off Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="REGULAR Non-Medical Debt Collection Option" value="25"> REGULAR Non-Medical Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="MEDICAL Debt Collection Option" value="28"> MEDICAL Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY/DELINQUENT STUDENT LOAN Option" value="32"> DEROGATORY/DELINQUENT STUDENT LOAN Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Late Payment Option" value="34"> Late Payment Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Inquiry Option" value="36"> Inquiry Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY CLAIM Option" value="38"> DEROGATORY CLAIM Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEFICIENT REPORTED DATA Option" value="41"> DEFICIENT REPORTED DATA Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="OTHER" value="-1"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_derogatory_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Other</label>' +
|
|
'<span class="help-block text-center"> ' +
|
|
'<textarea onkeyup="accOtherkepress(this)" name="acc_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>'
|
|
|
|
+'</div>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label id="label1"><a onclick="addImageBtn()" id="add-image-btn" style="padding: 1px 6px;margin-right:10px;" class="btn btn-success"><i class="fa fa-plus"></i></a></label>' +
|
|
'<label id="label1"><a onclick="removeImageArea(this)" data-id="slot_' + index + '_' + click + '" id="remove" style="padding: 1px 6px;" class="btn btn-danger"><i class="fa fa-minus"></i></a></label>' +
|
|
'</div>'
|
|
|
|
+
|
|
inquiry_with_stt +
|
|
'</div>'; +
|
|
'</div>';
|
|
|
|
|
|
|
|
$('#image-area').append(html);
|
|
|
|
$('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
|
|
$('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
$('#item-public-category_' + divlen).html($publicrecordHtml);
|
|
if (isNotSTT) {
|
|
$('.bank-input_' + divlen).each(function() {
|
|
var currentItem = $(this).val();
|
|
if ($.inArray(currentItem, SELECTED_BANK_ARRAY) !== -1) {
|
|
if (!$(this).prop('checked')) {
|
|
$(this).click();
|
|
$('textarea[name=image_text_area_' + divlen + ']').val('')
|
|
}
|
|
|
|
}
|
|
});
|
|
}
|
|
var isUpdated = $('input[name=isClientSelect]').val();
|
|
if (isUpdated == 0) {
|
|
//checkboxcheckedWithoutOther(divlen);
|
|
}
|
|
$('select[name=item_inquirey_' + divlen + ']').trigger('change');
|
|
$('select[name=item_public_category_' + divlen + ']').trigger('change');
|
|
return divlen;
|
|
}
|
|
|
|
function getSTTPresetContentNew1(current_inqury_text, divlen, index, click, previous_selected_value, isNotFirstTime = true, selected_bank_list, public_selected_html, bank_chunk_data) {
|
|
var bank_div = divlen;
|
|
SLOT[ARRAY_INDEX]++;
|
|
$('input[name=slot_array]').val(SLOT);
|
|
var isAccImageExist = '<input type="hidden" name="isAccImageExist_' + divlen + '" value="0">';
|
|
var bankList = ""; //dynamicBankList(divlen);
|
|
var selected_bank_list_string = "";
|
|
selected_bank_id_list = [];
|
|
$.each(selected_bank_list, function(bank_index, value) {
|
|
selected_bank_list_string += '<span class="hida" title="' + value + '">' + value + '</span>';
|
|
selected_bank_id_list.push(bank_index)
|
|
})
|
|
bankList = "<label class='pull-left control-label'>Negative Item category</label>" +
|
|
'<select onchange="getBankCategoryInfo(this)" class="form-control" name="item_bankCategory_' + divlen + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>';
|
|
bankList += '<label class="pull-left control-label">Negative Item Names</label><div class="banklist"><dl class="dropdown-x" id="item-bank_' + divlen + '">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest" style="display:none;">Choose Item</span>' +
|
|
'<p class="multiSel" id="item-bank-name-' + divlen + '">' + selected_bank_list_string + '</p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="banklistid_' + divlen + '">' +
|
|
'<ul>';
|
|
|
|
$.each(BANK_LIST, function(index, contact) {
|
|
var checked = '';
|
|
if ($.inArray(index, selected_bank_id_list) !== -1) {
|
|
checked = 'checked';
|
|
}
|
|
//BANK_LIST[index] = removeExtraNumberFromBank(BANK_LIST[index]);
|
|
bankList += '<li><input ' + checked + ' id="mybank" class="allbank bank-input_' + divlen + ' removal-bank" data-bank="1" onclick="getAccOption(this);" name="item_bank_' + divlen + '[]" type="checkbox" value="' + index + '" data-view="' + BANK_LIST[index] + '" /> ' + BANK_LIST[index] + '</li>';
|
|
});
|
|
bankList += '</ul>' + '</div>' + '</dd>' + '</dl></div>';
|
|
var selected_bank_info_string_textarea = setBankInfoInTextAreaForSTT(selected_bank_id_list);
|
|
var selected_public_records_info_string_textarea = setPublicRecordIntoTextAreaForSTT();
|
|
if (selected_bank_info_string_textarea) {
|
|
selected_bank_info_string_textarea += "\n\n"
|
|
}
|
|
var inquiry_dropdown = getInquiryItemCategoryDropDown(divlen);
|
|
var df_div = dfDropDownTextArea(divlen);
|
|
|
|
var public_record_list_string = "";
|
|
$.each(DB_PUBLIC_KEY_ID_ASSOC, function(index, contact) {
|
|
if (index) {
|
|
public_record_list_string += '<li><input checked data-public_negative="1" id="public_negetive_input_id_' + divlen + '" class="public-negative-input_' + divlen + '" onclick="getAccOption(this);" name="public_negative_item_' + divlen + '[]" type="checkbox" value="' + index + '" data-view="' + DB_PUBLIC_KEY_ID_ASSOC[index] + '" /> ' + DB_PUBLIC_KEY_ID_ASSOC[index] + '</li>';
|
|
|
|
}
|
|
});
|
|
|
|
public_selected_html = "";
|
|
public_record_list_string = "";
|
|
$publicrecordHtml = "<label class='pull-left control-label'>Public Record category</label>" +
|
|
'<select disabled onchange="getPublicItemCategoryInfo(this)" class="form-control" name="item_public_category_' + divlen + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>';
|
|
$publicrecordHtml += "<div id='item-public-category-negative'></div>";
|
|
//$publicrecordHtml = getPublicRecordDropDown(divlen);
|
|
$publicrecordHtml += '<div id="item-public-category-negative">' +
|
|
'<label class="pull-left control-label">Public Record</label>' +
|
|
'<dl class="dropdown-x" id="item-public-subcategory_' + divlen + '">' +
|
|
'<dt><div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem" style="pointer-events: none;">' +
|
|
'<span class="choose-dest" style="display:block;">Choose Item</span>' +
|
|
'<p class="multiSel" id="item-subcat-name-' + divlen + '">' + public_selected_html +
|
|
'</p>' +
|
|
'</a></div></dt><dd><div class="mutliSelect" id="negative-inputlist_' + divlen + '"><ul style="display: none;">' +
|
|
public_record_list_string + '</ul></div></dd></dl></div>'
|
|
var is_stt = '<input type="hidden" value="0" class="sttInq" name="isSTT_' + divlen + '" />';
|
|
var inquiry_with_stt = '<input type="hidden" value="' + current_inqury_text + '" class="sttInq" name="sttInquery_' + divlen + '" />';
|
|
inquiry_with_stt += is_stt;
|
|
|
|
var imageTagArea = df_div + '<div class="col-sm-5 col-sm-offset-1">' +
|
|
'<div class="view-img">' +
|
|
'<img id="acc_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="enhance_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="inquiry_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'</div>' +
|
|
'</div>';
|
|
|
|
var checkboxDiv = '<div class="form-group remove-all">' +
|
|
'<div class="dest-checkbox" id="dest-checkbox_' + divlen + '">' +
|
|
'<ul style="list-style:none;" id="dest_ul_check_' + divlen + '">' +
|
|
checkboxString +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</div>';
|
|
if ($('input[name=from_load]').val() == 1) {
|
|
checkboxDiv = getSelectedDestinationHTML(divlen);
|
|
}
|
|
var itemcategoryDiv = '<div id="item-category_' + divlen + '"></div>';
|
|
var publicRecordcategoryDiv = '<div id="item-public-category_' + divlen + '" class="publicRecordcategoryDiv">' + $publicrecordHtml + '</div>';
|
|
var item_attack_discont = itemcategoryDiv + '<label class="pull-left control-label">Item' + "'" + 's attack number</label>' +
|
|
'<select disabled onchange="getItemAttackValue(this)" class="form-control" name="item_attack_num_' + divlen + '">' +
|
|
'<option value="0">Choose Item</option>\n' +
|
|
'<option value="1">This is FIRST TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="2">This is SECOND TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="3">This is THIRD TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="4">I DO NOT KNOW if this is FIRST, SECOND, ETC. time using a M2CA method!</option>' +
|
|
'</select>' +
|
|
inquiry_dropdown +
|
|
bankList +
|
|
publicRecordcategoryDiv +
|
|
'<label class="pull-left control-label">Ownership/Responsibility of item issues</label>\n' +
|
|
'<select disabled class="form-control" name="item_ownership_' + divlen + '">\n' +
|
|
'<option value="">Choose Item</option>\n' +
|
|
'<option value="1">Item is mine YET is NOT proven COMPLIANT in its reporting.</option>' +
|
|
'<option value="2">This item is NOT MINE and is result of FRAUD and or IDENTITY THEFT.</option>' +
|
|
'<option value="3">ITEM IS MINE, but I AM NOT LIABLE due to FRAUDULENT activities.</option>' +
|
|
'<option value="4">Item has too many inconsistencies and or deficiencies to be VALID and COMPLIANT!</option>' +
|
|
'<option value="5">I do not know</option>' +
|
|
' </select>' +
|
|
'<label class="pull-left control-label">Item Discontinuance</label>' +
|
|
'<select disabled onchange="getItemDiscont(this)" class="form-control" name="item_discount_' + divlen + '">' +
|
|
'<option value="">Choose Item</option>' +
|
|
'<option value="1">This ITEM is a PERSONAL ITEM</option>' +
|
|
'<option value="2">This ITEM is an INQUIRY ALLEGATION</option>' +
|
|
'<option value="3">This ITEM is an ACCOUNT</option>' +
|
|
'<option value="4">This ITEM is NOT A PERSONAL IDENTIFIER ITEM, NOT AN INQUIRY, NOT AN ACCOUNT</option>' +
|
|
'</select>';
|
|
|
|
var velocityQuickStartDropdown = '<div class="col-md-12">' +
|
|
'<label for="">Velocity Quick Start: Easy To Go</label>' +
|
|
'</div>' +
|
|
'<div class="col-md-9 col-offset-3">' +
|
|
'<dl class="dropdown-x" id="velocity-quick-' + divlen + '" style="pointer-events: none;">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest" style="display:none;">Choose Item</span>' +
|
|
'<p id="dest-id" class="multiSel"></p>' +
|
|
'<span class="hida" title="STT Preset Letter">STT Preset Letter</span>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="maindestination">' +
|
|
'<ul>' +
|
|
'<li><input checked class="enhance-tag" data-id="1" value="4" type="checkbox" name="enhance_check_' + divlen + '" id="stt_preset_' + divlen + '" onclick="setInqueryCheck(this)"> <span>STT Preset Letter</span></li>' +
|
|
'<li><input class="enhance-tag" data-id="1" value="1" type="checkbox" name="enhance_check_' + divlen + '" id="acc_enhance_' + divlen + '" onclick="setInqueryCheck(this)"> <span>Enhance Personal Identifiers</span></li>' +
|
|
'<li><input class="enhance-tag" data-id="1" value="2" type="checkbox" name="enhance_check_' + divlen + '" id="acc_inquery_' + divlen + '" onclick="setInqueryCheck(this)"> <span>This Item is a Multiple Inquiry Removal attack</span></li>' +
|
|
'<li><input class="enhance-tag" data-id="1" value="3" type="checkbox" name="enhance_check_' + divlen + '" id="acc_multiple_' + divlen + '" onclick="setInqueryCheck(this)"> <span>Multiple Negative attacks</span></li>' +
|
|
'<li><input class="enhance-tag" data-id="1" value="5" type="checkbox" name="enhance_check_' + divlen + '" id="public_record_attack_' + divlen + '" onclick="setInqueryCheck(this)"> <span>Public Records Attack</span></li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'</div>';
|
|
|
|
var newAllCheck = '<input checked data-id="1" style="margin-left: 10px;position-events:none;" type="checkbox" name=all_att_check_1 id="all_att_check_1" onclick="setAllCheck(this)"><span> Check all</span>'
|
|
var allCheck = '<div class="row remove-all">' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="form-group remove-all view-allcheck">' +
|
|
newAllCheck +
|
|
'</div>' +
|
|
'</div> ' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="row">' +
|
|
velocityQuickStartDropdown +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>';
|
|
var slot_title = "<div class='row'>" +
|
|
" <div class='col-md-12'>" +
|
|
"<label id='slot-title_" + divlen + "' style='width:100%;'></label>" +
|
|
"</div>" +
|
|
"</div>";
|
|
|
|
var html = '<div id="slot_' + index + '_' + click + '" class="remove-view-slot"><hr>' + slot_title + allCheck + checkboxDiv + '<div class="form-group input-file-field counter remove-all" id="input-file-field">' +
|
|
'<div class="row">' +
|
|
imageTagArea +
|
|
'<div class="col-md-6">' +
|
|
'<label class="control-label"> Click the Drop Down Box To Help Explain The Possible Issues with this Item</label>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<br>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label class="control-label" style="padding:0;">Item Image <br> (PNG/JPEG)<br><div style="margin-top:80px;">Put In The Box:<br>Account Name<br>Data Furnisher Address<br>Account Number</div></label>' +
|
|
'<label class="control-label rebuttal-class rebuttal-class1">REBUTTAL</label>\n' +
|
|
'</div>' +
|
|
'<div class="col-sm-3">' +
|
|
'<input type="hidden" value="0" name="acc_img_clear_' + divlen + '" id="acc_img_clear" />' +
|
|
'<input type="hidden" value="" name="temp_acc_img_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
isAccImageExist +
|
|
'<input type="hidden" value="0" name="check_indicator_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
'<input type="hidden" name="acc_img_url_' + divlen + '" value id="acc_img_url_' + divlen + '"/>' +
|
|
'<input type="file" onchange="uploadphotos(this,1)" data-id="' + divlen + '" name="image_' + divlen + '" id="image_' + divlen + '" class="form-control" />' +
|
|
'<span class="help-block text-center">' +
|
|
'<textarea oninput="updateValueSTTInquiry(this)" onchange="updateValueSTTInquiry(this)" onkeyup="updateValueSTTInquiry(this)" class="form-control" name="image_text_area_' + divlen + '" rows="12" style="height:261px;">' + bank_chunk_data + '</textarea>' +
|
|
'</span>' +
|
|
'<div class="row">\n' +
|
|
'<div class="col-md-12">\n' +
|
|
' <select disabled name="rebuttal_' + divlen + '" id="" class="form-control">\n' +
|
|
' <option value="">Choose Item</option>\n' +
|
|
' <option value="1">Account REBUTTAL</option>\n' +
|
|
' <option value="2">INQUIRY REBUTTAL</option>\n' +
|
|
' </select>\n' +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<div class="col-sm-1">' +
|
|
'<label id="label1"><a style="cursor:hand;cursor:pointer;margin-right: 30px;" onClick="clearFile(this);" data-id="' + divlen + '">Clear</a></label>' +
|
|
'</div>' +
|
|
'<div class="col-sm-4 acc-issues-div">' +
|
|
item_attack_discont +
|
|
'<label class="pull-left control-label">Account Number Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-num-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-num-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="1" data-view="Account number is MISSING or NOT REPORTED" /> Account number is MISSING or NOT REPORTED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="2" data-view="ACCOUNT NUMBER IS INACCURATE" /> ACCOUNT NUMBER IS INACCURATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="3" data-view="Account Number TRUNCATION has EXACTLY FOUR" /> Account Number TRUNCATION has EXACTLY FOUR</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="4" data-view="Account Number TRUNCATION has ONLY THREE OR LESS" /> Account Number TRUNCATION has ONLY THREE OR LESS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="5" data-view="Account Number TRUNCATION has FIVE OR MORE" /> Account Number TRUNCATION has FIVE OR MORE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="-1" data-view="OTHER" /> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_number_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Aspect Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-aspect-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-aspect-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="1"> ACCOUNTNAME/CREDITORNAME/DFNAME</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="2"> DF/CREDITORADDRESSISSUES</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="3"> Accountberissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="4"> OriginalCreditor(OC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="5"> ReportedName(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="6"> Nameidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="7"> ReportedAddress(es)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="8"> Addressidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="9"> AddressResidenceType(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="10"> AddressGeographicCode(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="11"> ReportedDateOfBirth(orYearofBirth)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="12"> Reportedtelephoneber(s)issue(s)akacontact(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="13"> Spouse(s)/co-applicant(s)/roommate(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="14"> Employer(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="15"> Employment/JobDescription(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="16"> ReinvestigationInformation</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="17"> AccountHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="18"> OnRecorduntil</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="19"> Monthlypayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="20"> AccountResponsibility</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="21"> paymentAmount(orRecentpaymentAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="22"> PaymentHistoryGuide</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="23"> BalanceHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="24"> DateofREQUEST(Inquiry)(akaDateOfPermissiblePurposeakaDOPP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="25"> INQUIRY TYPE ake Permissible Purpose Type</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="26"> DATEOPEN(OpenDate)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="27"> CURRENTBALANCEAMOUNT(BALANCE)(RecentBalanceReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="28"> PastDueBALANCEreported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="29"> CreditLIMIT(HighLimitReported)(orOriginalAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="30"> Highbalancereported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="31"> LATEPAYMENTDATE(LPD)akaDateofLatePayment(DOLP)reported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="32"> DOFD DATE OF FIRST DEL INQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="33"> DFMD-DATEofFIRSTMAJORDELINQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="34"> STATUSDATEissue(s)akaDateofStatusissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="35"> Status</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="36"> DateVERIFIEDissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="37"> BALANCEDATEissue(s)(akaBalanceUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="38"> PAYMENTDATEakaDATEOFPAYMENT(DOP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="39"> STATUSDATE/DATEOFSTATUSnotmatchingReportingDate/Balancedate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="40"> DATEVERIFIEDnotmatchingReportingDate/StatusDate/BalanceDate/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="41"> BALANCEDATEnotmatchingReportingDate/StatusDate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="42"> DateREPORTED(akaREPORTDATE)(akaFirstReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="43"> DATEFILEDakaFILINGDATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="44"> Plaintiffofpublicrecord</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="45"> DATEDISMISSED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="46"> DATEDISCHARGED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="47"> LIABILITYLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="48"> ASSETAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="49"> ACCOUNTCOMMENTS/NOTATIONS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="50"> MONTHLYPAYMENTAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="51"> DOLP-DATEofLASTPAYMENT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="52"> DOLA-DATEOFLASTACTIVITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="53"> CHARGE-OFFAMOUNT(akaCOA)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="54"> CHARGE-OFFDATE(akaCOD)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="55"> ACCOUNTTYPE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="56"> ACCOUNTOWNERSHIP/RESPONSIBILITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="57"> ACCOUNTHIGHLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="58"> ACCOUNTTERMS(akaberOfMonths)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="59"> ACCOUNTHISTORICALPAYMENTGRIDorMONTHTOMONTHDISPLAY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="60"> ACCOUNT30/60/90STATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="61"> DATEREPORTED(REPORTDATE)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="62"> ACCOUNTSTATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="63"> STATUSDATE(akaStatusUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="64"> HIGHBALANCEAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="65"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="66"> BalloonPayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="67"> CreditorContactPhone</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="68"> CreditorContactAddress</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="69"> CompanySold-to</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="70"> CreditorClassificationCode(CCC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="71"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="72"> DEROGATORYCONDITIONnotspecificbutalleged</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="73"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_aspect_other_' + divlen + '" id="acc-aspect" class="form-control remove-textarea" rows="5">' +
|
|
'</textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Derogatory Type</label>' +
|
|
'<dl class="dropdown-x" id="acc-derogatory-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-derogatory-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Bankruptcy Public Record Option" value="1"> Bankruptcy Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Judgment Public Record Option" value="4"> Judgment Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Tax Lien Public Record Option" value="7"> Tax Lien Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Foreclosure Option" value="10"> Foreclosure Option </li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Short Sale Option" value="13"> Short Sale Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Repossession Option" value="16"> Repossession Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Child Support Arrears Option" value="19"> Child Support Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Alimony Arrears Option" value="21"> Alimony Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Charge-Off Option" value="23"> Charge-Off Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="REGULAR Non-Medical Debt Collection Option" value="25"> REGULAR Non-Medical Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="MEDICAL Debt Collection Option" value="28"> MEDICAL Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY/DELINQUENT STUDENT LOAN Option" value="32"> DEROGATORY/DELINQUENT STUDENT LOAN Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Late Payment Option" value="34"> Late Payment Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Inquiry Option" value="36"> Inquiry Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY CLAIM Option" value="38"> DEROGATORY CLAIM Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEFICIENT REPORTED DATA Option" value="41"> DEFICIENT REPORTED DATA Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="OTHER" value="-1"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_derogatory_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Other</label>' +
|
|
'<span class="help-block text-center"> ' +
|
|
'<textarea disabled onkeyup="accOtherkepress(this)" name="acc_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>'
|
|
|
|
+'</div>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label id="label1"><a onclick="addImageBtn()" id="add-image-btn" style="padding: 1px 6px;margin-right:10px;" class="btn btn-success"><i class="fa fa-plus"></i></a></label>' +
|
|
'<label id="label1"><a onclick="removeImageArea(this)" data-id="slot_' + index + '_' + click + '" id="remove" style="padding: 1px 6px;" class="btn btn-danger"><i class="fa fa-minus"></i></a></label>' +
|
|
'</div>'
|
|
|
|
+
|
|
inquiry_with_stt +
|
|
'</div>'; +
|
|
'</div>';
|
|
|
|
|
|
|
|
//$('#image-area').append(html);
|
|
scroll_to()
|
|
return html;
|
|
// checkDestinationAndDisabled(divlen);
|
|
// $('select[name=item_attack_num_'+divlen+']').attr('disabled',true);
|
|
// $('select[name=item_inquirey_'+divlen+']').attr('disabled',true);
|
|
//// $('#item-bank_'+divlen+' a').addClass('disable-elem');
|
|
//// $('#item-bank_' + divlen).css({
|
|
//// 'pointer-events': 'none'
|
|
//// });
|
|
// //$('#item-bank_'+divlen).addClass('disable-elem');
|
|
// $('select[name=item_discount_'+divlen+']').attr('disabled',true);
|
|
// $('select[name=item_ownership_'+divlen+']').attr('disabled',true);
|
|
//
|
|
//
|
|
// $('#acc-aspect-sub_'+divlen).parents('dl.acc-aspect-sub').first().css({
|
|
// 'pointer-events': 'none'
|
|
// });
|
|
// var enhance_check = $('#velocity-quick-'+divlen);
|
|
// enhance_check.css({
|
|
// 'pointer-events': 'none'
|
|
// });
|
|
// enhance_check.find('a').first().addClass('disable-elem');
|
|
|
|
// var stt_checkbox = $('#stt_preset_'+divlen);
|
|
// var multiSelP = $('#velocity-quick-'+divlen).first().children().find('p#dest-id');
|
|
// multiSelP.html('');
|
|
// var title = stt_checkbox.next('span').text();
|
|
// var html = '<span class="hida" title="' + title + '">' + title + '</span>';
|
|
// stt_checkbox.prop('checked',true);
|
|
// multiSelP.append(html);
|
|
// multiSelP.prev("span.choose-dest").hide();
|
|
// $('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
//
|
|
// $('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
// $('#item-public-category_' + divlen).html($publicrecordHtml);
|
|
// var bank_count = 0;
|
|
// var last_sected_bank_val = 0;
|
|
//
|
|
// if(stt_checkbox.data('lastbank')){
|
|
// previous_selected_value = stt_checkbox.data('lastbank');
|
|
// }
|
|
//
|
|
// $('input[name="item_bank_'+bank_div+'[]"]').map(function(){
|
|
// if(!$(this).prop('checked') && $(this).val() > previous_selected_value){
|
|
//
|
|
// bank_count++;
|
|
// if(bank_count <= 15){
|
|
// //$(this).click();
|
|
// last_sected_bank_val = $(this).val();
|
|
// stt_checkbox.attr('data-lastbank',last_sected_bank_val);
|
|
//
|
|
// }else{
|
|
// return false;
|
|
// }
|
|
//
|
|
// }
|
|
// });
|
|
//
|
|
// $('select[name="item_public_category_'+divlen).change();
|
|
// $('input[name="public_negative_item_'+divlen+'[]"]').map(function(){
|
|
// if(!$(this).prop('checked')){
|
|
// // $(this).click();
|
|
// }
|
|
// });
|
|
// var isUpdated = $('input[name=isClientSelect]').val();
|
|
// if (isUpdated == 0) {
|
|
// //checkboxcheckedWithoutOther(divlen);
|
|
// }
|
|
// //scroll_to();
|
|
// return html;
|
|
}
|
|
|
|
function getSTTPresetContentNew2(divlen, index, click, isNotSTT = true, inquiry_html, inq_text_area, selected_inquiries_ids) {
|
|
|
|
divlen++;
|
|
|
|
//$('#dest-checkbox_'+divlen).parent().remove();
|
|
SLOT[ARRAY_INDEX]++;
|
|
$('input[name=slot_array]').val(SLOT);
|
|
var isAccImageExist = '<input type="hidden" name="isAccImageExist_' + divlen + '" value="0">';
|
|
var bankList = ""; //dynamicBankList(divlen);
|
|
|
|
bankList = "<label class='pull-left control-label'>Negative Item category</label>" +
|
|
'<select disabled onchange="getBankCategoryInfo(this)" class="form-control" name="item_bankCategory_' + divlen + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>';
|
|
bankList += '<label class="pull-left control-label">Negative Item Names</label><div class="banklist"><dl class="dropdown-x" id="item-bank_' + divlen + '">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem" style="pointer-events:none;">' +
|
|
'<span class="choose-dest" style="display:block;">Choose Item</span>' +
|
|
'<p class="multiSel" id="item-bank-name-' + divlen + '">' + '</p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="banklistid_' + divlen + '">' +
|
|
'<ul>';
|
|
bankList += '</ul>' + '</div>' + '</dd>' + '</dl></div>';
|
|
var inquiry_dropdown = getInquiryItemCategoryDropDown(divlen);
|
|
|
|
if (INQ_KEY_DATE) {
|
|
$('select[name=image_text_area_' + divlen + ']').val('');
|
|
var dropdown = generateInquiriesCategorySubList(INQ_KEY_DATE, divlen);
|
|
$('select[name=item_inquirey_' + divlen + ']').parent().children('div').remove();
|
|
if (dropdown != "") {
|
|
$('select[name=item_inquirey_' + divlen + ']').parent().append('<div id="item-inquires-negative"></div>');
|
|
$('select[name=item_inquirey_' + divlen + ']').next('div#item-inquires-negative').html(dropdown);
|
|
}
|
|
|
|
}
|
|
var inq_checked_checkbox = "";
|
|
inquiry_html = '<p class="multiSel" id="inquiry-subcat-name-4">';
|
|
$.each(INQ_KEY_DATE.key_name, function(index, contact) {
|
|
var checked = '';
|
|
if ($.inArray(parseInt(index), selected_inquiries_ids) !== -1) {
|
|
checked = 'checked';
|
|
inquiry_html += '<span class="hida" title="' + INQ_KEY_DATE.key_name[index] + '">' + INQ_KEY_DATE.key_name[index] + '</span>';
|
|
}
|
|
inq_checked_checkbox += '<li><input ' + checked + ' data-inq_negative="1" id="negetive_inq_input_id_' + divlen + '" class="negative-inq-input_' + divlen + '" onclick="getAccOption(this);" name="negative_inq_item_' + divlen + '[]" type="checkbox" value="' + index + '" data-view="' + INQ_KEY_DATE.key_name[index] + '\n' + INQ_KEY_DATE.key_date[index] + '" data-date="' + INQ_KEY_DATE.key_date[index] + '" /> ' + INQ_KEY_DATE.key_name[index] + '</li>';
|
|
});
|
|
inquiry_html += '</p>';
|
|
var inquiry_dropdown = '<label class="pull-left control-label">Inquiries Category</label><div class="inquiries-area">' +
|
|
'<select onchange="getInquiryItemCategoryInfo(this)" class="form-control" name="item_inquirey_' + divlen + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>' +
|
|
'<div id="item-inquires-negative"><label class="pull-left control-label">Inquiries</label><dl class="dropdown-x" id="inquiry-subcategory_' + divlen + '"><dt><div><a onclick="chooseDropDown(this);" href="javascript:;"><span class="choose-dest" style="display: none;">Choose Item</span>' +
|
|
'<p class="multiSel" id="inquiry-subcat-name-' + divlen + '">' + inquiry_html +
|
|
'</p></a></div></dt><dd><div class="mutliSelect" id="negative-inputlist_' + divlen + '">' +
|
|
'<ul style="display:none">' + inq_checked_checkbox + '</ul>' +
|
|
'</div></dd></dl></div></div>';
|
|
var df_div = dfDropDownTextArea(divlen);
|
|
|
|
var is_stt = '<input type="hidden" value="0" class="" name="isSTT_' + divlen + '" />';
|
|
var inquiry_with_stt = '<input type="hidden" value="0" class="sttInq" name="sttInquery_' + divlen + '" />';
|
|
inquiry_with_stt += is_stt;
|
|
if ($('select[name=select]').val() == 0) {
|
|
//$publicrecordHtml = "";
|
|
}
|
|
var imageTagArea = df_div + '<div class="col-sm-5 col-sm-offset-1">' +
|
|
'<div class="view-img">' +
|
|
'<img id="acc_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="enhance_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="inquiry_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'</div>' +
|
|
'</div>';
|
|
|
|
var checkboxDiv = '<div class="form-group remove-all">' +
|
|
'<div class="dest-checkbox" id="dest-checkbox_' + divlen + '">' +
|
|
'<ul style="list-style:none;" id="dest_ul_check_' + divlen + '">' +
|
|
checkboxString +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</div>';
|
|
if ($('input[name=from_load]').val() == 1) {
|
|
checkboxDiv = getSelectedDestinationHTML(divlen);
|
|
}
|
|
var itemcategoryDiv = '<div id="item-category_' + divlen + '"></div>';
|
|
var publicRecordcategoryDiv = '<div id="item-public-category_' + divlen + '" class="publicRecordcategoryDiv"></div>';
|
|
var item_attack_discont = itemcategoryDiv + '<label class="pull-left control-label">Item' + "'" + 's attack number</label>' +
|
|
'<select onchange="getItemAttackValue(this)" class="form-control" name="item_attack_num_' + divlen + '" disabled>' +
|
|
'<option value="0">Choose Item</option>\n' +
|
|
'<option value="1">This is FIRST TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="2">This is SECOND TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="3">This is THIRD TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="4">I DO NOT KNOW if this is FIRST, SECOND, ETC. time using a M2CA method!</option>' +
|
|
'</select>' +
|
|
inquiry_dropdown +
|
|
bankList +
|
|
publicRecordcategoryDiv +
|
|
'<label class="pull-left control-label">Ownership/Responsibility of item issues</label>\n' +
|
|
'<select class="form-control" name="item_ownership_' + divlen + '" disabled>' +
|
|
'<option value="">Choose Item</option>\n' +
|
|
'<option value="1">Item is mine YET is NOT proven COMPLIANT in its reporting.</option>' +
|
|
'<option value="2">This item is NOT MINE and is result of FRAUD and or IDENTITY THEFT.</option>' +
|
|
'<option value="3">ITEM IS MINE, but I AM NOT LIABLE due to FRAUDULENT activities.</option>' +
|
|
'<option value="4">Item has too many inconsistencies and or deficiencies to be VALID and COMPLIANT!</option>' +
|
|
'<option value="5">I do not know</option>' +
|
|
' </select>' +
|
|
'<label class="pull-left control-label">Item Discontinuance</label>' +
|
|
'<select disabled onchange="getItemDiscont(this)" class="form-control" name="item_discount_' + divlen + '">' +
|
|
'<option value="">Choose Item</option>' +
|
|
'<option value="1">This ITEM is a PERSONAL ITEM</option>' +
|
|
'<option value="2">This ITEM is an INQUIRY ALLEGATION</option>' +
|
|
'<option value="3">This ITEM is an ACCOUNT</option>' +
|
|
'<option value="4">This ITEM is NOT A PERSONAL IDENTIFIER ITEM, NOT AN INQUIRY, NOT AN ACCOUNT</option>' +
|
|
'</select>';
|
|
var newAllCheck = '<input checked data-id="1" style="margin-left: 10px;position-events:none;" type="checkbox" name=all_att_check_1 id="all_att_check_1" onclick="setAllCheck(this)"><span> Check all</span>'
|
|
var velocityQuickStartDropdown = setVelocityQuickStartDropDownSTT(divlen);
|
|
var allCheck = '<div class="row remove-all">' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="form-group remove-all view-allcheck">' +
|
|
newAllCheck +
|
|
'</div>' +
|
|
'</div> ' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="row">' +
|
|
velocityQuickStartDropdown +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>';
|
|
var slot_title = "<div class='row'>" +
|
|
" <div class='col-md-12'>" +
|
|
"<label id='slot-title_" + divlen + "' style='width:100%;'></label>" +
|
|
"</div>" +
|
|
"</div>";
|
|
|
|
var html = '<div id="slot_' + index + '_' + click + '" class="remove-view-slot"><hr>' + slot_title + allCheck + checkboxDiv + '<div class="form-group input-file-field counter remove-all" id="input-file-field">' +
|
|
'<div class="row">' +
|
|
imageTagArea +
|
|
'<div class="col-md-6">' +
|
|
'<label class="control-label"> Click the Drop Down Box To Help Explain The Possible Issues with this Item</label>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<br>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label class="control-label" style="padding:0;">Item Image <br> (PNG/JPEG)<br><div style="margin-top:80px;">Put In The Box:<br>Account Name<br>Data Furnisher Address<br>Account Number</div></label>' +
|
|
'<label class="control-label rebuttal-class rebuttal-class1">REBUTTAL</label>\n' +
|
|
'</div>' +
|
|
'<div class="col-sm-3">' +
|
|
'<input type="hidden" value="0" name="acc_img_clear_' + divlen + '" id="acc_img_clear" />' +
|
|
'<input type="hidden" value="" name="temp_acc_img_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
isAccImageExist +
|
|
'<input type="hidden" value="0" name="check_indicator_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
'<input type="hidden" name="acc_img_url_' + divlen + '" value id="acc_img_url_' + divlen + '"/>' +
|
|
'<input type="file" onchange="uploadphotos(this,1)" data-id="' + divlen + '" name="image_' + divlen + '" id="image_' + divlen + '" class="form-control" />' +
|
|
'<span class="help-block text-center">' +
|
|
'<textarea oninput="updateValueSTTInquiry(this)" onchange="updateValueSTTInquiry(this)" onkeyup="updateValueSTTInquiry(this)" class="form-control" name="image_text_area_' + divlen + '" rows="12" style="height:261px;">' + inq_text_area + '</textarea>' +
|
|
'</span>' +
|
|
'<div class="row">\n' +
|
|
'<div class="col-md-12">\n' +
|
|
' <select name="rebuttal_' + divlen + '" id="" class="form-control" disabled>\n' +
|
|
' <option value="">Choose Item</option>\n' +
|
|
' <option value="1">Account REBUTTAL</option>\n' +
|
|
' <option value="2">INQUIRY REBUTTAL</option>\n' +
|
|
' </select>\n' +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<div class="col-sm-1">' +
|
|
'<label id="label1"><a style="cursor:hand;cursor:pointer;margin-right: 30px;" onClick="clearFile(this);" data-id="' + divlen + '">Clear</a></label>' +
|
|
'</div>' +
|
|
'<div class="col-sm-4 acc-issues-div">' +
|
|
item_attack_discont +
|
|
'<label class="pull-left control-label">Account Number Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-num-sub" style="pointer-events:none">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-num-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="1" data-view="Account number is MISSING or NOT REPORTED" /> Account number is MISSING or NOT REPORTED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="2" data-view="ACCOUNT NUMBER IS INACCURATE" /> ACCOUNT NUMBER IS INACCURATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="3" data-view="Account Number TRUNCATION has EXACTLY FOUR" /> Account Number TRUNCATION has EXACTLY FOUR</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="4" data-view="Account Number TRUNCATION has ONLY THREE OR LESS" /> Account Number TRUNCATION has ONLY THREE OR LESS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="5" data-view="Account Number TRUNCATION has FIVE OR MORE" /> Account Number TRUNCATION has FIVE OR MORE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="-1" data-view="OTHER" /> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_number_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Aspect Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-aspect-sub" style="pointer-events:none">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-aspect-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="1"> ACCOUNTNAME/CREDITORNAME/DFNAME</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="2"> DF/CREDITORADDRESSISSUES</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="3"> Accountberissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="4"> OriginalCreditor(OC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="5"> ReportedName(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="6"> Nameidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="7"> ReportedAddress(es)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="8"> Addressidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="9"> AddressResidenceType(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="10"> AddressGeographicCode(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="11"> ReportedDateOfBirth(orYearofBirth)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="12"> Reportedtelephoneber(s)issue(s)akacontact(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="13"> Spouse(s)/co-applicant(s)/roommate(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="14"> Employer(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="15"> Employment/JobDescription(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="16"> ReinvestigationInformation</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="17"> AccountHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="18"> OnRecorduntil</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="19"> Monthlypayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="20"> AccountResponsibility</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="21"> paymentAmount(orRecentpaymentAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="22"> PaymentHistoryGuide</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="23"> BalanceHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="24"> DateofREQUEST(Inquiry)(akaDateOfPermissiblePurposeakaDOPP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="25"> INQUIRY TYPE ake Permissible Purpose Type</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="26"> DATEOPEN(OpenDate)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="27"> CURRENTBALANCEAMOUNT(BALANCE)(RecentBalanceReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="28"> PastDueBALANCEreported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="29"> CreditLIMIT(HighLimitReported)(orOriginalAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="30"> Highbalancereported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="31"> LATEPAYMENTDATE(LPD)akaDateofLatePayment(DOLP)reported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="32"> DOFD DATE OF FIRST DEL INQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="33"> DFMD-DATEofFIRSTMAJORDELINQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="34"> STATUSDATEissue(s)akaDateofStatusissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="35"> Status</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="36"> DateVERIFIEDissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="37"> BALANCEDATEissue(s)(akaBalanceUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="38"> PAYMENTDATEakaDATEOFPAYMENT(DOP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="39"> STATUSDATE/DATEOFSTATUSnotmatchingReportingDate/Balancedate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="40"> DATEVERIFIEDnotmatchingReportingDate/StatusDate/BalanceDate/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="41"> BALANCEDATEnotmatchingReportingDate/StatusDate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="42"> DateREPORTED(akaREPORTDATE)(akaFirstReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="43"> DATEFILEDakaFILINGDATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="44"> Plaintiffofpublicrecord</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="45"> DATEDISMISSED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="46"> DATEDISCHARGED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="47"> LIABILITYLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="48"> ASSETAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="49"> ACCOUNTCOMMENTS/NOTATIONS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="50"> MONTHLYPAYMENTAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="51"> DOLP-DATEofLASTPAYMENT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="52"> DOLA-DATEOFLASTACTIVITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="53"> CHARGE-OFFAMOUNT(akaCOA)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="54"> CHARGE-OFFDATE(akaCOD)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="55"> ACCOUNTTYPE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="56"> ACCOUNTOWNERSHIP/RESPONSIBILITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="57"> ACCOUNTHIGHLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="58"> ACCOUNTTERMS(akaberOfMonths)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="59"> ACCOUNTHISTORICALPAYMENTGRIDorMONTHTOMONTHDISPLAY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="60"> ACCOUNT30/60/90STATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="61"> DATEREPORTED(REPORTDATE)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="62"> ACCOUNTSTATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="63"> STATUSDATE(akaStatusUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="64"> HIGHBALANCEAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="65"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="66"> BalloonPayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="67"> CreditorContactPhone</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="68"> CreditorContactAddress</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="69"> CompanySold-to</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="70"> CreditorClassificationCode(CCC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="71"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="72"> DEROGATORYCONDITIONnotspecificbutalleged</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="73"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_aspect_other_' + divlen + '" id="acc-aspect" class="form-control remove-textarea" rows="5">' +
|
|
'</textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Derogatory Type</label>' +
|
|
'<dl class="dropdown-x" id="acc-derogatory-sub" style="pointer-events:none">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-derogatory-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Bankruptcy Public Record Option" value="1"> Bankruptcy Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Judgment Public Record Option" value="4"> Judgment Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Tax Lien Public Record Option" value="7"> Tax Lien Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Foreclosure Option" value="10"> Foreclosure Option </li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Short Sale Option" value="13"> Short Sale Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Repossession Option" value="16"> Repossession Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Child Support Arrears Option" value="19"> Child Support Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Alimony Arrears Option" value="21"> Alimony Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Charge-Off Option" value="23"> Charge-Off Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="REGULAR Non-Medical Debt Collection Option" value="25"> REGULAR Non-Medical Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="MEDICAL Debt Collection Option" value="28"> MEDICAL Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY/DELINQUENT STUDENT LOAN Option" value="32"> DEROGATORY/DELINQUENT STUDENT LOAN Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Late Payment Option" value="34"> Late Payment Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Inquiry Option" value="36"> Inquiry Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY CLAIM Option" value="38"> DEROGATORY CLAIM Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEFICIENT REPORTED DATA Option" value="41"> DEFICIENT REPORTED DATA Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="OTHER" value="-1"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_derogatory_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Other</label>' +
|
|
'<span class="help-block text-center"> ' +
|
|
'<textarea disabled onkeyup="accOtherkepress(this)" name="acc_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>'
|
|
|
|
+'</div>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label id="label1"><a onclick="addImageBtn()" id="add-image-btn" style="padding: 1px 6px;margin-right:10px;" class="btn btn-success"><i class="fa fa-plus"></i></a></label>' +
|
|
'<label id="label1"><a onclick="removeImageArea(this)" data-id="slot_' + index + '_' + click + '" id="remove" style="padding: 1px 6px;" class="btn btn-danger"><i class="fa fa-minus"></i></a></label>' +
|
|
'</div>'
|
|
|
|
+
|
|
inquiry_with_stt +
|
|
'</div>'; +
|
|
'</div>';
|
|
|
|
|
|
|
|
//$('#image-area').append(html);
|
|
// checkDestinationAndDisabled(divlen);
|
|
// $('#item-bank_'+divlen+' a').addClass('disable-elem');
|
|
// $('#item-bank_' + divlen).css({
|
|
// 'pointer-events': 'none'
|
|
// });
|
|
// //$('#item-bank_'+divlen).addClass('disable-elem');
|
|
// $('select[name=item_discount_'+divlen+']').attr('disabled',true);
|
|
// $('select[name=item_ownership_'+divlen+']').attr('disabled',true);
|
|
//
|
|
//
|
|
// $('#acc-aspect-sub_'+divlen).parents('dl.acc-aspect-sub').first().css({
|
|
// 'pointer-events': 'none'
|
|
// });
|
|
//
|
|
// var enhance_check = $('#velocity-quick-'+divlen);
|
|
// $('#velocity-quick-'+divlen+' dd ul li input[type=checkbox]').each(function(){
|
|
// if($(this).val() == 4 && $(this).prop('checked')){
|
|
// //$(this).click();
|
|
// return false;
|
|
// }
|
|
// })
|
|
// $('#velocity-quick-'+divlen).children('p#dest-id').html('');
|
|
//// if(enhance_check.prop('checked')){
|
|
//// enhance_check.prop('checked',false)
|
|
//// }
|
|
// enhance_check.find('a').first().addClass('disable-elem');
|
|
// enhance_check.css({
|
|
// 'pointer-events': 'none'
|
|
// });
|
|
// $('select[name=item_bankCategory_'+divlen+']').attr('disabled',true);
|
|
// $('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
//
|
|
// $('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
// //$('#item-public-category_' + divlen).html($publicrecordHtml);
|
|
// $('select[name=item_public_category_'+divlen+']').attr('disabled',true);
|
|
// $('select[name=item_inquirey_'+divlen+']').change();
|
|
// $('input[name="negative_inq_item_'+divlen+'[]"]').map(function(){
|
|
// if(!$(this).prop('checked')){
|
|
// //$(this).click();
|
|
// }
|
|
// });
|
|
var inq_div = divlen;
|
|
inq_div--;
|
|
$('input[name="sttInquery_' + inq_div).val(divlen)
|
|
|
|
var isUpdated = $('input[name=isClientSelect]').val();
|
|
if (isUpdated == 0) {
|
|
//checkboxcheckedWithoutOther(divlen);
|
|
}
|
|
scroll_to();
|
|
return html;
|
|
}
|
|
|
|
function getSTTPresetContentNew3(divlen, index, click, isNotSTT = true, first_selected_inquries) {
|
|
// imran code here
|
|
divlen++;
|
|
var selected_inqury_ids = BANK_ASSOC_CHUNK_LIST[0].inqury_ids;
|
|
//$('#dest-checkbox_'+divlen).parent().remove();
|
|
SLOT[ARRAY_INDEX]++;
|
|
$('input[name=slot_array]').val(SLOT);
|
|
var isAccImageExist = '<input type="hidden" name="isAccImageExist_' + divlen + '" value="0">';
|
|
var bankList = dynamicBankList(divlen);
|
|
var inquiry_dropdown = getInquiryItemCategoryDropDown(divlen);
|
|
var df_div = dfDropDownTextArea(divlen);
|
|
//$publicrecordHtml = getPublicRecordDropDown(divlen);
|
|
//alert($publicrecordHtml);
|
|
|
|
var is_stt = '<input type="hidden" value="0" class="" name="isSTT_' + divlen + '" />';
|
|
var inquiry_with_stt = '<input type="hidden" value="0" class="sttInq" name="sttInquery_' + divlen + '" />';
|
|
inquiry_with_stt += is_stt;
|
|
if ($('select[name=select]').val() == 0) {
|
|
//$publicrecordHtml = "";
|
|
}
|
|
var imageTagArea = df_div + '<div class="col-sm-5 col-sm-offset-1">' +
|
|
'<div class="view-img">' +
|
|
'<img id="acc_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="enhance_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="inquiry_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'</div>' +
|
|
'</div>';
|
|
|
|
var checkboxDiv = '<div class="form-group remove-all">' +
|
|
'<div class="dest-checkbox" id="dest-checkbox_' + divlen + '">' +
|
|
'<ul style="list-style:none;" id="dest_ul_check_' + divlen + '">' +
|
|
checkboxString +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</div>';
|
|
if ($('input[name=from_load]').val() == 1) {
|
|
checkboxDiv = getSelectedDestinationHTML(divlen);
|
|
}
|
|
var itemcategoryDiv = '<div id="item-category_' + divlen + '"></div>';
|
|
var publicRecordcategoryDiv = '<div id="item-public-category_' + divlen + '" class="publicRecordcategoryDiv"></div>';
|
|
var item_attack_discont = itemcategoryDiv + '<label class="pull-left control-label">Item' + "'" + 's attack number</label>' +
|
|
'<select disabled onchange="getItemAttackValue(this)" class="form-control" name="item_attack_num_' + divlen + '" disabled>' +
|
|
'<option value="0">Choose Item</option>\n' +
|
|
'<option value="1">This is FIRST TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="2">This is SECOND TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="3">This is THIRD TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="4">I DO NOT KNOW if this is FIRST, SECOND, ETC. time using a M2CA method!</option>' +
|
|
'</select>' +
|
|
inquiry_dropdown +
|
|
bankList +
|
|
publicRecordcategoryDiv +
|
|
'<label class="pull-left control-label">Ownership/Responsibility of item issues</label>\n' +
|
|
'<select class="form-control" name="item_ownership_' + divlen + '" disabled>\n' +
|
|
'<option value="">Choose Item</option>\n' +
|
|
'<option value="1">Item is mine YET is NOT proven COMPLIANT in its reporting.</option>' +
|
|
'<option value="2">This item is NOT MINE and is result of FRAUD and or IDENTITY THEFT.</option>' +
|
|
'<option value="3">ITEM IS MINE, but I AM NOT LIABLE due to FRAUDULENT activities.</option>' +
|
|
'<option value="4">Item has too many inconsistencies and or deficiencies to be VALID and COMPLIANT!</option>' +
|
|
'<option value="5">I do not know</option>' +
|
|
' </select>' +
|
|
'<label class="pull-left control-label">Item Discontinuance</label>' +
|
|
'<select onchange="getItemDiscont(this)" class="form-control" name="item_discount_' + divlen + '">' +
|
|
'<option value="">Choose Item</option>' +
|
|
'<option value="1">This ITEM is a PERSONAL ITEM</option>' +
|
|
'<option value="2">This ITEM is an INQUIRY ALLEGATION</option>' +
|
|
'<option value="3">This ITEM is an ACCOUNT</option>' +
|
|
'<option value="4">This ITEM is NOT A PERSONAL IDENTIFIER ITEM, NOT AN INQUIRY, NOT AN ACCOUNT</option>' +
|
|
'</select>';
|
|
|
|
var velocityQuickStartDropdown = setVelocityQuickStartDropDownSTT(divlen);
|
|
var newAllCheck = '<input checked data-id="1" style="margin-left: 10px;position-events:none;" type="checkbox" name=all_att_check_1 id="all_att_check_1" onclick="setAllCheck(this)"><span> Check all</span>'
|
|
|
|
var allCheck = '<div class="row remove-all">' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="form-group remove-all view-allcheck">' +
|
|
newAllCheck +
|
|
'</div>' +
|
|
'</div> ' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="row">' +
|
|
velocityQuickStartDropdown +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>';
|
|
var slot_title = "<div class='row'>" +
|
|
" <div class='col-md-12'>" +
|
|
"<label id='slot-title_" + divlen + "' style='width:100%;'></label>" +
|
|
"</div>" +
|
|
"</div>";
|
|
|
|
var html = '<div id="slot_' + index + '_' + click + '" class="remove-view-slot"><hr>' + slot_title + allCheck + checkboxDiv + '<div class="form-group input-file-field counter remove-all" id="input-file-field">' +
|
|
'<div class="row">' +
|
|
imageTagArea +
|
|
'<div class="col-md-6">' +
|
|
'<label class="control-label"> Click the Drop Down Box To Help Explain The Possible Issues with this Item</label>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<br>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label class="control-label" style="padding:0;">Item Image <br> (PNG/JPEG)<br><div style="margin-top:80px;">Put In The Box:<br>Account Name<br>Data Furnisher Address<br>Account Number</div></label>' +
|
|
'<label class="control-label rebuttal-class rebuttal-class1">REBUTTAL</label>\n' +
|
|
'</div>' +
|
|
'<div class="col-sm-3">' +
|
|
'<input type="hidden" value="0" name="acc_img_clear_' + divlen + '" id="acc_img_clear" />' +
|
|
'<input type="hidden" value="" name="temp_acc_img_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
isAccImageExist +
|
|
'<input type="hidden" value="0" name="check_indicator_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
'<input type="hidden" name="acc_img_url_' + divlen + '" value id="acc_img_url_' + divlen + '"/>' +
|
|
'<input type="file" onchange="uploadphotos(this,1)" data-id="' + divlen + '" name="image_' + divlen + '" id="image_' + divlen + '" class="form-control" />' +
|
|
'<span class="help-block text-center">' +
|
|
'<textarea oninput="updateValueSTTInquiry(this)" onchange="updateValueSTTInquiry(this)" onkeyup="updateValueSTTInquiry(this)" class="form-control" name="image_text_area_' + divlen + '" rows="12" style="height:261px;"></textarea>' +
|
|
'</span>' +
|
|
'<div class="row">\n' +
|
|
'<div class="col-md-12">\n' +
|
|
' <select name="rebuttal_' + divlen + '" id="" class="form-control" disabled>\n' +
|
|
' <option value="">Choose Item</option>\n' +
|
|
' <option value="1">Account REBUTTAL</option>\n' +
|
|
' <option value="2">INQUIRY REBUTTAL</option>\n' +
|
|
' </select>\n' +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<div class="col-sm-1">' +
|
|
'<label id="label1"><a style="cursor:hand;cursor:pointer;margin-right: 30px;" onClick="clearFile(this);" data-id="' + divlen + '">Clear</a></label>' +
|
|
'</div>' +
|
|
'<div class="col-sm-4 acc-issues-div">' +
|
|
item_attack_discont +
|
|
'<label class="pull-left control-label">Account Number Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-num-sub" style="pointer-events:none">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-num-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="1" data-view="Account number is MISSING or NOT REPORTED" /> Account number is MISSING or NOT REPORTED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="2" data-view="ACCOUNT NUMBER IS INACCURATE" /> ACCOUNT NUMBER IS INACCURATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="3" data-view="Account Number TRUNCATION has EXACTLY FOUR" /> Account Number TRUNCATION has EXACTLY FOUR</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="4" data-view="Account Number TRUNCATION has ONLY THREE OR LESS" /> Account Number TRUNCATION has ONLY THREE OR LESS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="5" data-view="Account Number TRUNCATION has FIVE OR MORE" /> Account Number TRUNCATION has FIVE OR MORE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="-1" data-view="OTHER" /> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_number_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Aspect Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-aspect-sub" style="pointer-events:none">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-aspect-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="1"> ACCOUNTNAME/CREDITORNAME/DFNAME</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="2"> DF/CREDITORADDRESSISSUES</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="3"> Accountberissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="4"> OriginalCreditor(OC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="5"> ReportedName(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="6"> Nameidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="7"> ReportedAddress(es)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="8"> Addressidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="9"> AddressResidenceType(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="10"> AddressGeographicCode(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="11"> ReportedDateOfBirth(orYearofBirth)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="12"> Reportedtelephoneber(s)issue(s)akacontact(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="13"> Spouse(s)/co-applicant(s)/roommate(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="14"> Employer(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="15"> Employment/JobDescription(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="16"> ReinvestigationInformation</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="17"> AccountHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="18"> OnRecorduntil</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="19"> Monthlypayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="20"> AccountResponsibility</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="21"> paymentAmount(orRecentpaymentAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="22"> PaymentHistoryGuide</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="23"> BalanceHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="24"> DateofREQUEST(Inquiry)(akaDateOfPermissiblePurposeakaDOPP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="25"> INQUIRY TYPE ake Permissible Purpose Type</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="26"> DATEOPEN(OpenDate)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="27"> CURRENTBALANCEAMOUNT(BALANCE)(RecentBalanceReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="28"> PastDueBALANCEreported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="29"> CreditLIMIT(HighLimitReported)(orOriginalAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="30"> Highbalancereported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="31"> LATEPAYMENTDATE(LPD)akaDateofLatePayment(DOLP)reported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="32"> DOFD DATE OF FIRST DEL INQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="33"> DFMD-DATEofFIRSTMAJORDELINQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="34"> STATUSDATEissue(s)akaDateofStatusissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="35"> Status</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="36"> DateVERIFIEDissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="37"> BALANCEDATEissue(s)(akaBalanceUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="38"> PAYMENTDATEakaDATEOFPAYMENT(DOP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="39"> STATUSDATE/DATEOFSTATUSnotmatchingReportingDate/Balancedate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="40"> DATEVERIFIEDnotmatchingReportingDate/StatusDate/BalanceDate/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="41"> BALANCEDATEnotmatchingReportingDate/StatusDate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="42"> DateREPORTED(akaREPORTDATE)(akaFirstReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="43"> DATEFILEDakaFILINGDATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="44"> Plaintiffofpublicrecord</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="45"> DATEDISMISSED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="46"> DATEDISCHARGED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="47"> LIABILITYLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="48"> ASSETAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="49"> ACCOUNTCOMMENTS/NOTATIONS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="50"> MONTHLYPAYMENTAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="51"> DOLP-DATEofLASTPAYMENT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="52"> DOLA-DATEOFLASTACTIVITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="53"> CHARGE-OFFAMOUNT(akaCOA)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="54"> CHARGE-OFFDATE(akaCOD)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="55"> ACCOUNTTYPE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="56"> ACCOUNTOWNERSHIP/RESPONSIBILITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="57"> ACCOUNTHIGHLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="58"> ACCOUNTTERMS(akaberOfMonths)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="59"> ACCOUNTHISTORICALPAYMENTGRIDorMONTHTOMONTHDISPLAY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="60"> ACCOUNT30/60/90STATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="61"> DATEREPORTED(REPORTDATE)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="62"> ACCOUNTSTATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="63"> STATUSDATE(akaStatusUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="64"> HIGHBALANCEAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="65"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="66"> BalloonPayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="67"> CreditorContactPhone</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="68"> CreditorContactAddress</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="69"> CompanySold-to</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="70"> CreditorClassificationCode(CCC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="71"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="72"> DEROGATORYCONDITIONnotspecificbutalleged</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="73"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_aspect_other_' + divlen + '" id="acc-aspect" class="form-control remove-textarea" rows="5">' +
|
|
'</textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Derogatory Type</label>' +
|
|
'<dl class="dropdown-x" id="acc-derogatory-sub" style="pointer-events:none">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-derogatory-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Bankruptcy Public Record Option" value="1"> Bankruptcy Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Judgment Public Record Option" value="4"> Judgment Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Tax Lien Public Record Option" value="7"> Tax Lien Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Foreclosure Option" value="10"> Foreclosure Option </li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Short Sale Option" value="13"> Short Sale Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Repossession Option" value="16"> Repossession Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Child Support Arrears Option" value="19"> Child Support Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Alimony Arrears Option" value="21"> Alimony Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Charge-Off Option" value="23"> Charge-Off Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="REGULAR Non-Medical Debt Collection Option" value="25"> REGULAR Non-Medical Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="MEDICAL Debt Collection Option" value="28"> MEDICAL Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY/DELINQUENT STUDENT LOAN Option" value="32"> DEROGATORY/DELINQUENT STUDENT LOAN Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Late Payment Option" value="34"> Late Payment Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Inquiry Option" value="36"> Inquiry Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY CLAIM Option" value="38"> DEROGATORY CLAIM Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEFICIENT REPORTED DATA Option" value="41"> DEFICIENT REPORTED DATA Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="OTHER" value="-1"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_derogatory_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Other</label>' +
|
|
'<span class="help-block text-center"> ' +
|
|
'<textarea disabled onkeyup="accOtherkepress(this)" name="acc_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>'
|
|
|
|
+'</div>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label id="label1"><a onclick="addImageBtn()" id="add-image-btn" style="padding: 1px 6px;margin-right:10px;" class="btn btn-success"><i class="fa fa-plus"></i></a></label>' +
|
|
'<label id="label1"><a onclick="removeImageArea(this)" data-id="slot_' + index + '_' + click + '" id="remove" style="padding: 1px 6px;" class="btn btn-danger"><i class="fa fa-minus"></i></a></label>' +
|
|
'</div>'
|
|
|
|
+
|
|
inquiry_with_stt +
|
|
'</div>'; +
|
|
'</div>';
|
|
|
|
|
|
|
|
$('#image-area').append(html);
|
|
checkDestinationAndDisabled(divlen);
|
|
$('#item-bank_' + divlen + ' a').addClass('disable-elem');
|
|
$('#item-bank_' + divlen).css({
|
|
'pointer-events': 'none'
|
|
});
|
|
//$('#item-bank_'+divlen).addClass('disable-elem');
|
|
$('select[name=item_discount_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_ownership_' + divlen + ']').attr('disabled', true);
|
|
|
|
|
|
$('#acc-aspect-sub_' + divlen).parents('dl.acc-aspect-sub').first().css({
|
|
'pointer-events': 'none'
|
|
});
|
|
|
|
var enhance_check = $('#velocity-quick-' + divlen);
|
|
$('#velocity-quick-' + divlen + ' dd ul li input[type=checkbox]').each(function() {
|
|
if ($(this).val() == 4 && $(this).prop('checked')) {
|
|
//$(this).click();
|
|
return false;
|
|
}
|
|
})
|
|
$('#velocity-quick-' + divlen).children('p#dest-id').html('');
|
|
// if(enhance_check.prop('checked')){
|
|
// enhance_check.prop('checked',false)
|
|
// }
|
|
enhance_check.find('a').first().addClass('disable-elem');
|
|
enhance_check.css({
|
|
'pointer-events': 'none'
|
|
});
|
|
$('select[name=item_bankCategory_' + divlen + ']').attr('disabled', true);
|
|
$('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
|
|
$('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
//$('#item-public-category_' + divlen).html($publicrecordHtml);
|
|
$('select[name=item_public_category_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_inquirey_' + divlen + ']').change();
|
|
|
|
$('input[name="negative_inq_item_' + divlen + '[]"]').map(function() {
|
|
if ($.inArray(parseInt($(this).val()), selected_inqury_ids) !== -1) {
|
|
if (!$(this).prop('checked')) {
|
|
$(this).click();
|
|
}
|
|
}
|
|
|
|
});
|
|
var inq_div = divlen;
|
|
inq_div--;
|
|
//first_selected_inquries
|
|
|
|
if (first_selected_inquries) {
|
|
//console.log('test8')
|
|
$('textarea[name=image_text_area_' + divlen + ']').val(first_selected_inquries);
|
|
if ($('textarea[name=image_text_area_' + divlen + ']').val())
|
|
$('input[name="sttInquery_' + inq_div).val($('textarea[name=image_text_area_' + divlen + ']').val())
|
|
}
|
|
var isUpdated = $('input[name=isClientSelect]').val();
|
|
if (isUpdated == 0) {
|
|
//checkboxcheckedWithoutOther(divlen);
|
|
}
|
|
scroll_to();
|
|
return html;
|
|
}
|
|
|
|
function getSelectedDestinationHTML(divlen) {
|
|
var newCheckboxString = '<div class="form-group ">' +
|
|
'<div class="dest-checkbox" id="dest-checkbox_' + divlen + '">' +
|
|
'<ul style="list-style:none;" id="dest_ul_check_' + divlen + '">' +
|
|
'<li><input checked onclick="makeAllCheck(this)" class="dest_check_' + divlen + ' remove-all " id="dest_check_' + divlen + '" name="dest_check_' + divlen + '[]" type="checkbox" value="1" style="pointer-events: none; cursor: context-menu;"> EXPERIAN DESTINATIONS</li>' +
|
|
'<li><input checked onclick="makeAllCheck(this)" class="dest_check_' + divlen + ' remove-all " id="dest_check_' + divlen + '" name="dest_check_' + divlen + '[]" type="checkbox" value="2" style="pointer-events: none; cursor: context-menu;"> EQUIFAX DESTINATIONS</li>' +
|
|
'<li><input checked onclick="makeAllCheck(this)" class="dest_check_' + divlen + ' remove-all " id="dest_check_' + divlen + '" name="dest_check_' + divlen + '[]" type="checkbox" value="3" style="pointer-events: none; cursor: context-menu;"> TRANS UNION DESTINATIONS</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</div>';
|
|
return newCheckboxString;
|
|
}
|
|
|
|
|
|
function getSTTContentNew(current_divlen, index) {
|
|
var click = 0;
|
|
var isNotSTT = false;
|
|
|
|
//console.log('Inside GetACCContent: \n Index: '+index+' Click: '+click);
|
|
var len = $('.input-file-field').length;
|
|
var divlen = len;
|
|
SLOT[ARRAY_INDEX]++;
|
|
$('input[name=slot_array]').val(SLOT);
|
|
var isAccImageExist = '<input type="hidden" name="isAccImageExist_' + divlen + '" value="0">';
|
|
var bankList = dynamicBankList(divlen);
|
|
var inquiry_dropdown = getInquiryItemCategoryDropDown(divlen);
|
|
var df_div = dfDropDownTextArea(divlen);
|
|
$publicrecordHtml = getPublicRecordDropDown(divlen);
|
|
//alert($publicrecordHtml);
|
|
var is_stt = '<input type="hidden" value="0" class="" name="isSTT_' + divlen + '" />';
|
|
var inquiry_with_stt = '<input type="hidden" value="0" class="sttInq" name="sttInquery_' + index + '" />';
|
|
inquiry_with_stt += is_stt;
|
|
if ($('select[name=select]').val() == 0) {
|
|
$publicrecordHtml = "";
|
|
}
|
|
var imageTagArea = df_div + '<div class="col-sm-5 col-sm-offset-1">' +
|
|
'<div class="view-img">' +
|
|
'<img id="acc_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="enhance_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'<img id="inquiry_img_' + divlen + '" style="display:none;" class="image-responsive" src=""/>' +
|
|
'</div>' +
|
|
'</div>';
|
|
|
|
var checkboxDiv = '<div class="form-group remove-all">' +
|
|
'<div class="dest-checkbox" id="dest-checkbox_' + divlen + '">' +
|
|
'<ul style="list-style:none;" id="dest_ul_check_' + divlen + '">' +
|
|
checkboxString +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</div>';
|
|
var itemcategoryDiv = '<div id="item-category_' + divlen + '"></div>';
|
|
var publicRecordcategoryDiv = '<div id="item-public-category_' + divlen + '" class="publicRecordcategoryDiv"></div>';
|
|
var item_attack_discont = itemcategoryDiv + '<label class="pull-left control-label">Item' + "'" + 's attack number</label>' +
|
|
'<select onchange="getItemAttackValue(this)" class="form-control" name="item_attack_num_' + divlen + '">' +
|
|
'<option value="0">Choose Item</option>\n' +
|
|
'<option value="1">This is FIRST TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="2">This is SECOND TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="3">This is THIRD TIME using the M2CA methods for THIS ITEM</option>' +
|
|
'<option value="4">I DO NOT KNOW if this is FIRST, SECOND, ETC. time using a M2CA method!</option>' +
|
|
'</select>' +
|
|
inquiry_dropdown +
|
|
bankList +
|
|
publicRecordcategoryDiv +
|
|
'<label class="pull-left control-label">Ownership/Responsibility of item issues</label>\n' +
|
|
'<select class="form-control" name="item_ownership_' + divlen + '">\n' +
|
|
'<option value="">Choose Item</option>\n' +
|
|
'<option value="1">Item is mine YET is NOT proven COMPLIANT in its reporting.</option>' +
|
|
'<option value="2">This item is NOT MINE and is result of FRAUD and or IDENTITY THEFT.</option>' +
|
|
'<option value="3">ITEM IS MINE, but I AM NOT LIABLE due to FRAUDULENT activities.</option>' +
|
|
'<option value="4">Item has too many inconsistencies and or deficiencies to be VALID and COMPLIANT!</option>' +
|
|
'<option value="5">I do not know</option>' +
|
|
' </select>' +
|
|
'<label class="pull-left control-label">Item Discontinuance</label>' +
|
|
'<select onchange="getItemDiscont(this)" class="form-control" name="item_discount_' + divlen + '">' +
|
|
'<option value="">Choose Item</option>' +
|
|
'<option value="1">This ITEM is a PERSONAL ITEM</option>' +
|
|
'<option value="2">This ITEM is an INQUIRY ALLEGATION</option>' +
|
|
'<option value="3">This ITEM is an ACCOUNT</option>' +
|
|
'<option value="4">This ITEM is NOT A PERSONAL IDENTIFIER ITEM, NOT AN INQUIRY, NOT AN ACCOUNT</option>' +
|
|
'</select>';
|
|
|
|
var velocityQuickStartDropdown = setVelocityQuickStartDropDown(divlen);
|
|
var allCheck = '<div class="row remove-all">' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="form-group remove-all view-allcheck">' +
|
|
attAllcheck +
|
|
'</div>' +
|
|
'</div> ' +
|
|
'<div class="col-md-6">' +
|
|
'<div class="row">' +
|
|
velocityQuickStartDropdown +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>';
|
|
var slot_title = "<div class='row'>" +
|
|
"<div class='col-md-12'>" +
|
|
"<label id='slot-title_" + divlen + "' style='width:100%;'></label>" +
|
|
"</div>" +
|
|
"</div>";
|
|
|
|
var html = '<div id="slot_' + index + '_' + click + '" class="remove-view-slot"><hr>' + slot_title + allCheck + checkboxDiv + '<div class="form-group input-file-field counter remove-all" id="input-file-field">' +
|
|
'<div class="row">' +
|
|
imageTagArea +
|
|
'<div class="col-md-6">' +
|
|
'<label class="control-label"> Click the Drop Down Box To Help Explain The Possible Issues with this Item</label>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<br>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label class="control-label" style="padding:0;">Item Image <br> (PNG/JPEG)<br><div style="margin-top:80px;">Put In The Box:<br>Account Name<br>Data Furnisher Address<br>Account Number</div></label>' +
|
|
'<label class="control-label rebuttal-class rebuttal-class1">REBUTTAL</label>\n' +
|
|
'</div>' +
|
|
'<div class="col-sm-3">' +
|
|
'<input type="hidden" value="0" name="acc_img_clear_' + divlen + '" id="acc_img_clear" />' +
|
|
'<input type="hidden" value="" name="temp_acc_img_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
isAccImageExist +
|
|
'<input type="hidden" value="0" name="check_indicator_' + divlen + '" id="temp_acc_img_' + divlen + '" />' +
|
|
'<input type="hidden" name="acc_img_url_' + divlen + '" value id="acc_img_url_' + divlen + '"/>' +
|
|
'<input type="file" onchange="uploadphotos(this,1)" data-id="' + divlen + '" name="image_' + divlen + '" id="image_' + divlen + '" class="form-control" />' +
|
|
'<span class="help-block text-center">' +
|
|
'<textarea oninput="updateValueSTTInquiry(this)" onchange="updateValueSTTInquiry(this)" onkeyup="updateValueSTTInquiry(this)" class="form-control" name="image_text_area_' + divlen + '" rows="12" style="height:261px;"></textarea>' +
|
|
'</span>' +
|
|
'<div class="row">\n' +
|
|
'<div class="col-md-12">\n' +
|
|
' <select name="rebuttal_' + divlen + '" id="" class="form-control">\n' +
|
|
' <option value="">Choose Item</option>\n' +
|
|
' <option value="1">Account REBUTTAL</option>\n' +
|
|
' <option value="2">INQUIRY REBUTTAL</option>\n' +
|
|
' </select>\n' +
|
|
'</div>\n' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'<div class="col-sm-1">' +
|
|
'<label id="label1"><a style="cursor:hand;cursor:pointer;margin-right: 30px;" onClick="clearFile(this);" data-id="' + divlen + '">Clear</a></label>' +
|
|
'</div>' +
|
|
'<div class="col-sm-4 acc-issues-div">' +
|
|
item_attack_discont +
|
|
'<label class="pull-left control-label">Account Number Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-num-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-num-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="1" data-view="Account number is MISSING or NOT REPORTED" /> Account number is MISSING or NOT REPORTED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="2" data-view="ACCOUNT NUMBER IS INACCURATE" /> ACCOUNT NUMBER IS INACCURATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="3" data-view="Account Number TRUNCATION has EXACTLY FOUR" /> Account Number TRUNCATION has EXACTLY FOUR</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="4" data-view="Account Number TRUNCATION has ONLY THREE OR LESS" /> Account Number TRUNCATION has ONLY THREE OR LESS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="5" data-view="Account Number TRUNCATION has FIVE OR MORE" /> Account Number TRUNCATION has FIVE OR MORE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_number_issues_sub_' + divlen + '[]" type="checkbox" value="-1" data-view="OTHER" /> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_number_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Aspect Issues</label>' +
|
|
'<dl class="dropdown-x" id="acc-aspect-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-aspect-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="1"> ACCOUNTNAME/CREDITORNAME/DFNAME</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="2"> DF/CREDITORADDRESSISSUES</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="3"> Accountberissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="4"> OriginalCreditor(OC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="5"> ReportedName(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="6"> Nameidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="7"> ReportedAddress(es)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="8"> Addressidentificationber(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="9"> AddressResidenceType(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="10"> AddressGeographicCode(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="11"> ReportedDateOfBirth(orYearofBirth)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="12"> Reportedtelephoneber(s)issue(s)akacontact(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="13"> Spouse(s)/co-applicant(s)/roommate(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="14"> Employer(s)issue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="15"> Employment/JobDescription(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="16"> ReinvestigationInformation</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="17"> AccountHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="18"> OnRecorduntil</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="19"> Monthlypayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="20"> AccountResponsibility</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="21"> paymentAmount(orRecentpaymentAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="22"> PaymentHistoryGuide</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="23"> BalanceHistory</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="24"> DateofREQUEST(Inquiry)(akaDateOfPermissiblePurposeakaDOPP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="25"> INQUIRY TYPE ake Permissible Purpose Type</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="26"> DATEOPEN(OpenDate)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="27"> CURRENTBALANCEAMOUNT(BALANCE)(RecentBalanceReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="28"> PastDueBALANCEreported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="29"> CreditLIMIT(HighLimitReported)(orOriginalAmount)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="30"> Highbalancereported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="31"> LATEPAYMENTDATE(LPD)akaDateofLatePayment(DOLP)reported</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="32"> DOFD DATE OF FIRST DEL INQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="33"> DFMD-DATEofFIRSTMAJORDELINQUENCY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="34"> STATUSDATEissue(s)akaDateofStatusissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="35"> Status</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="36"> DateVERIFIEDissue(s)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="37"> BALANCEDATEissue(s)(akaBalanceUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="38"> PAYMENTDATEakaDATEOFPAYMENT(DOP)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="39"> STATUSDATE/DATEOFSTATUSnotmatchingReportingDate/Balancedate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="40"> DATEVERIFIEDnotmatchingReportingDate/StatusDate/BalanceDate/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="41"> BALANCEDATEnotmatchingReportingDate/StatusDate/DateVerified/DateUpdated</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="42"> DateREPORTED(akaREPORTDATE)(akaFirstReported)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="43"> DATEFILEDakaFILINGDATE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="44"> Plaintiffofpublicrecord</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="45"> DATEDISMISSED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="46"> DATEDISCHARGED</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="47"> LIABILITYLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="48"> ASSETAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="49"> ACCOUNTCOMMENTS/NOTATIONS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="50"> MONTHLYPAYMENTAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="51"> DOLP-DATEofLASTPAYMENT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="52"> DOLA-DATEOFLASTACTIVITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="53"> CHARGE-OFFAMOUNT(akaCOA)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="54"> CHARGE-OFFDATE(akaCOD)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="55"> ACCOUNTTYPE</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="56"> ACCOUNTOWNERSHIP/RESPONSIBILITY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="57"> ACCOUNTHIGHLIMIT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="58"> ACCOUNTTERMS(akaberOfMonths)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="59"> ACCOUNTHISTORICALPAYMENTGRIDorMONTHTOMONTHDISPLAY</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="60"> ACCOUNT30/60/90STATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="61"> DATEREPORTED(REPORTDATE)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="62"> ACCOUNTSTATUS</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="63"> STATUSDATE(akaStatusUpdated)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="64"> HIGHBALANCEAMOUNT</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="65"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="66"> BalloonPayment</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="67"> CreditorContactPhone</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="68"> CreditorContactAddress</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="69"> CompanySold-to</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="70"> CreditorClassificationCode(CCC)</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="71"> PaymentStatusDetails</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="72"> DEROGATORYCONDITIONnotspecificbutalleged</li>' +
|
|
'<li><input onclick="getAccOption(this);" name="acc_aspect_issues_sub_' + divlen + '[]" type="checkbox" value="73"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_aspect_other_' + divlen + '" id="acc-aspect" class="form-control remove-textarea" rows="5">' +
|
|
'</textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Account Derogatory Type</label>' +
|
|
'<dl class="dropdown-x" id="acc-derogatory-sub">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="acc-derogatory-sub_' + divlen + '">' +
|
|
'<ul>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Bankruptcy Public Record Option" value="1"> Bankruptcy Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Judgment Public Record Option" value="4"> Judgment Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Tax Lien Public Record Option" value="7"> Tax Lien Public Record Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Foreclosure Option" value="10"> Foreclosure Option </li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Short Sale Option" value="13"> Short Sale Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Repossession Option" value="16"> Repossession Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Child Support Arrears Option" value="19"> Child Support Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Alimony Arrears Option" value="21"> Alimony Arrears Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Charge-Off Option" value="23"> Charge-Off Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="REGULAR Non-Medical Debt Collection Option" value="25"> REGULAR Non-Medical Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="MEDICAL Debt Collection Option" value="28"> MEDICAL Debt Collection Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY/DELINQUENT STUDENT LOAN Option" value="32"> DEROGATORY/DELINQUENT STUDENT LOAN Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Late Payment Option" value="34"> Late Payment Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="Inquiry Option" value="36"> Inquiry Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEROGATORY CLAIM Option" value="38"> DEROGATORY CLAIM Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="DEFICIENT REPORTED DATA Option" value="41"> DEFICIENT REPORTED DATA Option</li>' +
|
|
'<li><input onclick="getAccOption(this);" id="acc-derogatory-issues-sub_1" name="acc_derogatory_issues_sub_' + divlen + '[]" type="checkbox" data-view="OTHER" value="-1"> OTHER</li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'<span class="help-block text-center" style="display:none;">' +
|
|
'<textarea name="acc_derogatory_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>' +
|
|
'<label class="pull-left control-label">Other</label>' +
|
|
'<span class="help-block text-center"> ' +
|
|
'<textarea onkeyup="accOtherkepress(this)" name="acc_other_' + divlen + '" id="acc-other" class="form-control" rows="5"></textarea>' +
|
|
'</span>'
|
|
|
|
+'</div>' +
|
|
'<div class="col-sm-2">' +
|
|
'<label id="label1"><a onclick="addImageBtn()" id="add-image-btn" style="padding: 1px 6px;margin-right:10px;" class="btn btn-success"><i class="fa fa-plus"></i></a></label>' +
|
|
'<label id="label1"><a onclick="removeImageArea(this)" data-id="slot_' + index + '_' + click + '" id="remove" style="padding: 1px 6px;" class="btn btn-danger"><i class="fa fa-minus"></i></a></label>' +
|
|
'</div>'
|
|
|
|
+
|
|
inquiry_with_stt +
|
|
'</div>'; +
|
|
'</div>';
|
|
|
|
|
|
|
|
$('#image-area').find('.input-file-field').first().after(html);
|
|
|
|
$('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
|
|
$('#dest_ul_check_' + divlen).children('li').children('input').attr('name', 'dest_check_' + divlen + '[]');
|
|
$('#item-public-category_' + divlen).html($publicrecordHtml);
|
|
|
|
$('select[name=item_inquirey_' + index + ']').change();
|
|
|
|
$('input[name="negative_inq_item_' + index + '[]"]').map(function() {
|
|
if (!$(this).prop('checked')) {
|
|
$(this).click();
|
|
}
|
|
});
|
|
|
|
|
|
return divlen;
|
|
}
|
|
|
|
function getSlotLevel(index) {
|
|
|
|
//console.log('\ngetSlotLevel function: index-'+index+'\n');
|
|
html = '<div class="col-md-12 remove-view-slot" id="slot_level_' + index + '"> <hr style="height:30px;border:none;color:#6cbdce;background-color:#6cbdce;" /> <h3 class="text-center">New Letter Set Below</h3> </div>';
|
|
$('#image-area').append(html);
|
|
}
|
|
|
|
function checkContentPermission(click_count) {
|
|
//console.log('checkContentPermission Click:'+click_count);
|
|
if ((click_count > 0 && click_count <= SLOT_ITEM) || (click_count > SLOT_ITEM + 1 && click_count <= MAX_SLOT_ITEM)) {
|
|
return 1;
|
|
} else if (click_count == SLOT_ITEM + 1) {
|
|
confirmMinimum();
|
|
return;
|
|
//akakib
|
|
} else if (click_count == MAX_SLOT_ITEM + 1) {
|
|
confirmMaximum();
|
|
return;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
function confirmMinimum() {
|
|
|
|
|
|
swal("Oops! You have exceeded the suggested amount of items per this section. We suggest you add the next " + SLOT_ITEM + " on the Next Letter sets. Click Continue to start, click No Thank you to continue on this letter set.", {
|
|
title: 'Confirm',
|
|
closeOnClickOutside: false,
|
|
buttons: {
|
|
defeat: "No, Thank you",
|
|
catch: {
|
|
text: "Continue",
|
|
value: "catch",
|
|
color: "red"
|
|
}
|
|
},
|
|
|
|
})
|
|
.then((value) => {
|
|
switch (value) {
|
|
|
|
case "catch":
|
|
executeContinue();
|
|
break;
|
|
|
|
case "defeat":
|
|
executeNoThanks();
|
|
|
|
break;
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function confirmMaximum() {
|
|
|
|
|
|
swal("Congratulations!! You have hit the suggested " + MAX_SLOT_ITEM + " items for this letter set. You are ready to save and generate. Click the Green button below to start. Or Click No Thank you To Start Your New Letter Set and continue", {
|
|
title: "Confirm",
|
|
closeOnClickOutside: false,
|
|
buttons: {
|
|
defeat: "No, Thank you",
|
|
cancel: "Save",
|
|
catch: {
|
|
text: "Save and Generate",
|
|
value: "generate",
|
|
color: "red"
|
|
}
|
|
},
|
|
})
|
|
.then((value) => {
|
|
switch (value) {
|
|
|
|
case "defeat":
|
|
|
|
executeContinue();
|
|
break;
|
|
case "generate":
|
|
CLICK[ARRAY_INDEX]--;
|
|
TOTAL_CLICK--;
|
|
$('#generate_button').trigger('click');
|
|
|
|
break;
|
|
default:
|
|
CLICK[ARRAY_INDEX]--;
|
|
TOTAL_CLICK--;
|
|
$('#save_button').trigger('click');
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function executeContinue(isNotSTT) {
|
|
var divlen = 0;
|
|
CLICK[ARRAY_INDEX]--;
|
|
ARRAY_INDEX++;
|
|
getSlotLevel(ARRAY_INDEX);
|
|
SLOT[ARRAY_INDEX] = 1;
|
|
CLICK[ARRAY_INDEX] = 1;
|
|
divlen = getAccContentNew(ARRAY_INDEX, CLICK[ARRAY_INDEX], isNotSTT);
|
|
scroll_to();
|
|
$('input[name=slot_array]').val(SLOT);
|
|
return divlen;
|
|
}
|
|
|
|
function executeNoThanks(isNotSTT) {
|
|
var divlen = 0;
|
|
divlen = getAccContentNew(ARRAY_INDEX, CLICK[ARRAY_INDEX], isNotSTT);
|
|
SLOT[ARRAY_INDEX]++;
|
|
scroll_to();
|
|
$('input[name=slot_array]').val(SLOT);
|
|
return divlen;
|
|
}
|
|
|
|
function removeImageArea(own) {
|
|
|
|
var selected_slot = ($(own).data('id'));
|
|
//console.log(selected_slot);
|
|
$('#' + selected_slot).remove();
|
|
TOTAL_CLICK--;
|
|
//console.log('Total click:' +TOTAL_CLICK);
|
|
CLICK[ARRAY_INDEX]--;
|
|
SLOT[ARRAY_INDEX]--;
|
|
if (CLICK[ARRAY_INDEX] == 0 || SLOT[ARRAY_INDEX] == 0) {
|
|
//console.log(ARRAY_INDEX);
|
|
$('#slot_level_' + ARRAY_INDEX).remove();
|
|
ARRAY_INDEX--;
|
|
}
|
|
$('input[name=slot_array]').val(SLOT);
|
|
|
|
}
|
|
|
|
function scroll_to() {
|
|
|
|
var itemNum = $('.counter').length;
|
|
var slot_id = "slot-title_" + itemNum;
|
|
$([document.documentElement, document.body]).animate({
|
|
scrollTop: $('#' + slot_id).offset().top
|
|
}, 300);
|
|
}
|
|
|
|
function removeattach(own) {
|
|
////console.log($(own).parents('div#att-area-remove'));
|
|
$(own).parents('div#att-area-remove').remove();
|
|
/*$(own).parent().parent().parent().parent().prev('div').prev('div').prev('div').prev('div').remove();
|
|
$(own).parent().parent().parent().parent().prev('div').prev('div').prev('div').remove();
|
|
$(own).parent().parent().parent().parent().prev('div').prev('div').remove();
|
|
$(own).parent().parent().parent().parent().prev('div').remove();
|
|
$(own).parent().parent().parent().parent().remove();*/
|
|
|
|
}
|
|
|
|
function addAttachament(isNotFirst = 1) {
|
|
if (isNotFirst) {
|
|
if ($('#dest-id').children().length == 0) {
|
|
alert("Please select at least one destination.");
|
|
return false;
|
|
}
|
|
}
|
|
var attLength = $('.add-new-attach').length
|
|
attLength = attLength + 1;
|
|
var imageTagArea = '<div class="form-group remove-all">' +
|
|
'<div class="view-img">' +
|
|
'<img id="att_img_' + attLength + '" style="display:none;" class="image-responsive" src="__SERVER_URL__webroot/cmsuser_logo/invoice-logo.png"/>' +
|
|
'</div>' +
|
|
'</div>';
|
|
|
|
|
|
var allCheck = '<div class="form-group remove-all view-allcheck">' +
|
|
attAllcheck +
|
|
'</div>';
|
|
|
|
var checkboxDiv = '<div class="form-group remove-all">' +
|
|
'<div class="att-checkbox" id="att-checkbox_' + attLength + '">' +
|
|
'<ul style="list-style:none;" id="att_ul_check_' + attLength + '">' +
|
|
attcheckboxString +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</div>';
|
|
|
|
var onclick = 'onClick="clearImage(' + attLength + ')"';
|
|
var title = '<div class="form-group remove-all">' +
|
|
'<label class="col-md-12" style="text-align:center;">Add Image Here for Proof: Example: SS, Proof ID, Current Bill ect. Must be PNG or JPEG</label>' +
|
|
'</div>';
|
|
var attachHtml = '<div class="form-group add-new-attach remove-all" >' +
|
|
'<div class="col-md-12">' +
|
|
'<div class="row">' +
|
|
'<div class="col-md-offset-3 col-md-6">' +
|
|
'<input type="hidden" value="0" name="isExistAttach_' + attLength + '" />' +
|
|
'<input type="hidden" name="att_img_clear_' + attLength + '" value="0" id="att_img_clear" />' +
|
|
'<input type="hidden" name="temp_attachment_' + attLength + '" value="" id="temp_attachment_' + attLength + '" />' +
|
|
'<input type="hidden" name="attachment_img_url_' + attLength + '" value="" id="attachment_img_url_' + attLength + '" />' +
|
|
'<input type="file" data-id="' + attLength + '" onchange="uploadphotos(this,2)" name="attachment_' + attLength + '" id="' + attLength + '" class="form-control" >' +
|
|
'</div>' +
|
|
'<div class="col-md-1 col-xs-12">' +
|
|
'<label id="label1"><a style="cursor:hand;cursor:pointer;" ' + onclick + ' data-id="4">Clear</a></label>' +
|
|
'</div>' +
|
|
'<div class="col-md-1 col-xs-3" style="margin-right:-30px;">' +
|
|
'<label id="label1"><a onclick="addAttachament()" id="add-image-btn" style="padding: 1px 6px;" class="btn btn-success"><i class="fa fa-plus"></i></a></label>' +
|
|
'</div>' +
|
|
'<div class="col-md-1 col-xs-3">' +
|
|
'<label id="label1"><a onclick="removeattach(this)" id="remove" style="padding: 1px 6px;" class="btn btn-danger"><i class="fa fa-minus"></i></a></label>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'</div>';
|
|
// var attLength = $('.add-new-attach').length
|
|
//alert(attLength);
|
|
if (attLength <= 20) {
|
|
$('#add-new-attach').append('<div id="att-area-remove" class="client-remove-div">' + allCheck + checkboxDiv + imageTagArea + title + attachHtml + '</div>');
|
|
$('#att_ul_check_' + attLength).children('li').children('input').attr('name', 'att_check_' + attLength + '[]');
|
|
|
|
}
|
|
|
|
var isUpdated = $('input[name=isClientSelect]').val();
|
|
if (isUpdated == 0) {
|
|
checkboxcheckedWithoutOther(attLength, false);
|
|
}
|
|
//
|
|
autogeneratedCheckboxRemovedFromAttachement();
|
|
}
|
|
|
|
function addOtherAcc(elem) {
|
|
|
|
var value = $(elem).val();
|
|
|
|
$(elem).nextAll('.help-block').first().hide();
|
|
if (value != null) {
|
|
if (value.indexOf('-1') != -1) {
|
|
|
|
// $(elem).nextAll('.help-block').first().children('textarea').attr('placeholder','ddddddddd');
|
|
$(elem).nextAll('.help-block').first().show();
|
|
}
|
|
}
|
|
}
|
|
|
|
function clearFile(elem) {
|
|
//acc_img_clear
|
|
$(elem).parent().parent().prev('div').children('input#acc_img_clear').val(1);
|
|
$(elem).parent().parent().prev('div').children('input[type=file]').first().val(null).change();
|
|
$('#acc_img_' + $(elem).data('id')).attr('src', '');
|
|
$('#acc_img_' + $(elem).data('id')).hide();
|
|
//$('input[name=temp_acc_img_'+$(elem).data('id')+']').val('');
|
|
$('input[name=isAccImageExist_' + $(elem).data('id') + ']').val(1);
|
|
$('input[name=check_indicator_' + $(elem).data('id') + ']').val(0);
|
|
}
|
|
|
|
|
|
function resetFullForm() {
|
|
|
|
//alert(1);
|
|
SLOT_END = 1;
|
|
CLICK = [];
|
|
TOTAL_CLICK = 1;
|
|
ARRAY_INDEX = 0;
|
|
SLOT_ARRAY_INDEX = 0;
|
|
SLOT = [];
|
|
SLOT[ARRAY_INDEX] = 1;
|
|
CLICK[ARRAY_INDEX] = 1;
|
|
|
|
$('.remove-view-slot').remove();
|
|
$('input[name=isNotSaved]').val(0);
|
|
//$('.select2').reset().trigger("change");
|
|
$('.mutliSelect input[type=checkbox]').each(function() {
|
|
//alert($(this).attr('checked'));
|
|
if ($(this).is(':checked')) {
|
|
$('.mutliSelect input[type="checkbox"][value=' + $(this).val() + ']').click();
|
|
//alert("checkbox "+$(this).val());
|
|
}
|
|
});
|
|
|
|
document.getElementById("inputformId").reset();
|
|
checkboxString = '';
|
|
attcheckboxString = '';
|
|
attAllcheck = '';
|
|
$('#select2').parent().parent().hide();
|
|
$('#other_address').hide();
|
|
$('.remove-textarea').parent().hide();
|
|
$('.remove-all').prev('hr').remove();
|
|
$('.remove-all').remove();
|
|
$('.att-image').hide();
|
|
$('.hida').remove();
|
|
$('.dest-checkbox li').remove();
|
|
$('.att-checkbox li').remove();
|
|
$('.view-allcheck').children().remove();
|
|
$('input[name=update_id]').val(0);
|
|
$('.disable-elem').removeClass();
|
|
$('textarea').attr('disabled', false);
|
|
$('.multiSel').children().remove();
|
|
$('.multiSel').prev('span').remove();
|
|
$('.multiSel').before('<span class="choose-dest" style="display: inline;">Choose Item</span>');
|
|
$('.mutliSelect').show();
|
|
$('.att-image').attr('src', '');
|
|
}
|
|
|
|
$('#resetForm').click(function() {
|
|
resetFullForm();
|
|
});
|
|
</script>
|
|
|
|
<script>
|
|
var options = [];
|
|
|
|
function chooseDropDown(elem) {
|
|
event.preventDefault();
|
|
|
|
$(elem).parent().parent().parent().children('dd').children('div.mutliSelect').children('ul').slideToggle('fast');
|
|
|
|
$(".dropdown-x dd ul").hide();
|
|
$(elem).parent().parent().next('dd').children('div').children('ul').show();
|
|
////console.log();
|
|
}
|
|
|
|
$(document).bind('click', function(e) {
|
|
|
|
var $clicked = $(e.target);
|
|
//alert($clicked);
|
|
if (!$clicked.parents().hasClass("dropdown-x"))
|
|
$(".dropdown-x dd ul").hide();
|
|
});
|
|
|
|
function getAccOption(elem, isTextArea = true) {
|
|
var isNotSaved = $('input[name=isNotSaved]').val();
|
|
|
|
if (isNotSaved == 1) {
|
|
getallAccLength(elem);
|
|
}
|
|
|
|
var value = $(elem).val();
|
|
var flag = false;
|
|
var title = $(elem).parent().text();
|
|
var multiSelP = $(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p.multiSel');
|
|
//alert(title);
|
|
var html = '<span class="hida" title="' + title + '">' + title + '</span>';
|
|
$(elem).parents('dl').next('span.help-block').hide();
|
|
if ($(elem).is(':checked')) {
|
|
|
|
multiSelP.prev("span").hide();
|
|
multiSelP.next("span").hide();
|
|
multiSelP.append(html);
|
|
|
|
|
|
if (value == 73 || value == 72) {
|
|
//alert(1234);
|
|
$(elem).parents('dl').next('span.help-block').show();
|
|
}
|
|
|
|
|
|
|
|
if (value == -1) {
|
|
flag = true;
|
|
$(elem).parent().parent().parent().parent().prev('dt').parent().next('.help-block').show();
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
multiSelP.children('span[title="' + title + '"]').remove();
|
|
//console.log('multiSelP',multiSelP,title);
|
|
|
|
}
|
|
|
|
if (!multiSelP.children("span").is(':visible')) {
|
|
//alert(12);
|
|
multiSelP.prev("span").show();
|
|
}
|
|
|
|
if (value != -1) {
|
|
//alert(12);
|
|
//$(elem).parent().parent().parent().parent().prev('dt').parent().next('.help-block').hide();
|
|
}
|
|
if (isTextArea) {
|
|
var isItemBank = $(elem).data('bank');
|
|
if (isItemBank) {
|
|
if ($(elem).prop('checked')) {
|
|
getBankInfo(elem);
|
|
}
|
|
var r1 = $(elem).attr('name').replace("item_bank_", "");
|
|
var divlen = r1.replace('[]', "");
|
|
getCreditReportContent($('input[name=auto_generate_image_' + divlen + ']'), false);
|
|
|
|
}
|
|
|
|
var isItemNegetive = $(elem).data('negative');
|
|
if (isItemNegetive) {
|
|
if ($(elem).prop('checked')) {
|
|
getSubCategoryInfo(elem);
|
|
}
|
|
var r1 = $(elem).attr('name').replace("negative_item_", "");
|
|
var divlen = r1.replace('[]', "");
|
|
getCreditReportContent($('input[name=auto_generate_image_' + divlen + ']'), false);
|
|
|
|
}
|
|
|
|
var isInqItemNegetive = $(elem).data('inq_negative');
|
|
if (isInqItemNegetive) {
|
|
if ($(elem).prop('checked')) {
|
|
getInquiriesSubCategoryInfo(elem);
|
|
}
|
|
var r1 = $(elem).attr('name').replace("negative_inq_item_", "");
|
|
var divlen = r1.replace('[]', "");
|
|
getCreditReportContent($('input[name=auto_generate_image_' + divlen + ']'), false);
|
|
|
|
}
|
|
|
|
var isPublicItemNegetive = $(elem).data('public_negative');
|
|
if (isPublicItemNegetive) {
|
|
if ($(elem).prop('checked')) {
|
|
getpublicSubCategoryInfo(elem);
|
|
}
|
|
var r1 = $(elem).attr('name').replace("public_negative_item_", "");
|
|
var divlen = r1.replace('[]', "");
|
|
getCreditReportContent($('input[name=auto_generate_image_' + divlen + ']'), false);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
function removeBank(elem) {
|
|
var multiSelP = $(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p.multiSel');
|
|
var title = $(elem).parent().text();
|
|
multiSelP.children('span[title="' + title + '"]').remove();
|
|
$(elem).prop('checked', false);
|
|
}
|
|
|
|
function addBankSelected(elem) {
|
|
var multiSelP = $(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p.multiSel');
|
|
var title = $(elem).parent().text();
|
|
var html = '<span class="hida" title="' + title + '">' + title + '</span>';
|
|
multiSelP.prev("span").hide();
|
|
multiSelP.next("span").hide();
|
|
multiSelP.append(html);
|
|
$(elem).prop('checked', true);
|
|
}
|
|
|
|
function getDestOption(elem) {
|
|
var value = $(elem).val();
|
|
//alert(value);
|
|
var flag = false;
|
|
var title = $(elem).data('view');
|
|
var multiSelP = $(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p.multiSel');
|
|
var tag = $('#address_' + value).next('div');
|
|
if ($(elem).is(':checked')) {
|
|
var html = '<span class="hida" title="' + title + '">' + title + '</span>';
|
|
multiSelP.append(html);
|
|
multiSelP.prev("span.choose-dest").hide();
|
|
|
|
|
|
} else {
|
|
multiSelP.children('span[title="' + title + '"]').remove();
|
|
|
|
}
|
|
|
|
if (value == -1) {
|
|
// //console.log();
|
|
$(elem).parents('dl').parent('div').parent('div').next('div').toggle();
|
|
}
|
|
}
|
|
|
|
|
|
function seteSelectedDropDownView(elem) {
|
|
var title = $(elem).data('view');
|
|
//alert(title);
|
|
var checkVal = $(elem).val();
|
|
var titleSpan = $(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p.multiSel');
|
|
|
|
if ($(elem).is(':checked')) {
|
|
var html = '<span class="hida" title="' + title + '">' + title + '</span>';
|
|
$(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p').append(html);
|
|
titleSpan.prev("span").hide();
|
|
} else {
|
|
$(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p').children('span[title="' + title + '"]').remove();
|
|
}
|
|
|
|
if (titleSpan.children('span').length == 0) {
|
|
titleSpan.prev("span").text("Choose Item");
|
|
titleSpan.prev("span").show();
|
|
}
|
|
}
|
|
|
|
function getOption(elem) {
|
|
$('.view-allcheck').children().remove();
|
|
var isFirst = $('input[name=isFirst]').val();
|
|
attAllcheck = '';
|
|
var destCount = $('#maindestination ul li input:checked').length;
|
|
//alert(destCount) if($(elem).data('download') != 1){
|
|
var count_section = $('label:contains(Velocity Quick Start: Easy To Go)').length;
|
|
var attLength = destCount;
|
|
if (destCount > 1) {
|
|
attAllcheck = '<input data-id="' + count_section + '" style="margin-left: 10px;" type="checkbox" name=all_att_check_' + count_section + ' id="all_att_check_' + count_section + '" onclick="setAllCheck(this)"><span> Check all</span>';
|
|
var new_html = '<input data-id="' + count_section + '" style="margin-left: 10px;" type="checkbox" name=auto_generate_image_' + count_section + ' id="auto_generate_image_' + count_section + '" onclick="getCreditReportContent(this)" class="auto-generate-checkbox" value="1"><span class="agi"> Auto Generate Image </span>'+setCreateNewLetterButton(count_section);
|
|
attAllcheck += new_html;
|
|
$('.view-allcheck').append(attAllcheck);
|
|
//$('.view-allcheck').append(new_html);
|
|
} else if (destCount <= 1) {
|
|
var new_html = '<input data-id="' + count_section + '" style="margin-left: 10px;" type="checkbox" name=auto_generate_image_' + count_section + ' id="auto_generate_image_' + count_section + '" onclick="getCreditReportContent(this)" class="auto-generate-checkbox" value="1"><span class="agi"> Auto Generate Image </span>'+setCreateNewLetterButton(count_section);
|
|
attAllcheck += new_html;
|
|
$('.view-allcheck').append(attAllcheck);
|
|
}
|
|
|
|
|
|
|
|
//var title = $(this).closest('.mutliSelect').find('input[type="checkbox"]').val(),
|
|
var title = $(elem).data('view');
|
|
//alert(title);
|
|
var checkVal = $(elem).val();
|
|
var dfClass = '';
|
|
if (checkVal == 11) {
|
|
dfClass = 'dfclass'
|
|
}
|
|
|
|
if ($(elem).is(':checked')) {
|
|
var html = '<span class="hida" title="' + title + '">' + title + '</span>';
|
|
//alert(html);
|
|
|
|
// $(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p').append(html);
|
|
$(elem).parents('dl.dropdown-x').first().find('p#dest-id').append(html);
|
|
//alert($(this).val());
|
|
|
|
var dest_other = '<div class="form-group remove-all" id="dest_other_' + checkVal + '">' +
|
|
'<label class="col-sm-5 control-label">OTHER</label>' +
|
|
'<div class="col-sm-7">' +
|
|
'<textarea id="input_order_address" placeholder="e.g, KAY JEWELERS, 375 GHENT RD AKRON, OH 44333" rows="5" class="form-control" name="other_address"></textarea>' +
|
|
'</div>' +
|
|
'</div></div>';
|
|
|
|
if (checkVal == 10) {
|
|
$('#address-div').after(dest_other);
|
|
} else {
|
|
if (checkVal != 11) {
|
|
getAddresses(checkVal, title);
|
|
}
|
|
}
|
|
// var attIndicator = $('.dest-checkbox').parent().prevAll('div')[0];
|
|
////console.log($('.add-new-attach').length);
|
|
|
|
var appendText = '<li><input onclick="makeAllCheck(this)" class="dest_check_' + checkVal + ' remove-all ' + dfClass + '" id="dest_check_' + checkVal + '" name="dest_check_1[]" type="checkbox" value="' + checkVal + '" /> ' + title + '</li>';
|
|
|
|
var appendTextAtt = '<li><input onclick="makeAllCheck(this)" class="att_check_' + checkVal + ' remove-all" id="att_check_' + checkVal + '" name="att_check_1[]" type="checkbox" value="' + checkVal + '" /> ' + title + '</li>';
|
|
if (checkVal == 11) {
|
|
appendTextAtt = '';
|
|
}
|
|
checkboxString = checkboxString + appendText;
|
|
attcheckboxString = attcheckboxString + appendTextAtt;
|
|
$('.dest-checkbox').children('ul').append(appendText);
|
|
$('.att-checkbox').children('ul').append(appendTextAtt);
|
|
|
|
//alert(address);
|
|
$(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p.multiSel').prev("span").hide();
|
|
} else {
|
|
var removal = $(elem).val();
|
|
$checkAttStr = '';
|
|
$('#destination_sub_menu_other_' + removal).parents('div#address_other').remove();
|
|
$(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p').children('span[title="' + title + '"]').remove();
|
|
$checkStr = '<li><input onclick="makeAllCheck(this)" class="dest_check_' + removal + ' remove-all ' + dfClass + '" id="dest_check_' + removal + '" name="dest_check_1[]" type="checkbox" value="' + removal + '" /> ' + title + '</li>';
|
|
if (checkVal != 11) {
|
|
$checkAttStr = '<li><input onclick="makeAllCheck(this)" class="att_check_' + removal + ' remove-all" id="att_check_' + removal + '" name="att_check_1[]" type="checkbox" value="' + removal + '" /> ' + title + '</li>';
|
|
}
|
|
checkboxString = checkboxString.replace($checkStr, '');
|
|
attcheckboxString = attcheckboxString.replace($checkAttStr, '');
|
|
$('#address_' + removal).parent().parent().remove();
|
|
$('.dest_check_' + removal).parent().remove();
|
|
$('.att_check_' + removal).parent().remove();
|
|
$('#dest_other_' + removal).remove();
|
|
|
|
/*var ret = $(".hida");
|
|
$('.dropdown-x dt a').append(ret);*/
|
|
|
|
}
|
|
|
|
var plen = $(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p').children('span').length;
|
|
|
|
if (plen > 1) {
|
|
$('.view-allcheck').show();
|
|
} else {
|
|
$('.view-allcheck').hide();
|
|
}
|
|
//console.log('test : '+checkboxString);
|
|
if (!$('.hida').is(':visible')) {
|
|
$(".choose-dest").show();
|
|
}
|
|
|
|
if (isFirst == 1) {
|
|
var count = 1;
|
|
$('.att-checkbox').each(function() {
|
|
$(this).children('ul')
|
|
.children('li')
|
|
.each(function() {
|
|
$(this).children('input').attr('name', 'att_check_' + count + '[]');
|
|
});
|
|
count++;
|
|
})
|
|
}
|
|
var isUpdated = $('input[name=isClientSelect]').val();
|
|
if (isUpdated == 0) {
|
|
checkboxcheckedWithoutOther(0);
|
|
}
|
|
// if(isFirst == 1){
|
|
// var count = 1;
|
|
// $('input[name=att_check_1\\[\\]]').each(function(){
|
|
// $(this).attr('name','att_check_'+count+'[]');
|
|
// $(this).attr('id','att_check_'+count);
|
|
// $(this).attr('class','att_check_'+count+' remove-all');
|
|
// count++;
|
|
// });
|
|
// }
|
|
if ($(elem).is(':checked')) {
|
|
$('.auto-generate-checkbox').parents('.view-allcheck').show();
|
|
}
|
|
autogeneratedCheckboxRemovedFromAttachement();
|
|
}
|
|
|
|
|
|
function autogeneratedCheckboxRemovedFromAttachement() {
|
|
$('div.attachment-whole-area .auto-generate-checkbox').remove();
|
|
$('div.attachment-whole-area .agi').remove();
|
|
$('div.attachment-whole-area .cnl').remove();
|
|
}
|
|
|
|
|
|
function downloadOption(elem) {
|
|
|
|
var isFirst = $('input[name=isFirst]').val();
|
|
attAllcheck = '';
|
|
var destCount = $('#maindestination ul li input:checked').length;
|
|
var attLength = destCount;
|
|
if (destCount > 1) {
|
|
attAllcheck = '<input data-id="' + attLength + '" style="margin-left: 10px;" type="checkbox" name=all_att_check_' + attLength + ' id="all_att_check_' + attLength + '" onclick="setAllCheck(this)"><span> Check all</span>';
|
|
//$('.view-allcheck').append(attAllcheck);
|
|
}
|
|
|
|
var title = $(elem).data('view');
|
|
var checkVal = $(elem).val();
|
|
var export_type = $(elem).data('type');
|
|
//code change
|
|
|
|
|
|
var dfClass = '';
|
|
if (checkVal == 11) {
|
|
dfClass = 'dfclass'
|
|
}
|
|
if ($(elem).is(':checked')) {
|
|
var html = '<span class="hida" title="' + title + '">' + title + '</span>';
|
|
$(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p').append(html);
|
|
$(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p.multiSel').prev("span").hide();
|
|
} else {
|
|
var removal = $(elem).val();
|
|
$('#destination_sub_menu_other_' + removal).parents('div#address_other').remove();
|
|
$(elem).parent().parent().parent().parent().prev('dt').children('div').children('a').children('p').children('span[title="' + title + '"]').remove();
|
|
$checkStr = '<li><input onclick="makeAllCheck(this)" class="dest_check_' + removal + ' remove-all ' + dfClass + '" id="dest_check_' + removal + '" name="dest_check_1[]" type="checkbox" value="' + removal + '" /> ' + title + '</li>';
|
|
if (checkVal != 11) {
|
|
$checkAttStr = '<li><input onclick="makeAllCheck(this)" class="att_check_' + removal + ' remove-all" id="att_check_' + removal + '" name="att_check_1[]" type="checkbox" value="' + removal + '" /> ' + title + '</li>';
|
|
}
|
|
checkboxString = checkboxString.replace($checkStr, '');
|
|
attcheckboxString = attcheckboxString.replace($checkAttStr, '');
|
|
|
|
}
|
|
|
|
if (!$('.hida').is(':visible')) {
|
|
$(".choose-dest").show();
|
|
}
|
|
|
|
}
|
|
</script>
|
|
|
|
<script>
|
|
var global_id = null;
|
|
var global_dest = null;
|
|
var global_sertg = null;
|
|
var global_acc = null;
|
|
var global_attache = null;
|
|
|
|
var url = $(location).attr('hostname');
|
|
var folder_path = window.location.pathname.split('/').slice(0, 2).join('/');
|
|
// var __SERVER_URL__ = '__SERVER_URL__';
|
|
|
|
function toggleModal() {
|
|
$('#formModal').toggle();
|
|
}
|
|
|
|
function deleteFormData(value) {
|
|
var id = $(value).data('id');
|
|
var table = $('#form-table').DataTable();
|
|
var action = 1;
|
|
var info = table.page.info().page;
|
|
var message = "You're about to permanently delete this file, Do you want to Delete it ?";
|
|
$('.loading').show();
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'CHECK_HAS_AUTOMATION',
|
|
'id': id
|
|
},
|
|
success: function(data) {
|
|
$('.loading').hide();
|
|
var response = JSON.parse(data);
|
|
if (response.status) {
|
|
message = response.message;
|
|
}
|
|
deleteFormDataPermanently(id, message);
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
$('.loading').hide();
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function deleteFormDataPermanently(id, message) {
|
|
//var id = $(elem).data('id');
|
|
var table = $('#form-table').DataTable();
|
|
var action = 1;
|
|
var info = table.page.info().page;
|
|
Swal.fire({
|
|
width: '40rem',
|
|
text: message,
|
|
icon: 'warning',
|
|
showCancelButton: true,
|
|
confirmButtonColor: '#3085d6',
|
|
cancelButtonColor: '#d33',
|
|
confirmButtonText: 'Yes',
|
|
cancelButtonText: 'No'
|
|
}).then((result) => {
|
|
if (result.value) {
|
|
var loader = $('#client-file-' + id)
|
|
loader.show();
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'deleteFormData',
|
|
id: id
|
|
},
|
|
success: function(data) {
|
|
loader.hide();
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'success',
|
|
title: 'Deleted successfully',
|
|
showConfirmButton: false,
|
|
timer: 1500
|
|
})
|
|
getFormData(action, info);
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
loader.hide();
|
|
getFormData(action, info);
|
|
}
|
|
});
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// Datatable initialize here.
|
|
function readyDatatableFromServerSide(formData) {
|
|
|
|
var table = $('#form-table');
|
|
table.DataTable().clear();
|
|
table.DataTable().destroy();
|
|
table.DataTable({
|
|
'pageLength': 25,
|
|
'processing': true,
|
|
|
|
'language': {
|
|
'processing': '<i class="fa fa-spinner fa-spin fa-3x fa-fw"></i><span class="sr-only">Loading...</span> '
|
|
},
|
|
'serverSide': true,
|
|
'serverMethod': 'GET',
|
|
'ajax': {
|
|
'url': '__SERVER_URL__Staff/getSertgInfo.php',
|
|
'data': formData
|
|
|
|
},
|
|
'columns': [{
|
|
data: 'row_checkbox'
|
|
}, {
|
|
data: 'id'
|
|
}, {
|
|
data: 'personal_info'
|
|
}, {
|
|
data: 'dob'
|
|
}, {
|
|
data: 'ssn'
|
|
}, {
|
|
data: 'report_source_type'
|
|
}, {
|
|
data: 'slected_letter'
|
|
}, {
|
|
data: 'modified_on'
|
|
}, {
|
|
data: 'next_section_date'
|
|
}, {
|
|
data: 'action_btn'
|
|
}]
|
|
})
|
|
|
|
$('#formModal').show();
|
|
}
|
|
|
|
function getFormData(action, info) {
|
|
|
|
var formData = {
|
|
'formdata': 'getFormData',
|
|
'member_id': $('input[name=member_id]').val(),
|
|
'employee_id': $('input[name=employee_id]').val(),
|
|
'isEmployee': $('input[name=isEmployee]').val()
|
|
};
|
|
|
|
$('.form-affiliate-list').hide();
|
|
$('.form-employee-list').hide();
|
|
$('input[name=client_type][value="3"]').prop("checked", true);
|
|
readyDatatableFromServerSide(formData);
|
|
return true;
|
|
}
|
|
|
|
function deleteAllForm() {
|
|
var velocity_ids = [];
|
|
$('input[name="velocity_ids[]"]:checked').each(function() {
|
|
velocity_ids.push($(this).val());
|
|
});
|
|
|
|
if (velocity_ids.length == 0) {
|
|
alert('Please select at least one item.')
|
|
return false;
|
|
}
|
|
if (confirm("Are you sure you want to delete all?")) {
|
|
var table = $('#form-table').DataTable();
|
|
var member_id = $('input[name=member_id]').val();
|
|
var action = 1;
|
|
var info = table.page.info().page;
|
|
$('.loading').show();
|
|
|
|
var formData = {
|
|
'formdata': 'deleteAllForm',
|
|
'member_id': member_id,
|
|
'velocity_ids': velocity_ids
|
|
};
|
|
//console.log(formData);
|
|
|
|
$.ajax({
|
|
type: 'POST',
|
|
//url: '__SERVER_URL__Dashboard/deleteAllForm/',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: formData,
|
|
success: function(data) {
|
|
getFormData(action, info);
|
|
$('#formModalLabel').click();
|
|
$('input[name=velocity_id-all]').prop('checked', false);
|
|
$('.loading').hide();
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'success',
|
|
title: 'Deleted successfully',
|
|
showConfirmButton: false,
|
|
timer: 1500
|
|
})
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
$('#formModalLabel').click();
|
|
$('.loading').hide();
|
|
}
|
|
|
|
});
|
|
}
|
|
}
|
|
|
|
function getValueById(value, newId = 0) {
|
|
$('input[name=from_load]').val(0);
|
|
$('input[name=is_client_file_load]').val(1);
|
|
$('input[name=isClientSelect]').val(1);
|
|
if ($(value).data('report')) {
|
|
$('input[name=temp_report_type]').val($(value).data('report'));
|
|
}
|
|
global_id = null;
|
|
//alert(document.getElementById("client-file-load").value());
|
|
// $("img#client-file-load").css("display","block");
|
|
document.getElementById("client-file-load").style.display = "block";
|
|
|
|
// //console.log();
|
|
var id = $(value).data('id');
|
|
if (newId > 0) {
|
|
id = newId;
|
|
$('#create-new-btn').show();
|
|
}
|
|
//console.log("idddddddd: "+id);
|
|
|
|
//alert(23);
|
|
global_id = id;
|
|
getDestination(global_id);
|
|
|
|
// var dest =
|
|
// //console.log(id);
|
|
// var sertg = getForm(global_id);
|
|
// var acc = getAccountDetail(global_id);
|
|
//var attach = getAttachmentDetail(global_id);
|
|
// viewSavedData(dest,acc,attach,sertg);
|
|
//$(value).nextAll('span').first().children('img#saveloading').hide();
|
|
//alert(global_id);
|
|
$('input[name=update_id]').val(global_id);
|
|
if (newId == 0) {
|
|
$('#modal-btn').click();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function getForm(id) {
|
|
$result = "";
|
|
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'getForm',
|
|
id: id
|
|
},
|
|
//async:false, // code change
|
|
|
|
success: function(data) {
|
|
//console.log('sssssssss');
|
|
//console.log(data);
|
|
$("#resetForm").click();
|
|
|
|
$('select[name=report_type]').val($('input[name=temp_report_type]').val()).trigger('change');
|
|
var json = JSON.parse(data);
|
|
//console.log("dddddddd", json);
|
|
|
|
var pi = json.personal_info.replace(/<br\s*[\/]?>/gi, "");
|
|
pi = json.personal_info.replace(/<br\s*[\/]?>/gi, "");
|
|
pi = $.trim(pi);
|
|
$('textarea[name=personal_info]').html(pi);
|
|
$('input[name=current_dob]').val(json.dob);
|
|
$('input[name=ssn]').val(json.ssn);
|
|
$('input[name=cr_data]').val(json.cr_data);
|
|
$('input[name=day_value]').val('');
|
|
$('select[name=day_value]').val(1).trigger('change');
|
|
$('input[name=set_automation]').prop('checked', false);
|
|
$('.setup-automation').hide();
|
|
|
|
|
|
if (json.set_automation == 1) {
|
|
if (json.day_value > 0) {
|
|
$('input[name=day_value]').val(json.day_value);
|
|
}
|
|
|
|
if (json.automatio_type) {
|
|
$('select[name=automation_type]').val(json.automatio_type).trigger('change');
|
|
}
|
|
$('input[name=set_automation]').prop('checked', true);
|
|
$('.setup-automation').show();
|
|
}
|
|
$('select[name=dropdown_employee_id]').attr('disabled', false);
|
|
if (json.crmuser_id > 0) {
|
|
|
|
$('input[name=client_type]').prop('checked', true);
|
|
|
|
//$('input[name=client_type]').click();
|
|
//generateAffiliateClientList($('select[name=affiliate_client_id]'));
|
|
//$('select[name=affiliate_client_id]').val(json.crmuser_id).trigger('change');
|
|
affiliateShow($('input[name=client_type]'), json.crmuser_id);
|
|
generateAffiliateClientList($('select[name=affiliate_client_id]'), json.client_id);
|
|
//$('select[name=affiliate_client_id]').val(json.crmuser_id).trigger('change');
|
|
} else if (json.client_tbl_employee_id > 0) {
|
|
$('.employee-list').show();
|
|
var employee_client_type = $('input[name=employee_client_type]');
|
|
employee_client_type.prop('checked', true);
|
|
employeeShow(employee_client_type, json.client_tbl_employee_id, json.client_id);
|
|
|
|
|
|
} else {
|
|
$('input[name=client_type]').prop('checked', false);
|
|
$('select[name=dropdown_employee_id]').attr('disabled', true);
|
|
$('.affiliate-list').hide();
|
|
$('.employee-list').hide();
|
|
var dropdown = $('#client-contact-id');
|
|
dropdown.empty();
|
|
dropdown.append(new Option("Please select client", "0"));
|
|
$.each(CLIENT_DEFAULT_LIST, function(index, contact) {
|
|
var first_name = "";
|
|
if (contact.first_name != "") {
|
|
first_name = contact.first_name;
|
|
}
|
|
|
|
var last_name = "";
|
|
if (contact.last_name != "") {
|
|
last_name = contact.last_name;
|
|
}
|
|
|
|
var contact_email = contact.email;
|
|
if (contact.is_receive_notification_email == 1 && contact.alternate_email) {
|
|
contact_email = contact.alternate_email;
|
|
}
|
|
dropdown.append('<option data-email="' + contact_email + '" data-id="' + contact.client_id + '" value="' + contact.contact_id + '" >' + first_name + ' ' + last_name + " (" + '' + contact.email + ")" + '</option>');
|
|
|
|
});
|
|
}
|
|
|
|
|
|
//var id = json[0].id;
|
|
//console.log(json);
|
|
|
|
global_sertg = json;
|
|
|
|
|
|
getAccountDetail(global_id)
|
|
|
|
}
|
|
});
|
|
|
|
//return $result;
|
|
}
|
|
|
|
function getDestination(id) {
|
|
$result = "";
|
|
//alert('id '+id);
|
|
$.ajax({
|
|
type: 'POST',
|
|
// url: '__SERVER_URL__Dashboard/getDestination/',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'getDestination',
|
|
id: id
|
|
},
|
|
//async:false,// code change
|
|
success: function(data) {
|
|
|
|
var json = JSON.parse(data);
|
|
//var id = json[0].id;
|
|
////console.log(json);
|
|
global_dest = json;
|
|
getForm(global_id)
|
|
|
|
|
|
}
|
|
});
|
|
|
|
// return $result;
|
|
}
|
|
|
|
function getAccountDetail(id) {
|
|
// var AccountDetail = '';
|
|
$.ajax({
|
|
type: 'POST',
|
|
//url: '__SERVER_URL__Dashboard/getAccountDetail/',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'getAccountDetail',
|
|
id: id
|
|
},
|
|
// async:false,
|
|
success: function(data) {
|
|
// AccountDetail = JSON.parse(data);
|
|
global_acc = JSON.parse(data);
|
|
getAttachmentDetail(global_id)
|
|
|
|
//console.log('ACC DETAILS');
|
|
//console.log(global_acc);
|
|
}
|
|
});
|
|
|
|
// return AccountDetail;
|
|
}
|
|
|
|
function getAttachmentDetail(id) {
|
|
|
|
// var AttachmentDetail = '';
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Dashboard/getAttachmentDetail/',
|
|
//url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'getAttachmentDetail',
|
|
id: id
|
|
},
|
|
// async:false,
|
|
success: function(data) {
|
|
// AttachmentDetail = JSON.parse(data);
|
|
global_attache = JSON.parse(data);
|
|
viewSavedData(global_dest, global_acc, global_attache, global_sertg);
|
|
////console.log(AttachmentDetail);
|
|
$('input[name=isNotSaved]').val(1);
|
|
$('input[name=update_id]').val(global_id);
|
|
}
|
|
});
|
|
|
|
return global_attache;
|
|
}
|
|
|
|
function viewSavedData(destination, account, attachment, sertg) {
|
|
|
|
|
|
$('input[name=isNotSaved]').val(0);
|
|
$('input[name=isFirst]').val(0);
|
|
$('input[name=slot_array]').val(null);
|
|
|
|
|
|
VIEW_SLOT_ARRAY = sertg['slot_array'].split(',');
|
|
checkboxString = '';
|
|
attcheckboxString = '';
|
|
|
|
//$("#resetForm").click();
|
|
// document.getElementById("inputformId").reset();
|
|
// Sertg area
|
|
var info = sertg;
|
|
|
|
if (info.lettertypes != "") {
|
|
var lettertypes = info.lettertypes.split(',');
|
|
$('.beforeSaveInput').each(function(index, value) {
|
|
if ($.inArray($(this).val(), lettertypes) !== -1) {
|
|
$(this).click();
|
|
}
|
|
|
|
})
|
|
}
|
|
|
|
//code change
|
|
$('input[name=client_id]').val(info.client_id);
|
|
if (info.client_id > 0) {
|
|
CLIENT_ASYNC = false;
|
|
var cId = $("#client-contact-id option[data-id='" + info.client_id + "']").val();
|
|
//$('.select2').remove();
|
|
$("#client-contact-id").val(cId).trigger('change');
|
|
var client_email = $("#client-contact-id option[data-id='" + info.client_id + "']").data('email');
|
|
$('input[name=client_email]').val(client_email);
|
|
} else {
|
|
$('input[name=client_name]').val('');
|
|
|
|
}
|
|
|
|
|
|
if ($('textarea[name=personal_info]').val() == "") {
|
|
var personal_info = info.personal_info.replace(/<br\s*[\/]?>/gi, "");
|
|
|
|
$('textarea[name=personal_info]').val(personal_info);
|
|
//$('textarea[name=personal_info]').text(personal_info);
|
|
$('input[name=current_dob]').val(info.dob);
|
|
$('input[name=ssn]').val(info.ssn);
|
|
$('input[name=cr_data]').val(info.cr_data);
|
|
}
|
|
|
|
|
|
|
|
// Destination section
|
|
//alert(1);
|
|
|
|
for (var x in destination.address) {
|
|
$('#maindestination input[type="checkbox"][value=' + x + ']').click();
|
|
if (destination.address[x] != "")
|
|
for (var a in destination.address[x]) {
|
|
$("#address_" + x + ' input[type="checkbox"][value=' + destination.address[x][a] + ']').click();
|
|
}
|
|
|
|
$("#destination_sub_menu_other_" + x).val(destination.other[x].replace(/<br\s*[\/]?>/gi, ""));
|
|
if (x == 10) {
|
|
$("#input_order_address").val(destination.other[x].replace(/<br\s*[\/]?>/gi, ""));
|
|
}
|
|
}
|
|
var inquiry_value = "";
|
|
$.each(account, function(acc1, value) {
|
|
if (value.inquires) {
|
|
inquiry_value = value.acc_image_desc
|
|
return false;
|
|
}
|
|
})
|
|
//console.log('account', account);
|
|
// account section
|
|
for (var acc in account) {
|
|
|
|
//if(account[acc].isSTT == 1){
|
|
|
|
if (acc > 1) {
|
|
SLOT_END++;
|
|
if (VIEW_SLOT_ARRAY.length < 1 || VIEW_SLOT_ARRAY == undefined) {
|
|
if (SLOT_END == MAX_SLOT_ITEM) {
|
|
SLOT_END = 0;
|
|
addImageBtn(1, 1);
|
|
//setDynamicVariable()
|
|
} else {
|
|
addImageBtn(1, 0);
|
|
// setDynamicVariable()
|
|
}
|
|
} else {
|
|
if (SLOT_END == VIEW_SLOT_ARRAY[SLOT_ARRAY_INDEX] && VIEW_SLOT_ARRAY[SLOT_ARRAY_INDEX + 1] != null) {
|
|
SLOT_END = 0;
|
|
addImageBtn(1, 1);
|
|
//setDynamicVariable()
|
|
SLOT_ARRAY_INDEX = SLOT_ARRAY_INDEX + 1;
|
|
//console.log("slot_array_index: "+SLOT_ARRAY_INDEX);
|
|
//console.log("view_slot_array: "+VIEW_SLOT_ARRAY[SLOT_ARRAY_INDEX]);
|
|
} else {
|
|
addImageBtn(1, 0);
|
|
//setDynamicVariable()
|
|
}
|
|
}
|
|
}
|
|
|
|
// }
|
|
//slot section start
|
|
|
|
|
|
for (var i = 0; i < account[acc].destination.length; i++) {
|
|
|
|
|
|
|
|
/*if(account[acc].df_dropdown_value ==0){
|
|
//alert('destcheck '+account[acc].destination[i]);
|
|
continue;
|
|
}*/
|
|
//alert('destcheck '+account[acc].destination[i]);
|
|
if (!$('#dest-checkbox_' + acc + ' input[type="checkbox"][value=' + account[acc].destination[i] + ']').prop('checked')) {
|
|
|
|
$('#dest-checkbox_' + acc + ' input[type="checkbox"][value=' + account[acc].destination[i] + ']').click();
|
|
|
|
|
|
}
|
|
/*if(account[acc].destination[i] == 11){
|
|
$('#dest-checkbox_'+acc+' input[type="checkbox"][value='+account[acc].destination[i]+']').click();
|
|
$('#dest-checkbox_'+acc+' input[type="checkbox"][value='+account[acc].destination[i]+']').parent().show();
|
|
} else {
|
|
$('#dest-checkbox_'+acc+' input[type="checkbox"][value='+account[acc].destination[i]+']').click();
|
|
}*/
|
|
|
|
|
|
}
|
|
|
|
$('input[name=check_indicator_' + acc + ']').val(0);
|
|
var AllCheckbox = 0;
|
|
$('.dest-checkbox').children('ul').children('li').show();
|
|
$('#dest-checkbox_' + acc).children('ul').children('li').children('input').length;
|
|
var currentCheckbox = $('#dest-checkbox_' + acc + ' input:checked').length;
|
|
if (AllCheckbox == currentCheckbox) {
|
|
$('#dest-checkbox_' + acc).parent('div').prev('div.view-allcheck').children('input[type=checkbox]:not(.auto-generate-checkbox)').prop('checked', true);
|
|
$('#dest-checkbox_' + acc).parent('div').prev('div.remove-all').children().find('input[type=checkbox]:not(.auto-generate-checkbox)').prop('checked', true);
|
|
}
|
|
//if(account[acc].isSTT == 1){
|
|
if (account[acc].is_auto_generated_image == 1) {
|
|
$('input[name=auto_generate_image_' + acc + ']').prop('checked', true);
|
|
//$('input[name=auto_generate_image_'+acc+']').click();
|
|
}
|
|
|
|
if (account[acc].is_create_new_letter == 1) {
|
|
$('input[name=create_new_letter_' + acc + ']').prop('checked', true);
|
|
//$('input[name=auto_generate_image_'+acc+']').click();
|
|
}
|
|
if (account[acc].item_discontinaunce != 0) {
|
|
$('select[name=item_discount_' + acc + ']').val(account[acc].item_discontinaunce).trigger('change');
|
|
}
|
|
|
|
if (account[acc].item_ownership != 0) {
|
|
$('select[name=item_ownership_' + acc + ']').val(account[acc].item_ownership).trigger('change');
|
|
}
|
|
|
|
if (account[acc].item_attack_num != 0) {
|
|
$('select[name=item_attack_num_' + acc + ']').val(account[acc].item_attack_num).trigger('change');
|
|
}
|
|
|
|
if (account[acc].df_dropdown_value != 0) {
|
|
$('select[name=df_deopdown_' + acc + ']').val(account[acc].df_dropdown_value).trigger('change');
|
|
}
|
|
|
|
if (account[acc].df_textarea != null) {
|
|
$('textarea[name=df_textarea_' + acc + ']').val(account[acc].df_textarea.replace(/<br\s*[\/]?>/gi, ""));
|
|
}
|
|
|
|
|
|
|
|
var accImage = true;
|
|
$('#acc_img_' + acc).attr('src', '');
|
|
if (account[acc].inquiry_category > 0) {
|
|
$('select[name=item_inquirey_' + acc + ']').val(account[acc].inquiry_category).trigger('change');
|
|
}
|
|
|
|
if (account[acc].inquires != null) {
|
|
for (var i in account[acc].inquires) {
|
|
// alert($('.negative-input_'+acc).length);
|
|
$('.negative-inq-input_' + acc).each(function() {
|
|
$thisVal = $(this).val();
|
|
if (account[acc].inquires[i] == $thisVal) {
|
|
$(this).click();
|
|
return false;
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
//$('.negative-input_' + acc + ' input[type="checkbox"][value=' + account[acc].neative_items[i] + ']').click();
|
|
}
|
|
if (account[acc].disable_indicator != 0) {
|
|
|
|
accImage = false;
|
|
isClientFiles = false;
|
|
if (account[acc].disable_indicator == 1) {
|
|
isClientFiles = true;
|
|
}
|
|
$('input[name=enhance_check_' + acc + '][value=' + account[acc].disable_indicator + ']').click();
|
|
if (account[acc].item_category > 0) {
|
|
$('select[name=item_category_' + acc + ']').val(account[acc].item_category).trigger('change');
|
|
}
|
|
|
|
|
|
if (account[acc].neative_items != null) {
|
|
for (var i in account[acc].neative_items) {
|
|
// alert($('.negative-input_'+acc).length);
|
|
$('.negative-input_' + acc).each(function() {
|
|
$thisVal = $(this).val();
|
|
if (account[acc].neative_items[i] == $thisVal) {
|
|
$(this).click();
|
|
return false;
|
|
}
|
|
});
|
|
|
|
}
|
|
}
|
|
|
|
if (account[acc].late_pays_items != null) {
|
|
for (var i in account[acc].late_pays_items) {
|
|
// alert($('.negative-input_'+acc).length);
|
|
$('.late-pays-bank-input_' + acc).each(function() {
|
|
$thisVal = $(this).val();
|
|
if (account[acc].late_pays_items[i] == $thisVal) {
|
|
$(this).click();
|
|
return false;
|
|
}
|
|
});
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
$('#acc_img_' + acc).attr('src', '');
|
|
if (account[acc].disable_indicator == 1) {
|
|
if (account[acc].acc_image == $('input[name=admin_enhance_img]').val()) {
|
|
$('#acc_img_' + acc).attr('src', $('input[name=admin_enhance_img]').val());
|
|
$('input[name=check_indicator_' + acc + ']').val(1);
|
|
}
|
|
//
|
|
} else if (account[acc].disable_indicator == 2) {
|
|
|
|
if (account[acc].acc_image == $('input[name=admin_inquiry_img]').val()) {
|
|
$('#acc_img_' + acc).attr('src', $('input[name=admin_inquiry_img]').val());
|
|
$('input[name=check_indicator_' + acc + ']').val(2);
|
|
}
|
|
//
|
|
} else if (account[acc].disable_indicator == 4) {
|
|
$('#inquiry-subcategory_' + acc + ' a').addClass('disable-elem');
|
|
$('#inquiry-subcategory_' + acc + ' a').css({
|
|
'pointer-events': 'none'
|
|
})
|
|
$('select[name=item_public_category_' + acc + ']').change();
|
|
$('input[name="public_negative_item_' + acc + '[]"]').each(function() {
|
|
$(this).prop('checked', true);
|
|
getAccOption($(this), false);
|
|
//imran changes
|
|
})
|
|
//inquiry_value
|
|
|
|
|
|
if (account[acc].selected_banks) {
|
|
for (var i in account[acc].selected_banks) {
|
|
|
|
$('.bank-input_' + acc).each(function() {
|
|
$thisVal = $(this).val();
|
|
|
|
if (account[acc].selected_banks[i] == $thisVal) {
|
|
if (!$(this).prop('checked')) {
|
|
|
|
//$(this).click();
|
|
|
|
addBankSelected($(this));
|
|
return false;
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
//getSTTPresetContentNew3(acc,0,0,false);
|
|
//$('.negative-input_' + acc + ' input[type="checkbox"][value=' + account[acc].neative_items[i] + ']').click();
|
|
}
|
|
}
|
|
} else {
|
|
|
|
if (account[acc].isSTT == 0) {
|
|
$('input[name="sttInquery_' + acc).val(0)
|
|
$('input[name="isSTT_' + acc).val(0)
|
|
var current_div_len = acc;
|
|
current_div_len--;
|
|
$('input[name="sttInquery_' + current_div_len).val(account[acc].acc_image_desc);
|
|
}
|
|
|
|
if (account[acc].public_category > 0) {
|
|
$('select[name=item_public_category_' + acc + ']').val(account[acc].public_category).trigger('change');
|
|
}
|
|
|
|
if (account[acc].public_items != null) {
|
|
for (var i in account[acc].public_items) {
|
|
// alert($('.negative-input_'+acc).length);
|
|
$('.public-negative-input_' + acc).each(function() {
|
|
$thisVal = $(this).val();
|
|
if (account[acc].public_items[i] == $thisVal) {
|
|
$(this).click();
|
|
return false;
|
|
}
|
|
});
|
|
}
|
|
|
|
//$('.negative-input_' + acc + ' input[type="checkbox"][value=' + account[acc].neative_items[i] + ']').click();
|
|
}
|
|
|
|
SELECTED_BANK_ARRAY = [];
|
|
if (account[acc].selected_banks) {
|
|
for (var i in account[acc].selected_banks) {
|
|
|
|
$('.bank-input_' + acc).each(function() {
|
|
$thisVal = $(this).val();
|
|
|
|
if (account[acc].selected_banks[i] == $thisVal) {
|
|
if (!$(this).prop('checked')) {
|
|
|
|
//$(this).click();
|
|
|
|
addBankSelected($(this));
|
|
|
|
return false;
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
//$('.negative-input_' + acc + ' input[type="checkbox"][value=' + account[acc].neative_items[i] + ']').click();
|
|
}
|
|
|
|
if (account[acc].late_pays_items != null) {
|
|
for (var i in account[acc].late_pays_items) {
|
|
// alert($('.negative-input_'+acc).length);
|
|
$('.late-pays-bank-input_' + acc).each(function() {
|
|
$thisVal = $(this).val();
|
|
if (account[acc].late_pays_items[i] == $thisVal) {
|
|
$(this).click();
|
|
return false;
|
|
}
|
|
});
|
|
|
|
}
|
|
}
|
|
|
|
// //console.log(account[acc].acc_number);
|
|
for (var j in account[acc].acc_number) {
|
|
//alert(account[acc].acc_number[j]);
|
|
if (account[acc].acc_number[j] != "") {
|
|
$('#acc-num-sub_' + acc + ' input[type="checkbox"][value=' + account[acc].acc_number[j] + ']').click();
|
|
}
|
|
//
|
|
|
|
}
|
|
|
|
if (account[acc].acc_num_other.length > 0) {
|
|
$('textarea[name=acc_number_other_' + acc + ']').val(account[acc].acc_num_other.replace(/<br\s*[\/]?>/gi, ""));
|
|
}
|
|
|
|
for (var j in account[acc].acc_aspect) {
|
|
if (account[acc].acc_aspect[j].length > 0) {
|
|
$('#acc-aspect-sub_' + acc + ' input[type="checkbox"][value=' + account[acc].acc_aspect[j] + ']').click();
|
|
}
|
|
}
|
|
|
|
for (var j in account[acc].acc_derogatory) {
|
|
if (account[acc].acc_derogatory[j].length > 0) {
|
|
$('#acc-derogatory-sub_' + acc + ' input[type="checkbox"][value=' + account[acc].acc_derogatory[j] + ']').click();
|
|
}
|
|
}
|
|
|
|
if (account[acc].acc_other.length > 0) {
|
|
$('textarea[name=acc_other_' + acc + ']').val(account[acc].acc_other.replace(/<br\s*[\/]?>/gi, ""));
|
|
}
|
|
}
|
|
|
|
for (var j in account[acc].selected_banks) {
|
|
if (account[acc].selected_banks[j].length > 0) {
|
|
$('.bank-input_' + acc + ' input[type="checkbox"][value=' + account[acc].selected_banks[j] + ']').click();
|
|
}
|
|
}
|
|
|
|
if (accImage) {
|
|
if (account[acc].acc_image.length > 0) {
|
|
$('#acc_img_' + acc).attr('src', '__SERVER_URL__webroot/Staff/sertg/accounts/' + account[acc].acc_image);
|
|
$('#acc_img_' + acc).parent().parent().next('div').children('label').css('margin-top', '50px');
|
|
$('#acc_img_' + acc).parent().parent().parent().next('br').remove();
|
|
$('input[name=temp_acc_img_' + acc + ']').attr('value', account[acc].acc_image);
|
|
$('img#acc_img_' + acc).show();
|
|
}
|
|
}
|
|
|
|
if (account[acc].acc_image_desc.length > 0) {
|
|
//console.log('test7')
|
|
$('textarea[name=image_text_area_' + acc + ']').val(account[acc].acc_image_desc.replace(/<br\s*[\/]?>/gi, ""));
|
|
}
|
|
|
|
if (account[acc].rebuttal != 0) {
|
|
$('select[name=rebuttal_' + acc + ']').val(account[acc].rebuttal).trigger('change');
|
|
}
|
|
|
|
if (account[acc].isSTT == 0 && $('#velocity-quick-' + acc + ' p#dest-id').children('span').length == 0) {
|
|
$('#velocity-quick-' + acc + ' a').addClass('disable-elem');
|
|
}
|
|
|
|
getCreditReportContent($('input[name=auto_generate_image_' + acc + ']'), false);
|
|
|
|
// Account Aspect Issues
|
|
if(account[acc].acc_aspect){
|
|
for (var j in account[acc].acc_aspect) {
|
|
if (account[acc].acc_aspect[j].length > 0) {
|
|
if(!$('#acc-aspect-sub_' + acc + ' input[type="checkbox"][value=' + account[acc].acc_aspect[j] + ']').prop('checked')){
|
|
$('#acc-aspect-sub_' + acc + ' input[type="checkbox"][value=' + account[acc].acc_aspect[j] + ']').click();
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
// Account Derogatory Issues
|
|
if(account[acc].acc_derogatory){
|
|
for (var j in account[acc].acc_derogatory) {
|
|
if (account[acc].acc_derogatory[j].length > 0) {
|
|
if(!$('#acc-derogatory-sub_' + acc + ' input[type="checkbox"][value=' + account[acc].acc_derogatory[j] + ']').prop('checked')){
|
|
$('#acc-derogatory-sub_' + acc + ' input[type="checkbox"][value=' + account[acc].acc_derogatory[j] + ']').click();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// attachment section
|
|
//console.log('attachment');
|
|
//console.log(attachment);
|
|
for (var att in attachment) {
|
|
if (att > 1) {
|
|
addAttachament();
|
|
}
|
|
|
|
for (var x in attachment[att].destination) {
|
|
$('#att-checkbox_' + att + ' input[type="checkbox"][value=' + attachment[att].destination[x] + ']').click();
|
|
}
|
|
|
|
var currentunattCheckbox = $('#att-checkbox_' + att + ' input[type="checkbox"]').length;
|
|
var currentattCheckbox = $('#att-checkbox_' + att + ' input:checked').length;
|
|
|
|
// $('input[name=all_att_check_'+att+']').prop('checked',false);
|
|
// $('input[name=all_att_check_'+att+']').parent().hide();
|
|
if (currentunattCheckbox == currentattCheckbox && currentunattCheckbox > 1) {
|
|
$('#att-checkbox_' + att).parent('div').prev('div.view-allcheck').children('input[type=checkbox]:not(.auto-generate-checkbox)').prop('checked', true);
|
|
// $('input[name=all_att_check_'+att+']').prop('checked',true);
|
|
// $('input[name=all_att_check_'+att+']').parent().show();
|
|
}
|
|
|
|
$('#att_img_' + att).attr('src', '');
|
|
if (attachment[att].attachment.length > 0) {
|
|
////console.log("ssssssss "+attachment[att].attachment+"\n");
|
|
var imageArray = attachment[att].attachment.split('/');
|
|
if (imageArray[0] == 'contact_photo') {
|
|
$('#att_img_' + att).attr('src', '__SERVER_URL__webroot/' + attachment[att].attachment);
|
|
} else {
|
|
$('#att_img_' + att).attr('src', '__SERVER_URL__webroot/Staff/sertg/attachment/' + attachment[att].attachment);
|
|
}
|
|
//$('#att_img_'+att).parent().parent().next('div').children('label').css('margin-top','50px');
|
|
//$('#att_img_'+att).parent().parent().parent().next('br').remove();
|
|
$('input[name=temp_attachment_' + att + ']').attr('value', attachment[att].attachment);
|
|
|
|
$('#att_img_' + att).show();
|
|
}
|
|
|
|
|
|
}
|
|
|
|
document.getElementById("client-file-load").style.display = "none";
|
|
$('input[name=isNotSaved]').val(1);
|
|
CLIENT_ASYNC = true;
|
|
|
|
$('.client-dropdown-sm-div .select2').remove();
|
|
$("#client-contact-id").select2();
|
|
$('input[name=from_load]').val(1);
|
|
$('#create-new-btn').show();
|
|
|
|
createDynamicSequenceAutoGenerateCheckbox();
|
|
|
|
}
|
|
|
|
|
|
function createDynamicSequenceAutoGenerateCheckbox() {
|
|
var generate_count = 0;
|
|
$('.auto-generate-checkbox').each(function() {
|
|
generate_count++;
|
|
$(this).attr('name', 'auto_generate_image_' + generate_count);
|
|
$(this).attr('id', 'auto_generate_image_' + generate_count);
|
|
})
|
|
|
|
var create_new_letter_count = 0;
|
|
$('.create-new-letter-checkbox').each(function() {
|
|
create_new_letter_count++;
|
|
$(this).attr('name', 'create_new_letter_' + create_new_letter_count);
|
|
$(this).attr('id', 'create_new_letter_' + create_new_letter_count);
|
|
})
|
|
}
|
|
|
|
function save() {
|
|
//alert(1);
|
|
$('#indicate').val(1);
|
|
return true;
|
|
}
|
|
|
|
function generate() {
|
|
//alert(2);
|
|
$('#indicate').val(2);
|
|
|
|
return true;
|
|
}
|
|
|
|
function submitForm(elem) {
|
|
offDownloadActivity();
|
|
$('#before-save').val(1);
|
|
if (destValidation()) {
|
|
var result = false;
|
|
$('#date-action').hide();
|
|
var client_id = $('select[name=select]').val();
|
|
if (client_id > 0) {
|
|
$('#date-action').show();
|
|
}
|
|
$('#before-saving-modal').modal('show');
|
|
} else {
|
|
//alert('Choose destination');
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
function destValidation() {
|
|
// if($('select[name=select]').val() == 0){
|
|
// alert("Please select a client");
|
|
// return false;
|
|
// }else
|
|
if ($('textarea[name=personal_info]').val() == "") {
|
|
alert("Personal information required");
|
|
return false;
|
|
} else if ($('input[name=current_dob]').val() == "") {
|
|
alert("Date of birth required");
|
|
return false;
|
|
} else if ($('input[name=ssn]').val() == "") {
|
|
alert("Date of birth required");
|
|
return false;
|
|
} else if ($('input[name=cr_data]').val() == "") {
|
|
alert("Date of birth required");
|
|
return false;
|
|
} else {
|
|
var result = false;
|
|
$('.mutliSelect input[type=checkbox]').each(function() {
|
|
if ($(this).is(':checked')) {
|
|
result = true;
|
|
}
|
|
});
|
|
var destList = $('input[name="destination[]"]').map(function() {
|
|
|
|
if ($(this).is(':checked')) {
|
|
return $(this).val();
|
|
}
|
|
}).get();
|
|
|
|
if (destList.length == 0) {
|
|
result = false;
|
|
}
|
|
|
|
if (result == false) {
|
|
alert('Choose destination');
|
|
}
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
function onDownloadActivity() {
|
|
$('.download-area').show();
|
|
$('input[name=download_type]').attr('disable', false);
|
|
$('input[name=download_category]').attr('disable', false);
|
|
}
|
|
|
|
function offDownloadActivity() {
|
|
$('.download-area').hide();
|
|
$('input[name=download_type]').attr('disable', true);
|
|
$('input[name=download_category]').attr('disable', true);
|
|
}
|
|
|
|
function generate() {
|
|
onDownloadActivity();
|
|
$('#before-save').val(3);
|
|
var result = false;
|
|
if (destValidation()) {
|
|
result = true;
|
|
} else {
|
|
//alert('Choose destination');
|
|
}
|
|
|
|
if (result) {
|
|
$('#date-action').hide();
|
|
var client_id = $('select[name=select]').val();
|
|
if (client_id > 0) {
|
|
$('#date-action').show();
|
|
}
|
|
$('#before-saving-modal').modal('show');
|
|
|
|
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
function hasSelectedOtherFunction() {
|
|
var hasOther = false;
|
|
$('input[name="destination[]"]').each(function() {
|
|
if ($(this).prop('checked') && $(this).val() == 10) {
|
|
hasOther = true;
|
|
return false;
|
|
}
|
|
});
|
|
|
|
return hasOther;
|
|
}
|
|
|
|
// form submit functionality
|
|
$('#before-save').click(function(e) {
|
|
var export_type_id = [];
|
|
$('input[name="download_category[]"]').each(function(){
|
|
if($(this).prop('checked')){
|
|
export_type_id.push($(this).data('type'))
|
|
}
|
|
})
|
|
var other_dest_address = $('textarea[name=other_address]').val();
|
|
if (hasSelectedOtherFunction()) {
|
|
if (!other_dest_address) {
|
|
alert("Other destination address required.");
|
|
return false;
|
|
} else if (!isDfAddressValid(other_dest_address)) {
|
|
alert('Invalid other destination address "' + other_dest_address + '"');
|
|
return false;
|
|
}
|
|
}
|
|
|
|
if ($('input[name=set_schedule]').prop('checked')) {
|
|
var next_sending_email_date = $('input[name=next_sending_email_date]').val();
|
|
var letter_send_date_tmezone = $('select[name=letter_send_date_tmezone]').val();
|
|
var letter_type = $('select[name=letter_type]').val();
|
|
if (!next_sending_email_date) {
|
|
alert("Please select schedule date/time");
|
|
return
|
|
}
|
|
if (letter_send_date_tmezone == 0) {
|
|
alert("Please select timezone");
|
|
return
|
|
}
|
|
|
|
if (letter_type == 0) {
|
|
alert("Please select a letter set");
|
|
return
|
|
}
|
|
|
|
}
|
|
//set_automation
|
|
if ($('input[name=set_automation]').prop('checked')) {
|
|
var day_value = $('input[name=day_value]').val();
|
|
if (day_value) {
|
|
if (day_value == 0 || /\D/g.test(day_value)) {
|
|
alert('Please enter valid days for Setup Automation.');
|
|
return
|
|
}
|
|
} else {
|
|
alert("Please enter days of Setup Automation.");
|
|
return
|
|
}
|
|
}
|
|
|
|
if (hasLetterStream()) {
|
|
$('#before-saving-modal').modal('hide');
|
|
letterStreamModalGenerate();
|
|
} else {
|
|
|
|
$('input[name=isLetterStream]').val(0);
|
|
var btnValue = $(this).val();
|
|
var formData = new FormData(document.getElementById("inputformId"));
|
|
formData.append('export_type_id',export_type_id);
|
|
var download_type = $('input[name=download_type]:checked').val();
|
|
var download_category = false;
|
|
$('.download-category').each(function() {
|
|
if ($(this).prop('checked') && $(this).val() > 0) {
|
|
download_category = true;
|
|
return false;
|
|
}
|
|
})
|
|
|
|
|
|
if (btnValue == 3) { // save & generate
|
|
|
|
$('#inputformId').append('<input type="hidden" name="formAction" value="generate"/>');
|
|
$('#inputformId').append(`<input type="hidden" name="export_type_id" value="${export_type_id}"/>`);
|
|
|
|
if (download_type == 1) { // zip download
|
|
$('#before-saving-modal').modal('hide');
|
|
$('#inputformId').submit();
|
|
return true
|
|
} else if(download_type == 3){
|
|
formData.append('save_letter', 1);
|
|
formData.append('formAction', 'generate');
|
|
ajaxRequest(formData, 0);
|
|
|
|
} else if (download_type == 2 && download_category) { // sent ur resource
|
|
formData.append('formAction', 'generate');
|
|
ajaxRequest(formData, btnValue);
|
|
} else {
|
|
alert("Please choose item");
|
|
}
|
|
} else if (btnValue == 2) { // create new copy
|
|
$('#inputformId').append('<input type="hidden" name="action" value="create_new"/>');
|
|
if (download_type == 1) { // zip download
|
|
$('#before-saving-modal').modal('hide');
|
|
$('#inputformId').submit();
|
|
return true
|
|
} else if (download_type == 2 && download_category) { // sent ur resource
|
|
formData.append('action', 'create_new');
|
|
ajaxRequest(formData, btnValue);
|
|
} else if (download_type == "3") {
|
|
formData.append('save_letter', 1);
|
|
formData.append('formAction', 'generate');
|
|
ajaxRequest(formData, 0);
|
|
} else {
|
|
alert("Please choose item");
|
|
}
|
|
|
|
} else if (btnValue == 1) { // only save
|
|
formData.append('action', 'ajax');
|
|
ajaxRequest(formData, btnValue);
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
function ajaxRequest(formData, type) {
|
|
$('#letter-stream-btn, #before-save').attr('disabled', true);
|
|
$('#saveloading').show();
|
|
$('#saveloading-letter').show();
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__webroot/Staff/SERTG.php',
|
|
data: formData,
|
|
contentType: false,
|
|
cache: false,
|
|
processData: false,
|
|
success: function(data) {
|
|
$('#letter-stream-btn, #before-save').attr('disabled', false);
|
|
//console.log('data');
|
|
|
|
$('#saveloading').hide();
|
|
$('#saveloading-letter').hide();
|
|
$('#before-saving-modal').modal('hide');
|
|
$('#letter-stream-modal').modal('hide');
|
|
var response = JSON.parse(data);
|
|
|
|
if (type == 1) {
|
|
if (response.status == 1) {
|
|
alert('Saved Successfully');
|
|
$('#create-new-btn').show();
|
|
|
|
}
|
|
if (response.status == 2) {
|
|
alert('Update Successfully');
|
|
var id = response.id;
|
|
global_id = id;
|
|
getDestination(global_id);
|
|
$('input[type=file]').val(null).trigger('change');
|
|
|
|
}
|
|
$('input[name=update_id]').val(response.id);
|
|
} else {
|
|
|
|
if (response.message != "") {
|
|
//alert(response.message)
|
|
var link = "";
|
|
if(response.url){
|
|
link = response.url;
|
|
}
|
|
Swal.fire({
|
|
title: 'Velocity',
|
|
icon: 'info',
|
|
width: '450px',
|
|
padding: '3rem',
|
|
html: response.message + link,
|
|
type: 'warning',
|
|
fontsize:'1.6rem',
|
|
confirmButtonText: 'Close',
|
|
})
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function uploadphotos(elem, dynamicId) {
|
|
// Read in file
|
|
|
|
var url = $(elem).val();
|
|
var form_action = $('input[name=update_id]').val();
|
|
var id = $(elem).data('id');
|
|
var StrId = "";
|
|
var ImgId = "";
|
|
var ImgClear = "";
|
|
var Temp = "";
|
|
//dynamicId = $.trim(dynamicId);
|
|
if (dynamicId == 1) {
|
|
StrId = 'acc_img_url_';
|
|
ImgId = 'acc_img_';
|
|
ImgClear = 'acc_img_clear_';
|
|
Temp = 'temp_acc_img_';
|
|
$('input[name=check_indicator_' + id + ']').val(0);
|
|
$('input[name=isAccImageExist_' + id + ']').val(0);
|
|
} else if (dynamicId == 2) {
|
|
StrId = 'attachment_img_url_';
|
|
ImgId = 'att_img_';
|
|
ImgClear = 'att_img_clear_';
|
|
Temp = 'temp_attachment_';
|
|
$('input[name=isExistAttach_' + id + ']').val(0);
|
|
}
|
|
$("#" + StrId + id).val('');
|
|
//alert(StrId);
|
|
var file = "";
|
|
if (url != "") {
|
|
//alert(url);
|
|
file = event.target.files[0];
|
|
|
|
|
|
////console.log(file);
|
|
// Ensure it's an image
|
|
if (file.type.match(/image.*/)) {
|
|
////console.log('An image has been loaded');
|
|
//alert(12);
|
|
// Load the image
|
|
var reader = new FileReader();
|
|
reader.onload = function(readerEvent) {
|
|
var image = new Image();
|
|
image.onload = function(imageEvent) {
|
|
|
|
// Resize the image
|
|
var canvas = document.createElement('canvas'),
|
|
max_size = 300, // TODO : pull max size from a site config
|
|
width = image.width,
|
|
height = image.height;
|
|
|
|
canvas.width = width;
|
|
canvas.height = height;
|
|
canvas.getContext('2d').drawImage(image, 0, 0, width, height);
|
|
var dataUrl = canvas.toDataURL('image/jpeg');
|
|
$("#" + StrId + id).val(dataUrl);
|
|
$("#" + StrId + id).prevAll('input#acc_img_clear').val(0);
|
|
$("#" + StrId + id).prevAll('input#att_img_clear').val(0);
|
|
$("#" + ImgId + id).attr('src', dataUrl);
|
|
$("#" + ImgId + id).show();
|
|
// $("input[name="+Temp+id+"]").val('');
|
|
////console.log(canvas);
|
|
if (form_action > 0) {
|
|
$('input[name=' + ImgClear + id + ']').val(1);
|
|
}
|
|
}
|
|
image.src = readerEvent.target.result;
|
|
}
|
|
reader.readAsDataURL(file);
|
|
} else {
|
|
alert('Image type is not supported');
|
|
$(elem).val('');
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
function setAllCheck(elem) { //dest_ul_check_
|
|
|
|
var selectedDiv = "";
|
|
if ($(elem).parent().parent().hasClass('col-md-6')) {
|
|
//alert('acc');
|
|
selectedDiv = $(elem).parents('div.row').first().next('div').children('div').children('ul').children('li').children('input[type=checkbox]:visible');
|
|
} else {
|
|
//alert('att');
|
|
selectedDiv = $(elem).parent('div').next('div').children('div').children('ul').children('li').children('input[type=checkbox]:visible');
|
|
}
|
|
|
|
|
|
//console.log(selectedDiv.length);
|
|
if (selectedDiv.parents('.dest-checkbox')) {
|
|
|
|
}
|
|
|
|
/*var att_check_num = selectedDiv.parents('.att-checkbox').attr('id').replace('att-checkbox_','');
|
|
alert(att_check_num)
|
|
$('#att-checkbox_'+att_check_num).children('ul').children('li').children('input').each(function(){
|
|
$(this).prop('checked',true);
|
|
});*/
|
|
var dfclass = selectedDiv.hasClass('dfclass');
|
|
if ($(elem).is(':checked')) {
|
|
selectedDiv.prop('checked', true);
|
|
|
|
//alert(name)
|
|
if (dfclass) {
|
|
var dfparentId = selectedDiv.parents('.dest-checkbox').attr('id').replace('dest-checkbox_', '');
|
|
if (selectedDiv.prop('checked', true)) {
|
|
selectedDiv.removeClass('dfclass');
|
|
//selectedDiv.attr('name','df_checkbox_'+dfparentId);
|
|
//selectedDiv.find('.dest_check_11').addClass('dfclass')
|
|
selectedDiv.each(function() {
|
|
if ($(this).hasClass('dest_check_11')) {
|
|
$(this).addClass('dfclass');
|
|
}
|
|
});
|
|
//console.log(selectedDiv);
|
|
$('#df-area_' + dfparentId).show();
|
|
}
|
|
}
|
|
} else {
|
|
//alert(id)
|
|
if (dfclass) {
|
|
var dfparentId = selectedDiv.parents('.dest-checkbox').attr('id').replace('dest-checkbox_', '');
|
|
$('#df-area_' + dfparentId).hide();
|
|
$('.dfclass').parent().show();
|
|
}
|
|
selectedDiv.prop('checked', false);
|
|
}
|
|
|
|
}
|
|
|
|
/*function attAllcheck(elem) {
|
|
var selectedDiv = $(elem).parent('div').next('div').children('div').children('ul').children('li').children('input[type=checkbox]');
|
|
|
|
//console.log(selectedDiv.length);
|
|
|
|
|
|
if($(elem).is(':checked')){
|
|
selectedDiv.prop('checked',true);
|
|
}else {
|
|
//alert(id)
|
|
selectedDiv.prop('checked',false);
|
|
}
|
|
|
|
|
|
}*/
|
|
|
|
|
|
function clearImage(imageId) {
|
|
|
|
$('#' + imageId).prevAll('input#att_img_clear').val(1);
|
|
$('#' + imageId).val(null).trigger('change');
|
|
//alert(imageId);
|
|
$("#att_img_" + imageId).attr('src', '');
|
|
// $("input[name=temp_attachment_"+imageId+"]").val('');
|
|
$("#att_img_" + imageId).hide();
|
|
$('input[name=isExistAttach_' + imageId + ']').val(1);
|
|
}
|
|
|
|
function makeAllCheck(elem) {
|
|
var allCheckbox = "";
|
|
if ($(elem).parents('div.form-group').first().prev('div').hasClass('view-allcheck')) {
|
|
allCheckbox = $(elem).parents('div.form-group').first().prev('div.view-allcheck').children('input[type=checkbox]:not(.auto-generate-checkbox,.create-new-letter-checkbox)');
|
|
} else {
|
|
allCheckbox = $(elem).parents('div.form-group').first().prev('div.row').children('div').children('div.view-allcheck').children('input[type=checkbox]:not(.auto-generate-checkbox, .create-new-letter-checkbox)');
|
|
}
|
|
var parentId = $(elem).parents('ul').prop('id');
|
|
var all = $('#' + parentId + ' li:visible input').length;
|
|
var checked = $('#' + parentId + ' li:visible input:checked').length;
|
|
|
|
if (all == checked) {
|
|
allCheckbox.prop('checked', true);
|
|
} else {
|
|
allCheckbox.prop('checked', false);
|
|
}
|
|
//att-checkbox_1
|
|
|
|
var dfclass = $(elem).hasClass('dfclass');
|
|
//alert(name)
|
|
|
|
if (dfclass) {
|
|
var dfparentId = $(elem).parents('.dest-checkbox').attr('id').replace('dest-checkbox_', '');
|
|
$('#df_item_bankCategory_list_' + dfparentId).html('');
|
|
$('#df_item_inquirey_list_' + dfparentId).html('');
|
|
$('#df_item_public_list_' + dfparentId).html('');
|
|
$('select[name=df_item_bankCategory_' + dfparentId + ']').val(0).trigger('change');
|
|
$('select[name=df_item_inquirey_' + dfparentId + ']').val(0).trigger('change');
|
|
$('select[name=df_item_public_' + dfparentId + ']').val(0).trigger('change');
|
|
$('textarea[name=df_textarea_' + dfparentId + ']').val('')
|
|
if ($(elem).prop('checked')) {
|
|
//$(elem).attr('name','df_checkbox_'+dfparentId);
|
|
$(elem).removeClass('dfclass');
|
|
$(elem).addClass('dfclass')
|
|
$('#df-area_' + dfparentId).show();
|
|
} else {
|
|
$('#df-area_' + dfparentId).hide();
|
|
$('.dfclass').parent().show();
|
|
}
|
|
}
|
|
////console.log(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
function setInqueryCheck(elem) {
|
|
var checkval = $(elem).val();
|
|
var dropdown_client_id = $('#client-contact-id').val();
|
|
if (dropdown_client_id == 0) {
|
|
alert('You have to select a client for this.');
|
|
$(elem).prop('checked', false)
|
|
return false;
|
|
}
|
|
var acc_div = $(elem).parents('dl.dropdown-x').first()
|
|
.parent('div').parent('div')
|
|
.parent('div').parent('div')
|
|
.nextAll('div#input-file-field')
|
|
.first().children('div.col-sm-4')
|
|
.first();
|
|
|
|
var name = $(elem).attr('name');
|
|
var divlen = name.replace('enhance_check_', '');
|
|
//alert(divlen);
|
|
$('#item-category_' + divlen).html('');
|
|
$('#item-bank_' + divlen).css({
|
|
'pointer-events': '',
|
|
'cursor': ''
|
|
});
|
|
$('#item-bank-name-' + divlen).html('');
|
|
$('.bank-input_' + divlen).prop('checked', false);
|
|
$('select[name=item_inquirey_' + divlen + ']').attr('disabled', false);
|
|
$('select[name=item_bankCategory_' + divlen + ']').attr('disabled', false);
|
|
$('select[name=item_public_category_' + divlen + ']').attr('disabled', false);
|
|
$('select[name=late_pays2days_' + divlen + ']').attr('disabled', false);
|
|
$('#late-pays-item-bank_' + divlen).children().find('a').removeClass('disable-elem');
|
|
$('#item-public-subcategory_' + divlen).children().find('a').removeClass('disable-elem');
|
|
$('#inquiry-subcategory_' + divlen).children().find('a').removeClass('disable-elem');
|
|
$('#item-bank_' + divlen).children().find('a').removeClass('disable-elem');
|
|
if (checkval == 1) {
|
|
$('#item-bank-name-' + divlen).empty();
|
|
}
|
|
|
|
$('select[name=item_attack_num_' + divlen + ']').attr('disabled', false);
|
|
$('select[name=item_inquirey_' + divlen + ']').attr('disabled', false);
|
|
$('select[name=item_ownership_' + divlen + ']').attr('disabled', false);
|
|
$('select[name=item_discount_' + divlen + ']').attr('disabled', false);
|
|
|
|
$(elem).parent('li').siblings().children('input[type="checkbox"]').prop('checked', false);
|
|
$('select[name=item_ownership_' + divlen + ']').attr('disabled', false);
|
|
$('select[name=item_discount_' + divlen + ']').attr('disabled', false);
|
|
$('select[name=item_discount_' + divlen + ']').val(null).trigger('change');
|
|
$("#item-discont-" + divlen).remove();
|
|
acc_div.children('#acc-num-sub').children('dt').children('div').children('a').removeClass('disable-elem');
|
|
acc_div.children('#acc-aspect-sub').children('dt').children('div').children('a').removeClass('disable-elem');
|
|
acc_div.children('#acc-derogatory-sub').children('dt').children('div').children('a').removeClass('disable-elem');
|
|
acc_div.children('#acc-num-sub').children('dt').children('div').children('a').children('p').children().remove();
|
|
acc_div.children('#acc-aspect-sub').children('dt').children('div').children('a').children('p').children().remove();
|
|
acc_div.children('#acc-derogatory-sub').children('dt').children('div').children('a').children('p').children().remove();
|
|
|
|
acc_div.children('span').find('textarea').attr('disabled', false);
|
|
acc_div.children('#acc-num-sub').children('dd').children('div.mutliSelect').show();
|
|
acc_div.children('#acc-aspect-sub').children('dd').children('div.mutliSelect').show();
|
|
acc_div.children('#acc-derogatory-sub').children('dd').children('div.mutliSelect').show();
|
|
acc_div.children('#acc-derogatory-sub').children('dt').children('div').children('a').children('p').children().remove();
|
|
acc_div.children('#acc-derogatory-sub').children('dd').children('div.mutliSelect').children('ul').children('li').children('input[type=checkbox][value=36]').prop('checked', false);
|
|
acc_div.children('#acc-derogatory-sub').children('dt').children('div').children('a').children('span').remove();
|
|
acc_div.children('#acc-aspect-sub').children('dt').children('div').children('a').children('span').remove();
|
|
acc_div.children('#acc-num-sub').children('dt').children('div').children('a').children('span').remove();
|
|
acc_div.children('#acc-derogatory-sub').children('dt').children('div').children('a').append('<span class="choose-dest">Choose Item</span>');
|
|
acc_div.children('#acc-aspect-sub').children('dt').children('div').children('a').append('<span class="choose-dest">Choose Item</span>');
|
|
acc_div.children('#acc-num-sub').children('dt').children('div').children('a').append('<span class="choose-dest">Choose Item</span>');
|
|
$('#enhance_img_' + divlen).hide();
|
|
//$('#acc_img_'+divlen).hide();
|
|
//$('#acc_img_'+divlen).attr('src','');
|
|
var multiSelP = $(elem).parents('dl.dropdown-x').first().children().find('p#dest-id');
|
|
$('input[name=image_' + divlen + ']').attr('disabled', false);
|
|
multiSelP.html('');
|
|
multiSelP.prev("span.choose-dest").show();
|
|
$('#item-subcat-name-' + divlen).html('');
|
|
$('#inquiry-subcat-name-' + divlen).html('');
|
|
$('#inquiry-subcat-name-' + divlen).prev('span').show();
|
|
$('#item-bank-name-' + divlen).prev('span').show();
|
|
$('select[name=rebuttal_' + divlen + ']').val(null).trigger('change');
|
|
$('.negative-input_' + divlen).prop('checked', false);
|
|
$('.negative-inq-input_' + divlen).prop('checked', false);
|
|
if ($(elem).is(':checked')) {
|
|
// $('input[name=auto_generate_image_1]').show();
|
|
// $('input[name=auto_generate_image_1]').next('span.agi').show();
|
|
|
|
var title = $(elem).next('span').text();
|
|
var html = '<span class="hida" title="' + title + '">' + title + '</span>';
|
|
multiSelP.append(html);
|
|
multiSelP.prev("span.choose-dest").hide();
|
|
//alert(123)
|
|
// $('input[name=image_'+divlen+']').val(null);
|
|
//$('input[name=image_'+divlen+']').attr('disabled',true);
|
|
acc_div.children('#acc-num-sub').children('dt').children('div').children('a').addClass('disable-elem');
|
|
acc_div.children('#acc-num-sub').children('dd').children('div.mutliSelect').hide();
|
|
acc_div.children('#acc-aspect-sub').children('dt').children('div').children('a').addClass('disable-elem');
|
|
acc_div.children('#acc-aspect-sub').children('dd').children('div.mutliSelect').hide();
|
|
acc_div.children('#acc-derogatory-sub').children('dt').children('div').children('a').addClass('disable-elem');
|
|
|
|
if (checkval == 2) {
|
|
|
|
acc_div.children('#acc-derogatory-sub').children('dt').children('div').children('a').children('span').remove();
|
|
acc_div.children('#acc-derogatory-sub').children('dt').children('div').children('a').children('p').append('<span class="hida" title="Inquiry Option">Inquiry Option</span>');
|
|
acc_div.children('#acc-derogatory-sub').children('dt').children('div').children('a').children('p').append('<span class="hida" title="Derogator Claim Optipon">Derogator Claim Optipon</span>');
|
|
acc_div.children('#acc-derogatory-sub').children('dt').children('div').children('a').children('p').append('<span class="hida" title="Deficient Reported Dataoption">Deficient Reported Dataoption</span>');
|
|
acc_div.children('#acc-derogatory-sub').children('dd').children('div.mutliSelect').children('ul').children('li').children('input[type=checkbox][value=36]').prop('checked', true);
|
|
acc_div.children('#acc-derogatory-sub').children('dd').children('div.mutliSelect').children('ul').children('li').children('input[type=checkbox][value=38]').prop('checked', true);
|
|
acc_div.children('#acc-derogatory-sub').children('dd').children('div.mutliSelect').children('ul').children('li').children('input[type=checkbox][value=41]').prop('checked', true);
|
|
|
|
if ($('#acc_img_' + divlen).attr('src').length == 0 || $('#acc_img_' + divlen).attr('src') == $('input[name=admin_enhance_img]').val()) {
|
|
$('#acc_img_' + divlen).attr('src', '');
|
|
$('#acc_img_' + divlen).attr('src', $('input[name=admin_inquiry_img]').val());
|
|
$('input[name=temp_acc_img_' + divlen + ']').val($('input[name=admin_inquiry_img]').val());
|
|
$('input[name=check_indicator_' + divlen + ']').val(2);
|
|
$('#acc_img_' + divlen).show();
|
|
}
|
|
|
|
$('#item-bank_' + divlen).css({
|
|
'pointer-events': 'none',
|
|
'cursor': 'not-allowed'
|
|
});
|
|
$('select[name=item_public_category_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_discount_' + divlen + ']').val(2).change();
|
|
var acc_aspect = $('input[name=acc_aspect_issues_sub_' + divlen + '\\[\\]][value=24]');
|
|
var title1 = acc_aspect.parent('li').text();
|
|
acc_aspect.parents('dl.dropdown-x').first().children().find('p.multiSel').next('span').remove();
|
|
acc_aspect.parents('dl.dropdown-x').first().children().find('p.multiSel').append('<span class="hida" title="' + title1 + '">' + title1 + '</span>');
|
|
acc_aspect.prop('checked', true);
|
|
|
|
var acc_aspect1 = $('input[name=acc_aspect_issues_sub_' + divlen + '\\[\\]][value=25]');
|
|
var title2 = acc_aspect1.parent('li').text();
|
|
acc_aspect1.parents('dl.dropdown-x').first().children().find('p.multiSel').next('span').remove();
|
|
acc_aspect1.parents('dl.dropdown-x').first().children().find('p.multiSel').append('<span class="hida" title="' + title2 + '">' + title2 + '</span>');
|
|
acc_aspect1.prop('checked', true);
|
|
|
|
var acc_aspect3 = $('input[name=acc_aspect_issues_sub_' + divlen + '\\[\\]][value=72]');
|
|
var title3 = acc_aspect3.parent('li').text();
|
|
acc_aspect3.parents('dl.dropdown-x').first().children().find('p.multiSel').next('span').remove();
|
|
acc_aspect3.parents('dl.dropdown-x').first().children().find('p.multiSel').append('<span class="hida" title="' + title3 + '">' + title3 + '</span>');
|
|
acc_aspect3.prop('checked', true);
|
|
getInquiryItemCategoryInfo($('select[name=item_inquirey_' + divlen + ']'));
|
|
//$('.negative-inq-input_' + divlen).click();
|
|
$('.negative-inq-input_' + divlen).each(function() {
|
|
var data_view = $(this).data('view');
|
|
if (data_view) {
|
|
var data_view_array = data_view.split('\n')
|
|
$('#inquiry-subcat-name-' + divlen).prev('.choose-dest').hide();
|
|
$(this).prop('checked', true);
|
|
$('#inquiry-subcat-name-' + divlen).append('<span class="hida" title="' + data_view_array[0] + '"> ' + data_view_array[0] + '</span>');
|
|
getInquiriesSubCategoryInfo($(this));
|
|
}
|
|
});
|
|
$('select[name=rebuttal_' + divlen + ']').val(2).trigger('change');
|
|
$('#acc-aspect-sub_' + divlen).show();
|
|
$('#acc-derogatory-sub_' + divlen).show();
|
|
acc_div.children('#acc-derogatory-sub')
|
|
.children('dt').children('div')
|
|
.children('a').removeClass('disable-elem')
|
|
//.css({'pointer-events':'','cursor':''});
|
|
acc_div.children('#acc-aspect-sub')
|
|
.children('dt').children('div')
|
|
.children('a').removeClass('disable-elem')
|
|
//.css({'pointer-events':'','cursor':''});
|
|
$('#item-bank_' + divlen).children().find('a').addClass('disable-elem');
|
|
} else if (checkval == 1) {
|
|
//=======
|
|
$('#item-bank_' + divlen).children().find('a').addClass('disable-elem');
|
|
$('select[name=item_bankCategory_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=late_pays2days_' + divlen + ']').attr('disabled', true);
|
|
$('p#late-pays-item-bank-name-' + divlen).html('');
|
|
$('p#late-pays-item-bank-name-' + divlen).prev('.choose-dest').show();
|
|
$('#late-pays-item-bank_' + divlen).children().find('a').addClass('disable-elem');
|
|
$('#item-public-subcategory_' + divlen).children().find('a').addClass('disable-elem');
|
|
|
|
$('select[name=item_inquirey_' + divlen + ']').attr('disabled', true);
|
|
$('#inquiry-subcategory_' + divlen).children().find('a').addClass('disable-elem');
|
|
//======
|
|
$('.bank-input_' + divlen).prop('checked', false);
|
|
$('#item-bank_' + divlen).css({
|
|
'pointer-events': 'none',
|
|
'cursor': 'not-allowed'
|
|
});
|
|
$('#item-bank-name-' + divlen).empty();
|
|
|
|
var item_bank_div = $('#item-bank-name-' + divlen).parent();
|
|
if (item_bank_div.text() == "") {
|
|
item_bank_div.append('<span class="choose-dest">Choose Item</span>');
|
|
}
|
|
|
|
$('select[name=item_bank_name_' + divlen + ']').attr('disabled', true);
|
|
$client_id = $('#client-contact-id').find(':selected').attr('data-id')
|
|
if ($client_id > 0) {
|
|
//DD_ID = 26;
|
|
//alert($('input[name=dd_id]').val());
|
|
|
|
$itemCategoryHtml = getItemCategoryDropDown(divlen);
|
|
$('#item-category_' + divlen).html($itemCategoryHtml);
|
|
$idname = 'item-category-negative_' + divlen;
|
|
$idname1 = 'item-category-negative_' + divlen;
|
|
$('#item-category_' + divlen).append("<div id='item-category-negative'></div>")
|
|
$('#item-public-category_' + divlen).append("<div id='item-public-category-negative'></div>")
|
|
}
|
|
|
|
|
|
$('select[name=item_discount_' + divlen + ']').val(1).trigger('change');
|
|
var name = $('select[name=item_discount_' + divlen + ']').attr('name');
|
|
//alert(name);
|
|
$('select[name=item_discount_' + divlen + ']').after('<input type="hidden" value="1" id="item-discont-' + divlen + '" name="' + name + '">');
|
|
$('select[name=item_discount_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_ownership_' + divlen + ']').attr('disabled', true);
|
|
if ($('#acc_img_' + divlen).attr('src').length == 0 || $('#acc_img_' + divlen).attr('src') == $('input[name=admin_inquiry_img]').val()) {
|
|
$('#acc_img_' + divlen).attr('src', '');
|
|
$('#acc_img_' + divlen).attr('src', $('input[name=admin_enhance_img]').val());
|
|
$('input[name=temp_acc_img_' + divlen + ']').val($('input[name=admin_enhance_img]').val());
|
|
$('input[name=check_indicator_' + divlen + ']').val(1);
|
|
$('#acc_img_' + divlen).show();
|
|
}
|
|
|
|
$('select[name=item_public_category_' + divlen + ']').attr('disabled', true);
|
|
getItemCategoryInfo($('select[name=item_category_' + divlen + ']'));
|
|
$('.negative-input_' + divlen).each(function() {
|
|
var data_view = $(this).data('view');
|
|
if (data_view) {
|
|
$('#item-subcat-name-' + divlen).prev('.choose-dest').hide();
|
|
$(this).prop('checked', true);
|
|
$('#item-subcat-name-' + divlen).append('<span class="hida" title="' + data_view + '"> ' + data_view + '</span>');
|
|
getSubCategoryInfo($(this));
|
|
}
|
|
});
|
|
//$('.negative-input_' + divlen).click();
|
|
|
|
} else if (checkval == 3) {
|
|
|
|
$('#acc-aspect-sub_' + divlen).show();
|
|
$('#acc-derogatory-sub_' + divlen).show();
|
|
$('#item-bank_' + divlen).css({
|
|
'pointer-events': 'unset',
|
|
'cursor': ''
|
|
});
|
|
$('#item-bank_' + divlen).children().find('a').removeClass('disable-elem');
|
|
$('#item-bank-name-' + divlen).html('');
|
|
$('.bank-input_' + divlen).prop('checked', false);
|
|
|
|
$('.bank-input_' + divlen).each(function() {
|
|
var data_view = $(this).data('view');
|
|
if (data_view) {
|
|
$('#item-bank-name-' + divlen).prev('.choose-dest').hide();
|
|
$(this).prop('checked', true);
|
|
$('#item-bank-name-' + divlen).append('<span class="hida" title=" ' + data_view + '"> ' + data_view + '</span>');
|
|
getBankInfo($(this));
|
|
}
|
|
});
|
|
|
|
|
|
$('select[name=item_attack_num_' + divlen + ']').val(3).trigger('change');
|
|
$('select[name=rebuttal_' + divlen + ']').val(1).trigger('change');
|
|
$('select[name=item_discount_' + divlen + ']').val(3).trigger('change');
|
|
var acc_aspect3 = $('input[name=acc_aspect_issues_sub_' + divlen + '\\[\\]][value=72]');
|
|
var title3 = acc_aspect3.parent('li').text();
|
|
acc_aspect3.parents('dl.dropdown-x').first().children().find('p.multiSel').next('span').remove();
|
|
acc_aspect3.parents('dl.dropdown-x').first().children().find('p.multiSel').append('<span class="hida" title="' + title3 + '">' + title3 + '</span>');
|
|
acc_aspect3.prop('checked', true);
|
|
|
|
var dero1 = $('input[name=acc_derogatory_issues_sub_' + divlen + '\\[\\]][value=38]');
|
|
var title4 = dero1.parent('li').text();
|
|
dero1.parents('dl.dropdown-x').first().children().find('p.multiSel').next('span').remove();
|
|
dero1.parents('dl.dropdown-x').first().children().find('p.multiSel').append('<span class="hida" title="' + title4 + '">' + title4 + '</span>');
|
|
dero1.prop('checked', true);
|
|
|
|
var dero2 = $('input[name=acc_derogatory_issues_sub_' + divlen + '\\[\\]][value=41]');
|
|
var title5 = dero2.parent('li').text();
|
|
dero2.parents('dl.dropdown-x').first().children().find('p.multiSel').next('span').remove();
|
|
dero2.parents('dl.dropdown-x').first().children().find('p.multiSel').append('<span class="hida" title="' + title5 + '">' + title5 + '</span>');
|
|
dero2.prop('checked', true);
|
|
//$('#item-bank_'+divlen).children('dt').children('div').children('a').removeClass('disable-elem')
|
|
acc_div.children('#acc-derogatory-sub')
|
|
.children('dt').children('div')
|
|
.children('a').removeClass('disable-elem')
|
|
.css({
|
|
'pointer-events': 'unset',
|
|
'cursor': 'context-menu'
|
|
});
|
|
acc_div.children('#acc-aspect-sub')
|
|
.children('dt').children('div')
|
|
.children('a').removeClass('disable-elem')
|
|
.css({
|
|
'pointer-events': 'unset',
|
|
'cursor': 'context-menu'
|
|
});
|
|
|
|
} else if (checkval == 4) {
|
|
|
|
$('select[name=item_attack_num_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_inquirey_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_ownership_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_discount_' + divlen + ']').attr('disabled', true);
|
|
|
|
if ($('input[name=from_load]').val() == 1) {
|
|
setAutomaticallyDestinations();
|
|
setDestinationCheckForSTTandPublic(divlen)
|
|
checkDestinationAndDisabled(divlen);
|
|
var first_selcted_bank_list = [];
|
|
var first_selected_inquries = "";
|
|
// for(var i in BANK_CHUNK_LIST){
|
|
// if(i == 0){
|
|
// first_selcted_bank_list = BANK_CHUNK_LIST[i];
|
|
// break;
|
|
// }
|
|
// }
|
|
|
|
//console.log('BANK_CHUNK_LIST',BANK_CHUNK_LIST[0])
|
|
if (BANK_ASSOC_CHUNK_LIST[0].negative_item_ids) {
|
|
first_selcted_bank_list = BANK_ASSOC_CHUNK_LIST[0].negative_item_ids
|
|
}
|
|
|
|
if (BANK_ASSOC_CHUNK_LIST[0].inqury) {
|
|
first_selected_inquries = BANK_ASSOC_CHUNK_LIST[0].inqury
|
|
}
|
|
|
|
var bankObj = setSttPreset($(elem), divlen, true, first_selcted_bank_list);
|
|
getSTTPresetContentNew3(divlen, 0, 0, false, first_selected_inquries);
|
|
var public_selected_html = $('#item-subcat-name-' + divlen).html();
|
|
var total_bank = $('input[name="item_bank_' + divlen + '[]"]').length;
|
|
// total_bank = total_bank - bankObj.last_sected_bank
|
|
// total_bank = total_bank / 15;
|
|
var next_div = divlen;
|
|
next_div++;
|
|
|
|
var first_div_len = divlen;
|
|
var first_html = $('#item-bank-name-' + divlen).html();
|
|
var total_section = BANK_ASSOC_CHUNK_LIST.length;
|
|
var inquiry_html = $('#inquiry-subcat-name-' + next_div).html();
|
|
var inq_text_area = $('textarea[name=image_text_area_' + next_div + ']').val();
|
|
if (total_section > 0) {
|
|
var count_section = $('label:contains(Velocity Quick Start: Easy To Go)').length;
|
|
var isNotFirstTime = false;
|
|
var last_bnk_val = 0;
|
|
|
|
count_section++
|
|
var html = "";
|
|
|
|
for (var i in BANK_ASSOC_CHUNK_LIST) {
|
|
if (i == 0) {
|
|
|
|
} else {
|
|
var inquiry_content = getSTTPresetContentNew2(count_section, 0, 0, false, inquiry_html, BANK_ASSOC_CHUNK_LIST[i].inqury, BANK_ASSOC_CHUNK_LIST[i].inqury_ids);
|
|
var negative_item_content = getSTTPresetContentNew1(BANK_ASSOC_CHUNK_LIST[i].inqury, count_section, 0, 0, last_bnk_val, isNotFirstTime, BANK_ASSOC_CHUNK_LIST[i].negative_item_ids, public_selected_html, BANK_ASSOC_CHUNK_LIST[i].negative_item);
|
|
html += negative_item_content + inquiry_content;
|
|
last_bnk_val = 0;
|
|
count_section = count_section + 2
|
|
}
|
|
}
|
|
$('#image-area').append(html);
|
|
}
|
|
$('#item-bank-name-' + divlen).html(first_html);
|
|
}
|
|
|
|
|
|
$('input[name=auto_generate_image_1]').css({
|
|
'pointer-events': 'none'
|
|
});
|
|
|
|
$('input[name=auto_generate_image_1]').hide();
|
|
$('input[name=auto_generate_image_1]').next('span.agi').hide();
|
|
$('input[name=auto_generate_image_1]').prop('checked', false);
|
|
|
|
} else if (checkval == 5) {
|
|
$('select[name=item_bankCategory_' + divlen + ']').attr('disabled', true);
|
|
$('#item-bank_' + divlen + ' a').addClass('disable-elem').css({
|
|
'pointer-events': 'none'
|
|
});
|
|
$('select[name=rebuttal_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_attack_num_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_inquirey_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_ownership_' + divlen + ']').attr('disabled', true);
|
|
$('select[name=item_discount_' + divlen + ']').attr('disabled', true);
|
|
setAutomaticallyDestinations();
|
|
setDestinationCheckForSTTandPublic(divlen)
|
|
checkDestinationAndDisabled(divlen);
|
|
setPublicRecordAttack($(elem), divlen)
|
|
}
|
|
if (checkval != 3) {
|
|
//acc_div.children('#acc-derogatory-sub').children('dd').children('div.mutliSelect').hide();
|
|
acc_div.children('span').find('textarea').attr('disabled', true);
|
|
}
|
|
|
|
if (checkval != 4) {
|
|
getCreditReportContent($('input[name=auto_generate_image_' + divlen + ']'), false);
|
|
}
|
|
|
|
|
|
} else {
|
|
$('#item-category_' + divlen).html('');
|
|
//$('#item-public-category_'+divlen).html('');
|
|
if (checkval == 1) {
|
|
$('#item-bank_' + divlen).css({
|
|
'pointer-events': 'unset',
|
|
'cursor': ''
|
|
});
|
|
}
|
|
}
|
|
|
|
if (checkval != 3) {
|
|
//$('#item-bank-name-'+divlen).parent().toggleClass('disable-elem');
|
|
}
|
|
//return false;
|
|
}
|
|
|
|
function setDestinationCheckForSTTandPublic(divlen) {
|
|
var disabled_checkbox_values = ["1","2","3"];
|
|
|
|
$('input[name="dest_check_' + divlen + '[]"]').map(function(index,value) {
|
|
|
|
if($.inArray($(this).val(), disabled_checkbox_values) != -1) {
|
|
console.log('ssss',index,value,$(this).val(),disabled_checkbox_values);
|
|
|
|
if (!$(this).prop('checked')) {
|
|
$(this).prop('checked', true);
|
|
}
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
function setAutomaticallyDestinations() {
|
|
if ($('input[name=from_load]').val() == 1) {
|
|
$('input[name="destination[]"]').each(function() {
|
|
var value = $(this).val();
|
|
if ($.inArray(value, ["1", "2", "3"]) != -1) {
|
|
if (!$(this).prop('checked')) {
|
|
$(this).click();
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|
|
}
|
|
|
|
function checkDestinationAndDisabled(divlen) {
|
|
$('input[name="dest_check_' + divlen + '[]"]').map(function() {
|
|
var disabled_checkbox_values = ["1","2","3"];
|
|
if($.inArray($(this).val(), disabled_checkbox_values) != -1) {
|
|
$(this).css({
|
|
'pointer-events': 'none',
|
|
'cursor': 'context-menu'
|
|
});
|
|
}
|
|
});
|
|
var count = 1;
|
|
$('.view-allcheck input[type=checkbox]').each(function() {
|
|
$(this).attr('id', 'all_att_check_' + count);
|
|
count++;
|
|
})
|
|
console.log('ddddd',divlen);
|
|
// $('#all_att_check_' + divlen).prop('checked', true).css({
|
|
// 'pointer-events': 'none',
|
|
// 'cursor': 'context-menu'
|
|
// });
|
|
}
|
|
|
|
function getTotalSelected(id) {
|
|
var selected = 0;
|
|
|
|
if (count_itemDiscont_ForAttack[id] != null) {
|
|
selected += count_itemDiscont_ForAttack[id];
|
|
}
|
|
|
|
if (count_acc_aspect_ForAttack[id] != null) {
|
|
selected += count_acc_aspect_ForAttack[id];
|
|
}
|
|
|
|
if (count_acc_num_ForAttack[id] != null) {
|
|
selected += count_acc_num_ForAttack[id];
|
|
}
|
|
|
|
if (count_acc_derogatory_ForAttack[id] != null) {
|
|
selected += count_acc_derogatory_ForAttack[id];
|
|
}
|
|
|
|
if (count_acc_other_text_ForAttack[id] != null) {
|
|
selected += count_acc_other_text_ForAttack[id];
|
|
}
|
|
|
|
|
|
return selected;
|
|
}
|
|
|
|
// set Rule for attack
|
|
|
|
function rules(id) {
|
|
var result = false;
|
|
var selectedByAttack = [];
|
|
selectedByAttack[0] = 3;
|
|
selectedByAttack[1] = 3;
|
|
selectedByAttack[2] = 5;
|
|
selectedByAttack[3] = 7;
|
|
selectedByAttack[4] = 3;
|
|
|
|
var attackVal = $('select[name=item_attack_num_' + id + ']').val();
|
|
$('select[name=item_discount_' + id + ']').attr('disabled', false);
|
|
var item_discont = $('select[name=item_discount_' + id + ']').val();
|
|
var selected = getTotalSelected(id);
|
|
|
|
if (selected > selectedByAttack[attackVal]) {
|
|
alert('You could not select more than ' + selectedByAttack[attackVal]);
|
|
result = true;
|
|
}
|
|
|
|
if (selected >= selectedByAttack[attackVal] && item_discont == null) {
|
|
$('select[name=item_discount_' + id + ']').attr('disabled', true);
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
// get item attack number
|
|
function getItemAttackValue(elem) {
|
|
var attackVal = $(elem).val();
|
|
var name = $(elem).attr('name');
|
|
var id = parseInt(name.replace("item_attack_num_", "", name));
|
|
clearAccItem(id);
|
|
//alert(selected);
|
|
|
|
}
|
|
|
|
|
|
function clearAccItem(id) {
|
|
var acc_num = $('#acc-num-sub_' + id).children('ul').children('li').children('input');
|
|
var acc_aspect = $('#acc-aspect-sub_' + id).children('ul').children('li').children('input');
|
|
var acc_derogatory = $('#acc-derogatory-sub_' + id).children('ul').children('li').children('input');
|
|
|
|
acc_num.each(function() {
|
|
if ($(this).prop('checked')) {
|
|
$(this).click();
|
|
}
|
|
});
|
|
|
|
acc_aspect.each(function() {
|
|
if ($(this).prop('checked')) {
|
|
$(this).click();
|
|
}
|
|
});
|
|
|
|
acc_derogatory.each(function() {
|
|
if ($(this).prop('checked')) {
|
|
$(this).click();
|
|
}
|
|
});
|
|
|
|
$('select[name=item_discount_' + id + ']').val(null).trigger('change');
|
|
}
|
|
|
|
function getItemDiscont(elem) {
|
|
var result = 0;
|
|
var itemVal = $(elem).val();
|
|
if (itemVal.length > 0) {
|
|
result = 1;
|
|
}
|
|
var name = $(elem).attr('name');
|
|
var id = name.replace('item_discount_', "", name);
|
|
//alert(id);
|
|
count_itemDiscont_ForAttack[id] = result;
|
|
/* var selected = getTotalSelected(id);
|
|
//$(elem).attr('disabled',false);
|
|
if(selected >= 3){
|
|
alert('You could not select more than 3 ');
|
|
|
|
}*/
|
|
//alert(selected);
|
|
}
|
|
$('.control-label').on('click', function() {
|
|
//alert("item_discon : "+count_itemDiscont_ForAttack+" Acc Aspect: "+count_acc_aspect_ForAttack+" Acc Num: "+count_acc_num_ForAttack+" Acc Derogatory: "+count_acc_derogatory_ForAttack);
|
|
//console.log(count_itemDiscont_ForAttack);
|
|
//console.log(count_acc_aspect_ForAttack);
|
|
//console.log(count_acc_num_ForAttack);
|
|
//console.log(count_acc_derogatory_ForAttack);
|
|
//console.log(count_acc_other_text_ForAttack);
|
|
});
|
|
|
|
function getallAccLength(elem) {
|
|
|
|
var lenOfItemDiscont = 0;
|
|
var name = $(elem).attr('name');
|
|
if (name.indexOf('acc_aspect_issues_sub') >= 0) {
|
|
var rep = name.replace('acc_aspect_issues_sub_', "", name);
|
|
lenOfItemDiscont = rep.replace('[]', "", rep);
|
|
count_acc_aspect_ForAttack[lenOfItemDiscont] = $('input[name="' + name + '"]:checked').length;
|
|
} else if (name.indexOf('acc_number_issues_sub') >= 0) {
|
|
var rep = name.replace('acc_number_issues_sub_', "", name);
|
|
lenOfItemDiscont = rep.replace('[]', "", rep);
|
|
count_acc_num_ForAttack[lenOfItemDiscont] = $('input[name="' + name + '"]:checked').length;
|
|
} else if (name.indexOf('acc_derogatory_issues_sub') >= 0) {
|
|
var rep = name.replace('acc_derogatory_issues_sub_', "", name);
|
|
lenOfItemDiscont = rep.replace('[]', "", rep);
|
|
count_acc_derogatory_ForAttack[lenOfItemDiscont] = $('input[name="' + name + '"]:checked').length;
|
|
}
|
|
|
|
var rule = rules(lenOfItemDiscont);
|
|
|
|
if (rule) {
|
|
$(elem).click();
|
|
}
|
|
|
|
}
|
|
|
|
function accOtherkepress(elem) {
|
|
var name = $(elem).attr('name');
|
|
var id = name.replace('acc_other_', "", name);
|
|
var selected = getTotalSelected(id);
|
|
var length = $(elem).val().length;
|
|
|
|
var rule = rules(id);
|
|
|
|
if (rule) {
|
|
event.preventDefault();
|
|
$(elem).val(null);
|
|
} else {
|
|
if (length > 0) {
|
|
count_acc_other_text_ForAttack[id] = 1;
|
|
} else {
|
|
count_acc_other_text_ForAttack[id] = 0;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
var member_id = $('input[name=member_id]').val();
|
|
|
|
if (member_id > 0) {
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: "__SERVER_URL__dashboard/clientContact",
|
|
cache: false,
|
|
success: function(data) {
|
|
var response = JSON.parse(data);
|
|
var json = response.contacts;
|
|
CLIENT_DEFAULT_LIST = json;
|
|
var dashboard_client_id = response.dashboard_client_id
|
|
//console.log(json);
|
|
var dropdown = $('#client-contact-id');
|
|
|
|
dropdown.empty();
|
|
dropdown.append(new Option("Please select client", "0"));
|
|
$.each(json, function(index, contact) {
|
|
var first_name = "";
|
|
if (contact.first_name != "") {
|
|
first_name = contact.first_name;
|
|
}
|
|
|
|
var last_name = "";
|
|
if (contact.last_name != "") {
|
|
last_name = contact.last_name;
|
|
}
|
|
|
|
var contact_email = contact.email;
|
|
if (contact.is_receive_notification_email == 1 && contact.alternate_email) {
|
|
contact_email = contact.alternate_email;
|
|
}
|
|
var selected_attr = "";
|
|
if (dashboard_client_id == contact.client_id) {
|
|
selected_attr = "selected"
|
|
}
|
|
dropdown.append('<option ' + selected_attr + ' data-email="' + contact_email + '" data-id="' + contact.client_id + '" value="' + contact.contact_id + '" >' + first_name + ' ' + last_name + " (" + '' + contact.email + ")" + '</option>');
|
|
|
|
});
|
|
$('img#client-contact-loading-img').css('display', 'none');
|
|
if (dashboard_client_id > 0) {
|
|
clientInfo(dropdown);
|
|
}
|
|
}
|
|
|
|
});
|
|
}
|
|
|
|
|
|
function reportchange(elem) {
|
|
clientInfo($('#client-contact-id'));
|
|
setCraReportText($(elem).val());
|
|
}
|
|
|
|
function clientInfo(elem) {
|
|
$('#acc-content-btn').hide();
|
|
var contactId = $(elem).val();
|
|
var getClientId = $(elem).data('id');
|
|
var client_email = $(elem).find(':selected').data('email');
|
|
var client_selected_id = 0;
|
|
var client_type = $('select[name=client_type]').val();
|
|
var report_type = 1;
|
|
if ($('select[name=select]').val() > 0) {
|
|
client_selected_id = $(elem).find(':selected').data('id');
|
|
$('#process-html-btn').hide();
|
|
$('#dashboard-btn').hide();
|
|
$('#stt-pi-letter-btn').hide();
|
|
//$('#client-file-load').show();
|
|
$('.loading').show();
|
|
} else {
|
|
return false;
|
|
}
|
|
|
|
if ($('select[name=report_type]').val() > 0) {
|
|
report_type = $('select[name=report_type]').val();
|
|
}
|
|
|
|
$('input[name=client_id]').attr('value', client_selected_id);
|
|
$('input[name=client_email]').val(client_email);
|
|
var formData = {
|
|
'contactId': contactId,
|
|
'client_type': client_type,
|
|
'report_type': report_type,
|
|
'HAS_RTG_ACCESS_PKG': true
|
|
};
|
|
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__dashboard/getContact',
|
|
data: formData,
|
|
async: CLIENT_ASYNC,
|
|
success: function(data) {
|
|
$('#process-html-btn').show();
|
|
$('.loading').hide();
|
|
$('#stt-pi-letter-btn').show();
|
|
if ($(elem).find('option:selected').data('id') > 0) {
|
|
$('#dashboard-btn').show();
|
|
$('#dashboard-btn').attr('href', APP_SERVER_HOST_URL + 'Client/clientdashboard/' + $(elem).find('option:selected').data('id'));
|
|
}
|
|
|
|
var json = JSON.parse(data);
|
|
INQ_WITH_COMPANY_ASSOC = json.inq_with_company;
|
|
BANK_LIST_INDEX_LESS = json.banklist_index_less;
|
|
BANK_LIST_INDEX_LESS_ASSOC = json.banklist_index_less_assoc;
|
|
DB_KEY_ASSOC = json.databasikKeyItem;
|
|
BANK_CHUNK_LIST = json.bank_chunk_list;
|
|
BANK_LIST = json.bankList;
|
|
if(BANK_LIST){
|
|
for(var bl in BANK_LIST){
|
|
BANK_VALUE_BY_KEY[BANK_LIST[bl]] = bl;
|
|
}
|
|
}
|
|
|
|
if(json.inquries.key_name){
|
|
$.each(json.inquries.key_name,function(index,value){
|
|
INQUIRY_VALUE_BY_KEY[value] = index;
|
|
})
|
|
}
|
|
//console.log('INQUIRY_VALUE_BY_KEY',INQUIRY_VALUE_BY_KEY)
|
|
BANK_LATE_PAYS_LIST = json.latepayList;
|
|
BANK_ASSOC_CHUNK_LIST = json.bankAssocchunkList;
|
|
//localStorage.setItem('bank_list',json.bankList)
|
|
DD_ID = json.dd_id;
|
|
console.log('getcontact', json)
|
|
CLIENT_INFO_FROM_DB['today_date'] = json.today_date;
|
|
$('input[name=dd_id]').val(json.dd_id);
|
|
$('.credit-report').html('')
|
|
if (json.report_type_id > 0) {
|
|
$('select[name=report_type]').attr('onchange', "");
|
|
$('select[name=report_type]').val(json.report_type_id).trigger('change');
|
|
$('select[name=report_type]').attr('onchange', "reportchange(this)");
|
|
}
|
|
|
|
// getAllDD(DD_ID);
|
|
BANK_ASSOC = [];
|
|
var bank_assco = json.bankAssoc;
|
|
DB_PUBLIC_KEY_ASSOC = json.paublicrecords;
|
|
DB_PUBLIC_KEY_ID_ASSOC = json.publicKeyIdAssoc;
|
|
for (var i in bank_assco) {
|
|
BANK_ASSOC[i] = {
|
|
'value1': bank_assco[i].value1,
|
|
'value2': bank_assco[i].value2,
|
|
'value3': bank_assco[i].value3,
|
|
'value4': bank_assco[i].value4,
|
|
'value5': bank_assco[i].value5,
|
|
'value6': bank_assco[i].value6,
|
|
'isJson': bank_assco[i].isJson
|
|
};
|
|
}
|
|
INQ_KEY_DATE = json.inquries;
|
|
var inq_area = $('.inquiries-area');
|
|
inq_area.show();
|
|
inq_area.prev('label.control-label').show();
|
|
setBankDropDown(json.bankList, 'banklist');
|
|
setDropDownLatepays2days(json.latepayList, 'late-pays-banklist')
|
|
$publicrecordHtml = getPublicRecordDropDown(1);
|
|
$('.publicRecordcategoryDiv').html($publicrecordHtml);
|
|
var clients = json.clientDetails;
|
|
$('select[name=item_inquirey_1]').trigger('change');
|
|
$('select[name=item_public_category_1]').trigger('change');
|
|
var first_name = "";
|
|
var last_name = "";
|
|
var street_no = "";
|
|
var street_name = "";
|
|
var city = "";
|
|
var state = "";
|
|
var birth_date = "";
|
|
var social_secuirty_no = "";
|
|
var cra_report = "";
|
|
var personal_info = "";
|
|
|
|
if (clients) {
|
|
|
|
if (clients.first_name) {
|
|
first_name = clients.first_name;
|
|
personal_info += first_name;
|
|
}
|
|
|
|
if (clients.last_name) {
|
|
last_name = clients.last_name;
|
|
if (personal_info) {
|
|
personal_info += " " + last_name;
|
|
} else {
|
|
personal_info = last_name;
|
|
}
|
|
}
|
|
|
|
CLIENT_INFO_FROM_DB['name'] = "";
|
|
CLIENT_INFO_FROM_DB['address'] = "";
|
|
if (personal_info) {
|
|
CLIENT_INFO_FROM_DB['name'] = personal_info;
|
|
}
|
|
|
|
if (clients.street_no) {
|
|
street_no = clients.street_no;
|
|
if (personal_info) {
|
|
personal_info += "\n" + street_no;
|
|
} else {
|
|
personal_info = street_no;
|
|
}
|
|
CLIENT_INFO_FROM_DB['address'] = street_no;
|
|
}
|
|
|
|
if (clients.street_name) {
|
|
street_name = clients.street_name;
|
|
if (personal_info) {
|
|
personal_info += ", " + street_name;
|
|
} else {
|
|
personal_info = street_name;
|
|
}
|
|
CLIENT_INFO_FROM_DB['address'] += ", " + street_name
|
|
}
|
|
|
|
if (clients.city) {
|
|
city = clients.city;
|
|
if (personal_info) {
|
|
personal_info += ", " + city;
|
|
} else {
|
|
personal_info = city;
|
|
}
|
|
CLIENT_INFO_FROM_DB['address'] += ", " + city
|
|
}
|
|
|
|
if (clients.state) {
|
|
state = clients.state;
|
|
if (personal_info) {
|
|
personal_info += ", " + state;
|
|
} else {
|
|
personal_info = state;
|
|
}
|
|
CLIENT_INFO_FROM_DB['address'] += ", " + state
|
|
}
|
|
|
|
if (clients.birth_date) {
|
|
birth_date = clients.birth_date;
|
|
|
|
}
|
|
|
|
if (clients.social_secuirty_no) {
|
|
social_secuirty_no = clients.social_secuirty_no;
|
|
|
|
}
|
|
|
|
if (clients.cra_report) {
|
|
cra_report = clients.cra_report;
|
|
|
|
}
|
|
|
|
//personal_info = first_name + " " + last_name + "\n" + street_no + ", " + street_name + ", " + city + ", " + state;
|
|
}
|
|
|
|
|
|
//if(!$('textarea[name=personal_info]').val())
|
|
$('textarea[name=personal_info]').val(personal_info);
|
|
|
|
//if(!$('input[name=current_dob]').val())
|
|
$('input[name=current_dob]').val(birth_date);
|
|
|
|
//if(!$('input[name=ssn]').val())
|
|
$('input[name=ssn]').val(social_secuirty_no);
|
|
|
|
//if(!$('input[name=cr_data]').val())
|
|
$('input[name=cr_data]').val(cra_report);
|
|
|
|
if (report_type > 0) {
|
|
setCraReportText(report_type);
|
|
}
|
|
//console.log('gggg', json.client_info);
|
|
/*if(json.client_info){
|
|
first_name = json.client_info.first_name
|
|
last_name = json.client_info.last_name
|
|
}*/
|
|
|
|
$('input[name=client_name]').val(first_name + " " + last_name);
|
|
|
|
var isFirst = $('input[name=isFirst]').val();
|
|
$('.client-remove-div').remove();
|
|
$('#att_img_1').attr('src', "");
|
|
$('#att_img_1').hide();
|
|
$('input[name=temp_attachment_1]').val('');
|
|
if (isFirst == 1) {
|
|
var count = 1;
|
|
for (var i = 0; i <= json.clientMedias.length - 1; i++) {
|
|
|
|
if (i > 0) {
|
|
addAttachament(0);
|
|
}
|
|
//console.log(json.clientMedias[i]);
|
|
$('#att_img_' + count).attr('src', "__SERVER_URL__webroot/contact_photo/" + json.clientMedias[i].image_path);
|
|
$('#att_img_' + count).show();
|
|
$('input[name=temp_attachment_' + count + ']').val("contact_photo/" + json.clientMedias[i].image_path);
|
|
count++;
|
|
}
|
|
}
|
|
|
|
if ($('input[name=onload_id]').val() == 0 && $('input[name=is_client_file_load]').val() == 0) {
|
|
//resetFullForm();
|
|
$('input[name=is_client_file_load]').val(0);
|
|
//$('input[name=onload_id]').val(0)
|
|
}
|
|
|
|
if ($('input[name=is_client_file_load]').val() == 1) {
|
|
// $('input[name=is_client_file_load]').val(0)
|
|
}
|
|
|
|
if (json.report_html) {
|
|
$('#acc-content-btn').show();
|
|
try {
|
|
var processData = htmlcontentFormat(json.report_html);
|
|
|
|
} catch (e) {
|
|
|
|
}
|
|
}
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function htmlcontentFormat(report_html) {
|
|
var source_type = $('select[name=report_type]').val();
|
|
var jsonParseData = report_html;
|
|
jsonParseData = jsonParseData.replace('https://www.identityiq.com/Scripts/jquery-3.0.0.min.js', '');
|
|
jsonParseData = jsonParseData.replace('https://www.identityiq.com/Scripts/jquery-1.7.2.min.js', '');
|
|
jsonParseData = jsonParseData.replace('https://www.identityiq.com/Scripts/angular.js', '');
|
|
var link = '<meta charset="utf-8"><link rel="stylesheet" type="text/css" href="https://www.smartcredit.com/combined.css.h1634784381.pack" charset="utf-8"/>' +
|
|
'<link rel="stylesheet" type="text/css" href="https://www.smartcredit.com/combined.css.h1286474662.pack" media="print" charset="utf-8"/>' +
|
|
'<link rel="stylesheet" type="text/css" href="https://www.smartcredit.com/combined.css.h677146085.pack" charset="utf-8"/>';
|
|
var processData = remove_non_ascii(jsonParseData);
|
|
var regex = /<link[^>]*href="[^>]*[^>]*"[^>]*>/gi
|
|
var processData = processData.replace(regex, "");
|
|
//$('textarea[name=html_content]').val(processData);
|
|
// $('.view-html').html('');
|
|
// $('.credit-report').html('');
|
|
//uploadHTMLUICode(processData, true, source_type);
|
|
|
|
$('.credit-report').html(processData);
|
|
if (source_type == 1) {
|
|
setSequenceNumberForAccount();
|
|
setIQReportFormatLikeEpic();
|
|
} else if (source_type == 3) {
|
|
setSmartCreaditAccountHistorySequenceNumber();
|
|
}
|
|
//getSelectedInfo(true, source_type)
|
|
//setSelectedBankDropDown(null);
|
|
var creditor_address = {};
|
|
|
|
if (source_type == 3) {
|
|
CREDIT_REPORT_ADDRESS_LIST = getSmartCreditCreditorDropDown();
|
|
CREDIT_REPORT_KEY_ADDRESS_LIST = SmartCreditAIAccounts();
|
|
PERSONAL_INFO_FROM_CREDIT_REPORT = SmartCreditAIpersonalInfo();
|
|
INQUIRY_INFO_FROM_CREDIT_REPORT = SmartCreditAIInquiry();
|
|
|
|
} else if (source_type == 1) {
|
|
PERSONAL_INFO_FROM_CREDIT_REPORT = AIpersonalInfo()
|
|
CREDIT_REPORT_ADDRESS_LIST = creditorAddressAssocForIQ()
|
|
CREDIT_REPORT_KEY_ADDRESS_LIST = AIAccounts();
|
|
INQUIRY_INFO_FROM_CREDIT_REPORT = AIInquiry();
|
|
|
|
}
|
|
console.log('creditor_address',CREDITOR_ADDRESS_LIST_FOR_DF);
|
|
$('.credit-report').html('');
|
|
//$('.credit-report').parents('div.row').first().show();
|
|
//alert(source_type);
|
|
|
|
//getCreditReportContent(null);
|
|
|
|
return processData;
|
|
}
|
|
|
|
function getclientInfoByClientId(client_id) {
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__dashboard/getClientInfoById',
|
|
data: {
|
|
'formdata': 'client_info',
|
|
'client_id': client_id
|
|
},
|
|
success: function(data) {
|
|
var json = JSON.parse(data);
|
|
|
|
BANK_LIST = json.bankList;
|
|
DD_ID = json.dd_id;
|
|
//alert(DD_ID);
|
|
//getAllDD(DD_ID);
|
|
|
|
//getAllPublicRecordByDdId(DD_ID);
|
|
getBankAssoc(json.client_id);
|
|
setBankDropDown(json.bankList, 'banklist');
|
|
setDropDownLatepays2days(json.latepayList, 'late-pays-banklist')
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function setBankDropDown(bankList, className) {
|
|
var dropdown = $('.banklist');
|
|
if (bankList != null) {
|
|
|
|
}
|
|
var div = 1;
|
|
BANK_DROP_DOWN = generateMultipleBankList(bankList, div);
|
|
dropdown.empty();
|
|
var bankCategoryHTML = "<label class='pull-left control-label'>Negative Item category</label>" +
|
|
'<select onchange="getBankCategoryInfo(this)" class="form-control" name="item_bankCategory_' + div + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>';
|
|
dropdown.html(BANK_DROP_DOWN);
|
|
//console.log('bankList');
|
|
// $.each(bankList, function (index, contact) {
|
|
// dropdown.append('<option data-id="'+index+'" value="' + index + '" >' +bankList[index] +'</option>');
|
|
// });
|
|
dropdown.prev('label').prev('.inquiries-area').after(bankCategoryHTML);
|
|
dropdown.show();
|
|
dropdown.prev('label').show();
|
|
//dropdown.prev('label').after(setClearButton('item-bank_',div));
|
|
|
|
|
|
}
|
|
|
|
|
|
function setDropDownLatepays2days(bankList, className) {
|
|
var dropdown = $('.late-pays-banklist');
|
|
if (bankList != null) {
|
|
|
|
}
|
|
var div = 1;
|
|
BANK_LATE_PAYS_DROP_DOWN = generateLatePaysMultipleBankList(bankList, div)
|
|
dropdown.empty();
|
|
var bankCategoryHTML = "<label class='pull-left control-label'>Late Pays / 2 Or Less Item Category</label>" +
|
|
'<select onchange="getLatepays2less(this)" class="form-control" name="late_pays2days_' + div + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>';
|
|
dropdown.html(BANK_LATE_PAYS_DROP_DOWN);
|
|
dropdown.prev('label').prev('.banklist').after(bankCategoryHTML);
|
|
dropdown.show();
|
|
dropdown.prev('label').show();
|
|
return bankCategoryHTML;
|
|
}
|
|
|
|
function setDFContent(divlen) {
|
|
var bank_name_tag = '<input name="letter_stream_bank_list_' + divlen + '" type="hidden" value=""/>';
|
|
var inquiryHTML = '<div class="col-md-12">' +
|
|
'<label class="pull-left control-label">Inquiries Category</label>' +
|
|
'<div class="inquiries-area">' +
|
|
'<select onchange="getInquiryItemCategoryInfoForDF(this)" class="form-control" name="df_item_inquirey_' + divlen + '">' +
|
|
'<option value="0"> Please select</option>' +
|
|
'<option value="4"> All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>' +
|
|
'</div>' +
|
|
'<img id="df_inquiry_loader_' + divlen + '" src="__SERVER_URL__webroot/images/ajax-loader.gif" class="df-loader">' +
|
|
'</div>' +
|
|
'<div class="col-md-12" id="df_item_inquirey_list_' + divlen + '"></div>';
|
|
|
|
var public_html = '<div class="col-md-12">' +
|
|
'<label class="pull-left control-label">Public Record Category</label>' +
|
|
'<div class="public-records-area">' +
|
|
'<select onchange="getPublicItemCategoryInfoForDF(this)" class="form-control" name="df_item_public_' + divlen + '">' +
|
|
'<option value="0"> Please select</option>' +
|
|
'<option value="4"> All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>' +
|
|
'</div>' +
|
|
'<img id="df_public_loader_' + divlen + '" src="__SERVER_URL__webroot/images/ajax-loader.gif" class="df-loader">' +
|
|
'</div>' +
|
|
'<div class="col-md-12" id="df_item_public_list_' + divlen + '"></div>';
|
|
|
|
// var public_html = '<div class="col-md-12">'+
|
|
// '<label class="pull-left control-label">Public Record Category</label>'
|
|
// '<div class="public-records-area">'+
|
|
// '<select onchange="getPublicItemCategoryInfoForDF(this)" class="form-control" name="df_item_public_'+divlen+'">'+
|
|
// '<option value="0"> Please select</option>'+
|
|
// '<option value="4"> All</option>'+
|
|
// '<option value="3"> TransUnion</option>'+
|
|
// '<option value="1"> Experian</option>'+
|
|
// '<option value="2"> Equifax</option>'+
|
|
// '</select>'+
|
|
// '</div>'+
|
|
// '<img id="df_public_loader_'+divlen+'" src="__SERVER_URL__webroot/images/ajax-loader.gif" class="df-loader">'+
|
|
// '</div>'+
|
|
// '<div class="col-md-12" id="df_item_public_list_'+divlen+'"></div></div>'
|
|
|
|
var bankHTML = '<div class="col-md-3 col-md-offset-2">' +
|
|
'<div class="row">' +
|
|
'<div class="col-md-12">' +
|
|
'<label class="pull-left control-label">Negative Item category</label>' +
|
|
'<select onchange="getBankCategoryInfoForDF(this)" class="form-control" name="df_item_bankCategory_' + divlen + '">' +
|
|
'<option value="0"> Please select</option>' +
|
|
'<option value="4"> All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>' +
|
|
'<img id="df_bank_loader_' + divlen + '" src="__SERVER_URL__webroot/images/ajax-loader.gif" class="df-loader">' +
|
|
'</div>' +
|
|
'<div class="col-md-12" id="df_item_bankCategory_list_' + divlen + '"></div>' +
|
|
inquiryHTML + public_html +
|
|
'</div>' +
|
|
'</div>';
|
|
|
|
var loader = '<div class="col-md-2">' +
|
|
'</div>';
|
|
|
|
return bank_name_tag + bankHTML + loader;
|
|
}
|
|
|
|
function dfDropDownTextArea(divlen) {
|
|
var df_content = setDFContent(divlen);
|
|
var html = '<div class="col-md-12 df-area" id="df-area_' + divlen + '" style="display:none">' +
|
|
'<div class="row">' +
|
|
'<div class="col-md-3 col-md-offset-2">' +
|
|
'<label for="">DATA FUNISHERS NAME/ADDRESS is:</label>' +
|
|
'<input type="hidden" data-name="" id="df_selected_address_val_' + divlen + '" name="df_selected_address_value[]"/>' +
|
|
'<textarea placeholder="e.g, KAY JEWELERS, 375 GHENT RD AKRON, OH 44333" name="df_textarea_' + divlen + '" class="form-control df-textarea" id="" cols="30" rows="10"></textarea>' +
|
|
'</div>' +
|
|
df_content +
|
|
'</div>' +
|
|
'<br>' +
|
|
'<div class="row">' +
|
|
'<div class="col-md-3 col-md-offset-2">' +
|
|
'<label for="">VERBIAGE POSSIBILITIES</label>' +
|
|
'<select name="df_deopdown_' + divlen + '" class="form-control df-dropdown">' +
|
|
'<option value="">Choose Item</option>' +
|
|
'<option value="1"> DF PUBLIC RECORD ATTACK</option>' +
|
|
'<option value="2"> DF PUBLIC RECORD ATTACK LETTER to COURT for PROCEDURES</option>' +
|
|
'<option value="3"> DF Non-Medical COLLECTIONS/ CHARGE-OFFS/ COLLECTION-CHARGE OFFS/ and or CHARGE OFF-COLECTIONS</option>' +
|
|
'<option value="4"> DF MEDICAL COLLECTIONS</option>' +
|
|
'<option value="5"> DF STUDENT LOAN DELINQUENCIES/DEROGATORIES for PAANL or PAANLPR status </option>' +
|
|
'<option value="6"> DF STUDENT LOAN DELINQUENCIES/DEROGATORIES for REMOVAL </option>' +
|
|
'<option value="7"> DF NON-STUDENT LOAN DELINQUENCIES/DEROGATORIES for PAANL or PAANLPR status </option>' +
|
|
'<option value="8"> DF NON-STUDENT LOAN DELINQUENCIES/DEROGATORIES for REMOVAL </option>' +
|
|
'<option value="9"> DF INQUIRIES </option>' +
|
|
'<option value="10"> DF PERSONAL INFORMATION ISSUES </option>' +
|
|
'<option value="11"> DF OTHER UNKNOWN/GENERAL attacks </option>' +
|
|
'</select>' +
|
|
'</div>' +
|
|
'</div>' +
|
|
'</div>'
|
|
|
|
return html;
|
|
}
|
|
|
|
function createNew(elem) {
|
|
var result = false;
|
|
$('#before-save').val(2);
|
|
var r = confirm("Are you sure, you want to create new file?");
|
|
|
|
if (destValidation()) {
|
|
if (r) {
|
|
result = true;
|
|
|
|
} else {
|
|
result = false;
|
|
//alert('Choose destination');
|
|
}
|
|
}
|
|
|
|
if (result) {
|
|
$('#date-action').hide();
|
|
var client_id = $('select[name=select]').val();
|
|
if (client_id > 0) {
|
|
$('#date-action').show();
|
|
}
|
|
$('.download-area').show();
|
|
$('#before-saving-modal').modal('show');
|
|
}
|
|
|
|
|
|
return false;
|
|
}
|
|
|
|
function generateMultipleBankList(bankList, divlen) {
|
|
var clear_btn = setClearButton('item-bank_', divlen);
|
|
var html = '<div class="banklist"><dl class="dropdown-x" id="item-bank_' + divlen + '">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel" id="item-bank-name-' + divlen + '"></p>' +
|
|
'</a>' + clear_btn +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="banklistid_' + divlen + '">' +
|
|
'<ul>';
|
|
$.each(bankList, function(index, contact) {
|
|
var li = '<li><input id="mybank" class="allbank bank-input_' + divlen + '" data-bank="1" onclick="getAccOption(this);" name="item_bank_' + divlen + '[]" type="checkbox" value="' + index + '" data-view="' + bankList[index] + '" /> ' + bankList[index] + '</li>';
|
|
html = html + li;
|
|
});
|
|
|
|
|
|
html = html + '</ul>' + '</div>' + '</dd>' + '</dl></div>';
|
|
|
|
return (html);
|
|
}
|
|
|
|
|
|
function generateLatePaysMultipleBankList(bankList, divlen) {
|
|
var clear_btn = setClearButton('late-pays-item-bank_', divlen);
|
|
var html = '<div class="late-pays-banklist"><dl class="dropdown-x" id="late-pays-item-bank_' + divlen + '">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel" id="late-pays-item-bank-name-' + divlen + '"></p>' +
|
|
'</a>' + clear_btn +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="late-pays-banklistid_' + divlen + '">' +
|
|
'<ul>';
|
|
$.each(bankList, function(index, contact) {
|
|
var li = '<li><input id="mylatepaysbank" class="allbank late-pays-bank-input_' + divlen + '" data-bank="1" onclick="getAccOption(this);" name="late_pays_item_bank_' + divlen + '[]" type="checkbox" value="' + index + '" data-view="' + bankList[index] + '" /> ' + bankList[index] + '</li>';
|
|
html = html + li;
|
|
});
|
|
|
|
|
|
html = html + '</ul>' + '</div>' + '</dd>' + '</dl></div>';
|
|
|
|
return (html);
|
|
}
|
|
|
|
function generateMultipleBankListForDF(bankList, divlen) {
|
|
|
|
var html = '<select onchange="getBankAddressForDF(this)" data-mainid="' + divlen + '" class="form-control df-address-content" id="df_item_bank_list_id_' + divlen + '" name="df_item_bank_list[]">';
|
|
var option = '<option value="0">Please select</option>';
|
|
$.each(bankList, function(index, contact) {
|
|
option += '<option value="' + BANK_ASSOC[index].value2 + '">' + bankList[index] + '</option>';
|
|
});
|
|
|
|
html = html + option;
|
|
html = html + '</select>';
|
|
var label = "<label class='pull-left control-label'>Negative Item Names</label>";
|
|
|
|
html = label + html;
|
|
|
|
return html;
|
|
|
|
}
|
|
|
|
function getBankAddressForDF(elem) {
|
|
var address = $(elem).val();
|
|
var current_div = $(elem).attr('id');
|
|
var current_div_id = current_div.replace('df_item_bank_list_id_', '');
|
|
var bank_name = $(elem).find('option:selected').text();
|
|
bank_name = $.trim(bank_name);
|
|
var bank_name_with_key = bank_name;
|
|
bank_name = removelastCountValue(bank_name);
|
|
var address_from_report = CREDITOR_ADDRESS_LIST_FOR_DF[bank_name];
|
|
if(!address && address_from_report){
|
|
address = address_from_report;
|
|
}
|
|
console.log('address',address,bank_name);
|
|
var textarea = $('textarea[name=df_textarea_' + current_div_id + ']');
|
|
textarea.val('');
|
|
if (address) {
|
|
$('input[name=letter_stream_bank_list_' + current_div_id + ']').val(bank_name);
|
|
$('select[name=df_item_inquirey_list_' + current_div_id + ']').val(0);
|
|
$('#df_selected_address_val_' + current_div_id).attr('data-name', bank_name);
|
|
$('#df_selected_address_val_' + current_div_id).val(address);
|
|
textarea.val(bank_name + ", " + address);
|
|
var bank_value = BANK_VALUE_BY_KEY[bank_name_with_key];
|
|
//console.log('bank_value',bank_value,bank_name_with_key,BANK_VALUE_BY_KEY)
|
|
if(!$(`dl#item-bank_${current_div_id}`).find(`input[type=checkbox][value=${bank_value}]`).prop('checked'))
|
|
$(`dl#item-bank_${current_div_id}`).find(`input[type=checkbox][value=${bank_value}]`).click()
|
|
|
|
}
|
|
}
|
|
|
|
function getItemCategoryDropDown(divlen) {
|
|
|
|
var html = "<label class='pull-left control-label'>Item category</label>" +
|
|
'<select onchange="getItemCategoryInfo(this)" class="form-control" name="item_category_' + divlen + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>';
|
|
return html;
|
|
}
|
|
|
|
function getPublicRecordDropDown(divlen) {
|
|
|
|
var html = "<label class='pull-left control-label'>Public Record category</label>" +
|
|
'<select onchange="getPublicItemCategoryInfo(this)" class="form-control" name="item_public_category_' + divlen + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select>';
|
|
var html1 = "<div id='item-public-category-negative'></div>";
|
|
return html + html1;
|
|
}
|
|
|
|
|
|
|
|
function getInquiryItemCategoryDropDown(divlen) {
|
|
|
|
var html = "<div class='inquiries-area'><label class='pull-left control-label'>Inquiries Category</label>" +
|
|
'<select onchange="getInquiryItemCategoryInfo(this)" class="form-control" name="item_inquirey_' + divlen + '">' +
|
|
'<option value="4">All</option>' +
|
|
'<option value="3"> TransUnion</option>' +
|
|
'<option value="1"> Experian</option>' +
|
|
'<option value="2"> Equifax</option>' +
|
|
'</select></div>';
|
|
return html;
|
|
}
|
|
|
|
function getInquiryItemCategoryInfo(elem) {
|
|
if (DD_ID == "") {
|
|
//alert('Please choose a client');
|
|
return false;
|
|
}
|
|
var item = $(elem).val();
|
|
var category_id = $(elem).val();
|
|
var className = $(elem).attr('name');
|
|
var divlen = className.replace('item_inquirey_', '');
|
|
if (INQ_KEY_DATE) {
|
|
//console.log('INQ_KEY_DATE', INQ_KEY_DATE)
|
|
//console.log('category_id', category_id)
|
|
var all_inq_info = INQ_KEY_DATE;
|
|
if (category_id == 3) { // trans
|
|
all_inq_info = INQ_WITH_COMPANY_ASSOC['Trans']
|
|
} else if (category_id == 2) { // Equif
|
|
all_inq_info = INQ_WITH_COMPANY_ASSOC['Equif']
|
|
} else if (category_id == 1) { // Exp
|
|
all_inq_info = INQ_WITH_COMPANY_ASSOC['Exp']
|
|
}
|
|
$('select[name=image_text_area_' + divlen + ']').val('');
|
|
var dropdown = generateInquiriesCategorySubList(all_inq_info, divlen);
|
|
$('select[name=item_inquirey_' + divlen + ']').parent().children('div').remove();
|
|
if (dropdown != "") {
|
|
$('select[name=item_inquirey_' + divlen + ']').parent().append('<div id="item-inquires-negative"></div>');
|
|
$('select[name=item_inquirey_' + divlen + ']').next('div#item-inquires-negative').html(dropdown);
|
|
}
|
|
return true;
|
|
}
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'inquiryCategoryInfo',
|
|
'dd_id': DD_ID,
|
|
'category_id': category_id
|
|
},
|
|
async: false,
|
|
success: function(data) {
|
|
var json = JSON.parse(data);
|
|
console.log(json);
|
|
$('select[name=image_text_area_' + divlen + ']').val('');
|
|
var dropdown = generateInquiriesCategorySubList(json, divlen);
|
|
$('select[name=item_inquirey_' + divlen + ']').parent().children('div').remove();
|
|
if (dropdown != "") {
|
|
$('select[name=item_inquirey_' + divlen + ']').parent().append('<div id="item-inquires-negative"></div>');
|
|
$('select[name=item_inquirey_' + divlen + ']').next('div#item-inquires-negative').html(dropdown);
|
|
}
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
alert(textStatus);
|
|
}
|
|
});
|
|
}
|
|
|
|
function getInquiryItemCategoryInfoForDF(elem) {
|
|
if (DD_ID == "") {
|
|
//alert('Please choose a client');
|
|
return false;
|
|
}
|
|
var item = $(elem).val();
|
|
if (item == 0) {
|
|
return false;
|
|
}
|
|
|
|
//alert('sdsdsds');
|
|
var category_id = $(elem).val();
|
|
var className = $(elem).attr('name');
|
|
var divlen = className.replace('df_item_inquirey_', '');
|
|
$('#df_inquiry_loader_' + divlen).show();
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'inquiryCategoryInfoForDF',
|
|
'dd_id': DD_ID,
|
|
'category_id': category_id
|
|
},
|
|
|
|
success: function(data) {
|
|
$('#df_inquiry_loader_' + divlen).hide();
|
|
var json = JSON.parse(data);
|
|
console.log(json);
|
|
|
|
var dropdown = generateInquiriesCategorySubListForDF(json, divlen);
|
|
$('select[name=item_inquirey_' + divlen + ']').parent().children('div').remove();
|
|
if (dropdown) {
|
|
$('#df_item_inquirey_list_' + divlen).html(dropdown);
|
|
$(`select[name=item_inquirey_${divlen}]`).val(category_id).trigger('change');
|
|
}
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
$('#df_inquiry_loader_' + divlen).hide();
|
|
//alert(textStatus);
|
|
}
|
|
});
|
|
}
|
|
|
|
function getPublicItemCategoryInfoForDF(elem) {
|
|
if (DD_ID == "") {
|
|
//alert('Please choose a client');
|
|
return false;
|
|
}
|
|
var item = $(elem).val();
|
|
if (item == 0) {
|
|
return false;
|
|
}
|
|
|
|
//alert('sdsdsds');
|
|
var category_id = $(elem).val();
|
|
var className = $(elem).attr('name');
|
|
var divlen = className.replace('df_item_public_', '');
|
|
$('#df_public_loader_' + divlen).show();
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'publicCategoryInfoForDF',
|
|
'dd_id': DD_ID,
|
|
'category_id': category_id
|
|
},
|
|
|
|
success: function(data) {
|
|
$('#df_public_loader_' + divlen).hide();
|
|
var json = JSON.parse(data);
|
|
console.log(json);
|
|
|
|
var dropdown = generatePublicCategorySubListForDF(json, divlen);
|
|
$('select[name=item_public_' + divlen + ']').parent().children('div').remove();
|
|
if (dropdown) {
|
|
$('#df_item_public_list_' + divlen).html(dropdown);
|
|
}
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
$('#df_public_loader_' + divlen).hide();
|
|
//alert(textStatus);
|
|
}
|
|
});
|
|
}
|
|
|
|
function generateCategorySubList(KeyList, divlen) {
|
|
var clear_btn = setClearButton('item-subcategory_', divlen);
|
|
var html = '<dl class="dropdown-x" id="item-subcategory_' + divlen + '">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel" id="item-subcat-name-' + divlen + '"></p>' +
|
|
'</a>' + clear_btn +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="negative-inputlist_' + divlen + '">' +
|
|
'<ul>';
|
|
$.each(KeyList, function(index, contact) {
|
|
var li = '<li><input data-negative="1" id="negetive_input_id_' + divlen + '" class="negative-input_' + divlen + '" onclick="getAccOption(this);" name="negative_item_' + divlen + '[]" type="checkbox" value="' + index + '" data-view="' + KeyList[index] + '" /> ' + KeyList[index] + '</li>';
|
|
html = html + li;
|
|
});
|
|
|
|
var label = "<label class='pull-left control-label'>Item sub category</label>";
|
|
html = label + html + '</ul>' + '</div>' + '</dd>' + '</dl>';
|
|
|
|
return html;
|
|
}
|
|
|
|
function generatePublicCategorySubList(KeyList, divlen) {
|
|
var clear_btn = setClearButton('item-public-subcategory_', divlen);
|
|
var html = '<dl class="dropdown-x" id="item-public-subcategory_' + divlen + '">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel" id="item-subcat-name-' + divlen + '"></p>' +
|
|
'</a>' + clear_btn +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="negative-inputlist_' + divlen + '">' +
|
|
'<ul>';
|
|
$.each(KeyList, function(index, contact) {
|
|
if (index) {
|
|
var li = '<li><input data-public_negative="1" id="public_negetive_input_id_' + divlen + '" class="public-negative-input_' + divlen + '" onclick="getAccOption(this);" name="public_negative_item_' + divlen + '[]" type="checkbox" value="' + index + '" data-view="' + KeyList[index] + '" /> ' + KeyList[index] + '</li>';
|
|
html = html + li;
|
|
}
|
|
});
|
|
|
|
var label = "<label class='pull-left control-label'>Public Record</label>";
|
|
html = label + html + '</ul>' + '</div>' + '</dd>' + '</dl>';
|
|
|
|
return html;
|
|
}
|
|
|
|
function generateInquiriesCategorySubList(KeyList, divlen) {
|
|
//console.log('keylist');
|
|
//console.log(KeyList);
|
|
var clear_btn = setClearButton('inquiry-subcategory_', divlen);
|
|
var html = '<dl class="dropdown-x" id="inquiry-subcategory_' + divlen + '">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p class="multiSel" id="inquiry-subcat-name-' + divlen + '"></p>' +
|
|
'</a>' + clear_btn +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="negative-inputlist_' + divlen + '">' +
|
|
'<ul>';
|
|
$.each(KeyList.key_name, function(index, contact) {
|
|
var li = '<li><input data-inq_negative="1" id="negetive_inq_input_id_' + divlen + '" class="negative-inq-input_' + divlen + '" onclick="getAccOption(this);" name="negative_inq_item_' + divlen + '[]" type="checkbox" value="' + index + '" data-view="' + KeyList.key_name[index] + '\n' + KeyList.key_date[index] + '" data-date="' + KeyList.key_date[index] + '" /> ' + KeyList.key_name[index] + '</li>';
|
|
html = html + li;
|
|
});
|
|
|
|
var label = "<label class='pull-left control-label'>Inquiries</label>";
|
|
html = label + html + '</ul>' + '</div>' + '</dd>' + '</dl>';
|
|
|
|
return html;
|
|
}
|
|
|
|
function generateInquiriesCategorySubListForDF(KeyList, divlen) {
|
|
//console.log('keylist');
|
|
console.log(KeyList);
|
|
var html = '<select onchange="setInqAddressToTextarea(this)" data-mainid="' + divlen + '" class="form-control df-address-content" name="df_item_inquirey_list_' + divlen + '">'; //
|
|
var option = '<option value="0">Please select</option>';
|
|
$.each(KeyList.key_name, function(index, contact) {
|
|
option += '<option data-address="' + KeyList.address[index] + '" value="' + KeyList.address[index] + '">' + KeyList.key_name[index] + '</option>';
|
|
});
|
|
html += option + '</select>';
|
|
var label = "<label class='control-label'>Inquiries</label>";
|
|
html = label + html;
|
|
|
|
return html;
|
|
}
|
|
|
|
function generatePublicCategorySubListForDF(KeyList, divlen) {
|
|
//console.log('keylist');
|
|
console.log(KeyList);
|
|
var html = '<select onchange="setPublicAddressToTextarea(this)" data-mainid="' + divlen + '" class="form-control df-address-content" name="df_item_inquirey_list_' + divlen + '">'; //
|
|
var option = '<option value="0">Please select</option>';
|
|
$.each(KeyList.key_name, function(index, contact) {
|
|
option += '<option data-creditor="' + KeyList.key_date[index] + '" data-address="' + KeyList.address[index] + '" value="' + KeyList.address[index] + '">' + KeyList.key_name[index] + '</option>';
|
|
});
|
|
html += option + '</select>';
|
|
var label = "<label class='control-label'>Public Records</label>";
|
|
html = label + html;
|
|
|
|
return html;
|
|
}
|
|
|
|
function getItemCategoryInfo(elem) {
|
|
|
|
var category_id = $(elem).val();
|
|
var className = $(elem).attr('name');
|
|
//var divlen = className.replace('item_category_', '');
|
|
if (className != null) {
|
|
var divlen = className.replace('item_category_', '');
|
|
}
|
|
if (category_id == null || category_id == "") {
|
|
category_id = 0;
|
|
}
|
|
|
|
if (DD_ID == null || DD_ID == "") {
|
|
DD_ID = 0;
|
|
}
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'categoryInfo',
|
|
'dd_id': DD_ID,
|
|
'category_id': category_id
|
|
},
|
|
async: false,
|
|
success: function(data) {
|
|
var json = JSON.parse(data);
|
|
//console.log('Item category');
|
|
//var KeyList =
|
|
$('select[name=image_text_area_' + divlen + ']').val('');
|
|
$dropdown = generateCategorySubList(json, divlen);
|
|
$('select[name=item_category_' + divlen + ']').next('div#item-category-negative').html($dropdown);
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
alert(textStatus);
|
|
}
|
|
});
|
|
}
|
|
|
|
function getPublicItemCategoryInfo(elem) {
|
|
|
|
var category_id = $(elem).val();
|
|
var className = $(elem).attr('name');
|
|
var divlen = className.replace('item_public_category_', '');
|
|
//alert('dd_id '+DD_ID+" category_id "+category_id);
|
|
if (typeof DB_PUBLIC_KEY_ID_ASSOC != 'undefined' && DB_PUBLIC_KEY_ID_ASSOC) {
|
|
//console.log('newDbkeyAssoc', DB_PUBLIC_KEY_ID_ASSOC);
|
|
$('select[name=image_text_area_' + divlen + ']').val('');
|
|
$dropdown = generatePublicCategorySubList(DB_PUBLIC_KEY_ID_ASSOC, divlen);
|
|
//alert($dropdown);
|
|
$('select[name=item_public_category_' + divlen + ']').next('div#item-public-category-negative').html($dropdown);
|
|
return;
|
|
}
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'public_categoryInfo',
|
|
'dd_id': DD_ID,
|
|
'category_id': category_id
|
|
},
|
|
async: false,
|
|
success: function(data) {
|
|
var json = JSON.parse(data);
|
|
console.log('Item public category', json);
|
|
console.log('Item public category', json);
|
|
//var KeyList =
|
|
$('select[name=image_text_area_' + divlen + ']').val('');
|
|
$dropdown = generatePublicCategorySubList(json, divlen);
|
|
//alert($dropdown);
|
|
$('select[name=item_public_category_' + divlen + ']').next('div#item-public-category-negative').html($dropdown);
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
alert(textStatus);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function getAllDD(dd_id) {
|
|
DB_KEY_ASSOC = "";
|
|
DB_PUBLIC_KEY_ASSOC = "";
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'allDbasic',
|
|
'dd_id': dd_id
|
|
},
|
|
success: function(data) {
|
|
var json = JSON.parse(data);
|
|
//console.log('all dbasic');
|
|
//console.log(json);
|
|
DB_KEY_ASSOC = json.data;
|
|
DB_PUBLIC_KEY_ASSOC = json.public;
|
|
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
alert(textStatus);
|
|
}
|
|
});
|
|
}
|
|
|
|
function getAllPublicRecordByDdId(dd_id) {
|
|
DB_PUBLIC_KEY_ASSOC = "";
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'allPublic',
|
|
'dd_id': dd_id
|
|
},
|
|
success: function(data) {
|
|
var json = JSON.parse(data);
|
|
//console.log('all public');
|
|
//console.log(json);
|
|
DB_PUBLIC_KEY_ASSOC = json;
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
alert(textStatus);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
function setVelocityQuickStartDropDown(divlen) {
|
|
var html = '<div class="col-md-12">' +
|
|
'<label for="">Velocity Quick Start: Easy To Go</label>' +
|
|
'</div>' +
|
|
'<div class="col-md-9 col-offset-3">' +
|
|
'<dl class="dropdown-x" id="velocity-quick-' + divlen + '">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p id="dest-id" class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'<dd>' +
|
|
'<div class="mutliSelect" id="maindestination">' +
|
|
'<ul>' +
|
|
'<li><input class="enhance-tag" data-id="1" value="4" type="checkbox" name="enhance_check_' + divlen + '" id="stt_preset_' + divlen + '" onclick="setInqueryCheck(this)"> <span>STT Preset Letter</span></li>' +
|
|
'<li><input class="enhance-tag" data-id="1" value="1" type="checkbox" name="enhance_check_' + divlen + '" id="acc_enhance_' + divlen + '" onclick="setInqueryCheck(this)"> <span>Enhance Personal Identifiers</span></li>' +
|
|
'<li><input class="enhance-tag" data-id="1" value="2" type="checkbox" name="enhance_check_' + divlen + '" id="acc_inquery_' + divlen + '" onclick="setInqueryCheck(this)"> <span>This Item is a Multiple Inquiry Removal attack</span></li>' +
|
|
'<li><input class="enhance-tag" data-id="1" value="3" type="checkbox" name="enhance_check_' + divlen + '" id="acc_multiple_' + divlen + '" onclick="setInqueryCheck(this)"> <span>Multiple Negative attacks</span></li>' +
|
|
'<li><input class="enhance-tag" data-id="1" value="5" type="checkbox" name="enhance_check_' + divlen + '" id="public_record_attack_' + divlen + '" onclick="setInqueryCheck(this)"> <span>Public Records Attack</span></li>' +
|
|
'</ul>' +
|
|
'</div>' +
|
|
'</dd>' +
|
|
'</dl>' +
|
|
'</div>';
|
|
|
|
return html;
|
|
|
|
}
|
|
|
|
function setVelocityQuickStartDropDownSTT(divlen) {
|
|
var html = '<div class="col-md-12">' +
|
|
'<label for="">Velocity Quick Start: Easy To Go</label>' +
|
|
'</div>' +
|
|
'<div class="col-md-9 col-offset-3">' +
|
|
'<dl class="dropdown-x" id="velocity-quick-' + divlen + '">' +
|
|
'<dt>' +
|
|
'<div>' +
|
|
'<a onclick="chooseDropDown(this);" href="javascript:;" class="disable-elem">' +
|
|
'<span class="choose-dest">Choose Item</span>' +
|
|
'<p id="dest-id" class="multiSel"></p>' +
|
|
'</a>' +
|
|
'</div>' +
|
|
'</dt>' +
|
|
'</dl>' +
|
|
'</div>';
|
|
|
|
return html;
|
|
|
|
}
|
|
|
|
function getBankCategoryInfo(elem) {
|
|
if (DD_ID == "") {
|
|
//alert('Please choose a client');
|
|
return false;
|
|
}
|
|
|
|
var client_id = $('select[name=select]').children('option:selected').data('id');
|
|
//var item = $(elem).val();
|
|
var dd_id = $('input[name=dd_id]').val();
|
|
var category_id = $(elem).val();
|
|
var className = $(elem).attr('name');
|
|
var divlen = className.replace('item_bankCategory_', '');
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'bankCategoryInfo',
|
|
'dd_id': dd_id,
|
|
'category_id': category_id,
|
|
'client_id': client_id
|
|
},
|
|
async: false,
|
|
success: function(data) {
|
|
var json = JSON.parse(data);
|
|
//console.log('bankCategoryInfo');
|
|
|
|
var bankList = generateMultipleBankList(json, divlen);
|
|
$(elem).nextAll('div.banklist').first().html(bankList);
|
|
//console.log(json);
|
|
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
alert(textStatus);
|
|
}
|
|
});
|
|
}
|
|
|
|
function getLatepays2less(elem) {
|
|
if (DD_ID == "") {
|
|
return false;
|
|
}
|
|
|
|
var client_id = $('select[name=select]').children('option:selected').data('id');
|
|
var dd_id = $('input[name=dd_id]').val();
|
|
var category_id = $(elem).val();
|
|
var className = $(elem).attr('name');
|
|
var divlen = className.replace('item_bankCategory_', '');
|
|
if (className.indexOf("late_pays2days_") >= 0) {
|
|
divlen = className.replace('late_pays2days_', '');
|
|
}
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'latepaysBankCategoryInfo',
|
|
'dd_id': dd_id,
|
|
'category_id': category_id,
|
|
'client_id': client_id
|
|
},
|
|
async: false,
|
|
success: function(data) {
|
|
var json = JSON.parse(data);
|
|
console.log('divlen', divlen);
|
|
var bankList = generateLatePaysMultipleBankList(json, divlen);
|
|
$(elem).nextAll('div.late-pays-banklist').first().html(bankList);
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
alert(textStatus);
|
|
}
|
|
});
|
|
}
|
|
|
|
function getBankCategoryInfoForDF(elem) {
|
|
if (DD_ID == "") {
|
|
//alert('Please choose a client');
|
|
return false;
|
|
}
|
|
if ($(elem).val() == 0) {
|
|
return false;
|
|
}
|
|
|
|
|
|
var client_id = $('select[name=select]').children('option:selected').data('id');
|
|
//var item = $(elem).val();
|
|
var dd_id = $('input[name=dd_id]').val();
|
|
var category_id = $(elem).val();
|
|
var className = $(elem).attr('name');
|
|
var divlen = className.replace('df_item_bankCategory_', '');
|
|
$('#df_bank_loader_' + divlen).show();
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: '__SERVER_URL__Staff/getSertgInfo.php',
|
|
data: {
|
|
'formdata': 'bankCategoryInfo',
|
|
'dd_id': dd_id,
|
|
'category_id': category_id,
|
|
'client_id': client_id
|
|
},
|
|
//async: false,
|
|
success: function(data) {
|
|
$('#df_bank_loader_' + divlen).hide();
|
|
var json = JSON.parse(data);
|
|
console.log('bankCategoryInfo', json);
|
|
$('#df_item_bankCategory_list_' + divlen).html('');
|
|
var bankList = generateMultipleBankListForDF(json, divlen);
|
|
$('#df_item_bankCategory_list_' + divlen).html(bankList);
|
|
$(`select[name=item_bankCategory_${divlen}]`).val(category_id).trigger('change');
|
|
//console.log(json);
|
|
|
|
},
|
|
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
|
$('#df_bank_loader_' + divlen).hide();
|
|
//alert(textStatus);
|
|
}
|
|
});
|
|
}
|
|
|
|
$('input[name=download_type]').click(function() {
|
|
|
|
$('.download-box').addClass('not-allowed');
|
|
$('.choosedownload').addClass('disable-elem-download');
|
|
$('input[name=checkallExport]').attr('disabled', true);
|
|
$('input[name=checkallExport]').prop("checked", false);
|
|
$('.download-category').prop("checked", false);
|
|
$('.multi-downloadselect').children('span').remove();
|
|
if ($('.multi-downloadselect').children().length == 0) {
|
|
$(".choose-download").show();
|
|
}
|
|
var value = $(this).val();
|
|
|
|
if (value == 2) {
|
|
$('.download-box').removeClass('not-allowed');
|
|
$('.choosedownload').removeClass('disable-elem-download');
|
|
$('input[name=checkallExport]').attr('disabled', false);
|
|
}
|
|
})
|
|
|
|
function checkAllExport(elem) {
|
|
|
|
$('.download-category').prop("checked", false);
|
|
$('.multi-downloadselect').children('span').remove();
|
|
if ($(elem).prop('checked')) {
|
|
$('.download-category').click();
|
|
} else {
|
|
$(".choose-download").hide();
|
|
if ($('.multi-downloadselect').children('span').length == 0) {
|
|
$(".choose-download").show();
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|
|
function checkboxcheckedWithoutOther(value, isImage = false) {
|
|
|
|
var divlen = 0;
|
|
var total_length = $('.dest-list').children('ul').children('li').children('input').length;
|
|
if (value == 0) {
|
|
var checked_count = 0;
|
|
$('.att-checkbox').children('ul').children('li').each(function() {
|
|
var element_id = $(this).children('input[type=checkbox]').attr('id');
|
|
var value = element_id.replace('att_check_', '');
|
|
var is_current_check_all = true;
|
|
var input1 = $(this).children('input[type=checkbox]');
|
|
if (input1.val() != 10 && input1.val() != 11) {
|
|
if (!input1.prop('checked')) {
|
|
input1.prop('checked', true);
|
|
}
|
|
checked_count++;
|
|
}
|
|
|
|
if (value == 1) {
|
|
if ($('#att-checkbox_1').parent('.form-group').prev('.view-allcheck').first().children('input').prop('checked')) {
|
|
is_current_check_all = false;
|
|
}
|
|
} else {
|
|
if ($('#att-checkbox_' + value).parent('.remove-all').prev('.view-allcheck').first().children('input').prop('checked')) {
|
|
is_current_check_all = false;
|
|
}
|
|
}
|
|
|
|
if (is_current_check_all) {
|
|
|
|
}
|
|
});
|
|
|
|
$('.att-checkbox').each(function() {
|
|
var element_id = $(this).attr('id');
|
|
var value = element_id.replace('att-checkbox_', '');
|
|
|
|
if (value) {
|
|
var checked_count = $('#att-checkbox_' + value).children('ul').children('li').children('input[type=checkbox]:checked').length;
|
|
var all_count = $('#att-checkbox_' + value).children('ul').children('li').children('input[type=checkbox]').length;
|
|
if ((all_count - checked_count == 1) || (all_count == checked_count)) {
|
|
$('#att-checkbox_' + value).parent('.remove-all').prev('.view-allcheck').first().children('input').prop('checked', true);
|
|
$('#att-checkbox_1').parent('.form-group').prev('.view-allcheck').first().children('input').prop('checked', true);
|
|
}
|
|
}
|
|
});
|
|
|
|
} else {
|
|
if (isImage) {
|
|
|
|
} else {
|
|
|
|
$('#att-checkbox_' + value).children('ul').children('li').each(function() {
|
|
var input1 = $(this).children('input[type=checkbox]');
|
|
var name = input1.attr('name');
|
|
divlen = name.replace('dest_check_', '');
|
|
divlen = divlen.replace('[]', '');
|
|
if (input1.val() != 10) {
|
|
if (!input1.prop('checked') && input1.val() != 11) {
|
|
input1.prop('checked', true);
|
|
}
|
|
}
|
|
});
|
|
|
|
var checked_count = $('#att-checkbox_' + value).children('ul').children('li').children('input[type=checkbox]:checked').length;
|
|
var all_count = $('#att-checkbox_' + value).children('ul').children('li').children('input[type=checkbox]').length;
|
|
if ((all_count - checked_count == 1) || (all_count == checked_count)) {
|
|
$('#att-checkbox_' + value).parent('.remove-all').prev('.view-allcheck').first().children('input').prop('checked', true);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
function letterStreamSubmit() {
|
|
if ($('.letter-address-popup:checked').length == 0) {
|
|
alert('Please select at least one address');
|
|
return false;
|
|
}
|
|
$('input[name=isLetterStream]').val(1);
|
|
$('#saveloading-letter').show();
|
|
$('#before-save').click();
|
|
}
|
|
|
|
|
|
function hasLetterStream() {
|
|
var result = false;
|
|
var isLetterStream = $('input[name=isLetterStream]').val();
|
|
if (isLetterStream == 0) {
|
|
$("input[name='download_category[]']:checked").each(function() {
|
|
var type = $(this).data('type');
|
|
if (type == 6) {
|
|
result = true;
|
|
return false;
|
|
}
|
|
})
|
|
}
|
|
return result;
|
|
}
|
|
|
|
|
|
function letterStreamModalGenerate() {
|
|
var checkedAddressArrayList = [];
|
|
var destinationNameList = [];
|
|
$("input[name='destination[]']:checked").each(function() {
|
|
var dest_id = $(this).val();
|
|
var name = {};
|
|
var addresses = {
|
|
'dest_id': dest_id,
|
|
'value': getAddressList(dest_id),
|
|
'title': $(this).data('view')
|
|
};
|
|
name[dest_id] = $(this).data('view')
|
|
destinationNameList.push(name);
|
|
checkedAddressArrayList.push(addresses);
|
|
|
|
});
|
|
|
|
// is show Experian, equif, trans section in letter stream modal
|
|
var enhance_types = {};
|
|
$('input.enhance-tag').each(function() {
|
|
|
|
var current_value = $(this).val();
|
|
|
|
if ($(this).prop('checked'))
|
|
enhance_types[current_value] = 1;
|
|
})
|
|
|
|
var enhance_type_obj_length = Object.keys(enhance_types).length;
|
|
|
|
var letter_stream_html = '<table class="table table-bordered">' +
|
|
'<th style="width:2%">\n\
|
|
<div class="checkbox">\n\
|
|
<label style="font-weight:bold;padding-left: 0">Destinations</label>\n\
|
|
</div>\n\
|
|
</th>' +
|
|
'<th style="width:5%">\n\
|
|
<div class="checkbox">\n\
|
|
<label style="font-weight:bold;">\n\
|
|
<input id="all-check-address" type="checkbox" onclick="letterAddressAllCheck(this)"> Addresses</label>\n\
|
|
</div>\n\
|
|
</th>' +
|
|
'<th style="width:8%">\n\
|
|
<div class="checkbox">\n\
|
|
<label style="font-weight:bold;padding-left: 0">\n\
|
|
Return Addresses</label>\n\
|
|
</div>\n\
|
|
</th>';
|
|
|
|
var letter_stream_table_header = letter_stream_html;
|
|
|
|
for (var index in checkedAddressArrayList) {
|
|
var destination_id = checkedAddressArrayList[index].dest_id
|
|
var address_checked_checkbox = $("input[name='destination_sub_menu_" + destination_id + "[]']");
|
|
if (checkedAddressArrayList[index].title != 'DATA FURNISHERS' && checkedAddressArrayList[index].title != 'OTHER') {
|
|
letter_stream_html += '<tr><td style="font-weight: bold;">' + checkedAddressArrayList[index].title + '</td><td>';
|
|
var address_checked_checkbox_checked = $("input[name='destination_sub_menu_" + destination_id + "[]']:checked");
|
|
if (address_checked_checkbox_checked.length == 0) {
|
|
address_checked_checkbox.each(function(index, value) {
|
|
var title = $(this).data('view');
|
|
var data_value = $(this).val();
|
|
var checked = '';
|
|
if (index == 0) {
|
|
checked = 'checked';
|
|
}
|
|
if (title != 'OTHER') {
|
|
letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" class="letter-address-popup" ' + checked + ' type="checkbox" value="' + data_value + '" name="letter_stream_address_' + destination_id + '[]"> ' + title + '</label></div>';
|
|
}
|
|
});
|
|
} else {
|
|
address_checked_checkbox.each(function(index, value) {
|
|
var title = $(this).data('view');
|
|
var data_value = $(this).val();
|
|
var checked = '';
|
|
if ($(this).prop('checked')) {
|
|
checked = 'checked';
|
|
}
|
|
|
|
if (title != 'OTHER') {
|
|
letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" class="letter-address-popup" ' + checked + ' type="checkbox" value="' + data_value + '" name="letter_stream_address_' + destination_id + '[]"> ' + title + '</label></div>';
|
|
}
|
|
});
|
|
}
|
|
}
|
|
letter_stream_html += '</td>';
|
|
if (address_checked_checkbox.length > 1) {
|
|
letter_stream_html += '<td><div class="row">\n\
|
|
\n\<div class="col-md-6"><div class="checkbox"><label><input onclick="setEnableDisableReturnAddress(this)" value="' + destination_id + '" type="checkbox" name="checkbox_return_address_' + destination_id + '"/>Set return address</label></div></div>' +
|
|
'<div class="col-md-12">\n\
|
|
<select style="display:none;" class="form-control" name="return_address_' + destination_id + '">';
|
|
address_checked_checkbox.each(function(index, value) {
|
|
var title = $(this).data('view');
|
|
var data_value = $(this).val();
|
|
if (index > 0 && title != 'OTHER') {
|
|
letter_stream_html += '<option value="' + data_value + '">' + title + '</option>';
|
|
}
|
|
});
|
|
|
|
letter_stream_html += '</select></div></div></td></tr>';
|
|
}
|
|
}
|
|
|
|
|
|
var has_df_value = false;
|
|
$('.df-textarea').each(function(index, value) {
|
|
if ($(this).val()) {
|
|
has_df_value = true;
|
|
return false;
|
|
}
|
|
})
|
|
|
|
if (has_df_value) {
|
|
letter_stream_html += '<tr><td style="font-weight: bold;"> DATA FUNISHERS</td><td>';
|
|
var isDfValidFormat = false;
|
|
var df_error_address = "";
|
|
var current_df_address_array = [];
|
|
$('.df-textarea').each(function(index, value) {
|
|
var current_df_address = $(this).val();
|
|
if (current_df_address && current_df_address != 0) {
|
|
|
|
//var comma_count = current_df_address.match(/,/gi).length;;
|
|
if (!isDfAddressValid(current_df_address)) {
|
|
isDfValidFormat = true;
|
|
df_error_address = current_df_address;
|
|
return false;
|
|
}
|
|
current_df_address = current_df_address.replace(/<(?:.|\n)*?>/gm, '')
|
|
var tag_name = $(this).attr('name');
|
|
var tag_len = tag_name.replace('df_textarea_', '');
|
|
var first_part = current_df_address.split(',')
|
|
var bank_name = first_part[0];
|
|
bank_name = $.trim(bank_name);
|
|
|
|
if (current_df_address) {
|
|
var checked = '';
|
|
if (index == 0) {
|
|
checked = 'checked';
|
|
}
|
|
|
|
var address = current_df_address.substring(current_df_address.indexOf(',') + 1)
|
|
var address_value = current_df_address;
|
|
address_value = $.trim(address_value);
|
|
|
|
if (address) {
|
|
address = ", " + address;
|
|
}
|
|
//data-mainid="'+divlen+'"
|
|
var new_index = tag_len;
|
|
|
|
current_df_address_array.push(current_df_address);
|
|
letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" ' + checked + ' name="letter_stream_address_11[' + new_index + ']" class="letter-address-popup" type="checkbox" value="' + address_value + '"> <strong>' + bank_name + "</strong> " + address + '</label></div>';
|
|
}
|
|
}
|
|
});
|
|
letter_stream_html += '</td><td></td></tr>';
|
|
}
|
|
// $('input[name="df_selected_address_value[]"]').map(function(index,value){
|
|
// var current_df_address = $(this).val();
|
|
// var bank_name = $(this).data('name');
|
|
// bank_name = $.trim(bank_name);
|
|
// bank_name = removelastCountValue(bank_name);
|
|
// if(current_df_address && isValidAddress(current_df_address)){
|
|
// var checked = '';
|
|
// if(index == 0){
|
|
// checked = 'checked';
|
|
// }
|
|
// var new_index = $(this).prop('id').replace('df_selected_address_val_','');
|
|
// current_df_address_array.push(current_df_address);
|
|
// letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" '+checked+' name="letter_stream_address_11['+new_index+']" class="letter-address-popup" type="checkbox" value="'+current_df_address + '"> <strong>'+bank_name+"</strong> "+current_df_address + '</label></div>';
|
|
// }
|
|
// }).get();
|
|
|
|
var isPublicrecord = false;
|
|
$('.enhance-tag').each(function() {
|
|
var enhance_value = $(this).val();
|
|
if ($(this).prop('checked') && enhance_value == 5) {
|
|
isPublicrecord = true;
|
|
return false;
|
|
}
|
|
});
|
|
|
|
|
|
|
|
if (enhance_types && enhance_types['5'] == 1 && enhance_type_obj_length == 1) {
|
|
|
|
letter_stream_html = letter_stream_table_header;
|
|
}
|
|
|
|
if (isPublicrecord) {
|
|
|
|
var exp_data_value1 = 1;
|
|
var exp_data_value2 = 2;
|
|
var exp_title1 = "Experian Information Solutions, Inc., 475 Anton Blvd., Costa Mesa, CA 92626"
|
|
var exp_title2 = "Experian POB 9701, ATTN Consumer Fraud Department, Allen, TX 75013"
|
|
|
|
var equif_data_value1 = 1;
|
|
var equif_data_value2 = 2;
|
|
var equif_title1 = "Equifax Information services LLC. 1550 Peachtree Street, N.W.,ATLANTA,GA 30309"
|
|
var equif_title2 = "EQUIFAX,ATTN FRAUD DEPARTMENT,POB 740256,ATLANTA,GA 30374-0256"
|
|
|
|
var trans_data_value1 = 1;
|
|
var trans_data_value2 = 2;
|
|
var trans_title1 = "Transunion LLC, 555 W. Adams Street, CHICAGO, IL 60661"
|
|
var trans_title2 = "Trans Union, Attn FRAUD DEPARTMENT, POB 2000, Chester , PA 19016-2000"
|
|
|
|
destination_id = 1;
|
|
letter_stream_html += '<tr><td style="font-weight: bold;"> PUBLIC RECORD EXPERIAN</td><td>';
|
|
letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" class="letter-address-popup" checked="" type="checkbox" value="1" name="letter_stream_address_pr[' + destination_id + '][]">Experian Information Solutions, Inc., 475 Anton Blvd., Costa Mesa, CA 92626</label></div>';
|
|
letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" class="letter-address-popup has-pr" type="checkbox" value="2" name="letter_stream_address_pr[' + destination_id + '][]">Experian POB 9701, ATTN Consumer Fraud Department, Allen, TX 75013</label></div>';
|
|
letter_stream_html += '<td>';
|
|
letter_stream_html += '<div class="row">' +
|
|
'<div class="col-md-12">\n\
|
|
<select readonly class="form-control" >';
|
|
letter_stream_html += '<option value="' + exp_data_value2 + '">' + exp_title2 + '</option>';
|
|
letter_stream_html += '</select></div></div>';
|
|
letter_stream_html += '<div class="row" style="margin-top: 13px;">\n\
|
|
\n\<div class="col-md-6"><div class="checkbox"><label><input onclick="setEnableDisableReturnAddressPr(this)" value="' + destination_id + '" type="checkbox" name="checkbox_pr_return_address[' + destination_id + ']"/>Set return address</label></div></div>' +
|
|
'<div class="col-md-12">\n\
|
|
<select style="display:none;" class="form-control" name="return_pr_address[' + destination_id + ']">';
|
|
letter_stream_html += '<option value="' + exp_data_value1 + '">' + exp_title1 + '</option>';
|
|
//letter_stream_html += '<option value="' + exp_data_value2 + '">' + exp_title2 + '</option>';
|
|
letter_stream_html += '</select></div></div>';
|
|
letter_stream_html += '</td></tr>';
|
|
|
|
destination_id = 2;
|
|
letter_stream_html += '<tr><td style="font-weight: bold;"> PUBLIC RECORD EQUIFAX</td><td>';
|
|
letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" class="letter-address-popup" checked="" type="checkbox" value="1" name="letter_stream_address_pr[' + destination_id + '][]">Equifax Information services LLC. 1550 Peachtree Street, N.W.,ATLANTA,GA 30309</label></div>';
|
|
letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" class="letter-address-popup has-pr" type="checkbox" value="2" name="letter_stream_address_pr[' + destination_id + '][]">EQUIFAX,ATTN FRAUD DEPARTMENT,POB 740256,ATLANTA,GA 30374-0256</label></div>';
|
|
letter_stream_html += '<td>';
|
|
letter_stream_html += '<div class="row">' +
|
|
'<div class="col-md-12">\n\
|
|
<select readonly class="form-control">';
|
|
letter_stream_html += '<option value="' + equif_data_value2 + '">' + equif_title2 + '</option>';
|
|
letter_stream_html += '</select></div></div>';
|
|
letter_stream_html += '<div class="row" style="margin-top: 13px;">\n\
|
|
\n\<div class="col-md-6"><div class="checkbox"><label><input onclick="setEnableDisableReturnAddressPr(this)" value="' + destination_id + '" type="checkbox" name="checkbox_pr_return_address[' + destination_id + ']"/>Set return address</label></div></div>' +
|
|
'<div class="col-md-7">\n\
|
|
<select style="display:none;" class="form-control" name="return_pr_address[' + destination_id + ']">';
|
|
letter_stream_html += '<option value="' + equif_data_value1 + '">' + equif_title1 + '</option>';
|
|
//letter_stream_html += '<option value="' + equif_data_value2 + '">' + equif_title2 + '</option>';
|
|
letter_stream_html += '</select></div></div>';
|
|
letter_stream_html += '</td></tr>';
|
|
|
|
destination_id = 3;
|
|
letter_stream_html += '<tr><td style="font-weight: bold;"> PUBLIC RECORD TRANSUNION</td><td>';
|
|
letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" class="letter-address-popup" checked="" type="checkbox" value="1" name="letter_stream_address_pr[' + destination_id + '][]">Transunion LLC, 555 W. Adams Street, CHICAGO, IL 60661</label></div>';
|
|
letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" class="letter-address-popup has-pr" type="checkbox" value="2" name="letter_stream_address_pr[' + destination_id + '][]">Trans Union, Attn FRAUD DEPARTMENT, POB 2000, Chester , PA 19016-2000</label></div>';
|
|
letter_stream_html += '<td>';
|
|
letter_stream_html += '<div class="row">' +
|
|
'<div class="col-md-12">\n\
|
|
<select readonly class="form-control">';
|
|
letter_stream_html += '<option value="' + trans_data_value2 + '">' + trans_title2 + '</option>';
|
|
letter_stream_html += '</select></div></div>';
|
|
letter_stream_html += '<div class="row" style="margin-top: 13px;">\n\
|
|
\n\<div class="col-md-6"><div class="checkbox"><label><input onclick="setEnableDisableReturnAddressPr(this)" value="' + destination_id + '" type="checkbox" name="checkbox_pr_return_address[' + destination_id + ']"/>Set return address</label></div></div>' +
|
|
'<div class="col-md-12">\n\
|
|
<select style="display:none;" class="form-control" name="return_pr_address[' + destination_id + ']">';
|
|
letter_stream_html += '<option value="' + trans_data_value1 + '">' + trans_title1 + '</option>';
|
|
//letter_stream_html += '<option value="' + trans_data_value2 + '">' + trans_title2 + '</option>';
|
|
letter_stream_html += '</select></div></div>';
|
|
letter_stream_html += '</td></tr>';
|
|
}
|
|
var other_dest_address = $('textarea[name=other_address]').val();
|
|
if (other_dest_address) {
|
|
letter_stream_html += '<tr>';
|
|
letter_stream_html += '<td style="font-weight: bold;"> OTHER</td>';
|
|
letter_stream_html += '<td>';
|
|
letter_stream_html += '<div class="checkbox"><label><input onclick="currentAddress()" class="letter-address-popup" type="checkbox" value="1" name="letter_stream_address_other[' + destination_id + '][]">' + other_dest_address + '</label></div>';
|
|
letter_stream_html += '</td>'
|
|
letter_stream_html += '<td></td>';
|
|
letter_stream_html += '</tr>';
|
|
}
|
|
letter_stream_html += '</table>';
|
|
$('.letter-stream-content').html(letter_stream_html);
|
|
if ($('.letter-stream-content').children().length == 0) {
|
|
|
|
}
|
|
letterStreamAllCheck();
|
|
if (isDfValidFormat) {
|
|
alert('Invalid DF address format "' + df_error_address + '"');
|
|
return false;
|
|
}
|
|
$('#letter-stream-modal').modal('show');
|
|
//my code
|
|
|
|
}
|
|
|
|
|
|
function isDfAddressValid(current_df_address) {
|
|
var isDfValidFormat = true;
|
|
current_df_address = $.trim(current_df_address);
|
|
current_df_address = current_df_address.replace(/<(?:.|\n)*?>/gm, '');
|
|
if(current_df_address.split(' ').length < 2){
|
|
return false;
|
|
}
|
|
var comma_count = current_df_address.match(/,/gi).length;;
|
|
if (comma_count != 2) {
|
|
isDfValidFormat = false;
|
|
}
|
|
|
|
return isDfValidFormat;
|
|
}
|
|
|
|
function removelastCountValue(name) {
|
|
var s = name;
|
|
var n = s.lastIndexOf("-");
|
|
|
|
var s1 = s.substring(0, n);
|
|
var s2 = s.substring(n + 1);
|
|
if (/^-?\d*\.?\d*$/.test(s2)) {
|
|
s = s1;
|
|
}
|
|
return s;
|
|
}
|
|
|
|
function currentAddress() {
|
|
letterStreamAllCheck();
|
|
}
|
|
|
|
function letterStreamAllCheck() {
|
|
$('#all-check-address').prop('checked', false);
|
|
var total_lenght_of_address_checkbox = $('.letter-address-popup').length;
|
|
var selected_lenght_of_address_checkbox = $('.letter-address-popup:checked').length;
|
|
if (total_lenght_of_address_checkbox == selected_lenght_of_address_checkbox) {
|
|
$('#all-check-address').prop('checked', true);
|
|
}
|
|
}
|
|
|
|
function letterAddressAllCheck(elem) {
|
|
|
|
$('.letter-address-popup').prop('checked', false);
|
|
if ($(elem).prop('checked')) {
|
|
$('.letter-address-popup').prop('checked', true);
|
|
}
|
|
}
|
|
|
|
</script>
|
|
|
|
<script src="__SERVER_URL__webroot/datepicker/jquery-1.11.2.js"></script>
|
|
<script src="__SERVER_URL__webroot/datepicker/moment.js"></script>
|
|
<script src="__SERVER_URL__webroot/datepicker/bootstrap-datetimepicker.min.js"></script>
|
|
<script type="text/javascript">
|
|
$(".date-time-picker").datetimepicker({
|
|
format: "YYYY-MM-DD HH:mm",
|
|
minDate: moment(),
|
|
ignoreReadonly: true
|
|
});
|
|
|
|
$('input[name=set_schedule]').click(function() {
|
|
$('.schedule-area').hide();
|
|
if ($(this).prop('checked')) {
|
|
$('.schedule-area').show();
|
|
}
|
|
})
|
|
|
|
$('input[name=set_automation]').click(function() {
|
|
$('.setup-automation').hide();
|
|
$('input[name=day_value]').val('');
|
|
$('select[name=automation_type]').val(1).trigger('change');
|
|
if ($(this).prop('checked')) {
|
|
$('.setup-automation').show();
|
|
}
|
|
})
|
|
|
|
function setEnableDisableReturnAddress(elem) {
|
|
var destination_id = $(elem).val();
|
|
var dropdown = $('select[name=return_address_' + destination_id + ']');
|
|
dropdown.hide();
|
|
if ($(elem).prop('checked')) {
|
|
dropdown.show();
|
|
}
|
|
}
|
|
|
|
function setEnableDisableReturnAddressPr(elem) {
|
|
var destination_id = $(elem).val();
|
|
var dropdown = $('select[name="return_pr_address[' + destination_id + ']"]');
|
|
dropdown.hide();
|
|
if ($(elem).prop('checked')) {
|
|
dropdown.show();
|
|
}
|
|
}
|
|
|
|
function generateAffiliateClientList(elem, client_id = 0) {
|
|
var value = $(elem).val();
|
|
var data = {
|
|
'crmuser_id': value,
|
|
'action': 'AFFILIATE_CLIENT_LIST'
|
|
};
|
|
$(elem).next('img').show()
|
|
$.ajax({
|
|
type: "POST",
|
|
data: data,
|
|
url: AFFILIATE_URL,
|
|
success: function(response) {
|
|
$(elem).next('img').hide();
|
|
response = JSON.parse(response);
|
|
console.log("sdddd", response)
|
|
var s = $('#client-contact-id');
|
|
s.empty()
|
|
$('<option />', {
|
|
value: "0",
|
|
text: "Please select client"
|
|
}).appendTo(s);
|
|
for (var val in response) {
|
|
var clientInfo = response[val];
|
|
$('<option />', {
|
|
'data-email': clientInfo.email,
|
|
'data-id': clientInfo.id,
|
|
value: clientInfo.contact_id,
|
|
text: clientInfo.first_name + " " + clientInfo.last_name + " (" + clientInfo.email + ")"
|
|
}).appendTo(s);
|
|
}
|
|
|
|
console.log('sssss', client_id);
|
|
if (client_id > 0) {
|
|
s.val(client_id).trigger('change');
|
|
}
|
|
},
|
|
error: function() {
|
|
$(elem).next('img').hide();
|
|
alert("Failed. Try again later.111");
|
|
}
|
|
});
|
|
}
|
|
|
|
function affiliateShow(elem, crmuser_id = 0) {
|
|
|
|
$('.affiliate-list').hide();
|
|
var employee_checkbox = $('input[name=employee_client_type]');
|
|
$('select[name=affiliate_client_id]').attr('disabled', true);
|
|
if ($(elem).prop('checked') && $(elem).val() == 2) {
|
|
if (employee_checkbox.prop('checked')) {
|
|
employee_checkbox.click();
|
|
$('.employee-list').hide();
|
|
}
|
|
$('#affiliate-loader').show();
|
|
var formData = {
|
|
'action': 'AFFILIATE_LIST'
|
|
};
|
|
$.ajax({
|
|
type: "POST",
|
|
data: formData,
|
|
url: AFFILIATE_URL,
|
|
success: function(response) {
|
|
$('#affiliate-loader').hide();
|
|
response = JSON.parse(response);
|
|
console.log(response);
|
|
var s = $('select[name=affiliate_client_id]');
|
|
s.empty()
|
|
$('<option />', {
|
|
value: -1,
|
|
text: "All"
|
|
}).appendTo(s);
|
|
for (var val in response.affiliateList) {
|
|
$('<option />', {
|
|
value: val,
|
|
text: response.affiliateList[val]
|
|
}).appendTo(s);
|
|
}
|
|
|
|
if (crmuser_id == 0) {
|
|
var clientDropdown = $('#client-contact-id');
|
|
clientDropdown.empty()
|
|
$('<option />', {
|
|
value: "0",
|
|
text: "Please select client"
|
|
}).appendTo(clientDropdown);
|
|
for (var val in response.affiliate_client_list) {
|
|
var clientInfo = response.affiliate_client_list[val];
|
|
$('<option />', {
|
|
'data-email': clientInfo.email,
|
|
'data-id': clientInfo.id,
|
|
value: clientInfo.contact_id,
|
|
text: clientInfo.first_name + " " + clientInfo.last_name + " (" + clientInfo.email + ")"
|
|
}).appendTo(clientDropdown);
|
|
}
|
|
}
|
|
$('.affiliate-list').show();
|
|
$('select[name=affiliate_client_id]').attr('disabled', false);
|
|
if (crmuser_id > 0) {
|
|
s.val(crmuser_id).trigger('change');
|
|
}
|
|
},
|
|
error: function() {
|
|
$(elem).next('img').hide();
|
|
alert("Failed. Try again later.111");
|
|
}
|
|
});
|
|
|
|
} else if (!$(elem).prop('checked')) {
|
|
$('#affiliate-loader').show();
|
|
//$('#client-contact-id').trigger('change');
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: "__SERVER_URL__dashboard/clientContact",
|
|
cache: false,
|
|
success: function(data) {
|
|
$('#affiliate-loader').hide();
|
|
var json = JSON.parse(data);
|
|
//console.log(json);
|
|
var dropdown = $('#client-contact-id');
|
|
|
|
dropdown.empty();
|
|
dropdown.append(new Option("Please select client", "0"));
|
|
$.each(json, function(index, contact) {
|
|
var first_name = "";
|
|
if (contact.first_name != "") {
|
|
first_name = contact.first_name;
|
|
}
|
|
|
|
var last_name = "";
|
|
if (contact.last_name != "") {
|
|
last_name = contact.last_name;
|
|
}
|
|
|
|
var contact_email = contact.email;
|
|
if (contact.is_receive_notification_email == 1 && contact.alternate_email) {
|
|
contact_email = contact.alternate_email;
|
|
}
|
|
dropdown.append('<option data-email="' + contact_email + '" data-id="' + contact.client_id + '" value="' + contact.contact_id + '" >' + first_name + ' ' + last_name + " (" + '' + contact.email + ")" + '</option>');
|
|
|
|
});
|
|
//$('img#client-contact-loading-img').css('display', 'none');
|
|
}
|
|
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function isValidAddress(address) {
|
|
var result = false;
|
|
var zip_code_length = 5;
|
|
var zip_code_count = 0;
|
|
var city_length = 2;
|
|
var city_count = 0;
|
|
var address_split_array = address.split(' ');
|
|
var array_lenght = 0;
|
|
if (address) {
|
|
if (address_split_array) {
|
|
array_lenght = address_split_array.length;
|
|
}
|
|
|
|
if (address_split_array[array_lenght - 1]) {
|
|
for (var i in address_split_array[array_lenght - 1]) {
|
|
if (/^-?\d*\.?\d*$/.test(address_split_array[array_lenght - 1][i])) {
|
|
zip_code_count++;
|
|
}
|
|
}
|
|
|
|
if ((zip_code_count == address_split_array[array_lenght - 1].length) && (zip_code_count == zip_code_length)) {
|
|
result = true;
|
|
}
|
|
}
|
|
|
|
if (address_split_array[array_lenght - 2] && result) {
|
|
for (var i in address_split_array[array_lenght - 2]) {
|
|
if (/^[a-zA-Z]+$/.test(address_split_array[array_lenght - 2][i])) {
|
|
city_count++;
|
|
}
|
|
}
|
|
if ((city_count == address_split_array[array_lenght - 2].length) && (city_count == city_length)) {
|
|
result = true;
|
|
}
|
|
|
|
} else {
|
|
result = false;
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
function setInqAddressToTextarea(elem) {
|
|
var tag_name = $(elem).prop('name');
|
|
//alert(tag_name);
|
|
var address = $(elem).find(':selected').data('address');
|
|
var bank_name = $(elem).find(':selected').text();
|
|
bank_name = $.trim(bank_name);
|
|
var divlen = tag_name.replace('df_item_inquirey_list_', '');
|
|
$('textarea[name=df_textarea_' + divlen + ']').val('');
|
|
if (address) {
|
|
$('#df_item_bank_list_id_' + divlen).val(0);
|
|
$('input[name=letter_stream_bank_list_' + divlen + ']').val(bank_name);
|
|
$('#df_selected_address_val_' + divlen).attr('data-name', bank_name);
|
|
$('#df_selected_address_val_' + divlen).val(address);
|
|
$('textarea[name=df_textarea_' + divlen + ']').val(bank_name + ", " + address);
|
|
var inq_value = INQUIRY_VALUE_BY_KEY[bank_name];
|
|
if(!$(`dl#inquiry-subcategory_${divlen}`).find(`input[type=checkbox][value=${inq_value}]`).prop('checked'))
|
|
$(`dl#inquiry-subcategory_${divlen}`).find(`input[type=checkbox][value=${inq_value}]`).click()
|
|
}
|
|
}
|
|
|
|
|
|
function setPublicAddressToTextarea(elem) {
|
|
var tag_name = $(elem).prop('name');
|
|
//alert(tag_name);
|
|
var address = $(elem).find(':selected').data('address');
|
|
var creditor = $(elem).find(':selected').data('creditor');
|
|
var bank_name = $(elem).find(':selected').text();
|
|
bank_name = $.trim(bank_name);
|
|
var divlen = tag_name.replace('df_item_inquirey_list_', '');
|
|
$('textarea[name=df_textarea_' + divlen + ']').val('');
|
|
if (address) {
|
|
$('#df_item_bank_list_id_' + divlen).val(0);
|
|
$('input[name=letter_stream_bank_list_' + divlen + ']').val(bank_name);
|
|
$('#df_selected_address_val_' + divlen).attr('data-name', bank_name);
|
|
$('#df_selected_address_val_' + divlen).val(address);
|
|
$('textarea[name=df_textarea_' + divlen + ']').val(creditor + ", " + address);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
function getHTMLByClientId(elem) {
|
|
var client_id = $('#client-contact-id option:selected').data('id');
|
|
var source_type = 1;
|
|
if ($('select[name=report_type]').val()) {
|
|
source_type = $('select[name=report_type]').val();
|
|
}
|
|
if (client_id > 0) {
|
|
$('#process-html-loader').show();
|
|
var formData = {
|
|
'action': 'htmlinfo',
|
|
'client_id': client_id,
|
|
'source_type': source_type
|
|
};
|
|
console.log('formData', formData)
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: saveIdentityID,
|
|
data: formData,
|
|
cache: false,
|
|
success: function(data) {
|
|
$('#process-html-loader').hide();
|
|
var response = JSON.parse(data);
|
|
console.log('response', response)
|
|
if (response.html) {
|
|
var json = response.html;
|
|
hasHistory = response.hasHistory;
|
|
//$('.view-html').html(json);
|
|
json = json.replace('https://www.identityiq.com/Scripts/jquery-1.7.2.min.js', '');
|
|
json = json.replace('https://www.identityiq.com/Scripts/angular.js', '');
|
|
$('textarea[name=html_content]').val(json)
|
|
//console.log('isVelocity_report_type', source_type);
|
|
uploadHTMLUICode(json, true, source_type)
|
|
$('#client-html .modal-body').show();
|
|
$('.modal-dialog').css({
|
|
"margin": "0 auto"
|
|
});
|
|
//$.noConflict();
|
|
$('#client-html').modal('show');
|
|
}
|
|
}
|
|
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
function removeViewHTML() {
|
|
$('.view-html').html('');
|
|
|
|
}
|
|
|
|
function setSttPreset(elem, divlen, isdynamic = false, first_selcted_bank_list) {
|
|
|
|
var last_sected_bank_val = 0;
|
|
var last_sected_bank = 0;
|
|
if ($(elem).prop('checked')) {
|
|
var next_divlen = divlen;
|
|
next_divlen++;
|
|
|
|
if ($(elem).data('lastbank')) {
|
|
// previous_selected_value = $(elem).data('lastbank');
|
|
}
|
|
//$('input[name=from_load]').val() == 1
|
|
|
|
//getSTTContentNew(divlen, next_divlen);
|
|
//alert(divlen+"==="+next_divlen)
|
|
$('#item-bank_' + divlen + ' dt div a').removeClass('disable-elem');
|
|
var total_bank = $('input[name="item_bank_' + divlen + '[]"]').length;
|
|
var bank_count = 0;
|
|
$('input[name="item_bank_' + divlen + '[]"]').map(function() {
|
|
if ($(this).prop('checked')) {
|
|
$(this).prop('checked', false);
|
|
}
|
|
})
|
|
var selected_bank_list = [];
|
|
$.each(first_selcted_bank_list, function(bank_index, value) {
|
|
selected_bank_list.push(bank_index);
|
|
})
|
|
|
|
$('input[name="item_bank_' + divlen + '[]"]').map(function() {
|
|
if (!$(this).prop('checked') && $.inArray($(this).val(), selected_bank_list) !== -1) {
|
|
$(this).click();
|
|
}
|
|
});
|
|
|
|
|
|
var previous_value = $('textarea[name=image_text_area_' + divlen + ']').val();
|
|
$('textarea[name=image_text_area_' + divlen + ']').val('');
|
|
$('select[name="item_public_category_' + divlen).change();
|
|
$('input[name="public_negative_item_' + divlen + '[]"]').map(function() {
|
|
if (!$(this).prop('checked')) {
|
|
$(this).click();
|
|
}
|
|
});
|
|
|
|
var current_value = $('textarea[name=image_text_area_' + divlen + ']').val();
|
|
|
|
if (previous_value) {
|
|
$('textarea[name=image_text_area_' + divlen + ']').val(previous_value + "\n\n" + current_value);
|
|
} else {
|
|
if (current_value) {
|
|
$('textarea[name=image_text_area_' + divlen + ']').val(current_value);
|
|
}
|
|
}
|
|
|
|
if (isdynamic) {
|
|
//setDynamicVariable();
|
|
}
|
|
|
|
if (BANK_ASSOC_CHUNK_LIST[0].negative_item) {
|
|
console.log('test5')
|
|
//console.log('BANK_ASSOC_CHUNK_LIST[0].negative_item',BANK_ASSOC_CHUNK_LIST,BANK_ASSOC_CHUNK_LIST[0],BANK_ASSOC_CHUNK_LIST[0].negative_item)
|
|
$('textarea[name=image_text_area_' + divlen + ']').val(BANK_ASSOC_CHUNK_LIST[0].negative_item);
|
|
if ($('textarea[name=image_text_area_' + next_divlen + ']').val())
|
|
$('input[name="sttInquery_' + divlen).val($('textarea[name=image_text_area_' + next_divlen + ']').val());
|
|
}
|
|
}
|
|
|
|
return {
|
|
'total_bank': total_bank,
|
|
'last_sected_bank_val': last_sected_bank_val,
|
|
'last_sected_bank': last_sected_bank,
|
|
'next_divlen': next_divlen
|
|
};
|
|
}
|
|
|
|
|
|
function setDynamicVariable() {
|
|
var count = 1;
|
|
$('.remove-view-slot').each(function() {
|
|
count++;
|
|
//alert(count);
|
|
$(this).find('.dest-checkbox input[type=checkbox]').each(function() {
|
|
$(this).attr('name', 'dest_check_' + count + '[]');
|
|
$(this).attr('class', 'dest_check_' + count + ' remove-all');
|
|
$(this).attr('id', 'dest_check_' + count);
|
|
});
|
|
|
|
$(this).find('mutliSelect > input[type=checkbox]').each(function() {
|
|
$(this).attr('name', 'enhance_check_' + count);
|
|
});
|
|
|
|
$(this).find('input-file-field > textarea').each(function() {
|
|
$(this).attr('name', 'image_text_area_' + count);
|
|
});
|
|
|
|
$(this).find('.enhance-tag').each(function() {
|
|
var value = $(this).val();
|
|
$(this).attr('name', 'enhance_check_' + count);
|
|
if (value == 4) {
|
|
$(this).attr('id', 'stt_preset_' + count);
|
|
}
|
|
})
|
|
|
|
$(this).find('#item-inquires-negative input[type=checkbox]').each(function() {
|
|
$(this).attr('name', 'negative_inq_item_' + count + '[]');
|
|
$(this).attr('class', 'negative-inq-input_' + count);
|
|
$(this).attr('id', 'negetive_inq_input_id_' + count);
|
|
})
|
|
});
|
|
}
|
|
|
|
function setPublicRecordAttack(elem, divlen) {
|
|
|
|
if ($(elem).prop('checked')) {
|
|
$('select[name="item_public_category_' + divlen).change();
|
|
$('input[name="public_negative_item_' + divlen + '[]"]').map(function() {
|
|
if (!$(this).prop('checked')) {
|
|
$(this).click();
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
function disableAllActions(disable = true) {
|
|
event.preventDefault();
|
|
$('select[name=client_id]').prop('disabled', disable);
|
|
$('select[name=employee_id]').prop('disabled', disable);
|
|
$('select.credit-report-type').prop('disabled', disable);
|
|
$('input[name=show_client_checkbox]').prop('disabled', disable);
|
|
|
|
}
|
|
|
|
function showmodal() {
|
|
|
|
$('#df-address').modal('show');
|
|
}
|
|
|
|
function sertgAffiliateFormList(elem) {
|
|
var employee_id = $('input[name=employee_id]').val()
|
|
var formData = {
|
|
'formdata': 'getFormData',
|
|
'member_id': $('input[name=member_id]').val(),
|
|
'form_afiiliate_id': $(elem).val(),
|
|
'employee_id': employee_id
|
|
};
|
|
|
|
readyDatatableFromServerSide(formData);
|
|
}
|
|
|
|
function sertgEmployeeFormList(elem) {
|
|
var formData = {
|
|
'formdata': 'getFormData',
|
|
'member_id': $('input[name=member_id]').val(),
|
|
'form_employee_id': $(elem).val()
|
|
};
|
|
readyDatatableFromServerSide(formData);
|
|
|
|
}
|
|
|
|
function affiliateFormShow(elem) {
|
|
$('.form-affiliate-list').hide();
|
|
$('.form-employee-list').hide();
|
|
if ($(elem).prop('checked')) {
|
|
if ($(elem).val() == 2) {
|
|
$('#client_type_id').val($(elem).val());
|
|
$('#affiliate_client_type_id').val(-1);
|
|
$('#affiliate-loader-form').show();
|
|
var formData = {
|
|
'action': 'AFFILIATE_LIST',
|
|
'employee_id': 0
|
|
};
|
|
|
|
$.ajax({
|
|
type: "POST",
|
|
data: formData,
|
|
url: AFFILIATE_URL,
|
|
success: function(response) {
|
|
$('#affiliate-loader-form').hide();
|
|
var show_client_checkbox = $('input[name=show_client_checkbox]');
|
|
response = JSON.parse(response);
|
|
console.log(response);
|
|
var s = $('select[name=form_affiliate_client_id]');
|
|
s.empty()
|
|
//$('<option />', {value: -1, text: "All"}).appendTo(s);
|
|
if (response.iscmsuser) {
|
|
s.html(response.affilistHTML)
|
|
|
|
} else {
|
|
$('<option />', {
|
|
value: -1,
|
|
text: "All"
|
|
}).appendTo(s);
|
|
|
|
for (var val in response.affiliateList) {
|
|
$('<option />', {
|
|
value: val,
|
|
text: response.affiliateList[val]
|
|
}).appendTo(s);
|
|
}
|
|
}
|
|
|
|
s.trigger('change')
|
|
$('.form-affiliate-list').show();
|
|
|
|
|
|
$('select[name=affiliate_client_id]').attr('disabled', false);
|
|
if (response.employee_affiliste_list && show_client_checkbox.prop('checked')) {
|
|
$('select[name=affiliate_client_id]').html(response.employee_affiliste_list);
|
|
}
|
|
},
|
|
error: function() {
|
|
$(elem).next('img').hide();
|
|
alert("Failed. Try again later.111");
|
|
}
|
|
});
|
|
} else if ($(elem).val() == 1) {
|
|
$('#employee-loader-form').show();
|
|
var formData = {
|
|
'action': 'EMPLOYEE_LIST'
|
|
};
|
|
$.ajax({
|
|
type: "POST",
|
|
data: formData,
|
|
url: AFFILIATE_URL,
|
|
success: function(response) {
|
|
$('#employee-loader-form').hide();
|
|
response = JSON.parse(response);
|
|
|
|
var s = $('select[name=form_dropdown_employee_id]');
|
|
s.empty()
|
|
$('<option />', {
|
|
value: -1,
|
|
text: "All"
|
|
}).appendTo(s);
|
|
for (var val in response.affiliateList) {
|
|
var attr = {
|
|
value: val,
|
|
text: response.affiliateList[val]
|
|
}
|
|
var selected = "";
|
|
|
|
$('<option />', attr).appendTo(s);
|
|
}
|
|
s.trigger('change')
|
|
|
|
$('.form-employee-list').show();
|
|
$('select[name=affiliate_client_id]').attr('disabled', false);
|
|
|
|
|
|
|
|
},
|
|
error: function() {
|
|
$(elem).next('img').hide();
|
|
alert("Failed. Try again later.111");
|
|
}
|
|
});
|
|
} else if ($(elem).val() == 3) {
|
|
var formData = {
|
|
'formdata': 'getFormData',
|
|
'member_id': $('input[name=member_id]').val(),
|
|
'employee_id': $('input[name=employee_id]').val(),
|
|
'form_employee_id': 0
|
|
};
|
|
readyDatatableFromServerSide(formData);
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
function updateValueSTTInquiry(elem) {
|
|
var value = $(elem).val();
|
|
var name = $(elem).attr('name');
|
|
var divlen = name.replace("image_text_area_", "");
|
|
var prev_div = parseInt(divlen) - 1;
|
|
var enhance_checkbox = $(`input[name=enhance_check_${divlen}]:checked`).val();
|
|
var prev_enhance_checkbox = $(`input[name=enhance_check_${prev_div}]:checked`).val();
|
|
if (!enhance_checkbox && prev_enhance_checkbox == 4) {
|
|
$(`input[name=sttInquery_${prev_div}]`).val(value);
|
|
//alert(1);
|
|
}
|
|
}
|
|
|
|
function velocityAllCheckbox(elem) {
|
|
event.stopPropagation();
|
|
$('.current-checkbox').prop('checked', false);
|
|
if ($(elem).prop('checked')) {
|
|
$('.current-checkbox').prop('checked', true);
|
|
}
|
|
}
|
|
|
|
function setClearButton(id, divlen) {
|
|
return `<a onclick="clearCurrentSelection('${id}',${divlen})" class="pull-right control-label item-clear-btn" href="#">
|
|
<i class="fa fa-eraser" aria-hidden="true"></i> Clear</a>`;
|
|
}
|
|
|
|
function clearCurrentSelection(id, divlen) {
|
|
event.preventDefault();
|
|
if (confirm("Are you sure want to clear ?")) {
|
|
var current_id = $(`#${id}${divlen}`);
|
|
current_id.find('dt p.multiSel').prev('span.choose-dest').show();
|
|
current_id.find('dt p.multiSel').html('');
|
|
current_id.find('dd input[type=checkbox]').prop('checked', false);
|
|
}
|
|
}
|
|
|
|
function create_new_letter(elem) {
|
|
event.preventDefault();
|
|
var form = $('form#create-new-letter');
|
|
form.html('');
|
|
var main_parent = $(elem).parents('.remove-view-slot').first();
|
|
var content = "";
|
|
var divlen = 0;
|
|
var from_append_type = 0;
|
|
if(main_parent.length > 0){
|
|
divlen = main_parent.find('.dest-checkbox').first().prop('id').replace('dest-checkbox_','');
|
|
content = main_parent.clone();
|
|
from_append_type = 2 // for next section
|
|
}else{
|
|
main_parent = $(elem).parents('.row').first();
|
|
divlen = 1;
|
|
from_append_type = 1; // for first section
|
|
|
|
//content = main_parent.clone().html() + main_parent.next('.form-group').first().clone().html()+main_parent.nextAll('#input-file-field').first().clone().html();
|
|
|
|
}
|
|
console.log(main_parent,content,divlen)
|
|
//return
|
|
$('form#inputformId').find('input[type=hidden]').each(function(){
|
|
form.append($(this).clone());
|
|
});
|
|
|
|
$(`input[name="dest_check_${divlen}[]"]:checked`).each(function(){
|
|
//alert()
|
|
//alert($(this).prop('checked')+"===="+divlen+"====="+$(this).prop('name'))
|
|
$('<input>').attr({
|
|
type: 'hidden',
|
|
id: 'foo',
|
|
name: 'destination[]',
|
|
value:$(this).val()
|
|
}).appendTo(form);
|
|
});
|
|
|
|
form.append($('textarea[name=personal_info]').clone());
|
|
form.append($('select[name=report_type]').clone());
|
|
form.append($('select[name=select]').clone());
|
|
form.append($('input[name=current_dob]').clone());
|
|
form.append($('input[name=ssn]').clone());
|
|
form.append($('input[name=cr_data]').clone());
|
|
form.append($('input[name=cr_data]').clone());
|
|
form.append('<input type="hidden" name="formAction" value="generate"/>');
|
|
form.append('<input type="hidden" name="update_id" value="0"/>');
|
|
form.append('<input type="hidden" name="download_type" value="1"/>');
|
|
|
|
if(from_append_type == 1){
|
|
form.append(main_parent.clone());
|
|
form.append(main_parent.next('.form-group').first().clone());
|
|
form.append(main_parent.next('.form-group').first().clone());
|
|
form.append(main_parent.nextAll('#input-file-field').first().clone());
|
|
}else if(from_append_type == 2){
|
|
form.append(content);
|
|
}
|
|
|
|
//form.show();
|
|
form.submit();
|
|
}
|
|
|
|
function setCreateNewLetterButton(divlen){
|
|
return `<input style="margin-left: 10px;" type="checkbox" name="create_new_letter_${divlen}" id="create_new_letter_${divlen}" class="cnl create-new-letter-checkbox" value="1"><span class="cnl"> Create new letter</span>`;
|
|
}
|
|
|
|
|
|
function duplicateButton(){
|
|
addImageBtn()
|
|
}
|
|
|
|
</script>
|
|
|
|
<script src="__SERVER_URL__webroot/js/credit_report_split.js?1.0.29"></script> |