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

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="zclb.aspx.cs" Inherits="zclb" %>
  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. </head>
  15. <body>
  16.     <form id="form1" runat="server">
  17.     <div align="center">
  18.     <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  19.   <tr>
  20.     <td><form name="form1" method="post" action="">
  21.       <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  22.         <tr>
  23.           <td width="13%">
  24.            <a href="weibaofei.aspx">尚未报废资产</a> <a href="yibaofei.aspx">已经报废资产 </a></td>
  25.           </tr>
  26.       </table>
  27.     </form></td>
  28.   </tr>
  29. </table>
  30. </div>
  31. <div align="center">
  32.   <table width="760" height="21" border="0" cellpadding="0" cellspacing="0"  background="../images/images_wc/line.gif">
  33.     <tr>
  34.       <td><div align="center"><span class="style1">资产管理系统</span></div></td>
  35.     </tr>
  36.   </table>
  37.   <table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  38.     <tr>
  39.       <td bgcolor="#FFFFFF" style="height: 75px"><table width="100%"  border="0" cellpadding="3" cellspacing="0">
  40.         <tr bgcolor="#FFFFFF">
  41.           <td width="11%"><div align="center">名称</div></td>
  42.           <td width="9%"><div align="center">使用日期</div></td>
  43.           <td width="12%"><div align="center">使用部门</div></td>
  44.           <td width="12%"><div align="center">生产商</div></td>
  45.           <td width="12%"><div align="center">生产年月</div></td>
  46.           <td width="12%"><div align="center">购买价格</div></td>
  47.           <td width="10%"><div align="center">安装费</div></td>
  48.           <td width="10%"><div align="center">折旧</div></td>
  49.           <td width="12%"><div align="center">净值</div></td>
  50.         </tr>
  51.         <%
  52.              
  53.             //取登陆人信息 
  54.             COM.OA.Entity.users loginuser = Session["loginuser"] as COM.OA.Entity.users;
  55.             //如果取不到跳转到登陆页
  56.             if (loginuser == null)
  57.             {
  58.                 this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
  59.             }else{
  60.             
  61.              %>
  62.         <%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");%>
  63.         <%foreach (COM.OA.Entity.wc_assetmanage l in list)%>
  64.         <%{ %>
  65.         <tr bgcolor="#FFFFFF">
  66.          <%                       
  67.                         int uid=loginuser.u_id;
  68.                         string where = "op_u_id='{0}'";
  69.                         where = string.Format(where, uid);
  70.                         System.Collections.Generic.IList<COM.OA.Entity.operate> lists = COM.OA.BLL.operateBLL.Select(where);
  71.                         if (lists.Count != 0)
  72.                         {
  73.                             COM.OA.Entity.operate op = lists[0];
  74.                             if (op.op_pop_id > 1)
  75.                             {
  76.                                 %>
  77.                                <td bgcolor="#FFFFFF"><div align="center"><a href="zcxg.aspx?xid=<%=l.Am_id %>"><%=l.Am_assetname%></a></div></td>
  78.                                 <%
  79.                             }
  80.                             else
  81.                             {
  82.                                 %>
  83.                                <td bgcolor="#FFFFFF"><div align="center"><%=l.Am_assetname%></div></td>
  84.                                 <%
  85.                             }
  86.                         }
  87.                         else
  88.                         {
  89.                             %>
  90.                                <td bgcolor="#FFFFFF"><div align="center"><%=l.Am_assetname%></div></td>
  91.                                 <%
  92.                         }
  93.                                   
  94.     %>
  95.         
  96.           
  97.           
  98.          <%
  99.               string deliverusetim = l.Am_deliverusetime.ToString("yyyy-MM-dd");
  100.               string del="";
  101.               if (deliverusetim.Equals("1753-01-01"))
  102.               {
  103.                   del = "";
  104.               }
  105.               else
  106.               {
  107.                   del = deliverusetim;
  108.               }  
  109.           %>
  110.           <td><div align="center"><%=del%></div></td>
  111.           <td><div align="center"><%=l.Dept_department %></div></td>
  112.           <td><div align="center"><%=l.Am_production%></div></td>
  113.           <% 
  114.               string date = "";
  115.               if (l.Am_productiondate.ToString("yyyy-MM-dd").Equals("1753-01-01"))
  116.               {
  117.                   date = "";
  118.               }
  119.               else 
  120.               {
  121.                   date = l.Am_productiondate.ToString("yyyy-MM-dd");
  122.               }
  123.           %>
  124.           <td><div align="center"><%=date%></div></td>
  125.           <td><div align="center"><%=l.Am_buyprice%></div></td>
  126.           <td><div align="center"><%=l.Am_installcost%></div></td>
  127.           <td><div align="center"><%=l.Am_depreciationcost%></div></td>
  128.           <td><div align="center"><%=l.Am_betvalue %></div></td>
  129.         </tr>
  130.         <%} %>    
  131.       </table>
  132.     </tr>
  133.   </table>
  134. </div>
  135. <div align="center">共 <%=list.Count %><%} %> &nbsp;条记录
  136.     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  137.  <a href="javascript:history.go(-1)"><img alt="" src="../images/images_wc/back.gif" width="37" height="45" border="0"/></a>
  138.  </div>
  139.     </form>
  140. </body>
  141. </html>