<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
String Id = Common.convertNull(request.getParameter("Id"));
%>
<html>
<head>
<title>资产浏览</title>
<link href="../../../css/font.css" rel="stylesheet" type="text/css">
<script src="../../../js/date.js"></script>
<script src="../../../js/check.js"></script>
<link rel="stylesheet" type="text/css" href="../../../js/2k3Grid.css">
<link rel="stylesheet" type="text/css" href="../../../js/2k3Menu.css">
<link rel="stylesheet" type="text/css" href="../../../js/2k3Dialog.css">
<script >
function check(operate,Id) {
	form1.operate.value = operate;
   //资产变更
	if (operate == "PropertyUseEditChange") {
		form1.action = "/servlet/PropertyUseManage?operate=PropertyUseEditChange&Id=" + Id;
	}
   //资产报废
   	if (operate == "PropertyUseEditDestory") {
		form1.action = "/servlet/PropertyUseManage?operate=PropertyUseEditDestory&Id=" + Id;
	}
   //资产维修
   	if (operate == "PropertyUseEditMain") {
		form1.action = "/servlet/PropertyUseManage?operate=PropertyUseEditMain&Id=" + Id;
	}
	form1.submit();
}
</script>
<style type="text/css">
.aselect
{
   width:156px;
}
</style>

<style type="text/css">
	
	.td1{
		width: 30%;
	}
table#csstable{
	border-top:#D8E9FE 1px solid;
	border-left:#D8E9FE 1px solid;
}
table#csstable td{
	border-bottom:#D8E9FE 1px solid;
	border-right:#D8E9FE 1px solid;
}
table#csstable #bottomcss td{
	border-bottom:#D8E9FE 0px solid;
}
</style>
</head>
<body onload="setValue();">
<form name="form1" method="post" action="/servlet/PropertyUseManage">
<input type="hidden" name="operate" value=""/>	
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" class="box">
  <tr>
    <td valign="top"><table width="100%" height="23"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="25%" background="../../../images/tab_search_01.jpg"><table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="6%" align="right"><img src="../../../images/little_red.jpg" width="12" height="12"></td>
                <td width="94%" class="font12b">&nbsp;<b>资产详情</b></td>
              </tr>
          </table></td>
          <td width="82%" background="../../../images/tab_search_03.jpg"><img src="../../../images/tab_search_02.jpg" width="12" height="23"></td>
        </tr>
      </table> 
		<%
		HashFmlBuf buf = (HashFmlBuf) request.getAttribute("useInfo");
		if (buf != null) {
			int rowcount = buf.getRowCount();
	   %>
	<div style="width: 99%; height: 390px; overflow: auto;margin-left: 5px;">
			<div id="myGrid" class="2k3Grid" borderWidth="0" contextMenu="mnuGridContextMenu" altRowColor="oldLace">
				<div class="gridHead">
					<div class="gridRow">
						<span width="5px" style="text-align: center;">序号</span>
						<span width="25px">操作功能</span>
						<span width="18px">资产编号</span>
						<span>资产种类</span> 
						<span>资产品牌</span>
						<span>资产型号</span>
						<span>资产SN码</span> 
					</div>
				</div>
				<div class="gridBody">
				  <%
						for (int i = 0; i < rowcount; i++) {
						    String tmpbrand=buf.fget("property_brand",i);
							if (tmpbrand.equals("1")) {
								tmpbrand = "lenovo(联想)";
							} else if(tmpbrand.equals("2")) {
								tmpbrand = "ASUS(华硕)";
							} else if(tmpbrand.equals("3")) {
								tmpbrand = "HP(惠普)";
							}else if(tmpbrand.equals("4")) {
								tmpbrand="DELL(戴尔)";
							}else if(tmpbrand.equals("5")) {
								tmpbrand="Acer(宏基)";
							}else if(tmpbrand.equals("6")) {
								tmpbrand="Toshiba(东芝)";
							}else if(tmpbrand.equals("7")) {
								tmpbrand="SONY(索尼)";
							}else if(tmpbrand.equals("8")) {
								tmpbrand="Samsung(三星)";
							}else if(tmpbrand.equals("9")) {
								tmpbrand="ThinkPad(联想)";
							}else if(tmpbrand.equals("10")) {
								tmpbrand="清华同方";
							}else if(tmpbrand.equals("11")) {
								tmpbrand="Alienware";
							}else if(tmpbrand.equals("12")) {
								tmpbrand="Apple(苹果)";
							}else if(tmpbrand.equals("13")) {
								tmpbrand="FUJITSU(富士通)";
							}else if(tmpbrand.equals("14")) {
								tmpbrand="GIGABYTE(技嘉)";
							}else if(tmpbrand.equals("15")) {
								tmpbrand="HEDY(七喜)";
							}else if(tmpbrand.equals("16")) {
								tmpbrand="BenQ(明基)";
							}else if(tmpbrand.equals("17")) {
								tmpbrand="Founder(方正)";
							}else if(tmpbrand.equals("18")) {
								tmpbrand="LG";
							}else if(tmpbrand.equals("19")) {
								tmpbrand="Great Wall(长城)";
							}else if(tmpbrand.equals("20")) {
								tmpbrand="Intel";
							}else if(tmpbrand.equals("21")) {
								tmpbrand="典籍";
							}else if(tmpbrand.equals("22")) {
								tmpbrand="DELUX(多彩)";
							}
							
					%>
					<div class="gridRow">
						<span width="5px" style="text-align: center;"><%=i+1 %></span>
						<span width="25px">
						  <input type="button"  name="button2" value="变更" onclick="check('PropertyUseEditChange','<%=buf.fget("id", i)%>');"  class="box_button" />
						&nbsp;&nbsp;
						<input type="button"  name="button2" value="报废" onclick="check('PropertyUseEditDestory','<%=buf.fget("id", i)%>');"  class="box_button" />
						&nbsp;&nbsp;
						<!--<input type="button"  name="button2" value="维修" onclick="check('PropertyUseEditMain','<%=buf.fget("id", i)%>');"  class="box_button" /> -->
						</span>
						<span width="18px"><%=buf.fget("id", i)%></span> 
						<span><%=buf.fget("property_name", i)%></span> 
						<span><%=tmpbrand%></span> 
						<span><%=buf.fget("property_no", i)%></span> 
						<span><%=buf.fget("property_sn", i)%></span>
					</div>
					<%
						}
					%>
				</div>
			</div>
		</div>
		<tag:PageLinkTag operate="showPropertyDetail" scope="request" width="90%" align="center" />
   <%
		}
   %>
    <div style="text-align: center; height: 30px;line-height: 30px;margin-top: 5px;">
    <input type="button" name="button2" value=" 返回 " class="box_button" onclick="window.history.back(-1);"/></div>
	</td>
  </tr>
</table>
</form>
</body>
</html>