225 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			225 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
|  | <%@ Page Language="C#" MasterPageFile="../masterPage.master" AutoEventWireup="true" CodeFile="ProjectsQuery.aspx.cs" Inherits="ProjectsQuery"   EnableEventValidation = "false"%> | |||
|  | <%@ 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" %> | |||
|  | <EFBFBD><EFBFBD> | |||
|  | <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> | |||
|  | <table width="100%" class="Table_NoBorder"> | |||
|  |      | |||
|  |     <tr><td> | |||
|  |     <table width="100%"  class="Table_Border" border=0> | |||
|  |      <tr> | |||
|  |             <td colspan="3"> | |||
|  |              <table width="90%" class="Table_NoBorder"> | |||
|  |                     <tr> | |||
|  |                         <td colspan="13" align="center"> | |||
|  |                             <cc1:NumericUpDownExtender ID="NumericUpDownExtender1" runat="server" Width="80" | |||
|  |                                 TargetControlID="btnYear"> | |||
|  |                             </cc1:NumericUpDownExtender> | |||
|  |                               | |||
|  |                         </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">ȫ<><C8AB></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="1" Selected="True">1<><31></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="2">2<><32></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="3">3<><33></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="4">4<><34></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="5">5<><35></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="6">6<><36></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="7">7<><37></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="8">8<><38></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="9">9<><39></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="10">10<31><30></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="11">11<31><31></asp:ListItem> | |||
|  |                                 <asp:ListItem Value="12">12<31><32></asp:ListItem> | |||
|  |                             </asp:RadioButtonList></td> | |||
|  |                     </tr> | |||
|  |                 </table> | |||
|  |                  </td> | |||
|  |         </tr> | |||
|  |         <tr> | |||
|  |         <td colspan="3" class ="ALine"></td> | |||
|  |         </tr> | |||
|  |          | |||
|  |     <tr><td width="50" height="200" align="left"  valign="top"> | |||
|  |        <!--div   style= "width:200px;height:600px;overflow:scroll "-->  | |||
|  |         <asp:TreeView ID="TreeDeptEmp" runat="server" ShowLines="True" OnSelectedNodeChanged="TreeDeptEmp_SelectedNodeChanged" ImageSet="Arrows"> | |||
|  |             <Nodes> | |||
|  |                 <asp:TreeNode Text="WMSȫ<53><C8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" Value="0" Expanded="True" Selected="True"></asp:TreeNode> | |||
|  |             </Nodes> | |||
|  |             <SelectedNodeStyle BackColor="Azure" BorderColor="Transparent" /> | |||
|  |         </asp:TreeView> | |||
|  |       <!--/div--> | |||
|  |     </td> | |||
|  |     <td class="VLine"  ></td> | |||
|  |     <td    align="left" valign="top" width="800"> <!------ THE DATA GRID AREA ------> | |||
|  |         | |||
|  |        <table width="100%"> | |||
|  |         <tr> | |||
|  |                         <td > <20><>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD> </td>   | |||
|  |            </tr> | |||
|  |        <tr> | |||
|  |        <td> | |||
|  |        <asp:GridView id="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" | |||
|  |             CssClass="DataGrid"  EmptyDataText="û<><C3BB><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>" OnPageIndexChanging="GridView1_PageIndexChanging" | |||
|  |          <20><> OnSorting="GridView1_Sorting" | |||
|  |          <20><> OnSelectedIndexChanged="GridView1_SelectedIndexChanged" | |||
|  |          <20><> DataKeyNames="ID"  | |||
|  |             PagerStyle-HorizontalAlign="Right" PageSize="10" ShowFooter="True" Width="99%"> | |||
|  |             <selectedrowstyle cssclass="SelectedItemStyle" /> | |||
|  |             <headerstyle cssclass="HeaderStyle" horizontalalign="Left" /> | |||
|  |             <rowstyle cssclass="ItemStyle" horizontalalign="left" /> | |||
|  |             <alternatingrowstyle cssclass="AlternatingItemStyle" /> | |||
|  |             <columns> | |||
|  | 				<asp:BoundField   DataField="ID" HeaderText="empid" Visible="false" >  </asp:BoundField> | |||
|  | 		                                                       <20><> | |||
|  | 				 | |||
|  | 				<asp:BoundField DataField="EM_NAME" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" SortExpression="EM_NAME"     > | |||
|  |                     <ItemStyle    Wrap="False" /> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField><asp:BoundField DataField="dep_name" HeaderText="<22><><EFBFBD><EFBFBD>"  ItemStyle-HorizontalAlign ="Left" SortExpression="dep_name"  > | |||
|  |                     <ItemStyle    Wrap="False" /> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  |                  | |||
|  |                  | |||
|  |                  <asp:BoundField DataField="de_title" HeaderText="ְ<><D6B0>"  ItemStyle-HorizontalAlign ="Left" SortExpression="de_title"  > | |||
|  |                     <ItemStyle    Wrap="False" /> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  |                  | |||
|  | 				<asp:BoundField DataField="pd_period" HeaderText="ʱ<><CAB1>"  ItemStyle-HorizontalAlign ="Left" SortExpression="pd_period"  > | |||
|  |                     <ItemStyle    Wrap="False" /> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 				    | |||
|  | 				  | |||
|  |                | |||
|  | 			 	 <asp:BoundField DataField="total_score" HeaderText="<22>ܵ÷<DCB5>" SortExpression="total_score"    > <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/></asp:BoundField> | |||
|  | 			  | |||
|  | 			  | |||
|  | 				<asp:CommandField HeaderText="<22><>ϸ" ShowDeleteButton="FALSE"  <20><> | |||
|  | 				ShowHeader="True" ShowSelectButton="True" SelectText="<img src=../Images/detail.gif border=0 title=<3D>鿴<EFBFBD><E9BFB4>Ŀ  >"> | |||
|  |                     <HeaderStyle HorizontalAlign="Center"   /> | |||
|  |                     <ItemStyle HorizontalAlign="Center"   Wrap="False"  /> | |||
|  |                 </asp:CommandField> | |||
|  | 			</columns> | |||
|  |             <pagerstyle horizontalalign="Right" /> | |||
|  |             <emptydatatemplate> û<><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD></emptydatatemplate> | |||
|  |              </asp:GridView><asp:Button id="Button1" runat="server" CssClass="Button" onclick="Excel_Click" | |||
|  |             Text="<22><><EFBFBD><EFBFBD>Excel" /> | |||
|  |              | |||
|  |        </td> | |||
|  |        </tr> | |||
|  |         | |||
|  |         <tr > | |||
|  |        <td class="ALine"> | |||
|  |         | |||
|  |        </td> | |||
|  |        </tr> | |||
|  |         <tr> | |||
|  |                         <td > <20><>Ŀ<EFBFBD><C4BF>ϸ </td>   | |||
|  |            </tr> | |||
|  |         <tr> | |||
|  |        <td> | |||
|  |         | |||
|  |             <div runat="Server" id="projectDetail" > | |||
|  |          <asp:GridView id="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False" | |||
|  |             CssClass="DataGrid" DataKeyNames="pk_projDetail" EmptyDataText="û<><C3BB><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>" OnPageIndexChanging="GridView2_PageIndexChanging" | |||
|  |               | |||
|  |              | |||
|  |             PagerStyle-HorizontalAlign="Right" PageSize="10" ShowFooter="True" Width="99%"> | |||
|  |             <selectedrowstyle cssclass="SelectedItemStyle" /> | |||
|  |             <headerstyle cssclass="HeaderStyle" horizontalalign="Left" /> | |||
|  |             <rowstyle cssclass="ItemStyle" horizontalalign="left" /> | |||
|  |             <alternatingrowstyle cssclass="AlternatingItemStyle" /> | |||
|  |             <columns> | |||
|  | 				<asp:BoundField   DataField="pk_projDetail" HeaderText="pdid"  visible="false">  </asp:BoundField> | |||
|  | 		                                                          | |||
|  | 				<asp:BoundField DataField="PJ_NAME" HeaderText="<22><>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>" SortExpression="PJ_NAME"> | |||
|  |                     <ItemStyle    Wrap="False" /> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 				<asp:BoundField DataField="EM_NAME" HeaderText="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" SortExpression="EM_NAME"     > | |||
|  |                     <ItemStyle    Wrap="False" /> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField><asp:BoundField DataField="dep_name" HeaderText="<22><><EFBFBD><EFBFBD>"  ItemStyle-HorizontalAlign ="Left" SortExpression="dep_name"  > | |||
|  |                     <ItemStyle    Wrap="False" /> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 				  | |||
|  | 				<asp:BoundField DataField="pd_month" HeaderText="<22>·<EFBFBD>" 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="<22><>ĿȨ<C4BF><C8A8>" SortExpression="PJ_PERCENT"> | |||
|  |                     <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 				<asp:BoundField DataField="pd_percent" HeaderText="<22><>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>" SortExpression="PJ_PROGRESS" > | |||
|  |                     <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                 </asp:BoundField> | |||
|  | 				<asp:BoundField DataField="pj_finishDate" HeaderText="ʵ<><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>" 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="<22><>Ŀ״̬" SortExpression="pj_status"   > <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/></asp:BoundField> | |||
|  | 			 	 <asp:BoundField DataField="pd_status" HeaderText="<22>¶<EFBFBD>״̬" SortExpression="pd_status"   > <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/></asp:BoundField> | |||
|  | 			  <asp:BoundField DataField="pj_score" HeaderText="<22><>Ŀ<EFBFBD>÷<EFBFBD>" SortExpression="pd_status"    > <ItemStyle Wrap="False" HorizontalAlign="Center"/> | |||
|  |                     <HeaderStyle Wrap="False" HorizontalAlign="Center"/></asp:BoundField> | |||
|  | 			  | |||
|  | 			  | |||
|  | 				 | |||
|  | 			</columns> | |||
|  |             <emptydatatemplate> û<><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD></emptydatatemplate> | |||
|  |             <pagerstyle horizontalalign="Right" /> | |||
|  |         </asp:GridView> | |||
|  |         <asp:Button id="Button2" runat="server" CssClass="Button" onclick="Excel_Click2" | |||
|  |             Text="<22><><EFBFBD><EFBFBD>Excel" /> | |||
|  |          </div> | |||
|  |         | |||
|  |        </td> | |||
|  |        </tr> | |||
|  |         <tr > | |||
|  |        <td class="ALine"> | |||
|  |         | |||
|  |        </td> | |||
|  |        </tr> | |||
|  |        </table> | |||
|  |           | |||
|  |             </td> | |||
|  |              </tr> | |||
|  |           <tr> | |||
|  |                         <td colspan="3" class="ALine" />     | |||
|  |            </tr> | |||
|  |              | |||
|  |             <tr> | |||
|  |                         <td colspan="3" align="left" valign="top"> | |||
|  |                                | |||
|  |               | |||
|  |        | |||
|  |        </td></tr> | |||
|  |     | |||
|  |          | |||
|  |    </table> | |||
|  |    </td></tr> | |||
|  |  </table>    | |||
|  |  </asp:Content> | |||
|  | 
 |