approvel_select.aspx
资源名称:web.rar [点击查看]
上传用户:xrffrp
上传日期:2022-03-25
资源大小:22155k
文件大小:2k
源码类别:
OA系统
开发平台:
ASP/ASPX
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="approvel_select.aspx.cs" Inherits="web_fair_approvel_select" %>
- <!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>
- <link href="../../css/style.css" rel="stylesheet" type="text/css" />
- <script language="javascript" type="text/javascript">
- function check()
- {
- var count = 0;
- var value = "";
- var ele = document.getElementsByTagName("input");
- for(var i=0; i<ele.length; i++)
- {
- if(ele[i].type == "checkbox")
- {
- if(ele[i].checked)
- {
- count++;
- value = ele[i].id;
- }
- }
- }
- if(count==0)
- {
- alert("請選擇單據!");
- return false;
- }
- if(count>1)
- {
- alert("只能選擇一張單據!");
- return false;
- }
- if(count==1)
- {
- var text = value.split("-");
- window.opener.setForm(text[1], value);
- self.close();
- }
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <center>
- </center>
- <center>
- <asp:Table ID="TblForm" runat="server" Width="600px">
- <asp:TableHeaderRow BackColor="Menu" runat="server">
- <asp:TableHeaderCell runat="server"></asp:TableHeaderCell>
- <asp:TableHeaderCell runat="server">單號</asp:TableHeaderCell>
- <asp:TableHeaderCell runat="server">類別</asp:TableHeaderCell>
- <asp:TableHeaderCell runat="server">開始日期</asp:TableHeaderCell>
- <asp:TableHeaderCell runat="server">結束日期</asp:TableHeaderCell>
- </asp:TableHeaderRow>
- </asp:Table><br />
- <input id="Button1" type="button" value="確定" onclick="check()" />
- <input id="Button2" type="button" value="取消" onclick="self.close()" />
- </center>
- </div>
- </form>
- </body>
- </html>