| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- <%@ 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>
- <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/ligerDateEditor.js" type="text/javascript"></script>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <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/js/yw/yongfu/common.js"></script>
- <script type="text/javascript">
- var grid = null;
- function deleteRow(obj)
- {
- if(confirm("确定要删除该项目吗?")){
- window.parent.f_addTab(new Date().getTime(), '删除项目', '${pageContext.request.contextPath }/ProjectAction.do?task=delProject&universalid='+obj+'&tabid=' + getCurrentTabId());
- }
- }
- $(function () {
- grid = $("#maingrid4").ligerGrid({
- columns: [
- { display: '建设单位', name: 'project_build_unit', width: 150},
- { display: '工程名称', name: 'project_name', width: 150},
- { display: '合同造价(万元)', name: 'project_cost', width: 150},
- { display: '工程地点', name: 'project_place', width: 70},
- { display: '合同签订日期', name: 'project_contract_date', width: 100
- ,render: function (row) {
- var html = subDate(row.project_contract_date);
- return html;
- }
- },
- { display: '项目经理', name: 'project_pm', width: 130},
- { display: '安全员', name: 'project_safety', width: 70},
- { display: '项目责任人', name: 'record_duty_man', width: 100},
- { display: '联系电话', name: 'project_tel', width: 100},
- { display: '结构质式', name: 'project_structure', width: 100},
- { display: '建筑面积', name: 'project_area', width: 70},
- { display: '工期', name: 'project_time', width: 50},
- { display: '开工时间', name: 'project_start_date', width: 100
- ,render: function (row) {
- var html = subDate(row.project_start_date);
- return html;
- }
- },
- { display: '项目状态', name: 'project_type', width: 70},
- { display: '竣工时间', name: 'project_end_date', width: 100
- ,render: function (row) {
- var html = subDate(row.project_end_date);
- return html;
- }
- },
- { display: '工程质量', name: 'project_quality', width: 100},
- { display: '结算造价(万元)', name: 'project_pay_cost', width: 100},
- { display: '所属分公司', name: 'branch_company', width: 100},
- { display: '备注', name: 'project_remark', width: 100},
- { display: '审核状态', name: 'project_status', width: 100
- ,render: function (row) {
- var html = "";
- if(row.project_status == '0'){
- html += "<font color='blue'>未审核</font>";
- }
- if(row.project_status == '2'){
- html += "<font color='red'>驳回</font>";
- }
- return html;
- }
- },
- { display: '审批意见', name: 'project_audit_idea', width: 100},
- {
- display: '操作', isAllowHide: false,width: 300,
- render: function (row)
- {
- var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/ProjectAction.do?task=toEditProject&universalid='
- + row.universalid + '&tabid=' + getCurrentTabId()+'\');\">修改</a> ';
- html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'档案管理\', \'${pageContext.request.contextPath }/ProjectAction.do?task=toProjectRecordMgr&universalid='
- + row.universalid + '&tabid=' + getCurrentTabId()+'\');\">档案管理</a> ';
- html += '<a href=\"#\" onclick=\"deleteRow('+row.universalid+')\">删除</a> ';
- return html;
- }
- }
- ],
- fixedCellHeight: false, //是否固定单元格的高度
- pageSize:20,
- url: 'ProjectAction.do?task=listNotApproveProject&project_status=0,2&time=' + new Date().getTime(),
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- enabledSort: true, //是否允许排序
- width: '99.8%',
- height: '99%'
-
- });
- $("#pageloading").hide();
-
- $("#createdatebegin").ligerDateEditor({
- labelWidth : 100,
- labelAlign : 'right',
- initValue : ''
- });
- $("#createdateend").ligerDateEditor({
- labelWidth : 100,
- labelAlign : 'right',
- initValue : ''
- });
- });
- function searchByKword(){
- var project_build_unit = document.getElementById("project_build_unit");
- var createdatebegin = document.getElementById("createdatebegin");
- var createdateend = document.getElementById("createdateend");
- var project_type = document.getElementById("project_type");
- var branch_company = document.getElementById("branch_company");
- var project_name = document.getElementById("project_name");
- var project_pm = document.getElementById("project_pm");
- var s = "";
- if(project_build_unit.value != "" && typeof(project_build_unit.value) != "undefined" ){
- s += "&project_build_unit=" + encodeURI(encodeURI(project_build_unit.value));
- }
- if(createdatebegin.value != "" && typeof(createdatebegin.value) != "undefined" ){
- s += "&createdatebegin=" + createdatebegin.value;
- }
- if(createdateend.value != "" && typeof(createdateend.value) != "undefined" ){
- s += "&createdateend=" + createdateend.value;
- }
- if(project_type.value != "" && typeof(project_type.value) != "undefined" ){
- s += "&project_type=" + project_type.value;
- }
- if(branch_company.value != "" && typeof(branch_company.value) != "undefined" ){
- s += "&branch_company=" + encodeURI(encodeURI(branch_company.value));
- }
- if(project_name.value != "" && typeof(project_name.value) != "undefined" ){
- s += "&project_name=" + encodeURI(encodeURI(project_name.value));
- }
- if(project_pm.value != "" && typeof(project_pm.value) != "undefined" ){
- s += "&project_pm=" + encodeURI(encodeURI(project_pm.value));
- }
- grid.set("newPage", "1");
- grid = $("#maingrid4").ligerGrid({
- columns: [
- { display: '建设单位', name: 'project_build_unit', width: 150},
- { display: '工程名称', name: 'project_name', width: 150},
- { display: '合同造价(万元)', name: 'project_cost', width: 150},
- { display: '工程地点', name: 'project_place', width: 70},
- { display: '合同签订日期', name: 'project_contract_date', width: 100
- ,render: function (row) {
- var html = subDate(row.project_contract_date);
- return html;
- }
- },
- { display: '项目经理', name: 'project_pm', width: 130},
- { display: '安全员', name: 'project_safety', width: 70},
- { display: '项目责任人', name: 'record_duty_man', width: 100},
- { display: '联系电话', name: 'project_tel', width: 100},
- { display: '结构质式', name: 'project_structure', width: 100},
- { display: '建筑面积', name: 'project_area', width: 70},
- { display: '工期', name: 'project_time', width: 50},
- { display: '开工时间', name: 'project_start_date', width: 100
- ,render: function (row) {
- var html = subDate(row.project_start_date);
- return html;
- }
- },
- { display: '项目状态', name: 'project_type', width: 70},
- { display: '竣工时间', name: 'project_end_date', width: 100
- ,render: function (row) {
- var html = subDate(row.project_end_date);
- return html;
- }
- },
- { display: '工程质量', name: 'project_quality', width: 100},
- { display: '结算造价(万元)', name: 'project_pay_cost', width: 100},
- { display: '所属分公司', name: 'branch_company', width: 100},
- { display: '备注', name: 'project_remark', width: 100},
- { display: '审核状态', name: 'project_status', width: 100
- ,render: function (row) {
- var html = "";
- if(row.project_status == '0'){
- html += "<font color='blue'>未审核</font>";
- }
- if(row.project_status == '2'){
- html += "<font color='red'>驳回</font>";
- }
- return html;
- }
- },
- { display: '审批意见', name: 'project_audit_idea', width: 100},
- {
- display: '操作', isAllowHide: false,width: 300,
- render: function (row)
- {
- var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/ProjectAction.do?task=toEditProject&universalid='
- + row.universalid + '&tabid=' + getCurrentTabId()+'\');\">修改</a> ';
- html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'档案管理\', \'${pageContext.request.contextPath }/ProjectAction.do?task=toProjectRecordMgr&universalid='
- + row.universalid + '&tabid=' + getCurrentTabId()+'\');\">档案管理</a> ';
- html += '<a href=\"#\" onclick=\"deleteRow('+row.universalid+')\">删除</a> ';
- return html;
- }
- }
- ],
- fixedCellHeight: false, //是否固定单元格的高度
- pageSize:20,
- url: 'ProjectAction.do?task=listNotApproveProject&project_status=0,2&time=' + new Date().getTime()+s,
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- enabledSort: true, //是否允许排序
- width: '99.8%',
- height: '99%'
- });
- $("#pageloading").hide();
- }
- function searchAll() {
- $("#project_build_unit").val("");
- $("#createdatebegin").val("");
- $("#createdateend").val("");
- $("#project_type").val("");
- $("#branch_company").val("");
- $("#project_name").val("");
- $("#project_pm").val("");
- searchByKword();
- }
- </script>
- </head>
- <body >
- <div class="container-layout">
- <div id="title" class="form-button">
- <input type="button" class="l-button" value="新增项目" onclick="window.parent.f_addTab(new Date().getTime(), '新增项目', '${pageContext.request.contextPath }/ProjectAction.do?task=toCreateProject&tabid=' + getCurrentTabId());"/>
- </div>
- <form action="ProjectAction.do" method="post" target="_blank" name="temp">
- <div class="default_search" >
- <ul class="list_search">
- <li class="title">建设单位:</li>
- <li class="text">
- <input type="text" name="project_build_unit" id="project_build_unit" >
- </li>
- </ul>
- <ul class="list_search" style="width: 380px;">
- <li class="title" style="width: 80px;">开工时间:</li>
- <li class="text" style="width: 135px;">
- <input type="text" id="createdatebegin" name="createdatebegin" style="width: 130px;" />
- <li class="title" style="width: 15px;">至
- </li>
- <li class="text" style="width: 135px;">
- <input type="text" id="createdateend" name="createdateend" style="width: 130px;" />
- </li>
- </ul>
- <ul class="list_search" >
- <li class="title">项目状态:</li>
- <li class="text">
- <select name="project_type" id="project_type">
- <option value="">==请选择==</option>
- <c:forEach var="list" items="${listProjectType}">
- <option value="${list.data_id }">${list.value_name }</option>
- </c:forEach>
- </select>
- </li>
- </ul>
- <ul class="list_search" >
- <li class="title">所属分公司:</li>
- <li class="text">
- <input type="text" name="branch_company" id="branch_company" >
- </li>
- </ul>
- <ul class="list_search" >
- <li class="title">工程名称:</li>
- <li class="text">
- <input type="text" name="project_name" id="project_name" >
- </li>
- </ul>
- <ul class="list_search" >
- <li class="title">项目经理:</li>
- <li class="text">
- <input type="text" name="project_pm" id="project_pm" >
- </li>
- </ul>
- <ul>
- <li class="search-button" >
- <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
- <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
- </li>
- </ul>
- </div>
- </form>
- <div style="clear: both;">
- <div id="maingrid4" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </body>
- </html>
|