<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="frm_EditarEmpresa.aspx.vb" Inherits="SGHweb.frm_EditarEmpresa" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
<script>
    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow)
            oWindow = window.radWindow;
        else if (window.frameElement.radWindow)
            oWindow = window.frameElement.radWindow;
        return oWindow;
    }

    function Close() {
        var oWindow = GetRadWindow();
        oWindow.argument = null;
        oWindow.close();
        return false;
    }
        </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" border="0px" style=" font-size:11px; border-right: #578533 1px solid; border-top: #578533 1px solid; border-left: #578533 1px solid; border-bottom: #578533 1px solid; width: 100%;">
                    <tr>
                        <td colspan="3" style="background-color: #cccccc; height: 3px;">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 3px; background-color: #cccccc; ">
                        </td>
                        <td style="background-color: #ffffff; width:99%">
                            <table style="font-weight: bold; font-size: 8pt; color: black; width: 100%" border="0">
                                <tr>
                                    <td align="center" colspan="4" style="width:100%">
                                        <telerik:RadToolBar ID="RadToolBar2" runat="server" Skin="WebBlue" Width="100%">
                                            <Items>
                                                <telerik:RadToolBarButton runat="server" Font-Names="Arial" Font-Size="9pt" ForeColor="White" ImageUrl="~/SIG/Resources/Update_Popup.png" Text="Guardar">
                                                </telerik:RadToolBarButton>
                                                <telerik:RadToolBarButton runat="server" Font-Names="Arial" Font-Size="9pt" ForeColor="White" ImageUrl="~/SIG/Resources/Cancel_PopUp.png" Text="Cancelar" CausesValidation="False" onclick="Close();">
                                                </telerik:RadToolBarButton>
                                            </Items>
                                        </telerik:RadToolBar>
                                        <table cellpadding="0" cellspacing="0" border="0" style="border-right: #578533 1px solid; border-left: #578533 1px solid; border-bottom: #578533 1px solid; width: 100%;">
                                            <tr>
                                                <td>
                                                    <table style="font-weight: bold; font-size: 8pt; color: black; width: 100%; font-family: Arial, Helvetica, sans-serif; margin-right: 7px;" border="0px">
                                                        <tr>
                                                            <td align="right" style="width: 30%">
                                                                Empresa Actual :&nbsp;
                                                            </td>
                                                            <td align="left" style="width: 70%" colspan="3">
                                                                <asp:Label ID="lblEmpresaActual" Width="50%" runat="server" Text="..."></asp:Label>
                                                              
                                                            </td>
                                                            
                                                        </tr>
                                                        <tr>
                                                            <td align="right" style="width: 30%">
                                                                Nueva Empresa :&nbsp;
                                                            </td>
                                                            <td align="left" style="width: 70%">
                                                                <telerik:RadAutoCompleteBox ID="txtNuevaEmpresa" runat="server" Width="50%" InputType="Text" DropDownWidth="150px" TextSettings-SelectionMode="Single" DataSourceID="SqlDataSourceEmpresas" 
                     DataValueField="empresaid" DataTextField="razonsocial"></telerik:RadAutoCompleteBox>
                                                                <asp:SqlDataSource ID="SqlDataSourceEmpresas" runat="server" 
                                                                 SelectCommand="SELECT EmpresaID, Ruc+' ('+Razonsocial+')' AS razonsocial FROM empresas WHERE estado = 0">
                                                                </asp:SqlDataSource>
                                                            </td>
                                                            
                                                        </tr>
                                                      
                                                        
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                               </table>
                        </td>
                        
                    </tr>
                    
                </table>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
    </div>
    </form>
</body>
</html>
