<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="AfrmPendientesWUC.ascx.vb" Inherits="SGHweb.AfrmPendientesWUC" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<style type="text/css">
    .style1
    {
        width: 160px;
    }
</style>

<center>
<table width="100%" border="0px">
    <tr>
        <td style=" width:80%">
        <center>
            <table style="border-style: hidden; width: 99%"  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%" border="0px">
                                <tr>
                                    <td colspan="2" align="center" 
                                        style="font-size: 10pt; color: #464646; font-family: Arial; font-weight: bold;">
                                        DATOS DEL CASO
                                    </td>
                                </tr>
                                <tr>
                                    <td style=" width:50%">
                                        <table style="font-size: 9pt; width: 100%; color: #464646; font-family: Arial; background-color: #fcfcfc; text-align: center; " 
                                        cellspacing="4" border="0">
                                            <tr>
                                                <td colspan="2" style="text-align:center">
                                                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" 
                                                        RepeatDirection="Horizontal" Width="70%">
                                                        <asp:ListItem Selected="True" Value="1">Empresa</asp:ListItem>
                                                        <asp:ListItem Value="2">Area</asp:ListItem>
                                                        <asp:ListItem Value="3">Habitacion</asp:ListItem>
                                                        <asp:ListItem Value="4">Trabajador</asp:ListItem>
                                                    </asp:RadioButtonList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:right;" class="style1" >
                                                    <asp:Label ID="etiquetaLB" runat="server" Text="Razon Comercial :"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td style="text-align:left;">
                                                    <asp:Panel ID="Pempresa" runat="server">
                                                        <asp:DropDownList ID="razonComercialCB" runat="server" Width="99%"
                                                            DataSourceID="SDS_empresaCombo" DataTextField="razoncomercial" 
                                                            DataValueField="empresaid" AutoPostBack="True" BackColor="#6297BC">
                                                        </asp:DropDownList>
                                                    </asp:Panel>
                                                    <asp:Panel ID="Parea" runat="server">
                                                        <asp:DropDownList ID="areadbCB" runat="server" DataSourceID="SDS_areasComboDB" 
                                                            DataTextField="NombreArea" DataValueField="areaId" AutoPostBack="True">
                                                        </asp:DropDownList>
                                                    </asp:Panel>
                                                    <asp:Panel ID="Phabitacion" runat="server">
                                                        <asp:DropDownList ID="habitacionCB" runat="server" 
                                                            DataSourceID="SDS_habitacionCombo" DataTextField="NroHabitacion" 
                                                            DataValueField="HabitacionId">
                                                        </asp:DropDownList>
                                                    </asp:Panel>
                                                    <asp:Panel ID="Ptrabajador" runat="server">
                                                        <asp:DropDownList ID="trabajadorCB" runat="server" 
                                                            DataSourceID="SDS_TrabajadorCombo" DataTextField="NombreTrabajador" 
                                                            DataValueField="TrabajadorId">
                                                        </asp:DropDownList>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:right;" >
                                                    <asp:Label ID="etiquetaLB2" runat="server" Text="Razon Social :"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td style="text-align:left;" >
                                                    <asp:Label ID="razonSocialLB" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <%--************************************--%>
                                            <tr>
                                                <td style="text-align:right; vertical-align:top" >
                                                    Consulta :&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td style="text-align:left; ">
                                                    <asp:TextBox ID="casoTB" runat="server" Rows="5" TextMode="MultiLine" 
                                                        Width="90%"></asp:TextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td style="border-left: #464646 1px solid; width:50%">
                                        <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;" >
                                                    Prioridad :&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td style="text-align:left; ">
                                                    <asp:DropDownList ID="prioridadDB" runat="server" 
                                                        DataSourceID="SDS_prioridad" DataTextField="nombre" 
                                                        DataValueField="prioridadID" EmptyMessage="Choose a Region" 
                                                         Width="80%">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:right;" class="style1" >
                                                    Fecha Liminte :&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td style="text-align:left; ">
                                                    <telerik:RadDatePicker ID="fechaLimiteRTP" Runat="server" MinDate="2013-01-01" 
                                                        BorderStyle="None" Culture="es-ES" 
                                                        FocusedDate="2013-01-01" MaxDate="2020-12-31" Skin="WebBlue" 
                                                        Enabled="False" >
                                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" 
                                                            Skin="WebBlue"></Calendar>
                                                        <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" LabelWidth="40%"></DateInput>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </telerik:RadDatePicker>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:right;" >
                                                    <asp:Label ID="contactoLB" runat="server" Text="Contacto :"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td style="text-align:left;">
                                                    <asp:Panel ID="Panel3" runat="server">
                                                        <asp:DropDownList ID="contactoCB" runat="server" 
                                                            DataSourceID="SDS_combocontacto" DataTextField="nombreApellido" 
                                                            DataValueField="contactoid" Width="80%">
                                                        </asp:DropDownList>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:right;" >
                                                    Categoria :&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td style="text-align:left; ">
                                                    <asp:DropDownList ID="tipoMaestroCB" runat="server" Width="80%" 
                                                        DataSourceID="SDS_tipoMaestro" DataTextField="nombre" 
                                                        DataValueField="tipoMaestroID" AutoPostBack="true">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:right;" >
                                                    Tipo :&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td style="text-align:left; ">
                                                    <asp:DropDownList ID="tipoCB" runat="server" DataSourceID="SDS_tipo" 
                                                        DataTextField="nombre" DataValueField="tipoid" AutoPostBack="True"
                                                         Width="80%">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="text-align:right;" >
                                                    Responsable :&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                                <td style="text-align:left; ">
                                                    <asp:DropDownList ID="responsableCB" runat="server" 
                                                        DataSourceID="SDS_responsable" DataTextField="NombreUsuario" 
                                                        DataValueField="UsuarioID"
                                                         Width="80%">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <%--<td style="border-left: #464646 1px solid; width:20%; vertical-align:top">
                                        <table border="1">
                                            <tr>
                                                <td>
                                                    ss
                                                </td>
                                            </tr>
                                        </table>
                                    </td>--%>
                                </tr>
                            </table>
                            <%--VALIDACIONES--%>
                            <asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator1" runat="server" ControlToValidate="tipoCB"  InitialValue = "0"
                                    ErrorMessage="Seleccione un Tipo ::" Display="None" ></asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator2" runat="server" ControlToValidate="responsableCB"  InitialValue = "0"
                                    ErrorMessage="Seleccione un Responsable ::" Display="None" ></asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator3" runat="server" ControlToValidate="prioridadDB"  InitialValue = "0"
                                    ErrorMessage="Seleccione el nivel de Prioridad ::" Display="None" ></asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator4" runat="server" ControlToValidate="casoTB" Display="None"
                                    ErrorMessage="Ingrese cual es el caso ::">
                            </asp:RequiredFieldValidator>
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                                ShowMessageBox="False" ShowSummary="True" ForeColor="#CC0000" />
                        </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:Panel ID="Panel2" runat="server">
                                <div style=" vertical-align:top">
                                    <table width="100%" border="0px" style="">
                                        <tr>
                                            <td style="width:20%; padding-left:20px" align="left">
                                                <asp:Label ID="mantenimientoLB" runat="server" Font-Bold="True" 
                                                    style="color: #CC0000"></asp:Label>
                                            </td>
                                            <td style="width:40%; padding-right:20px" align="right">
                                                <asp:CheckBox ID="finalizadoCHB" runat="server" 
                                                    Text="El caso se ha finalizado? " TextAlign="Left"/>        
                                            </td>
                                            <td style="width:40%; padding-right:20px" align="right">
                                                <asp:Label ID="envioMailLB" runat="server" Font-Bold="True" 
                                                    style="color: #CC0000"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </asp:Panel>
                            <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>
                    <asp:Panel ID="Panel1" runat="server">
                        <div style="border-right: #464646 1px solid; border-left: #464646 1px solid; border-bottom: #464646 1px solid">
                            <table style="width: 100%" >
                                    <tr>
                                        <td colspan="2" align="center" 
                            
                                            style="font-size: 10pt; color: #464646; font-family: Arial; font-weight: bold;">
                                            DATOS DE LA SOLUCION
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width:50%">
                                            <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; with:12%" class="style1" >
                                                        Hora de Inicio :&nbsp;&nbsp;&nbsp;&nbsp;
                                                    </td>
                                                    <td style="text-align:left;">
                                                        <asp:Label ID="horaIniLB_Seg" runat="server" Text="Label"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align:right;" class="style1" >
                                                        Emails :&nbsp;&nbsp;&nbsp;&nbsp;
                                                    </td>
                                                    <td style="text-align:left;" >
                                                        <asp:TextBox ID="emailTB_Seg" runat="server" TextMode="MultiLine" Rows="3" Width="95%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align:right;" class="style1" >
                                                        Realizar Seguimiento :&nbsp;&nbsp;&nbsp;&nbsp;
                                                    </td>
                                                    <td style="text-align:left;">
                                                        <asp:CheckBox ID="realizarSeguimiCHB" runat="server" AutoPostBack="True" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align:right;" class="style1" >
                                                        Proximo Seguimiento :&nbsp;&nbsp;&nbsp;&nbsp;
                                                    </td>
                                                    <td style="text-align:left;">
                                                        <telerik:RadDatePicker ID="proxSeguimientoDTP" runat="server" 
                                                            MaxDate="2020-12-31" MinDate="2013-01-01" Skin="Office2007" Width="110px">
                                                            <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" Skin="Office2007"></Calendar>
                                                            <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" ></DateInput>
                                                            <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td style="border-left: #464646 1px solid; width:50%">
                                            <table style="font-size: 9pt; width: 100%; color: #464646; font-family: Arial; background-color: #fcfcfc; text-align: center;" 
                                                cellspacing="4" border="0px">
                                                <tr>
                                                    <td style="text-align:right; vertical-align:top" class="style1" >
                                                        Respuesta :&nbsp;&nbsp;&nbsp;&nbsp;
                                                    </td>
                                                    <td style="text-align:left; ">
                                                        <asp:TextBox ID="observacionTB_Seg" runat="server" TextMode="MultiLine" Rows="6" Width="90%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align:right;" class="style1" >
                                                        Hora :&nbsp;&nbsp;&nbsp;&nbsp;
                                                    </td>
                                                    <td style="text-align:left;">
                                                        <telerik:RadTimePicker ID="horaDTP" runat="server" MaxDate="2030-12-31" 
                                                            MinDate="2013-01-01" Skin="Office2007" Width="110px">
                                                            <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False">
                                                            </Calendar>
                                                            <DatePopupButton CssClass="" HoverImageUrl="" ImageUrl="" Visible="False" />
                                                            <TimeView CellSpacing="-1" Culture="es-PE">
                                                            </TimeView>
                                                            <TimePopupButton CssClass="" HoverImageUrl="" ImageUrl="" />
                                                            <DateInput DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy">
                                                            </DateInput>
                                                        </telerik:RadTimePicker>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <table style="font-size: 9pt; width: 100%; color: #464646; font-family: Arial; background-color: #fcfcfc; text-align: center;" 
                                                cellspacing="4" border="0px">
                                                <tr>
                                                    <td style="text-align:right; vertical-align:top; font-weight: 700;" class="style1" >
                                                        Comentarios Internos :&nbsp;&nbsp;&nbsp;&nbsp;
                                                    </td>
                                                    <td style="text-align:left; ">
                                                        <asp:TextBox ID="comentarioInternoTB_Seg" runat="server" TextMode="MultiLine" Rows="2" Width="95%"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>
                    </td>
                </tr>
            </table>
        </center>
        </td>
        <td style="width:20%; vertical-align:top">
        <center>
            <table border="0px" width="99%">
                <tr>
                    <td>
                        <table style="font-size: 9pt; width: 100%; color: #464646; font-family: Arial; background-color: #fcfcfc; text-align: center; font-weight: bold;" 
                            cellspacing="4">
                            <tr>
                                <td align="center" colspan="2"
                                    style="font-size: 10pt; color: #464646; font-family: Arial; font-weight: bold;">
                                    DATOS DEL SERVIDOR
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2"
                                    style="font-size: 10pt; color: #464646; font-family: Arial; font-weight: bold;">
                                    <br />
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right; width:30%" >
                                    IP Publica :&nbsp;
                                </td>
                                <td style="text-align:left;" >
                                    <asp:TextBox ID="ippublicaTB" runat="server" Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right; width:30%" >
                                    N. Equipo :&nbsp;
                                </td>
                                <td style="text-align:left;" >
                                    <asp:TextBox ID="nomEquipoTB" runat="server" Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right; width:30%" >
                                    Usuario :&nbsp;
                                </td>
                                <td style="text-align:left;" >
                                    <asp:TextBox ID="usuarioTB" runat="server" Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right; width:30%" >
                                    Password :&nbsp;
                                </td>
                                <td style="text-align:left;">
                                    <asp:TextBox ID="passwordTB" runat="server" Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right; width:30%" >
                                    Config :&nbsp;
                                </td>
                                <td style="text-align:left;">
                                    <asp:TextBox ID="claveConfigTB" runat="server" Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right; width:30%" >
                                    Pass SQL :&nbsp;
                                </td>
                                <td style="text-align:left;">
                                    <asp:TextBox ID="passqlTB" runat="server" Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align:right; width:30%" >
                                    Observacion&nbsp;
                                </td>
                                <td style="text-align:left;"></td>
                            </tr>
                            <tr>
                                <td style="text-align:left;" colspan="2">
                                    <asp:TextBox ID="observacionTB" runat="server" Rows="4" TextMode="MultiLine" Width="98%"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </center>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <telerik:RadGrid ID="RadGrid1" runat="server" Culture="es-ES" 
                DataSourceID="SDS_SelectPendientes" Width="100%" 
                AllowFilteringByColumn="false" CellSpacing="0" 
                Skin="Vista" 
                style="text-align: right">
                <GroupingSettings GroupContinuesFormatString="" GroupSplitDisplayFormat="" 
                    GroupSplitFormat="" />
                <ClientSettings>
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <GroupHeaderItemStyle HorizontalAlign="Left" />
                <MasterTableView AutoGenerateColumns="False"
                            DataKeyNames="idpendiente, estado" 
                    DataSourceID="SDS_SelectPendientes" 
                    NoMasterRecordsText="No existen Registros." EnableLinqGrouping="False" 
                    GridLines="None" Font-Size="8pt" >
                <CommandItemSettings AddNewRecordText="Agregar Nuevo" RefreshText="Actualizar">
                </CommandItemSettings>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" 
                        FilterControlAltText="Filter ExpandColumn column" Created="True">
                <HeaderStyle Width="50px"></HeaderStyle>
                </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="idpendiente" DataType="System.Int32" 
                            FilterControlAltText="Filter idpendiente column" HeaderText="Nro." 
                            ReadOnly="True" SortExpression="idpendiente" UniqueName="idpendiente"
                            FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                            ShowFilterIcon="false" >
                            <HeaderStyle Width="4%" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="empresaid" DataType="System.Int32" 
                            FilterControlAltText="Filter empresaid column" HeaderText="empresaid" 
                            SortExpression="empresaid" UniqueName="empresaid"
                            visible="false" >
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="PendienteAsignado" 
                            FilterControlAltText="Filter PendienteAsignado column" HeaderText="PendienteAsignado" 
                            SortExpression="PendienteAsignado" UniqueName="PendienteAsignado"
                            ShowFilterIcon="false" FilterControlWidth="70%"
                                AutoPostBackOnFilter="true" Visible="false">
                                <ItemStyle HorizontalAlign="Left"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridDateTimeColumn DataField="fechaCreacion" DataType="System.DateTime" 
                            FilterControlAltText="Filter fechaCreacion column" HeaderText="F/Creada" 
                            SortExpression="fechaCreacion" UniqueName="fechaCreacion"
                            DataFormatString="{0:d}" PickerType="DatePicker" 
                            ShowFilterIcon="false" AutoPostBackOnFilter="true"
                            FilterControlWidth="100%"
                            EnableTimeIndependentFiltering="true">
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" Width="9%"/>
                        </telerik:GridDateTimeColumn>
                        <telerik:GridBoundColumn DataField="creadoPor" DataType="System.Int32" 
                            FilterControlAltText="Filter creadoPor column" HeaderText="creadoPor" 
                            SortExpression="creadoPor" UniqueName="creadoPor"
                            visible="false" ShowFilterIcon="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="creador" 
                            FilterControlAltText="Filter creador column" HeaderText="Creador" 
                            SortExpression="creador" UniqueName="creador"
                            AllowFiltering="False">
                                <ItemStyle HorizontalAlign="Left"/>
                            <%--ShowFilterIcon="false" FilterControlWidth="70%"
                                AutoPostBackOnFilter="true"--%>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="nombre" 
                            FilterControlAltText="Filter nombre column" HeaderText="Tipo" 
                            SortExpression="nombre" UniqueName="nombre" ShowFilterIcon="false" 
                                FilterControlWidth="85%" AutoPostBackOnFilter="true">
                                <ItemStyle HorizontalAlign="Left"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="razoncomercial" 
                            FilterControlAltText="Filter razoncomercial column" HeaderText="R. Comercial" 
                            ReadOnly="True" SortExpression="razoncomercial" UniqueName="razoncomercial"
                            ShowFilterIcon="false" AutoPostBackOnFilter="true" Visible="false">
                            <ItemStyle HorizontalAlign="Left"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CAMPO1" 
                            FilterControlAltText="Filter CAMPO1 column" HeaderText="" 
                            ReadOnly="True" SortExpression="CAMPO1" UniqueName="CAMPO1"
                            ShowFilterIcon="false" AutoPostBackOnFilter="true" Visible="false">
                            <ItemStyle HorizontalAlign="Left"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="razonsocial" 
                            FilterControlAltText="Filter razonsocial column" HeaderText="R. Social" 
                            ReadOnly="True" SortExpression="razonsocial" UniqueName="razonsocial"
                            Visible="false">
                            <ItemStyle HorizontalAlign="Left"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="nombreApellido" 
                            FilterControlAltText="Filter nombreApellido column" HeaderText="Contacto" 
                            ReadOnly="True" SortExpression="nombreApellido" UniqueName="nombreApellido"
                            AllowFiltering="False">
                            <ItemStyle HorizontalAlign="Left"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="telefono" 
                            FilterControlAltText="Filter telefono column" HeaderText="Telefono" 
                            SortExpression="telefono" UniqueName="telefono"
                            AllowFiltering="False" Visible="false">
                            <ItemStyle HorizontalAlign="Left"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="email" 
                            FilterControlAltText="Filter email column" HeaderText="email" 
                            SortExpression="email" UniqueName="email"
                            visible="false" AllowFiltering="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="tema" 
                            FilterControlAltText="Filter tema column" HeaderText="Caso" ReadOnly="True" 
                            SortExpression="tema" UniqueName="tema" ShowFilterIcon="false" 
                            AutoPostBackOnFilter="true" FilterControlWidth="100%">
                            <ItemStyle HorizontalAlign="Left"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="responsable" DataType="System.Int32" 
                            FilterControlAltText="Filter responsable column" HeaderText="responsable" 
                            SortExpression="responsable" UniqueName="responsable"
                            visible="false" ShowFilterIcon="false" >
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="urgencia" DataType="System.Int32" 
                            FilterControlAltText="Filter urgencia column" HeaderText="urgencia" 
                            SortExpression="urgencia" UniqueName="urgencia"
                            visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="area" 
                            FilterControlAltText="Filter area column" HeaderText="area" 
                            SortExpression="area" UniqueName="area"
                            visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="modulo" 
                            FilterControlAltText="Filter modulo column" HeaderText="modulo" 
                            SortExpression="modulo" UniqueName="modulo"
                            visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="avance" DataType="System.Int32" 
                            FilterControlAltText="Filter avance column" HeaderText="avance" ReadOnly="True" 
                            SortExpression="avance" UniqueName="avance"
                            visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="fechaLimite" DataType="System.DateTime" 
                            FilterControlAltText="Filter fechaLimite column" HeaderText="F/Limite" 
                            SortExpression="fechaLimite" UniqueName="fechaLimite" 
                            DataFormatString="{0:d}" AllowFiltering="False">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="nomResponsable" 
                            FilterControlAltText="Filter nomResponsable column" HeaderText="Respons." 
                            SortExpression="nomResponsable" UniqueName="nomResponsable"
                                ShowFilterIcon="false" FilterControlWidth="70%"
                                AutoPostBackOnFilter="true">
                                <ItemStyle HorizontalAlign="Left"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="nomUrgencia" 
                            FilterControlAltText="Filter nomUrgencia column" HeaderText="Urgenc." 
                            SortExpression="nomUrgencia" UniqueName="nomUrgencia"
                            ShowFilterIcon="false" FilterControlWidth="70%"
                            AllowFiltering="False">
                                <ItemStyle HorizontalAlign="Left"/>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="idContacto" DataType="System.Int32" 
                            FilterControlAltText="Filter idContacto column" HeaderText="idContacto" 
                            SortExpression="idContacto" UniqueName="idContacto"
                            visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridCheckBoxColumn DataField="estado" DataType="System.Boolean" 
                            FilterControlAltText="Filter estado column" HeaderText="estado" 
                            SortExpression="estado" UniqueName="estado"
                            visible="false">
                        </telerik:GridCheckBoxColumn>
                        <telerik:GridBoundColumn DataField="tipoid" DataType="System.Int32" 
                            FilterControlAltText="Filter tipoid column" HeaderText="tipoid" 
                            SortExpression="tipoid" UniqueName="tipoid"
                            visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="tipoPendienteAsignado" DataType="System.Int32" 
                            FilterControlAltText="Filter tipoPendienteAsignado column" HeaderText="tipoPendienteAsignado" 
                            SortExpression="tipoPendienteAsignado" UniqueName="tipoPendienteAsignado"
                            visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="TrabajadorId" DataType="System.Int32" 
                            FilterControlAltText="Filter TrabajadorId column" HeaderText="TrabajadorId" 
                            SortExpression="TrabajadorId" UniqueName="TrabajadorId"
                            visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="HabitacionId" DataType="System.Int32" 
                            FilterControlAltText="Filter HabitacionId column" HeaderText="HabitacionId" 
                            SortExpression="HabitacionId" UniqueName="HabitacionId"
                            visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="areaid" DataType="System.Int32" 
                            FilterControlAltText="Filter areaid column" HeaderText="areaid" 
                            SortExpression="areaid" UniqueName="areaid"
                            visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="UltimoSeguimiento" DataType="System.DateTime" 
                            FilterControlAltText="Filter UltimoSeguimiento column" HeaderText="Ult. Seg." 
                            SortExpression="UltimoSeguimiento" UniqueName="UltimoSeguimiento" 
                            DataFormatString="{0:d}" AllowFiltering="False">
                        </telerik:GridBoundColumn>
                    </Columns>
                <EditFormSettings EditFormType="WebUserControl" 
                        UserControlName="~/SIG/Interno/AfrmPendientesWUC.ascx">
                <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                </EditFormSettings>
                <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                </MasterTableView>
                <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                <FilterMenu EnableImageSprites="False"></FilterMenu>
            </telerik:RadGrid> 
        </td>
    </tr>
