173 lines
12 KiB
Plaintext
173 lines
12 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatEstatusFactura.aspx.vb" Inherits="CatEstatusFactura" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.placeholder {
|
|
background-color:#ff6a00 !important;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Catálogo de Estatus de Factura
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
<asp:UpdatePanel ID="UppAddAcciones" runat="server">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="LnkAgregar" runat="server" Text="<i class='fa fa-plus'></i>Agregar"></asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="row" style="margin-left: 0px; margin-top: 5px; margin-bottom: 5px; text-align: right; margin-right: 5px;" align="left">
|
|
<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>
|
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveEstatusFactura,EstatusFactura,Estado,TipoDocto" EmptyDataText="No se encontraron Estatus Registrados" ToolTip="Listado de Estatus" CssClass="table table-striped table-advance table-hover Widthall ScrollAD" data-height="500" data-sort="true" BorderWidth="1" BorderColor="#D3D3D3" CellSpacing="0" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField itemstyle-width="10%" HeaderText="Clave">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlClave" runat="server" Text='<%# Eval("CveEstatusFactura", " {0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField itemstyle-width="20%" HeaderText="Estatus">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstatus" runat="server" Text='<%# Eval("EstatusFactura", " {0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField itemstyle-width="15%" HeaderText="Tipo Documento" ItemStyle-HorizontalAlign="Left">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlTipoDocto" runat="server" Text='<%# Eval("TipoDocto") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField itemstyle-width="15%" HeaderText="Estado">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstado" runat="server" Text='<%# Eval("Estado") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField itemstyle-width="15%" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField itemstyle-width="15%" HeaderText="Fecha Ingreso">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Editar" itemstyle-width="5%" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CssClass="btn btn-circle btn-xs mysmallbtn green" OnClick="Edit_Click" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Eliminar" itemstyle-width="5%" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" OnClick="Delete_Click" CausesValidation="False" CssClass="btn btn-circle btn-xs mysmallbtn red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
<asp:HiddenField ID="HdnModalidad" runat="server" Value="A" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="HdnID" runat="server" Value="-1" ClientIDMode="Static" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div id="divAddEstatusFactura" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddEstatusFactura" class="modal-content rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<h4 class="modal-title" id="myModalLabel" runat="server">Agregar Proveedor De Comunicaciones</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group form-md-line-input input-iconright" id="divclave" runat="server">
|
|
<asp:TextBox ID="TxtClave" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="3"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVClave" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtClave" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clave''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVClave" runat="server" ControlToValidate="TxtClave" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clave''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Double" ValidationGroup="GrpObligatorio"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEClave2" runat="server" HighlightCssClass="vco" TargetControlID="CVClave" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtClave.ClientID.ToString()%>">Clave:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtEstatus" runat="server" CssClass="form-control" CausesValidation="true" MaxLength="50"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtEstatus" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Estatus''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
|
<label for="<%= TxtEstatus.ClientID.ToString()%>">Estatus:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright" id="divtipodocto" runat="server">
|
|
<asp:DropDownList ID="DdlTipoDocto" runat="server" Width="150px" CssClass="form-control input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlTipoDocto.ClientID.ToString()%>">Tipo Documento:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright" id="divEstado" runat="server">
|
|
<label>Activo: </label>
|
|
<asp:CheckBox ID="ChkEstado" Text=" " runat="server" CssClass="chksino" Width="250px"></asp:CheckBox>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:LinkButton ID="BtnAgregarEstatusFactura" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpObligatorio"> <i class='material-icons'>done_all</i> Agregar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script src="../Metronic/assets/global/scripts/jquery-sortable.js"></script>
|
|
<script>
|
|
|
|
function MakeSortable() {
|
|
$('#C_GvDatos').sortable({
|
|
containerSelector: 'table',
|
|
itemPath: '> tbody',
|
|
itemSelector: 'tr',
|
|
placeholder: '<tr class="placeholder"/>'
|
|
});
|
|
var oldIndex;
|
|
// Sortable column heads
|
|
$('#C_GvDatos tr').sortable({
|
|
containerSelector: 'tr',
|
|
itemSelector: 'th',
|
|
placeholder: '<th class="placeholder"/>',
|
|
vertical: false,
|
|
onDragStart: function ($item, container, _super) {
|
|
oldIndex = $item.index();
|
|
$item.appendTo($item.parent());
|
|
_super($item, container);
|
|
},
|
|
onDrop: function ($item, container, _super) {
|
|
var field,
|
|
newIndex = $item.index();
|
|
|
|
if (newIndex != oldIndex) {
|
|
$item.closest('table').find('tbody tr').each(function (i, row) {
|
|
row = $(row);
|
|
if (newIndex < oldIndex) {
|
|
row.children().eq(newIndex).before(row.children()[oldIndex]);
|
|
} else if (newIndex > oldIndex) {
|
|
row.children().eq(newIndex).after(row.children()[oldIndex]);
|
|
}
|
|
});
|
|
}
|
|
|
|
_super($item, container);
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</asp:Content>
|