--FIX. Visualizacion de IVA
This commit is contained in:
@@ -20,87 +20,87 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Panel ID="Pnl" runat="server" DefaultButton="BtnBuscar">
|
<asp:Panel ID="Pnl" runat="server" DefaultButton="BtnBuscar">
|
||||||
|
|
||||||
<table style="width: 750px;">
|
<table style="width: 750px;">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="Titulos" colspan="4">Filtros para búsqueda</td>
|
<td class="Titulos" colspan="4">Filtros para búsqueda</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr align="left">
|
<tr align="left">
|
||||||
</tr>
|
</tr>
|
||||||
<tr align="left">
|
<tr align="left">
|
||||||
<td class="text-right"><b>Producto/Servicio:</b></td>
|
<td class="text-right"><b>Producto/Servicio:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<ADS:Dropdownlost ID="DDlPS" AutoPostBack="false" runat="server" IncluyeTodos="false" DataTextField="PSCodigo" DataValueField="CvePS" CssClassDdl="select2me" CssStyle="width:400px;"></ADS:Dropdownlost>
|
<ADS:Dropdownlost ID="DDlPS" AutoPostBack="false" runat="server" IncluyeTodos="false" DataTextField="PSCodigo" DataValueField="CvePS" CssClassDdl="select2me" CssStyle="width:400px;"></ADS:Dropdownlost>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<asp:LinkButton runat="server" ID="LnkBsucarSerie" CssClass="Texto" Text="Buscar por Serie" OnClick="LnkBsucarSerie_Click" Visible="false"></asp:LinkButton>
|
<asp:LinkButton runat="server" ID="LnkBsucarSerie" CssClass="Texto" Text="Buscar por Serie" OnClick="LnkBsucarSerie_Click" Visible="false"></asp:LinkButton>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr runat="server" id="DivMed" visible="false">
|
<tr runat="server" id="DivMed" visible="false">
|
||||||
<td class="text-right">Medida: </td>
|
<td class="text-right">Medida: </td>
|
||||||
<td>
|
<td>
|
||||||
<asp:DropDownList runat="server" ID="DdlMedidas" CssClass="form-control input-sm select2me" Width="150px" DataTextField="Medida" DataValueField="CveMedida"></asp:DropDownList>
|
<asp:DropDownList runat="server" ID="DdlMedidas" CssClass="form-control input-sm select2me" Width="150px" DataTextField="Medida" DataValueField="CveMedida"></asp:DropDownList>
|
||||||
</td>
|
</td>
|
||||||
<td rowspan="2">
|
<td rowspan="2">
|
||||||
<div id="DivEquivalentes" style="overflow-y: auto; overflow-x: hidden; width: 150px; height: 70px" runat="server" visible="False">
|
<div id="DivEquivalentes" style="overflow-y: auto; overflow-x: hidden; width: 150px; height: 70px" runat="server" visible="False">
|
||||||
<asp:GridView ID="GvEquival" runat="server" AutoGenerateColumns="False" DataKeyNames="CveMedidaEquivalencia,CveMedida,CveRin,CveMedidaEquivalente,CveRinEquivalente,Medida,RinTamaño,MedidaEquivalente,RinTamañoEquivalente" EmptyDataText="" ToolTip="" CssClass="table table-striped table-advance table-hover" Style="margin-top: 10px; width: 100%" GridLines="None">
|
<asp:GridView ID="GvEquival" runat="server" AutoGenerateColumns="False" DataKeyNames="CveMedidaEquivalencia,CveMedida,CveRin,CveMedidaEquivalente,CveRinEquivalente,Medida,RinTamaño,MedidaEquivalente,RinTamañoEquivalente" EmptyDataText="" ToolTip="" CssClass="table table-striped table-advance table-hover" Style="margin-top: 10px; width: 100%" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField ItemStyle-Width="300px" HeaderText="Equivalentes">
|
<asp:TemplateField ItemStyle-Width="300px" HeaderText="Equivalentes">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Literal ID="lblUsuario" runat="server" Text='<%#String.Concat(Eval("MedidaEquivalente"), " ", Eval("RinTamañoEquivalente")) %>'></asp:Literal>
|
<asp:Literal ID="lblUsuario" runat="server" Text='<%#String.Concat(Eval("MedidaEquivalente"), " ", Eval("RinTamañoEquivalente")) %>'></asp:Literal>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr runat="server" id="DivRin" visible="false">
|
<tr runat="server" id="DivRin" visible="false">
|
||||||
<td class="text-right">Rin: </td>
|
<td class="text-right">Rin: </td>
|
||||||
<td>
|
<td>
|
||||||
<asp:DropDownList runat="server" ID="DdlRin" CssClass="form-control input-sm select2me" Width="150px" DataTextField="RinTamaño" DataValueField="CveRinTamaño"></asp:DropDownList>
|
<asp:DropDownList runat="server" ID="DdlRin" CssClass="form-control input-sm select2me" Width="150px" DataTextField="RinTamaño" DataValueField="CveRinTamaño"></asp:DropDownList>
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr runat="server" id="DivCodigoSeriePS" visible="false">
|
<tr runat="server" id="DivCodigoSeriePS" visible="false">
|
||||||
<td class="text-right"><b>C. Barras:</b></td>
|
<td class="text-right"><b>C. Barras:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:UpdatePanel runat="server">
|
<asp:UpdatePanel runat="server">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Panel ID="PanelCodigo" runat="server" DefaultButton="BtnCodigoPS">
|
<asp:Panel ID="PanelCodigo" runat="server" DefaultButton="BtnCodigoPS">
|
||||||
<asp:TextBox ID="TxtCodigoPS" ClientIDMode="Static" Text="" runat="server" />
|
<asp:TextBox ID="TxtCodigoPS" ClientIDMode="Static" Text="" runat="server" />
|
||||||
<asp:Button Text="" ID="BtnCodigoPS" OnClick="BtnCodigoPS_Click" Style="display: none" runat="server" />
|
<asp:Button Text="" ID="BtnCodigoPS" OnClick="BtnCodigoPS_Click" Style="display: none" runat="server" />
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr align="left" runat="server" id="DivSucursal" visible="false">
|
<tr align="left" runat="server" id="DivSucursal" visible="false">
|
||||||
<td class="text-right"><b>Sucursal:</b></td>
|
<td class="text-right"><b>Sucursal:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:DropDownList ID="DdlSubProyecto" AutoPostBack="True" runat="server" CssClass="form-control input-sm select2me" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="400px"></asp:DropDownList>
|
<asp:DropDownList ID="DdlSubProyecto" AutoPostBack="True" runat="server" CssClass="form-control input-sm select2me" DataTextField="SubProyecto" DataValueField="CveSubProyecto" Width="400px"></asp:DropDownList>
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr align="left" runat="server" id="TrCompuesto" visible="false">
|
<tr align="left" runat="server" id="TrCompuesto" visible="false">
|
||||||
<td class="text-right"><b>Compuesto:</b></td>
|
<td class="text-right"><b>Compuesto:</b></td>
|
||||||
<td>
|
<td>
|
||||||
<asp:TextBox ID="TxtCompuesto" runat="server" CssClass="form-control input-sm select2me" Width="400px"></asp:TextBox>
|
<asp:TextBox ID="TxtCompuesto" runat="server" CssClass="form-control input-sm select2me" Width="400px"></asp:TextBox>
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="4" style="text-align: center;">
|
<td colspan="4" style="text-align: center;">
|
||||||
<asp:Button ID="BtnBuscar" runat="server" Text="Buscar" class="btn btn-primary" />
|
<asp:Button ID="BtnBuscar" runat="server" Text="Buscar" class="btn btn-primary" />
|
||||||
</td>
|
</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
@@ -111,15 +111,9 @@
|
|||||||
<div class="row" style="max-width: 780px;">
|
<div class="row" style="max-width: 780px;">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<asp:Literal ID="LtPs" Text="" runat="server">  </asp:Literal>
|
<asp:Literal ID="LtPs" Text="" runat="server">  </asp:Literal>
|
||||||
|
|
||||||
<asp:Literal ID="LtlIEPS" Text="IEPS:" runat="server" Visible="false">  </asp:Literal>
|
|
||||||
|
|
||||||
<asp:Literal ID="LtlIEPSPorcentaje" Text="" runat="server" Visible="false">  </asp:Literal>
|
<asp:Literal ID="LtlIEPSPorcentaje" Text="" runat="server" Visible="false">  </asp:Literal>
|
||||||
|
|
||||||
<asp:Literal ID="LtlIVA" Text="IVA:" runat="server" Visible="false">  </asp:Literal>
|
|
||||||
|
|
||||||
<asp:Literal ID="LtlIVAPorcentaje" Text="" runat="server" Visible="false">  </asp:Literal>
|
<asp:Literal ID="LtlIVAPorcentaje" Text="" runat="server" Visible="false">  </asp:Literal>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" style="max-width: 780px;">
|
<div class="row" style="max-width: 780px;">
|
||||||
|
|||||||
@@ -198,19 +198,15 @@ Partial Class Inventarios_Default
|
|||||||
objPS.Dispose()
|
objPS.Dispose()
|
||||||
If UsuarioActual.CveEmpresa = 119 Then
|
If UsuarioActual.CveEmpresa = 119 Then
|
||||||
If CBool(dr("AplicaIEPS")) Then
|
If CBool(dr("AplicaIEPS")) Then
|
||||||
LtlIEPS.Visible = True
|
|
||||||
LtlIEPSPorcentaje.Visible = True
|
LtlIEPSPorcentaje.Visible = True
|
||||||
LtlIEPSPorcentaje.Text = $"<b>% {(dr("IEPSPorcentaje").ToString.ToDouble * 100).FormatoNumero}</b>"
|
LtlIEPSPorcentaje.Text = $"IEPS: <b>% {(dr("IEPSPorcentaje").ToString.ToDouble * 100).FormatoNumero}</b>"
|
||||||
Else
|
Else
|
||||||
LtlIEPS.Visible = False
|
|
||||||
LtlIEPSPorcentaje.Visible = False
|
LtlIEPSPorcentaje.Visible = False
|
||||||
End If
|
End If
|
||||||
If dr("IVA").ToString = "-1" OrElse dr("IVA").ToString.ToDecimal > 0 Then
|
If dr("IVA").ToString = "-1" OrElse dr("IVA").ToString.ToDecimal > 0 Then
|
||||||
LtlIVA.Visible = True
|
|
||||||
LtlIVAPorcentaje.Visible = True
|
LtlIVAPorcentaje.Visible = True
|
||||||
LtlIVAPorcentaje.Text = $"<b>Si</b>"
|
LtlIVAPorcentaje.Text = $"IVA: <b>Si</b>"
|
||||||
Else
|
Else
|
||||||
LtlIVA.Visible = False
|
|
||||||
LtlIVAPorcentaje.Visible = False
|
LtlIVAPorcentaje.Visible = False
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user