| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <%@ 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="";
- loadAssetEntryList(params);
- });
- function loadAssetEntryList(params) {
- //var selectDeviceType = document.getElementById("selectDeviceType").value;
- grid = $("#assetEntryGrid")
- .ligerGrid(
- {
- columns : [
- {
- display : '资产名称(品名)',
- name : 'asset_name',
- width : 200
- },
- {
- display : '资产编码',
- name : 'asset_id',
- width : 120
- },
- {
- display : '规格型号',
- name : 'asset_specification_version',
- width : 120,
- render:function(row){
- var asset_specification=row.asset_specification;
- var asset_version=row.asset_version;
- if(asset_specification=="undefined"||asset_specification==undefined){
- asset_specification="";
- }
- if(asset_version=="undefined"||asset_version==undefined){
- asset_version="";
- }
- return asset_specification + " " + asset_version;
- }
- },
- {
- display : '资产分类',
- name : 'asset_type_name',
- width : 100
- },
- {
- display : '单价',
- name : 'asset_unit_price',
- width : 80
- },
- {
- display : '数量',
- name : 'asset_number',
- width : 80
- },
- {
- display : '单位',
- name : 'asset_measureunit_name',
- width : 80
- },
- {
- display : '使用部门',
- name : 'asset_use_dept',
- width : 100
- },
- {
- display : '设备责任人',
- name : 'asset_responsible_user',
- width : 100
- }],
- pageSize : 20,
- checkbox: true,
- onCheckRow : function(checked, rowdata, rowindex) {
- for ( var rowid in this.records)
- this.unselect(rowid);
- this.select(rowindex);
- },
- url : 'erpAssetEntry.do?task=assetEntryList'+params
- + '&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
- }
- function f_select() {
- var rows = grid.getCheckedRows();
- return rows;
- }
- function searchByKword(){
- var asset_search_name=$("#asset_search_name").val();
- var params="&asset_search_name="+encodeURI(encodeURI(asset_search_name));
- var asset_search_id=$("#asset_search_id").val();
- params=params+"&asset_search_id="+asset_search_id;
- var asset_search_type=$("#asset_search_type").val();
- params+="&asset_search_type="+asset_search_type;
- loadAssetEntryList(params);
- }
- </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;
- }
- </style>
- </HEAD>
- <BODY>
- <%@ include file="/include/button.jsp"%>
- <%@ include file="/include/message.jsp"%>
- <div class="container">
- <%-- <div id="title" class="form-button">
- <input type="button" class="l-button" value="新增卡片" onclick="window.parent.f_addTab(new Date().getTime(), '新增卡片', '${pageContext.request.contextPath }/erpAssetEntry.do?task=toCreate&tabid=' + getCurrentTabId());"/>
- </div> --%>
- <div class="default_search" style="margin: 0;">
- <ul class="list_search">
- <li class="title">资产名称:</li>
- <li class="text"><input type="text" name="asset_search_name"
- id="asset_search_name" value=""/></li>
- </ul>
- <ul class="list_search">
- <li class="title">资产编号:</li>
- <li class="text"><input type="text" name="asset_search_id"
- id="asset_search_id" value=""/></li>
- </ul>
- <ul class="list_search">
- <li class="title">资产类型:</li>
- <li class="text">
- <select id="asset_search_type" name="asset_search_type" style="width:130px;">
- <option value="" selected="selected"></option>
- <c:forEach items="${typeList }" var="item">
- <option value="${item.universalid }" >${item.asset_type_name }</option>
- </c:forEach>
- </select>
- </li>
- </ul>
- <input type="button" class='l-button' style="margin-top:5px;"
- name="search" onclick="searchByKword()" value="查询" />
- </div>
- <div style="overflow: hidden; clear: both;">
- <div id="assetEntryGrid" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </BODY>
- </HTML>
|