<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="EmpresasTransporteWUC.ascx.vb" Inherits="SGHweb.EmpresasTransporteWUC" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
    .style1
    {
        width: 209px;
    }
    
</style>

<center>
<table style="border-style: hidden; width: 90%"  class="FondoUC">
    <tr>
        <td align="left">
            <div style="border-right: #464646 1px solid; border-left: #464646 1px solid; border-bottom: #464646 1px solid">
                <table style="width: 100%" >
                    <tr>
                        <td align="center" 
                            style="font-size: 10pt; color: #464646; font-family: Arial; font-weight: bold;">
                            EMPRESAS DE TRANSPORTE</td>
                    </tr>
                    <tr>
                        <td style=" width:50%; vertical-align:top">
                            <table style="font-size: 9pt; width: 100%; color: #464646; font-family: Arial; background-color: #fcfcfc; text-align: center; " 
                                cellspacing="4">
                                   
                                   <tr>
                                    <td style="text-align:right;" class="style1" >
                                        Nombre :&nbsp;
                                    </td>
                                    <td style="text-align:left;">
                                        <asp:TextBox ID="Nombretxt" runat="server" Width="79%"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align:right;" class="style1" >
                                       Dirección :&nbsp;
                                    </td>
                                    <td style="text-align:left;">
                                        <asp:TextBox ID="Dirtxt" runat="server" Width="79%" CausesValidation="True" 
                                            MaxLength="150"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align:right;" class="style1" >
                                       Ruc :&nbsp;
                                    </td>
                                    <td style="text-align:left;">
                                        <asp:TextBox ID="Ructxt" runat="server" Width="79%" CausesValidation="True" 
                                            MaxLength="11"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align:right;" class="style1" >
                                       Medio de Transporte :&nbsp;
                                    </td>
                                    <td style="text-align:left;">
                                        <asp:DropDownList ID="cboTrans" runat="server" Width="79%" 
                                        CausesValidation="True" DataSourceID="SqlDataSource1_medioT" 
                                            DataTextField="NombreTransporte" DataValueField="TransporteID"></asp:DropDownList>
                                        <asp:SqlDataSource ID="SqlDataSource1_medioT" runat="server" 
                                            SelectCommand="SELECT LTRIM(RTRIM(TransporteID)) AS TransporteID, NombreTransporte FROM [Transportes]"></asp:SqlDataSource>
                                    </td>
                                </tr>
                                
                            </table>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ForeColor="#CC0000" ControlToValidate="Nombretxt" 
                                ErrorMessage="INGRESE UN NOMBRE ::" Font-Size="10pt"></asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ForeColor="#CC0000" ControlToValidate="Ructxt" ErrorMessage="INGRESE UN RUC ::" 
                                Font-Size="10pt"  MaximumValue="99999999999" MinimumValue="11111111111"></asp:RequiredFieldValidator>
                            <asp:RangeValidator ID="RangeValidator1" runat="server" 
                                ControlToValidate="Ructxt" ErrorMessage="El RUC debe tener 11 dígitos." 
                                 MaximumValue="99999999999" MinimumValue="00000000000" 
                                 Type="Double" ForeColor="#CC0000"></asp:RangeValidator>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" Type="Double" ControlToValidate="Ructxt" 
                            ErrorMessage="INGRESE SOLO NUMEROS ::" Font-Size="10pt" ForeColor="#CC0000" 
                                Operator="DataTypeCheck"></asp:CompareValidator>
                        </td>
                    </tr>
                </table> 
            </div>
            <div style="border-right: #464646 1px solid; border-left: #464646 1px solid; width: 100%; border-bottom: #464646 1px solid; 
                background-color: lightblue; text-align: center;">
                <asp:ImageButton ID="ImageButton2" runat="server" CommandName="PerformInsert" ImageUrl="~/SIG/Resources/Update.png"
                    ToolTip="Insertar" Visible="<%# (TypeOf DataItem is Telerik.Web.UI.GridInsertionObject) %>" />&nbsp;
                <asp:ImageButton ID="ImageButton3" runat="server" CommandName="Update" ImageUrl="~/SIG/Resources/Update.png"
                    ToolTip="Actualizar" Visible="<%# Not (TypeOf DataItem is Telerik.Web.UI.GridInsertionObject) %>" />&nbsp;
                <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Cancel"
                    ImageUrl="~/SIG/Resources/Cancel.png" ToolTip="Cancelar" />
            </div>
        </td>
    </tr>
</table>
</center>