| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303 |
- <%@ 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="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.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/plugins/ligerGrid.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/datePicker/WdatePicker.js"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <!-- 选择合同里程碑 -->
- <script type="text/javascript" src="/shares/js/yw/fm/common/chooseContractMilestone.js"></script>
- <script type="text/javascript">
- var grid = null;
- $(function() {
- initTargetGrid();
- });
- function initTargetGrid(params) {
- var columns = [
- {
- display : '单号',
- name : 'income_plan_number',
- width : 100
- // ,
- // render:function(row,index){
- // var html = '<a href=\"#\" onclick=\"viewPlan('+ row.universalid + ')\">'+"<font color=blue >"+row.income_plan_number+"</font>"+'</a> ';
- // return html;
- // }
- }, {
- display : '创建人',
- name : 'name',
- width : 100
- }, {
- display : '交款单位',
- name : 'pay_unit',
- width : 100
- }, {
- display : '项目名称',
- name : 'project_name',
- width : 130
- },{
- display : '合同编号',
- name : 'contract_number',
- width : 140
- },{
- display : '金额¥',
- name : 'total_amount_lower',
-
- width : 100
-
- }, {
- display : '是否开票',
- name : 'is_bill_name',
- width : 80,
- render : function (row){
- if(row.is_bill_name=='否')
- return "<font color=black>"+row.is_bill_name+"</font>";
- else
- return "<font color=green>"+row.is_bill_name+"</font>";
- }
- },{
- display : '开票时间',
- name : 'bill_date',
- width : 120
- }, {
- display : '审核状态',
- name : 'audit_status',
- width : 100,
- render : function (row){
- if(row.audit_status=="4"){
- return row.audit_status_name;
- }else{
- var html = '<a href=\"#\" onclick=\"viewflow('+ row.flow_ins_id + ')\"><font color=blue>'+row.audit_status_name+'</font></a> ';
- return html;
- }
-
- }
- }
-
- ];
- columns
- .push({
- display : '操作',
- width : 100,
- isAllowHide : false,
- render : function(row) {
-
- var html = '<a href=\"#\" onclick=\"viewMyIncomePlan('+ row.universalid + ')\"><font color=blue>查看</font></a> ';
- return html;
- }
- });
- grid = $("#maingrid4")
- .ligerGrid(
- {
- columns : columns,
- pageSize : 20,
- url : 'remoteTestAction.do?task=getTestFlowList&time=' + new Date().getTime() + params,
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '99%'
- });
- $("#pageloading").hide();
- $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
- }
- function viewflow(insId){
- var url="${pageContext.request.contextPath}/workFlowAction.do?task=viewflow&insId="+insId+"&tabid="+stripscript(getCurrentTabId());
- openODialog(url,"查看流程信息");
- }
- function openODialog(owurl, name) {
- oDialog = openTopDialog({
- height : $("body", window.top.document).height() - 50,
- width : $("body", window.top.document).width() - 50,
- url : owurl,
- showMax : false,
- showToggle : false,
- showMin : false,
- isResize : false,
- modal : false,
- title : name,
- allowClose : true
- });
- }
- function closeODialog() {
- oDialog.close();
- }
- /**
- * js过滤特殊字符
- * @param s
- * @returns {String}
- */
- function stripscript(s) {
- var pattern = new RegExp("[&]");
- var rs = "";
- for (var i = 0; i < s.length; i++) {
- rs = rs + s.substr(i, 1).replace(pattern, '_');
- }
- return rs;
- }
- //我的收入计划查询
- function searchByKword() {
- var s = "";
- var income_plan_number = $("#income_plan_number").val();//单号
- if (income_plan_number != "" && typeof (income_plan_number) != "undefined") {
- s += "&income_plan_number=" + income_plan_number ;
- }
- var pay_unit = $("#pay_unit").val();//交款单位单位
- if (pay_unit != "" && typeof (pay_unit) != "undefined") {
- s += "&pay_unit=" + encodeURI(encodeURI(pay_unit));
- }
- var project_name = $("#project_name_3").val(); //项目名称id
- // alert(project_name)
- if (project_name != "" && typeof (project_name) != "undefined") {
- s += "&project_name=" + encodeURI(encodeURI(project_name));
- }
-
- var contract_number = $("#contract_number").val();//合同编号
- if (contract_number != "" && typeof (contract_number != "undefined")) {
- s += "&contract_number=" + contract_number;
- }
- var is_bill = $("#is_bill").val();//是否开票
- if (is_bill != "" && typeof (is_bill) != "undefined") {
- s += "&is_bill=" + is_bill;
- }
- var audit_status = $("#audit_status").val();//状态
- if (audit_status != "" && typeof (audit_status != "undefined") ){
- s += "&audit_status=" + audit_status;
- }
- grid.set("newPage","1");
- initTargetGrid(s);
- }
- //清除所有收入计划
- function searchAll() {
- $("#income_plan_number").val("");
- $("#pay_unit").val("");
- $("#project_name_3").val("");
- $("#contract_number").val("");
- $("#is_bill").val("");
- $("#audit_status").val("");
- initTargetGrid();
- }
- function f_select() {
- var rows = grid.getCheckedRows();
- return rows;
- }
-
- //查看收入计划信息
- function viewMyIncomePlan(universalid){
- // alert(universalid)
- addTab('viewMyIncomePlan' + getCurrentTabId(), '查看收入计划信息', '${pageContext.request.contextPath }/fmIncomePlanAction.do?task=viewMyIncomePlan&universalid='
- + universalid + '&tabid=' + getCurrentTabId(),true,true);
- }
-
-
- </script>
- </head>
- <body>
- <%@ include file="/include/message.jsp"%>
- <div class="container-layout">
- <div id="title" class="form-button">
- <input type="button" class="l-button" value="关闭" onclick="closeWindow();" style="width: 90px"/>
- </div>
- <div class="default_search" style="margin: 0;">
- <div>
- <ul class="list_search">
- <li class="title"> 单号:</li>
- <li class="text"><input type="text" name="income_plan_number" id="income_plan_number" style="width:160px">
- </li>
- </ul>
- <ul class="list_search">
- <li class="title">交款单位:</li>
- <li class="text"><input type="text" name="pay_unit" id="pay_unit" style="width:160px">
- </li>
- </ul>
- <ul style="width: 400px;">
- <li class="title"> 项目名称:</li>
- <li style="vertical-align:middle;">
- <input type="hidden" id="project_id_3" name="incomePlan.project_id" value="" />
- <input style="width: 150px;" type="text" id="project_name_3" name="incomePlan.project_name" value="" />
- <input id="btn_suppliers" type="button" class="l-button" value="请选择"
- onclick="chooseContractMilestone({milestone_id:'milestone_id',status_name:'status_name','project_id':'project_id_3','project_name':'project_name_3','contract_id':'contract_id_3','contract_name':'contract_name','contract_number':'contract_number_3','trade_money':'trade_money'});" />
- </li>
- </ul>
-
- <!-- <ul class="list_search"> -->
- <!-- <li class="title"> </li> -->
- <!-- <li class="text"> -->
- <!-- </li> -->
- <!-- </ul> -->
- <ul class="list_search" >
- <li class="title">合同编号:</li>
- <li class="text"><input type="text" name="contract_number" id="contract_number" style="width:160px">
- </li>
- </ul>
-
- </div>
- <div>
- <ul class="list_search" >
- <li class="title"> 是否开票:</li>
- <li class="text">
- <select id="is_bill" name="is_bill" style="width:168px;">
- <option value="" selected="selected">-请选择-</option>
- <c:forEach items="${isBillList}" var="item">
- <option
- <c:if test="${item.dvalue eq requestScope.incomPlan.is_bill}">
- selected="selected"
- </c:if>
- value="${item.dvalue }" >
- ${item.dname }
- </option>
- </c:forEach>
- </select>
- </li>
- </ul>
- <ul class="list_search">
- <li class="title">审核状态:</li>
- <li class="text">
- <select id="audit_status" name="audit_status" style="width:155px;">
- <option value="" selected="selected">-请选择-</option>
- <c:forEach items="${statusList}" var="item">
- <option value="${item.dvalue }" >${item.dname}</option>
- </c:forEach>
- </select>
- </li>
- </ul>
- <ul>
- <li class="search-button">
-
- <input style="width:100px" type="button" class='l-button'
- name="search" onclick="searchAll()" value="清除查询条件" />
- <input type="button" class='l-button'
- name="search" onclick="searchByKword()" value="查询" style="margin-left:30px;" />
- </li>
-
-
- </ul>
-
- </div>
-
- </div>
- <div style="clear:both;"></div>
- <div id="searchbar">
- <div style="overflow: hidden; clear: both;">
- <div id="maingrid4" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </div>
- </body>
- </html>
|