<%@ Page Language="C#" MasterPageFile="~/CITAD.Master" 
    AutoEventWireup="true" 
    Codebehind="frmCIInformation.aspx.cs"
    Inherits="CITAD.Modules.ThongTinHeThongNganHang.Web.frmCIInformation" 
    Title="Thông tin hệ thống ngân hàng"
    Culture="auto" 
    meta:resourcekey="PageResource1" 
    UICulture="auto" %>

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

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<script language ="javascript" type ="text/javascript" >
		window.onload = function()
		{
            var ctl = document.getElementById('<%=txtSetupCode.ClientID%>');
            try
            {
                if(ctl) ctl.focus();
            }
            catch(err){}            
        }	
    </script>        
    <div style="text-align:left;width:770px;">
        <cc1:ToolkitScriptManager runat="Server" EnableScriptGlobalization="True" EnablePageMethods="true"
            EnableScriptLocalization="True" ID="ScriptManager1" CombineScripts="True" />

        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            <div style="text-align:left;width:770px;"></div>
                <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="375px">
                    <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="Th&#244;ng tin chung" meta:resourcekey="TabPanel1Resource1">
                        <ContentTemplate>
                <table >
                    <tr>
                        <td style="width: 317px" align="right">
                            <asp:Label ID="lblSetupCode" runat="server" Text="Mã cài đặt" meta:resourcekey="lblSetupCodeResource1"></asp:Label>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtSetupCode" runat="server" Style="text-align: right;" Width="100px"
                                MaxLength="8" CssClass="citad-txt"></asp:TextBox>
                        </td>
                        <td >
                            <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="rfvTextSetupCode" runat="server" ControlToValidate="txtSetupCode"
                            ErrorMessage="Mã cài đặt của ngân hàng không được để trống" ValidationGroup="TTHeThongNganHang"
                            Display="Dynamic" SetFocusOnError="True" meta:resourcekey="rfvTextSetupCodeResource1"></asp:RequiredFieldValidator></td>
                         
                    </tr>
                    <tr>
                        <td style="width: 317px" align="right">
                            <asp:Label ID="lblO_CI_Code" runat="server" Text="Mã ngân hàng" meta:resourcekey="lblO_CI_CodeResource1"></asp:Label>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtO_CI_Code" runat="server" Style="text-align: right;" Width="100px"
                                MaxLength="12" meta:resourcekey="txtO_CI_CodeResource1" CssClass="citad-txt"></asp:TextBox>
                        </td>
                        <td >
                            <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="rfvTextO_CI_Code" runat="server" ControlToValidate="txtO_CI_Code"
                            ErrorMessage="Mã ngân hàng không được để trống" ValidationGroup="TTHeThongNganHang"
                            Display="Dynamic" SetFocusOnError="True" meta:resourcekey="rfvTextO_CI_CodeResource1"></asp:RequiredFieldValidator></td>
                         
                    </tr>
                    <tr>
                        <td style="width: 317px" align="right">
                            <asp:Label ID="Label2" runat="server" Text="Mã trung tâm xử lý tỉnh"
                                meta:resourcekey="Label2Resource1"></asp:Label>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtO_RPC_ID" runat="server" Style="text-align: right;" Width="100px"
                                MaxLength="5" meta:resourcekey="txtO_RPC_ID_CodeResource1" CssClass="citad-txt"></asp:TextBox></td>
                        <td >
                            <asp:Label ID="Label6" runat="server" ForeColor="Red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="rfvtxtO_RPC_ID" runat="server" ControlToValidate="txtO_RPC_ID"
                            ErrorMessage="Phải nhập mã trung tâm xử lý tỉnh" ValidationGroup="TTHeThongNganHang"
                            Display="Dynamic" SetFocusOnError="True" meta:resourcekey="rfvtxtO_RPC_IDResource1"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td style="width: 317px" align="right">
                            <asp:Label ID="lblTAD_ID" runat="server" Text="TAD ID" meta:resourcekey="lblTAD_IDResource1"></asp:Label>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtTAD_ID" runat="server" Style="text-align: right;" Width="100px"
                                MaxLength="5" meta:resourcekey="txtTAD_IDResource1" CssClass="citad-txt"></asp:TextBox></td>
                        <td >
                            <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="rfvTextTAD_ID" runat="server" ControlToValidate="txtTAD_ID"
                            ErrorMessage="TAD ID không được để trống" ValidationGroup="TTHeThongNganHang"
                            Display="Dynamic" SetFocusOnError="True" meta:resourcekey="rfvTextTAD_IDResource1"></asp:RequiredFieldValidator></td>
                        
                    </tr>
                    <tr>
                        <td style="width: 317px" align="right">
                            <asp:Label ID="lblPeriod_LogOff" runat="server" Text="Khoảng thời gian khóa hệ thống"
                                meta:resourcekey="lblPeriod_LogOffResource1"></asp:Label>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtPeriod_LogOff" runat="server" Style="text-align: right;" meta:resourcekey="txtPeriod_LogOffResource1" Width="100px" CssClass="citad-txt"></asp:TextBox></td>
                        <td >
                            <asp:Label ID="Label5" runat="server" ForeColor="Red" Text="*"></asp:Label>
                            <asp:Label ID="lblMinute" runat="server" Text="(phút)" meta:resourcekey="lblMinuteResource1"></asp:Label>&nbsp;
                        </td>
                       
                    </tr>
                    <tr>
                        <td style="width: 317px" align="right">
                            <asp:Label ID="lblTrx_Serial" runat="server" Text="Nhập lại số hiệu giao dịch "
                                meta:resourcekey="lblTrx_SerialResource1"></asp:Label>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtTrx_Serial" runat="server" Style="text-align: right;" meta:resourcekey="txtTrx_SerialResource1" Width="100px" CssClass="citad-txt"></asp:TextBox></td>
                        <td >
                            <asp:Label ID="lblSerial_No_des" runat="server" meta:resourcekey="lblSerial_No_desResource1" Text="(dùng khi cài lại chương trình trong ngày làm việc)"></asp:Label></td>
                    </tr>
                    <tr>
                        <td style="width: 317px" align="right">
                            <asp:Label ID="lblGridSize" runat="server" Text="Số dòng dữ liệu trên lưới" meta:resourcekey="lblGridSizeResource1" Font-Names="arial"></asp:Label>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtGridSize" runat="server" meta:resourcekey="txtGridSizeResource1"
                                Style="text-align: right" Width="100px" CssClass="citad-txt"></asp:TextBox></td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 317px">
                            <asp:Label ID="lblAutoApproveTimeout" runat="server" meta:resourcekey="lblAutoApproveTimeoutResource1" Text="Thời gian tự động duyệt"></asp:Label>&nbsp;</td>
                        <td>
                            <asp:TextBox ID="txtAutoApproveTimeout" runat="server" meta:resourcekey="txtGridSizeResource1"
                                Style="text-align: right" Width="100px" CssClass="citad-txt"></asp:TextBox></td>
                        <td>
                            <asp:Label ID="lblSecond" runat="server" meta:resourcekey="lblSecondResource1"
                                Text="Giây"></asp:Label>
                            <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtAutoApproveTimeout"
                                ErrorMessage="Nhập số (number) 1 - 9999" MaximumValue="9999" MinimumValue="1" SetFocusOnError="True"
                                Type="Integer" ValidationGroup="TTHeThongNganHang"></asp:RangeValidator></td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 317px">
                        </td>
                        <td colspan="2">
                            <asp:CheckBox ID="chkORG_READONLY" runat="server" Text="Kế toán giao dịch có thể sửa dữ liệu"
                                meta:resourcekey="chkORG_READONLYResource1" /></td>
                    </tr>
                   <%-- <tr>
                        <td style="width: 317px" align="right">
                            </td>
                        <td colspan="2">
                            <asp:CheckBox ID="chkUseCigtw" runat="server" Text="Có sử dụng CI Gateway" meta:resourcekey="chkUseCigtw" /></td>
                    </tr>--%>
                    <tr>
                        <td align="right" style="width: 317px">
                        </td>
                        <td colspan="2">
                            <asp:CheckBox ID="chkUSE_PALMVEIN" runat="server" Text="Có sử dụng PALMVEIN" meta:resourcekey="chkUSE_PALMVEINResource1" Visible="False" /></td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 317px">
                        </td>
                        <td colspan="2">
                            <asp:CheckBox ID="chkR_No_Format" runat="server" Text="Định dạng số bút toán kiểu số" meta:resourcekey="chkR_No_FormatResource1" /></td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 317px">
                        </td>
                        <td colspan="2">
                            <asp:CheckBox ID="chkWRITE_LOG" runat="server" Text="Ghi log lỗi" meta:resourcekey="chkWRITE_LOGResource1" /></td>
                    </tr>
                    
                     <tr>
                        <td style="width: 317px" align="right">
                            </td>
                        <td colspan="2">
                            <asp:CheckBox ID="chkUseCigtw" runat="server" Text="Có sử dụng CI Gateway" meta:resourcekey="chkUseCigtw" /></td>
                    </tr>
                     <tr>
                        <td style="width: 317px" align="right">
                            </td>
                        <td colspan="2">
                            <asp:CheckBox ID="chkImpLetter" runat="server" Text="Import/export Tra soát qua GTW" meta:resourcekey="chkImpLetter" /></td>
                    </tr> <tr>
                        <td style="width: 317px" align="right">
                            </td>
                        <td colspan="2">
                            <asp:CheckBox ID="chkAutoAppr" runat="server" Text="Ký duyệt tự động" AutoPostBack ="true" OnCheckedChanged ="chkAutoAppr_CheckedChanged"  meta:resourcekey="chkAutoAppr" /></td>
                    </tr>
                    <tr>
                        <td align="right" style="width: 317px">
                        </td>
                        <td colspan="2">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 317px">
                        </td>
                        <td colspan="2">
                            <asp:Label ID="lblWarning" runat="server" ForeColor="Red" Text="* : Dữ liệu bắt buộc nhập" meta:resourcekey="lblWarningResource1"></asp:Label></td>
                    </tr>
                </table>
                <cc1:FilteredTextBoxExtender ID="ftbOPRT1" runat="server" 
                TargetControlID="txtGridSize"
                FilterType="Numbers" Enabled="True"
                />
                            &nbsp;&nbsp;
                            <cc1:FilteredTextBoxExtender ID="ftbtxtAutoApproveTimeout" runat="server" 
                TargetControlID="txtAutoApproveTimeout"
                FilterType="Numbers" Enabled="True"
                />
                        </ContentTemplate>
                    </cc1:TabPanel>
                    <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="In ấn" meta:resourcekey="TabPanel2Resource1">
                        <ContentTemplate>
                        <fieldset style="padding:6px;">
                            <legend>
                                <asp:Label ID="Label9" runat="server" Text="In giấy báo" meta:resourcekey="Label9Resource1"></asp:Label>
                            </legend>
                            <table class="grid" cellspacing="0" cellpadding="1" rules="all" border="1" style="border-collapse:collapse;">
                                <tr>
                                    <td style="width: 142px" class="grid-header">
                                    </td>
                                    <td style="width: 90px; text-align: center;" class="grid-header">
                                        <asp:Label ID="lblInGiayBaoHeaderDi" runat="server" Text="Giao dịch đi" meta:resourcekey="lblInGiayBaoHeaderDiResource1"></asp:Label>
                                    </td>
                                    <td style="width: 90px; text-align: center;" class="grid-header">
                                        <asp:Label ID="lblInGiayBaoHeaderDen" runat="server" Text="Giao dịch đến" meta:resourcekey="lblInGiayBaoHeaderDenResource1"></asp:Label>
                                    </td>
                                    <td class="grid-header" style="text-align: center">
                                        <asp:Label ID="lblInGiayBaoHeaderDescription" runat="server" Text="Chú thích" meta:resourcekey="lblInGiayBaoHeaderDescriptionResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 142px">
                                        <asp:Label ID="lblSoLienBanChinh" runat="server" Text="Số liên bản chính" meta:resourcekey="lblSoLienBanChinhResource1"></asp:Label>
                                    </td>
                                    <td style="width: 90px; text-align: center;">
                                        <asp:TextBox ID="txtSoLienBanChinhDi" runat="server" Width="60px" MaxLength="1" CssClass="citad-txt"></asp:TextBox>
                                    </td>
                                    <td style="width: 90px; text-align: center;">
                                        <asp:TextBox ID="txtSoLienBanChinhDen" runat="server" Width="60px" MaxLength="1" CssClass="citad-txt"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblInLienBanChinhComment" runat="server" Text="Nhập số nguyên từ 1 - 4" meta:resourcekey="lblInLienBanChinhCommentResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 142px">
                                        <asp:Label ID="lblSoLienBanSao" runat="server" Text="Số liên bản sao" meta:resourcekey="lblSoLienBanSaoResource1"></asp:Label>
                                    </td>
                                    <td style="width: 90px; text-align: center;">
                                        <asp:TextBox ID="txtSoLienBanSaoDi" runat="server" Width="60px" MaxLength="1" CssClass="citad-txt"></asp:TextBox>
                                    </td>
                                    <td style="width: 90px; text-align: center;">
                                        <asp:TextBox ID="txtSoLienBanSaoDen" runat="server" Width="60px" MaxLength="1" CssClass="citad-txt"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblInLienBanSaoComment" runat="server" Text="Nhập số nguyên từ 1 - 4" meta:resourcekey="lblInLienBanSaoCommentResource1"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 142px">
                                        <asp:Label ID="lblInTren1Trang" runat="server" Text="In 1 bản trên 1 trang A4" meta:resourcekey="lblInTren1TrangResource1"></asp:Label>
                                    </td>
                                    <td style="width: 90px; text-align: center;">
                                        <asp:CheckBox ID="chkIn1BanDi" runat="server" Text=" " />
                                    </td>
                                    <td style="width: 90px; text-align: center;">
                                        <asp:CheckBox ID="chkIn1BanDen" runat="server" Text=" " />
                                    </td>
                                    <td style="text-align: left">
                                        <asp:Label ID="lblIn1BanComment" runat="server" Text="Đánh dấu để in một giao dịch trên 1 trang A4" meta:resourcekey="lblIn1BanCommentResource1"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txtSoLienBanChinhDi" ValidChars="1234" Enabled="True">
                            </cc1:FilteredTextBoxExtender>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="txtSoLienBanChinhDen" ValidChars="1234" Enabled="True">
                            </cc1:FilteredTextBoxExtender>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="txtSoLienBanSaoDi" ValidChars="1234" Enabled="True">
                            </cc1:FilteredTextBoxExtender>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" TargetControlID="txtSoLienBanSaoDen" ValidChars="1234" Enabled="True">
                            </cc1:FilteredTextBoxExtender>
                            <cc1:NumericUpDownExtender ID="NumericUpDownExtender2" runat="server" TargetControlID="txtSoLienBanChinhDi" Width="60" Maximum="4" Minimum="1" Enabled="True" RefValues="" ServiceDownMethod="" ServiceDownPath="" ServiceUpMethod="" Tag="" TargetButtonDownID="" TargetButtonUpID="">
                            </cc1:NumericUpDownExtender>
                            <cc1:NumericUpDownExtender ID="NumericUpDownExtender3" runat="server" TargetControlID="txtSoLienBanChinhDen" Width="60" Maximum="4" Minimum="1" Enabled="True" RefValues="" ServiceDownMethod="" ServiceDownPath="" ServiceUpMethod="" Tag="" TargetButtonDownID="" TargetButtonUpID="">
                            </cc1:NumericUpDownExtender>
                            <cc1:NumericUpDownExtender ID="NumericUpDownExtender4" runat="server" TargetControlID="txtSoLienBanSaoDi" Width="60" Maximum="4" Minimum="1" Enabled="True" RefValues="" ServiceDownMethod="" ServiceDownPath="" ServiceUpMethod="" Tag="" TargetButtonDownID="" TargetButtonUpID="">
                            </cc1:NumericUpDownExtender>
                            <cc1:NumericUpDownExtender ID="NumericUpDownExtender5" runat="server" TargetControlID="txtSoLienBanSaoDen" Width="60" Maximum="4" Minimum="1" Enabled="True" RefValues="" ServiceDownMethod="" ServiceDownPath="" ServiceUpMethod="" Tag="" TargetButtonDownID="" TargetButtonUpID="">
                            </cc1:NumericUpDownExtender>                            
                        </ContentTemplate>
                    </cc1:TabPanel>
                </cc1:TabContainer>
                <div style="text-align:center;margin:5px;">
                    <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="Ghi" Width="80px"
                        ValidationGroup="TTHeThongNganHang" meta:resourcekey="btnSaveResource1" CssClass="citad-btn" />
                    <asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click" Text="Đóng" Width="80px"
                    meta:resourcekey="btnCloseResource1" CssClass="citad-btn" /><br />
                </div>
                <uc1:MessageBox ID="MessageBox1" runat="server" />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>