信呼OA版本v2.3.8
This commit is contained in:
5
webmain/main/book/bookAction.php
Normal file
5
webmain/main/book/bookAction.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
class bookClassAction extends Action
|
||||
{
|
||||
|
||||
}
|
||||
95
webmain/main/book/rock_book_borrow.php
Normal file
95
webmain/main/book/rock_book_borrow.php
Normal file
@@ -0,0 +1,95 @@
|
||||
<?php if(!defined('HOST'))die('not access');?>
|
||||
<script >
|
||||
$(document).ready(function(){
|
||||
|
||||
var modenum='bookborrow';
|
||||
var a = $('#view_{rand}').bootstable({
|
||||
tablename:modenum,celleditor:true,fanye:true,modenum:modenum,statuschange:false,
|
||||
columns:[{
|
||||
text:'借阅',dataIndex:'bookname'
|
||||
},{
|
||||
text:'借阅日期',dataIndex:'jydt',sortable:true
|
||||
},{
|
||||
text:'预计归还',dataIndex:'yjdt'
|
||||
},{
|
||||
text:'是否归返',dataIndex:'isgh',sortable:true
|
||||
},{
|
||||
text:'归还时间',dataIndex:'ghtime'
|
||||
},{
|
||||
text:'借阅人',dataIndex:'optname'
|
||||
},{
|
||||
text:'操作时间',dataIndex:'optdt'
|
||||
},{
|
||||
text:'申请日期',dataIndex:'applydt',sortable:true
|
||||
},{
|
||||
text:'状态',dataIndex:'statustext'
|
||||
}],
|
||||
itemclick:function(){
|
||||
btn(false);
|
||||
},
|
||||
beforeload:function(){
|
||||
btn(true);
|
||||
}
|
||||
});
|
||||
|
||||
function btn(bo){
|
||||
get('xiang_{rand}').disabled = bo;
|
||||
}
|
||||
|
||||
var c = {
|
||||
search:function(){
|
||||
var s=get('key_{rand}').value;
|
||||
a.setparams({
|
||||
'key':s,
|
||||
'dt':get('dt1_{rand}').value
|
||||
},true);
|
||||
},
|
||||
daochu:function(){
|
||||
a.exceldown();
|
||||
},
|
||||
view:function(){
|
||||
var d=a.changedata;
|
||||
openxiangs('图书借阅',modenum,d.id);
|
||||
},
|
||||
clickwin:function(){
|
||||
openinput('图书借阅',modenum);
|
||||
}
|
||||
};
|
||||
js.initbtn(c);
|
||||
});
|
||||
</script>
|
||||
<div>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td style="padding-right:10px">
|
||||
<button class="btn btn-primary" click="clickwin,0" type="button"><i class="icon-plus"></i> 新增</button>
|
||||
</td>
|
||||
|
||||
<td nowrap>
|
||||
<div style="width:150px" class="input-group">
|
||||
<input placeholder="借阅日期" readonly class="form-control" id="dt1_{rand}" >
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" onclick="return js.selectdate(this,'dt1_{rand}')" type="button"><i class="icon-calendar"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td style="padding-left:10px">
|
||||
<input class="form-control" style="width:200px" id="key_{rand}" placeholder="借阅/书名">
|
||||
</td>
|
||||
<td style="padding-left:10px">
|
||||
<button class="btn btn-default" click="search" type="button">搜索</button>
|
||||
</td>
|
||||
<td style="padding-left:10px" width="90%">
|
||||
|
||||
|
||||
</td>
|
||||
<td align="right" nowrap>
|
||||
<button class="btn btn-default" id="xiang_{rand}" click="view" disabled type="button">详情</button>
|
||||
<button class="btn btn-default" click="daochu,1" type="button">导出</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="blank10"></div>
|
||||
<div id="view_{rand}"></div>
|
||||
110
webmain/main/book/rock_book_list.php
Normal file
110
webmain/main/book/rock_book_list.php
Normal file
@@ -0,0 +1,110 @@
|
||||
<?php if(!defined('HOST'))die('not access');?>
|
||||
<script >
|
||||
$(document).ready(function(){
|
||||
|
||||
var modenum = 'book';
|
||||
var a = $('#view_{rand}').bootstable({
|
||||
tablename:modenum,celleditor:true,autoLoad:false,modenum:modenum,
|
||||
columns:[{
|
||||
text:'书名',dataIndex:'title',editor:false,align:'left'
|
||||
},{
|
||||
text:'编号',dataIndex:'num'
|
||||
},{
|
||||
text:'作者',dataIndex:'author'
|
||||
},{
|
||||
text:'出版社',dataIndex:'chuban'
|
||||
},{
|
||||
text:'出版日期',dataIndex:'cbdt'
|
||||
},{
|
||||
text:'数量',dataIndex:'shul'
|
||||
},{
|
||||
text:'存放位置',dataIndex:'weizhi'
|
||||
},{
|
||||
text:'操作时间',dataIndex:'optdt'
|
||||
},{
|
||||
text:'',notexcel:true,dataIndex:'opt',renderer:function(v,d,oi){
|
||||
return '<a href="javascript:;" onclick="openxiangs(\'图书\',\''+modenum+'\','+d.id+')">查看</a>';
|
||||
}
|
||||
}],
|
||||
itemclick:function(){
|
||||
get('del_{rand}').disabled=false;
|
||||
},
|
||||
beforeload:function(){
|
||||
get('del_{rand}').disabled=true;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var c = {
|
||||
|
||||
del:function(){
|
||||
a.del();
|
||||
},
|
||||
adds:function(){
|
||||
openinput('图书',modenum);
|
||||
},
|
||||
search:function(){
|
||||
var s=get('key_{rand}').value;
|
||||
a.setparams({key:s},true);
|
||||
},
|
||||
daochu:function(){
|
||||
a.exceldown();
|
||||
},
|
||||
daoru:function(){
|
||||
managelistbook = a;
|
||||
addtabs({num:'daorubook',url:'flow,input,daoru,modenum=book',icons:'plus',name:'导入图书'});
|
||||
},
|
||||
|
||||
mobj:a,
|
||||
title:'图书分类',
|
||||
stable:'book',
|
||||
optionview:'optionview_{rand}',
|
||||
optionnum:'booktype',
|
||||
rand:'{rand}'
|
||||
};
|
||||
|
||||
var c = new optionclass(c);
|
||||
|
||||
js.initbtn(c);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<table width="100%">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
<div style="border:1px #cccccc solid;width:220px">
|
||||
<div id="optionview_{rand}" style="height:400px;overflow:auto;"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td width="10" nowrap> </td>
|
||||
<td width="95%">
|
||||
<div>
|
||||
<table width="100%"><tr>
|
||||
<td align="left" nowrap>
|
||||
<button class="btn btn-primary" click="adds" type="button"><i class="icon-plus"></i> 新增</button>
|
||||
<button class="btn btn-default" click="allshow" type="button">所有图书</button>
|
||||
|
||||
</td>
|
||||
|
||||
<td style="padding-left:10px">
|
||||
<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%">
|
||||
<span id="megss{rand}"></span>
|
||||
</td>
|
||||
<td nowrap align="right">
|
||||
<button class="btn btn-default" click="daoru" type="button">导入图书</button>
|
||||
<button class="btn btn-default" click="daochu" type="button">导出</button>
|
||||
<button class="btn btn-danger" id="del_{rand}" disabled click="del" type="button"><i class="icon-trash"></i> 删除</button>
|
||||
</td>
|
||||
</tr></table>
|
||||
</div>
|
||||
<div class="blank10"></div>
|
||||
<div id="view_{rand}"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
Reference in New Issue
Block a user