239 lines
14 KiB
Plaintext
239 lines
14 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="RepAF.aspx.vb" Inherits="AF_RepAF" %>
|
|
|
|
<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>
|
|
|
|
|
|
<style type="text/css">
|
|
.table-advance > tbody > tr > th {
|
|
text-align: left;
|
|
}
|
|
|
|
|
|
.table-advance > tbody > tr > th:nth-child(3) {
|
|
text-align: right !important;
|
|
}
|
|
|
|
.table-advance > tbody > tr > td:nth-child(3) {
|
|
text-align: right !important;
|
|
width: 90px;
|
|
}
|
|
|
|
.table-advance > tbody > tr > td:nth-child(3) > div {
|
|
text-align: right !important;
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
<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-ad-pdf"></i> Generar PDF</asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkExportar" runat="server">
|
|
<i class="fa fa-ad-excel"></i> Exportar Excel
|
|
</asp:LinkButton>
|
|
</li>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Reporte 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="Consultar" 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 text-size-12 ">
|
|
<div class="row">
|
|
<div class="col-md-1 ">Tipo:</div>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlTipoActivo" CssClass="form-control input-sm select2me Widthall" runat="server" DataTextField="TipoActivoFijo" DataValueField="CveTipoActivoFijo" OnSelectedIndexChanged="BtnFiltrar_Click1" AutoPostBack="True"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate">SubTipo:</div>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlSubTipoActivo" CssClass="form-control input-sm select2me Widthall" runat="server" DataTextField="SubTipoActivoFijo" DataValueField="CveSubTipoActivoFijo" OnSelectedIndexChanged="BtnFiltrar_Click1" AutoPostBack="True"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1 truncate">Agrupador:</div>
|
|
<div class="col-md-2">
|
|
<asp:DropDownList ID="DdlAgrupador" CssClass="form-control input-sm select2me Widthall" runat="server" AutoPostBack="false">
|
|
<asp:ListItem Text="Tipo" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="SubTipo" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Año" Value="3"></asp:ListItem>
|
|
<asp:ListItem Text="Estatus" Value="4"></asp:ListItem>
|
|
<asp:ListItem Text="SubProyecto" Value="5"></asp:ListItem>
|
|
<asp:ListItem Text="Responsable" Value="6"></asp:ListItem>
|
|
</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-1">
|
|
<asp:DropDownList ID="DdlEstatus" CssClass="form-control input-sm select2me" runat="server" DataTextField="EstadoActivoFijo" DataValueField="CveEstadoActivoFijo"></asp:DropDownList>
|
|
</div>
|
|
<div runat="server" id="DivProyecto">
|
|
<div class="col-md-1">Proyecto:</div>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlProyecto" CssClass="form-control input-sm select2me" runat="server" DataTextField="Proyecto" DataValueField="CveProyecto" OnSelectedIndexChanged="DdlProyecto_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-1">
|
|
<asp:Label runat="server" ID="LblSubProyecto" Text="SubProyecto: "></asp:Label>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlSubProyecto" CssClass="form-control input-sm select2me" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto"></asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1">Responsable:</div>
|
|
<div class="col-md-1">
|
|
<asp:DropDownList ID="DdlResponsable" CssClass="form-control input-sm select2me" runat="server" DataTextField="Nombre" DataValueField="CvePersonal">
|
|
<asp:ListItem Text="Todos" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-1">Año:</div>
|
|
<div class="col-md-1">
|
|
<asp:TextBox ID="TxtAño" runat="server" CssClass="form-control input-sm " MaxLength="4" Width="40px"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtAño" FilterType="Custom, Numbers" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<asp:GridView ID="GvCaracteristicas" runat="server" GridLines="None" AutoGenerateColumns="False" DataKeyNames="CveCaracteristicaClasificacion,CveCaracteristica,TipoCampo,Requerida" ShowHeader="False" CssClass="table table-striped table-hover">
|
|
<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>
|
|
</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-striped table-hover Widthall" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Agrupador" ItemStyle-Width="40%">
|
|
<ItemTemplate>
|
|
<asp:HyperLink ID="Hpl" runat="server" Text='<%# Eval("Agrupador") %>'></asp:HyperLink>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="30%" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlDescripcion" runat="server" Text='<%# Eval("Cantidad")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Total" ItemStyle-Width="30%" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTipoActivoFijo" runat="server" Text='<%# Eval("Total", "{0:N2}") %>'> </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>
|