| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <%@ 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">
- $(document).ready(function(){
- var params="";
- loadAssetDepreciationList(params);
- });
- function loadAssetDepreciationList(params) {
- var grid = null;
- //var selectDeviceType = document.getElementById("selectDeviceType").value;
- grid = $("#assetDepreciationGrid")
- .ligerGrid(
- {
- columns : [
- {
- display : '折旧法',
- name : 'depreciation_method_name',
- width : 150
- },
- {
- display : '年折旧率',
- name : 'depreciation_year_rate',
- width : 450
- },
- {
- display : '年折旧额',
- name : 'depreciation_year_value',
- width : 380
- },
- {
- display : '操作',
- width : 135,
- isAllowHide : false,
- render : function(row) {
- var html = '<a href=\"#\" onclick=\"delAssetDepreciation('
- + row.universalid
- + ')\">删除</a> ';
- return html;
- }
- }],
- pageSize : 20,
- url : 'assetDepreciationAction.do?task=assetDepreciationList'+params
- + '&time='
- + new Date().getTime(),
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '99.9%'
- });
- $("#pageloading").hide();
- }
- function delAssetDepreciation(id){
- if (window.confirm("确定要删除吗?")){
- var param={'id':id};
- sendAjaxParam(param,"assetDepreciationAction.do?task=delAssetDepreciation",'json',delProcess);
- }
- }
- function delProcess(data){
- var msg=data.error;
- if(msg!=null){
- showAjaxError(null, data.error);
- }
- var msg2=data.success;
- if(msg2!=null){
- $.ligerDialog.success(msg2);
- }
- var params="";
- loadAssetDepreciationList(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-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 }/assetDepreciationAction.do?task=toCreate&tabid=' + getCurrentTabId());"/>
- </div>
- <div style="overflow: hidden; clear: both;">
- <div id="assetDepreciationGrid" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </BODY>
- </HTML>
|