Browse Source

金隅身份证读卡器查询回调

大厂分支
liangkun 4 years ago
parent
commit
a7db3dd8ed
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-form.js

+ 8
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/lr-form.js View File

@@ -710,7 +710,7 @@
} }
}; };
// 多条件查询框 // 多条件查询框
$.fn.lrMultipleQuery = function (search, height, width) {
$.fn.lrMultipleQuery = function (search, height, width, isreadcard, readcallback) {
var $this = $(this); var $this = $(this);
var contentHtml = $this.html(); var contentHtml = $this.html();
$this.addClass('lr-query-wrap'); $this.addClass('lr-query-wrap');
@@ -724,6 +724,8 @@
//_html += '</div>'; //_html += '</div>';
_html += '<div class="lr-query-arrow"><div class="lr-query-inside"></div></div>'; _html += '<div class="lr-query-arrow"><div class="lr-query-inside"></div></div>';
_html += '<div class="lr-query-content-bottom">'; _html += '<div class="lr-query-content-bottom">';
if (!!isreadcard)
_html += '<a id="lr_btn_readcard" class="btn btn-default">&nbsp;读&nbsp;&nbsp;取</a>';
_html += '<a id="lr_btn_queryReset" class="btn btn-default">&nbsp;重&nbsp;&nbsp;置</a>'; _html += '<a id="lr_btn_queryReset" class="btn btn-default">&nbsp;重&nbsp;&nbsp;置</a>';
_html += '<a id="lr_btn_querySearch" class="btn btn-primary">&nbsp;查&nbsp;&nbsp;询</a>'; _html += '<a id="lr_btn_querySearch" class="btn btn-primary">&nbsp;查&nbsp;&nbsp;询</a>';
_html += '</div>'; _html += '</div>';
@@ -758,7 +760,11 @@
} }
$content.lrSetFormData(query); $content.lrSetFormData(query);
}); });

if (!!readcallback) {
$this.find('#lr_btn_readcard').on('click', function () {
readcallback();
});
}
$(document).click(function (e) { $(document).click(function (e) {
var et = e.target || e.srcElement; var et = e.target || e.srcElement;
var $et = $(et); var $et = $(et);


Loading…
Cancel
Save