zcbf.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:4k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="zcbf.aspx.cs" Inherits="wc_zcgl_zcbf" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>资产报废</title>
  6. <style type="text/css">
  7. <!--
  8. .style1 { color: #FFFFFF;
  9. font-weight: bold;
  10. }
  11. -->
  12. </style>
  13.  <link href="../css/link.css"rel="stylesheet" type="text/css"/>
  14.  <style type="text/css">
  15. <!--
  16. .style2 {
  17. color: #FF0000;
  18. font-weight: bold;
  19. }
  20. .style3 {
  21. font-size: 13px;
  22. font-weight: bold;
  23. }
  24. -->
  25.  </style>
  26. </head>
  27. <body>
  28. <%  
  29.     //取登陆人信息 
  30.     COM.OA.Entity.users loginuser = Session["loginuser"] as COM.OA.Entity.users;
  31.     //如果取不到跳转到登陆页
  32.     if (loginuser == null)
  33.     {
  34.         this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
  35.     } %>
  36.     <form id="form1" runat="server">
  37.     <div align="center">
  38.     <table width="760" height="21" border="0" cellpadding="0" cellspacing="0"  background="../images/images_wc/line.gif">
  39.     <tr>
  40.       <td><div align="center"><span class="style1">资产管理系统</span></div></td>
  41.     </tr>
  42.   </table>
  43. </div>
  44. <div align="center">
  45.   <table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  46.     <tr>
  47.       <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellpadding="3" cellspacing="0">
  48.         <tr>
  49.           <td width="7%"><div align="center" class="style3">名称</div></td>
  50.           <td width="12%"><div align="center" class="style3">是否报废</div></td>
  51.           <td width="11%"><div align="center" class="style3">使用部门</div></td>
  52.           <td width="10%"><div align="center" class="style3">生产商</div></td>
  53.           <td width="10%"><div align="center" class="style3">生产年月</div></td>
  54.           <td width="10%"><div align="center" class="style3">购买价格</div></td>
  55.           <td width="8%"><div align="center" class="style3">安装费</div></td>
  56.           <td width="8%"><div align="center" class="style3">折旧</div></td>
  57.           <td width="10%"><div align="center" class="style3">净值</div></td>
  58.         </tr>
  59.         
  60.         
  61.         <%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");%>
  62.         <%foreach (COM.OA.Entity.wc_assetmanage l in list)%>
  63.         <%{ %>
  64.         <%
  65.             string isscrap;
  66.             if (l.Am_isscrap == 1)
  67.             {
  68.                 isscrap = "否";
  69.             }
  70.             else 
  71.             {
  72.                 isscrap = "是";
  73.             }
  74.               
  75.         %>
  76.         
  77.         <tr bgcolor="#FFFFFF">
  78.           <td bgcolor="#FFFFFF"><div align="center"><a href="zcxg.aspx?xid=<%=l.Am_id %>"><%=l.Am_assetname %></a></div></td>
  79.           <td><div align="center" class="style2"><%=isscrap%></div></td>
  80.           <td><div align="center"><%=l.Dept_department %></div></td>
  81.           <td><div align="center"><%=l.Am_production%></div></td>
  82.           <%
  83.               string productiondate = l.Am_productiondate.ToString("yyyy-MM-dd");
  84.               string pr="";
  85.               if (productiondate.Equals("1753-01-01"))
  86.               {
  87.                   pr = "";
  88.               }
  89.               else
  90.               {
  91.                   pr = productiondate;
  92.               }  
  93.           %>
  94.           <td><div align="center"><%=pr%></div></td>
  95.           <td><div align="center"><%=l.Am_buyprice%></div></td>
  96.           <td><div align="center"><%=l.Am_installcost%></div></td>
  97.           <td><div align="center"><%=l.Am_depreciationcost%></div></td>
  98.           <td><div align="center"><%=l.Am_betvalue%></div></td>
  99.         </tr>
  100.         <%} %>
  101.         
  102.         
  103.       </table></td>
  104.     </tr>
  105.   </table>
  106. </div>
  107. <div align="center"><br/>
  108. </div>
  109. <div align="center">共 <%=list.Count %> &nbsp;条记录
  110.     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  111.  <a href="javascript:history.go(-1)"><img alt="" src="../images/images_wc/back.gif" width="37" height="45" border="0"/></a>
  112.  </div>
  113.     </form>
  114. </body>
  115. </html>