259 lines
22 KiB
Plaintext
259 lines
22 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="CatCombustibles.aspx.vb" Inherits="Maq_CatCombustibles" %>
|
|
|
|
<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="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
Combustibles
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
<ajax:TabContainer runat="server" OnClientActiveTabChanged="ClientFunction" Height="500px" CssClass="tabBodyOverride">
|
|
<ajax:TabPanel runat="server" HeaderText="Combustibles">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel ID="UpTitulosCombustibles" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table class="table table-striped table-advance table-hover">
|
|
<thead>
|
|
<tr class="Titulos">
|
|
<th width="170px">
|
|
<asp:LinkButton ID="LbCombustibleTipo2" runat="server" CausesValidation="false" Text="" CommandArgument="CombustibleTipo0;0" OnClick="LbOrden_Click">
|
|
Tipo Combustible
|
|
<asp:Literal ID="ImgCombustibleTipo0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="120px">
|
|
<asp:LinkButton ID="LbCombustible" runat="server" CausesValidation="false" Text="" CommandArgument="Combustible0;0" OnClick="LbOrden_Click">
|
|
Combustible
|
|
<asp:Literal ID="ImgCombustible0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="100px">
|
|
<asp:LinkButton ID="LbEstatusCombustible" runat="server" CausesValidation="false" Text="" CommandArgument="Estatus0;0" OnClick="LbOrden_Click">
|
|
Estatus
|
|
<asp:Literal ID="ImgEstatus0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="100px">
|
|
<asp:LinkButton ID="LbFechaCombustible" runat="server" CausesValidation="false" Text="" CommandArgument="FechaIng0;0" OnClick="LbOrden_Click">
|
|
Fecha
|
|
<asp:Literal ID="ImgFechaIng0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="100px">
|
|
<asp:LinkButton ID="LbUsuarioCombustible" runat="server" CausesValidation="false" Text="" CommandArgument="Usuario0;0" OnClick="LbOrden_Click">
|
|
Usuario
|
|
<asp:Literal ID="ImgUsuario0" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="121px">Comandos</th>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<td style="text-align: center">
|
|
<asp:DropDownList ID="DdlCombustibleTipo" runat="server" AppendDataBoundItems="true" DataValueField="CveCombustibleTipo" DataTextField="CombustibleTipo" ValidationGroup="GrpGuardar" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 160px !important;">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVCombustibleTipo2" runat="server" ControlToValidate="DdlCombustibleTipo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Combustible''</b> es necesario, por favor ingréselo." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOCombustibleTipo" runat="server" HighlightCssClass="vco" TargetControlID="RFVCombustibleTipo2" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="text-align: center">
|
|
<asp:TextBox ID="TxtCombustible" runat="server" CausesValidation="true" MaxLength="50" ValidationGroup="GrpGuardar" Width="110px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVCombustible" runat="server" ControlToValidate="TxtCombustible" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Combustible''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCCombustible" runat="server" HighlightCssClass="vco" TargetControlID="RFVCombustible" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td style="text-align: center" align="center">
|
|
<asp:LinkButton ID="LbAgregarCombustible" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpGuardar"></asp:LinkButton></td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UpDatosCombustibles" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatosCombustibles" runat="server" AutoGenerateColumns="False" DataKeyNames="CveCombustible" EmptyDataText="No se encontraron Combustibles Registrados" ToolTip="Listado de Combustible" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCombustibleTipo2" runat="server" Text='<%# Eval("CombustibleTipo")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlCombustibleTipo" runat="server" DataValueField="CveCombustibleTipo" DataTextField="CombustibleTipo" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 155px !important;"></asp:DropDownList>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCombustible" runat="server" Text='<%# Eval("Combustible")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtCombustible" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Combustible") %>' ValidationGroup="GrpGV2" Width="110px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVCombustible" runat="server" ControlToValidate="TxtCombustible" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Combustible''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV2"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCCombustible" runat="server" HighlightCssClass="vco" TargetControlID="RFVCombustible" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemStyle Width="95px" VerticalAlign="Middle" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstatus" runat="server" Text='<%# Eval("Estatus") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:CheckBox ID="ChkEstatus" runat="server" Checked='<%# If (Eval("Estatus").ToString = "Activo", True, False) %>' />
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemStyle Width="95px" VerticalAlign="Middle" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemStyle Width="95px" VerticalAlign="Middle" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Editar">
|
|
<EditItemTemplate>
|
|
<center>
|
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" />
|
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
|
</center>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Eliminar">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" 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>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
<ajax:TabPanel runat="server" HeaderText="Tipos de Combustible">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel ID="UpTitulosCombustiblesTipos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table class="table table-striped table-advance table-hover">
|
|
<thead>
|
|
<tr class="Titulos">
|
|
<th width="150px">
|
|
<asp:LinkButton ID="LbCombustibleTipo" runat="server" CausesValidation="false" Text="" CommandArgument="CombustibleTipo1;1" OnClick="LbOrden_Click">
|
|
Combustible Tipo
|
|
<asp:Literal ID="ImgCombustibleTipo1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="100px">
|
|
<asp:LinkButton ID="LbEstatusCombustibleTipo" runat="server" CausesValidation="false" Text="" CommandArgument="Estatus1;1" OnClick="LbOrden_Click">
|
|
Estatus
|
|
<asp:Literal ID="ImgEstatus1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="100px">
|
|
<asp:LinkButton ID="LbFechaCombustibleTipo" runat="server" CausesValidation="false" Text="" CommandArgument="FechaIng1;1" OnClick="LbOrden_Click">
|
|
Fecha
|
|
<asp:Literal ID="ImgFechaIng1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="100px">
|
|
<asp:LinkButton ID="LbUsuarioCombustibleTipo" runat="server" CausesValidation="false" Text="" CommandArgument="Usuario1;1" OnClick="LbOrden_Click">
|
|
Usuario
|
|
<asp:Literal ID="ImgUsuario1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="121px">Comandos</th>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<td style="text-align: center">
|
|
<asp:TextBox ID="TxtCombustibleTipo" runat="server" CausesValidation="true" MaxLength="50" ValidationGroup="GrpGuardarTipo" Width="140px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVCombustibleTipo" runat="server" ControlToValidate="TxtCombustibleTipo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''CombustibleTipo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarTipo"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCCombustibleTipo" runat="server" HighlightCssClass="vco" TargetControlID="RFVCombustibleTipo" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td align="center" style="text-align: center">
|
|
<asp:LinkButton ID="LbAgregarCombustibleTipo" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpGuardarTipo"></asp:LinkButton></td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatosCombustiblesTipos" runat="server" AutoGenerateColumns="False" DataKeyNames="CveCombustibleTipo" EmptyDataText="No se encontraron Tipos de Combustibles Registrados" ToolTip="Listado de Tipos de Combustible" CssClass="table table-striped table-advance table-hover" Style="margin-top: -10px; text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCombustibleTipo" runat="server" Text='<%# Eval("CombustibleTipo")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtCombustibleTipo" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("CombustibleTipo") %>' ValidationGroup="GrpGV" Width="140px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVCombustibleTipo" runat="server" ControlToValidate="TxtCombustibleTipo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Combustible Tipo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGV"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCCombustibleTipo" runat="server" HighlightCssClass="vco" TargetControlID="RFVCombustibleTipo" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemStyle Width="95px" VerticalAlign="Middle" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlEstatus" runat="server" Text='<%# Eval("Estatus") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:CheckBox ID="ChkEstatus" runat="server" Checked='<%# If (Eval("Estatus").ToString = "Activo", True, False) %>' />
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemStyle Width="95px" VerticalAlign="Middle" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng", "{0:d}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemStyle Width="95px" VerticalAlign="Middle" />
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Editar">
|
|
<EditItemTemplate>
|
|
<center>
|
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpGV" />
|
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" CssClass="btn btn-circle btn-sm red" Text="<i class='fa fa-times'></i>" />
|
|
</center>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Eliminar">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" 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>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
</ajax:TabContainer>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
</asp:Content>
|