294 lines
18 KiB
Plaintext
294 lines
18 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="SubidasADS.aspx.vb" Inherits="OI_SubidasADS" %>
|
|
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
|
|
<style>
|
|
.tooltip {
|
|
position: fixed !important;
|
|
}
|
|
</style>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Actualizaciones
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<asp:UpdatePanel ID="UPFiltros" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div class="portlet solid grey-cascade portlet-filter">
|
|
<div class="portlet-title portlet-filterT smalltitle" style="min-height: 69px;">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnConsultar" runat="server" Text="Consultar" class="btn btn-primary" Width="95px" />
|
|
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
|
</div>
|
|
<div class="titlefiltros caption ">
|
|
|
|
<div class="row" style="padding-top: 10px;">
|
|
|
|
<label class="col-md-1 truncate" style="width:100px!important">Fecha Inicio:</label>
|
|
<div class="col-md-2">
|
|
<div style="display: inline-block; vertical-align: text-bottom;">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaI" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaFinContrato" class="btn default" Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaFinContrato" runat="server" TargetControlID="TxtFechaI" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFechaFinContrato" TargetControlID="TxtFechaI" PopupButtonID="ImgFechaFinContrato" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:CompareValidator ID="CVTxtFechaI" runat="server" ControlToValidate="TxtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOTxtFechaI" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<label class="col-md-1 truncate" style="width:100px!important">Fecha Fin:</label>
|
|
<div class="col-md-2">
|
|
<div style="display: inline-block; vertical-align: text-bottom;">
|
|
<div class="input-group input-sm input-small date date-picker " data-date-format="dd/mm/yyyy" style="width: 120px !important; padding: 0px;">
|
|
<asp:TextBox ID="TxtFechaFin" runat="server" CssClass="form-control" CausesValidation="true" Style="width: 118px" MaxLength="10"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton ID="ImgFechaFFinContrato" class="btn default" Text="<i class='fa fa-calendar'></i>" runat="server"></asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEETxtFechaFin" runat="server" TargetControlID="TxtFechaFin" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFechaFFinContrato" TargetControlID="TxtFechaFin" PopupButtonID="ImgFechaFFinContrato" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:CompareValidator ID="CVTxtFechaFin" runat="server" ControlToValidate="TxtFechaFin" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Fin Contrato''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFechaFFinContrato2" runat="server" HighlightCssClass="vco" TargetControlID="CVTxtFechaFin" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<label class="col-md-1 truncate" style="width:100px!important">Opcion:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlOpcion" Width="200" runat="server" CssClass="select2me" >
|
|
<asp:ListItem Value="-1">Todos</asp:ListItem>
|
|
<asp:ListItem Value="3">No Termiandos</asp:ListItem>
|
|
<asp:ListItem Selected="True" Value="1">Pendientes</asp:ListItem>
|
|
<asp:ListItem Value="2">Subidas</asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
|
|
<%-- <label class="col-md-1 truncate" style="width:100px!important">Responsable:</label>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlResponsable" runat="server" CssClass="select2me" DataValueField="CveUsuario" DataTextField="Nombre"></asp:DropDownList>
|
|
</div>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="portlet-body portlet-filter" style="display: none;">
|
|
<div class="row">
|
|
<label class="col-md-1 truncate" style="width:100px!important">Descripción:</label>
|
|
<div class="col-md-2">
|
|
<asp:TextBox ID="TxtDescripcion" CssClass="form-control" runat="server" MaxLength="50"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
|
|
|
|
<div class="portlet light smmallpadding bordered">
|
|
<div class="portlet-title font-green">
|
|
<div class=" green font-green">
|
|
<i class="fa fa-laptop green"></i><span class="caption-subject bold uppercase"> Actualizaciones</span>
|
|
</div>
|
|
<div class="tools">
|
|
<div style="display: inline-block">
|
|
<input type="text" id="TxtBusqueda1" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda1','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda1','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
<a href="javascript:;" class="collapse" data-original-title="" title=""></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
|
|
|
|
<asp:UpdatePanel ID="UPDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Label runat="server" ID="LblComprometidos"></asp:Label>
|
|
<asp:GridView ID="GvDatos" ClientIDMode="Static" DataKeyNames="CveDesarrollo,Desarrollo,CveEvento,CveUsuarioResponsable,CveUsuarioAsignado,CveUsuarioPruebas,CveModulo,Descripcion,CveDesarrolloEstado,Manual,FechaAsignacion,TiempoEstimado,FechaTermino,CveUsuario,Actualizable"
|
|
runat="server" AutoGenerateColumns="False" Width="100%" EmptyDataText="No se Encontraron registros" ToolTip="Listado de Desarrollos" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-sort="true" data-freezerows="1" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="20">
|
|
<HeaderTemplate></HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkComprometido" runat="server" OnClientClick="return false;" Visible ='<%# If(Eval("Comprometido").ToString = "1", True, False) %>' ><i class="fa fa-exclamation-triangle " style="color:orangered" aria-hidden="true"></i></asp:LinkButton>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="40">
|
|
<HeaderTemplate></HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="ChkCompletado" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="150">
|
|
<HeaderTemplate>Desarrollo</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="HplDesarrollo" runat="server" Text='<%# Eval("Desarrollo") %>' NavigateUrl='<%# Eval("CveDesarrollo", "~/OI/Desarrollo.aspx?CveDesarrollo={0}") %>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="150">
|
|
<HeaderTemplate>Modulo</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlModulo" runat="server" Text='<%# Eval("Modulo") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100">
|
|
<HeaderTemplate>Desarrollador</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<%--<asp:Literal ID="LtlModulo" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>--%>
|
|
<asp:HyperLink ID="HplDesarrollador" runat="server" Text='<%# Eval("Usuario") %>' NavigateUrl='<%# Eval("CveDesarrollo", "~/OI/DesarrolloWizard.aspx?CveDesarrollo={0}") %>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Estado" ItemStyle-Width="100px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstado" runat="server" Text='<%# Eval("DesarrolloEstado") %>'>></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="100">
|
|
<HeaderTemplate>FechaSubida</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<%--<asp:Literal ID="LtlModulo" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>--%>
|
|
<asp:Label ID="LblFechaSubida" runat="server" Text='<%#If(Eval("FechaSubida").ToString = "", "-", Eval("FechaSubida", "{0:d}")) %>' ></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Left">
|
|
<HeaderTemplate> </HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDesarrolloEstado" runat="server" Text='<%# Eval("ListaSubida") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<asp:UpdatePanel ID="UpBtnGuardar" runat="server">
|
|
<ContentTemplate>
|
|
<div class="Widthall" style="text-align: center!important">
|
|
<asp:Button ID="BtnGaurdar" runat="server" Text="Guardar" CssClass=" btn btn-primary" />
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<div id="DVMensaje" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Atención</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p id="pMensaje">Script copiado a porta papeles.</p>
|
|
<br/>
|
|
<textarea id="TAClip" rows="7" cols="170">
|
|
|
|
</textarea>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script>
|
|
|
|
function copyToClipboard(element) {
|
|
|
|
$('#TAClip').val($(element).text());
|
|
|
|
|
|
setTimeout(function () {
|
|
$("#TAClip").focus();
|
|
$("#TAClip").select();
|
|
}, 300);
|
|
|
|
|
|
var CopiaExitosa = false;
|
|
|
|
setTimeout(function () {
|
|
try {
|
|
var status = document.execCommand('copy');
|
|
if (!status) {
|
|
// console.error("Cannot copy text");
|
|
errorCopiado();
|
|
|
|
} else {
|
|
CopiaExitosa = true;
|
|
//console.log("The text is now on the clipboard");
|
|
correctoCopiado();
|
|
}
|
|
} catch (err) {
|
|
console.log('Unable to copy.');
|
|
}
|
|
|
|
setTimeout(function () {
|
|
if (CopiaExitosa === false) {
|
|
try {
|
|
var status = document.execCommand('copy');
|
|
if (!status) {
|
|
console.error("Cannot copy text");
|
|
errorCopiado();
|
|
} else {
|
|
CopiaExitosa = true;
|
|
console.log("The text is now on the clipboard");
|
|
correctoCopiado();
|
|
}
|
|
} catch (err) {
|
|
console.log('Unable to copy.');
|
|
errorCopiado();
|
|
}
|
|
}
|
|
|
|
}, 300);
|
|
}, 300);
|
|
|
|
|
|
function correctoCopiado() {
|
|
|
|
$('#pMensaje').text("Script copiado al porta papeles");
|
|
$('#pMensaje').css({ 'color': 'green', 'font-size': '150%' });
|
|
}
|
|
|
|
function errorCopiado() {
|
|
|
|
$('#pMensaje').text("error al copiar script al porta papeles");
|
|
$('#pMensaje').css({ 'color': 'red', 'font-size': '150%' });
|
|
}
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
</asp:Content>
|
|
|
|
|