zcbf.aspx
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:4k
源码类别:
OA系统
开发平台:
C#
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="zcbf.aspx.cs" Inherits="wc_zcgl_zcbf" %>
- <!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>
- <style type="text/css">
- <!--
- .style1 { color: #FFFFFF;
- font-weight: bold;
- }
- -->
- </style>
- <link href="../css/link.css"rel="stylesheet" type="text/css"/>
- <style type="text/css">
- <!--
- .style2 {
- color: #FF0000;
- font-weight: bold;
- }
- .style3 {
- font-size: 13px;
- font-weight: bold;
- }
- -->
- </style>
- </head>
- <body>
- <%
- //取登陆人信息
- COM.OA.Entity.users loginuser = Session["loginuser"] as COM.OA.Entity.users;
- //如果取不到跳转到登陆页
- if (loginuser == null)
- {
- this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
- } %>
- <form id="form1" runat="server">
- <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">
- <tr>
- <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="0">
- <tr>
- <td width="7%"><div align="center" class="style3">名称</div></td>
- <td width="12%"><div align="center" class="style3">是否报废</div></td>
- <td width="11%"><div align="center" class="style3">使用部门</div></td>
- <td width="10%"><div align="center" class="style3">生产商</div></td>
- <td width="10%"><div align="center" class="style3">生产年月</div></td>
- <td width="10%"><div align="center" class="style3">购买价格</div></td>
- <td width="8%"><div align="center" class="style3">安装费</div></td>
- <td width="8%"><div align="center" class="style3">折旧</div></td>
- <td width="10%"><div align="center" class="style3">净值</div></td>
- </tr>
- <%System.Collections.Generic.IList<COM.OA.Entity.wc_assetmanage> list = COM.OA.BLL.BLLGeneric.Select<COM.OA.Entity.wc_assetmanage>(System.Data.CommandType.StoredProcedure, "wc_assetmanage");%>
- <%foreach (COM.OA.Entity.wc_assetmanage l in list)%>
- <%{ %>
- <%
- string isscrap;
- if (l.Am_isscrap == 1)
- {
- isscrap = "否";
- }
- else
- {
- isscrap = "是";
- }
- %>
- <tr bgcolor="#FFFFFF">
- <td bgcolor="#FFFFFF"><div align="center"><a href="zcxg.aspx?xid=<%=l.Am_id %>"><%=l.Am_assetname %></a></div></td>
- <td><div align="center" class="style2"><%=isscrap%></div></td>
- <td><div align="center"><%=l.Dept_department %></div></td>
- <td><div align="center"><%=l.Am_production%></div></td>
- <%
- string productiondate = l.Am_productiondate.ToString("yyyy-MM-dd");
- string pr="";
- if (productiondate.Equals("1753-01-01"))
- {
- pr = "";
- }
- else
- {
- pr = productiondate;
- }
- %>
- <td><div align="center"><%=pr%></div></td>
- <td><div align="center"><%=l.Am_buyprice%></div></td>
- <td><div align="center"><%=l.Am_installcost%></div></td>
- <td><div align="center"><%=l.Am_depreciationcost%></div></td>
- <td><div align="center"><%=l.Am_betvalue%></div></td>
- </tr>
- <%} %>
- </table></td>
- </tr>
- </table>
- </div>
- <div align="center"><br/>
- </div>
- <div align="center">共 <%=list.Count %> 条记录
-
- <a href="javascript:history.go(-1)"><img alt="" src="../images/images_wc/back.gif" width="37" height="45" border="0"/></a>
- </div>
- </form>
- </body>
- </html>