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

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="zclr2.aspx.cs" Inherits="wc_zcgl_zclr2" %>
  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.     
  7. <style type="text/css">
  8. <!--
  9. .style1 { color: #FFFFFF;
  10. font-weight: bold;
  11. }
  12. -->
  13. </style>
  14. </head>
  15.  <%
  16.              
  17.             //取登陆人信息 
  18.             COM.OA.Entity.users loginuser = Session["loginuser"] as COM.OA.Entity.users;
  19.             //如果取不到跳转到登陆页
  20.             if (loginuser == null)
  21.             {
  22.                 this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
  23.             }else{
  24.             
  25.              %>
  26. <%    
  27.  COM.OA.Entity.assetmanage am = new COM.OA.Entity.assetmanage();
  28.   am = (COM.OA.Entity.assetmanage)this.Session["am"];
  29. %>
  30. <body>
  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"><table width="99%"  border="0" cellpadding="3" cellspacing="0">
  40.         <tr>
  41.           <td width="16%" style="height: 25px">资产名称:</td>
  42.           <td width="84%" style="height: 25px"><%=am.am_assetname %></td>
  43.         </tr>
  44.         <tr>
  45.           <td>编号:</td>
  46.           <td><%=am.am_number %></td>
  47.         </tr>
  48.         <tr>
  49.           <td>计量单位:</td>
  50.           <td><%=am.am_measureunit%></td>
  51.         </tr>
  52.         <tr>
  53.           <td>数量:</td>
  54.           <td><%=am.am_scalar %></td>
  55.         </tr>
  56.         <tr>
  57.           <td>规格型号:</td>
  58.           <td><%=am.am_spectype %></td>
  59.         </tr>
  60.         <tr>
  61.           <td>出厂编号:</td>
  62.           <td><%=am.am_leavefactorynumber %></td>
  63.         </tr>
  64.         <tr>
  65.           <td>技术证书号:</td>
  66.           <td><%=am.am_artletternumber%></td>
  67.         </tr>
  68.         <tr>
  69.           <td>购买价格:</td>
  70.           <td><%=am.am_buyprice %></td>
  71.         </tr>
  72.         <tr>
  73.           <td>安装费:</td>
  74.           <td><%=am.am_installcost %></td>
  75.         </tr>
  76.         <tr>
  77.           <td>折旧:</td>
  78.           <td><%=am.am_depreciationcost %></td>
  79.         </tr>
  80.         <tr>
  81.           <td>净值:</td>
  82.           <td><%=am.am_betvalue %></td>
  83.         </tr>
  84.         <tr>
  85.           <td>生产单位:</td>
  86.           <td><%=am.am_production %></td>
  87.         </tr>
  88.         <tr>
  89.           <td>生产年月:</td>
  90.             <%  
  91.                 string p = am.am_productiondate.ToString("yyyy-MM-dd");
  92.                 if (p.Equals("1753-01-01"))
  93.                 {%>
  94.                     <td></td>
  95.                 <%}%>
  96.                 <%else
  97.                 { %>
  98.                 <td><%=am.am_productiondate%></td>
  99.                 <%} %>
  100.         </tr>
  101.         <tr>
  102.           <td>交付使用日期:</td>
  103.           <%    
  104.               string d = am.am_deliverusetime.ToString("yyyy-MM-dd");
  105.               if (p.Equals("1753-01-01"))
  106.               {
  107.           %>
  108.           <td></td>
  109.           <%}%>
  110.           <%else%>
  111.           <%{ %>
  112.                 <td><%=am.am_deliverusetime %></td>
  113.           <%} %>
  114.           
  115.         </tr>
  116.         <tr>
  117.           <td>预计使用年限:</td>
  118.           <td><%=am.am_advanceuseyear%> </td>
  119.         </tr>
  120.         <tr>
  121.           <td>请购人或部门:</td>
  122.           <td><%=am.am_buyordept%></td>
  123.         </tr>
  124.         <tr>
  125.           <td>保管人或部门:</td>
  126.           <td><%=am.am_storageordept %></td>
  127.         </tr>
  128.         <tr>
  129.           <td>用途:</td>
  130.           <td><%=am.am_purpose %></td>
  131.         </tr>
  132.         <tr>
  133.           <td>使用部门:</td>
  134.           <%
  135.               int deptid = am.am_dept_id;
  136.               string where = "dept_id="+deptid;
  137.               System.Collections.Generic.IList<COM.OA.Entity.department> list = COM.OA.BLL.departmentBLL.Select(where);
  138.               string dept=null;
  139.               foreach(COM.OA.Entity.department l in list )
  140.               {
  141.                    dept =  l.dept_department;
  142.               }
  143.           %>
  144.             
  145.           <td><%=dept%></td>
  146.         </tr>
  147.         <tr>
  148.           <td>使用地点:</td>
  149.           <td><%=am.am_useaddress %></td>
  150.         </tr>
  151.         <tr>
  152.           <td>使用状态:</td>
  153.           <%
  154.               string usestate = "未使用";
  155.             if (am.am_usestate == 1)
  156.             {
  157.                 usestate = "使用中";
  158.             } %>
  159.           <td><%=usestate %><%} %></td>
  160.         </tr>
  161.         <tr>
  162.           <td>&nbsp;</td>
  163.           <td><a href="zclr.aspx">继续录入</a> <a href="zcgl.aspx">管理</a></td>
  164.         </tr>
  165.       </table></td>
  166.     </tr>
  167.   </table>
  168.     <table width="760" height="21" border="0" cellpadding="0" cellspacing="0">
  169.     <tr>
  170.       <td><div align="center"></div></td>
  171.     </tr>
  172.   </table>
  173.   
  174. </div>
  175. </body>
  176. </html>