<%@ page language="C#" autoeventwireup="true" inherits="BusinessUnitMaster, App_Web_businessunitmaster.aspx.de3fb1ff" enableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/UserControls/iERPToolBar.ascx" TagName="iERPToolBar" TagPrefix="dsit" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head id="Head1" runat="server">
    <title>..:: ICDAS 2.1 ::..</title>
    
    <meta http-equiv="X-UA-Compatible" content="IE=9" />

    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/js_functions.js"> </script>

    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/ScreenSaverStar.js"> </script>

    <script type="text/javascript" language="javascript">
        function resizeObject() {
            var w = getBrowserWindowSize().width;
            var h = getBrowserWindowSize().height - 5;
            //window.resizeTo(w,h);

            var cObj = document.getElementById("divChildBody");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 10) + "px";
                //cObj.style.width = parseInt(w) +"px";
            }
            hideWait();
        }

        function validateRecord() {
            var doc = document.forms[0];
            if (Trim(doc.txtBusinessUnitName.value.trim()) == "") {
                alert("Please Enter Name...");
                document.forms[0].txtBusinessUnitName.focus()
                return false;
            }
            else {
                return true;
            }
        }			
    </script>

    <style type="text/css">
        .modalBackground
        {
            background-color: #e6e6e6;
            filter: alpha(opacity=60);
            opacity: 0.60;
        }
    </style>
</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onload="resizeObject(); resizeHolder(); init(); initScreenSaver('1',<%=Session["AutoLogOutTime"]%>);">
    <form id="Form1" runat="server" class="formbg" target="_blank">
    <asp:ToolkitScriptManager runat="Server" EnablePartialRendering="true" AsyncPostBackTimeout="0"
        ID="ToolkitScriptManager1" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" class="formbg">
        <tr>
            <td valign="top" align="left">
                <div id="divMainBody" align="center" runat="server" width="100%" height="100%">
                    <div id="divHeader" runat="server" style="border-style: none; height: 26px; width: 100%;
                        position: absolute; left: 1px; top: 8px;" align="center">
                        <dsit:iERPToolBar ID="iERPToolBar1" runat="server" PageAccess="11111" />
                    </div>
                    <asp:UpdatePanel ID="uplChildBody" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                            <asp:HiddenField ID="hdnRecordKeyId" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnRecordIds" runat="server" Value="" />
                            <asp:HiddenField ID="hdnUserId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBusinessUnitId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBranchId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnActivationKey" runat="server" Value="" />
                            <%--<asp:Panel ID="divChildBody" ScrollBars="Vertical" runat="server" width="100%">--%>
                            <div id="divChildBody" runat="server" style="overflow: auto; width: 99%;">
                                <table width="100%" align="left" cellpadding="1" cellspacing="1" class="tablefont">
                                    <tr height="62px">
                                        <td colspan="4">
                                            &nbsp
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                            Name*
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtBusinessUnitName" runat="server" Width="99%" MaxLength="30"></asp:TextBox>
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td align="left">
                                            <asp:Label ID="lblBusinessUnitCode" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr id="trSoftKey" runat="server" visible="false">
                                        <td width="10%">
                                            Soft Key
                                        </td>
                                        <td colspan="3">
                                            <asp:Label ID="lblSoftKey" runat="server" Text="Soft Key Not Generated Yet, Please Start Service To Generate Soft Key"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                            Activation Key
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtActivationKey" runat="server" MaxLength="24" Width="200"></asp:TextBox>
                                            &nbsp;<asp:Label ID="lblActivationStatus" runat="server" Text=""></asp:Label>
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td align="left">
                                            <asp:CheckBox ID="chkContinueDemo" runat="server" Width="99%" Text=" Continue Demo"
                                                Visible="false"></asp:CheckBox>
                                        </td>
                                    </tr>
                                    <tr style="display: none">
                                        <td width="10%">
                                            Restart Local Service
                                        </td>
                                        <td width="40%">
                                            <asp:DropDownList ID="cmbRestartService" runat="server">
                                                <asp:ListItem Text="No" Value="0" Selected="True" />
                                                <asp:ListItem Text="Yes" Value="1" />
                                            </asp:DropDownList>
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td align="left">
                                        </td>
                                    </tr>
                                </table>
                                <asp:Button ID="hiddenButton" runat="server" Style="display: none" />
                                <asp:ModalPopupExtender ID="modalProgress" runat="server" PopupControlID="pnlWait"
                                    TargetControlID="hiddenButton" BackgroundCssClass="modalBackground">
                                </asp:ModalPopupExtender>
                                <asp:Timer ID="tmrWait" Enabled="false" runat="server" Interval="20000" OnTick="tmrWait_Tick">
                                </asp:Timer>
                            </div>
                            <%--</asp:Panel>--%>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="tmrWait" EventName="tick" />
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
                <div>
                    <asp:Panel ID="pnlWait" runat="server">
                        <table>
                            <tr>
                                <td>
                                    <img src="../Images/AnimatedProgressBar.gif" border="0" />
                                    <asp:Label ID="lblloading" runat="server" Text="...Please Wait..." CssClass="blink-text"
                                        Width="100%"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
