| | |
| | | */ |
| | | YesDriver.initColumn = function () { |
| | | return [ |
| | | {field: 'selectItem', radio: true}, |
| | | {field: 'selectItem', radio: false}, |
| | | {title: '主键ID', field: 'id', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: '添加时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle',width:'7%', |
| | | formatter: function (value, row) { |
| | |
| | | }; |
| | | YesDriver.selectUserOpt = function () { |
| | | var selected = $('#' + this.id).bootstrapTable('getSelections'); |
| | | if (selected.length == 0) { |
| | | Feng.info("请先选中表格中的某一记录!"); |
| | | return false; |
| | | } |
| | | var id = selected[0].id; |
| | | var companyName = selected[0].companyName; |
| | | if(companyName==undefined)companyName=""; |
| | | var nickName = selected[0].firstName + ' ' + selected[0].lastName; |
| | | var phone = selected[0].phone; |
| | | if ("" == id || null == id || undefined == id){ |
| | | if (selected.length == 0){ |
| | | Feng.info("请先选中表格中的某一记录!"); |
| | | return ; |
| | | } |
| | | var obj = $("#obj").val(); |
| | | window.parent.TAdvertisementInfoDlg.selecUserOpt2(id,companyName,nickName,phone); |
| | | window.parent.TAdvertisementInfoDlg.selecUserOpt2(selected); |
| | | YesDriver.close(); |
| | | } |
| | | |
| | |
| | | window.location.href = Feng.ctxPath + "/tDriver/uploadDriverModel"; |
| | | } |
| | | |
| | | var agreement = function(){ |
| | | var agreement = function(){ |
| | | this.init = function(){ |
| | | //模拟上传excel |
| | | $("#uploadEventBtn").unbind("click").bind("click",function(){ |
| | |
| | | } |
| | | } |
| | | } |
| | | YesDriver.sendAjaxRequest = function(url,type,data){ |
| | | YesDriver.sendAjaxRequest = function(url,type,data){ |
| | | $.ajax({ |
| | | url : url, |
| | | type : type, |
| | |
| | | |
| | | } |
| | | }; |
| | | var agreement; |
| | | var agreement; |
| | | $(function(){ |
| | | agreement = new agreement(); |
| | | agreement.init(); |