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

OA系统

开发平台:

C#

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