tijian_tieying/web/Web/DocFile/JianLi.aspx

190 lines
9.9 KiB
Plaintext
Raw Normal View History

2025-02-20 12:14:39 +08:00
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JianLi.aspx.cs" Inherits="DocFile_JianLi" %>
<html>
<head>
<title><%=System.Configuration.ConfigurationManager.AppSettings["SYSTitle"]%></title>
<LINK href="../Style/Style.css" type="text/css" rel="STYLESHEET">
</head>
<SCRIPT LANGUAGE="JavaScript">
var a;
function CheckValuePiece(){
if(window.document.form1.GoPage.value == "")
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA>ҳ<EFBFBD>룡");
window.document.form1.GoPage.focus();
return false;
}
return true;
}
function CheckAll(){
if(a==1)
{
for(var i=0;i<window.document.forms['form1'].elements.length;i++)
{
var e = form1.elements[i];
e.checked =false;
}
a=0;
}
else
{
for(var i=0;i<window.document.forms['form1'].elements.length;i++)
{
var e = form1.elements[i];
e.checked =true;
}
a=1;
}
}
function CheckDel(){
var number=0;
for(var i=0;i<window.document.forms['form1'].elements.length;i++)
{
var e = form1.elements[i];
if (e.Name != "CheckBoxAll")
{
if(e.checked==true)
{
number=number+1;
}
}
}
if(number==0)
{
alert("<22><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>Ҫɾ<D2AA><C9BE><EFBFBD><EFBFBD><EFBFBD>");
return false;
}
if (window.confirm("<22><>ȷ<EFBFBD><C8B7>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"))
{
return true;
}
else
{
return false;
}
}
function CheckModify(){
var Modifynumber=0;
for(var i=0;i<window.document.forms['form1'].elements.length;i++)
{
var e = form1.elements[i];
if (e.Name != "CheckBoxAll")
{
if(e.checked==true)
{
Modifynumber=Modifynumber+1;
}
}
}
if(Modifynumber==0)
{
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>һ<EFBFBD>");
return false;
}
if(Modifynumber>1)
{
alert("ֻ<><D6BB><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>һ<EFBFBD>");
return false;
}
return true;
}
</SCRIPT>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle" style="border-bottom: #006633 1px dashed; height: 30px; ">&nbsp;<img src="../images/BanKuaiJianTou.gif" />
<a class="hei" href="../Main/MyDesk.aspx"><3E><><EFBFBD><EFBFBD></a>&nbsp;>>&nbsp;<3B><>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>
</td>
<td align="right" valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;">
<09><>ѯ<EFBFBD><D1AF><asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem Value="YPName">ӦƸ<D3A6><C6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD></asp:ListItem>
<asp:ListItem Value="YPSex"><3E>Ա<EFBFBD></asp:ListItem>
<asp:ListItem Value="YPAge"><3E><><EFBFBD><EFBFBD></asp:ListItem>
<asp:ListItem Value="XueLi">ѧ<><D1A7></asp:ListItem>
<asp:ListItem Value="ZhuanYe">רҵ</asp:ListItem>
<asp:ListItem Value="YPZhiWei">ӦƸְλ</asp:ListItem>
<asp:ListItem Value="YPJieGuo">ӦƸ<D3A6><C6B8><EFBFBD><EFBFBD></asp:ListItem>
</asp:DropDownList><asp:TextBox ID="TextBox3" runat="server" Width="80px"></asp:TextBox><img class="HerCss"
onclick="var wName;var RadNum=Math.random();wName=window.showModalDialog('../Main/SelectCondition.aspx?TableName=ERPJianLi&LieName='+document.getElementById('DropDownList2').value+'&Radstr='+RadNum,'','dialogWidth:350px;DialogHeight=400px;status:no;help:no;resizable:yes;');if(wName==null){}else{document.getElementById('TextBox3').value=wName;}"
src="../images/Button/search.gif" /><asp:ImageButton ID="ImageButton4" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/Button/BtnSerch.jpg"
OnClick="ImageButton4_Click" /><asp:ImageButton ID="ImageButton6" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/Button/ResultSerch.jpg" OnClick="ImageButton6_Click" />&nbsp; &nbsp;
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/Button/BtnAdd.jpg" ImageAlign="AbsMiddle" OnClick="ImageButton1_Click" />
<asp:ImageButton ID="ImageButton5" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/Button/BtnModify.jpg"
OnClick="ImageButton5_Click" OnClientClick="javascript:return CheckModify();" />
<asp:ImageButton ID="ImageButton3" runat="server" OnClientClick="javascript:return CheckDel();" ImageUrl="../images/Button/BtnDel.jpg" ImageAlign="AbsMiddle" OnClick="ImageButton3_Click" />
&nbsp;<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="../images/Button/BtnReport.jpg" ImageAlign="AbsMiddle" OnClick="ImageButton2_Click" /><img src="../images/Button/JianGe.jpg" /><img class="HerCss" onclick="javascript:window.history.go(-1)" src="../images/Button/BtnExit.jpg" />&nbsp;</td>
</tr>
</table>
</div>
<table style="width: 100%">
<tr>
<td ><asp:GridView ID="GVData" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
BorderStyle="Groove" BorderWidth="1px" OnRowDataBound="GVData_RowDataBound" PageSize="15"
Width="100%">
<PagerSettings Mode="NumericFirstLast" Visible="False" />
<PagerStyle BackColor="LightSteelBlue" HorizontalAlign="Right" />
<HeaderStyle BackColor="#F3F3F3" Font-Size="12px" ForeColor="Black" Height="20px" /><AlternatingRowStyle BackColor="WhiteSmoke" />
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Label ID="LabVisible" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ID")%>'
Visible="False"></asp:Label><asp:CheckBox ID="CheckSelect" runat="server" />
</ItemTemplate>
<HeaderStyle Width="20px" />
<HeaderTemplate>
<input id="CheckBoxAll" onclick="CheckAll()" type="checkbox" />
</HeaderTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="ӦƸ<D3A6><C6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"> <ItemTemplate> <asp:HyperLink ID="HyperLink1" runat="server" Font-Underline="True" NavigateUrl='<%# "JianLiView.aspx?ID="+ DataBinder.Eval(Container.DataItem, "ID")%>'><%# DataBinder.Eval(Container.DataItem, "YPName")%></asp:HyperLink> </ItemTemplate> <ItemStyle HorizontalAlign="Left" /> </asp:TemplateField>
<asp:BoundField DataField="YPDate" HeaderText="ӦƸ<D3A6><C6B8><EFBFBD><EFBFBD>" ></asp:BoundField>
<asp:BoundField DataField="YPSex" HeaderText="<22>Ա<EFBFBD>" ></asp:BoundField>
<asp:BoundField DataField="YPAge" HeaderText="<22><><EFBFBD><EFBFBD>" ></asp:BoundField>
<asp:BoundField DataField="XueLi" HeaderText="ѧ<><D1A7>" ></asp:BoundField>
<asp:BoundField DataField="ZhuanYe" HeaderText="רҵ" ></asp:BoundField>
<asp:BoundField DataField="YPZhiWei" HeaderText="ӦƸְλ" ></asp:BoundField>
<asp:BoundField DataField="YPJieGuo" HeaderText="ӦƸ<D3A6><C6B8><EFBFBD><EFBFBD>" ></asp:BoundField>
</Columns>
<RowStyle HorizontalAlign="Center" Height="25px" />
<EmptyDataTemplate>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="border-right: black 1px; border-top: black 1px;
border-left: black 1px; border-bottom: black 1px; background-color: whitesmoke;">
<20><><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD></td>
</tr>
</table>
</EmptyDataTemplate>
</asp:GridView>
</td>
</tr>
<tr>
<td style="border-top: #000000 1px solid;border-bottom: #000000 1px solid">
<asp:ImageButton ID="BtnFirst" runat="server" CommandName="First" ImageUrl="../images/Button/First.jpg"
OnClick="PagerButtonClick" />
<asp:ImageButton ID="BtnPre" runat="server" CommandName="Pre" ImageUrl="../images/Button/Pre.jpg"
OnClick="PagerButtonClick" />
<asp:ImageButton ID="BtnNext" runat="server" CommandName="Next" ImageUrl="../images/Button/Next.jpg"
OnClick="PagerButtonClick" />
<asp:ImageButton ID="BtnLast" runat="server" CommandName="Last" ImageUrl="../images/Button/Last.jpg"
OnClick="PagerButtonClick" />
&nbsp;<3B><><asp:Label ID="LabCurrentPage" runat="server" Text="Label"></asp:Label>ҳ&nbsp; <20><><asp:Label
ID="LabPageSum" runat="server" Text="Label"></asp:Label>ҳ&nbsp;
<asp:TextBox ID="TxtPageSize" runat="server" CssClass="TextBoxCssUnder2" Height="20px"
Width="35px">15</asp:TextBox>
<20><>ÿҳ &nbsp; ת<><D7AA><EFBFBD><EFBFBD><asp:TextBox ID="GoPage" runat="server" CssClass="TextBoxCssUnder2"
Height="20px" Width="33px"></asp:TextBox>
ҳ&nbsp;
<asp:ImageButton ID="ButtonGo" runat="server" OnClientClick="javascript:return CheckValuePiece();" ImageUrl="../images/Button/Jump.jpg" OnClick="ButtonGo_Click" /></td>
</tr>
</table>
</form>
</body>
</html>