723 lines
57 KiB
Plaintext
723 lines
57 KiB
Plaintext
<%@ Page Title="SIG | Resguardos AF" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ResguardoAF.aspx.vb" Inherits="AF_ResguardoAF" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
|
Resguardo de Activos Fijos
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
|
|
<ajax:TabContainer ID="Tab" runat="server" Width="100%">
|
|
|
|
<ajax:TabPanel ID="TabR" runat="server" HeaderText="Resguardo">
|
|
<ContentTemplate>
|
|
|
|
<div class="row">
|
|
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="col-md-6">
|
|
<div class="portlet light smmallpadding traspasorow bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">INFORMACIÓN DEL RESGUARDO</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row" style="height:38px !important">
|
|
<label class="col-md-3" style="max-width: 120px;">Fecha:</label>
|
|
<div class="col-md-4" style="padding-left: 5px;">
|
|
<div class="input-group input-sm input-small date date-picker" style="padding:0px 10px !important" style="padding:0px 10px !important" data-date-format="dd/mm/yyyy">
|
|
<asp:TextBox ID="TxtFecha" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ValidationGroup="GrpGuardar" Width="100px" ClientIDMode="Static"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton runat="server" ID="ImgFecha" class="btn default"> <i class="fa fa-calendar"></i> </asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFecha" runat="server" TargetControlID="TxtFecha" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFecha" TargetControlID="TxtFecha" PopupButtonID="ImgFecha" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFecha" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFecha" runat="server" ControlToValidate="TxtFecha" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</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="VCOFecha1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCOFecha2" runat="server" HighlightCssClass="vco" TargetControlID="CVFecha" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-3" style="max-width: 120px;">Proyecto:</label>
|
|
<div class="col-md-4">
|
|
<asp:DropDownList ID="DdlSubProyecto" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVSubProyecto" runat="server" ControlToValidate="DdlSubProyecto" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proyecto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCESubProyecto" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubProyecto" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-3" style="max-width: 120px;">Responsable:</label>
|
|
<div class="col-md-4">
|
|
<asp:DropDownList ID="DdlResponsable" Width="230px" runat="server" DataTextField="Nombre" DataValueField="CvePersonal" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVAlmacenOrigen" runat="server" ControlToValidate="DdlResponsable" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Responsable''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEAlmacenOrigen" runat="server" HighlightCssClass="vco" TargetControlID="RFVAlmacenOrigen" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-3" style="max-width: 120px;">Observaciones:</label>
|
|
<div class="col-md-3">
|
|
<asp:TextBox ID="TxtObservaciones" TextMode="MultiLine" Rows="2" runat="server" Width="230px"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UPGVAF" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="col-md-6">
|
|
<div class="portlet light smmallpadding traspasorow bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">ACTIVOS FIJOS</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<asp:Literal runat="server" Text="Proyecto: "></asp:Literal>
|
|
<asp:DropDownList ID="DdlSubProyectoF" AutoPostBack="true" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row" style="margin-right: 10px; margin-top: -18px;" align="right">
|
|
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVAF.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GVAF.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
<table class="table table-striped Widthall">
|
|
<tr class="Titulos">
|
|
<th></th>
|
|
<th style="text-align: center; width: 27%;">Codigo</th>
|
|
<th style="text-align: center; width: 33%;">Activo Fijo</th>
|
|
<th style="text-align: center; width: 35%;">Proyecto</th>
|
|
</tr>
|
|
</table>
|
|
<div style="max-height: 192px; overflow-y: scroll">
|
|
<asp:GridView ID="GVAF" runat="server" DataKeyNames="CveActivoFijo" Style="table-layout: fixed" AutoGenerateColumns="False" ShowHeader="false" EmptyDataText="No se Encontró Activo Fijo Registrado" GridLines="none" ToolTip="Listado de Activos Fijos" CssClass="table table-striped table-hover Widthall">
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="5%">
|
|
<ItemTemplate>
|
|
<asp:CheckBox runat="server" ID="chkAF" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Codigo" DataField="Codigo" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="27%" />
|
|
<%-- <asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="33%">
|
|
<ItemTemplate>
|
|
<asp:Label CssClass="truncate" runat="server" ID="ltljeje" Text='<%# Eval("Descripcion")%>' />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>--%>
|
|
<asp:BoundField HeaderText="Activo Fijo" DataField="Descripcion" ItemStyle-Width="33%" />
|
|
<asp:BoundField HeaderText="Proyecto" DataField="SubProyecto" ItemStyle-HorizontalAlign="left" ItemStyle-Width="35%" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
|
|
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="row" style="text-align: center;">
|
|
<div class="col-md-12">
|
|
<asp:Button Text="Resguardar" CssClass="btn btn-primary" ValidationGroup="GrpGuardar" ID="BtnGuardar" runat="server" />
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
|
|
<ajax:TabPanel ID="TabTras" runat="server" HeaderText="Traslado">
|
|
<ContentTemplate>
|
|
|
|
<div class="row">
|
|
|
|
<asp:UpdatePanel runat="server" ID="UPTraslado" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-6">
|
|
<div class="portlet light smmallpadding traspasorow bordered ">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">TRASLADO DE ACTIVO FIJO</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<label class="col-md-3" style="max-width: 120px;">Fecha:</label>
|
|
<div class="col-md-4" style="padding-left: 5px;">
|
|
<div class="input-group input-sm input-small date date-picker" style="padding:0px 10px !important" data-date-format="dd/mm/yyyy">
|
|
<asp:TextBox ID="TxtFechaT" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ValidationGroup="GrpGuardarT" Width="100px" ClientIDMode="Static"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton runat="server" ID="ImgFechaT" class="btn default"> <i class="fa fa-calendar"></i> </asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MEEFechaT" runat="server" TargetControlID="TxtFechaT" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CEFechaT" TargetControlID="TxtFechaT" PopupButtonID="ImgFechaT" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaT" runat="server" ControlToValidate="TxtFechaT" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarT"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaT" runat="server" ControlToValidate="TxtFechaT" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpGuardarT"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFechaT" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaT" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCEFecha2T" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaT" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-3" style="max-width: 120px;">Proyecto:</label>
|
|
<div class="col-md-4">
|
|
<asp:DropDownList ID="DdlSubProyectoT" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVSubProyectoT" runat="server" ControlToValidate="DdlSubProyectoT" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proyecto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardarT"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCESubProyectoT" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubProyectoT" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-3" style="max-width: 120px;">Responsable:</label>
|
|
<div class="col-md-4">
|
|
<asp:DropDownList ID="DdlResponsableT" Width="230px" runat="server" DataTextField="Nombre" DataValueField="CvePersonal" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVResponsableT" runat="server" ControlToValidate="DdlResponsableT" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Responsable''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardarT"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEResponsableT" runat="server" HighlightCssClass="vco" TargetControlID="RFVResponsableT" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-3" style="max-width: 120px;">Observaciones:</label>
|
|
<div class="col-md-3">
|
|
<asp:TextBox ID="TxtObservacionesT" TextMode="MultiLine" Rows="2" runat="server" Width="230px"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<asp:UpdatePanel ID="UPGVAFT" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="col-md-6">
|
|
|
|
<div class="portlet light smmallpadding traspasorow bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">ACTIVOS FIJOS</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<asp:Literal runat="server" Text="Proyecto: "></asp:Literal><asp:DropDownList ID="DdlSubProyectoFT" AutoPostBack="true" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row" style="margin-right: 10px; margin-top: -18px;" align="right">
|
|
<input type="text" id="TxtBusqueda2" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda2','{0}')", GVAFT.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda2','{0}')", GVAFT.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
<table class="table table-striped Widthall">
|
|
<tr class="Titulos">
|
|
<th></th>
|
|
<th style="text-align: center; width: 27%;">Codigo</th>
|
|
<th style="text-align: center; width: 33%;">Activo Fijo</th>
|
|
<th style="text-align: center; width: 35%;">Proyecto</th>
|
|
</tr>
|
|
</table>
|
|
<div style="max-height: 192px; overflow-y: scroll; width: 100%;">
|
|
<asp:GridView ID="GVAFT" DataKeyNames="CveActivoFijo" runat="server" AutoGenerateColumns="False" ShowHeader="false" EmptyDataText="No se Encontró Activo Fijo Registrado" GridLines="none" ToolTip="Listado de Activos Fijos" CssClass="table table-striped table-hover Widthall">
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="5%">
|
|
<ItemTemplate>
|
|
<asp:CheckBox runat="server" ID="chkAF" Text="" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Codigo" DataField="Codigo" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="27%" />
|
|
<asp:BoundField HeaderText="Activo Fijo" DataField="Descripcion" ItemStyle-Width="33%" />
|
|
<asp:BoundField HeaderText="Proyecto" DataField="SubProyecto" ItemStyle-HorizontalAlign="left" ItemStyle-Width="35%" />
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
|
|
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="row" style="text-align: center;">
|
|
<div class="col-md-12">
|
|
<asp:Button Text="Trasladar" CssClass="btn btn-primary" ValidationGroup="GrpGuardarT" ID="BtnTrasladar" runat="server" />
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
|
|
<ajax:TabPanel ID="TabTR" runat="server" HeaderText="Recepción Traslado">
|
|
<ContentTemplate>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpFiltros" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Panel runat="server" DefaultButton="BtnCargaTraslado">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="portlet solid grey-cascade portlet-filter">
|
|
<div class="portlet-title portlet-filterT smalltitle magindate">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnCargaTraslado" ClientIDMode="Static" runat="server" Text="Consultar" class="btn btn-default" />
|
|
</div>
|
|
<div class="titlefiltros caption ">
|
|
<ul class="list-inline" style="font-size: 12px;">
|
|
<li>Personal:
|
|
<asp:DropDownList ID="DdlPersonalRT" runat="server" DataTextField="Nombre" DataValueField="CvePersonal" CssClass="form-control input-sm select2me" Style="width: 250px !important;" ValidationGroup="GrpCargaTraslados"></asp:DropDownList>
|
|
</li>
|
|
<li>Proyecto:
|
|
<asp:DropDownList ID="DdlSubProyectoRT" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
</li>
|
|
<li>Folio:
|
|
<asp:TextBox ID="TxtFolioT" Width="80px" CssClass="form-control input-sm" Style="display: inline !important;" runat="server"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros2" runat="server" TargetControlID="TxtFolioT" FilterType="Custom, Numbers" />
|
|
</li>
|
|
<li>AF:
|
|
<asp:HyperLink href="javascript:AbrirVentana('/AF/PopUpBuscarAF.aspx?AFT=1');" CssClass="btn btn-circle btn-sm label-info" Text="<i class='icon-magnifier' style='color:white;'></i>" runat="server" ID="HLBuscarAF"></asp:HyperLink>
|
|
<asp:HiddenField ID="HdnCveAFT" runat="server" ClientIDMode="Static" Value="-1" />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
<br />
|
|
|
|
<div class="row">
|
|
|
|
|
|
<asp:UpdatePanel UpdateMode="Conditional" ID="UpTR" runat="server">
|
|
<ContentTemplate>
|
|
<div class="col-md-6">
|
|
<div class="portlet light smmallpadding traspasorow bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-blue-steel"></i>
|
|
<span class="caption-subject bold uppercase">RECEPCIÓN TRASLADO DE ACTIVO FIJO</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
|
|
<label class="col-md-3">Fecha:</label>
|
|
<div class="col-md-4" style="padding-left: 5px;">
|
|
<div class="input-group input-sm input-small date date-picker" style="padding:0px 10px !important" data-date-format="dd/mm/yyyy">
|
|
<asp:TextBox ID="TxtFechaR" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ValidationGroup="GrpGuardarRT" Width="100px" ClientIDMode="Static"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton runat="server" ID="LinkButton1" class="btn default"> <i class="fa fa-calendar"></i> </asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender2" runat="server" TargetControlID="TxtFechaR" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender2" TargetControlID="TxtFechaR" PopupButtonID="LinkButton1" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtFechaR" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="GrpRecibir"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TxtFechaR" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpRecibir"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" HighlightCssClass="vco" TargetControlID="RequiredFieldValidator1" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" HighlightCssClass="vco" TargetControlID="CompareValidator1" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-3">Proyecto:</label>
|
|
<div class="col-md-4">
|
|
<asp:DropDownList ID="DdlSubProyectoRTA" Width="150px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVDdlSubProyectoRTA" runat="server" ControlToValidate="DdlSubProyectoRTA" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proyecto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardarRT"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" HighlightCssClass="vco" TargetControlID="RFVDdlSubProyectoRTA" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-3">Observaciones:</label>
|
|
<div class="col-md-4">
|
|
<asp:TextBox ID="TxtObservacionesR" TextMode="MultiLine" Rows="2" runat="server" Width="300px"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="row">
|
|
<asp:UpdatePanel ID="UpGVTR" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="col-md-12">
|
|
<div class="portlet light smmallpadding traspasorow bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-blue-steel"></i>
|
|
<span class="caption-subject bold uppercase">TRASLADOS</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row" style="margin-right: 10px; margin-top: -18px;" align="right">
|
|
<input type="text" id="TxtBusqueda3" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda3','{0}')", GvAFTR.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda3','{0}')", GvAFTR.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
<table class="table table-striped Widthall">
|
|
<tr class="Titulos">
|
|
<th></th>
|
|
<th style="text-align: center; width: 10%;">Folio</th>
|
|
<th style="text-align: center; width: 10%;">Codigo</th>
|
|
<th style="text-align: center; width: 35%;">Descripcion</th>
|
|
<th style="text-align: center; width: 20%;">Serie</th>
|
|
<th style="text-align: center; width: 20%;">Proyecto</th>
|
|
</tr>
|
|
</table>
|
|
<div style="max-height: 192px; overflow-y: scroll">
|
|
<asp:GridView ID="GvAFTR" runat="server" DataKeyNames="CveActivoFijoResguardo, CveActivoFijo, CveSubProyecto" AutoGenerateColumns="False" ShowHeader="false" EmptyDataText="No se Encontró Activo Fijo Registrado" GridLines="none" ToolTip="Listado de Activos Fijos" CssClass="table table-striped table-hover Widthall">
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="5%">
|
|
<ItemTemplate>
|
|
<asp:CheckBox runat="server" ID="chkAF" Text="" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Folio" DataField="Folio" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" />
|
|
<asp:BoundField HeaderText="Codigo" DataField="Codigo" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="15%" />
|
|
<asp:BoundField HeaderText="Activo Fijo" DataField="Descripcion" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="25%" />
|
|
<asp:BoundField HeaderText="Serie" DataField="NoSerie" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20%" />
|
|
<asp:BoundField HeaderText="Proyecto" DataField="SubProyecto" ItemStyle-HorizontalAlign="left" ItemStyle-Width="20%" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="row" style="text-align: center;">
|
|
<div class="col-md-12">
|
|
<asp:Button Text="Recibír" CssClass="btn btn-primary" ValidationGroup="GrpGuardarRT" ID="BtnRecibiT" runat="server" />
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
|
|
<ajax:TabPanel ID="TabE" runat="server" HeaderText="Liberación">
|
|
<ContentTemplate>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="UpFiltrosR">
|
|
<ContentTemplate>
|
|
<asp:Panel runat="server" DefaultButton="BtnCargaAsignados">
|
|
<div class="portlet solid grey-cascade portlet-filter">
|
|
<div class="portlet-title portlet-filterT smalltitle magindate">
|
|
<div class="tools">
|
|
<asp:Button ID="BtnCargaAsignados" ClientIDMode="Static" runat="server" Text="Consultar" class="btn btn-default" />
|
|
</div>
|
|
<div class="titlefiltros caption ">
|
|
<ul class="list-inline" style="font-size: 12px;">
|
|
<li>Personal:
|
|
<asp:DropDownList ID="DdlPersonalR" runat="server" DataTextField="Nombre" DataValueField="CvePersonal" CssClass="form-control input-sm select2me" Style="width: 250px !important;" ValidationGroup="GrpCargaAsignados"></asp:DropDownList>
|
|
</li>
|
|
<li>Proyecto:
|
|
<asp:DropDownList ID="DdlSubProyectoRL" Width="230px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
</li>
|
|
<li>Folio:
|
|
<asp:TextBox ID="TxtFolioRL" Width="80px" CssClass="form-control input-sm" Style="display: inline !important;" runat="server"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumeros" runat="server" TargetControlID="TxtFolioRL" FilterType="Custom, Numbers" />
|
|
</li>
|
|
<li>AF:
|
|
<asp:HyperLink href="javascript:AbrirVentana('/AF/PopUpBuscarAF.aspx?AFR=1');" CssClass="btn btn-circle btn-sm label-info" Text="<i class='icon-magnifier' style='color:white;'></i>" runat="server" ID="HLAFR"></asp:HyperLink>
|
|
<asp:HiddenField ID="HdnAFR" runat="server" ClientIDMode="Static" Value="-1" />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:Panel>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<br />
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
<asp:UpdatePanel ID="UpRecepcion" UpdateMode="conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="col-md-6">
|
|
<div class="portlet light smmallpadding bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">liberación DE RESGUARDO</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row">
|
|
<label class="col-md-3">Fecha:</label>
|
|
<div class="col-md-4" style="padding-left: 5px;">
|
|
<div class="input-group input-sm input-small date date-picker" style="padding:0px 10px !important" data-date-format="dd/mm/yyyy">
|
|
<asp:TextBox ID="TxtFechaRecepcion" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="10" ValidationGroup="GrpRecibir" Width="100px" ClientIDMode="Static"></asp:TextBox>
|
|
<span class="input-group-btn ">
|
|
<asp:LinkButton runat="server" ID="ImgFechaRecepcion" class="btn default"> <i class="fa fa-calendar"></i> </asp:LinkButton>
|
|
</span>
|
|
<ajax:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="TxtFechaRecepcion" Mask="99/99/9999" MaskType="Date" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>
|
|
<ajax:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="TxtFechaRecepcion" PopupButtonID="ImgFechaRecepcion" PopupPosition="BottomRight" Enabled="True"></ajax:CalendarExtender>
|
|
<asp:RequiredFieldValidator ID="RFVFechaRecepcion" runat="server" ControlToValidate="TxtFechaRecepcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> es necesario, por favor ingréselo." ValidationGroup="GrpRecibir"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVFechaRecepcion" runat="server" ControlToValidate="TxtFechaRecepcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha''</b> no tiene el formato correcto, por favor intente de nuevo con el siguiente formato: (dd/mm/yyyy)." Operator="DataTypeCheck" Type="Date" ValidationGroup="GrpRecibir"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RFVFechaRecepcion" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="CVFechaRecepcion" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-3">Proyecto:</label>
|
|
<div class="col-md-4">
|
|
<asp:DropDownList ID="DdlSubProyectoL" Width="150px" runat="server" DataTextField="SubProyecto" DataValueField="CveSubProyecto" CssClass="form-control input-sm select2me"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVSubProyectoL" runat="server" ControlToValidate="DdlSubProyectoL" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Proyecto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpRecibir"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCESubProyectoL" runat="server" HighlightCssClass="vco" TargetControlID="RFVSubProyectoL" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-3">Observaciones:</label>
|
|
<div class="col-md-4">
|
|
<asp:TextBox ID="TxtObservacionesRecepcion" TextMode="MultiLine" Rows="2" runat="server" Width="300px"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="row">
|
|
<asp:UpdatePanel ID="UpGVRecepcion" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="col-md-12">
|
|
<div class="portlet light smmallpadding traspasorow bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Resguardos</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body rowpadding">
|
|
<div class="row" style="margin-right: 10px; margin-top: -18px;" align="right">
|
|
<input type="text" id="TxtBusqueda4" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda4','{0}')", GvRecepcion.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda4','{0}')", GvRecepcion.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
|
</div>
|
|
<table style="width: 100%" class="table table-striped">
|
|
<tr class="Titulos">
|
|
<th></th>
|
|
<th style="text-align: center; width: 10%;">Folio</th>
|
|
<th style="text-align: center; width: 10%;">Codigo</th>
|
|
<th style="text-align: center; width: 35%;">Descripcion</th>
|
|
<th style="text-align: center; width: 20%;">Serie</th>
|
|
<th style="text-align: center; width: 20%;">Proyecto</th>
|
|
</tr>
|
|
</table>
|
|
<div style="max-height: 192px; overflow-y: scroll">
|
|
<asp:GridView ID="GvRecepcion" Width="100%" runat="server" DataKeyNames="CveActivoFijoResguardo, CveActivoFijo, CveSubProyecto" AutoGenerateColumns="False" ShowHeader="false" EmptyDataText="No se Encontró Activo Fijo Registrado" GridLines="none" ToolTip="Listado de Activos Fijos" CssClass="table table-striped table-hover">
|
|
<Columns>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="center" ItemStyle-Width="5%">
|
|
<ItemTemplate>
|
|
<asp:CheckBox runat="server" ID="chkAF" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField HeaderText="Folio" DataField="Folio" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="15%" />
|
|
<asp:BoundField HeaderText="Codigo" DataField="Codigo" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="15%" />
|
|
<asp:BoundField HeaderText="Activo Fijo" DataField="Descripcion" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="25%" />
|
|
<asp:BoundField HeaderText="Serie" DataField="NoSerie" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20%" />
|
|
<asp:BoundField HeaderText="Proyecto" DataField="SubProyecto" ItemStyle-HorizontalAlign="left" ItemStyle-Width="20%" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
|
|
|
|
<asp:UpdatePanel runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div style="text-align: center;" class="col-md-12">
|
|
<asp:Button ID="BtnRecibir" runat="server" Text="Liberar Activo Fijo" class="btn btn-primary" ValidationGroup="GrpRecibir" />
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
|
|
</ajax:TabContainer>
|
|
|
|
|
|
<asp:UpdatePanel runat="server" ID="UpAccionF">
|
|
<ContentTemplate>
|
|
<div id="DivArchivo" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog" style="width: 700px;">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">Agregar archivo</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UPupdateEstrucutran1" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-4 truncate ">Archivo:</div>
|
|
<div class="col-md-8">
|
|
<asp:TextBox ID="TxtUpFormato" CssClass="ADSdropzone hidden" data-maxFile="1" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="btnAddArchivo" runat="server" CssClass="btn btn-primary" Text="Guardar" />
|
|
<button class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
|
<script type="text/javascript">
|
|
$(document).on('mouseenter', ".truncate", function () {
|
|
var $this = $(this);
|
|
if (this.offsetWidth < this.scrollWidth && !$this.attr('title')) {
|
|
$this.tooltip({
|
|
title: $this.text(),
|
|
placement: "top"
|
|
});
|
|
$this.tooltip('show');
|
|
}
|
|
});
|
|
|
|
function CargaActivoFijo(cve, tipo) {
|
|
if (tipo == "2"){
|
|
$get("HdnCveAFT").value = cve;
|
|
$get('BtnCargaTraslado').click();
|
|
}
|
|
else if (tipo == "1")
|
|
{
|
|
$get("HdnAFR").value = cve;
|
|
$get('BtnCargaAsignados').click();
|
|
}
|
|
|
|
}
|
|
</script>
|
|
</asp:Content>
|
|
|