<%@ Page Language="C#" AutoEventWireup="true"  
    MasterPageFile ="~/CITAD.Master" 
    CodeBehind="NhapLuyKe.aspx.cs" 
    Inherits="CITAD.Modules.NhapLuyKe.Web.NhapLuyKe" 
    Culture="auto" 
    meta:resourcekey="PageResource1" 
    UICulture="auto" 
    Title="Nhập lũy kế"%>

<%@ Register Src="../../Controls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" 
        EnableScriptGlobalization="True"
        EnableScriptLocalization="True" 
        CombineScripts="True" 
        EnablePageMethods="true" />

    <div style="width:770px;">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Width="756px">
        <ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1" meta:resourcekey="TabPanel1Resource1">
            <ContentTemplate>
        <table width="100%">
            <tr>
                <td colspan="2">
                <fieldset style="margin-bottom:5px;">
                    <table>
                        <tr>
                            <td align="right" style="width: 200px">
                                <asp:Label ID="Label1" runat="server" Text="Đến ngày" meta:resourcekey="Label1Resource1" ></asp:Label></td>
                            <td style="width: 150px">
                                <asp:TextBox runat="server" ID="dtpDate" ForeColor="Red" style="text-align:right"  AutoPostBack="True" OnTextChanged="dtpDate_TextChanged" Width="80px" meta:resourcekey="dtpDateResource1" CssClass="citad-txt" />
                                <asp:ImageButton ID="imgCalendar" runat="server" ImageUrl="~/Images/Calendar.png"
                                    meta:resourcekey="imgCalendarResource1" /></td>
                            <td style="width: 100px">
                                <asp:RadioButton ID="rdbDay" GroupName ="Group1" runat="server" Text="Ngày" meta:resourcekey="rdbDayResource1" AutoPostBack="True" OnCheckedChanged="rdbDay_CheckedChanged" /></td>
                            <td style="width: 100px">
                                <asp:RadioButton ID="rdbMonth" GroupName ="Group1" runat="server" Text="Tháng" meta:resourcekey="rdbMonthResource1" AutoPostBack="True" OnCheckedChanged="rdbMonth_CheckedChanged" Checked="True" /></td>
                            <td>
                                <asp:RadioButton ID="rdbYear" GroupName ="Group1" runat="server" Text="Năm" meta:resourcekey="rdbYearResource1" AutoPostBack="True" OnCheckedChanged="rdbYear_CheckedChanged" /></td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset style="padding:5px;font-weight:bold;">
                    <asp:Label ID="lblThongBao" runat="server" Text="Nhập giá trị lũy kế từ ngày đầu tháng đến ngày chọn -1"></asp:Label>
                </fieldset>
                </td>
            </tr>
            <tr>
                <td style="width:50%;">
                    <fieldset>
                        <legend>
                            <asp:Label ID="lblHF" runat="server" meta:resourcekey="lblHFResource1"></asp:Label>
                        </legend>
                        <table width ="100%">
                            <tr>
                                <td style="width: 120px;" align="right">
                                    <asp:Label ID="lblNoDi_HF" runat="server" Text="Nợ Đi" meta:resourcekey="lblNoDi_HFResource1"></asp:Label></td>
                                <td style="text-align: left;" align="right">
                                    <asp:TextBox ID="txtDR_Out_HF" runat="server" ForeColor="Red" style="text-align:right" Width="200px" meta:resourcekey="txtDR_Out_HFResource1" CssClass="citad-txt" onchange="javascript:fcnAmountBlur(this);"></asp:TextBox></td> 
                            </tr>
                            <tr>
                                <td style="width: 120px;" align="right">
                                    <asp:Label ID="lblNoDen_HF" runat="server" Text="Nợ Đến" meta:resourcekey="lblNoDen_HFResource1"></asp:Label></td>
                                <td style="text-align: left;" align="right">
                                    <asp:TextBox ID="txtDR_In_HF" runat="server" CssClass="citad-txt " ForeColor="Red" style="text-align:right" Width="200px" meta:resourcekey="txtDR_In_HFResource1" onchange="javascript:fcnAmountBlur(this);"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 120px;" align="right">
                                    <asp:Label ID="lblCoDi_HF" runat="server" Text="Có Đi" meta:resourcekey="lblCoDi_HFResource1" ></asp:Label></td>
                                <td style="text-align: left;" align="right">
                                    <asp:TextBox ID="txtCR_Out_HF" runat="server" CssClass="citad-txt " ForeColor="Red" style="text-align:right" Width="200px" meta:resourcekey="txtCR_Out_HFResource1" onchange="javascript:fcnAmountBlur(this);"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 120px;" align="right">
                                    <asp:Label ID="lblCoDen_HF" runat="server" Text="Có Đến" meta:resourcekey="lblCoDen_HFResource1"></asp:Label></td>
                                <td style="text-align: left;" align="right">
                                    <asp:TextBox ID="txtCr_In_HF" runat="server" CssClass="citad-txt " ForeColor="Red" style="text-align:right" Width="200px" meta:resourcekey="txtCr_In_HFResource1" onchange="javascript:fcnAmountBlur(this);"></asp:TextBox></td>
                            </tr>
                        </table>
                    </fieldset>
                </td>
                <td style="width:50%;">
                    <fieldset>
                        <legend>
                            <asp:Label ID="lblLF" runat="server" meta:resourcekey="lblLFResource1"></asp:Label>
                        </legend>
                        <table>
                                <tr>
                                    <td style="width: 120px;" align="right">
                                        <asp:Label ID="lblNoDi_LF" runat="server" meta:resourcekey="lblNoDi_LFResource1"
                                            Text="Nợ Đi"></asp:Label></td>
                                    <td align="right" style="text-align: left">
                                        <asp:TextBox ID="txtDR_Out_LF" runat="server" CssClass="citad-txt " ForeColor="Red"
                                            meta:resourcekey="txtDR_Out_LFResource1" Style="text-align: right" Width="200px" onchange="javascript:fcnAmountBlur(this);"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 120px;" align="right">
                                        <asp:Label ID="lblNoDen_LF" runat="server" meta:resourcekey="lblNoDen_LFResource1"
                                            Text="Nợ Đến"></asp:Label></td>
                                    <td align="right" style="text-align: left">
                                        <asp:TextBox ID="txtDR_In_LF" runat="server" CssClass="citad-txt " ForeColor="Red"
                                            meta:resourcekey="txtDR_In_LFResource1" Style="text-align: right" Width="200px" onchange="javascript:fcnAmountBlur(this);"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 120px;" align="right">
                                        <asp:Label ID="lblCoDi_LF" runat="server" meta:resourcekey="lblCoDi_LFResource1"
                                            Text="Có Đi"></asp:Label></td>
                                    <td align="right" style="text-align: left">
                                        <asp:TextBox ID="txtCR_Out_LF" runat="server" CssClass="citad-txt " ForeColor="Red"
                                            meta:resourcekey="txtCR_Out_LFResource1" Style="text-align: right" Width="200px" onchange="javascript:fcnAmountBlur(this);"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td style="width: 120px;" align="right">
                                        <asp:Label ID="lblCoDen_LF" runat="server" meta:resourcekey="lblCoDen_LFResource1"
                                            Text="Có Đến"></asp:Label></td>
                                    <td align="right" style="text-align: left">
                                        <asp:TextBox ID="txtCr_In_LF" runat="server" CssClass="citad-txt " ForeColor="Red"
                                            meta:resourcekey="txtCr_In_LFResource1" Style="text-align: right" Width="200px" onchange="javascript:fcnAmountBlur(this);"></asp:TextBox></td>
                                </tr>
                            </table>
                    </fieldset>
                </td>
            </tr>
        </table>            
        <div style="text-align:center;">
            <asp:Button ID="btnSave" runat="server" Text="Ghi Lại" Width="85px" OnClick="btnSave_Click" meta:resourcekey="btnSaveResource1" />&nbsp;
            <asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click" Text="Thoát" Width="85px" meta:resourcekey="btnCloseResource1"  />
        </div>
        
        <ajaxToolkit:CalendarExtender ID="defaultCalendarExtender" 
                runat="server" 
                TargetControlID="dtpDate" 
                Enabled="True" 
                Format="dd/MM/yyyy" 
                PopupButtonID="imgCalendar" />
        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender1" runat="server" 
            TargetControlID="dtpDate" 
            Mask="99/99/9999" 
            MaskType="Date" 
            Enabled="True" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" />
            <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender2" runat="server"
            TargetControlID="txtDR_Out_HF" 
            Mask="9,999,999,999,999,999,999,999" 
            MaskType="Number" 
            InputDirection="RightToLeft"
            ErrorTooltipEnabled="True"
            CultureName="vi-VN" 
            Enabled="True"
            AutoComplete="False" CultureAMPMPlaceholder="SA;CH" CultureCurrencySymbolPlaceholder="₫" CultureDateFormat="DMY" CultureDatePlaceholder="/" CultureDecimalPlaceholder="," CultureThousandsPlaceholder="." CultureTimePlaceholder=":" />
        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender3" runat="server"
            TargetControlID="txtDR_In_HF" 
            Mask="9,999,999,999,999,999,999,999" 
            MaskType="Number" 
            InputDirection="RightToLeft"
            ErrorTooltipEnabled="True"
            CultureName="vi-VN" 
            Enabled="True"
            AutoComplete="False" CultureAMPMPlaceholder="SA;CH" CultureCurrencySymbolPlaceholder="₫" CultureDateFormat="DMY" CultureDatePlaceholder="/" CultureDecimalPlaceholder="," CultureThousandsPlaceholder="." CultureTimePlaceholder=":" />  
        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender4" runat="server"
            TargetControlID="txtCR_Out_HF" 
            Mask="9,999,999,999,999,999,999,999" 
            MaskType="Number" 
            InputDirection="RightToLeft"
            ErrorTooltipEnabled="True"
            CultureName="vi-VN" 
            Enabled="True"
            AutoComplete="False" CultureAMPMPlaceholder="SA;CH" CultureCurrencySymbolPlaceholder="₫" CultureDateFormat="DMY" CultureDatePlaceholder="/" CultureDecimalPlaceholder="," CultureThousandsPlaceholder="." CultureTimePlaceholder=":" />  
        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender5" runat="server"
            TargetControlID="txtCr_In_HF" 
            Mask="9,999,999,999,999,999,999,999" 
            MaskType="Number" 
            InputDirection="RightToLeft"
            ErrorTooltipEnabled="True"
            CultureName="vi-VN" 
            Enabled="True"
            AutoComplete="False" CultureAMPMPlaceholder="SA;CH" CultureCurrencySymbolPlaceholder="₫" CultureDateFormat="DMY" CultureDatePlaceholder="/" CultureDecimalPlaceholder="," CultureThousandsPlaceholder="." CultureTimePlaceholder=":" />
        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender6" runat="server"
            TargetControlID="txtDR_Out_LF" 
            Mask="9,999,999,999,999,999,999,999" 
            MaskType="Number" 
            InputDirection="RightToLeft"
            ErrorTooltipEnabled="True"
            CultureName="vi-VN" 
            Enabled="True"
            AutoComplete="False" CultureAMPMPlaceholder="SA;CH" CultureCurrencySymbolPlaceholder="₫" CultureDateFormat="DMY" CultureDatePlaceholder="/" CultureDecimalPlaceholder="," CultureThousandsPlaceholder="." CultureTimePlaceholder=":" />
        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender7" runat="server"
            TargetControlID="txtDR_In_LF" 
            Mask="9,999,999,999,999,999,999,999" 
            MaskType="Number" 
            InputDirection="RightToLeft"
            ErrorTooltipEnabled="True"
            CultureName="vi-VN" 
            Enabled="True"
            AutoComplete="False" CultureAMPMPlaceholder="SA;CH" CultureCurrencySymbolPlaceholder="₫" CultureDateFormat="DMY" CultureDatePlaceholder="/" CultureDecimalPlaceholder="," CultureThousandsPlaceholder="." CultureTimePlaceholder=":" />
        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender8" runat="server"
            TargetControlID="txtCR_Out_LF" 
            Mask="9,999,999,999,999,999,999,999" 
            MaskType="Number" 
            InputDirection="RightToLeft"
            ErrorTooltipEnabled="True"
            CultureName="vi-VN" 
            Enabled="True"
            AutoComplete="False" CultureAMPMPlaceholder="SA;CH" CultureCurrencySymbolPlaceholder="₫" CultureDateFormat="DMY" CultureDatePlaceholder="/" CultureDecimalPlaceholder="," CultureThousandsPlaceholder="." CultureTimePlaceholder=":" />
        <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender9" runat="server"
            TargetControlID="txtCr_In_LF" 
            Mask="9,999,999,999,999,999,999,999" 
            MaskType="Number" 
            InputDirection="RightToLeft"
            ErrorTooltipEnabled="True"
            CultureName="vi-VN" 
            Enabled="True"
            AutoComplete="False" CultureAMPMPlaceholder="SA;CH" CultureCurrencySymbolPlaceholder="₫" CultureDateFormat="DMY" CultureDatePlaceholder="/" CultureDecimalPlaceholder="," CultureThousandsPlaceholder="." CultureTimePlaceholder=":" />
        </ContentTemplate>
        </ajaxToolkit:TabPanel>
        <ajaxToolkit:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2" meta:resourcekey="TabPanel2Resource1">
            <ContentTemplate>
                <div style="text-align:center;">
                <table style="width: 400px;text-align:left;">
                    <tr>
                        <td style="width: 108px">
                            <asp:Label ID="lblFromDate" runat="server" Text="Từ ngày" meta:resourcekey="lblFromDateResource1"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtFromDate" runat="server" CssClass="citad-txt"></asp:TextBox>
                            <asp:ImageButton ID="imgFromDate" runat="server" ImageUrl="~/Images/Calendar.png"
                                    meta:resourcekey="imgCalendarResource1" /></td>
                    </tr>
                    <tr>
                        <td style="width: 108px">
                            <asp:Label ID="lblToDate" runat="server" Text="Đến hết ngày" meta:resourcekey="lblToDateResource1"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtToDate" runat="server" CssClass="citad-txt"></asp:TextBox>
                            <asp:ImageButton ID="imgToDate" runat="server" ImageUrl="~/Images/Calendar.png"
                                    meta:resourcekey="imgCalendarResource1" /></td>
                    </tr>
                    <tr>
                        <td style="width: 108px">
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <asp:Button ID="btnSave2" runat="server" CssClass="citad-btn" Text="Ghi" OnClick="btnSave2_Click" meta:resourcekey="btnSave2Resource1" />
                            <asp:Button ID="btnClose2" runat="server" CssClass="citad-btn" Text="Thoát" OnClick="btnClose2_Click" meta:resourcekey="btnClose2Resource1" />
                        </td>
                    </tr>
                </table>
                </div>
                <ajaxToolkit:CalendarExtender ID="CalendarExtender1" 
                    runat="server" 
                    TargetControlID="txtFromDate" 
                    Enabled="True" 
                    Format="dd/MM/yyyy" 
                    PopupButtonID="imgFromDate" />
                <ajaxToolkit:CalendarExtender ID="CalendarExtender2" 
                    runat="server" 
                    TargetControlID="txtToDate" 
                    Enabled="True" 
                    Format="dd/MM/yyyy" 
                    PopupButtonID="imgToDate" />
                <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender10" runat="server" 
                    TargetControlID="txtFromDate" 
                    Mask="99/99/9999" 
                    MaskType="Date" 
                    Enabled="True" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" />
                <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender11" runat="server" 
                    TargetControlID="txtToDate" 
                    Mask="99/99/9999" 
                    MaskType="Date" 
                    Enabled="True" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder="" />
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
    </ajaxToolkit:TabContainer>
    <uc1:MessageBox ID="MessageBox1" runat="server" />
    </ContentTemplate>
    </asp:UpdatePanel>
    </div>
</asp:Content> 