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

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="weibaofei.aspx.cs" Inherits="wc_zcgl_weibaofei" %>
  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><a href="weibaofei.aspx">尚未报废资产</a>   <a href="yibaofei.aspx">已经报废资产 </a></td>
  24.           </tr>
  25.       </table>
  26.     </form></td>
  27.   </tr>
  28. </table>
  29. </div>
  30. <div align="center">
  31.   <table width="760" height="21" border="0" cellpadding="0" cellspacing="0"  background="../images/images_wc/line.gif">
  32.     <tr>
  33.       <td><div align="center"><span class="style1">资产管理系统</span></div></td>
  34.     </tr>
  35.   </table>
  36.   <table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  37.     <tr>
  38.       <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellpadding="3" cellspacing="0">
  39.         <tr bgcolor="#FFFFFF">
  40.           <td width="11%"><div align="center">名称</div></td>
  41.           <td width="9%"><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="12%"><div align="center">购买价格</div></td>
  46.           <td width="10%"><div align="center">安装费</div></td>
  47.           <td width="10%"><div align="center">折旧</div></td>
  48.           <td width="12%"><div align="center">净值</div></td>
  49.         </tr>
  50.             <%
  51.              
  52.             //取登陆人信息 
  53.             COM.OA.Entity.users loginuser = Session["loginuser"] as COM.OA.Entity.users;
  54.             //如果取不到跳转到登陆页
  55.             if (loginuser == null)
  56.             {
  57.                 this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
  58.             }else{
  59.             
  60.              %>
  61.         <%           
  62.             System.Data.SqlClient.SqlParameter parameter = new System.Data.SqlClient.SqlParameter("@i", 1);
  63.         %>
  64.         <%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_isscrap", parameter);%>
  65.         <%foreach (COM.OA.Entity.wc_assetmanage l in list)%>
  66.         <%{ %>
  67.         <tr bgcolor="#FFFFFF">        
  68.           <%                       
  69.                         int uid=loginuser.u_id;
  70.                         string where = "op_u_id='{0}'";
  71.                         where = string.Format(where, uid);
  72.                         System.Collections.Generic.IList<COM.OA.Entity.operate> lists = COM.OA.BLL.operateBLL.Select(where);
  73.                         if (lists.Count != 0)
  74.                         {
  75.                             COM.OA.Entity.operate op = lists[0];
  76.                             if (op.op_pop_id > 1)
  77.                             {
  78.                                 %>
  79.                                <td bgcolor="#FFFFFF"><div align="center"><a href="zcxg.aspx?xid=<%=l.Am_id %>"><%=l.Am_assetname%></a></div></td>
  80.                                 <%
  81.                             }
  82.                             else
  83.                             {
  84.                                 %>
  85.                                <td bgcolor="#FFFFFF"><div align="center"><%=l.Am_assetname%></div></td>
  86.                                 <%
  87.                             }
  88.                         }
  89.                         else
  90.                         {
  91.                             %>
  92.                                <td bgcolor="#FFFFFF"><div align="center"><%=l.Am_assetname%></div></td>
  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.           <td><div align="center"><%=l.Am_production%></div></td>
  114.           <%
  115.               string productiondate = l.Am_productiondate.ToString("yyyy-MM-dd");
  116.               string pr="";
  117.               if (productiondate.Equals("1753-01-01"))
  118.               {
  119.                   pr = "";
  120.               }
  121.               else
  122.               {
  123.                   pr = productiondate;
  124.               }  
  125.           %>
  126.           <td><div align="center"><%=pr%></div></td>
  127.           <td><div align="center"><%=l.Am_buyprice%></div></td>
  128.           <td><div align="center"><%=l.Am_installcost%></div></td>
  129.           <td><div align="center"><%=l.Am_depreciationcost%></div></td>
  130.         </tr>
  131.         <%} %>    
  132.       </table>
  133.       <p></p></td>
  134.     </tr>
  135.   </table>
  136. </div>
  137. <div align="center">共 <%=list.Count %> &nbsp;<%} %>条记录
  138.     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  139.  <a href="javascript:history.go(-1)"><img alt="" src="../images/images_wc/back.gif" width="37" height="45" border="0"/></a></div>
  140.     </form>
  141. </body>
  142. </html>