platform/Project/ProjectApprove.aspx

458 lines
27 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" MasterPageFile="../masterPage.master" AutoEventWireup="true"
CodeFile="ProjectApprove.aspx.cs" Inherits="ProjectApprove" %>
<%@ MasterType VirtualPath="~/masterPage.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<table width="100%" class="Table_NoBorder">
<tr>
<td colspan="4">
<table width="80%" class="Table_NoBorder">
<tr>
<td colspan="13" align="center">
<cc1:NumericUpDownExtender ID="NumericUpDownExtender1" runat="server" Width="80"
TargetControlID="btnYear">
</cc1:NumericUpDownExtender>
&nbsp;
</td>
</tr>
<tr>
<td nowrap>
<asp:TextBox id="btnYear"
runat="server" AutoPostBack="True" OnTextChanged="TxtBtnYear_TextChanged" Width="1px"></asp:TextBox>
</td>
<td>
<asp:RadioButtonList ID="rdblstMonth" runat="server" RepeatDirection="Horizontal"
Width="709px" OnSelectedIndexChanged="rdblstMonth_SelectedIndexChanged" AutoPostBack="True">
<asp:ListItem Value="0">È«Äê</asp:ListItem>
<asp:ListItem Value="1" Selected="True">1ÔÂ</asp:ListItem>
<asp:ListItem Value="2">2ÔÂ</asp:ListItem>
<asp:ListItem Value="3">3ÔÂ</asp:ListItem>
<asp:ListItem Value="4">4ÔÂ</asp:ListItem>
<asp:ListItem Value="5">5ÔÂ</asp:ListItem>
<asp:ListItem Value="6">6ÔÂ</asp:ListItem>
<asp:ListItem Value="7">7ÔÂ</asp:ListItem>
<asp:ListItem Value="8">8ÔÂ</asp:ListItem>
<asp:ListItem Value="9">9ÔÂ</asp:ListItem>
<asp:ListItem Value="10">10ÔÂ</asp:ListItem>
<asp:ListItem Value="11">11ÔÂ</asp:ListItem>
<asp:ListItem Value="12">12ÔÂ</asp:ListItem>
</asp:RadioButtonList></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4">
<asp:GridView id="GridView1" runat="server" CssClass="DataGrid" Width="99%" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
EmptyDataText="ûÓÐÊý¾Ý¡£" ShowFooter="True" OnSorting="GridView1_Sorting" OnPageIndexChanging="GridView1_PageIndexChanging"
AllowPaging="True" OnRowDeleting="GridView1_EditProject" DataKeyNames="pk_projDetail"
AutoGenerateColumns="False" PagerStyle-HorizontalAlign="Right" PageSize="10">
<selectedrowstyle cssclass="SelectedItemStyle"></selectedrowstyle>
<headerstyle cssclass="HeaderStyle" horizontalalign="Left"></headerstyle>
<rowstyle cssclass="ItemStyle" horizontalalign="left"></rowstyle>
<alternatingrowstyle cssclass="AlternatingItemStyle"></alternatingrowstyle>
<columns>
<asp:BoundField DataField="pk_projDetail" HeaderText="pdid" visible="false"> </asp:BoundField>
<asp:BoundField DataField="PJ_NAME" HeaderText="ÏîÄ¿Ãû³Æ" SortExpression="PJ_NAME">
<ItemStyle Wrap="False" />
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundField DataField="EM_NAME" HeaderText="ÔðÈÎÈË" SortExpression="EM_NAME" >
<ItemStyle Wrap="False" />
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField><asp:BoundField DataField="dep_name" HeaderText="²¿ÃÅ" ItemStyle-HorizontalAlign ="Left" SortExpression="dep_name" >
<ItemStyle Wrap="False" />
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundField DataField="pd_month" HeaderText="Ô·Ý" SortExpression="pj_planStartDate" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
<ItemStyle Wrap="False" />
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundField DataField="PJ_PERCENT" HeaderText="ÏîÄ¿È¨ÖØ" SortExpression="PJ_PERCENT">
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundField DataField="pd_percent" HeaderText="ÏîÄ¿½ø¶È" SortExpression="PJ_PROGRESS" >
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundField DataField="pj_finishDate" HeaderText="ʵ¼ÊÍê³Éʱ¼ä" SortExpression="pj_finishDate" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False">
<ItemStyle Wrap="False" HorizontalAlign="Center"/>
<HeaderStyle Wrap="False" HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundField DataField="pj_status" HeaderText="ÏîĿ״̬" SortExpression="pj_status" > <ItemStyle Wrap="False" HorizontalAlign="Center"/>
<HeaderStyle Wrap="False" HorizontalAlign="Center"/></asp:BoundField>
<asp:BoundField DataField="pd_status" HeaderText="Ô¶È״̬" SortExpression="pd_status" > <ItemStyle Wrap="False" HorizontalAlign="Center"/>
<HeaderStyle Wrap="False" HorizontalAlign="Center"/></asp:BoundField>
<asp:BoundField DataField="pj_score" HeaderText="ÏîÄ¿µÃ·Ö" SortExpression="pd_status"
><ItemStyle Wrap="False" HorizontalAlign="Center"/>
<HeaderStyle Wrap="False" HorizontalAlign="Center"/></asp:BoundField>
<asp:CommandField HeaderText="±à¡¡¼­" ShowDeleteButton="True" DeleteText="&lt;img src=../Images/detail.gif border=0 border=0 title= ²é¿´ÏîÄ¿ &gt;" ¡¡ShowHeader="True" ShowSelectButton="True" SelectText="&lt;img src=../Images/edit.gif border=0 title=½ø¶È &gt;">
<HeaderStyle HorizontalAlign="Center" Width="10%" />
<ItemStyle HorizontalAlign="Center" Width="10%" />
</asp:CommandField>
</columns>
<emptydatatemplate> ûÓÐÊý¾Ý</emptydatatemplate>
<pagerstyle horizontalalign="Right" />
</asp:GridView>
<asp:Button ID="Button1" runat="server" CssClass="Button" OnClick="Excel_Click" Text="µ¼³öExcel" />
</td>
</tr>
<tr>
<td colspan="4" class="ALine">
</td>
</tr>
</table>
<table width="75%" align="left">
<div runat="server" id="ProjectDetail" visible="false" align="left" >
<tr>
<td nowrap>
<asp:Label ID="Label12" runat="server" CssClass="Label" Text="ÏîÄ¿Ãû³Æ"></asp:Label>&nbsp;
</td>
<td align="left" colspan="3">
<asp:TextBox ID="txtProjectName" runat="server" CssClass="TextBox_Long" MaxLength="50"
Width="540px">
</asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtProjectName"
ErrorMessage="*">£ª</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
<asp:Label ID="Label13" runat="server" CssClass="Label" Text="¿ªÊ¼Ê±¼ä"></asp:Label></td>
<td align="left">
<asp:DropDownList ID="drpdProjlisFromYear" CssClass="DropDownList" runat="server"
Width="52px">
<asp:ListItem Selected="True">2009</asp:ListItem>
<asp:ListItem Value="2010">2010</asp:ListItem>
<asp:ListItem>2011</asp:ListItem>
</asp:DropDownList>
Äê
<asp:DropDownList ID="drplstProjFromMonth" CssClass="DropDownList" runat="server"
Width="32px">
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem Value="4">4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
</asp:DropDownList>ÔÂ</td>
<td>
<asp:Label ID="Label16" runat="server" CssClass="Label" Text="½áÊøÊ±¼ä"></asp:Label></td>
<td align="left">
<asp:DropDownList ID="drplstProjectToYear" CssClass="DropDownList" runat="server"
Width="52px">
<asp:ListItem Selected="True">2009</asp:ListItem>
<asp:ListItem Value="2010">2010</asp:ListItem>
<asp:ListItem>2011</asp:ListItem>
</asp:DropDownList>
Äê
<asp:DropDownList ID="drlstProjToMonth" CssClass="DropDownList" runat="server" Width="32px">
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem Value="4">4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
</asp:DropDownList>ÔÂ</td>
</tr>
<tr>
<td>
<asp:Label ID="Label9" runat="server" CssClass="Label" Text="ÏîÄ¿½ø¶È"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtProjProgress" runat="server" CssClass="TextBox_Show" MaxLength="25"
ReadOnly="True">0</asp:TextBox>
%&nbsp;
</td>
<td>
<asp:Label ID="Label10" runat="server" CssClass="Label" Text="ʵ¼Ê½áÊøÊ±¼ä"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtPrjActualEndDate" runat="server" CssClass="TextBox_Show" MaxLength="25"
ReadOnly="True">
</asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label17" runat="server" CssClass="Label" Text="ÔðÈÎÈË"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtProjMaster" runat="server" CssClass="TextBox_Show" MaxLength="25"
ReadOnly="true">
</asp:TextBox>
</td>
<td>
<asp:Label ID="Label14" runat="server" CssClass="Label" Text="ËùÊô²¿ÃÅ"></asp:Label>
</td>
<td align="left">
<asp:DropDownList ID="drplstProjDept" CssClass="DropDownList" runat="server">
</asp:DropDownList></td>
</tr>
<tr>
<td>
<asp:Label ID="lbproperty" runat="server" CssClass="Label" Text="ÏîÄ¿ÐÔÖÊ"></asp:Label>
</td>
<td align="left">
<asp:DropDownList ID="drplstProjType" CssClass="DropDownList" runat="server">
<asp:ListItem>ÖØµãÏîÄ¿</asp:ListItem>
<asp:ListItem>Ò»°ãÏîÄ¿</asp:ListItem>
<asp:ListItem>ÆäËûÐÔÖÊ</asp:ListItem>
</asp:DropDownList></td>
<td>
<asp:Label ID="Label15" runat="server" CssClass="Label" Text="ÏîÄ¿È¨ÖØ"></asp:Label>
</td>
<td align="left">
<asp:TextBox ID="txtProjPercent" runat="server" CssClass="TextBox" MaxLength="50"
Width="26px">
</asp:TextBox>
%</td>
</tr>
<tr>
<td style="height: 45px; width: 72px;">
<asp:Label ID="Label18" runat="server" CssClass="Label" Text="ÏîÄ¿ÃèÊö"></asp:Label></td>
<td colspan="3" style="height: 45px" align="left">
<asp:TextBox ID="txtPrjDesc" runat="server" CssClass="TextBox" MaxLength="500" Height="68px"
TextMode="MultiLine" Width="542px">
</asp:TextBox>
</td>
</tr>
<tr>
<td style="height: 45px; width: 72px;">
<asp:Label ID="lbprjmem4Delete" runat="server" CssClass="Label" Text="ɾ³ýÏîĿ˵Ã÷" Visible="False">
</asp:Label></td>
<td colspan="3" style="height: 45px" align="left">
<asp:TextBox ID="txtProjMem4delete" runat="server" CssClass="TextBox" MaxLength="500"
Height="68px" TextMode="MultiLine" Width="542px" Visible="false">
</asp:TextBox>
</td>
</tr>
</div>
<div id="ProjectMonthDetail" runat="server" width="100%" visible="false" align="left">
<tr>
<td nowrap>
<asp:Label ID="Label2" runat="server" CssClass="Label" Text="ÏîÄ¿Ãû³Æ"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtPdName" runat="server" CssClass="TextBox_Show" MaxLength="25">
</asp:TextBox>
</td>
<td>
<asp:Label ID="Label21" runat="server" CssClass="Label" Text="ÏîÄ¿½ø¶È"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtPrjProgress" CssClass="TextBox_Show" runat="server" MaxLength="25">
</asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label19" runat="server" CssClass="Label" Text="¿ªÊ¼Ê±¼ä"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtPdStartDate" CssClass="TextBox_Show" runat="server" MaxLength="25">
</asp:TextBox></td>
<td>
<asp:Label ID="Label4" runat="server" CssClass="Label" Text="½áÊøÊ±¼ä"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtPdEndDate" runat="server" CssClass="TextBox_Show" MaxLength="25">
</asp:TextBox></td>
</tr>
<tr>
<td>
<asp:Label ID="Label1" runat="server" CssClass="Label" Text="ʵ¼Ê½áÊøÊ±¼ä"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtPdActualEndDate" runat="server" CssClass="TextBox_Show" MaxLength="25">
</asp:TextBox></td>
<td>
&nbsp;
</td>
<td>
&nbsp;
</td>
</tr>
<tr>
<td colspan="4" class="ALine">
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label11" runat="server" CssClass="Label" Text="±¾Ô¼ƻ®Ä¿±ê"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtPdPlanTarget" runat="server" CssClass="TextBox" MaxLength="25">
</asp:TextBox></td>
<td>
<asp:Label ID="Label20" runat="server" CssClass="Label" Text="±¾ÔÂʵ¼ÊÍê³É"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtPdFinishTarget" runat="server" CssClass="TextBox" MaxLength="25">
</asp:TextBox></td>
</tr>
<tr>
<td>
<asp:Label ID="Label3" runat="server" CssClass="Label" Text="Íê³É°Ù·Ö±È"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtPdPercent" runat="server">
</asp:TextBox>
</td>
<td align="left" colspan="2">
&nbsp;
</td>
</tr>
<tr>
<td>
<asp:Label ID="lbpdMem" runat="server" CssClass="Label" Text="Ö´ÐÐÇé¿ö˵Ã÷"></asp:Label></td>
<td colspan="3" align="left">
<asp:TextBox ID="txtPdMem" runat="server" CssClass="TextBox" Height="159px" MaxLength="500"
TextMode="MultiLine" Width="557px">
</asp:TextBox></td>
</tr>
<tr>
<td>
<asp:Label ID="Label7" runat="server" CssClass="Label" Text="Ïà¹Ø¸½¼þ"></asp:Label>&nbsp;</td>
<td colspan="3" align="left">
<asp:GridView id="GVFiles" CssClass="DataGrid" PagerStyle-HorizontalAlign="Right"
runat="server" DataKeyNames="ID" AllowPaging="True" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
Width="70%" ShowFooter="True" AutoGenerateColumns="False" PageSize="5">
<columns>
<asp:BoundField ReadOnly="True" DataField="ID" SortExpression="ID" HeaderText="Îļþid" Visible="False"></asp:BoundField>
<asp:BoundField DataField="File_Desc" SortExpression="File_Desc" HeaderText="Îļþ˵Ã÷"></asp:BoundField>
<asp:BoundField DataField="File_Date" SortExpression="File_Date" HeaderText="ÉÏ´«Ê±¼ä"></asp:BoundField>
<asp:BoundField DataField="dr" Visible="False" SortExpression="dr" HeaderText="¿ÉÓÃ"></asp:BoundField>
<asp:CommandField SelectText="&lt;img src=../Images/detail.gif border=0 title=²é¿´ &gt;" ShowHeader="True" ShowSelectButton="True" HeaderText="±à¡¡¼­">
<HeaderStyle Width="15%" HorizontalAlign="Center"></HeaderStyle>
<ItemStyle Width="15%" HorizontalAlign="Center"></ItemStyle>
</asp:CommandField>
</columns>
<rowstyle cssclass="ItemStyle" horizontalalign="Center"></rowstyle>
<emptydatatemplate> ûÓÐÊý¾Ý</emptydatatemplate>
<selectedrowstyle cssclass="SelectedItemStyle"></selectedrowstyle>
<pagerstyle horizontalalign="Right" />
<headerstyle cssclass="HeaderStyle" horizontalalign="Center"></headerstyle>
<alternatingrowstyle cssclass="AlternatingItemStyle"></alternatingrowstyle>
</asp:GridView></td>
</tr>
<tr>
<td colspan="4" class="ALine">
</td>
</tr>
</div>
<div id="PanelApprove" runat="server" width="100%" visible="false" align="left">
<tr>
<td colspan="4" class="ALine">
</td>
</tr>
<tr>
<td nowrap>
<asp:Label ID="lbapprovelst" runat="server" CssClass="Label" Text="ÉóÅú¼Ç¼"></asp:Label> </td>
<td colspan="3">
<div id="panelApprovelist" runat="server" width="100%" visible="false">
<table width="90%" class="Table_Border" border="0" cellpadding="2" cellspacing="2">
<asp:Repeater id="RepeaterApproveList" runat="server">
<itemtemplate>
<tr class="HeaderStyle">
<td>ÉóÅú½á¹û</td>
<td>ÉóÅúÈË</td>
<td>ϵÊý</td>
<td>ÉóÅúʱ¼ä</td>
</tr>
<tr>
<td><%# FormatShowContent((bool)DataBinder.Eval(Container.DataItem,"PA_PASS")) %></td>
<td><%# DataBinder.Eval(Container.DataItem,"EM_NAME") %></td>
<td><%# DataBinder.Eval(Container.DataItem,"PA_SCORE") %>
<td><%# DataBinder.Eval(Container.DataItem,"CREATE_TIME") %></td>
</tr>
<tr>
<td class="HeaderStyle">ÉóÅú±¸×¢</td>
<td colspan="4"><pre> <%# DataBinder.Eval(Container.DataItem,"PA_MEM") %></pre></td>
</tr>
<tr>
<td colspan="5" class="ALine">
</td>
</tr>
</itemtemplate>
</asp:Repeater>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="4" class="ALine">
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label5" runat="server" CssClass="Label" Text="ÉóÅú±¸×¢"></asp:Label></td>
<td colspan="3" align="left">
<asp:TextBox ID="txtApproveMem" runat="server" CssClass="TextBox" Height="159px"
MaxLength="500" TextMode="MultiLine" Width="581px">
</asp:TextBox></td>
</tr>
<div runat="server" id="divApproveScore" visible="false">
<tr>
<td>
<asp:Label ID="Label111" runat="server" CssClass="Label" Text="ϵͳÆÀ·Ö"></asp:Label></td>
<td align="left">
<asp:TextBox ID="txtSystemScore" runat="server" CssClass="TextBox_Show" MaxLength="25"
Width="50px">
</asp:TextBox></td>
<td>
<asp:Label ID="Label201" runat="server" CssClass="Label" Text="ÇëÄúÆÀ·Ö" visible="true">
</asp:Label></td>
<td align="left">
<asp:TextBox ID="txtApproveScore" runat="server" CssClass="TextBox" MaxLength="25" CausesValidation="True" Width="1px" Text=1 visible="true"></asp:TextBox>
<cc1:NumericUpDownExtender ID="NumericUpDownExtender2" runat="server" Width="80" Step="0.1"
TargetControlID="txtApproveScore">
</cc1:NumericUpDownExtender>
<asp:RangeValidator id="RangeValidator1" runat="server" ControlToValidate="txtApproveScore"
ErrorMessage="ϵÊý·¶Î§ÔÊÐí0-1µÄÊý×Ö" MaximumValue="1" MinimumValue="0"
SetFocusOnError="True" ValidationGroup="1" Type="Double">*</asp:RangeValidator>
</td>
</tr>
<tr>
<td colspan=2 >
<asp:ValidationSummary id="ValidationSummary1" runat="server" ValidationGroup="1" HeaderText="´íÎóÌáʾ"></asp:ValidationSummary>
</td>
</tr>
</div>
<tr>
<td colspan="4" class="ALine">
</td>
</tr>
<tr>
<td colspan="4" align="center">
<div id="divApproveProject" runat="server" align="Center">
<asp:Button ID="btnApprove" runat="server" CssClass="Button" Text="ÉóÅúͨ¹ý" OnClick="btnApprove_Click1" />
<asp:Button ID="btnReject" runat="server" CssClass="Button" Text="ÉóÅú·´À¡" OnClick="btnReject_Click" />
</div>
</td>
</tr>
</div>
</table>
</asp:Content>