Files
SIG/OS/PopUpBuscarCuentasEquipos.aspx
JORGE LUIS CAUDILLO ESPARZA c35cf91883 Commit inicial Ventas Productivo
2019-08-14 16:40:54 -07:00

204 lines
8.6 KiB
Plaintext

<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PopUpBuscarCuentasEquipos.aspx.vb" Inherits="OS_PopUpBuscarCuentasEquipos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
<style>
.Widthall {
width: 100% !important;
}
.dataTables_scrollHeadInner {
width: 100% !important;
background-color: #dddddd;
padding-left: 0px !important;
}
.dataTables_scrollFoot {
display: none;
position: static;
}
.table-scrollable {
margin: 0px !important;
}
.dataTables_scroll {
margin-bottom: 0px;
}
.table.dataTable {
margin-top: 0px !important;
}
.dataTables_scrollBody table th {
padding: 0px !important;
padding-right: 4px !important;
padding-left: 4px !important;
}
.sinlink td a {
pointer-events: none;
cursor: default;
color: black;
font-size: small;
}
.white a {
color: white !important;
}
.btn-verde {
color: #32c5d2;
background-color: #fff;
border-color: #32c5d2;
}
.btn-verde .fa-plus {
color: #32c5d2 !important;
}
.btn-verde:hover {
color: #fff;
background-color: #32c5d2;
border-color: #32c5d2;
}
.btn-verde:hover .fa-plus {
color: white !important;
}
</style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
Buesqueda de Cuentas y/o Equipos
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
<asp:HiddenField ID="hdnEsThickbox" runat="server" ClientIDMode="Static" />
<asp:HiddenField ID="hdnClientIDLink" runat="server" ClientIDMode="Static" />
<asp:UpdatePanel ID="UpCuentasEquipos" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Button ID="BtnRefreshCuentasEquipos" runat="server" ClientIDMode="Static" Style="display: none" />
<asp:GridView ID="GvCuentasEquipos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveCuentaEquipo" EmptyDataText="No se encontraron Cuentas y/o Equipos registrados" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
<Columns>
<asp:TemplateField HeaderText="ID" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="LbIdentificador" CssClass="Texto" CommandName="Seleccionar" CommandArgument='<%# Eval("CveCuentaEquipo") %>' runat="server"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Tipo" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:LinkButton ID="LbTipoCuentaEquipo" CssClass="Texto" CommandName="Seleccionar" CommandArgument='<%# Eval("CveCuentaEquipo") %>' runat="server"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="NoSerie" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:LinkButton ID="LbNoSerie" CssClass="Texto" CommandName="Seleccionar" CommandArgument='<%# Eval("CveCuentaEquipo") %>' runat="server"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Estatus" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="LbEstatus" CssClass="Texto" CommandName="Seleccionar" CommandArgument='<%# Eval("CveCuentaEquipo") %>' runat="server"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
<table class="Widthall">
<tr>
<td style="text-align: center;" colspan="4">
<asp:Button ID="BtnRegistrar" runat="server" Text="Registrar Nuevo" class="btn btn-primary" /></td>
</tr>
</table>
<asp:UpdatePanel ID="UpDatosCuenta" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table class="Widthall">
<tr>
<td class="Titulos" colspan="4">Datos de la Cuenta y/o Equipo:</td>
</tr>
<tr align="left">
<td class="text-right"><b>Identificador:</b></td>
<td>
<asp:TextBox ID="TxtIdentificador" runat="server" Width="200px"></asp:TextBox></td>
<td class="text-right"><b>Estatus:</b></td>
<td>
<asp:CheckBox ID="ChkEstatus" runat="server" Checked="true" />
</td>
</tr>
<tr align="left">
<td class="text-right"><b>No.Serie:</b></td>
<td>
<asp:TextBox ID="TxtNoSerie" runat="server" Width="200px"></asp:TextBox></td>
<td class="text-right"><b>Fecha Ingreso:</b></td>
<td>
<asp:Literal ID="LtlFechaIng" runat="server"></asp:Literal>
</td>
</tr>
<tr align="left">
<td class="text-right"><b>Tipo:</b></td>
<td>
<asp:DropDownList ID="DdlTipoCuentasEquipos" runat="server" AppendDataBoundItems="true" AutoPostBack="True" DataTextField="TipoCuentaEquipo" DataValueField="CveTipoCuentaEquipo" Class="table-group-action-input form-control input-inline input-sm" Width="200px" ValidationGroup="GrpGuardar"></asp:DropDownList>
<asp:HiddenField runat="server" ID="hdnTipoCuentasEquipos" Value="0" />
<asp:RequiredFieldValidator ID="RFVTipoCuentaEquipo" runat="server" ControlToValidate="DdlTipoCuentasEquipos" ValidationGroup="GrpGuardar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo''</b> es necesario, por favor ingréselo."></asp:RequiredFieldValidator>
<ajax:ValidatorCalloutExtender ID="VCETipoCuentaEquipo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoCuentaEquipo" Width="300px"></ajax:ValidatorCalloutExtender>
</td>
<td class="text-right"><b>Usuario:</b></td>
<td>
<asp:Literal ID="LtlUsuario" runat="server"></asp:Literal>
</td>
</tr>
<tr>
<td style="text-align: center;" colspan="4">
<asp:Button ID="BtnGuardar" runat="server" Text="Guardar" class="btn btn-primary" /></td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
<script type="text/javascript">
function CargaCuentaEquipo(CveCuentaEquipo) {
var ClientIDLink = document.getElementById("hdnClientIDLink").value;
if (document.getElementById("hdnEsThickbox").value == "S") {
parent.CargaCuentaEquipo(CveCuentaEquipo, ClientIDLink);
parent.tb_remove();
}
else {
window.opener.CargaCuentaEquipo(CveCuentaEquipo, ClientIDLink);
window.close();
}
}
function OrdenarGV() {
var Tam = TamañoVentana();
var Alto = Tam.height - 270;
if (Alto < 100) {
Alto = 100;
}
$('#C_GvCuentasEquipos').DataTable({
scrollY: Alto + 'px',
scrollCollapse: true,
paging: false,
searching: false,
info: false
});
$('#C_GvCuentasEquipos').parent().parent().children().first().css("position", "static");
}
</script>
</asp:Content>