-- gridview con productos que coinciden
This commit is contained in:
@@ -304,6 +304,50 @@
|
|||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<label style="font-size: 16px"><b>Productos Coincidentes</b></label>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4" align="left" id="div1" runat="server">
|
||||||
|
<asp:Label runat="server">Número de registros: <b><asp:Literal ID="LtlCoincidentes" runat="server"></asp:Literal></b></asp:Label>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-8" align="right" id="divRegistradosCoinciden" runat="server">
|
||||||
|
<input type="text" id="TxtBusqueda3" class="form-control input-sm" onkeyup="<%= String.Format("FiltrarTabla('TxtBusqueda3','{0}')", GvC.ClientID) %>" style="display: inline-block; margin-right: -20px; width: 150px;" />
|
||||||
|
<a href="javascript:;" onclick="<%= String.Format("FiltrarTabla('TxtBusqueda3','{0}')", GvS.ClientID) %>" style="margin-top: -3px;" class="btn btn-circle btn-sm label-info"><i class="icon-magnifier"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<asp:GridView ID="GvC" data-sort="true" runat="server" EmptyDataText="Aun no hay registros." AutoGenerateColumns="False"
|
||||||
|
CssClass="table table-striped table-hover Widthall ScrollAD" Style="text-align: center;" GridLines="None" DataKeyNames="CvePS">
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField Visible="false">
|
||||||
|
<HeaderTemplate>
|
||||||
|
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="#">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="LblC" runat="server" Font-Size="6pt"></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:BoundField HeaderText="Código Barras" DataField="CodigoBarras" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Código" DataField="Codigo" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Producto" DataField="PS" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Sección Almacén" DataField="SeccionAlmacen"/>
|
||||||
|
<asp:BoundField HeaderText="Serie" DataField="Serie" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Lote" DataField="Lote" ItemStyle-HorizontalAlign="Left" />
|
||||||
|
<asp:BoundField HeaderText="Fecha Caducidad" DataField="FechaCaducidad" ItemStyle-HorizontalAlign="Left" DataFormatString="{0:d}" />
|
||||||
|
<asp:BoundField HeaderText="Existencia" DataField="CantidadAlmacen" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="Inv. Físico" DataField="CantidadInventarioFisico" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
<asp:BoundField HeaderText="Diferencia" DataField="Diferencia" DataFormatString="{0:#,###.##}" ItemStyle-Font-Bold="true" />
|
||||||
|
<asp:BoundField HeaderText="Costo" DataField="Costo" DataFormatString="{0:#,##0.00}" ItemStyle-HorizontalAlign="Right" />
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
@@ -187,6 +187,11 @@ Partial Class Inventarios_RepAnomalias
|
|||||||
GvF.DataBind()
|
GvF.DataBind()
|
||||||
BanderaSerieLoteCad(GvF, DtF)
|
BanderaSerieLoteCad(GvF, DtF)
|
||||||
|
|
||||||
|
Dim DtC As DataTable = dt.FiltraParametros("Diferencia = 0")
|
||||||
|
GvC.DataSource = DtC
|
||||||
|
GvC.DataBind()
|
||||||
|
BanderaSerieLoteCad(GvC, DtC)
|
||||||
|
|
||||||
Dim Script = ""
|
Dim Script = ""
|
||||||
If (GvF.Rows.Count > 0) Then
|
If (GvF.Rows.Count > 0) Then
|
||||||
GvF.UseAccessibleHeader = True
|
GvF.UseAccessibleHeader = True
|
||||||
@@ -204,6 +209,14 @@ Partial Class Inventarios_RepAnomalias
|
|||||||
LtlTotalRegistrosSobran.Text = GvS.Rows.Count.ToString
|
LtlTotalRegistrosSobran.Text = GvS.Rows.Count.ToString
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
If (GvC.Rows.Count > 0) Then
|
||||||
|
GvC.UseAccessibleHeader = True
|
||||||
|
GvC.HeaderRow.TableSection = TableRowSection.TableHeader
|
||||||
|
Script += "OrdenarGVS();"
|
||||||
|
divRegistradosCoinciden.Visible = True
|
||||||
|
LtlCoincidentes.Text = GvC.Rows.Count.ToString
|
||||||
|
End If
|
||||||
|
|
||||||
PSIguales()
|
PSIguales()
|
||||||
RegistraScript(Script)
|
RegistraScript(Script)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user