Budget.aspx #2

  • //
  • guest/
  • Necqui/
  • Documents/
  • Projects/
  • vsDotNet/
  • TKN/
  • WebProjects/
  • ProjectProposal/
  • Budget.aspx
  • View
  • Commits
  • Open Download .zip Download (9 KB)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Budget.aspx.cs" Inherits="Orders" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script language="javascript">
        if(self.location==top.location)self.location="Default.html";
    </script>
    <link href="styles/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <!--div>
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/admin/secure2.aspx" Width="119px">Admin</asp:HyperLink><br />
        <asp:TextBox ID="txtBudgetAccountId" runat="server" Enabled="false" Visible=true></asp:TextBox>
        <asp:TextBox ID="txtProjectId" runat="server" Enabled="false" Visible=true></asp:TextBox><br />
        <br />
     </div-->   
     
<!--div><asp:LoginName ID="LoginName5" runat="server" CssClass="Login"/></div-->
        <table  style="border:thin,10px;" id="detailedHeader" border=0 width="650px" >
            <tr align="left" valign="top" >
                <td style="width: 750px"  >
                     <asp:GridView ID="GridView1" runat="server"
                            AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Width="650px" ShowFooter="True"  DataKeyNames="ProjectId,BudgetAccountID" 
                            CellPadding="2" GridLines="None" ForeColor="#333333" BorderStyle="Inset" BorderWidth="1px"  
                            OnSelectedIndexChanged="GridView1_SelectedIndexChanged" 
                            OnRowUpdating="GridView1_RowUpdating" OnRowEditing="GridView1_RowEditing" 
                            OnRowUpdated="GridView1_RowUpdated" OnRowDataBound="GridView1_RowDataBound" 
                     >
                    <SelectedRowStyle BackColor="Beige" Font-Bold="False" ForeColor="#333333"/>
                    <FooterStyle BackColor="#1F314F" ForeColor="White" Font-Bold="True" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#1F314F"   ForeColor="White"/>
                   <EditRowStyle BackColor="LightSteelBlue"/>
                   <AlternatingRowStyle BackColor="White"  CssClass="oddRow" />
                    <Columns>
                        <asp:BoundField DataField="ProjectID" HeaderText="ProjectID" SortExpression="ProjectID" ReadOnly="True" Visible=False />
                        <asp:BoundField DataField="Project_RevenueID" HeaderText="Project_RevenueID" SortExpression="Project_RevenueID" ReadOnly="True" Visible=False />
                        <asp:BoundField DataField="BudgetAccountID" HeaderText="BudgetAccountID" ReadOnly="True"  SortExpression="BudgetAccountID" Visible=False  />
                        <asp:BoundField DataField="BudgetAccountCode" HeaderText="Code" 
                            SortExpression="BudgetAccountCode"  ReadOnly=True
                        >
                            <ItemStyle CssClass="DataBoundColumnWidth" />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BudgetAccountDescription" HeaderText="Description"  
                            SortExpression="BudgetAccountDescription" ReadOnly="True">
                            <ItemStyle CssClass="DataBoundColumnWidth" />
                            <HeaderStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        
                        <asp:BoundField DataField="ApprovedBudget" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" 
                            HeaderText="Approved O&S" SortExpression="ApprovedBudget" DataFormatString="{0:C}"  ApplyFormatInEditMode=true
                            ItemStyle-CssClass="DataBoundColumnWidth" ControlStyle-Width="100px" Visible="true"
                        />

                        <asp:BoundField DataField="Expected" 
                            HeaderText="Expected" SortExpression="Expected" DataFormatString="{0:C}"  ApplyFormatInEditMode=True 
                        >
                            <ControlStyle Width="100px" />
                            <ItemStyle CssClass="DataBoundColumnWidth" HorizontalAlign="Right" />
                            <HeaderStyle HorizontalAlign="Right" />
                        </asp:BoundField>

                        <asp:BoundField DataField="Actual" 
                            HeaderText="Actual" SortExpression="Actual" DataFormatString="{0:C}"  ApplyFormatInEditMode=True  
                        >
                            <ControlStyle Width="100px" />
                            <ItemStyle CssClass="DataBoundColumnWidth" HorizontalAlign="Right" />
                            <HeaderStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Variance" 
                            HeaderText="Variance" SortExpression="Variance" DataFormatString="{0:C}"  ApplyFormatInEditMode=True  ReadOnly=True
                        >
                            <ControlStyle Width="100px" />
                            <ItemStyle CssClass="DataBoundColumnWidth" HorizontalAlign="Right" />
                            <HeaderStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ParentWithChildren" 
                            HeaderText="HasChildren" SortExpression="ParentWithChildren" DataFormatString="{0:C}"  ApplyFormatInEditMode=True  ReadOnly=True Visible=False
                        >
                            <ControlStyle Width="100px" />
                            <ItemStyle CssClass="DataBoundColumnWidth" HorizontalAlign="Right" />
                            <HeaderStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                        <asp:CommandField ButtonType="Image" HeaderText="Edit" 
                            ShowEditButton=True EditImageUrl="~/Images/group.gif" 
                            CancelImageUrl="~/Images/undo_16_h.gif"  
                     
                            UpdateImageUrl="~/Images/save_16_h.gif" 
                        >
                            <HeaderStyle HorizontalAlign="Center" Width="50px" />
                            <ItemStyle HorizontalAlign="Center" Width="50px" />
                        </asp:CommandField>
                        <asp:HyperLinkField Target="_self" HeaderText="View Details..." Text="View Details..."
                            DataNavigateUrlFields="Project_RevenueId,BudgetAccountID"
                            DataNavigateUrlFormatString="OrderDetails.aspx?BudgetAccountID={0}&amp;Project_RevenueId={1}" Visible="False" 
                        />
                    </Columns>
                </asp:GridView>
                    
                <asp:SqlDataSource ID="SqlDataSource1" runat="server">
                 
                    <UpdateParameters>
                        <asp:Parameter Name="ProjectId" Type="Int32" ConvertEmptyStringToNull=true/>
                        <asp:Parameter Name="BudgetAccountID" Type="Int32" />
                        <asp:Parameter Name="ApprovedBudget" Type="Double" />
                        <asp:Parameter Name="Expected" Type="Double" />
                        <asp:Parameter Name="Actual" Type="Double" />
                    </UpdateParameters>
               </asp:SqlDataSource>
                </td>
                <td style="width: 517px">
                    &nbsp;
                
                </td>
            </tr>
        </table>
        <br />
        <asp:LoginView ID="LoginView1" runat="server">
              <AnonymousTemplate>
                 OMG, you are, like so not logged in!
             </AnonymousTemplate>
              
              <RoleGroups>
                <asp:RoleGroup Roles="RoleAdmin">
                  <ContentTemplate>
                    <asp:LoginName ID="LoginName4" runat="server" />
                        &nbsp;is viewing the <b>Admin Role </b>template.<br />
                        <hr />
                        <asp:LoginStatus ID="LoginStatus2" runat="server" />
                  </ContentTemplate>
                </asp:RoleGroup>
             </RoleGroups>
             
             <LoggedInTemplate>
                 <!-- You are logged in!! But, wait, you are not 
                 a member of any roles. -->
             </LoggedInTemplate>
        </asp:LoginView>
        &nbsp;&nbsp;
        <br />

        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>&nbsp;

    </form>
</body>
</html>
# Change User Description Committed
#2 21431 Necqui Updates
#1 21430 Necqui TKN Initial