196 lines
11 KiB
Text
196 lines
11 KiB
Text
|
|
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="cuwGridDocumento.ascx.cs" Inherits="_controlesusuario_cuwGridDocumento" %>
|
||
|
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %>
|
||
|
|
<%--<%@ Register src="cuwMensajeAviso.ascx" tagname="cuwMensajeAviso" tagprefix="uc1" %>--%>
|
||
|
|
|
||
|
|
<div id="divDocumento" runat="server" style="border: 1px #CBCCCF solid;">
|
||
|
|
<table style="width: 100%">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<table style="width: 100%; text-align: right">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<asp:ImageButton ID="btnNuevoDocumento" SkinID= "btnNuevoSkin" ToolTip="Agregar Archivo"
|
||
|
|
runat="server" CausesValidation="false" Visible ="false"/>
|
||
|
|
<act:ModalPopupExtender ID="mpeAntecedenteDocumento" runat="server" TargetControlID="btnNuevoDocumento"
|
||
|
|
PopupControlID="pnlDocumento" BackgroundCssClass="modalBackground" DropShadow="true"
|
||
|
|
EnableViewState="true"
|
||
|
|
/>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td>hola:grvDocumento
|
||
|
|
<asp:GridView ID="grvDocumento" SkinID="gridviewSkin" runat="server"
|
||
|
|
OnPageIndexChanging= "grvDocumento_PageIndexChanging"
|
||
|
|
CommandName="editar"> <%-- OnRowCommand="grvDocumento_RowCommand" >--%>
|
||
|
|
|
||
|
|
<Columns>
|
||
|
|
<asp:TemplateField>
|
||
|
|
<%-- Este web service no tiene opción para borrar archivos
|
||
|
|
<HeaderTemplate>
|
||
|
|
<input id="chkHeader" onclick="CheckAllGridViewItems(this);" type="checkbox" name="chkHeader" runat="server" />
|
||
|
|
</HeaderTemplate>
|
||
|
|
<ItemTemplate>
|
||
|
|
<input id="chkItem" type="checkbox" name="chkItem" runat="server" />
|
||
|
|
</ItemTemplate>--%>
|
||
|
|
<ItemStyle Width="30px" />
|
||
|
|
</asp:TemplateField>
|
||
|
|
<asp:ButtonField ImageUrl= "~/App_Themes/Estados/imgBolita_Verde.png" ButtonType="Image"/>
|
||
|
|
<asp:TemplateField HeaderText="Archivo">
|
||
|
|
<%--<ItemTemplate>
|
||
|
|
<asp:LinkButton ID="hypArchivo" runat="server" CommandName="editar" OnClientClick="aspnetForm.target ='_blank';"
|
||
|
|
Text='<%# Bind("des_objeto") %>' >
|
||
|
|
</asp:LinkButton>
|
||
|
|
</ItemTemplate>--%>
|
||
|
|
|
||
|
|
<ItemTemplate>
|
||
|
|
<asp:LinkButton ID="hypArchivo" runat="server" OnClick="hypArchivo_Click" OnClientClick="aspnetForm.target ='_blank';"
|
||
|
|
Text='<%# Eval("des_objeto") %>' > <%-- Target='<%# Eval("url_objeto") %>' OnClick="EnviarID" NavigateUrl='<%# Eval("url_objeto") %>'--%>
|
||
|
|
</asp:LinkButton>
|
||
|
|
</ItemTemplate>
|
||
|
|
</asp:TemplateField>
|
||
|
|
<asp:TemplateField HeaderText="IdCarpeta" HeaderStyle-HorizontalAlign="Left" Visible ="false">
|
||
|
|
<ItemTemplate>
|
||
|
|
<asp:Label ID="txtIDCarpeta" runat="server" Width="50px" Text='<%# Bind("ide_carpeta") %>'></asp:Label>
|
||
|
|
</ItemTemplate>
|
||
|
|
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
|
||
|
|
</asp:TemplateField>
|
||
|
|
<asp:TemplateField HeaderText="IdObjeto" HeaderStyle-HorizontalAlign="Left" Visible ="false">
|
||
|
|
<ItemTemplate>
|
||
|
|
<asp:Label ID="txtIDObjeto" runat="server" Width="70px" Text='<%# Bind("ide_objeto") %>'></asp:Label>
|
||
|
|
</ItemTemplate>
|
||
|
|
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
|
||
|
|
</asp:TemplateField>
|
||
|
|
<asp:TemplateField HeaderText="Descripción" HeaderStyle-HorizontalAlign="Left" >
|
||
|
|
<ItemTemplate>
|
||
|
|
<asp:Label ID="lblDescripcion" runat="server" Visible= "true" ReadOnly="true" Width="500px" Text='<%# Bind("Descripcion_objeto") %>'></asp:Label>
|
||
|
|
</ItemTemplate>
|
||
|
|
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
|
||
|
|
</asp:TemplateField>
|
||
|
|
|
||
|
|
<asp:TemplateField HeaderText="Fecha Archivado" HeaderStyle-HorizontalAlign="Left"
|
||
|
|
SortExpression="FechaArchivado">
|
||
|
|
<ItemTemplate>
|
||
|
|
<asp:Label ID="lblFechaArchivado" Width="100px" MaxLength="10" runat="server"
|
||
|
|
Text='<%# Bind("FechaArchivado", "{0:dd/MM/yyyy}") %>'/>
|
||
|
|
</ItemTemplate>
|
||
|
|
<HeaderStyle HorizontalAlign="Left" />
|
||
|
|
</asp:TemplateField>
|
||
|
|
|
||
|
|
<asp:TemplateField HeaderText="Tamaño (kb)" HeaderStyle-HorizontalAlign="Left">
|
||
|
|
<ItemTemplate>
|
||
|
|
<asp:Label ID="lblTamanno" runat="server" Visible= "true" ReadOnly="true" Width="60" Text='<%# Bind("MB") %>'></asp:Label>
|
||
|
|
</ItemTemplate>
|
||
|
|
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
|
||
|
|
</asp:TemplateField>
|
||
|
|
<asp:TemplateField HeaderText="Tipo" HeaderStyle-HorizontalAlign="Left" >
|
||
|
|
<ItemTemplate>
|
||
|
|
<asp:Label ID="lblTipo" runat="server" Visible= "true" ReadOnly="true" Width="40" Text='<%# Bind("ext_objeto") %>'></asp:Label>
|
||
|
|
</ItemTemplate>
|
||
|
|
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
|
||
|
|
</asp:TemplateField>
|
||
|
|
</Columns>
|
||
|
|
</asp:GridView>
|
||
|
|
|
||
|
|
<div class="detalleGridView">
|
||
|
|
<div class="Izquierda">
|
||
|
|
<asp:Label id="lblTotalDocumento" runat="server" Text="Registros: " CssClass="textoDetalleGridView" />
|
||
|
|
<%--<asp:Label id="lblCantidadRegistros" runat="server" Text="" CssClass="textoDetalleGridView" />--%>
|
||
|
|
</div>
|
||
|
|
<%-- <div class="Derecha">
|
||
|
|
<asp:ImageButton id="btnRefrescarDocumento" ImageUrl="~/App_Themes/Basico/Imagenes/MiniBotones/btnRefrescar.png"
|
||
|
|
CausesValidation="false" runat="server" OnClick="btnRefrescarDocumento_Click" />
|
||
|
|
</div>--%>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<%-- <div class="detalleGridView">
|
||
|
|
<div class="Izquierda">
|
||
|
|
<asp:Label ID="lblTotalDocumento" runat="server" Text="Registros: " CssClass="textoDetalleGridView" />
|
||
|
|
</div>
|
||
|
|
<div class="Derecha">
|
||
|
|
<asp:ImageButton ID="ImageButton1" SkinID="btnRefrescarSkin" CausesValidation="false"
|
||
|
|
runat="server" OnClick="btnRefrescarDocumento_Click" />
|
||
|
|
</div>
|
||
|
|
</div>--%>
|
||
|
|
</td>
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
<asp:Panel ID="pnlDocumento" runat="server" BackColor="AntiqueWhite" Visible ="false">
|
||
|
|
<!-- Encabezado del Modal Popup -->
|
||
|
|
<table >
|
||
|
|
<tr>
|
||
|
|
|
||
|
|
<td align= "center" >
|
||
|
|
<div class="lblTitulo" style= "width: 550px ; color: Blue" >
|
||
|
|
SUBIENDO DOCUMENTOS AL EXPEDIENTE DIGITAL
|
||
|
|
</div>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<!-- Información del control -->
|
||
|
|
<table>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
PASO 1: Asignar nombre al archivo:
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<asp:TextBox ID="txtNombreDeseadoAchivo" runat="server" Width="449px">
|
||
|
|
</asp:TextBox>
|
||
|
|
</td>
|
||
|
|
|
||
|
|
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
PASO 2: Descripción del documento:
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<asp:TextBox ID="txtDescripcionDocumento" runat="server" Height="80px" Text=""
|
||
|
|
TextMode="MultiLine" Width="449px" Wrap="true">
|
||
|
|
</asp:TextBox>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
PASO 3: Indicar URL documento
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<asp:TextBox ID="txtURL" runat="server" Width="449px"></asp:TextBox>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
ó buscar ruta:
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<act:AsyncFileUpload ID="afuArchivo" runat="server"
|
||
|
|
OnClientErrorAlSubirArchivo="ErrorAlSubirArchivo"
|
||
|
|
OnClientMensajeExitosaSubidaArchivo="MensajeExitosaSubidaArchivo"
|
||
|
|
OnUploadedComplete="Guardar_Documento" ToolTip="Subir archivo (pdf)"
|
||
|
|
Width="500px" />
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td colspan="2" style="text-align: center">
|
||
|
|
<asp:Label ID="lblMensage" runat="server" BackColor="#CECACD"></asp:Label>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table><!-- Botones inferiores -->
|
||
|
|
<table style="border-top: double #CCCCCC;" width="100%">
|
||
|
|
<tr>
|
||
|
|
<td align= "right">
|
||
|
|
<asp:ImageButton ID="btnFinalizar" runat="server" CausesValidation="false"
|
||
|
|
SkinID="skinFinalizar" OnClick="btnFinalizar_Click" />
|
||
|
|
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</asp:Panel>
|
||
|
|
|
||
|
|
<%--<uc1:cuwMensajeAviso ID="cuwMensajeAviso" runat="server" /> --%>
|
||
|
|
</div>
|