177 lines
9.1 KiB
Plaintext
177 lines
9.1 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatTiposOrdenesServicios.aspx.vb" Inherits="OS_CatTiposOrdenesServicios" %>
|
||
|
||
<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;
|
||
}
|
||
</style>
|
||
</asp:Content>
|
||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||
Catálogo de Tipos de Ordenes de Servicio
|
||
</asp:Content>
|
||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
||
<asp:UpdatePanel runat="server" ID="UpAgregar">
|
||
<ContentTemplate>
|
||
<li>
|
||
<asp:LinkButton runat="server" ID="BtnAgregarTiposOS" data-toggle="tooltip" data-placement="left" Text="<i class='fa fa-plus'></i> Agregar Tipo de OS"></asp:LinkButton>
|
||
</li>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</asp:Content>
|
||
<asp:Content ID="Content6" ContentPlaceHolderID="HA" runat="Server">
|
||
</asp:Content>
|
||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||
<asp:UpdatePanel ID="UpGral" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<div class="row">
|
||
<div class="Widthall" style="text-align: right!important; margin-top: 20px!important; margin-bottom: 2px!important">
|
||
<input type="text" id="TxtBusqueda" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvTiposOS.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda','{0}')", GvTiposOS.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row" style="margin:5px">
|
||
<asp:UpdatePanel ID="UPGvTiposOS" runat="server" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
|
||
<asp:GridView ID="GvTiposOS" runat="server" AutoGenerateColumns="False"
|
||
DataKeyNames="CveOrdenServicioTipo, OrdenServicioTipo, Estatus"
|
||
EmptyDataText="No se encontraron registros"
|
||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||
data-sort="true"
|
||
data-freezerows="1"
|
||
GridLines="None">
|
||
<Columns>
|
||
<asp:TemplateField HeaderText="Tipo de Orden de Servicio">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblTiposOS" runat="server" Text='<%# Eval("OrdenServicioTipo") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Estatus" ItemStyle-Width="150px">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="LblPuntos" runat="server" Text='<%# Eval("Estatus")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField HeaderText="Fecha Ing." ItemStyle-HorizontalAlign="Center" ItemStyle-Width="150px">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="lblFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}")%>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField ItemStyle-Width="300px" HeaderText="Usuario">
|
||
<ItemTemplate>
|
||
<asp:Literal ID="lblUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Right" ItemStyle-Width="80px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="ImgE" OnClick="Edit_ClickTiposOS" runat="server" AlternateText="Editar" CausesValidation="False"
|
||
CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||
</ItemTemplate>
|
||
</asp:TemplateField>
|
||
<asp:TemplateField ItemStyle-HorizontalAlign="Left" ItemStyle-Width="40px">
|
||
<ItemTemplate>
|
||
<asp:LinkButton ID="imgD" OnClick="Remove_ClickTiposOS" runat="server" AlternateText="Eliminar" CausesValidation="False" CssClass="btn btn-circle btn-sm 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>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
|
||
<br />
|
||
<br />
|
||
|
||
<div id="DivAgregarTiposOS" class="modal ADS fade" role="dialog">
|
||
<div class="modal-dialog" style="width: 450px;">
|
||
<asp:UpdatePanel runat="server" class="modal-content" ID="UpModalTiposOS" UpdateMode="Conditional">
|
||
<ContentTemplate>
|
||
<div class="modal-header ">
|
||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||
<h4 class="modal-title">
|
||
<asp:Literal ID="LtlTituloModalTiposOS" runat="server">Agregar Tipo Defecto</asp:Literal></h4>
|
||
</div>
|
||
<div class="modal-body">
|
||
|
||
<div class="form-group form-md-line-input input-iconright">
|
||
<asp:TextBox ID="TxtTiposOS" CssClass="form-control " runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
||
<asp:RequiredFieldValidator ID="RfvTxtTiposOS" runat="server" ControlToValidate="TxtTiposOS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTiposOS"></asp:RequiredFieldValidator>
|
||
<label for="<%= TxtTiposOS.ClientID.ToString()%>">Tipo:</label>
|
||
<i></i>
|
||
</div>
|
||
|
||
|
||
<div ID="DivEstatus" runat="server" class="form-group form-md-line-input input-iconright" Visible="false">
|
||
<label for="<%= ChkEstatus.ClientID.ToString()%>">Activo:</label>
|
||
<asp:CheckBox ID="ChkEstatus" runat="server" CssClass="make-switchsd" data-size="small" Text=" " Checked="true" />
|
||
<i></i>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div class="modal-footer">
|
||
<asp:Button ID="BtnAgregarTiposOSModal" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpTiposOS" />
|
||
<button id="Button3" runat="server" type="button" class="btn default" data-dismiss="modal">Cancelar</button>
|
||
</div>
|
||
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
</div>
|
||
</div>
|
||
</ContentTemplate>
|
||
</asp:UpdatePanel>
|
||
|
||
</asp:Content>
|
||
<asp:Content ID="Content9" ContentPlaceHolderID="JS" runat="Server">
|
||
</asp:Content> |