</table>
<br />
<br />
</center>
<asp:SqlDataSource ID="SDS_empresaCombo" runat="server" 
    SelectCommand="sghP_EmpresasCombo" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:Parameter DefaultValue="0" Name="tipo" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SDS_combocontacto" runat="server" 
    SelectCommand="sghP_comboContato" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:ControlParameter ControlID="razonComercialCB" DefaultValue="0" 
            Name="empresaid" PropertyName="SelectedValue" Type="Int32" />
        <asp:Parameter DefaultValue="0" Name="tipo" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SDS_tipo" runat="server" 
    SelectCommand="sghP_tipos" SelectCommandType="StoredProcedure" >
    <SelectParameters>
        <asp:ControlParameter ControlID="tipoMaestroCB" DefaultValue="0" 
            Name="tipoMaestroID" PropertyName="SelectedValue" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SDS_responsable" runat="server" 
    SelectCommand="sghP_listaUsuarios" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SDS_prioridad" 
    runat="server" SelectCommand="sghP_listaPrioridad" 
    SelectCommandType="StoredProcedure">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SDS_areasComboDB" runat="server" 
    SelectCommand="sghP_areasComboDB" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SDS_habitacionCombo" runat="server" 
    SelectCommand="sghP_HabitacionCombo" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SDS_TrabajadorCombo" runat="server" 
    SelectCommand="sghP_TrabajadorCombo" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SDS_SelectPendientes" runat="server" 
    SelectCommand="sghP_selectPendientesTop5" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:Parameter DefaultValue="0" Name="estado" Type="Int32" />
        <asp:Parameter DefaultValue="Operaciones" Name="area" Type="String" />
        <asp:ControlParameter ControlID="razonComercialCB" DefaultValue="0" 
            Name="empresaid" PropertyName="SelectedValue" Type="Int32" />
        <asp:Parameter DefaultValue="0" Name="responsable" Type="Int32" />
        <asp:Parameter DefaultValue="0" Name="tipoid" Type="Int32" />
        <asp:Parameter DefaultValue="01/01/2000" Name="desde" Type="DateTime" />
        <asp:Parameter DefaultValue="01/01/2000" Name="hasta" Type="DateTime" />
        <asp:Parameter DefaultValue="0" Name="creadopor" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
<%--<asp:SqlDataSource ID="SDS_tipoMaestro" runat="server" 
    SelectCommand="SELECT tipoMaestroID, nombre FROM SGH_tipoMaestro UNION ALL SELECT 0 as tipoMaestroID, '' as nombre ORDER BY tipoMaestroID">
</asp:SqlDataSource>--%>
<asp:SqlDataSource ID="SDS_tipoMaestro" runat="server" 
    SelectCommand="sghP_selectTipoMaestro" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:Parameter DefaultValue="0" Name="estado" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>