| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <%@ page contentType="text/html;charset=GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <HEAD>
- <TITLE>设备管理</TITLE>
- <link href="/shares/js/yw/master1/liger/skins/ynet/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>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.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">
- var grid = null;
- $(document).ready(function(){
- var params="";
- loadAssetStatusList(params);
- });
- function loadAssetStatusList(params) {
- //var selectDeviceType = document.getElementById("selectDeviceType").value;
- var assetid=$("#asset_id").val();
- grid = $("#assetStatusGrid")
- .ligerGrid(
- {
- columns : [
- {
- display : '状态变更时间',
- name : 'create_date',
- width : 120
- },
- {
- display : '资产名称',
- name : 'asset_name',
- width : 120
- },
- {
- display : '资产编号',
- name : 'asset_id',
- width : 120
- },
- {
- display : '现状态',
- name : 'new_asset_status_name',
- width : 120,
- render: function(rowdata){
- var html="";
- var isvalid=rowdata.new_asset_status_name;
- if(isvalid=='1'){
- html+="借出";
- }else if(isvalid=='0'){
- html+="正常";
- }
- else if(isvalid=='2'){
- html+="报废";
- }
- return html;
- }
- },
- {
- display : '变更前原状态',
- name : 'old_asset_status_name',
- width : 120,
- render: function(rowdata){
- var html="";
- var isvalid=rowdata.old_asset_status_name;
- if(isvalid=='1'){
- html+="借出";
- }else if(isvalid=='0'){
- html+="正常";
- }
- else if(isvalid=='2'){
- html+="报废";
- }
- return html;
- }
- }],
- pageSize : 20,
- url : 'erpAssetStatus.do?task=viewStatusRecord&assetid='+assetid
- + '&time='
- + new Date().getTime(),
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '99.9%'
- });
- $("#pageloading").hide();
- $(".l-grid-hd-cell-btn-checkbox").css("display", "none"); //隱藏checkAll
- }
- </script>
- <style type="text/css">
- body {
- padding: 5px;
- margin: 0;
- }
- #layout1 {
- width: 100%;
- margin: 0;
- padding: 0;
- }
- .l-button {
- margin-left: 1px;
- }
- #deptBtn {
- width: 100%;
- background: #e5ecf9;
- text-align: center;
- height: 25px;
- padding-top: 3px
- }
- .l-layout-left {
- overflow-y: auto;
- }
- .forum-container-2 tr{height: 20px;line-height: 20px}
- .forum-container-2 table{width:100%; margin-top: 0px;margin-right: 0px; margin-left: 0px; }
- </style>
- </HEAD>
- <BODY>
- <%@ include file="/include/button.jsp"%>
- <%@ include file="/include/message.jsp"%>
- <div class="container">
- <input type="hidden" id="asset_id" name="asset_id" value="${assetid }" />
- <div class="forum-container-2">
- <table border="0" cellspacing="0" cellpadding="0">
- <thead><tr><th>
- 固资年限变更记录
- </th></tr></thead>
- </table>
- </div>
- <div style="overflow: hidden; clear: both;">
- <div id="assetStatusGrid" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </BODY>
- </HTML>
|