zclr2.aspx
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:5k
源码类别:
OA系统
开发平台:
C#
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="zclr2.aspx.cs" Inherits="wc_zcgl_zclr2" %>
- <!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 runat="server">
- <title>资产录入</title>
- <style type="text/css">
- <!--
- .style1 { color: #FFFFFF;
- font-weight: bold;
- }
- -->
- </style>
- </head>
- <%
- //取登陆人信息
- 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{
- %>
- <%
- COM.OA.Entity.assetmanage am = new COM.OA.Entity.assetmanage();
- am = (COM.OA.Entity.assetmanage)this.Session["am"];
- %>
- <body>
- <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"><table width="99%" border="0" cellpadding="3" cellspacing="0">
- <tr>
- <td width="16%" style="height: 25px">资产名称:</td>
- <td width="84%" style="height: 25px"><%=am.am_assetname %></td>
- </tr>
- <tr>
- <td>编号:</td>
- <td><%=am.am_number %></td>
- </tr>
- <tr>
- <td>计量单位:</td>
- <td><%=am.am_measureunit%></td>
- </tr>
- <tr>
- <td>数量:</td>
- <td><%=am.am_scalar %></td>
- </tr>
- <tr>
- <td>规格型号:</td>
- <td><%=am.am_spectype %></td>
- </tr>
- <tr>
- <td>出厂编号:</td>
- <td><%=am.am_leavefactorynumber %></td>
- </tr>
- <tr>
- <td>技术证书号:</td>
- <td><%=am.am_artletternumber%></td>
- </tr>
- <tr>
- <td>购买价格:</td>
- <td><%=am.am_buyprice %></td>
- </tr>
- <tr>
- <td>安装费:</td>
- <td><%=am.am_installcost %></td>
- </tr>
- <tr>
- <td>折旧:</td>
- <td><%=am.am_depreciationcost %></td>
- </tr>
- <tr>
- <td>净值:</td>
- <td><%=am.am_betvalue %></td>
- </tr>
- <tr>
- <td>生产单位:</td>
- <td><%=am.am_production %></td>
- </tr>
- <tr>
- <td>生产年月:</td>
- <%
- string p = am.am_productiondate.ToString("yyyy-MM-dd");
- if (p.Equals("1753-01-01"))
- {%>
- <td></td>
- <%}%>
- <%else
- { %>
- <td><%=am.am_productiondate%></td>
- <%} %>
- </tr>
- <tr>
- <td>交付使用日期:</td>
- <%
- string d = am.am_deliverusetime.ToString("yyyy-MM-dd");
- if (p.Equals("1753-01-01"))
- {
- %>
- <td></td>
- <%}%>
- <%else%>
- <%{ %>
- <td><%=am.am_deliverusetime %></td>
- <%} %>
- </tr>
- <tr>
- <td>预计使用年限:</td>
- <td><%=am.am_advanceuseyear%> </td>
- </tr>
- <tr>
- <td>请购人或部门:</td>
- <td><%=am.am_buyordept%></td>
- </tr>
- <tr>
- <td>保管人或部门:</td>
- <td><%=am.am_storageordept %></td>
- </tr>
- <tr>
- <td>用途:</td>
- <td><%=am.am_purpose %></td>
- </tr>
- <tr>
- <td>使用部门:</td>
- <%
- int deptid = am.am_dept_id;
- string where = "dept_id="+deptid;
- System.Collections.Generic.IList<COM.OA.Entity.department> list = COM.OA.BLL.departmentBLL.Select(where);
- string dept=null;
- foreach(COM.OA.Entity.department l in list )
- {
- dept = l.dept_department;
- }
- %>
- <td><%=dept%></td>
- </tr>
- <tr>
- <td>使用地点:</td>
- <td><%=am.am_useaddress %></td>
- </tr>
- <tr>
- <td>使用状态:</td>
- <%
- string usestate = "未使用";
- if (am.am_usestate == 1)
- {
- usestate = "使用中";
- } %>
- <td><%=usestate %><%} %></td>
- </tr>
- <tr>
- <td> </td>
- <td><a href="zclr.aspx">继续录入</a> <a href="zcgl.aspx">管理</a></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <table width="760" height="21" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td><div align="center"></div></td>
- </tr>
- </table>
- </div>
- </body>
- </html>