<%@ Page Language="C#" MasterPageFile="~/MasterFile/TimeCheck.master" AutoEventWireup="true" CodeFile="TA_UI_Transactions_YearClosure.aspx.cs" Inherits="Transactions_TA_UI_Transactions_YearClosure"  %>
<asp:Content ID="ConYearColsure" ContentPlaceHolderID="BodyContentPH" Runat="Server">
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="500">
        <tr>
            <td valign="top" width="4%">
                <img height="15" src="../Images/corner1.gif" width="15" /></td>
            <td background="../Images/sideline.gif" bgcolor="#EAEAEA" valign="top" width="92%">
                <img height="1" src="../Images/spacer.gif" width="1" /></td>
            <td valign="top" width="4%">
                <img height="15" src="../Images/corner2.gif" width="15" /></td>
        </tr>
        <tr>
            <td background="../Images/line.gif">
                &nbsp;</td>
            <td bgcolor="#EAEAEA" valign="top" width="500">
                <table align="center" border="0" cellpadding="2" cellspacing="2" width="500">
                    <tr>
                        <td align="left" class="ModuleTitle" colspan="4" valign="top">
                            <asp:Label ID="lbl_Header" runat="server"></asp:Label></td>
                    </tr>
                    <tr>
                        <td align="center" class="td" width="500">
                            <asp:GridView ID="grv_YearClosure" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CssClass="td" DataSourceID="ObjectDataSource1" Width="500px" CellPadding="4">
                                <Columns>
                                    <asp:TemplateField HeaderText="Month Closure Id" Visible="False">
                                        <ItemTemplate>
                                            <asp:Label ID="lblMOnthCloseID" runat="server" Text='<%# Eval("MonthClosure_Id") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Company" SortExpression="Company_Name">
                                        <ItemTemplate>
                                            <asp:Label ID="lblCompanyname" runat="server" Text='<%# Eval("Company_Name") %>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Region" SortExpression="Region_Name">
                                        <ItemTemplate>
                                            <asp:Label ID="lblRegionname" runat="server" Text='<%# Eval("Region_Name") %>'>
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Branch" SortExpression="Branch_Name">
                                        <ItemTemplate>
                                            <a href="TA_UI_Transactions_MonthClosureView.aspx?MonthClose_Id=<%# Eval("MonthClosure_Id") %>">
                                                <asp:Label ID="lblBranchname" runat="server" Text='<%# Eval("Branch_Name") %>'>
                                                </asp:Label></a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Month Closure Date" SortExpression="MonthClosure_ClosingDate">
                                        <ItemTemplate>
                                            <asp:Label ID="lblMonthCloseDate" runat="server" Text='<%# Eval("MonthClosure_ClosingDate") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle Height="30px" />
                                <PagerStyle Font-Overline="False" Font-Size="Smaller" HorizontalAlign="Right" VerticalAlign="Bottom" />
                                <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NumericFirstLast" NextPageText="Next" PreviousPageText="&lt;" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2" valign="bottom">
                            <table align="center" border="0" cellpadding="2" cellspacing="0">
                                <tr>
                                    <td align="center" valign="middle">
                                        <asp:Button ID="btn_add" runat="server" OnClick="btn_add_Click" />
                                        </td>
                                </tr>
                            </table>
                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="deleteMonthCloseDetails" InsertMethod="InsertMonthClosureDetails" SelectMethod="SelectMonthCloseDetails" TypeName="MonthClosureEventData" UpdateMethod="UpdateMonthClosureDetails">
                                <DeleteParameters>
                                    <asp:Parameter Name="MonthCloseID" Type="Int32" />
                                </DeleteParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="MonthClosureID" Type="Int32" />
                                    <asp:Parameter Name="companyID" Type="Int32" />
                                    <asp:Parameter Name="regionID" Type="Int32" />
                                    <asp:Parameter Name="branchID" Type="Int32" />
                                    <asp:Parameter Name="Month" Type="String" />
                                    <asp:Parameter Name="Year" Type="Int32" />
                                    <asp:Parameter Name="startDate" Type="String" />
                                    <asp:Parameter Name="EndDate" Type="String" />
                                    <asp:Parameter Name="ClosingDate" Type="String" />
                                </UpdateParameters>
                                <InsertParameters>
                                    <asp:Parameter Name="companyID" Type="Int32" />
                                    <asp:Parameter Name="regionID" Type="Int32" />
                                    <asp:Parameter Name="branchID" Type="Int32" />
                                    <asp:Parameter Name="Month" Type="String" />
                                    <asp:Parameter Name="Year" Type="Int32" />
                                    <asp:Parameter Name="startDate" Type="String" />
                                    <asp:Parameter Name="EndDate" Type="String" />
                                    <asp:Parameter Name="ClosingDate" Type="String" />
                                </InsertParameters>
                            </asp:ObjectDataSource>
                        </td>
                    </tr>
                </table>
            </td>
            <td background="../Images/line1.gif">
                &nbsp;</td>
        </tr>
        <tr>
            <td valign="bottom" width="4%">
                <img height="16" src="../Images/corner3.gif" width="15" /></td>
            <td background="../Images/sideline1.gif" bgcolor="#EAEAEA" valign="bottom" width="92%">
                <img height="1" src="../Images/spacer.gif" width="1" /></td>
            <td valign="bottom" width="4%">
                <img height="16" src="../Images/corner4.gif" width="15" /></td>
        </tr>
    </table>
</asp:Content>

