zcxg.aspx
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:13k
源码类别:
OA系统
开发平台:
C#
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="zcxg.aspx.cs" Inherits="wc_zcgl_zcxg" %>
- <%@ Register Assembly="WebDate" Namespace="WebDate" TagPrefix="cc1" %>
- <!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>
- <script language="JavaScript" type="text/javascript">
- <!--
- function check()
- {
- var confirm = false;
- if (document.Form1.txtAssetname.value=="")
- {
- alert ("请输入资产名称!")
- document.Form1.txtAssetname.focus()
- return false
- }
- if (document.Form1.txtNumber.value=="")
- {
- alert ("请输入编号!")
- document.Form1.txtNumber.focus()
- return false
- }
- if (document.Form1.txtMeasureunit.value=="")
- {
- alert ("请输入计量单位!")
- document.Form1.txtMeasureunit.focus()
- return false
- }
- if (document.Form1.txtScalar.value=="")
- {
- alert ("请输入数量!")
- document.Form1.txtScalar.focus()
- return false
- }
- else if (document.Form1.txtScalar.value !="")
- {
- Stature = document.Form1.txtScalar.value;
- if(isNaN(Stature))
- {
- alert("数量必须是数字!")
- document.Form1.txtScalar.value = "";
- document.Form1.txtScalar.focus()
- return false;
- }
- }
- if (document.Form1.txtBuyPrice.value=="")
- {
- alert ("请输入购买价格!")
- document.Form1.txtBuyPrice.focus()
- return false
- }
- else if (document.Form1.txtBuyPrice.value !="")
- {
- var BuyPrice = document.Form1.txtBuyPrice.value;
- if(isNaN(BuyPrice))
- {
- alert("购买价格必须是数字!")
- document.Form1.txtBuyPrice.value = "";
- document.Form1.txtBuyPrice.focus()
- return false;
- }
- }
- if (document.Form1.txtInstallcost.value != "")
- {
- var cost = document.Form1.txtInstallcost.value;
- if(isNaN(cost))
- {
- alert("安装费必须是数字!")
- document.Form1.txtInstallcost.value = "";
- document.Form1.txtInstallcost.focus()
- return false;
- }
- }
- if (document.Form1.txtDepreciationcost.value != "")
- {
- var cost = document.Form1.txtDepreciationcost.value;
- if(isNaN(cost))
- {
- alert("折旧费必须是数字!")
- document.Form1.txtDepreciationcost.value = "";
- document.Form1.txtDepreciationcost.focus()
- return false;
- }
- }
- if (document.Form1.txtBetvalue.value != "")
- {
- value = document.Form1.txtBetvalue.value;
- if(isNaN(value))
- {
- alert("净值必须是数字!")
- document.Form1.txtBetvalue.value = "";
- document.Form1.txtBetvalue.focus()
- return false;
- }
- }
- if (document.Form1.txtAdvanceuseyear.value != "")
- {
- year = document.Form1.txtAdvanceuseyear.value;
- if(isNaN(year))
- {
- alert("使用年限必须是数字!")
- document.Form1.txtAdvanceuseyear.value = "";
- document.Form1.txtAdvanceuseyear.focus()
- return false;
- }
- }
- if (document.Form1.txtBuyordept.value=="")
- {
- alert ("请输请购人或部门!")
- document.Form1.txtBuyordept.value=="";
- document.Form1.txtBuyordept.focus();
- return false
- }
- if (document.Form1.txtStorageordept.value=="")
- {
- alert ("请输保管人或部门!")
- document.Form1.txtStorageordept.value=="";
- document.Form1.txtStorageordept.focus();
- return false
- }
- if (document.Form1.txtPurpose.value=="")
- {
- alert ("请输入用途!")
- document.Form1.txtPurpose.value=="";
- document.Form1.txtPurpose.focus();
- return false
- }
- if (document.Form1.txtUseaddress.value=="")
- {
- alert ("请输入使用地点!")
- document.Form1.txtUseaddress.value=="";
- document.Form1.txtUseaddress.focus();
- return false
- }
- if (document.Form1.txtBookerid.value=="")
- {
- alert ("请输入录入人!")
- document.Form1.txtBookerid.value=="";
- document.Form1.txtBookerid.focus();
- return false
- }
- }
- -->
- </script>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
- <style type="text/css">
- <!--
- .style1 {
- color: #FFFFFF;
- font-weight: bold;
- }
- -->
- </style>
- <link href="../css/link.css"rel="stylesheet" type="text/css"/>
- <link href="../css/input.css" rel="stylesheet" type="text/css"/>
- <style type="text/css">
- <!--
- .style2 {color: #FFFFFF}
- -->
- </style>
- </head>
- <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 height="119" bgcolor="#FFFFFF">
- <form id="Form" name="form1" method="post" action="" onclick="return check()" runat="server">
- <div align="left">
- <table width="100%" border="0" cellpadding="3" cellspacing="0">
- <tr>
- <td width="16%" style="height: 29px">资产名称:</td>
- <td width="84%" style="height: 29px">
- <asp:TextBox ID="txtAssetname" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td>编号:</td>
- <td>
- <asp:TextBox ID="txtNumber" runat="server" Enabled="False"></asp:TextBox></td>
- </tr>
- <tr>
- <td>计量单位:</td>
- <td>
- <asp:TextBox ID="txtMeasureunit" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td>数量:</td>
- <td>
- <asp:TextBox ID="txtScalar" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td>规格型号:</td>
- <td>
- <asp:TextBox ID="txtSpectype" runat="server"></asp:TextBox>
-
- (可不填)</td>
- </tr>
- <tr>
- <td>出厂编号:</td>
- <td>
- <asp:TextBox ID="txtLeaveFactoryNumber" runat="server"></asp:TextBox>
-
- (可不填)</td>
- </tr>
- <tr>
- <td>技术证书号:</td>
- <td>
- <asp:TextBox ID="txtArtletterNumber" runat="server"></asp:TextBox>
-
- (可不填)</td>
- </tr>
- <tr>
- <td>购买价格:</td>
- <td>
- <asp:TextBox ID="txtBuyPrice" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td>安装费:</td>
- <td>
- <asp:TextBox ID="txtInstallcost" runat="server"></asp:TextBox>
- (可不填)</td>
- </tr>
- <tr>
- <td style="height: 29px">折旧:</td>
- <td style="height: 29px">
- <asp:TextBox ID="txtDepreciationcost" runat="server"></asp:TextBox>
-
- (可不填)</td>
- </tr>
- <tr>
- <td style="height: 29px">净值:</td>
- <td style="height: 29px">
- <asp:TextBox ID="txtBetvalue" runat="server"></asp:TextBox>
-
- (可不填)</td>
- </tr>
- <tr>
- <td>生产单位:</td>
- <td>
- <asp:TextBox ID="txtProduction" runat="server"></asp:TextBox>
-
- (可不填)</td>
- </tr>
- <tr>
- <td style="height: 29px">生产年月:</td>
- <td style="height: 29px">
- <cc1:webdate id="wdproductiondate" runat="server"></cc1:webdate>
- (可不填)</td>
- </tr>
- <tr>
- <td style="height: 29px">交付使用日期:</td>
- <td style="height: 29px">
- <cc1:webdate id="wddeliverusetim" runat="server"></cc1:webdate>
- <span class="style4">(必填)</span></td>
- </tr>
- <tr>
- <td style="height: 29px">预计使用年限:</td>
- <td style="height: 29px">
- <asp:TextBox ID="txtAdvanceuseyear" runat="server"></asp:TextBox>
-
- (可不填)</td>
- </tr>
- <tr>
- <td>请购人或部门:</td>
- <td>
- <asp:TextBox ID="txtBuyordept" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td style="height: 29px">保管人或部门:</td>
- <td style="height: 29px">
- <asp:TextBox ID="txtStorageordept" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td>用途:</td>
- <td>
- <asp:TextBox ID="txtPurpose" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td style="height: 41px">使用部门:</td>
- <td style="height: 41px">
- <asp:DropDownList ID="ddDept" runat="server" DataSourceID="SqlDataSource1"
- DataTextField="dept_department" DataValueField="dept_id">
- </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:wc_OA_DBConnectionString9 %>"
- SelectCommand="SELECT [dept_id], [dept_department] FROM [department]"></asp:SqlDataSource>
- </td>
- </tr>
- <tr>
- <td style="height: 12px">使用地点:</td>
- <td style="height: 12px">
- <asp:TextBox ID="txtUseaddress" runat="server"></asp:TextBox></td>
- </tr>
- <tr>
- <td>使用状态:</td>
- <td>
- <asp:TextBox ID="txtUsestate" runat="server"></asp:TextBox>
- (可不填 使用中/未使用)</td>
- </tr>
- <tr>
- <td>录入人:</td>
- <td>
- <asp:TextBox ID="txtBookerid" runat="server" Enabled="False"></asp:TextBox></td>
- </tr>
- <tr>
- <td>是否报废:</td>
- <td>
- <asp:RadioButton ID="rbis" runat="server" GroupName="aa" Text="报废" />
- <asp:RadioButton ID="rbno" runat="server" Checked="True" GroupName="aa" Text="未报废" />
- </td>
- </tr>
- <tr>
- <td style="height: 79px">备注:</td>
- <td style="height: 79px">
- <asp:TextBox ID="txtRemark" runat="server" Height="84px" TextMode="MultiLine" Width="278px"></asp:TextBox>
- (可不填)</td>
- </tr>
- <tr>
- <td>
- <asp:TextBox ID="txtLoginid" runat="server" Visible="False" Text="1"></asp:TextBox><br />
- <asp:TextBox ID="txtName" runat="server" Visible="False"></asp:TextBox><br />
- <asp:TextBox ID="txtBuMen" runat="server" Visible="False"></asp:TextBox><br />
- <asp:TextBox ID="txtTime" runat="server" Visible="False"></asp:TextBox>
- </td>
- <td>
- <asp:Button ID="btnSubmit" runat="server" Text="提交修改" OnClick="btnSubmit_Click" />
- <input type="reset" value="重 置" style="width: 58px; height: 23px" />
- <input type="button" name="btnCancel" value="取 消" onclick="javascript:history.go(-1)"/></td>
- </tr>
- </table>
- </div>
- </form></td>
- </tr>
- </table>
- </div>
- <div align="center">
- <table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../images/images_wc/line1.gif">
- <tr>
- <td><div align="center"></div></td>
- </tr>
- </table>
- </div>
- <p align="center"> </p>
- </body>
- </html>