EditAssetInOut.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:23k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Request m_request = new Request(request);
  6. int intAssetInOutID = m_request.GetInt("ID");
  7. String strOperation = m_request.GetString("OperationType");
  8. int iSysDirID = m_request.GetInt("SysDirID");
  9. if(intAssetInOutID<1)
  10. {
  11. %>
  12. <script language="JavaScript" type="text/JavaScript">
  13. alert("请选择正确的记录,修改失败!");
  14. history.back();
  15. </script>
  16. <%
  17. }
  18. else
  19. {
  20. Vector vt = AssetInOutManager.getRecordByID(intAssetInOutID);
  21. if(vt.size()==1)
  22. {
  23. %>
  24. <html>
  25. <head>
  26. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  27. <title>资产出入库管理-- GForce OA 2.0</title>
  28. <link href="/css/txt.jsp" rel="stylesheet" type="text/css">
  29. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  30. <script language="JavaScript" type="text/javascript">
  31. function checkEditAssetInOut()
  32. {
  33. <%
  34. if (strOperation.equalsIgnoreCase("BuyApply"))
  35. {
  36.   out.println("if(document.EditAssetInOut.Remark.value=="") {");
  37.   out.println("alert("请输入购买申请的资产!");");
  38.   out.println("document.EditAssetInOut.Remark.focus();");
  39.   out.println("return false;}");
  40. }else
  41. if (strOperation.equalsIgnoreCase("InStorage"))
  42. {
  43.   out.println("if(document.EditAssetInOut.AssetID.value=="") {");
  44.   out.println("alert("请输入入库的名称!");");
  45.   out.println("document.EditAssetInOut.AssetName.focus();");
  46.   out.println("return false;}");
  47. }else
  48. if (strOperation.equalsIgnoreCase("OutStorage"))
  49. {
  50.   out.println("if(document.EditAssetInOut.AssetID.value=="") {");
  51.   out.println("alert("请输入出库的名称!");");
  52.   out.println("document.EditAssetInOut.AssetName.focus();");
  53.   out.println("return false;}");
  54. }else
  55. if (strOperation.equalsIgnoreCase("UseApply"))
  56. {
  57.   out.println("if(document.EditAssetInOut.Remark.value=="") {");
  58.   out.println("alert("请输入出库申请的资产!");");
  59.   out.println("document.EditAssetInOut.Remark.focus();");
  60.   out.println("return false;}");
  61.   out.println("if(!isDate(document.EditAssetInOut.EndTime.value)) {");
  62.   out.println("alert("日期格式错误,请按照“2002-02-18”重新输入!");");
  63.   out.println("document.EditAssetInOut.EndTime.focus();");
  64.   out.println("return false;}");
  65. }
  66. %>
  67.     if(isNaN(parseInt(document.EditAssetInOut.Amount.value,10)))
  68.     {
  69.       alert("请输入正确的数量!");
  70.       document.EditAssetInOut.Amount.select();
  71.       document.EditAssetInOut.Amount.focus();
  72.       return false;
  73.     }
  74.     if(!isDate(document.EditAssetInOut.StartTime.value))
  75.      {
  76.         alert("日期格式错误,请按照“2002-02-18”重新输入!");
  77.         document.EditAssetInOut.StartTime.focus();
  78.         return false;
  79.      }
  80. <%
  81. if(strOperation.equalsIgnoreCase("UseApply")||strOperation.equalsIgnoreCase("BuyApply"))
  82.   {
  83.     %>
  84.     for(var i=0;i<parseInt(document.EditAssetInOut.ApproveLevel.selectedIndex)+1;i++)
  85.     {
  86.        eval('document.all.ApproveList' + (i+1)).style.display='';
  87.        if(parseInt(eval("document.EditAssetInOut.ApproveUserID" + (i+1)).value)<1)
  88.        {
  89.          alert("请选择第" + (i+1) + "级审批用户!");
  90.          eval("document.EditAssetInOut.PersonnelName" + (i+1)).focus();
  91.          return false;
  92.        }
  93.     }
  94.     <%
  95.   }
  96. %>
  97. }
  98. function PopUpAssetList()
  99. {
  100.   showx = event.screenX - event.offsetX;    // + deltaX;
  101.   showy = event.screenY - event.offsetY+18; // + deltaY;
  102.   var retval = window.showModalDialog("AssetListSelect.jsp?SysDirID=<%=iSysDirID%>", "","dialogWidth:480px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:yes;scrollbars:yes;Resizable=yes; ");
  103.   if(retval!=null)
  104.   {
  105.     if(retval.indexOf("|!|")>0)
  106.     {
  107.       var strtemp = retval.split("|!|");
  108.       document.EditAssetInOut.AssetName.value=strtemp[1];
  109.       document.EditAssetInOut.AssetNumber.value=strtemp[2];
  110.       document.EditAssetInOut.AssetID.value=strtemp[0];
  111.     }
  112.   }
  113. }
  114. function PopUpSelectUser(UserName,Number,UserID)
  115. {
  116.   showx = event.screenX - event.offsetX;    // + deltaX;
  117.   showy = event.screenY - event.offsetY+18; // + deltaY;
  118.   var retval = window.showModalDialog("/SelectUser1.jsp", "","dialogWidth:480px; dialogHeight:408px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; help:no; status:no; directories:yes;scrollbars:yes;Resizable=yes; ");
  119.   if(retval!=null)
  120.   {
  121.     if(retval.indexOf("|!|")>0)
  122.     {
  123.       var strtemp = retval.split("|!|");
  124.       UserName.value=strtemp[1];
  125.       Number.value=strtemp[2];
  126.       UserID.value=strtemp[0];
  127.     }
  128.   }
  129. }
  130. </script>
  131. </head>
  132. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  133. <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  134.     <tr>
  135.         <td align="center" valign="top"><p>&nbsp;</p>
  136.             <form name="EditAssetInOut" action="EditAssetInOutAction.jsp?SysDirID=<%=iSysDirID%>&OperationType=<%=strOperation%>" method="post" onSubmit="javascript:return checkEditAssetInOut();">
  137.             <table  border="0" cellpadding="0" cellspacing="0" width="90%">
  138. <!--****************************************名称*****************************************************-->
  139. <%
  140. if ((strOperation.equalsIgnoreCase("InStorage"))||(strOperation.equalsIgnoreCase("OutStorage")))
  141. {
  142.     out.println("<tr>");
  143.     out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">名称:</td>");
  144.     out.println("<td align="left" valign="middle" nowrap>");
  145.     out.println("<input name="AssetName" type="text" maxlength="40" size="37" Value=""+ AssetManager.getAssetNameByID(Integer.parseInt(((Vector)vt.get(0)).get(7).toString())) +"" onFocus="PopUpAssetList();" onDblClick="PopUpAssetList();" readonly="true">");
  146.     out.println("</td>");
  147.     out.println("</tr>");
  148.     out.println("<tr>");
  149.     out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">编号:</td>");
  150.     out.println("<td align="left" valign="middle" nowrap>");
  151.     out.println("<input name="AssetNumber" type="text" maxlength="40" size="37" Value=""+ AssetManager.getAssetNumberByID(Integer.parseInt(((Vector)vt.get(0)).get(7).toString())) +"" onFocus="PopUpAssetList();" onDblClick="PopUpAssetList();" readonly="true">");
  152.     out.println("</td>");
  153.     out.println("</tr>");
  154. }
  155. %>
  156. <!--****************************************Reamark字段*****************************************************-->
  157.                 <tr>
  158.                 <%
  159. if (strOperation.equalsIgnoreCase("BuyApply"))
  160. {
  161.   out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">申请购买资产:</td>");
  162. }else
  163. if (strOperation.equalsIgnoreCase("InStorage"))
  164. {
  165.   out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">备注:</td>");
  166. }else
  167. if (strOperation.equalsIgnoreCase("OutStorage"))
  168. {
  169.   out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">备注:</td>");
  170. }else
  171. if (strOperation.equalsIgnoreCase("UseApply"))
  172. {
  173.   out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">申请使用资产:</td>");
  174. }
  175.                 %>
  176.                     <td align="left" valign="middle" nowrap>
  177.                         <input name="ID" type="hidden" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
  178.                         <input name="OperateUserID" type="hidden" value="<%=((Vector)vt.get(0)).get(4).toString()%>">
  179.                         <input name="Operation" type="hidden" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
  180.                         <%java.util.Date t_Date = new java.util.Date();%>
  181. <%
  182. if (!strOperation.equalsIgnoreCase("UseApply"))
  183. {
  184.   out.println("<input name="EndTime" type="hidden" value="">");
  185. }
  186. %>
  187.                         <textarea name="Remark" cols="30" rows="5"><%=((Vector)vt.get(0)).get(5).toString()%></textarea>
  188.                         <input name="OperateTime" type="hidden" value="<%=StringNew.GetDateString(t_Date,"yyyy-MM-dd HH:mm:ss.SSS")%>">
  189.                         <input name="AssetID" type="hidden" value="<%=((Vector)vt.get(0)).get(7).toString()%>">
  190.                     </td>
  191.                 </tr>
  192. <!--****************************************数量*****************************************************-->
  193.                 <tr>
  194.                     <td align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>" width="100">数量:</td>
  195.                     <td align="left" valign="middle" nowrap>
  196.                     <input name="Amount" type="text" maxlength="9" size="5" Value="<%=((Vector)vt.get(0)).get(8).toString()%>">
  197.                     </td>
  198.                 </tr>
  199. <!--****************************************StratTime字段*****************************************************-->
  200.                 <tr>
  201.                 <%
  202. if (strOperation.equalsIgnoreCase("BuyApply"))
  203. {
  204.   out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">预计使用时间:</td>");
  205. }else
  206. if (strOperation.equalsIgnoreCase("InStorage"))
  207. {
  208.   out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">入库时间:</td>");
  209. }else
  210. if (strOperation.equalsIgnoreCase("OutStorage"))
  211. {
  212.   out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">出库时间:</td>");
  213. }else
  214. if (strOperation.equalsIgnoreCase("UseApply"))
  215. {
  216.   out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">预计领用时间:</td>");
  217. }
  218.                 %>
  219.                     <td align="left" valign="middle" nowrap>
  220.                     <input name="StartTime" type="text" Value="<%=StringNew.GetDateString(((Vector)vt.get(0)).get(2).toString(),"yyyy-MM-dd")%>" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value,-5,+5);" maxlength="12" size="12" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value,-5,+5);">
  221.                     </td>
  222.                 </tr>
  223. <!--****************************************EndTime字段*****************************************************-->
  224. <%
  225. if (strOperation.equalsIgnoreCase("UseApply"))
  226. {
  227.   out.println("<tr>");
  228.   out.println("<td align="right" valign="middle" bgcolor="" + m_session.GetString("TitleColor") + "" width="100">预计归还时间:</td>");
  229.   out.println("<td align="left" valign="middle" nowrap>");
  230.   out.println("<input name="EndTime" type="text" Value="" + StringNew.GetDateString(((Vector)vt.get(0)).get(3).toString(),"yyyy-MM-dd") + "" onFocus="JavaScript:this.value=fPopUpCalendarDlg(this.value,-5,+5);" maxlength="12" size="12" onDblClick="JavaScript:this.value=fPopUpCalendarDlg(this.value,-5,+5);">");
  231.   out.println("</td></tr>");
  232. }
  233. if (strOperation.equalsIgnoreCase("UseApply")||strOperation.equalsIgnoreCase("BuyApply"))
  234. {
  235.   String strApproveType = "";
  236.   if(strOperation.equalsIgnoreCase("BuyApply"))
  237.   {
  238.     strApproveType="采购申请";
  239.   }
  240.   else if(strOperation.equalsIgnoreCase("UseApply"))
  241.   {
  242.     strApproveType="领用申请";
  243.   }
  244.   vt = ApproveRecordManager.getRecordByRecordID(intAssetInOutID,strApproveType);
  245. %>
  246.   <tr>
  247.     <td align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">审批级别:</td>
  248.     <td align="left" valign="middle" nowrap>
  249.       <select name="ApproveLevel" onchange="for(var i=0;i<7;i++){if(i>this.selectedIndex){eval('document.all.ApproveList' + (i+1)).style.display='none';}else{eval('document.all.ApproveList' + (i+1)).style.display='';}}">
  250.       <%
  251.       for(int i=0;i<7;i++)
  252.       {
  253.         if((i+1)==vt.size())
  254.         {
  255.           out.println("<option value="" + (i+1) + "" selected>" + (i+1) + "级</option>");
  256.         }
  257.         else
  258.         {
  259.           out.println("<option value="" + (i+1) + "">" + (i+1) + "级</option>");
  260.         }
  261.       }
  262.       %>
  263.       </select>
  264.     </td>
  265.   </tr>
  266.   <tr>
  267.     <td align="right" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">&nbsp;</td>
  268.     <td align="center" valign="middle" nowrap>
  269.       <table border="1" cellpadding="0" cellspacing="0" width="95%">
  270.         <tr bgcolor="<%=m_session.GetString("TitleColor")%>">
  271.           <th align="center" valign="middle" nowrap>级别</th>
  272.           <th align="center" valign="middle" nowrap>员工姓名</th>
  273.           <th align="center" valign="middle" nowrap>员工编号</th>
  274.         </tr>
  275.         <tr ID="ApproveList1" <%=(1>vt.size())?"style="display:none"":""%>>
  276.           <td align="center" valign="middle" nowrap>一级</td>
  277.           <td align="center" valign="middle" nowrap><input name="PersonnelName1" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName1,document.EditAssetInOut.PersonnelNumber1,document.EditAssetInOut.ApproveUserID1);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName1,document.EditAssetInOut.PersonnelNumber1,document.EditAssetInOut.ApproveUserID1);" value="<%=(1<=vt.size())?UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(0)).get(3).toString())):""%>"><input name="ApproveUserID1" type="Hidden" value="<%=(1<=vt.size())?((Vector)vt.get(0)).get(3).toString():"0"%>"></td>
  278.           <td align="center" valign="middle" nowrap><input name="PersonnelNumber1" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName1,document.EditAssetInOut.PersonnelNumber1,document.EditAssetInOut.ApproveUserID1);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName1,document.EditAssetInOut.PersonnelNumber1,document.EditAssetInOut.ApproveUserID1);" value="<%=(1<=vt.size())?UserManager.getPersonnelNumberByUserID(Integer.parseInt(((Vector)vt.get(0)).get(3).toString())):""%>"></td>
  279.         </tr>
  280.         <tr ID="ApproveList2" <%=(2>vt.size())?"style="display:none"":""%>>
  281.           <td align="center" valign="middle" nowrap>二级</td>
  282.           <td align="center" valign="middle" nowrap><input name="PersonnelName2" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName2,document.EditAssetInOut.PersonnelNumber2,document.EditAssetInOut.ApproveUserID2);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName2,document.EditAssetInOut.PersonnelNumber2,document.EditAssetInOut.ApproveUserID2);" value="<%=(2<=vt.size())?UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(1)).get(3).toString())):""%>"><input name="ApproveUserID2" type="Hidden" value="<%=(2<=vt.size())?((Vector)vt.get(1)).get(3).toString():"0"%>"></td>
  283.           <td align="center" valign="middle" nowrap><input name="PersonnelNumber2" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName1,document.EditAssetInOut.PersonnelNumber1,document.EditAssetInOut.ApproveUserID1);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName2,document.EditAssetInOut.PersonnelNumber2,document.EditAssetInOut.ApproveUserID2);" value="<%=(2<=vt.size())?UserManager.getPersonnelNumberByUserID(Integer.parseInt(((Vector)vt.get(1)).get(3).toString())):""%>"></td>
  284.         </tr>
  285.         <tr ID="ApproveList3" <%=(3>vt.size())?"style="display:none"":""%>>
  286.           <td align="center" valign="middle" nowrap>三级</td>
  287.           <td align="center" valign="middle" nowrap><input name="PersonnelName3" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName3,document.EditAssetInOut.PersonnelNumber3,document.EditAssetInOut.ApproveUserID3);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName3,document.EditAssetInOut.PersonnelNumber3,document.EditAssetInOut.ApproveUserID3);" value="<%=(3<=vt.size())?UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(2)).get(3).toString())):""%>"><input name="ApproveUserID3" type="Hidden" value="<%=(3<=vt.size())?((Vector)vt.get(2)).get(3).toString():"0"%>"></td>
  288.           <td align="center" valign="middle" nowrap><input name="PersonnelNumber3" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName3,document.EditAssetInOut.PersonnelNumber3,document.EditAssetInOut.ApproveUserID3);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName3,document.EditAssetInOut.PersonnelNumber3,document.EditAssetInOut.ApproveUserID3);" value="<%=(3<=vt.size())?UserManager.getPersonnelNumberByUserID(Integer.parseInt(((Vector)vt.get(2)).get(3).toString())):""%>"></td>
  289.         </tr>
  290.         <tr ID="ApproveList4" <%=(4>vt.size())?"style="display:none"":""%>>
  291.           <td align="center" valign="middle" nowrap>四级</td>
  292.           <td align="center" valign="middle" nowrap><input name="PersonnelName4" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName4,document.EditAssetInOut.PersonnelNumber4,document.EditAssetInOut.ApproveUserID4);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName4,document.EditAssetInOut.PersonnelNumber4,document.EditAssetInOut.ApproveUserID4);" value="<%=(4<=vt.size())?UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(3)).get(3).toString())):""%>"><input name="ApproveUserID4" type="Hidden" value="<%=(4<=vt.size())?((Vector)vt.get(3)).get(3).toString():"0"%>"></td>
  293.           <td align="center" valign="middle" nowrap><input name="PersonnelNumber4" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName4,document.EditAssetInOut.PersonnelNumber4,document.EditAssetInOut.ApproveUserID4);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName4,document.EditAssetInOut.PersonnelNumber4,document.EditAssetInOut.ApproveUserID4);" value="<%=(4<=vt.size())?UserManager.getPersonnelNumberByUserID(Integer.parseInt(((Vector)vt.get(3)).get(3).toString())):""%>"></td>
  294.         </tr>
  295.         <tr ID="ApproveList5" <%=(5>vt.size())?"style="display:none"":""%>>
  296.           <td align="center" valign="middle" nowrap>五级</td>
  297.           <td align="center" valign="middle" nowrap><input name="PersonnelName5" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName5,document.EditAssetInOut.PersonnelNumber5,document.EditAssetInOut.ApproveUserID5);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName5,document.EditAssetInOut.PersonnelNumber5,document.EditAssetInOut.ApproveUserID5);" value="<%=(5<=vt.size())?UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(4)).get(3).toString())):""%>"><input name="ApproveUserID5" type="Hidden" value="<%=(5<=vt.size())?((Vector)vt.get(4)).get(3).toString():"0"%>"></td>
  298.           <td align="center" valign="middle" nowrap><input name="PersonnelNumber5" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName5,document.EditAssetInOut.PersonnelNumber5,document.EditAssetInOut.ApproveUserID5);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName5,document.EditAssetInOut.PersonnelNumber5,document.EditAssetInOut.ApproveUserID5);" value="<%=(5<=vt.size())?UserManager.getPersonnelNumberByUserID(Integer.parseInt(((Vector)vt.get(4)).get(3).toString())):""%>"></td>
  299.         </tr>
  300.         <tr ID="ApproveList6" <%=(6>vt.size())?"style="display:none"":""%>>
  301.           <td align="center" valign="middle" nowrap>六级</td>
  302.           <td align="center" valign="middle" nowrap><input name="PersonnelName6" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName6,document.EditAssetInOut.PersonnelNumber6,document.EditAssetInOut.ApproveUserID6);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName6,document.EditAssetInOut.PersonnelNumber6,document.EditAssetInOut.ApproveUserID6);" value="<%=(6<=vt.size())?UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(5)).get(3).toString())):""%>"><input name="ApproveUserID6" type="Hidden" value="<%=(6<=vt.size())?((Vector)vt.get(5)).get(3).toString():"0"%>"></td>
  303.           <td align="center" valign="middle" nowrap><input name="PersonnelNumber6" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName6,document.EditAssetInOut.PersonnelNumber6,document.EditAssetInOut.ApproveUserID6);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName6,document.EditAssetInOut.PersonnelNumber6,document.EditAssetInOut.ApproveUserID6);" value="<%=(6<=vt.size())?UserManager.getPersonnelNumberByUserID(Integer.parseInt(((Vector)vt.get(5)).get(3).toString())):""%>"></td>
  304.         </tr>
  305.         <tr ID="ApproveList7" <%=(7>vt.size())?"style="display:none"":""%>>
  306.           <td align="center" valign="middle" nowrap>七级</td>
  307.           <td align="center" valign="middle" nowrap><input name="PersonnelName7" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName7,document.EditAssetInOut.PersonnelNumber7,document.EditAssetInOut.ApproveUserID7);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName7,document.EditAssetInOut.PersonnelNumber7,document.EditAssetInOut.ApproveUserID7);" value="<%=(7<=vt.size())?UserManager.getPersonnelNameByUserID(Integer.parseInt(((Vector)vt.get(6)).get(3).toString())):""%>"><input name="ApproveUserID7" type="Hidden" value="<%=(7<=vt.size())?((Vector)vt.get(6)).get(3).toString():"0"%>"></td>
  308.           <td align="center" valign="middle" nowrap><input name="PersonnelNumber7" type="text" readonly size="20" onFocus="PopUpSelectUser(document.EditAssetInOut.PersonnelName7,document.EditAssetInOut.PersonnelNumber7,document.EditAssetInOut.ApproveUserID7);" onDblClick="PopUpSelectUser(document.EditAssetInOut.PersonnelName7,document.EditAssetInOut.PersonnelNumber7,document.EditAssetInOut.ApproveUserID7);" value="<%=(7<=vt.size())?UserManager.getPersonnelNumberByUserID(Integer.parseInt(((Vector)vt.get(6)).get(3).toString())):""%>"></td>
  309.         </tr>
  310.       </table>
  311.     </td>
  312.   </tr>
  313. <%
  314. }
  315. %>
  316.           <tr align="center">
  317.             <td colspan="2" valign="middle">
  318.               <input type="submit" value="修改">&nbsp;&nbsp; <input type="reset" value="重填">&nbsp;&nbsp; <input type="button" value="返回" onclick="window.location='AssetInOutManage.jsp?SysDirID=<%=iSysDirID%>&OperationType=<%=strOperation%>';">
  319.             </td>
  320.           </tr>
  321.         </table>
  322.       </form>
  323.     </td>
  324.   </tr>
  325. </table>
  326. </body>
  327. </html>
  328. <%
  329. }
  330. else
  331. {
  332. %>
  333. <script language="JavaScript" type="text/JavaScript">
  334. alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
  335. history.back();
  336. </script>
  337. <%
  338. }
  339. }
  340. %>