| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>领用详单</title>
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="/shares/css/yw/master1/reset.css" rel="stylesheet"
- type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/page.js"></script>
- <script type="text/javascript" src="/shares/js/yw/master1/common.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function () {
-
- $("#createdatebegin").ligerDateEditor({
- labelWidth : 128,
- labelAlign : 'right',
- showTime : false
- });
- $("#createdateend").ligerDateEditor({
- labelWidth : 128,
- labelAlign : 'right'
- });
-
- search();
- });
- function deleteRow(obj)
- {
- if(confirm("确定要删除?")){
- $.ajax({
- type: "POST", //使用post方法访问后台
- url: "${pageContext.request.contextPath }/MTApplianceAction.do?task=del&appliance_id="+obj, //要访问的后台地址
- success: function (data) {
- $.ligerDialog.success('删除成功!');
- search();
- }
- });
- }
- }
- function search(){
- var s = "";
- var createdatebegin = document.getElementById("createdatebegin");//创建开始时间
- var createdateend = document.getElementById("createdateend");//创建结束时间
-
- if(createdatebegin.value != "" && typeof(createdatebegin.value) != "undefined" ){
- s += "&createdatebegin=" + encodeURI(encodeURI(createdatebegin.value));
- }
- if(createdateend.value != "" && typeof(createdateend.value) != "undefined" ){
- s += "&createdateend=" + encodeURI(encodeURI(createdateend.value));
- }
- searchByKword(s);
- }
- function searchByKword(s){
- var p = $("#p").val();
- var pSize = getPize();
-
- var param={"p":p,"pSize":pSize};
-
- sendAsyncAjax(param, "MTApplianceInfoAction.do?task=borrowInfo&time=" + new Date().getTime()+s, "json", function(data) {
- var num = data.Total;
- page(num,pSize,p);
-
- var documentReceiveList = data.Rows;
- var item_name = $('#contentDiv');
- $(item_name).empty();//初始化table,清空table
- var html = '';
- if(documentReceiveList.length == 0){
- html+= '<div class="tr_cont_new mar4 f5_new">';
- html+= ' <div class="wdrw_tiao_new bn1 fl"></div>';
- html+= ' <div class="tr_rw_d_new fl b11">';
- html+= '<p >没有查询到相关信息……</p>';
- html+= '</div></div>';
- }else{
- var j=0;
- for (var i = 0; i < documentReceiveList.length; i++)
- {
- var arr = documentReceiveList[i];
- var bdiv=1;
- bdiv=1+j;
-
- if(j<7){j++}else{j=0;};
-
- html+= '<div class="tr_cont_new mar4 f5_new">';
- html+= ' <div class="wdrw_tiao_new bn'+bdiv+' fl"></div>';
- html+= ' <div class="tr_rw_d_new fl">';
- html+= '<p><img src="/shares/images/master1/rw_ico_menu.png" width="17" height="15" />【领用物品名称】 '+arr.appliance_name+'(领用数量:'+ arr.appliance_info_count ;
- html +=' 领用日期:'+arr.appliance_info_create_date+'</p><p class="mar5">领用部门:'+arr.groupname+' 领用人:'+arr.name+' </p>';
-
- html+= '</div>';
-
- html+= ' <div class="tr_rw_btn_new fr">';
-
- html+= ' </div>';
- html+= '</div>';
- }
- }
-
- $(item_name).html(html);
-
- });
- }
- </script>
- </head>
- <body>
- <form action="ApplianceInfoAction.do" method="post" target="_blank">
- <input type="hidden" id="task" name="task" value="printBorrowInfo">
-
- <div class="tc_b">
- <div id="left" style="float:left;width:100%;">
-
- <div class="tc_r">
- <div class="tr_con_new b5 f4">
- <div class="fl f4"><img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" /> 领用详单</div>
- <div class="tr_con_span fr">
- <div class="fl s_test">领用日期:</div>
- <div class="s_int fl"><input class="s_int" id="createdatebegin" name="createdatebegin" type="text" /></div>
- <div style="width:20px;" class="fl s_test1">至</div>
- <div class="s_int fl"><input class="s_int" id="createdateend" name="createdateend" type="text" /> </div>
- <input class="s_btn fl" title="查询" onclick="search();" type="button" />
- <input class="s_btn_p fl" title="打印" value="" type="submit" />
- </div>
- </div><div class="tr_right_bg">
- <div id="contentDiv"></div>
- <jsp:include page="/yw/master1/page.jsp">
- <jsp:param name="functionName" value="search"/>
- </jsp:include> </div>
- </div></div><%@ include file="/yw/master1_oa/appliance/leftAppliance.jsp"%>
- </div></form>
- </body>
- </html>
|