信呼OA版本v2.3.8

This commit is contained in:
雨中磐石
2022-08-14 16:47:40 +08:00
parent 4640677d27
commit e3fcd913e3
1405 changed files with 133635 additions and 73 deletions

View File

@@ -0,0 +1,99 @@
<?php
/**
* 模块knowtraim.考试培训人员
* 来源http://www.rockoa.com/
*/
defined('HOST') or die ('not access');
?>
<script>
$(document).ready(function(){
{params}
var atype = params.atype;
if(!atype)atype='';
var a = $('#viewpxuser_{rand}').bootstable({
fanye:true,tablename:'knowtrais',
url:publicmodeurl('knowtraim'),storebeforeaction:'knowtraimuserbefore',storeafteraction:'knowtraimuserafter',checked:atype=='all',
params:{atype:atype},
columns:[{
text:"部门",dataIndex:"deptname"
},{
text:"姓名",dataIndex:"name"
},{
text:"题目",dataIndex:"title"
},{
text:"时间",dataIndex:"startdt",sortable:true
},{
text:"考试时间",dataIndex:"kssdt",sortable:true
},{
text:"考试状态",dataIndex:"isks",sortable:true
},{
text:"分数",dataIndex:"fenshu",sortable:true
},{
text:'',dataIndex:'optsw',notexcel:true,renderer:function(v,d, oi){
var s = '&nbsp;';
if(d.state=='1' && d.iskszt=='0' && d.uid==adminid)s='<a onclick="openks{rand}('+oi+')" href="javascript:;">去考试</font>';
return s;
}
}],
itemdblclick:function(){
c.view();
},
load:function(d){
}
});
openks{rand}=function(oi){
var d = a.getData(oi);
var url = '?m=hr&a=kaoshi&d=main&id='+d.mid+'';
openxiangs(d.title, url);
}
var c = {
chongkx:function(){
var fid = a.getchecked();
if(fid==''){js.msg('msg','没有选中复选框');return;}
js.confirm('确定要标识未可考试嘛,将会清空原来记录', function(jg){
if(jg=='yes')c.chongkxs(fid);
});
},
chongkxs:function(fid){
js.ajax(publicmodeurl('knowtraim','biaoshi'),{'fid':fid},function(s){
a.reload();
},'post',false, '处理中...,处理成功');
},
daochu:function(o1){
publicdaochuobj({
'objtable':a,
'modename':'',
'btnobj':o1
});
},
search:function(){
var s=get('key_{rand}').value;
a.setparams({key:s},true);
}
};
js.initbtn(c);
if(atype!='all')$('#showbtn{rand}').remove();
});
</script>
<div>
<table width="100%">
<tr>
<td>
<input class="form-control" style="width:180px" id="key_{rand}" placeholder="题目/人员/部门">
</td>
<td style="padding-left:10px">
<button class="btn btn-default" click="search" type="button">搜索</button>
</td>
<td width="90%" style="padding-left:10px"></td>
<td align="right" nowrap>
<button id="showbtn{rand}" class="btn btn-default" click="chongkx" type="button">重新标识可培训</button>&nbsp;&nbsp;
<button class="btn btn-default" click="daochu,1" type="button">导出 <i class="icon-angle-down"></i></button>
</td>
</tr>
</table>
</div>
<div class="blank10"></div>
<div id="viewpxuser_{rand}"></div>