187 lines
9.7 KiB
Plaintext
187 lines
9.7 KiB
Plaintext
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Task.aspx.cs" Inherits="Subaltern_TaskFP" %>
|
|||
|
|
|
|||
|
|
<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;">
|
|||
|
|
<img src="../images/BanKuaiJianTou.gif" />
|
|||
|
|
<a class="hei" href="../Main/MyDesk.aspx"><3E><><EFBFBD><EFBFBD></a> >> <3B>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
</td>
|
|||
|
|
<td align="right" valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;">
|
|||
|
|
<20><>ѯ<EFBFBD><D1AF><asp:DropDownList ID="DropDownList2" runat="server">
|
|||
|
|
<asp:ListItem Value="TaskTitle"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></asp:ListItem>
|
|||
|
|
<asp:ListItem Value="WanCheng"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></asp:ListItem>
|
|||
|
|
<asp:ListItem Value="NowState"><3E><>ǰ״̬</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=ERPTaskFP&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" /> <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" />
|
|||
|
|
</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="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
|
|||
|
|
<ItemTemplate>
|
|||
|
|
<asp:HyperLink ID="HyperLink1" runat="server" Font-Underline="True" NavigateUrl='<%# "TaskFPView.aspx?ID="+ DataBinder.Eval(Container.DataItem, "ID")%>'><%# DataBinder.Eval(Container.DataItem, "TaskTitle")%></asp:HyperLink>
|
|||
|
|
<asp:HyperLink ID="HyperLink3" runat="server" Font-Underline="True" ForeColor="Blue"
|
|||
|
|
NavigateUrl='<%# "TaskHB.aspx?ID="+ DataBinder.Eval(Container.DataItem, "ID") %>'>[<5B><><EFBFBD><EFBFBD><EFBFBD>㱨]</asp:HyperLink>
|
|||
|
|
</ItemTemplate>
|
|||
|
|
<ItemStyle HorizontalAlign="Left" />
|
|||
|
|
</asp:TemplateField>
|
|||
|
|
<asp:BoundField DataField="JinDu" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(%)"></asp:BoundField>
|
|||
|
|
<asp:BoundField DataField="WanCheng" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"></asp:BoundField>
|
|||
|
|
<asp:BoundField DataField="NowState" HeaderText="<22><>ǰ״̬"></asp:BoundField>
|
|||
|
|
<asp:BoundField DataField="TimeStr" HeaderText="<22><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>"></asp:BoundField>
|
|||
|
|
<asp:BoundField DataField="KSSJ" HeaderText="<22><>ʼʱ<CABC><CAB1>"></asp:BoundField>
|
|||
|
|
<asp:BoundField DataField="JSSJ" HeaderText="<22><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>"></asp:BoundField>
|
|||
|
|
<asp:BoundField DataField="SFFK" HeaderText="<22>Ƿ<EFBFBD><C7B7><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>"></asp:BoundField>
|
|||
|
|
<asp:BoundField DataField="FKSJ" HeaderText="<22><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>"></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" />
|
|||
|
|
<3B><><asp:Label ID="LabCurrentPage" runat="server" Text="Label"></asp:Label>ҳ
|
|||
|
|
<20><><asp:Label ID="LabPageSum" runat="server" Text="Label"></asp:Label>ҳ
|
|||
|
|
<asp:TextBox ID="TxtPageSize" runat="server" CssClass="TextBoxCssUnder2" Height="20px"
|
|||
|
|
Width="35px">15</asp:TextBox>
|
|||
|
|
<20><>ÿҳ ת<><D7AA><EFBFBD><EFBFBD><asp:TextBox ID="GoPage" runat="server" CssClass="TextBoxCssUnder2"
|
|||
|
|
Height="20px" Width="33px"></asp:TextBox>
|
|||
|
|
ҳ
|
|||
|
|
<asp:ImageButton ID="ButtonGo" runat="server" OnClientClick="javascript:return CheckValuePiece();"
|
|||
|
|
ImageUrl="../images/Button/Jump.jpg" OnClick="ButtonGo_Click" />
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
</table>
|
|||
|
|
</form>
|
|||
|
|
</body>
|
|||
|
|
</html>
|