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

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="chaxun.aspx.cs" Inherits="chaxun" %>
  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 id="Head1" 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.     <table width="130%"  border="0" cellspacing="0" cellpadding="0">
  18.   <tr>
  19.     <td><form name="form1" method="post" action="">
  20.       <table width="130%"  border="0" cellspacing="0" cellpadding="0">
  21.         <tr>
  22.           <td width="13%">
  23.            <a href="weibaofei.aspx">尚未报废资产</a> <a href="yibaofei.aspx">已经报废资产 </a></td>
  24.           </tr>
  25.       </table>
  26.     </form></td>
  27.   </tr>
  28. </table>
  29. <div align="center">
  30.   <table width="760" height="21" border="0" cellpadding="0" cellspacing="0"  background="../images/images_wc/line.gif">
  31.     <tr>
  32.       <td><div align="center"><span class="style1">资产管理系统</span></div></td>
  33.     </tr>
  34.   </table>
  35.   <table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  36.     <tr>
  37.       <td bgcolor="#FFFFFF" style="height: 75px"><table width="100%"  border="0" cellpadding="3" cellspacing="0">
  38.         <tr bgcolor="#FFFFFF">
  39.           <td width="11%"><div align="center">名称</div></td>
  40.           <td width="9%"><div align="center">使用日期</div></td>
  41.           <td width="12%"><div align="center">使用部门</div></td>
  42.           <td width="12%"><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="10%"><div align="center">安装费</div></td>
  46.           <td width="10%"><div align="center">折旧</div></td>
  47.           <td width="12%"><div align="center">净值</div></td>
  48.         </tr>
  49.         <%
  50.              
  51.             //取登陆人信息 
  52.             COM.OA.Entity.users loginuser = Session["loginuser"] as COM.OA.Entity.users;
  53.             //如果取不到跳转到登陆页
  54.             if (loginuser == null)
  55.             {
  56.                 this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
  57.             }else{
  58.             
  59.              %>
  60.          <%string tt = Session["tiaojian"].ToString();
  61.            System.Collections.Generic.IList<COM.OA.Entity.assetmanage> list = COM.OA.BLL.assetmanageBLL.Select(
  62.             string.Format("am_assetname like '%{0}%'",tt), true, false);   %>
  63.         <%foreach (COM.OA.Entity.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.department.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.       <p>
  133.           <asp:TextBox ID="txtSelect" runat="server"></asp:TextBox>
  134.           <asp:Button ID="btnSelect" runat="server" OnClick="btnSelect_Click" Text="查  询" /></p></td>
  135.     </tr>
  136.   </table>
  137. </div>
  138. <div align="center">共 <%=list.Count %><%} %> &nbsp;条记录
  139.     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  140.  <a href="javascript:history.go(-1)"><img alt="" src="../images/images_wc/back.gif" width="37" height="45" border="0"/></a>
  141.  </div>
  142.     </form>
  143. </body>
  144. </html>