approvel_select.aspx
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:2k
源码类别:

OA系统

开发平台:

ASP/ASPX

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="approvel_select.aspx.cs" Inherits="web_fair_approvel_select" %>
  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.     <link href="../../css/style.css" rel="stylesheet" type="text/css" />
  7.     <script language="javascript" type="text/javascript">
  8.         function check()
  9.         {
  10.             var count = 0;
  11.             var value = "";
  12.             var ele = document.getElementsByTagName("input");
  13.             for(var i=0; i<ele.length; i++)
  14.             {
  15.                 if(ele[i].type == "checkbox")
  16.                 {
  17.                     if(ele[i].checked)
  18.                     {
  19.                         count++;
  20.                         value = ele[i].id;
  21.                     }
  22.                 }
  23.             }
  24.             if(count==0)
  25.             {
  26.                 alert("請選擇單據!");
  27.                 return false;
  28.             }
  29.             if(count>1)
  30.             {
  31.                 alert("只能選擇一張單據!");
  32.                 return false;            
  33.             }
  34.             if(count==1)
  35.             {
  36.                 var text = value.split("-");
  37.                 window.opener.setForm(text[1], value);
  38.                 self.close();
  39.             }
  40.         }
  41.     </script>
  42. </head>
  43. <body>
  44.     <form id="form1" runat="server">
  45.     <div>
  46.     <center>
  47.         &nbsp;</center>
  48.         <center>
  49.         <asp:Table ID="TblForm" runat="server" Width="600px">
  50.             <asp:TableHeaderRow BackColor="Menu" runat="server">
  51.                 <asp:TableHeaderCell runat="server"></asp:TableHeaderCell>
  52.                 <asp:TableHeaderCell runat="server">單號</asp:TableHeaderCell>
  53.                 <asp:TableHeaderCell runat="server">類別</asp:TableHeaderCell>
  54.                 <asp:TableHeaderCell runat="server">開始日期</asp:TableHeaderCell>
  55.                 <asp:TableHeaderCell runat="server">結束日期</asp:TableHeaderCell>
  56.             </asp:TableHeaderRow>
  57.         </asp:Table><br />
  58.             <input id="Button1" type="button" value="確定" onclick="check()" />&nbsp;
  59.             <input id="Button2" type="button" value="取消" onclick="self.close()" />
  60.         </center>
  61.     </div>
  62.     </form>
  63. </body>
  64. </html>