2287 lines
193 KiB
Plaintext
2287 lines
193 KiB
Plaintext
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="ProductosServicios.aspx.vb" Inherits="ProductosyServicios" %>
|
|
|
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
|
<script runat="server">
|
|
|
|
Protected Sub RBLCantidad_SelectedIndexChanged(sender As Object, e As EventArgs)
|
|
|
|
End Sub
|
|
</script>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
|
|
<link href="/Metronic/assets/global/plugins/cubeportfolio/css/cubeportfolio.css" rel="stylesheet" type="text/css" />
|
|
<link href="/Styles/Ecommerce.css" rel="stylesheet" />
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
|
<style>
|
|
.gvPaqueteDetalle > tbody > tr > td:nth-child(1), .gvPaqueteDetalle > tbody > tr > th:nth-child(1) {
|
|
width: 1%;
|
|
}
|
|
|
|
.gvPaqueteDetalle > tbody > tr > td:nth-child(2), .gvPaqueteDetalle > tbody > tr > th:nth-child(2) {
|
|
width: 28%;
|
|
}
|
|
|
|
.gvPaqueteDetalle > tbody > tr > td:nth-child(3), .gvPaqueteDetalle > tbody > tr > th:nth-child(3) {
|
|
width: 28%;
|
|
}
|
|
|
|
.gvPaqueteDetalle > tbody > tr > td:nth-child(2) > span.select2 {
|
|
width: 100% !important; /*max-width: 300px;*/
|
|
}
|
|
|
|
.gvPaqueteDetalle > tbody > tr > td:nth-child(4), .gvPaqueteDetalle > tbody > tr > th:nth-child(4) {
|
|
width: 5%;
|
|
}
|
|
|
|
.gvPaqueteDetalle > tbody > tr > td:nth-child(5), .gvPaqueteDetalle > tbody > tr > th:nth-child(5) {
|
|
width: 5%;
|
|
}
|
|
|
|
.gvPaqueteDetalle > tbody > tr > td:nth-child(6), .gvPaqueteDetalle > tbody > tr > th:nth-child(6) {
|
|
width: 1%;
|
|
}
|
|
|
|
.gvPaqueteDetalle > tbody > tr > td:nth-child(7), .gvPaqueteDetalle > tbody > tr > th:nth-child(7) {
|
|
width: 1%;
|
|
}
|
|
|
|
.Mayuscula {
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.modalBackground {
|
|
background-color: Black;
|
|
filter: alpha(opacity=90);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.modalPopup {
|
|
background-color: #FFFFFF;
|
|
padding-bottom: 10px;
|
|
}
|
|
</style>
|
|
</asp:Content>
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="HB" runat="Server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="E" runat="Server">
|
|
<asp:Label ID="lbTitulo" runat="server" Text="Registro de Productos y Servicios: "></asp:Label>
|
|
</asp:Content>
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="H" runat="Server">
|
|
<asp:UpdatePanel ID="UpAcciones" runat="server">
|
|
<ContentTemplate>
|
|
<li>
|
|
<asp:LinkButton ID="LnkUnificar" runat="server" data-toggle="tooltip" data-placement="left" title="Unificar Productos" Text="<i class='material-icons'>loop</i> Unificar Producto" Visible="false"></asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LnkModalCodigoBarrasQr" runat="server" data-toggle="tooltip" data-placement="left" title="Generar codigo de Barras/QR" Text="<i class='fa fa-qrcode'></i> Codigo de Barras/QR"></asp:LinkButton>
|
|
</li>
|
|
<li>
|
|
<asp:LinkButton ID="LBBitacoraEcommerce" OnClick="LBBitacoraEcommerce_Click" Visible="false" runat="server"><i class="fa fa-stack-overflow"></i> Bitacora Ecommerce</asp:LinkButton>
|
|
</li>
|
|
</ContentTemplate>
|
|
|
|
</asp:UpdatePanel>
|
|
</asp:Content>
|
|
<asp:Content ID="Content6" ContentPlaceHolderID="C" runat="Server">
|
|
|
|
<asp:UpdatePanel ID="UpDatos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<ajax:TabContainer ID="Tab" runat="server" ActiveTabIndex="0" Width="100%">
|
|
<ajax:TabPanel HeaderText="Producto Servicio" ID="TabPS" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-6" id="DivDatos" runat="server">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Descripción</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div class="row">
|
|
<div class="form-group form-md-line-input input-iconright col-xs-3">
|
|
<asp:TextBox ID="TxtCodigo" CssClass="form-control " runat="server" MaxLength="50"></asp:TextBox>
|
|
<label class="truncate" style="padding-left: 16px;" for="<%= TxtCodigo.ClientID.ToString()%>">Número de Parte / Código:</label>
|
|
<i></i>
|
|
</div>
|
|
<%-- <div class="form-group form-md-line-input input-iconright col-xs-3">
|
|
<asp:TextBox ID="TxtCodigo2" CssClass="form-control " runat="server" MaxLength="50"></asp:TextBox>
|
|
<label class="truncate" style="padding-left: 16px;" for="<%= TxtCodigo2.ClientID.ToString()%>">Código 2:</label>
|
|
<i></i>
|
|
</div>--%>
|
|
|
|
<div class="form-group form-md-line-input input-iconright col-xs-3">
|
|
<asp:TextBox ID="TxtCodigoBarras" CssClass="form-control " runat="server" MaxLength="50"></asp:TextBox>
|
|
<label class="truncate" style="padding-left: 16px;" for="<%= TxtCodigoBarras.ClientID.ToString()%>">Código Barras:</label>
|
|
<i></i>
|
|
</div>
|
|
<%--<div class="form-group form-md-line-input input-iconright col-xs-1">
|
|
<asp:LinkButton ID="LnkModalCodigoBarrasQr" runat="server">
|
|
<asp:Image ID="ImgCodido" runat="server" ImageUrl="~/Imagenes/CodigoQR.gif" />
|
|
</asp:LinkButton>
|
|
|
|
</div>--%>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtPS" CssClass="form-control Mayuscula" runat="server" MaxLength="846"></asp:TextBox>
|
|
<label class="truncate" for="<%= TxtPS.ClientID.ToString()%>">Descripción del Producto / Servicio:</label>
|
|
<asp:RequiredFieldValidator ID="RFVPS" runat="server" ControlToValidate="TxtPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto Servicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCEPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row DIVTIPO">
|
|
<div class="col-md-4">
|
|
<div class="form-group form-md-line-input input-iconright" id="DivDdlTipo" runat="server" visible="false">
|
|
<asp:DropDownList ID="DdlTipoPSDes" CssClass="form-control input-sm select2me " Width="70%" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="ClasificacionDetalle" DataValueField="CveClasificacionDetalle" Enabled="true">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlTipoPSDes.ClientID.ToString()%>">Tipo:</label>
|
|
<asp:LinkButton ID="BtnAddClasificacionDetalle" runat="server" OnClick="BtnAddClasificacionDetalle_Click" CssClass="btn btn-default btn-circle btn-xs " data-toggle="tooltip" title="Registrar un Tipo"><i class='fa fa-plus' style="color:black" ></i></asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div runat="server" id="DivMarcaPSDes" class="form-group form-md-line-input input-iconright" visible="false">
|
|
<asp:DropDownList ID="DdlMarcaPSDes" CssClass="form-control input-sm select2me" runat="server" DataTextField="Marca" DataValueField="CveMarca" Width="100%" Height="22px">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlMarcaPSDes.ClientID.ToString()%>">Marca:</label>
|
|
<i></i>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="form-group form-md-line-input input-iconright" id="DivTxtModelo" runat="server" visible="false">
|
|
<asp:TextBox ID="TxtModelo" runat="server" Width="100%" CssClass="form-control Mayuscula" CausesValidation="true"></asp:TextBox>
|
|
<label for="<%= TxtModelo.ClientID.ToString()%>">Modelo:</label>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="form-group form-md-line-input input-iconright" id="DivTxtAdicional" runat="server" visible="false">
|
|
<asp:TextBox ID="TxtAdicional" runat="server" Width="100%" CssClass="form-control Mayuscula" CausesValidation="true"></asp:TextBox>
|
|
<label for="<%= TxtAdicional.ClientID.ToString()%>">Adicional:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlTipoPS" CssClass="form-control input-sm select2me" runat="server" Width="206px" Height="22px">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Producto" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Servicio" Value="1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlTipoPS.ClientID.ToString()%>">Tipo PS:</label>
|
|
<asp:RequiredFieldValidator ID="RFVTipoPS" runat="server" ControlToValidate="DdlTipoPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCETipoPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlUnidadMedida" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="false" CausesValidation="true" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida" Width="206px">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlUnidadMedida.ClientID.ToString()%>">Unidad de Medida:</label>
|
|
<asp:RequiredFieldValidator ID="RFVUnidadMedida" runat="server" ControlToValidate="DdlUnidadMedida" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad de Medida''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOUnidadMedida" runat="server" HighlightCssClass="vco" TargetControlID="RFVUnidadMedida" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright" id="DivUsoClasificacion" runat="server" visible="false">
|
|
<asp:DropDownList ID="DdlUsoClasificacion" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" Width="206px" AutoPostBack="true" OnSelectedIndexChanged="DdlUsoClasificacion_SelectedIndexChanged">
|
|
<asp:ListItem Selected="True" Text="Todos" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Ingresos" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Gasto" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Ingresos/Gasto" Value="3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlUsoClasificacion.ClientID.ToString()%>">Uso Clasificación:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright DIVCLASIFICACIONCONTABLE" id="DivDdlClasificacion" runat="server">
|
|
<asp:DropDownList ID="DdlClasificacion" CssClass="form-control input-sm select2me" OnSelectedIndexChanged="DdlClasificacion_SelectedIndexChanged" AutoPostBack="true" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="350px">
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlClasificacion.ClientID.ToString()%>">Clasificación Contable:</label>
|
|
<asp:RequiredFieldValidator ID="RFVClasificacion" runat="server" ControlToValidate="DdlClasificacion" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clasificación''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCClasificacion" runat="server" HighlightCssClass="vco" TargetControlID="RFVClasificacion" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group form-md-line-input input-iconright" id="DvTamanio" runat="server" visible="false">
|
|
<asp:DropDownList ID="DdlTamanio" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="Tamaño" DataValueField="CveTamaño" Width="350px">
|
|
<asp:ListItem Value="-1">Seleccione</asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlTamanio.ClientID.ToString()%>">Tamaño:</label>
|
|
<asp:RequiredFieldValidator ID="RfvDdlTamanio" runat="server" Display="None" ControlToValidate="DdlTamanio" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tamaño''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="CERfvDdlTamanio" runat="server" HighlightCssClass="vco" TargetControlID="RfvDdlTamanio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<i></i>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright" runat="server" id="DivPSSAT">
|
|
<ADS:Dropdownlost runat="server" ID="DdlSATPS" CssStyle="width: 46%;" CssClass="form-control input-sm select2me" DataTextField="Descripcion" DataValueField="CveSATPS" />
|
|
<%-- <asp:DropDownList ID="DdlSATPS" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="false" CausesValidation="true" DataTextField="Descripcion" DataValueField="CveSATPS" Width="350px" Enabled="true">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
<label for="<%= DdlSATPS.ClientID.ToString()%>">Producto Servicio SAT:</label>
|
|
<%-- <asp:RequiredFieldValidator ID="Rfvpssat" runat="server" ControlToValidate="DdlSATPS" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Productos Servicios SAT''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="vcepssat" runat="server" HighlightCssClass="vco" TargetControlID="Rfvpssat" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
|
<i></i>
|
|
</div>
|
|
<br />
|
|
<div class="form-group form-md-line-input input-iconright" runat="server" id="DivClasificacion2" visible="false">
|
|
<asp:DropDownList ID="DdlClasificacion2" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" AutoPostBack="false" CausesValidation="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="350px" Enabled="true">
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlClasificacion2.ClientID.ToString()%>">Clasificación 2:</label>
|
|
<i></i>
|
|
</div>
|
|
|
|
<div runat="server" id="DivMarca" class="form-group form-md-line-input input-iconright" visible="false">
|
|
<asp:DropDownList ID="DdlMarca" CssClass="form-control input-sm select2me" runat="server" DataTextField="Marca" DataValueField="CveMarca" Width="206px" Height="22px">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlMarca.ClientID.ToString()%>">Marca:</label>
|
|
<i></i>
|
|
</div>
|
|
|
|
<div runat="server" id="DivCompuesto" class="form-group form-md-line-input input-iconright" visible="false">
|
|
<asp:DropDownList ID="DdlCompuesto" AppendDataBoundItems="true" CssClass="form-control input-sm select2me" runat="server" DataTextField="Compuesto" DataValueField="CveCompuesto" Width="206px" Height="22px">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlCompuesto.ClientID.ToString()%>">Compuesto:</label>
|
|
<i></i>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright col-xs-3">
|
|
<asp:TextBox ID="TxtVentaMinima" CssClass="form-control " runat="server"></asp:TextBox>
|
|
<%--<ajax:FilteredTextBoxExtender ID="FTBETVentaMinima" TargetControlID="TxtVentaMinima" FilterType="Numbers" runat="server" ValidChars=".," />--%>
|
|
<label class="truncate" style="padding-left: 16px;" for="<%= TxtVentaMinima.ClientID.ToString()%>">Venta Mínima:</label>
|
|
<i></i>
|
|
</div>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<div class="form-group">
|
|
<label>Aplica para Venta:</label>
|
|
<asp:CheckBox ID="ChkAplicaParaVenta" CssClass="make-switchsd" data-size="small" runat="server" Checked="True" />
|
|
</div>
|
|
|
|
<%-- <div class="form-group">
|
|
<label>Aplica para Concepto en la factura:</label>
|
|
<asp:CheckBox ID="ChkAplicaParaConcepto" CssClass="make-switchsd" data-size="small" runat="server" Checked="true" />
|
|
</div>--%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<asp:UpdatePanel ID="UpEquivalencias" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-12" id="DivEquivalencia" runat="server" visible="false">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Equivalencias</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
|
|
<asp:GridView ID="GvEquivalencia" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePS,CveUM, UnidadBase" EmptyDataText="No se encontraron Equivalencias" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Base" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtUnidadBase" runat="server" Text='<%# If(Eval("UnidadBase").ToString() = "True", "Si", "") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<%--<EditItemTemplate>
|
|
<asp:CheckBox ID="ChkBase" runat="server" />
|
|
</EditItemTemplate>--%>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Unidad de Medida">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="Ltum" runat="server" Text='<%# Eval("UnidadMedida")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<%--<asp:BoundField DataField="UnidadMedida" HeaderText="Unidad de Medida"></asp:BoundField>--%>
|
|
<asp:TemplateField HeaderText="Cantidad" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtCantidad" runat="server" Text='<%# Eval("Cantidad", "{0:#,##0.00########}")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtCantidadEquivalencia" runat="server" TextMode="Number" Text='<%# Eval("Cantidad", "{0:#,##0.00########}") %>'>></asp:TextBox>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="110px" ItemStyle-HorizontalAlign="Center" HeaderText="Editar">
|
|
<EditItemTemplate>
|
|
<div style="width: 80px;">
|
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-xs green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpEquivalen" />
|
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" CssClass="btn btn-circle btn-xs red" Text="<i class='fa fa-times'></i>" />
|
|
</div>
|
|
</EditItemTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" CommandName="Edit" CssClass="btn btn-circle btn-xs green" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-Width="110px" ItemStyle-HorizontalAlign="Center" HeaderText="Eliminar">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgR" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-xs 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>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12" id="DivLlantas" runat="server" visible="false">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Llantas</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlModelo" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" DataTextField="Modelo" DataValueField="CveModelo" Height="22px">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlModelo.ClientID.ToString()%>">Modelo:</label>
|
|
<i></i>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlMedida" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" DataTextField="Medida" DataValueField="CveMedida" Height="22px">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlMedida.ClientID.ToString()%>">Medida:</label>
|
|
<i></i>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlRin" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" DataTextField="RinTamaño" DataValueField="CveRinTamaño" Height="22px">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlModelo.ClientID.ToString()%>">Tamaño de Rin:</label>
|
|
<i></i>
|
|
</div>
|
|
<%-- <div class="form-group form-md-line-input input-iconright">
|
|
<label for="<%= DdlPSAdicional.ClientID.ToString()%>">Producto/Servicio Adicional:</label>
|
|
<ADS:Dropdownlost runat="server" ID="DdlPSAdicional" CssStyle="width: 100%;" CssClass=" form-control input-sm DdlPS" IncluyeTodos="false" CssClassDdl="select2me form-control" DataTextField="PSCodigo" DataValueField="CvePS" />
|
|
<i></i>
|
|
</div>--%>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<asp:UpdatePanel ID="UpPSAdicionales" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-12" id="DivPSAdicionales" runat="server" visible="false">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Productos/Servicios Adicionales</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:LinkButton ID="BtnAgregarPSAdicionalesModal" runat="server" data-toggle="tooltip" data-placement="right" title="Agregar Producto/Servicio Adicional." CssClass="btn btn-circle btn-default" Text="<i class='fa fa-plus'></i> Agregar"></asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
|
|
<asp:GridView ID="GvPSAdicionales" runat="server" AutoGenerateColumns="False" DataKeyNames="CvePS, CvePSAdicional,Cantidad, PS,CodigoPS" EmptyDataText="No se encontraron Productos/Servicios Adicionales" CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Producto/Servicio">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="Ltum" runat="server" Text='<%# Eval("CodigoPS")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlPSAdicional" CssClass="form-control input-sm select2me" runat="server" DataTextField="PS" DataValueField="CvePS" AppendDataBoundItems="true" AutoPostBack="True" />
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Cantidad" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtCantidad" runat="server" Text='<%#If(CInt(Eval("Cantidad").ToString) > 0, "Fijo: " + Eval("Cantidad", "{0:#,##0.00########}"), "Depende del PS")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtCantidad" runat="server" TextMode="Number" Text='<%# Eval("Cantidad", "{0:#,##0.00########}") %>' Width="70%">></asp:TextBox>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Editar">
|
|
<%-- <EditItemTemplate>
|
|
<div style="width: 80px;">
|
|
<asp:LinkButton ID="imgU" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-xs green" Text="<i class='fa fa-check'></i>" ValidationGroup="GrpEquivalen" />
|
|
<asp:LinkButton ID="imgC" runat="server" AlternateText="Cancelar" CausesValidation="False" CommandName="Cancel" CssClass="btn btn-circle btn-xs red" Text="<i class='fa fa-times'></i>" />
|
|
</div>
|
|
</EditItemTemplate>--%>
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgE" runat="server" AlternateText="Editar" CausesValidation="False" OnClick="Edit_Click" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Eliminar">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="imgR" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" CssClass="btn btn-circle btn-xs 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>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel HeaderText="Precio y Utilidad" ID="TabPU" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Costos del Producto</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtPrecio" CssClass="form-control" runat="server" MaxLength="10" Text="0"></asp:TextBox>
|
|
<label for="<%= TxtPrecio.ClientID.ToString()%>">Precio:</label><asp:RequiredFieldValidator ID="RFVPrecio" runat="server" ControlToValidate="TxtPrecio" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Precio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:RegularExpressionValidator ID="REVPrecio" runat="server" ControlToValidate="TxtPrecio" Display="None" EnableClientScript="True" ErrorMessage="El campo <b>''Precio''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationGroup="GrpGuardar" ValidationExpression="^[0-9]{1,15}(?:\.[0-9]{1,4})?$" />
|
|
<ajax:ValidatorCalloutExtender ID="VCPrecio" runat="server" HighlightCssClass="vco" TargetControlID="RFVPrecio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCPrecioA" runat="server" HighlightCssClass="vco" TargetControlID="REVPrecio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
<i>$</i>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtPrecioMinimo" CssClass="form-control" runat="server" MaxLength="10" Text="0"></asp:TextBox>
|
|
<label for="<%= TxtPrecioMinimo.ClientID.ToString()%>">Precio Minimo:</label><asp:RequiredFieldValidator ID="RFVTxtPrecioMinimo" runat="server" ControlToValidate="TxtPrecioMinimo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Precio Minimo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:RegularExpressionValidator ID="REVTxtPrecioMinimo" runat="server" ControlToValidate="TxtPrecio" Display="None" EnableClientScript="True" ErrorMessage="El campo <b>''Precio''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." ValidationGroup="GrpGuardar" ValidationExpression="^[0-9]{1,15}(?:\.[0-9]{1,4})?$" />
|
|
<ajax:ValidatorCalloutExtender ID="VCETxtPrecioMinimo" runat="server" HighlightCssClass="vco" TargetControlID="REVTxtPrecioMinimo" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCETxtPrecioMinimoA" runat="server" HighlightCssClass="vco" TargetControlID="REVTxtPrecioMinimo" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
<i>$</i>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<div class="row">
|
|
<div id="DvTipo" runat="server" class="col-md-6">
|
|
<label for="<%= DdlTipoFactor.ClientID.ToString()%>">Tipo Factor:</label>
|
|
<asp:DropDownList ID="DdlTipoFactor" CssClass="form-control input-sm select2me" runat="server" AutoPostBack="true">
|
|
<asp:ListItem Selected="True" Text="Tasa" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Cuota" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Exento" Value="3"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label id="LIva" for="<%= DdlIVA.ClientID.ToString()%>" runat="server">IVA:</label>
|
|
<asp:DropDownList ID="DdlIVA" CssClass="form-control input-sm select2me" runat="server">
|
|
<asp:ListItem Selected="True" Text="IVA de la sucursal" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="IVA 0%" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<i></i>
|
|
<%--<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlIVA" CssClass="form-control input-sm select2me" runat="server">
|
|
<asp:ListItem Selected="True" Text="IVA de la sucursal" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="Exento de IVA" Value="0"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlIVA.ClientID.ToString()%>">IVA:</label>
|
|
<i></i>
|
|
</div>--%>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtRetIVA" CssClass="form-control" runat="server" MaxLength="2" Text="0"></asp:TextBox>
|
|
<label for="<%= TxtRetIVA.ClientID.ToString()%>">Retención de IVA:</label><asp:RequiredFieldValidator ID="RFVRetIVA" runat="server" ControlToValidate="TxtRetIVA" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Retención de IVA''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVRetIVA" runat="server" ControlToValidate="TxtRetIVA" Display="None" ErrorMessage="El campo <b>''Retención de IVA''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCRetIVA1" runat="server" HighlightCssClass="vco" TargetControlID="RFVRetIVA" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="VCRetIVA2" runat="server" HighlightCssClass="vco" TargetControlID="RFVRetIVA" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<i>%</i>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtRetISR" CssClass="form-control" runat="server" MaxLength="2" Text="0"></asp:TextBox>
|
|
<label for="<%= TxtRetISR.ClientID.ToString()%>">Retención de ISR:</label><asp:RequiredFieldValidator ID="RFVRetISR" runat="server" ControlToValidate="TxtRetISR" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Retención de ISR''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<asp:CompareValidator ID="CVRetISR" runat="server" ControlToValidate="TxtRetISR" Display="None" ErrorMessage="El campo <b>''Retención de ISR''</b> no tiene el formato correcto, por favor corrija e intente de nuevo (Solo formato numérico)." Operator="DataTypeCheck" Type="Currency" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" HighlightCssClass="vco" TargetControlID="RFVRetISR" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" HighlightCssClass="vco" TargetControlID="RFVRetISR" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
<i>%</i>
|
|
</div>
|
|
<%--
|
|
<div class="form-group form-md-line-input input-iconright col-xs-3">
|
|
<asp:TextBox ID="TxtRetISR" CssClass="form-control" runat="server"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FBETRetISR" TargetControlID="TxtRetISR" FilterType="Numbers" runat="server" />
|
|
<label class="truncate" style="padding-left: 16px;" for="<%= TxtRetISR.ClientID.ToString()%>">RetISR:</label>
|
|
<i></i>
|
|
</div>--%>
|
|
|
|
<div class="row">
|
|
<label class="col-md-4">¿Aplica IEPS?</label>
|
|
<div class="col-md-1">
|
|
<asp:CheckBox ID="ChkAplicaIeps" CssClass="" AutoPostBack="true" data-size="small" runat="server" Text=" " /></td>
|
|
|
|
</div>
|
|
<label class="col-md-4">¿Graba en IVA?</label>
|
|
<div class="col-md-1">
|
|
<asp:CheckBox ID="ChkIepsIVA" CssClass="" Enabled="false" data-size="small" runat="server" Text=" " /></td>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlIEPSPorcentaje" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" Enabled="false" AutoPostBack="true" OnSelectedIndexChanged="DdlIEPSPorcentaje_SelectedIndexChanged">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="0"></asp:ListItem>
|
|
<asp:ListItem Text="0%" Value="0.00"></asp:ListItem>
|
|
<asp:ListItem Text="3%" Value="0.03"></asp:ListItem>
|
|
<asp:ListItem Text="6%" Value="0.06"></asp:ListItem>
|
|
<asp:ListItem Text="7%" Value="0.07"></asp:ListItem>
|
|
<asp:ListItem Text="9%" Value="0.09"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DdlIEPSPorcentaje.ClientID.ToString()%>">IEPS Porcentaje:</label>
|
|
</div>
|
|
|
|
<div class="form-group form-md-line-input input-iconright" title="Esta retención tendrá efecto en la facturación siempre y cuando el cliente al cual se facturará tenga activada la opción de Retiene 6% de iva por servicio">
|
|
<label>Retiene 6% de IVA por Servicios</label>
|
|
<asp:CheckBox ID="ChkEsOutSourcing" CssClass="make-switchsd" data-size="small" runat="server" Checked="False" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Impuestos Locales</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="expand"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form-horizontal form-row-sepe" style="display: none;">
|
|
<div class="form-body">
|
|
<asp:UpdatePanel ID="UpDeducciones" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<asp:GridView ID="GvImpuestosLocales" ShowHeader="true" runat="server" horizontal-align="Right" GridLines="None" DataKeyNames="CveImpuestoLocal" CssClass="table table-striped table-hover Widthall" AutoGenerateColumns="False" EmptyDataText="No se encontraron registros" ToolTip="Listado de Nombres">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="" ItemStyle-Width="25px">
|
|
<ItemTemplate>
|
|
<asp:CheckBox runat="server" ID="ChkDeduccion" Checked='<%# Eval("Seleccionado") %>'></asp:CheckBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Impuesto" ItemStyle-Width="300px">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtDeduccion" runat="server" Text='<%# Eval("ImpuestoLocal")%>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Porcentaje" ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Right">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtPorcentaje" runat="server" Text='<%# Eval("Porcentaje", "{0:N4}%") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<div class="portlet light smmallpadding traspasorow bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<span class="caption-subject bold uppercase" style="line-height: 2;">Impuestos IEPS</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">
|
|
<div class="col-md-12">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlImpTipoProducto" runat="server" CssClass="form-control input-sm select2me" Width="100%" CausesValidation="true" ValidationGroup="GrpGuardar" OnSelectedIndexChanged="DdlImpTipoProducto_SelectedIndexChanged" AutoPostBack="true">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="000 - Sin selección" Value="000"></asp:ListItem>
|
|
|
|
<asp:ListItem Text="019 - Plaguicidas" Value="019" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="020 - Alimentos no básicos con alta densidad calórica" Value="020"></asp:ListItem>
|
|
<asp:ListItem Text="021 - Combustibles automotrices" Value="021"></asp:ListItem>
|
|
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="DdlImpEmpaque" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Empaque''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlImpTipoProducto.ClientID.ToString()%>">Tipo Producto:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlImpEmpaque" runat="server" CssClass="form-control input-sm select2me" Width="100%" CausesValidation="true" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="000 - Sin selección" Value="000" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="001 - Barrica" Value="001"></asp:ListItem>
|
|
<asp:ListItem Text="002 - Bolsa" Value="002"></asp:ListItem>
|
|
<asp:ListItem Text="003 - Bote" Value="003"></asp:ListItem>
|
|
<asp:ListItem Text="004 - Botella" Value="004"></asp:ListItem>
|
|
<asp:ListItem Text="005 - Caja" Value="005"></asp:ListItem>
|
|
<asp:ListItem Text="006 - Cajetilla" Value="006"></asp:ListItem>
|
|
<asp:ListItem Text="007 - Costal" Value="007"></asp:ListItem>
|
|
<asp:ListItem Text="008 - Estuche" Value="008"></asp:ListItem>
|
|
<asp:ListItem Text="009 - Garrafón" Value="009"></asp:ListItem>
|
|
<asp:ListItem Text="010 - Lata" Value="010"></asp:ListItem>
|
|
<asp:ListItem Text="011 - Mazo" Value="011"></asp:ListItem>
|
|
<asp:ListItem Text="012 - Otro Contenedor" Value="012"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVEmpaque" runat="server" ControlToValidate="DdlImpEmpaque" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Empaque''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlImpEmpaque.ClientID.ToString()%>">Empaque:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlImpUM" runat="server" CssClass="form-control input-sm select2me" Width="100%" CausesValidation="true" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="000 - Sin selección" Value="000" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="001 - Litros" Value="001"></asp:ListItem>
|
|
<asp:ListItem Text="002 - Kilogramos" Value="002"></asp:ListItem>
|
|
<asp:ListItem Text="003 - Toneladas" Value="003"></asp:ListItem>
|
|
<asp:ListItem Text="004 - Piezas" Value="004"></asp:ListItem>
|
|
<asp:ListItem Text="005 - Mililitros" Value="005"></asp:ListItem>
|
|
<asp:ListItem Text="006 - Gramos" Value="006"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVUM" runat="server" ControlToValidate="DdlImpEmpaque" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Unidad de Medida''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlImpUM.ClientID.ToString()%>">Unidad de Medida:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlCategoriaToxicidad" runat="server" CssClass="form-control input-sm select2me" Width="100%" CausesValidation="true" ValidationGroup="GrpGuardar">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<asp:ListItem Text="000 - Sin selección" Value="000" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="001 - Categorías 1 y 2" Value="001"></asp:ListItem>
|
|
<asp:ListItem Text="002 - Categoría 3" Value="002"></asp:ListItem>
|
|
<asp:ListItem Text="003 - Categoría 4" Value="003"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVCategoriaToxicidad" runat="server" ControlToValidate="DdlCategoriaToxicidad" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Categoria Toxicidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlCategoriaToxicidad.ClientID.ToString()%>">Categoria Toxicidad:</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6" style="display: none;">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Precios por Sucursal</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-6" style="text-align: left">
|
|
<input id="ChkSeleccionarTodos" type="checkbox" title="Seleccionar Todos" onclick="SeleccionarTodosChkGvSucursa()" />Seleccionar Todos
|
|
|
|
</div>
|
|
<div class="col-md-6" style="text-align: right">
|
|
<label>Aplicar precio minimo</label>
|
|
<asp:TextBox ID="TxtAplicarPrecio" runat="server" Width="60px" MaxLength="39"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="FilTxtAplicarPrecio" TargetControlID="TxtAplicarPrecio" runat="server" FilterType="Numbers,Custom" ValidChars="." InvalidChars="-+" />
|
|
<a id="lnkAplicarPrecioSucursales" runat="server" class="btn btn-default" onclick="CambiaPrecio();">Aplicar</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<asp:GridView ID="gvSucursal" runat="server" AutoGenerateColumns="False" DataKeyNames="CveSubProyecto" EmptyDataText="No se encontraron Sucursales" ToolTip="Listado de Sucursales habilitadas para Productos o Servicios"
|
|
CssClass="table table-striped table-smallpadding table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:CheckBox ID="chkSucursal" runat="server" Checked='<%# Eval("Activo") %>' CssClass="CsCheckGvSucursal" />
|
|
<asp:HiddenField ID="hdnEnBD" runat="server" Value='<%# If(IsDBNull(Eval("CvePS")), 0, 1) %>' />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Sucursal">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlSucursal" runat="server" Text='<%# Eval("SubProyecto", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle HorizontalAlign="Left" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Precio">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtImporte" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="39" Text='<%# Eval("Importe", "{0:N2}")%>' ValidationGroup="GrpEditGuardarO" Width="90px" CssClass=""></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVImporte" runat="server" ControlToValidate="TxtImporte" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEditGuardarS"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOImporte" runat="server" HighlightCssClass="vco" TargetControlID="RFVImporte" Width="100px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="FilTxtImporte" runat="server" TargetControlID="TxtImporte" FilterType="Numbers,Custom" ValidChars="." InvalidChars=",-+" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Precio Minimo">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtPrecioMinimo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="39" Text='<%# Eval("PrecioMinimo", "{0:N2}")%>' ValidationGroup="GrpEditGuardarO" Width="90px" CssClass="CssCamviaPrecio"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVTxtPrecioMinimo" runat="server" ControlToValidate="TxtPrecioMinimo" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Importe''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEditGuardarS"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOTxtPrecioMinimo" runat="server" HighlightCssClass="vco" TargetControlID="RFVTxtPrecioMinimo" Width="100px"></ajax:ValidatorCalloutExtender>
|
|
<ajax:FilteredTextBoxExtender ID="FilTxtPrecioMinimo" runat="server" TargetControlID="TxtPrecioMinimo" FilterType="Numbers,Custom" ValidChars="." InvalidChars=",-+" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Mínimo" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtMinimo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Minimo") %>' ValidationGroup="GrpEditGuardarO" Width="100px"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Máximo" Visible="false">
|
|
<ItemTemplate>
|
|
<asp:TextBox ID="TxtMaximo" Style="text-align: right" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Maximo")%>' ValidationGroup="GrpEditGuardarO" Width="100px"></asp:TextBox>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
<RowStyle CssClass="Texto" />
|
|
<AlternatingRowStyle CssClass="TextoAlterno" />
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel HeaderText="Contabilidad - Inventarios" ID="TabContabilidad" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Inventarios</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<%-- <div class="row">
|
|
<label class="col-md-6 truncate">¿Permite vender sin existencia?</label>
|
|
<div class="col-md-6">
|
|
<asp:CheckBox ID="ChkVentaSinExistencia" CssClass="make-switchsd" data-size="small" runat="server" Enabled="false" Text=" " /></td>
|
|
</div>
|
|
</div>--%>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-6 truncate">Método de salida de Inventario</label>
|
|
<div class="col-md-6">
|
|
<asp:UpdatePanel ID="UpMetodos" runat="server" UpdateMode="Conditional" RenderMode="Inline">
|
|
<ContentTemplate>
|
|
<asp:DropDownList CssClass="form-control input-sm select2me" Width="50%" ID="ddlMetodos" runat="server" DataTextField="MetodoInventario" DataValueField="CveMetodoInventario"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator InitialValue="-1" ID="RfvddlMetodos" Display="None" runat="server" ControlToValidate="ddlMetodos" ValidationGroup="GrpGuardar" Enabled="false" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Método de salida de Inventario''</b> es necesario, por favor ingréselo."></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="RfvCRfvddlMetodos" runat="server" HighlightCssClass="vco" TargetControlID="RfvddlMetodos" Width="100px"></ajax:ValidatorCalloutExtender>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-6 truncate">Almacén Sección</label>
|
|
<div class="col-md-6">
|
|
<asp:TextBox ID="TxtAlmacenSeccion" runat="server"></asp:TextBox>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<%--Nuevo R: 27/09/2017--%>
|
|
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-6 truncate">Inventariable</label>
|
|
<div class="col-md-6">
|
|
|
|
<asp:CheckBox ID="ChkInventariable" CssClass="make-switchsd" data-size="small" runat="server" Text=" " />
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-6 truncate">Aplica Serie</label>
|
|
<div class="col-md-6">
|
|
|
|
<asp:CheckBox ID="ChkSerie" CssClass="make-switchsd" data-size="small" runat="server" Text=" " />
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-6 truncate">Aplica Lote</label>
|
|
<div class="col-md-6">
|
|
|
|
<asp:CheckBox ID="ChkLote" CssClass="make-switchsd" data-size="small" runat="server" Text=" " />
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-6 truncate">Aplica Caducidad</label>
|
|
<div class="col-md-6">
|
|
|
|
<asp:CheckBox ID="ChkCaducidad" CssClass="make-switchsd" data-size="small" runat="server" Text=" " />
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-6 truncate">Aplica Sección</label>
|
|
<div class="col-md-6">
|
|
|
|
<asp:CheckBox ID="ChkSeccion" CssClass="make-switchsd" data-size="small" runat="server" Text=" " />
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;" id="DivProveedorCompra" runat="server" visible="false">
|
|
<label class="col-md-6 truncate">Proveedor de Compra</label>
|
|
<div class="col-md-6">
|
|
<ADS:Dropdownlost CssClassDdl="select2me" ID="DdlProveedor" data-metodo="getproveedores" runat="server" DataTextField="RazonSocial" DataValueField="CveProveedor" CssStyle="width: 100%;"></ADS:Dropdownlost>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px" id="DivMoneda" runat="server" visible="false">
|
|
<label class="col-md-6 truncate">Moneda</label>
|
|
<div class="col-md-6">
|
|
<asp:DropDownList CssClass="form-control input-sm select2me" Width="50%" ID="DdlMoneda" runat="server" DataTextField="Moneda" DataValueField="CveMoneda"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="row" style="margin-top: 5px;">
|
|
<div class="col-md-6">
|
|
<asp:HyperLink ID="HplKardex" ForeColor="Blue" Text="Ir al Kardex" Target="_blank" runat="server"></asp:HyperLink>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-6 truncate">Ultimo Costo</label>
|
|
<div class="col-md-6">
|
|
<asp:Label ID="LblUltimoCosto" runat="server"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-6 truncate">Costo Promedio</label>
|
|
<div class="col-md-6">
|
|
<asp:Label ID="LblCostoPromedio" runat="server"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<label class="col-md-6 truncate">Fecha Ultima Compra</label>
|
|
<div class="col-md-6">
|
|
<asp:Label ID="LblFechaUltimaCompra" runat="server"></asp:Label>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:GridView ID="GVExistencias" Width="100%" runat="server" OnRowDataBound="GVExistencias_RowDataBound" AutoGenerateColumns="false" EmptyDataText="No se encontraron existencias" CssClass="table table-striped table-hover" GridLines="None">
|
|
<Columns>
|
|
<asp:BoundField DataField="Almacen" HeaderText="Almacén" />
|
|
<asp:BoundField DataField="UnidadMedida" HeaderText="Unidad de Medida" />
|
|
<asp:BoundField DataField="Existencia" ItemStyle-HorizontalAlign="Right" HeaderText="Existencia" DataFormatString="{0:#,###.######}" />
|
|
<asp:BoundField DataField="PendientePorSurtir" ItemStyle-HorizontalAlign="Right" HeaderText="Pendiente Por Surtir" DataFormatString="{0:#,###.######}" />
|
|
<asp:BoundField DataField="ExistenciaFinal" ItemStyle-HorizontalAlign="Right" HeaderText="Existencia Real" DataFormatString="{0:#,###.######}" />
|
|
<asp:BoundField DataField="CantidadDisponibleInv" ItemStyle-HorizontalAlign="Right" HeaderText="Pendiente Por Recibir" DataFormatString="{0:#,###.######}" Visible="false" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Concepto Relacionado</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="row">
|
|
<label class="col-md-4 truncate">Concepto:</label>
|
|
<div class="col-md-8">
|
|
<asp:DropDownList ID="DdlConceptoRelacionado" CssClass="form-control input-sm select2me" Width="50%" runat="server" AppendDataBoundItems="true" DataTextField="ConceptoContable" DataValueField="CveConceptoContable">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Comercio Exterior</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="row">
|
|
<label class="col-md-4 truncate">Fracción Arancelaria:</label>
|
|
<div class="col-md-8">
|
|
<ADS:Dropdownlost ID="DdlFraccionArancelaria" Onselectedindexchange="DdlFraccionArancelaria_selectedindexchange" runat="server" CssStyle="width: 100%;" DataTextField="ClaveSATFraccionArancelariaDescripcion" DataValueField="CveFraccionArancelaria"></ADS:Dropdownlost>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<label class="col-md-4 truncate">Unidad Aduana:</label>
|
|
<div class="col-md-8">
|
|
<asp:Label ID="LblUnidadAduana" runat="server"></asp:Label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<asp:UpdatePanel ID="UpSeccionAlmacen" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="DivSeccionAlmacen" runat="server" visible="false">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Secciones de Almacen</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
<asp:LinkButton ID="LnkSeccionAlmacenAdd" OnClick="LnkSeccionAlmacenAdd_Click" runat="server" data-toggle="tooltip" data-placement="right" title="Agregar Seccion de Almacen" CssClass="btn btn-circle btn-default" Text="<i class='fa fa-plus'></i> Agregar"></asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<asp:GridView ID="GvSeccionAlmacen" runat="server" AutoGenerateColumns="False"
|
|
DataKeyNames="CvePSAlmacenSeccion,CveAlmacen,CveAlmacenSeccion"
|
|
EmptyDataText="No se encontraron Productos/Servicios Adicionales"
|
|
CssClass="table table-striped table-hover Widthall ScrollAD mysmallbtn" GridLines="None" OnRowDataBound="GvSeccionAlmacen_RowDataBound">
|
|
<Columns>
|
|
<asp:BoundField DataField="Almacen" HeaderText="Almacen" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="AlmacenSeccion" HeaderText="Sección Almacen" ItemStyle-HorizontalAlign="Left" />
|
|
<%-- <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Editar">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkEditarSeccionAlmacen" runat="server" AlternateText="Editar" CausesValidation="False" OnClick="LnkEditarSeccionAlmacen_Click" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>--%>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Eliminar">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LnkRemoveSeccionAlmacen" runat="server" AlternateText="Eliminar" CausesValidation="False" OnClick="LnkRemoveSeccionAlmacen_Click" CssClass="btn btn-circle btn-xs 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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<%-- <ajax:TabPanel HeaderText="Costos" ID="Costos" runat="server">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel ID="UPPCostos" runat="server" class="row" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="col-md-4">
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Familias</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<div class="row" style="margin-top: 5px;">
|
|
<div class="col-md-4">
|
|
<asp:Label runat="server" ID="LbFamilia" Text="Familia: "></asp:Label>
|
|
</div>
|
|
<div class="col-md-8">
|
|
<asp:DropDownList ID="DdlFamilia" runat="server" Width="100%" AppendDataBoundItems="true" DataTextField="Categoria" DataValueField="CveCategoria" AutoPostBack="true" Class="form-control input-sm select2me">
|
|
<asp:ListItem Selected="True" Text="Seleccione la Familia (Todas)" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-top: 5px;">
|
|
<div class="col-md-4">
|
|
<asp:Label runat="server" ID="LbSubFamilia" Text="SubFamilia: "></asp:Label>
|
|
</div>
|
|
<div class="col-md-8">
|
|
<asp:DropDownList ID="DdlSubFamilia" runat="server" Width="100%" DataTextField="Clasificacion" DataValueField="CveClasificacion" Class="form-control input-sm select2me"></asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="row" id="DivTipoServicio" runat="server" style="margin-top: 5px;" visible="false">
|
|
<div class="col-md-4">
|
|
<asp:Label runat="server" ID="LbTipoServicio" Text="Tipo Servicio: "></asp:Label>
|
|
</div>
|
|
<div class="col-md-8">
|
|
<asp:DropDownList runat="server" ID="DdlTipoServicio" Width="100%" AppendDataBoundItems="true" Class="form-control input-sm select2me">
|
|
<asp:ListItem Text="Seleccione" Value="-1"></asp:ListItem>
|
|
<%--<asp:ListItem Text="General" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Maquinaria" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:CompareValidator ID="CvTipoServicio" runat="server" ControlToValidate="DdlTipoServicio" Display="None" ErrorMessage="El campo <b>''Tipo Servicio''</b> es necesario, por favor ingréselo." Operator="DataTypeCheck" Type="Integer" ControlToCompare="DdlTipoPS" ValidationGroup="GrpGuardar"></asp:CompareValidator>
|
|
<asp:RequiredFieldValidator ID="RFVTipoServicio" runat="server" ControlToValidate="DdlTipoServicio" Display="None" InitialValue="-1" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo Servicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOTipoOServicio" runat="server" HighlightCssClass="vco" TargetControlID="RFVTipoServicio" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>--%>
|
|
|
|
<ajax:TabPanel HeaderText="Características" ID="TabContCaracteristicas" runat="server">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel ID="UpTitulosO" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table class="table table-striped Widthall">
|
|
<thead>
|
|
<tr class="Titulos">
|
|
<th width="20%">
|
|
<asp:LinkButton ID="LbCaracteristica1" runat="server" CausesValidation="false" Text="" CommandArgument="Caracteristica1;1" OnClick="LbOrden_Click">
|
|
Característica
|
|
|
|
<asp:Literal ID="ImgCaracteristica1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="20%">
|
|
<asp:LinkButton ID="LbOpcion1" runat="server" CausesValidation="false" Text="" CommandArgument="Opcion1;1" OnClick="LbOrden_Click">
|
|
Opción
|
|
|
|
<asp:Literal ID="ImgOpcion1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="20%">
|
|
<asp:LinkButton ID="LbFechaIng1" runat="server" CausesValidation="false" Text="" CommandArgument="FechaIng1;1" OnClick="LbOrden_Click">
|
|
Fecha Ing.
|
|
|
|
<asp:Literal ID="ImgFechaIng1" runat="server" Text=" <i class='fa fa-sort' style='color:#999' ></i>"></asp:Literal>
|
|
</asp:LinkButton>
|
|
</th>
|
|
<th width="20%">
|
|
<asp:LinkButton ID="LbUsuario1" 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="20%">Comandos</th>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<td>
|
|
<asp:DropDownList ID="DdlCaracteristica" runat="server" AppendDataBoundItems="true" AutoPostBack="True" DataTextField="Caracteristica" DataValueField="CveCaracteristica" CssClass="select2me" Width="100%" ValidationGroup="GrpGuardarO">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVCaracteristicaO" 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="GrpGuardarO"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOCaracteristicaO" runat="server" HighlightCssClass="vco" TargetControlID="RFVCaracteristicaO" Width="100px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
|
|
<td id="TDDdlOpcion" runat="server">
|
|
<asp:DropDownList ID="DdlOpcion" runat="server" AppendDataBoundItems="true" AutoPostBack="True" DataTextField="CaracteristicaOpcion" DataValueField="CveCaracteristicaOpcion" Width="100%" CssClass="select2me" ValidationGroup="GrpGuardarO">
|
|
<%--<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>--%>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtOpcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Opción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarO"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" HighlightCssClass="vco" TargetControlID="RFVOpcionO" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
|
|
<td id="TDTxtOpcion" runat="server" visible="false">
|
|
<asp:TextBox ID="TxtOpcion" runat="server" Height="28px" CausesValidation="true" MaxLength="50" ValidationGroup="GrpGuardarO" Width="100%"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVOpcionO" runat="server" ControlToValidate="TxtOpcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Opción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarO"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOpcionO" runat="server" HighlightCssClass="vco" TargetControlID="RFVOpcionO" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
|
|
<td> </td>
|
|
<td> </td>
|
|
<td style="text-align: center;">
|
|
<asp:LinkButton ID="LbAgregarO" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpGuardarO"></asp:LinkButton></td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UpDatosO" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GvDatosOpciones" runat="server" AutoGenerateColumns="False" DataKeyNames="CveCaracteristica,CveCaracteristicaValor" EmptyDataText="No se encontraron Opciones para Caracteristicas y/o Equipos Registrados" ToolTip="Listado de Opciones para Caracteristicas de Productos o Servicios" CssClass="table table-striped table-advance table-hover Widthall" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlCaracteristica" runat="server" Text='<%# Eval("Caracteristica", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="DdlCaracteristicaEdit" runat="server" AppendDataBoundItems="true" AutoPostBack="True" DataTextField="Caracteristica" DataValueField="CvePSCaracteristica" Width="100%" ValidationGroup="GrpEditGuardarO">
|
|
</asp:DropDownList>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlOpcion" runat="server" Text='<%# Eval("CaracteristicaValor", "{0}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="TxtOpcion" runat="server" CausesValidation="true" MaxLength="50" Text='<%# Eval("Opcion")%>' ValidationGroup="GrpEditGuardarO" Width="100%"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVOpcion" runat="server" ControlToValidate="TxtOpcion" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Opción''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEditGuardarO"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOOpcion" runat="server" HighlightCssClass="vco" TargetControlID="RFVOpcion" Width="100px"></ajax:ValidatorCalloutExtender>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFechaIng" runat="server" Text='<%# Eval("Fecha", "{0:d}") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlUsuario" runat="server" Text='<%# Eval("Usuario") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderText="Eliminar">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="ImageButton4" 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>
|
|
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
|
|
<ajax:TabPanel ID="TabPaquetes" runat="server">
|
|
<HeaderTemplate><span onclick="$('#BtnCargarGVAF').click();">Paquetes</span></HeaderTemplate>
|
|
<ContentTemplate>
|
|
|
|
<asp:Button runat="server" ClientIDMode="Static" ID="BtnCargaPSPaquetes" CommandArgument="0" OnClick="BtnCargaPSPaquetes_Click" Text="" Style="display: none;" />
|
|
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Agregar Productos al paquete</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<asp:HiddenField ID="HFProducto" runat="server" />
|
|
<asp:HiddenField ID="HFTProducto" runat="server" />
|
|
<table class="gvPaqueteDetalle Widthall " border="0">
|
|
<tbody>
|
|
<tr>
|
|
<th style="width: 50px;">Cantidad </th>
|
|
<th>Producto</th>
|
|
<th>U.M. </th>
|
|
<th>Tipo</th>
|
|
<th colspan="2">Comandos</th>
|
|
</tr>
|
|
<tr id="Add_row" runat="server">
|
|
<td style="text-align: center">
|
|
<asp:TextBox ID="txtCantidad" Width="60px" CssClass=" input-sm"
|
|
MaxLength="6" runat="server" Mask="99,999.9999"></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="ftbeCant" runat="server"
|
|
TargetControlID="txtCantidad"
|
|
FilterType="Custom, Numbers"
|
|
ValidChars="+.," />
|
|
<asp:RequiredFieldValidator runat="server" ID="RFVCantidad" ControlToValidate="txtCantidad" ValidationGroup="GrpAgregar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOCantidad" runat="server" HighlightCssClass="vco" TargetControlID="RFVCantidad" Width="300px"></ajax:ValidatorCalloutExtender>
|
|
|
|
</td>
|
|
<td>
|
|
<ADS:Dropdownlost runat="server" ID="DdlProductows" CssStyle="width: 100%;" CssClassDdl="select2me" DataTextField="PSCodigo" DataValueField="CvePS" />
|
|
</td>
|
|
<td align="center">
|
|
<asp:DropDownList ID="ddlUnidad" CssClass="form-control input-sm select2me" runat="server" DataTextField="UnidadMedida" ToolTip="Unidad de Medida" DataValueField="CveUnidadMedida"></asp:DropDownList></td>
|
|
|
|
<td align="center">
|
|
<asp:DropDownList ID="ddlTipo" CssClass="form-control input-sm select2me" runat="server">
|
|
<asp:ListItem Text="Paquete" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Insumo" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
|
|
</td>
|
|
<td colspan="2" align="center">
|
|
<asp:LinkButton ID="btguardar" runat="server" ValidationGroup="GrpAgregar" Text="<i class='fa fa-plus'></i> Agregar" class="btn btn-success" />
|
|
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<asp:GridView ID="gvPaqueteDetalle" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False" ShowHeaderWhenEmpty="True" CssClass="table table-striped table-advance table-hover Widthall" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Cantidad" ItemStyle-Width="20px">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbCantidad" runat="server"
|
|
Text='<%# Eval("Cantidad", "{0:##.00}")%>'>
|
|
</asp:Label>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="60px" />
|
|
<HeaderStyle CssClass="Titulos" />
|
|
<EditItemTemplate>
|
|
<asp:TextBox ID="txtECantidad" runat="server" CssClass="form-control input-sm"
|
|
Text='<%# Eval("Cantidad", "{0:##.00}")%>'></asp:TextBox>
|
|
<ajax:FilteredTextBoxExtender ID="ftbeCantidad" runat="server"
|
|
TargetControlID="txtECantidad"
|
|
FilterType="Custom, Numbers"
|
|
ValidChars="+-.," />
|
|
<asp:RequiredFieldValidator runat="server" ID="RFVECantidad" ControlToValidate="txtECantidad" ValidationGroup="GrpGuardar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingrése una." Display="Dynamic" Text="*"></asp:RequiredFieldValidator>
|
|
</EditItemTemplate>
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Código" ItemStyle-Width="150px">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lblCodigo" runat="server"
|
|
Text='<%# Eval("Codigo")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="Producto " ItemStyle-Width="350px">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbPS" runat="server"
|
|
Text='<%# Eval("PS")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:TemplateField>
|
|
|
|
<asp:TemplateField HeaderText="U.M." ItemStyle-Width="100px">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbUnidad" ToolTip="Unidad de Medida" runat="server"
|
|
Text='<%# Eval("UnidadMedida")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="ddlEUnidad" runat="server" Width="60px" Enabled="True" DataTextField="UnidadMedida" DataValueField="CveUnidadMedida"></asp:DropDownList>
|
|
</EditItemTemplate>
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Tipo" ItemStyle-Width="100px">
|
|
<ItemTemplate>
|
|
<asp:Label ID="lbtipo" runat="server"
|
|
Text='<%# Eval("Tipo")%>'></asp:Label>
|
|
</ItemTemplate>
|
|
<EditItemTemplate>
|
|
<asp:DropDownList ID="ddlETipo" runat="server" CssClass="form-control input-sm" Enabled="True">
|
|
<asp:ListItem Text="Paquete" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Insumo" Value="2"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</EditItemTemplate>
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:TemplateField>
|
|
|
|
|
|
<asp:TemplateField HeaderText="Editar" ItemStyle-Width="40px">
|
|
<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>
|
|
<HeaderStyle CssClass="Titulos" />
|
|
<ItemStyle />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="Eliminar" ItemStyle-Width="40px">
|
|
<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>
|
|
<HeaderStyle CssClass="Titulos" />
|
|
</asp:TemplateField>
|
|
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
|
|
<ajax:TabPanel HeaderText="Alias" ID="TabAlias" runat="server">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel ID="UpTitulos" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr class="Titulos">
|
|
<th width="299px">Alias</th>
|
|
<th width="121px">Comandos</th>
|
|
</tr>
|
|
</thead>
|
|
<tr>
|
|
<td align="center">
|
|
<asp:TextBox ID="TxtAlias" runat="server" CausesValidation="true" ValidationGroup="GrpGuardarAlias" Width="690px"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVAlias" runat="server" ControlToValidate="TxtAlias" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Alias''</b> es necesario, por favor ingréselo." ValidationGroup="GrpGuardarAlias"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCAlias" runat="server" HighlightCssClass="vco" TargetControlID="RFVAlias" Width="299px"></ajax:ValidatorCalloutExtender>
|
|
</td>
|
|
<td style="text-align: center;">
|
|
<asp:LinkButton ID="LbAgregar" runat="server" CausesValidation="true" CssClass="Texto" Text="Agregar" ValidationGroup="GrpGuardarAlias"></asp:LinkButton></td>
|
|
</tr>
|
|
</table>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<asp:UpdatePanel ID="UPGVAlias" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:GridView ID="GVAlias" runat="server" ShowHeader="True" AutoGenerateColumns="False" EmptyDataText="No se encontraron Alias del Producto o Servicio." CellPadding="1" CellSpacing="1" RowStyle-VerticalAlign="Middle" RowStyle-HorizontalAlign="Center" DataKeyNames="CvePS,PSAlias" CssClass="table table-striped table-advance table-hover" Style="text-align: center;" GridLines="None">
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:Literal ID="Alias" runat="server" Text='<%# Eval("PSAlias") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="699px" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField>
|
|
<ItemTemplate>
|
|
<asp:ImageButton ID="imgD" runat="server" AlternateText="Eliminar" CausesValidation="False" CommandName="Delete" ImageUrl="/Imagenes/Btn_Delete.png" OnClientClick="javascript:return C();" />
|
|
</ItemTemplate>
|
|
<ItemStyle Width="85px" />
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel HeaderText="Ecommerce" ID="TabEcommerce" runat="server" Visible="false" OnClientClick="clickgaleria">
|
|
<ContentTemplate>
|
|
<asp:UpdatePanel ID="UpEcommerce" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
|
|
<%--IZQUIERDA--%>
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="row">
|
|
|
|
<%--GENERAL--%>
|
|
<div class="col-md-12">
|
|
<div class="portlet light smmallpadding bordered" id="PorletEcommerceGeneral">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Información General</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="form-check">
|
|
<label for="<%=ChkEcommerceDisponible.ClientID.ToString()%>" class="form-check-label">Disponible para Ecommerce:</label>
|
|
<asp:CheckBox ID="ChkEcommerceDisponible" Text="" CssClass="form-check-input input-sm" runat="server" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="<%=TxtEcommerceDescripcion.ClientID.ToString()%>">Descripción:</label>
|
|
<asp:TextBox ID="TxtEcommerceDescripcion" Text="" MaxLength="255" Rows="3" CssClass="form-control input-sm" CausesValidation="true" runat="server" />
|
|
<%--<asp:RequiredFieldValidator ID="RFVEcommerceDescripcion" ControlToValidate="TxtEcommerceDescripcion" ValidationGroup="GrpGuardar" ErrorMessage="El campo <b>''EcommerceDescripcion''</b> es necesario, por favor ingréselo." CssClass="help-block text-danger" runat="server"></asp:RequiredFieldValidator>--%>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="<%=TxtEcommercePrecioBase.ClientID.ToString()%>">Precio:</label>
|
|
<asp:TextBox ID="TxtEcommercePrecioBase" Text="" MaxLength="20" CssClass="form-control input-sm" runat="server" />
|
|
<%--<asp:RequiredFieldValidator ID="RFVEcommercePrecioBase" ControlToValidate="TxtEcommercePrecioBase" ValidationGroup="GrpGuardar" ErrorMessage="El campo <b>''EcommercePrecioBase''</b> es necesario, por favor ingréselo." CssClass="help-block text-danger" runat="server"></asp:RequiredFieldValidator>--%>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumerosEcommercePrecioBase" runat="server" TargetControlID="TxtEcommercePrecioBase" FilterType="Custom, Numbers" ValidChars="." />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="<%=TxtEcommercePrecioPromocion.ClientID.ToString()%>">Precio Promoción:</label>
|
|
<asp:TextBox ID="TxtEcommercePrecioPromocion" Text="" MaxLength="20" CssClass="form-control input-sm" runat="server" />
|
|
<%--<asp:RequiredFieldValidator ID="RFVEcommercePrecioPromocion" ControlToValidate="TxtEcommercePrecioPromocion" ValidationGroup="GrpGuardar" ErrorMessage="El campo <b>''EcommercePrecioPromocion''</b> es necesario, por favor ingréselo." CssClass="help-block text-danger" runat="server"></asp:RequiredFieldValidator>--%>
|
|
<ajax:FilteredTextBoxExtender ID="SoloNumerosEcommercePrecioPromocion" runat="server" TargetControlID="TxtEcommercePrecioPromocion" FilterType="Custom, Numbers" ValidChars="." />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%--INSIGNIAS--%>
|
|
<div class="col-md-12">
|
|
<div class="portlet light smmallpadding bordered" id="PorletEcommerceInsignias">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Insignias del producto</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body ">
|
|
<asp:UpdatePanel ID="UpEcommerceInsignias" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row" style="margin-bottom: 10px;">
|
|
<label class="col-md-2" for="<%=DdlEcommerceInsignia.ClientID.ToString()%>">Destacados:</label>
|
|
<div class="col-md-7">
|
|
<asp:DropDownList ID="DdlEcommerceInsignia" DataTextField="Insignia" DataValueField="CveInsignia" CssClass="select2me" Width="100%" ValidationGroup="GrpEcommerce" runat="server" AppendDataBoundItems="true">
|
|
<asp:ListItem Selected="True" Text="Seleccione" Value="-1"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVEcommerceInsignia" ControlToValidate="DdlEcommerceInsignia" ValidationGroup="GrpEcommerceInsignias" InitialValue="-1" ErrorMessage="El campo <b>''Insignia''</b> es necesario, por favor ingréselo." CssClass="help-block text-danger" runat="server"></asp:RequiredFieldValidator>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<asp:Button Text="Agregar" ID="BtnEcommerceInsignias" OnClick="BtnEcommerceInsignias_Click" CssClass="btn btn-primary btn-block" ValidationGroup="GrpEcommerceInsignias" runat="server" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:GridView ID="GvEcommercePSInsignias" DataKeyNames="CvePS,CveInsignia" CssClass="table table-hover table-striped ScrollAD mysmallbtn" EmptyDataText="No se encontraron registros..." ShowHeaderWhenEmpty="true" data-sort="true" Width="100%" runat="server" GridLines="None" AutoGenerateColumns="False">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Insignia" DataField="Insignia" ItemStyle-Width="80%" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20%" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LBEliminar" CommandName="Delete" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" ToolTip="¿Está seguro que desea eliminar el registro?" data-btn-ok-label="si" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<%--DERECHA--%>
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="row">
|
|
|
|
<%--IMAGENES--%>
|
|
<div class="col-md-12">
|
|
<div class="portlet light smmallpadding bordered" id="PorletEcommerceImagenes">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Imagenes</span>
|
|
</div>
|
|
<div class="tools">
|
|
<button type="button" class="btn btn-primary" data-dismiss="modal" data-toggle="modal" data-target="#ModalEcommerceImagenes"><i class="fa fa-upload"></i>Cargar imagenes</button>
|
|
<%--<asp:HyperLink ID="HLModalEcommerceImagenes" NavigateUrl="#" runat="server" Visible="true" data-toggle="modal" data-target="#ModalEcommerceImagenes" CssClass="btn btn-primary"><i class="fa fa-upload"></i> EcommerceImagenes</asp:HyperLink>--%>
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body ">
|
|
<div id="ModalEcommerceImagenes" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel ID="UpEcommerceImagenes" class="modal-dialog rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">EcommerceImagenes</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpUpFotos" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div>
|
|
<asp:TextBox ID="TxtEcommerceImagenes" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
|
<asp:Button Text="Cargar Imagenes" ID="BtnEcommerceImagenes" OnClick="BtnEcommerceImagenes_Click" CssClass="btn btn-primary" ValidationGroup="GrpModalEcommerceImagenes" runat="server" />
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<asp:UpdatePanel ID="UpEcommerceGaleriaImagenes" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="portfolio-content portfolio-1">
|
|
<div id="js-filters-juicy-projects" class="cbp-l-filters-button">
|
|
</div>
|
|
<div id="js-grid-juicy-projects" class="cbp">
|
|
<asp:Repeater ID="RptFotos" runat="server">
|
|
<ItemTemplate>
|
|
<div class="cbp-item graphic">
|
|
<div class="cbp-caption">
|
|
<div class="cbp-caption-defaultWrap">
|
|
<img src='<%# String.Format("/ashx/SIGWeb.ashx?Metodo=GetImg&r={0}", Extensiones.Encripta(Eval("URL").ToString)) %>'>
|
|
</div>
|
|
<div class="cbp-caption-activeWrap">
|
|
<div class="cbp-l-caption-alignCenter">
|
|
<div class="cbp-l-caption-body">
|
|
<asp:Button ID="BtnEcommerceEliminarImagenes" OnClick="BtnEcommerceEliminarImagenes_Click" data-toggle="confirmation" data-popout="true" data-original-title="¿Está Seguro de eliminar la imagen?" data-btn-ok-label="Si" CommandArgument='<%# Eval("CvePSImagen").ToString %>' runat="server" Text="Borrar" CssClass=" btn red uppercase" />
|
|
<a href='<%# String.Format("/ashx/SIGWeb.ashx?Metodo=GetImg&r={0}", Extensiones.Encripta(Eval("URL").ToString)) %>' class="cbp-lightbox cbp-l-caption-buttonRight btn btn-success uppercase">Ver</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="cbp-l-grid-projects-title uppercase text-center">IMAGEN</div>
|
|
<div class="cbp-l-grid-projects-desc uppercase text-center"><%# Container.ItemIndex + 1 %></div>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:Repeater>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<%--RELACIONADOS--%>
|
|
<div class="col-md-12">
|
|
<div class="portlet light smmallpadding bordered" id="PorletEcommercePSRelacionados">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Relación de Productos</span>
|
|
</div>
|
|
<div class="tools">
|
|
<a href="javascript:;" class="collapse"></a>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body ">
|
|
<asp:UpdatePanel ID="UpEcommercePSRelacionados" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row" style="margin-bottom: 10px;">
|
|
<label class="col-md-2" for="<%=DdlEcommercePSRelacionado.ClientID.ToString()%>">Producto:</label>
|
|
<div class="col-md-7">
|
|
<ADS:Dropdownlost ID="DdlEcommercePSRelacionado" DataTextField="PSCodigo" DataValueField="CvePS" CssStyle="width: 100%;" CssClassDdl="select2me" runat="server" />
|
|
</div>
|
|
<div class="col-md-3">
|
|
<asp:Button Text="Agregar" ID="BtnEcommercePSRelacionados" OnClick="BtnEcommercePSRelacionados_Click" CssClass="btn btn-primary btn-block" ValidationGroup="GrpEcommercePSRelacionados" runat="server" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:GridView ID="GvEcommercePSRealacionados" DataKeyNames="CvePS,CvePS1,CvePS2" CssClass="table table-hover table-striped ScrollAD mysmallbtn" EmptyDataText="No se encontraron registros..." ShowHeaderWhenEmpty="true" data-sort="true" Width="100%" runat="server" GridLines="None" AutoGenerateColumns="False">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-Width="80%" />
|
|
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="20%" HeaderText="Comandos">
|
|
<ItemTemplate>
|
|
<asp:LinkButton ID="LBEliminar" CommandName="Delete" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>" data-toggle="confirmation" data-popout="true" ToolTip="¿Está seguro que desea eliminar el registro?" data-btn-ok-label="si" runat="server" />
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
<ajax:TabPanel HeaderText="Sistema" ID="TabSistemas" runat="server">
|
|
<ContentTemplate>
|
|
<div class="portlet xspadding light bordered">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-briefcase font-green"></i>
|
|
<span class="caption-subject bold uppercase">Sistema</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<table border="0">
|
|
<tr>
|
|
<td>Estado:</td>
|
|
<td>
|
|
<asp:CheckBox ID="ChkEstado" CssClass="make-switchsd" data-size="small" runat="server" Text="" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Fecha de Captura:</td>
|
|
<td>
|
|
<asp:Label ID="LblFechaCaptura" runat="server"></asp:Label></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Usuario Capturó:</td>
|
|
<td>
|
|
<asp:Label ID="LblUsuarioCapturo" runat="server"></asp:Label></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Fecha de Modificacion:</td>
|
|
<td>
|
|
<asp:Label ID="LblFechaModificacion" runat="server"></asp:Label></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Usuario Modifico:</td>
|
|
<td>
|
|
<asp:Label ID="LblUsuarioModifico" runat="server"></asp:Label></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</ajax:TabPanel>
|
|
|
|
</ajax:TabContainer>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
|
|
<br />
|
|
|
|
<div class="text-center">
|
|
<asp:UpdatePanel ID="UpGuardar" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnGuardar" runat="server" Text="Guardar" ValidationGroup="GrpGuardar" class="btn btn-primary" />
|
|
<asp:Button ID="BtnEliminar" runat="server" Text="Eliminar" class="btn btn-danger" data-toggle="confirmation" data-popout="true" data-original-title="¿Seguro que desea eliminar el Producto/Servicio?" data-btn-ok-label="si" />
|
|
<asp:HyperLink Text="Cancelar" runat="server" NavigateUrl="/Ventas/CatPS.aspx" CssClass="btn btn-Default" />
|
|
<%--<input type="button" value="Cancelar" onclick="javascript: window.close();" class="btn btn-Default" />--%>
|
|
<asp:ValidationSummary ID="VS" runat="server" DisplayMode="BulletList" ShowSummary="true" ValidationGroup="GrpGuardar" />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<br />
|
|
|
|
|
|
<div class="row" id="divBitacora" runat="server" visible="false">
|
|
<div class="col-md-12">
|
|
<div class="portlet light bordered xspadding">
|
|
<div class="portlet-title">
|
|
<div class="caption font-green">
|
|
<i class="icon-pin font-green"></i>
|
|
<span class="caption-subject bold uppercase">Bitacora</span>
|
|
</div>
|
|
<div class="actions">
|
|
<div class="btn-group">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<asp:GridView ID="GvBitacora" runat="server" GridLines="None" Width="100%" CssClass="table table-striped table-advance table-hover Widthall ScrollAD mysmallbtn" data-sort="true" CellSpacing="0" AutoGenerateColumns="False">
|
|
<Columns>
|
|
<asp:TemplateField HeaderText="Fecha" ItemStyle-HorizontalAlign="Center">
|
|
<ItemTemplate>
|
|
<asp:Literal ID="LtlFecha" runat="server" Text='<%# Eval("FechaIng") %>'></asp:Literal>
|
|
</ItemTemplate>
|
|
</asp:TemplateField>
|
|
<asp:BoundField DataField="ConceptoHistorialBitacora" HeaderText="Campo" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Anterior" HeaderText="Anterior" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Actual" HeaderText="Actual" ItemStyle-HorizontalAlign="Left" />
|
|
<asp:BoundField DataField="Usuario" HeaderText="Usuario" ItemStyle-HorizontalAlign="Left" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="DivUnificar" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddGvDetalle" 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="myModalLabel1">Unificar Producto</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpBodyUnificar" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="row">
|
|
<div class="col-md-10">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<ADS:Dropdownlost runat="server" ID="DdlPsUnificar" CssStyle="width: 100%;" CssClassDdl="select2me" DataTextField="PSCodigo" DataValueField="CvePS" />
|
|
<%-- <ADS:Dropdownlost ID="DdlPsUnificar" runat="server" CssClass="form-control input-sm select2me" DataTextField="PSCodigo" DataValueField="CvePS" InitialValue="-1" ValidationGroup="GrpObligatorio" Width="100%">
|
|
</ADS:Dropdownlost>--%>
|
|
<%--<asp:RequiredFieldValidator ID="RFVPsUnificar" runat="server" ControlToValidate="DdlPsUnificar" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto y/o Servicio''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>--%>
|
|
<label for="<%= DdlPsUnificar.ClientID.ToString()%>">Producto a unificar:</label>
|
|
</div>
|
|
<div>
|
|
<p>
|
|
El producto seleccionado en el recuadro de arriba sera unificado en el producto actual
|
|
|
|
<b>
|
|
<asp:Literal Text="" ID="LtProductoUnificar" runat="server" /></b>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpFooterUnificar" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnUnificar" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpObligatorio"> <i class='material-icons'>loop</i> Unificar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div id="divDescripcion" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpDescripcion" 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">Motivo</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpBodyDescripcion" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div>
|
|
<label>Descripcion:</label>
|
|
<br />
|
|
<asp:TextBox ID="TxtDescripcion" runat="server" Height="100" Width="600" TextMode="MultiLine" CausesValidation="true" MaxLength="500"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVTxtDescripcion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDescripcion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Descripcion''</b> es necesario, por favor ingréselo." ValidationGroup="GrpEliminarPS"></asp:RequiredFieldValidator>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel ID="UpFooter" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnRemove" runat="server" CssClass="btn btn-primary" ValidationGroup="GrpEliminarPS"> Eliminar</asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="ModalCodigoBarrasQR" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">
|
|
<asp:UpdatePanel ID="UpModalTitulo" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Literal ID="LtlModalTitleUpModalTitulo" runat="server">Codigo </asp:Literal>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel runat="server" ID="UpModalUploadCodigoBarras" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<div style="text-align: center">
|
|
<asp:Image ID="ImgModalCodigo" runat="server" Height="150" Width="150" />
|
|
</div>
|
|
<div>
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtCodigoBarrasModal" CssClass="form-control " runat="server" MaxLength="50"></asp:TextBox>
|
|
<label class="truncate" style="padding-left: 16px;" for="<%= TxtCodigoBarrasModal.ClientID.ToString()%>">Código:</label>
|
|
<i></i>
|
|
</div>
|
|
|
|
<div class="col-md-4 form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DDLCodigoFormato" runat="server" CssClass="form-control input-sm select2me" Width="200" AutoPostBack="true">
|
|
<asp:ListItem Value="All_1D">All_1D</asp:ListItem>
|
|
<asp:ListItem Value="AZTEC">AZTEC</asp:ListItem>
|
|
<asp:ListItem Value="CODABAR">CODABAR</asp:ListItem>
|
|
<asp:ListItem Value="CODE_128">CODE_128</asp:ListItem>
|
|
<asp:ListItem Value="CODE_39">CODE_39</asp:ListItem>
|
|
<asp:ListItem Value="CODE_93">CODE_93</asp:ListItem>
|
|
<asp:ListItem Value="DATA_MATRIX">DATA_MATRIX</asp:ListItem>
|
|
<asp:ListItem Value="EAN_13">EAN_13</asp:ListItem>
|
|
<asp:ListItem Value="EAN_8">EAN_8</asp:ListItem>
|
|
<asp:ListItem Value="IMB">IMB</asp:ListItem>
|
|
<asp:ListItem Value="ITF">ITF</asp:ListItem>
|
|
<asp:ListItem Value="MAXICODE">MAXICODE</asp:ListItem>
|
|
<asp:ListItem Value="MSI">MSI</asp:ListItem>
|
|
<asp:ListItem Value="PDF_417">PDF_417</asp:ListItem>
|
|
<asp:ListItem Value="PLESSEY">PLESSEY</asp:ListItem>
|
|
<asp:ListItem Selected="True" Value="QR_CODE">QR_CODE</asp:ListItem>
|
|
<asp:ListItem Value="RSS_14">RSS_14</asp:ListItem>
|
|
<asp:ListItem Value="RSS_EXPANDED">RSS_EXPANDED</asp:ListItem>
|
|
<asp:ListItem Value="UPC_A">UPC_A</asp:ListItem>
|
|
<asp:ListItem Value="UPC_E">UPC_E</asp:ListItem>
|
|
<asp:ListItem Value="UPC_EAN_EXTENSION">UPC_EAN_EXTENSION</asp:ListItem>
|
|
</asp:DropDownList>
|
|
<label for="<%= DDLCodigoFormato.ClientID.ToString()%>">Formato:</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAlto" runat="server" MaxLength="30" CssClass="form-control marginFixRow"></asp:TextBox>
|
|
<label for="<%= TxtAlto.ClientID.ToString()%>">Alto:</label>
|
|
<ajax:FilteredTextBoxExtender runat="server" ID="FETxtAlto" TargetControlID="TxtAlto" FilterType="Numbers" InvalidChars=".-," />
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4 form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtAncho" runat="server" MaxLength="30" CssClass="form-control marginFixRow"></asp:TextBox>
|
|
<label for="<%= TxtAncho.ClientID.ToString()%>">Ancho:</label>
|
|
<ajax:FilteredTextBoxExtender runat="server" ID="FilteredTextBoxExtender1" TargetControlID="TxtAncho" FilterType="Numbers" InvalidChars=".-," />
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12 form-group form-md-line-input " style="text-align: center!important">
|
|
<asp:LinkButton ID="LnkModalGenerarCodigoBarrasQR" runat="server" Text="Generar" CssClass="btn btn-primary"></asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:UpdatePanel runat="server" ID="UpModalBotonesCodigos" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
|
|
<asp:LinkButton ID="LnkDescargaImagen" runat="server" Text="Descargar <i class='fa fa-download' aria-hidden='true'></i>" CssClass="btn btn-primary"></asp:LinkButton>
|
|
<asp:LinkButton ID="LnkDescargaImpresion" runat="server" Text="Imprimir <i class='fa fa-print' aria-hidden='true'></i>" CssClass="btn btn-primary"></asp:LinkButton>
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
|
|
</ContentTemplate>
|
|
<Triggers>
|
|
<asp:PostBackTrigger ControlID="LnkDescargaImagen" />
|
|
<asp:PostBackTrigger ControlID="LnkDescargaImpresion" />
|
|
</Triggers>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<%--BITACORA ECOMMERCE--%>
|
|
<div id="ModalBitacoraEcommerce" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel ID="UpBitacoraEcommerce" class="modal-dialog modal-lg rowpadding" tabindex="-1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Bitacora Ecommerce</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<asp:GridView ID="GvBitacoraEcommerce" CssClass="table table-hover table-striped ScrollAD mysmallbtn" EmptyDataText="No se encontraron registros..." ShowHeaderWhenEmpty="true" data-sort="true" Width="100%" runat="server" GridLines="None" AutoGenerateColumns="False">
|
|
<Columns>
|
|
<asp:BoundField HeaderText="Fecha" DataField="FechaIng" ItemStyle-Width="20%" />
|
|
<asp:BoundField HeaderText="Usuario" DataField="Usuario" ItemStyle-Width="20%" />
|
|
<asp:BoundField HeaderText="Descripción" DataField="Bitacora" ItemStyle-Width="60%" />
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button id="CancelarBitacoraEcommerce" type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
|
|
<div id="DModalClasificacion" class="modal ADS fade" role="dialog">
|
|
<asp:UpdatePanel class="modal-dialog" runat="server" ID="UpModal" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div class="modal-content">
|
|
<div class="modal-header ">
|
|
<h4 class="modal-title">
|
|
<asp:Literal ID="ltlMotititulo" Text="Tipo" runat="server"> </asp:Literal></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:TextBox ID="TxtClasificacionDetalle" CssClass="form-control" runat="server" MaxLength="200" CausesValidation="true"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVClasificacionDetalle" runat="server" ControlToValidate="TxtClasificacionDetalle" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Tipo''</b> es necesario, por favor ingréselo." ValidationGroup="VGMGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOClasificacionDetalle" runat="server" HighlightCssClass="vco" TargetControlID="RFVClasificacionDetalle"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= TxtClasificacionDetalle.ClientID.ToString()%>">Tipo:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlClasificacionModal" CssClass="form-control input-sm select2me" runat="server" AppendDataBoundItems="true" CausesValidation="true" DataTextField="Clasificacion" DataValueField="CveClasificacion" Width="50%">
|
|
</asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RfvClasificacionModal" runat="server" ControlToValidate="DdlClasificacionModal" InitialValue="-1" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Clasificacion''</b> es necesario, por favor ingréselo." ValidationGroup="VGMGuardar"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VCOClasificacionModal" runat="server" HighlightCssClass="vco" TargetControlID="RfvClasificacionModal"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= DdlClasificacionModal.ClientID.ToString()%>">Clasificacion:</label>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<asp:Button ID="BtnAddClasificacionDetalleModal" OnClick="BtnAddClasificacionDetalleModal_Click" runat="server" Text="Agregar" CssClass="btn btn-primary" ValidationGroup="VGMGuardar" />
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
<!-- ModalPopupExtender -->
|
|
<asp:Button ID="BtnMostrarPanel" runat="server" Style="visibility: hidden; display: none;" />
|
|
<asp:Button ID="BtnCerrarPanel" runat="server" CssClass="btn btn-danger" Style="visibility: hidden; display: none;" />
|
|
<ajax:ModalPopupExtender ID="MPTipoCla" runat="server" PopupControlID="PanelTipoCla" TargetControlID="BtnMostrarPanel"
|
|
CancelControlID="BtnCerrarPanel" BackgroundCssClass="modalBackground">
|
|
</ajax:ModalPopupExtender>
|
|
<asp:Panel ID="PanelTipoCla" runat="server" CssClass="modalPopup" align="center" Style="display: none; padding: 10px;">
|
|
<asp:UpdatePanel ID="UpTipoCla" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<div id="DivTipoCla" runat="server">
|
|
<p>
|
|
Tipo de Clasificación:
|
|
|
|
</p>
|
|
<asp:RadioButtonList ID="RblTipoClasificación" runat="server" CssClass="rbl" RepeatDirection="Vertical" RepeatLayout="Table">
|
|
<asp:ListItem Text="Todas" Value="-1" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Text="Ingresos" Value="1"></asp:ListItem>
|
|
<asp:ListItem Text="Gasto" Value="2"></asp:ListItem>
|
|
<asp:ListItem Text="Ingresos/Gasto" Value="3"></asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
<asp:LinkButton ID="BtnTipoCla" OnClick="BtnTipoCla_Click" runat="server" CssClass="btn btn-success" Text="Aceptar" />
|
|
|
|
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</asp:Panel>
|
|
|
|
<%-- MODAL PS ADICIONALES --%>
|
|
<div id="divAddPSAdicional" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpAddPSAdicional" 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">Producto/Servicio Adicional</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<asp:UpdatePanel ID="UpBodyDireccion" UpdateMode="Conditional" runat="server">
|
|
<ContentTemplate>
|
|
<div class="form-group form-md-line-input input-iconright" style="width: 170px!important">
|
|
<asp:DropDownList ID="DdlPSAdicional" Width="50%" runat="server" CssClass="form-control select2me" DataValueField="CvePS" DataTextField="PS"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RFVPSAdicional" runat="server" ControlToValidate="DdlPSAdicional" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto/Servicio''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
|
<label for="<%= DdlPSAdicional.ClientID.ToString()%>">Producto/Servicio:</label>
|
|
</div>
|
|
<br />
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="form-group form-md-line-input input-iconright" style="width: 200px!important;">
|
|
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<label style="width: 570px!important" for="<%= RBLCantidad.ClientID.ToString()%>">Cantidad:</label>
|
|
<asp:RadioButtonList ID="RBLCantidad" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="RBLCantidad_SelectedIndexChanged1">
|
|
<asp:ListItem Value="1" Selected="True">Depende del PS</asp:ListItem>
|
|
<asp:ListItem Value="2">Fijo</asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
<br />
|
|
<br />
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-2">
|
|
<div class="form-group form-md-line-input input-iconright" style="width: 100px!important; margin-top: 15px">
|
|
<asp:UpdatePanel ID="UpCantidad" runat="server" UpdateMode="Conditional" Visible="false">
|
|
<ContentTemplate>
|
|
<asp:TextBox ID="TxtCantidadPSAdicional" CssClass="form-control " Width="100px" runat="server" MaxLength="10" CausesValidation="true" Style="text-align: right!important; margin-right: 10px!important" TextMode="Number"></asp:TextBox>
|
|
<asp:RequiredFieldValidator ID="RFVCantAdicional" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCantidadPSAdicional" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Cantidad''</b> es necesario, por favor ingréselo." ValidationGroup="GrpObligatorio"></asp:RequiredFieldValidator>
|
|
<label style="width: 570px!important" for="<%= TxtCantidadPSAdicional.ClientID.ToString()%>"></label>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
<div class="modal-footer" style="display: block">
|
|
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:LinkButton ID="BtnAgregarPSAdicional" runat="server" CssClass="btn btn-success" Text="Agregar" ValidationGroup="GrpObligatorio"></asp:LinkButton>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<%-- MODAL PS ADICIONALES --%>
|
|
<div id="DivAddSeccionAlmacen" class="modal ADS fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
<asp:UpdatePanel ID="UpModalSeccionAlmacen" 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="h4SccionAlmacen">Sección Almacen</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlAlmacen" Width="50%" runat="server" CssClass="form-control select2me" DataValueField="CveAlmacen" DataTextField="Almacen" AppendDataBoundItems="true"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RfvAlmacen" runat="server" ControlToValidate="DdlAlmacen" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Almacen''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpModalSeccionAlmacen"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VceAlmacen" runat="server" HighlightCssClass="vco" TargetControlID="RfvAlmacen"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= DdlAlmacen.ClientID.ToString()%>">Almacen:</label>
|
|
</div>
|
|
<div class="form-group form-md-line-input input-iconright">
|
|
<asp:DropDownList ID="DdlSeccionAlmacen" Width="50%" runat="server" CssClass="form-control select2me" DataValueField="CveSeccion" DataTextField="Seccion" AppendDataBoundItems="true"></asp:DropDownList>
|
|
<asp:RequiredFieldValidator ID="RfvSeccionAlmacen" runat="server" ControlToValidate="DdlSeccionAlmacen" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Sección Almacen''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpModalSeccionAlmacen"></asp:RequiredFieldValidator>
|
|
<ajax:ValidatorCalloutExtender ID="VceSeccionAlmacen" runat="server" HighlightCssClass="vco" TargetControlID="RfvSeccionAlmacen"></ajax:ValidatorCalloutExtender>
|
|
<label for="<%= DdlSeccionAlmacen.ClientID.ToString()%>">Sección Almacen:</label>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer" style="display: block">
|
|
<asp:UpdatePanel ID="UpFooterSeccionAlmacen" runat="server" UpdateMode="Conditional">
|
|
<ContentTemplate>
|
|
<asp:Button ID="BtnAddSeccionAlmacen" runat="server" OnClick="BtnAddSeccionAlmacen_Click" CssClass="btn btn-success" Text="Agregar" ValidationGroup="GrpModalSeccionAlmacen"></asp:Button>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</ContentTemplate>
|
|
</asp:UpdatePanel>
|
|
</div>
|
|
</div>
|
|
|
|
<asp:Literal ID="LtlScripts" runat="server"></asp:Literal>
|
|
<%-- FIN MODAL PS ADICIONALES --%>
|
|
</asp:Content>
|
|
<asp:Content ID="Content7" ContentPlaceHolderID="JS" runat="Server">
|
|
|
|
<script src="/Metronic/assets/global/plugins/cubeportfolio/js/jquery.cubeportfolio.min.js" type="text/javascript"></script>
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
function CreaDescripcionPS() {
|
|
var Text = '';
|
|
if ($('#C_Tab_TabPS_DdlTipoPSDes').val() != "-1") {
|
|
Text = $("#C_Tab_TabPS_DdlTipoPSDes option:selected").text();
|
|
}
|
|
|
|
if ($('#C_Tab_TabPS_DdlMarcaPSDes').val() != "-1") {
|
|
Text += ' ' + $("#C_Tab_TabPS_DdlMarcaPSDes option:selected").text();
|
|
}
|
|
|
|
Text += ' ' + $get('C_Tab_TabPS_TxtModelo').value;
|
|
|
|
Text += ' ' + $get('C_Tab_TabPS_TxtAdicional').value;
|
|
|
|
$get('C_Tab_TabPS_TxtPS').value = Text;
|
|
}
|
|
|
|
function C() {
|
|
return confirm('¿Está seguro que desea eliminar el Alias del Producto o Servicio?');
|
|
}
|
|
|
|
function SetText(ObjFrom, ObjTo) {
|
|
ObjTo.innerText = ObjFrom.value;
|
|
}
|
|
|
|
function SetText2(ObjTo, Value) {
|
|
ObjTo.innerText = Value;
|
|
}
|
|
|
|
function getSelectedText(Obj, IfIsNull) {
|
|
if (Obj.selectedIndex == -1)
|
|
return IfIsNull;
|
|
else
|
|
return Obj.options[Obj.selectedIndex].text;
|
|
}
|
|
|
|
//REGION CARACTERISTICAS
|
|
function CC() {
|
|
return confirm('¿Está seguro que desea eliminar la Caracteristica del Producto y/o Servicio?');
|
|
}
|
|
|
|
function CO() {
|
|
return confirm('¿Está seguro que desea eliminar la Opcion para Caracteristica del Producto y/o Servicio?');
|
|
}
|
|
|
|
function Up() {
|
|
|
|
if ($("#ChkEsOpcion").Checked == false && $("hdnEsOpcion").value == 'Sí')
|
|
return confirm('¿Está cambiando la Caracteristica para NO tener Opciones, eso generara que sus Opciones sean Eliminadas. Esta Seguro de Continuar?');
|
|
else
|
|
return true;
|
|
}
|
|
//END REGION CARACTERISTICAS
|
|
|
|
//REGION SUCURSALES
|
|
function S() {
|
|
return confirm('¿Está seguro que desea eliminar Habilitacion de la Sucursal para el Producto y/o Servicio?');
|
|
}
|
|
//END REGION SUCURSALES
|
|
|
|
|
|
function ircompras() {
|
|
window.parent.CargaClasificacion();
|
|
window.close();
|
|
parent.$('#ajax').modal('hide');
|
|
}
|
|
|
|
function LimpiaModalUnificar() {
|
|
$('#<%= DdlPsUnificar.ClientID %>').val('-1');
|
|
}
|
|
|
|
var ChecksGv = $('.CsCheckGvSucursal').find('input[type=checkbox]');
|
|
|
|
function CambiaPrecio() {
|
|
var valor = $('#<%= TxtAplicarPrecio.ClientID %>').val();
|
|
if (!isNaN(valor) && valor.length > 0) {
|
|
$(".CssCamviaPrecio").each(function (index) {
|
|
if ($($(ChecksGv).get(index)).attr('checked')) {
|
|
$(this).val(valor);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function SeleccionarTodosChkGvSucursa() {
|
|
if ($('#ChkSeleccionarTodos').attr('checked')) {
|
|
$('.CsCheckGvSucursal').find('input[type=checkbox]').prop('checked', true);
|
|
} else {
|
|
$('.CsCheckGvSucursal').find('input[type=checkbox]').prop('checked', false);
|
|
}
|
|
}
|
|
|
|
|
|
//COMINEZA: ECOMMERCE
|
|
|
|
function clickgaleria() {
|
|
$("#C_Tab_TabGaleria").css({ "display": "block", "visibility": "auto" });
|
|
initcarusel();
|
|
initcarusel2 = function () { };
|
|
}
|
|
var initcarusel = function () {
|
|
'use strict';
|
|
if ($('#js-grid-juicy-projects').data('hascube') != '1') {
|
|
$('#js-grid-juicy-projects').cubeportfolio({
|
|
filters: '#js-filters-juicy-projects',
|
|
loadMore: '#js-loadMore-juicy-projects',
|
|
loadMoreAction: 'click',
|
|
layoutMode: 'grid',
|
|
defaultFilter: '*',
|
|
animationType: 'quicksand',
|
|
gapHorizontal: 35,
|
|
gapVertical: 30,
|
|
gridAdjustment: 'responsive',
|
|
mediaQueries: [{
|
|
width: 1500,
|
|
cols: 5
|
|
}, {
|
|
width: 1100,
|
|
cols: 4
|
|
}, {
|
|
width: 800,
|
|
cols: 3
|
|
}, {
|
|
width: 480,
|
|
cols: 2
|
|
}, {
|
|
width: 320,
|
|
cols: 1
|
|
}],
|
|
caption: 'overlayBottomReveal',
|
|
displayType: 'sequentially',
|
|
displayTypeSpeed: 80,
|
|
|
|
// lightbox
|
|
lightboxDelegate: '.cbp-lightbox',
|
|
lightboxGallery: true,
|
|
lightboxTitleSrc: 'data-title',
|
|
lightboxCounter: '<div class="cbp-popup-lightbox-counter">{{current}} of {{total}}</div>',
|
|
|
|
// singlePage popup
|
|
singlePageDelegate: '.cbp-singlePage',
|
|
singlePageDeeplinking: true,
|
|
singlePageStickyNavigation: true,
|
|
singlePageCounter: '<div class="cbp-popup-singlePage-counter">{{current}} of {{total}}</div>',
|
|
singlePageCallback: function (url, element) {
|
|
// to update singlePage content use the following method: this.updateSinglePage(yourContent)
|
|
var t = this;
|
|
|
|
$.ajax({
|
|
url: url,
|
|
type: 'GET',
|
|
dataType: 'html',
|
|
timeout: 10000
|
|
})
|
|
.done(function (result) {
|
|
t.updateSinglePage(result);
|
|
})
|
|
.fail(function () {
|
|
t.updateSinglePage('AJAX Error! Please refresh the page!');
|
|
});
|
|
},
|
|
});
|
|
$('#js-grid-juicy-projects').data('hascube', '1')
|
|
}
|
|
}
|
|
|
|
var initcarusel2 = initcarusel;
|
|
|
|
function ADSReady() {
|
|
setPoscicion();
|
|
}
|
|
//TERMINA: ECOMMERCE
|
|
|
|
|
|
|
|
|
|
</script>
|
|
</asp:Content>
|