⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chaxun.aspx

📁 OA自动化办公系统,就是OA自动化办公系统
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="chaxun.aspx.cs" Inherits="chaxun" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>资产列表</title>
    <style type="text/css">
<!--
.style1 {	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>


 <link href="../css/link.css"rel="stylesheet" type="text/css" />
</head>
<body>

    <form id="form1" runat="server">
    <table width="130%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><form name="form1" method="post" action="">
      <table width="130%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="13%">
           <a href="weibaofei.aspx">尚未报废资产</a> <a href="yibaofei.aspx">已经报废资产 </a></td>
          </tr>
      </table>
    </form></td>
  </tr>
</table>
<div align="center">
  <table width="760" height="21" border="0" cellpadding="0" cellspacing="0"  background="../images/images_wc/line.gif">
    <tr>
      <td><div align="center"><span class="style1">资产管理系统</span></div></td>
    </tr>
  </table>
  <table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
    <tr>
      <td bgcolor="#FFFFFF" style="height: 75px"><table width="100%"  border="0" cellpadding="3" cellspacing="0">
        <tr bgcolor="#FFFFFF">
          <td width="11%"><div align="center">名称</div></td>
          <td width="9%"><div align="center">使用日期</div></td>
          <td width="12%"><div align="center">使用部门</div></td>
          <td width="12%"><div align="center">生产商</div></td>
          <td width="12%"><div align="center">生产年月</div></td>
          <td width="12%"><div align="center">购买价格</div></td>
          <td width="10%"><div align="center">安装费</div></td>
          <td width="10%"><div align="center">折旧</div></td>
          <td width="12%"><div align="center">净值</div></td>
        </tr>
        <%
             
            //取登陆人信息 

            COM.OA.Entity.users loginuser = Session["loginuser"] as COM.OA.Entity.users;
            //如果取不到跳转到登陆页
            if (loginuser == null)
            {
                this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
            }else{
            
             %>
         <%string tt = Session["tiaojian"].ToString();
           System.Collections.Generic.IList<COM.OA.Entity.assetmanage> list = COM.OA.BLL.assetmanageBLL.Select(
            string.Format("am_assetname like '%{0}%'",tt), true, false);   %>
        <%foreach (COM.OA.Entity.assetmanage l in list) %>
        <%{ %>
        <tr bgcolor="#FFFFFF">
        	<%                       
                        int uid=loginuser.u_id;
                        string where = "op_u_id='{0}'";
                        where = string.Format(where, uid);
                        System.Collections.Generic.IList<COM.OA.Entity.operate> lists = COM.OA.BLL.operateBLL.Select(where);
                        if (lists.Count != 0)
                        {
                            COM.OA.Entity.operate op = lists[0];
                            if (op.op_pop_id > 1)
                            {
                                %>
                               <td bgcolor="#FFFFFF"><div align="center"><a href="zcxg.aspx?xid=<%=l.am_id %>"><%=l.am_assetname%></a></div></td>
                                <%
                            }
                            else
                            {
                                %>
                               <td bgcolor="#FFFFFF"><div align="center"><%=l.am_assetname%></div></td>
                                <%
                            }
                        }
                        else
                        {
                            %>
                               <td bgcolor="#FFFFFF"><div align="center"><%=l.am_assetname%></div></td>
                                <%
                        }
                        	    	    
				    %>
        
          
          
         <%
              string deliverusetim = l.am_deliverusetime.ToString("yyyy-MM-dd");
              string del="";
              if (deliverusetim.Equals("1753-01-01"))
              {
                  del = "";
              }
              else
              {
                  del = deliverusetim;
              }  
          %>
          <td><div align="center"><%=del%></div></td>
          <td><div align="center"><%=l.department.dept_department %></div></td>
          <td><div align="center"><%=l.am_production%></div></td>
          <% 
              string date = "";
              if (l.am_productiondate.ToString("yyyy-MM-dd").Equals("1753-01-01"))
              {
                  date = "";
              }
              else 
              {
                  date = l.am_productiondate.ToString("yyyy-MM-dd");
              }
          %>
          <td><div align="center"><%=date%></div></td>
          <td><div align="center"><%=l.am_buyprice%></div></td>
          <td><div align="center"><%=l.am_installcost%></div></td>
          <td><div align="center"><%=l.am_depreciationcost%></div></td>
          <td><div align="center"><%=l.am_betvalue %></div></td>
        </tr>
        <%} %>    
      </table>
      <p>
          <asp:TextBox ID="txtSelect" runat="server"></asp:TextBox>
          <asp:Button ID="btnSelect" runat="server" OnClick="btnSelect_Click" Text="查  询" /></p></td>
    </tr>
  </table>
</div>
<div align="center">共 <%=list.Count %><%} %> &nbsp;条记录
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href="javascript:history.go(-1)"><img alt="" src="../images/images_wc/back.gif" width="37" height="45" border="0"/></a>
 </div>

    </form>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -