<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditCustomer.aspx.cs" Inherits="NikaiDSR.Controls.EditCustomer" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <telerik:RadCodeBlock ID="rb" runat="server">
        <script type="text/javascript">
            function GetRadWindow() {
                var oWindow = null;

                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)  

                return oWindow;
            }

            function RefreshParentPage() {
                GetRadWindow().Close();
                GetRadWindow().BrowserWindow.refreshGrid();
            }
        </script>
    </telerik:RadCodeBlock>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="ScriptManager" runat="server" />
        <telerik:RadAjaxManager ID="RadAjaxManager2" EnableAJAX="true" runat="server">
        </telerik:RadAjaxManager>
        <div class="content_holder" style="margin-top: 10px">
            <asp:HiddenField ID="hdnDsrHeaderID" runat="server" />

            <div class="bg_shadow" style="width: 90%; margin: auto">
                <telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server">
                    <div class="errMsg" id="errMsg" runat="server" style="display: none;">
                        <div class="errMsgText" id="errMsgText" runat="server"></div>
                        <br />
                    </div>
                    <table border="2" cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                            <td width="150px"><asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Res, Customer_Code%>" />
                            </td>
                            <td>:
                                <telerik:RadTextBox ID="txtCustomerCode" runat="server" MaxLength="25" />
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Res, Customer_Name_English%>" /><span id="label1" class="mand_style">*</span>
                            </td>
                            <td>:
                                <telerik:RadTextBox ID="txtCustomerNameEn" runat="server" MaxLength="25" />
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Res, Customer_Name_Arabic%>" /><span id="Span1" class="mand_style">*</span>
                            </td>
                            <td>:
                                <telerik:RadTextBox ID="txtCustomerNameAr" runat="server" MaxLength="25" />
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Res, Business_Type%>" />
                            </td>
                            <td>:
                            <telerik:RadComboBox ID="cmbBusinessType" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Res, Customer_Type%>" />
                            </td>
                            <td>:
                            <telerik:RadComboBox ID="cmbCustomerType" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Res, Customer_Group%>" />
                            </td>
                            <td>:
                            <telerik:RadComboBox ID="cmbCustomerGroup" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Res, Location%>" />*
                            </td>
                            <td>:
                            <telerik:RadComboBox ID="cmbLocation" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Res, Sales_Channel%>" />
                            </td>
                            <td>:
                            <telerik:RadComboBox ID="cmbSalesChannel" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Res, Key_Account%>" />
                            </td>
                            <td>:
                                <asp:RadioButtonList ID="rbtKeyAccount" runat="server">
                                    <asp:ListItem Text="<%$ Resources:Res, Yes%>" Value="1" Selected="True"/>
                                    <asp:ListItem Text="<%$ Resources:Res, No%>" Value="2" />
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <%--<tr>
                            <td><asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Res, Status%>" />
                            </td>
                            <td>:
                                <asp:RadioButtonList ID="rbtStatus" runat="server">
                                    <asp:ListItem Text="<%$ Resources:Res, Active%>" Value="1" Selected="True"/>
                                    <asp:ListItem Text="<%$ Resources:Res, InActive%>" Value="2" />
                                </asp:RadioButtonList>
                            </td>
                        </tr>--%>
                        <tr>
                            <td></td>
                            <td>:
                            <asp:Button ID="btnSave" runat="server" Text="<%$ Resources:Res, Save%>" OnClick="btnSave_Click" OnClientClick="this.disabled = true; this.value = '<%$ Resources:Res, Submitting%>';" />
                            </td>
                        </tr>
                    </table>
                </telerik:RadAjaxPanel>
            </div>
        </div>
    </form>
</body>
</html>

