193 lines
16 KiB
Plaintext
193 lines
16 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="PopUpOS_PS_Especificaciones.aspx.vb" Inherits="OS_PopUpOS_PS_Especificaciones" %>
|
|
|
|
<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">
|
|
Especificaciones del Producto o Servicio
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
<asp:HiddenField ID="hdnEsThickbox" runat="server" ClientIDMode="Static" />
|
|
<asp:HiddenField ID="hdnClientIDLink" runat="server" ClientIDMode="Static" />
|
|
<table border="0" class="contenido">
|
|
<tr>
|
|
<td align="left">
|
|
<div>
|
|
<fieldset>
|
|
<legend><b>Especificaciones del Producto o Servicio:</b></legend>
|
|
<table border="0">
|
|
<tr>
|
|
<td>Clasificación: </td>
|
|
<td><b>
|
|
<asp:Literal ID="LtlClasificacion" runat="server"></asp:Literal></b></td>
|
|
<td width="100px"></td>
|
|
<td>Unidad de Medida: </td>
|
|
<td><b>
|
|
<asp:Literal ID="LtlUM" runat="server"></asp:Literal></b></td>
|
|
<td rowspan="2"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Producto Servicio: </td>
|
|
<td><b>
|
|
<asp:Literal ID="LtlProductoServicio" runat="server"></asp:Literal></b></td>
|
|
<td></td>
|
|
<td>Codigo: </td>
|
|
<td><b>
|
|
<asp:Literal ID="LtlCodigo" runat="server"></asp:Literal></b></td>
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<div >
|
|
<fieldset>
|
|
<legend><b>Especificaciones</b></legend>
|
|
<table border="0">
|
|
<tr>
|
|
<td>
|
|
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr class="Titulos">
|
|
<th width="150px"> </th>
|
|
<th width="160px">
|
|
<asp:LinkButton ID="LbCaracteristica" runat="server" CausesValidation="false" Text="" CommandArgument="Caracteristica" OnClick="LbOrden_Click">
|
|
Característica
|
|
<asp:Literal ID="ImgCaracteristica" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton></th>
|
|
<th width="160px">
|
|
<asp:LinkButton ID="LbValor" runat="server" CausesValidation="false" Text="" CommandArgument="Valor" OnClick="LbOrden_Click">
|
|
Valor
|
|
<asp:Literal ID="ImgValor" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton></th>
|
|
<th width="155px">Comandos</th>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<td> </td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlCaracteristica" runat="server" AppendDataBoundItems="true" AutoPostBack="True" DataTextField="Caracteristica" DataValueField="CvePSCaracteristica" CssClass="form-control input-sm select2me" Style="width: 150px !important;" ValidationGroup="GrpGuardarC">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVCaracteristica" runat="server" ControlToValidate="DdlCaracteristica" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Caracteristica''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardarC"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOCaracteristica" runat="server" HighlightCssClass="vco" TargetControlID="RFVCaracteristica" Width="100px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td>
|
|
<asp:DropDownList ID="DdlOpcion" runat="server" AppendDataBoundItems="true" AutoPostBack="True" DataTextField="Opcion" DataValueField="CveOpcion" CssClass="form-control input-sm select2me" Style="width: 150px !important;" ValidationGroup="GrpGuardarC">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVOpcion" runat="server" ControlToValidate="DdlOpcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Opcion''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardarC"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOOpcion" runat="server" HighlightCssClass="vco" TargetControlID="RFVOpcion" Width="100px"></ajax:ValidatorCalloutExtender>
|
|
|
|
<asp:TextBox ID="txtValor" runat="server" Width="150px" Visible="false"></asp:TextBox>
|
|
</td>
|
|
<td style="text-align: center;">
|
|
<asp:LinkButton ID="LbAgregar" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpGuardarC"></asp:LinkButton></td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional" style="max-height: 150px; overflow-y:auto;">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvValoresCaracteristicas" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePSCaracteristica" EmptyDataText="No se encontraron Especificaciones para El Producto o Servicio" ToolTip="Listado de Especificaciones para El Producto o Servicio" CssClass="table table-striped table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlProductoServicio" runat="server" Text='<%# Eval("PS") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCaracteristica" runat="server" Text='<%# Eval("Caracteristica") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlCaracteristica" runat="server" AppendDataBoundItems="true" AutoPostBack="True" OnSelectedIndexChanged="DdlCaracteristicaEdit_SelectedIndexChanged" DataTextField="Caracteristica" DataValueField="CvePSCaracteristica" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;" ValidationGroup="GrpGuardarC">
|
|
</asp:DropDownList>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlValor" runat="server" Text='<%# Eval("Valor") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlOpcion" runat="server" AppendDataBoundItems="true" AutoPostBack="True" DataTextField="Opcion" DataValueField="CveOpcion" Class="table-group-action-input form-control input-inline input-small input-sm" Style="width: 100px !important;" ValidationGroup="GrpGuardarC">
|
|
</asp:DropDownList>
|
|
<asp:TextBox ID="TxtValor" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Valor")%>' ValidationGroup="GrpGuardarC" Width="100px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVValor" runat="server" ControlToValidate="TxtValor" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Valor''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarC"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOValor" runat="server" HighlightCssClass="vco" TargetControlID="RFVValor" Width="100px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField Visible="false">
|
|
<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>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="ImgD" runat="server" AlternateText="Elim" 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" OnClientClick="javascript:return C();" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
<div style="text-align: center">
|
|
<asp:Button ID="BtnGuardar" runat="server" Text="Guardar" class="btn btn-primary" />
|
|
<asp:Button ID="BtnCancelar" runat="server" Text="Cancelar" class="btn btn-default" />
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
<script language="javascript" type="text/javascript">
|
|
function C() {
|
|
return confirm('¿Está seguro que desea eliminar la Especificacion para el Producto o Servicio?');
|
|
}
|
|
|
|
function CargaEspecificaciones(Especificaciones) {
|
|
var ClientIDLink = document.getElementById("hdnClientIDLink").value;
|
|
|
|
if (document.getElementById("hdnEsThickbox").value == "S") {
|
|
parent.CargaEspecificaciones(Especificaciones, ClientIDLink);
|
|
parent.tb_remove();
|
|
}
|
|
else {
|
|
window.opener.CargaEspecificaciones(Especificaciones, ClientIDLink);
|
|
window.close();
|
|
}
|
|
}
|
|
|
|
function Cancelar() {
|
|
if (document.getElementById("hdnEsThickbox").value == "S") {
|
|
parent.tb_remove();
|
|
}
|
|
else {
|
|
window.close();
|
|
}
|
|
}
|
|
</script>
|
|
</asp:Content>
|