📄 zcgl.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="zcgl.aspx.cs" Inherits="zcgl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<link href="../css/link.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.style1 {
color: #FFFFFF;
font-weight: bold;
}
</style>
</head>
<body>
<div align="center">
<table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../images/images_wc/line.gif">
<tr>
<td><div align="center"><span class="style1">资 产 管 理 系 统</span></div></td>
</tr>
</table>
</div>
<div align="center">
<table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
<% COM.OA.Entity.users loginuser = Session["loginuser"] as COM.OA.Entity.users;
if (loginuser == null)
{
this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
}
else
{%>
<%
string page = this.Request["page"];
System.Collections.Generic.IList<COM.OA.Entity.assetmanage> ilist;
string where = "1=1";
ilist = COM.OA.BLL.assetmanageBLL.Select(where);
int count = ilist.Count;
float countd = count;
double weiy = Math.Ceiling(countd / 1);
int weiye = Int32.Parse(weiy.ToString());
int pages = 1;
int shangpage = 0;
int xiapage = 0;
if (page == null)
{
ilist = COM.OA.BLL.assetmanageBLL.Select(1, 1, where);
shangpage = 1;
xiapage = 2;
}
else
{
pages = Int32.Parse(page);
shangpage = pages - 1;
xiapage = pages + 1;
ilist = COM.OA.BLL.assetmanageBLL.Select(1, pages, where);
}
if (ilist.Count != 0)
{
foreach (COM.OA.Entity.assetmanage ass in ilist)
{
%>
<tr>
<td bgcolor="#FFFFFF"><table width="99%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td style="width: 162px">资产名称: </td>
<td width="81%"><%=ass.am_assetname%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">编号:</td>
<td><%=ass.am_number%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">计量单位:</td>
<td><%=ass.am_measureunit%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">数量:</td>
<td><%=ass.am_scalar%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">规格型号:</td>
<td><%=ass.am_spectype%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">出厂编号:</td>
<td><%=ass.am_leavefactorynumber%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">技术证书号:</td>
<td><%=ass.am_artletternumber%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">购买价格:</td>
<td><%=ass.am_buyprice%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">安装费:</td>
<%
string instal;
if (ass.am_installcost.ToString().Equals("0"))
{
instal = "";
}
else
{
instal = ass.am_installcost.ToString();
}
%>
<td><%=instal%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">折旧:</td>
<%
string cost;
if (ass.am_depreciationcost.ToString().Equals("0"))
{
cost = "";
}
else
{
cost = ass.am_depreciationcost.ToString();
}
%>
<td><%=cost%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">净值:</td>
<%
string bet;
if (ass.am_betvalue.ToString().Equals("0"))
{
bet = "";
}
else
{
bet = ass.am_betvalue.ToString();
}
%>
<td><%=bet%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">生产单位:</td>
<td><%=ass.am_production%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">生产年月:</td>
<%
string p = ass.am_productiondate.ToString("yyyy-MM-dd");
string productiondate;
if (p.Equals("1753-01-01"))
{
productiondate = "";
}
else
{
productiondate = p;
}
%>
<td><%=productiondate%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">交付使用日期:</td>
<%
string deli = ass.am_deliverusetime.ToString("yyyy-MM-dd");
string deliverusetime;
if (deli.Equals("1753-01-01"))
{
deliverusetime = "";
}
else
{
deliverusetime = deli;
}
%>
<td><%=deliverusetime%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">预计使用年限:</td>
<%
string year;
if (ass.am_advanceuseyear.ToString().Equals("0"))
{
year = "";
}
else
{
year = ass.am_advanceuseyear.ToString();
}
%>
<td><%=year%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">请购人或部门:</td>
<td><%=ass.am_leavefactorynumber%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">保管人或部门:</td>
<td><%=ass.am_storageordept%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">用途:</td>
<td><%=ass.am_purpose%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">使用部门:</td>
<%
int bumen = ass.am_dept_id;
string w = "dept_id=" + bumen;
System.Collections.Generic.IList<COM.OA.Entity.department> i = COM.OA.BLL.departmentBLL.Select(w);
string dept = "";
foreach (COM.OA.Entity.department d in i)
{
dept = d.dept_department;
}
%>
<td><%=dept%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">使用地点:</td>
<td><%=ass.am_useaddress%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">使用状态:</td>
<%
string zhuangtai = "";
int t = ass.am_usestate;
if (t == 0)
{
zhuangtai = "未使用";
}
else
{
zhuangtai = "使用中";
}
%>
<td><%=zhuangtai%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">录入人:</td>
<%
int userid = ass.am_bookerid;
string b = "u_id=" + userid;
System.Collections.Generic.IList<COM.OA.Entity.users> userilist = COM.OA.BLL.usersBLL.Select(b);
System.Collections.Generic.List<COM.OA.Entity.users> userlist = (System.Collections.Generic.List<COM.OA.Entity.users>)userilist;
COM.OA.Entity.users users = users = userlist[0];
int emid = users.u_em_id;
string emwhere = "em_id=" + emid;
System.Collections.Generic.IList<COM.OA.Entity.employee> usersilist = COM.OA.BLL.employeeBLL.Select(emwhere);
System.Collections.Generic.List<COM.OA.Entity.employee> userslist = (System.Collections.Generic.List<COM.OA.Entity.employee>)usersilist;
COM.OA.Entity.employee em = new COM.OA.Entity.employee();
em = userslist[0];
%>
<td><%=em.em_name%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">备注:</td>
<td><%=ass.am_remark%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px">是否报废:</td>
<%
int bao = ass.am_isscrap;
string baofei = "";
if (bao == 0)
{
baofei = "是";
}
else
{
baofei = "否";
}
%>
<td><span class="style2"><%=baofei%></span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td style="width: 162px; height: 102px"><input name="帐号" type="hidden" id="帐号" value="xz"/>
<input name="姓名" type="hidden" id="姓名" value="王海"/>
<input name="部门" type="hidden" id="部门" value="总经理室"/>
<input name="录入日期" type="hidden" id="录入日期" value="date()"/></td>
<td style="height: 102px"><a href ="zcxg.aspx?xid=<%=ass.am_id %>">修改</a> <a href="zcsc.aspx?id=<%=ass.am_id %>" onclick="return confirm('您确定要删除吗?')">删除</a> </td>
</tr>
<%} %>
<tr>
<td style="width: 175px; height: 21px; text-align: center;" colspan="2">
<% if (pages == 1)
{ %>
<a href="zcgl.aspx?page=1">首页</a>
<%}
else
{ %>
<a href="zcgl.aspx?page=<%=shangpage %>">上一页</a><% } %> 
<% if (pages == weiye)
{ %> <a href="zcgl.aspx?page=<%=weiye %>">尾页</a>
<% }
else
{ %> <a href="zcgl.aspx?page=<%=xiapage %>">下一页</a>
<% } %>
</td>
</tr>
<%}
}%>
</table>
</td>
</tr>
</table>
</div>
<div align="center">
<br/>
</div>
<%System.Collections.Generic.IList<COM.OA.Entity.assetmanage> jilu = COM.OA.BLL.assetmanageBLL.Select(); %>
<div align="center">共<%=jilu.Count%> 条记录 <a href="javascript:history.go(-1)"><img alt="" src="../images/images_wc/back.gif" width="37" height="45" border="0"/></a><br/>
<table border="0" width="50%" align="center">
<tr>
<td width="23%" align="center">
</td>
<td width="31%" align="center">
</td>
<td width="23%" align="center">
</td>
<td width="23%" align="center">
</td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -