All pastes #636197 Raw Edit

Untitled

public text v1 · immutable
#636197 ·published 2007-07-27 18:32 UTC
rendered paste body
<%@ Page Language="C#" Theme="Default" EnableEventValidation="False" MasterPageFile="~/MasterPages/dds.master" AutoEventWireup="True"  CodeFile="Default.aspx.cs" Inherits="Project_Default" Title="Cord Project List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Project Selection Page</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <h5>Project List</h5>
    <h5><div style="color:Black">Project Currently Selected: </div></h5>
    <asp:Label id="LB_FormMSG" EnableViewState="False" ForeColor="Black" Runat="Server"/>
    <p>Please Select a Project from the following list:</p>
     <data:GridViewSearchPanel runat="Server"
        ID="ProjectGridViewSearchPanel"
        GridViewControlID="ProjectGridView"
        Visible="True" >
        <FieldsToExclude>
            <data:Field Value="ProjectId" />
            <data:Field Value="CustomerId" />
        </FieldsToExclude>
    </data:GridViewSearchPanel><br />
     
	<data:EntityGridView runat="Server"
	    ID="ProjectGridView"
		AutoGenerateColumns="False"
		OnSelectedIndexChanged="ProjectGridView_SelectedIndexChanged"
		DataSourceID="ProjectViewDataSource"
		DataKeyNames="ProjectId"
		AllowSorting="True"
		AllowMultiColumnSorting="True"
		DefaultSortColumnName="ProjectName"
		DefaultSortDirection="Ascending"
		AllowExportToExcel="True"
		ExcelExportFileName="ProjectList.xls"
		ExportToolTip="Export Project to Excel File"
		ExportToExcelText="Excel"
		PageSelectorPageSizeInterval="10" >
		<Columns>
			<asp:CommandField ShowSelectButton="True" ShowEditButton="False" />
			<asp:BoundField DataField="ProjectName" HeaderText="Project Name" SortExpression="ProjectName" />
			<asp:BoundField DataField="CustomerName" HeaderText="Customer" SortExpression="CustomerName" />
			<asp:BoundField DataField="TotalDrawings" HeaderText="Total Drawings" SortExpression="TotalDrawings" />
			<asp:BoundField DataField="TotalSpools" HeaderText="Total Spools" SortExpression="TotalSpools" />
			<asp:BoundField DataField="TotalWelds" HeaderText="Total Welds" SortExpression="TotalWelds" />
			<asp:BoundField DataField="Status" HeaderText="Active" SortExpression="Status" />
		</Columns>
		<EmptyDataTemplate>
			<b>No Project Found!</b>
		</EmptyDataTemplate>
	</data:EntityGridView><br />
    <asp:Button runat="Server" ID="BT_AddProject" Text="Add Project" OnClick="BT_AddProject_Click" />
    <asp:Button runat="server" ID="BT_Drawings" Text="Go To Drawings" OnClick="BT_Drawings_Click" />
    <asp:Button runat="server" ID="BT_Spools" Text="Go To Spools" OnClick="BT_Spools_Click" />
      <br />
    
    <data:ProjectVwDataSource runat="Server"
        ID="ProjectViewDataSource"
        SelectMethod="GetPaged"
        EnablePaging="True"
		EnableSorting="True" >
		<Parameters>
            <data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="False" />
            <data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="False" />
            <asp:ControlParameter Name="PageIndex" ControlID="ProjectGridView" PropertyName="PageIndex" Type="Int32" />
			<asp:ControlParameter Name="PageSize" ControlID="ProjectGridView" PropertyName="PageSize" Type="Int32" />
			<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
		</Parameters>
	</data:ProjectVwDataSource>
	<asp:Panel ID="ExcelPanel" runat="server" Width="319px">
	    <h5>Upload Excel</h5>
	    <asp:FileUpload runat="Server" ID="FileUpload" />
	    <asp:Button runat="server" ID="uploadExcel" Text="Upload" OnClick="uploadExcel_Click" /><br />
	    <asp:Label runat="server" Text="" ID="excelMessages" />
    </asp:Panel>
</asp:Content>