| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <!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>
- <!-- <script type="text/javascript" src="/shares/js/yw/ams/flow/amsflow.js"></script> -->
- <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 src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.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 type="text/javascript" src="/shares/js/yw/master1/searchBox.js"></script>
- <script type="text/javascript">
- $(function() {
- $("#starttime").ligerDateEditor({
- showTime : true,
- width : 120,
- labelAlign : 'left'
- });
- $("#endtime").ligerDateEditor({
- showTime : true,
- width : 120,
- labelAlign : 'left'
- });
- initList();
- });
- function searchByKword(s) {
- var p = $("#p").val();
- var pSize = getPize();
- var param = {
- "p" : p,
- "pSize" : pSize
- };
- // url: 'amsFlowAction.do?task=all&time=' + new Date().getTime(),
- sendAsyncAjax(
- param,
- "mtAmsFlowAction.do?task=all" + s + "&time="
- + new Date().getTime(),
- "json",
- function(data) {
- var num = data.Total;
- page(num, pSize, p);
- var archiveList = data.Rows;
- var item_name = $('#contentDiv');
- $(item_name).empty();//初始化table,清空table
- var html = '';
- if (archiveList.length == 0) {
- html = notquery();
- } else {
- var j = 0;
- for (var i = 0; i < archiveList.length; i++) {
- var arr = archiveList[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" />';
- html += '【' + arr.modelId.typeId.typeName + '】';
- html += ' ' + arr.insName;
- html += " 流程状态:" + arr.state.dataName;
- html += ' </p>';
- html += '<p class="mar5">发起人:'
- + arr.creator.username;
- html += " 发起时间:";
- html += arr.createdate;
- html += '</p></div>';
- html += ' <div class="tr_rw_btn_new fr">';
- html += '<div class="div_btn"><input type="button" onclick="view('
- + arr.insId
- + ')" class="btn_c" value="查 看" /></div>';
- html += ' </div>';
- html += '</div>';
- }
- }
- $(item_name).html(html);
- });
- }
- function subDate(d) {
- var s = "";
- if (d != null && d.length > 10) {
- return s = d.substring(0, 10);
- } else {
- return s;
- }
- ;
- }
- function view(insId) {
- // html = '<a href=\"#\" onclick=\"openODialog(\'${pageContext.request.contextPath }/amsFlowAction.do?task=toInfo&insId='
- // + row.insId + '&tabid='+getCurrentTabId()+'&dialogId='+
- // dialogId+'\', \'查看流程信息\', \''+dialogId+'\');\">查看</a> ';
- item('mtAmsFlowAction.do?task=toInfo&insId=' + insId);
- }
- function initList() {
- var s = "";
- var insName = searchBox.getValue();
- var state = $("#state").val();
- var starttime = $("#starttime").val();
- var endtime = $("#endtime").val();
- if (insName != "" && typeof (insName) != "undefined") {
- s += "&insName=" + encodeURI(encodeURI(insName));
- }
- if (state != "" && typeof (state) != "undefined") {
- s += "&state=" + state;
- }
- if (starttime != "" && typeof (starttime) != "undefined") {
- s += "&starttime=" + starttime;
- }
- if (endtime != "" && typeof (endtime) != "undefined") {
- s += "&endtime=" + endtime;
- }
- // grid.set("parms", [ {
- // name : "insName",
- // value : encodeURI($("#insName").val())
- // }, {
- // name : "starttime",
- // value : $("#starttime").val()
- // }, {
- // name : "endtime",
- // value : $("#endtime").val()
- // }, {
- // name : "modelId",
- // value : $("#modelId").val()
- // }, {
- // name : "name",
- // value : encodeURI($("#name").val())
- // }, {
- // name : "state",
- // value : encodeURI($("#state").val())
- // }]);
- searchByKword(s);
- }
- </script>
- </head>
- <body>
- <div class="tc_b">
- <div id="left" style="float: left; width: 100%;">
- <div class="tc_r">
- <div class="tr_con b5 f4">
- <div class="fl f4">
- <img src="/shares/images/master1/wdrw_ico.png" width="25" height="31" /> 流程查询
- </div>
- <div class="fl ">
- <div class="fl mar2">流程状态:</div>
- <div class="fl mar2 mar6">
- <select name="state" id="state" style="width: 130px;">
- <option value="" selected="selected">全部</option>
- <option value="0">撤销</option>
- <option value="1">流转中</option>
- <option value="2">完成</option>
- </select>
- </div>
- <div class="fl mar2">发起时间:</div>
- <div class="fl mar2 mar6">
- <input type="text" id="starttime" name="starttime" style="width: 130px;">
- </div>
- <div class="fl mar2">至</div>
- <div class="fl mar2 mar6">
- <input type="text" id="endtime" name="endtime" style="width: 130px;">
- </div>
- </div>
- <div class="div_ck_k fr">
- <input class="div_cx fl" name="insName" id="insName" type="text" />
- <input class="btn_ck fl" type="button" onclick="initList();" id="button" />
- </div>
- </div>
- <div class="tr_right_bg fl">
- <div id="contentDiv"></div>
- <jsp:include page="/yw/master1/page.jsp">
- <jsp:param name="functionName" value="initList" />
- <jsp:param name="p" value="1" />
- <jsp:param name="pSize" value="7" />
- </jsp:include>
- </div>
- </div>
- </div><%@ include file="/yw/master1_ams/borrowMgr/leftBorrowMgr.jsp"%>
- </div>
- </body>
- </html>
|