285 lines
18 KiB
Plaintext
285 lines
18 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatAF.aspx.vb" Inherits="AF_CatAF" %>
|
|
|
|
<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;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAgregarAF" runat="server" PostBackUrl="~/AF/AF.aspx">
|
|
<i class="fa fa-plus"></i> Nuevo Activo Fijo
|
|
</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LinkPDF" runat="server"> <i class="fa fa-file-pdf-o" style="font-weight:bold;"></i> PDF</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkExportar" runat="server">
|
|
<i class="fa fa-file-excel-o" style="font-weight:bold;"></i> Excel
|
|
</asp:LinkButton>
|
|
</li>
|
|
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="LnkExportar" />
|
|
<asp:PostBackTrigger ControlID="LinkPDF" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Catálogo de Activos Fijos
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
|
|
<asp:UpdatePanel ID="UpFiltro" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="portlet solid grey-cascade portlet-filter" style="">
|
|
<div class="portlet-title portlet-filterT portletfiltrostitlee">
|
|
<div class="tools">
|
|
<asp:UpdatePanel runat="server" style="display: inline-block;">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnFiltrar" runat="server" Text="Filtrar" class="btn btn-primary" OnClick="BtnFiltrar_Click1" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<a href="javascript:;" class="expand" data-original-title="" title=""></a>
|
|
</div>
|
|
<div class="titlefiltros caption">
|
|
<div class="row">
|
|
<div class="col-md-1">Código:</div>
|
|
<div class="col-md-2">
|
|
<asp:TextBox ID="TxtCodigo" CssClass="form-control input-sm" runat="server" MaxLength="12" Width="170px"></asp:TextBox>
|
|
</div>
|
|
<div class="col-md-1 truncate">Tipo Activo Fijo:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlTipoActivo" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="TipoActivoFijo" DataValueField="CveTipoActivoFijo" OnSelectedIndexChanged="DdlTipoActivo_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate">SubTipo Activo Fijo:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlSubTipoActivo" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="SubTipoActivoFijo" DataValueField="CveSubTipoActivoFijo" OnSelectedIndexChanged="DdlSubTipoActivo_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body" style="display: none;">
|
|
<div class="row">
|
|
|
|
<div class="col-md-1">Estatus:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlEstatus" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="EstadoActivoFijo" DataValueField="CveEstadoActivoFijo"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1">Proyecto: </div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlProyecto" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="Proyecto" DataValueField="CveProyecto" OnSelectedIndexChanged="DdlProyecto_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1">SubProyecto: </div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlSubProyecto" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1">Año:</div>
|
|
<div class="col-md-2">
|
|
<asp:TextBox ID="TxtAño" runat="server" CssClass="form-control input-sm " MaxLength="4" Width="50px"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtAño" FilterType="Custom, Numbers" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-1">Cliente:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlCliente" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataTextField="Nombre" DataValueField="CveCliente"></asp:DropDownList>
|
|
</div>
|
|
|
|
<div class="col-md-1">Grupo:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlGrupo" CssClass="form-control input-sm select2me" Width="100%" runat="server" DataValueField="CveGrupo" DataTextField="Grupo"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1">Responsable:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlResponsable" CssClass="form-control input-sm select2me" AppendDataBoundItems="true" Width="100%" runat="server" DataTextField="NombreCompleto" DataValueField="CvePersonal">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Asignados" Value="-2"></asp:ListItem>
|
|
<asp:ListItem Text="Sin Responsable" Value="-3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row col-md-12" align="right">
|
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvDatos.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
<div class="row col-md-12">
|
|
<asp:GridView ID="GvCaracteristicas" runat="server" GridLines="None" AutoGenerateColumns="False" DataKeyNames="CveCaracteristicaClasificacion,CveCaracteristica,TipoCampo,Requerida" ShowHeaderWhenEmpty="true" CssClass="table table-hover table-advance Widthall ScrollAD">
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-Width="132px">
|
|
<ItemStyle BorderStyle="None" />
|
|
<ItemTemplate>
|
|
<asp:Label ID="LtlCaracteristica" runat="server" Text='<%# Eval("Caracteristica","{0}:")%>' Width="65"></asp:Label>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemStyle BorderStyle="None" Width="410px" />
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" ValidationGroup="GrpGuardar" Visible="false" Width="400px"></asp:TextBox>
|
|
<asp:TextBox ID="TxtValorNum" runat="server" CausesValidation="true" MaxLength="50" ValidationGroup="GrpGuardar" Visible="false" Width="50px"></asp:TextBox>
|
|
<asp:ImageButton ID="ImgTxtValor" runat="server" AlternateText="Click para ver el Calendario" Height="16px" ImageAlign="AbsMiddle" ImageUrl="/Imagenes/calendar.png" Visible="false" Width="16px" />
|
|
<ajax:MaskedEditExtender ID="MEETxtValor" runat="server" AcceptNegative="Left" DisplayMoney="Left" Enabled="false" Mask="99/99/9999" MaskType="Date" TargetControlID="TxtValor" UserDateFormat="DayMonthYear"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender ID="CETxtValor" runat="server" Enabled="False" PopupButtonID="ImgTxtValor" PopupPosition="BottomRight" TargetControlID="TxtValor"></ajax:CalendarExtender>
|
|
<asp:DropDownList ID="DdlRespuesta" runat="server" Width="206px" DataTextField="CaracteristicaOpcion" DataValueField="CveCaracteristicaOpcion" Visible="false" ValidationGroup="GrpGuardar"></asp:DropDownList>
|
|
<asp:RadioButtonList ID="RbRespuesta" runat="server" Font-family="sans serif" DataTextField="CaracteristicaOpcion" DataValueField="CveCaracteristicaOpcion" RepeatDirection="Horizontal" ValidationGroup="GrpGuardar" Visible="false"></asp:RadioButtonList>
|
|
<asp:CheckBox ID="ChbValor" runat="server" ValidationGroup="GrpGuardar" Visible="false" />
|
|
|
|
<asp:RequiredFieldValidator ID="RFVRbRespuesta" runat="server" ControlToValidate="DdlRespuesta" Enabled="false" Display="None" ErrorMessage='<%# Eval("Caracteristica", "El campo: <b>{0}</b>, es Requerido")%>' ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCORbRespuesta" runat="server" HighlightCssClass="vco" TargetControlID="RFVRbRespuesta" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<asp:CompareValidator ID="CVTxtValor" Enabled="false" runat="server" ControlToValidate="TxtValor" Display="None" ErrorMessage='<%# Eval("Caracteristica", "El campo: <b>{0}</b>, es Requerido")%>' Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
|
|
<asp:HiddenField ID="HdnEsOpcion" runat="server" Value='<%# Eval("TipoCampo")%>' />
|
|
<asp:HiddenField ID="HdnCveCaracteristica" runat="server" Value='<%# Eval("CveCaracteristica")%>' />
|
|
<asp:HiddenField ID="HdnCveValor" runat="server" Value="-1" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemStyle Width="450px" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
<div>
|
|
<td>Encontrados:</td>
|
|
<td><b>
|
|
<asp:Literal ID="LtlTotalRegistros" runat="server"></asp:Literal></b></td>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UpGV" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" EmptyDataText="No se Encontró Activo Fijo Registrado" ToolTip="Listado de Activos Fijos" CssClass="table table-smallpadding Widthall" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Código">
|
|
<ItemStyle Width="70px" />
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="Hpl" runat="server" Text='<%# Eval("Codigo") %>' NavigateUrl='<%# Eval("CveActivoFijo", "/AF/AF.aspx?CveActivoFijo={0}")%>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Descripción">
|
|
<ItemStyle Width="140px" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Descripcion")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Tipo Act. Fijo">
|
|
<ItemStyle Width="90px" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTipoActivoFijo" runat="server" Text='<%# Eval("TipoActivoFijo")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Sub Tipo Act. Fijo">
|
|
<ItemStyle Width="110px" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSubTIpoActivoFijo" runat="server" Text='<%# Eval("SubTIpoActivoFijo")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Responsable">
|
|
<ItemStyle Width="105px" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlResponsable" runat="server" Text='<%# Eval("Responsable")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="No. Serie">
|
|
<ItemStyle Width="50px" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlNoSerie" runat="server" Text='<%# Eval("NoSerie")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Año" ItemStyle-HorizontalAlign="Right">
|
|
<ItemStyle Width="50px" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlAño" runat="server" Text='<%# Eval("Año")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="SubProyecto">
|
|
<ItemStyle Width="90px" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSubProyecto" runat="server" Text='<%# Eval("SubProyecto")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Estatus" ItemStyle-HorizontalAlign="Center">
|
|
<ItemStyle Width="50px" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstadoActivoFijo" runat="server" Text='<%# Eval("EstadoActivoFijo")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Fecha Ing." ItemStyle-HorizontalAlign="Center">
|
|
<ItemStyle Width="75px" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFechaIng" runat="server" Text='<%# Eval("FechaIng", "{0:d}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Usuario">
|
|
<ItemStyle Width="80px" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
|
|
<script src="/Metronic/assets/global/scripts/datatable.js"></script>
|
|
<script src="/Metronic/assets/global/plugins/datatables/all.min.js"></script>
|
|
<script type="text/javascript">
|
|
var OrdenarGV = function () {
|
|
var Tam = TamañoVentana();
|
|
var Alto = Tam.height - 330;
|
|
if (Alto < 100) {
|
|
Alto = 100;
|
|
}
|
|
$('#C_GvDatos').DataTable({ scrollY: Alto + 'px', scrollCollapse: true, paging: false, searching: false, info: false, });
|
|
$('#C_GvDatos').parent().parent().children().first().css("position", "static");
|
|
}
|
|
|
|
</script>
|
|
</asp:Content>
|