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

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="zcxg.aspx.cs" Inherits="wc_zcgl_zcxg" %>
  2. <%@ Register Assembly="WebDate" Namespace="WebDate" TagPrefix="cc1" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" >
  5. <head id="Head1" runat="server">
  6.     <title>资产录入</title>
  7. <script language="JavaScript" type="text/javascript">
  8. <!--
  9. function check() 
  10. {
  11.     var confirm = false;
  12.     if (document.Form1.txtAssetname.value=="") 
  13.     {
  14.         alert ("请输入资产名称!")
  15.         document.Form1.txtAssetname.focus()
  16.         return false
  17.     }
  18.     if (document.Form1.txtNumber.value=="") 
  19.     {
  20.     alert ("请输入编号!")
  21.     document.Form1.txtNumber.focus()
  22.     return false
  23.     }
  24.     
  25.     if (document.Form1.txtMeasureunit.value=="")
  26.     {
  27.         alert ("请输入计量单位!")
  28.         document.Form1.txtMeasureunit.focus()
  29.         return false
  30.     }
  31.     
  32.     if (document.Form1.txtScalar.value=="") 
  33.     {
  34.         alert ("请输入数量!")
  35.         document.Form1.txtScalar.focus()
  36.         return false
  37.     }
  38.     else if (document.Form1.txtScalar.value !="") 
  39.     {
  40.         Stature = document.Form1.txtScalar.value;
  41.         if(isNaN(Stature))
  42.         {
  43.         alert("数量必须是数字!")
  44.         document.Form1.txtScalar.value = "";
  45.         document.Form1.txtScalar.focus()
  46.         return false;
  47.         }
  48.         
  49.     }
  50.     if (document.Form1.txtBuyPrice.value=="") 
  51.     {
  52.         alert ("请输入购买价格!")
  53.         document.Form1.txtBuyPrice.focus()
  54.         return false
  55.     }
  56.     else if (document.Form1.txtBuyPrice.value !="") 
  57.     {
  58.         var BuyPrice = document.Form1.txtBuyPrice.value;
  59.         if(isNaN(BuyPrice))
  60.         {
  61.         alert("购买价格必须是数字!")
  62.         document.Form1.txtBuyPrice.value = "";
  63.         document.Form1.txtBuyPrice.focus()
  64.         return false;
  65.         }
  66.         
  67.     }
  68.     if (document.Form1.txtInstallcost.value != "") 
  69.     {        
  70.         var cost = document.Form1.txtInstallcost.value;
  71.         if(isNaN(cost))
  72.         {
  73.         alert("安装费必须是数字!")
  74.         document.Form1.txtInstallcost.value = "";
  75.         document.Form1.txtInstallcost.focus()
  76.          return false;
  77.         }
  78.     }
  79.     
  80.     if (document.Form1.txtDepreciationcost.value != "") 
  81.     {
  82.         var cost = document.Form1.txtDepreciationcost.value;
  83.         if(isNaN(cost))
  84.         {
  85.         alert("折旧费必须是数字!")
  86.         document.Form1.txtDepreciationcost.value = "";
  87.         document.Form1.txtDepreciationcost.focus()
  88.         return false;
  89.         }
  90.     }
  91.     
  92.     if (document.Form1.txtBetvalue.value != "") 
  93.     {
  94.         value = document.Form1.txtBetvalue.value;
  95.         if(isNaN(value))
  96.         {
  97.         alert("净值必须是数字!")
  98.         document.Form1.txtBetvalue.value = "";
  99.         document.Form1.txtBetvalue.focus()
  100.         return false;
  101.         }
  102.     }
  103.     
  104.     if (document.Form1.txtAdvanceuseyear.value != "") 
  105.     {
  106.         year = document.Form1.txtAdvanceuseyear.value;
  107.         if(isNaN(year))
  108.         {
  109.         alert("使用年限必须是数字!")
  110.         document.Form1.txtAdvanceuseyear.value = "";
  111.         document.Form1.txtAdvanceuseyear.focus()
  112.         return false;
  113.         }
  114.     }
  115.     
  116.     if (document.Form1.txtBuyordept.value=="") 
  117.     {
  118.         alert ("请输请购人或部门!")
  119.         document.Form1.txtBuyordept.value=="";
  120.         document.Form1.txtBuyordept.focus();
  121.         return false
  122.     }
  123.     
  124.     if (document.Form1.txtStorageordept.value=="") 
  125.     {
  126.         alert ("请输保管人或部门!")
  127.         document.Form1.txtStorageordept.value=="";
  128.         document.Form1.txtStorageordept.focus();
  129.         return false
  130.     }
  131.      if (document.Form1.txtPurpose.value=="") 
  132.     {
  133.         alert ("请输入用途!")
  134.         document.Form1.txtPurpose.value=="";
  135.         document.Form1.txtPurpose.focus();
  136.         return false
  137.     }
  138.      if (document.Form1.txtUseaddress.value=="") 
  139.     {
  140.         alert ("请输入使用地点!")
  141.         document.Form1.txtUseaddress.value=="";
  142.         document.Form1.txtUseaddress.focus();
  143.         return false
  144.     }
  145.     
  146.      if (document.Form1.txtBookerid.value=="") 
  147.     {
  148.         alert ("请输入录入人!")
  149.         document.Form1.txtBookerid.value=="";
  150.         document.Form1.txtBookerid.focus();
  151.         return false
  152.     }
  153. }
  154. -->
  155. </script>
  156. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
  157. <style type="text/css">
  158. <!--
  159. .style1 {
  160. color: #FFFFFF;
  161. font-weight: bold;
  162. }
  163. -->
  164. </style>
  165. <link href="../css/link.css"rel="stylesheet" type="text/css"/>
  166. <link href="../css/input.css" rel="stylesheet" type="text/css"/>
  167. <style type="text/css">
  168. <!--
  169. .style2 {color: #FFFFFF}
  170. -->
  171. </style>
  172. </head>
  173. <body>
  174.     <div align="center">
  175.   <table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../images/images_wc/line.gif">
  176.     <tr>
  177.       <td><div align="center"><span class="style1">资产修改系统</span></div></td>
  178.     </tr>
  179.   </table>
  180.   <table width="760"  border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  181.     <tr>
  182.       <td height="119" bgcolor="#FFFFFF">
  183.       <form id="Form" name="form1" method="post" action="" onclick="return check()"  runat="server">
  184.           <div align="left">
  185.             <table width="100%"  border="0" cellpadding="3" cellspacing="0">
  186.               <tr>
  187.                 <td width="16%" style="height: 29px">资产名称:</td>
  188.                 <td width="84%" style="height: 29px">
  189.                     <asp:TextBox ID="txtAssetname" runat="server"></asp:TextBox></td>
  190.               </tr>
  191.               <tr>
  192.                 <td>编号:</td>
  193.                 <td>
  194.                     <asp:TextBox ID="txtNumber" runat="server" Enabled="False"></asp:TextBox></td>
  195.               </tr>
  196.               <tr>
  197.                 <td>计量单位:</td>
  198.                 <td>
  199.                     <asp:TextBox ID="txtMeasureunit" runat="server"></asp:TextBox></td>
  200.               </tr>
  201.               <tr>
  202.                 <td>数量:</td>
  203.                 <td>
  204.                     <asp:TextBox ID="txtScalar" runat="server"></asp:TextBox></td>
  205.               </tr>
  206.               <tr>
  207.                 <td>规格型号:</td>
  208.                 <td>
  209.                     <asp:TextBox ID="txtSpectype" runat="server"></asp:TextBox>
  210.                     &nbsp; &nbsp;&nbsp;
  211.                     (可不填)</td>
  212.               </tr>
  213.               <tr>
  214.                 <td>出厂编号:</td>
  215.                 <td>
  216.                     <asp:TextBox ID="txtLeaveFactoryNumber" runat="server"></asp:TextBox>
  217.                     &nbsp; &nbsp;&nbsp;
  218.                     (可不填)</td>
  219.               </tr>
  220.               <tr>
  221.                 <td>技术证书号:</td>
  222.                 <td>
  223.                     <asp:TextBox ID="txtArtletterNumber" runat="server"></asp:TextBox>
  224.                     &nbsp; &nbsp;&nbsp;
  225.                     (可不填)</td>
  226.               </tr>
  227.               <tr>
  228.                 <td>购买价格:</td>
  229.                 <td>
  230.                     <asp:TextBox ID="txtBuyPrice" runat="server"></asp:TextBox></td>
  231.               </tr>
  232.               <tr>
  233.                 <td>安装费:</td>
  234.                 <td>
  235.                     <asp:TextBox ID="txtInstallcost" runat="server"></asp:TextBox>
  236.                     &nbsp; &nbsp; &nbsp;(可不填)</td>
  237.               </tr>
  238.               <tr>
  239.                 <td style="height: 29px">折旧:</td>
  240.                 <td style="height: 29px">
  241.                     <asp:TextBox ID="txtDepreciationcost" runat="server"></asp:TextBox>
  242.                     &nbsp; &nbsp;&nbsp;
  243.                     (可不填)</td>
  244.               </tr>
  245.               <tr>
  246.                 <td style="height: 29px">净值:</td>
  247.                 <td style="height: 29px">
  248.                     <asp:TextBox ID="txtBetvalue" runat="server"></asp:TextBox>
  249.                     &nbsp; &nbsp;&nbsp;
  250.                     (可不填)</td>
  251.               </tr>
  252.               <tr>
  253.                 <td>生产单位:</td>
  254.                 <td>
  255.                     <asp:TextBox ID="txtProduction" runat="server"></asp:TextBox>
  256.                     &nbsp; &nbsp;&nbsp;
  257.                     (可不填)</td>
  258.               </tr>
  259.               <tr>
  260.                 <td style="height: 29px">生产年月:</td>
  261.                 <td style="height: 29px">
  262.                     <cc1:webdate id="wdproductiondate" runat="server"></cc1:webdate>
  263.                     &nbsp;(可不填)</td>
  264.               </tr>
  265.               <tr>
  266.                 <td style="height: 29px">交付使用日期:</td>
  267.                 <td style="height: 29px">
  268.                     <cc1:webdate id="wddeliverusetim" runat="server"></cc1:webdate>
  269.                     &nbsp; <span class="style4">(必填)</span></td>
  270.               </tr>
  271.               <tr>
  272.                 <td style="height: 29px">预计使用年限:</td>
  273.                 <td style="height: 29px">
  274.                     <asp:TextBox ID="txtAdvanceuseyear" runat="server"></asp:TextBox>
  275.                     &nbsp; &nbsp; &nbsp;
  276.                     (可不填)</td>
  277.               </tr>
  278.               <tr>
  279.                 <td>请购人或部门:</td>
  280.                 <td>
  281.                     <asp:TextBox ID="txtBuyordept" runat="server"></asp:TextBox></td>
  282.               </tr>
  283.               <tr>
  284.                 <td style="height: 29px">保管人或部门:</td>
  285.                 <td style="height: 29px">
  286.                     <asp:TextBox ID="txtStorageordept" runat="server"></asp:TextBox></td>
  287.               </tr>
  288.               <tr>
  289.                 <td>用途:</td>
  290.                 <td>
  291.                     <asp:TextBox ID="txtPurpose" runat="server"></asp:TextBox></td>
  292.               </tr>
  293.               <tr>
  294.                 <td style="height: 41px">使用部门:</td>
  295.                 <td style="height: 41px">
  296.                     <asp:DropDownList ID="ddDept" runat="server" DataSourceID="SqlDataSource1"
  297.                         DataTextField="dept_department" DataValueField="dept_id">
  298.                     </asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:wc_OA_DBConnectionString9 %>"
  299.                         SelectCommand="SELECT [dept_id], [dept_department] FROM [department]"></asp:SqlDataSource>
  300.                     &nbsp;</td>
  301.               </tr>
  302.               <tr>
  303.                 <td style="height: 12px">使用地点:</td>
  304.                 <td style="height: 12px">
  305.                     <asp:TextBox ID="txtUseaddress" runat="server"></asp:TextBox></td>
  306.               </tr>
  307.               <tr>
  308.                 <td>使用状态:</td>
  309.                 <td>
  310.                     <asp:TextBox ID="txtUsestate" runat="server"></asp:TextBox>
  311.                     (可不填 使用中/未使用)</td>
  312.               </tr>
  313.               <tr>
  314.                 <td>录入人:</td>
  315.                 <td>
  316.                     <asp:TextBox ID="txtBookerid" runat="server" Enabled="False"></asp:TextBox></td>
  317.               </tr>
  318.               <tr>
  319.                 <td>是否报废:</td>
  320.                 <td>
  321.                     <asp:RadioButton ID="rbis" runat="server" GroupName="aa" Text="报废" />
  322.                     <asp:RadioButton ID="rbno" runat="server" Checked="True" GroupName="aa" Text="未报废" />
  323.                 </td>
  324.               </tr>
  325.               <tr>
  326.                 <td style="height: 79px">备注:</td>
  327.                 <td style="height: 79px">
  328.                     <asp:TextBox ID="txtRemark" runat="server" Height="84px" TextMode="MultiLine" Width="278px"></asp:TextBox>
  329.                     (可不填)</td>
  330.               </tr>
  331.               <tr>
  332.                 <td>
  333.                     <asp:TextBox ID="txtLoginid" runat="server" Visible="False" Text="1"></asp:TextBox><br />
  334.                     <asp:TextBox ID="txtName"  runat="server" Visible="False"></asp:TextBox><br />
  335.                     <asp:TextBox ID="txtBuMen" runat="server" Visible="False"></asp:TextBox><br />
  336.                     <asp:TextBox ID="txtTime"  runat="server" Visible="False"></asp:TextBox>
  337.                 </td>
  338.                 <td>
  339.                     &nbsp;<asp:Button ID="btnSubmit" runat="server" Text="提交修改" OnClick="btnSubmit_Click"  />&nbsp;&nbsp; &nbsp;
  340.                     &nbsp;&nbsp;<input type="reset" value="重  置" style="width: 58px; height: 23px" />&nbsp;&nbsp;&nbsp;&nbsp;       
  341.                     <input type="button" name="btnCancel" value="取 消" onclick="javascript:history.go(-1)"/></td>
  342.               </tr>
  343.             </table>
  344.             </div>
  345.       </form></td>
  346.     </tr>
  347.   </table>
  348.   </div>
  349. <div align="center">
  350.   <table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../images/images_wc/line1.gif">
  351.     <tr>
  352.       <td><div align="center"></div></td>
  353.     </tr>
  354.   </table>
  355. </div>
  356. <p align="center">&nbsp;</p>
  357. </body>
  358. </html>