Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -2890,9 +2890,9 @@
|
||||
<div class="row">
|
||||
<div class="col-md-2">Producto:</div>
|
||||
<div class="col-md-10">
|
||||
<asp:DropDownList ID="DdlAFInvPS" AutoPostBack="true" DataTextField="PSCodigo" DataValueField="CvePS" CssClass="select2me" AppendDataBoundItems="true" runat="server" Width="475px" OnSelectedIndexChanged="DdlAFInvPS_SelectedIndexChanged"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVAFInvPS" runat="server" ControlToValidate="DdlAFInvPS" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAFInv"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEAFInvPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVAFInvPS" Width="300px"></ajax:ValidatorCalloutExtender>
|
||||
<ADS:Dropdownlost runat="server" ID="DdlAFInvPS" CssStyle="width: 100%;" CssClass="DdlPS " CssClassDdl="select2me " IncluyeTodos="false" DataTextField="PSCodigo" DataValueField="CvePS" Onselectedindexchange ="DdlAFInvPS_SelectedIndexChanged" />
|
||||
<%-- <asp:RequiredFieldValidator ID="RFVAFInvPS" runat="server" ControlToValidate="DdlAFInvPS" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Producto''</b> es necesario, por favor seleccione uno." InitialValue="-1" ValidationGroup="GrpAFInv"></asp:RequiredFieldValidator>
|
||||
<ajax:ValidatorCalloutExtender ID="VCEAFInvPS" runat="server" HighlightCssClass="vco" TargetControlID="RFVAFInvPS" Width="300px"></ajax:ValidatorCalloutExtender>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div id="DivSerie" runat="server" visible="false" class="row">
|
||||
|
||||
@@ -530,18 +530,18 @@ Partial Class AF_AF
|
||||
|
||||
HLAFInv.Visible= True
|
||||
|
||||
Dim StrAlmacenes As String = "CveTipoAlmacen IN (1,2)"
|
||||
DdlAFInvAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, CveEmpresaActual, -1).FiltraParametros(StrAlmacenes)
|
||||
Dim StrAlmacenes As String = "CveTipoAlmacen IN (1,2,12)"
|
||||
DdlAFInvAlmacen.DataSource = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, CveEmpresaActual, CveTipoAlmacen:=-1).FiltraParametros(StrAlmacenes)
|
||||
DdlAFInvAlmacen.Items.Insert(0, New ListItem(" Seleccione ", "-1"))
|
||||
DdlAFInvAlmacen.SelectedValue = "-1"
|
||||
DdlAFInvAlmacen.DataBind()
|
||||
DdlAFInvAlmacen.SelectedValueExist(UsuarioActual.CveAlmacen)
|
||||
DdlAFInvAlmacen.SelectedValueExist(UsuarioActual.CveAlmacen)
|
||||
DdlAFInvPS.setEsWebService(True)
|
||||
|
||||
|
||||
DdlAFInvPS.DataSource = GlobalDTPS(UsuarioActual.CveEmpresa).FiltraParametros("CveTipoPS = 2", "PSCodigo")
|
||||
DdlAFInvPS.Items.Insert(0, New ListItem(" Seleccione ", "-1"))
|
||||
DdlAFInvPS.DataBind()
|
||||
DdlAFInvPS.SelectedValue = "-1"
|
||||
'DdlAFInvPS.DataSource = GlobalDTPS(UsuarioActual.CveEmpresa).FiltraParametros("CveTipoPS = 2", "PSCodigo")
|
||||
'DdlAFInvPS.Items.Insert(0, New ListItem(" Seleccione ", "-1"))
|
||||
'DdlAFInvPS.DataBind()
|
||||
'DdlAFInvPS.SelectedValue = "-1"
|
||||
End If
|
||||
End Sub
|
||||
Private Sub CargaMarcas()
|
||||
@@ -3035,14 +3035,20 @@ Partial Class AF_AF
|
||||
Catch ex As Exception
|
||||
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
|
||||
|
||||
#Region " AFInv "
|
||||
Protected Sub BtnAFInv_Click(sender As Object, e As EventArgs)
|
||||
|
||||
If DdlAFInvPS.SelectedValue.ToEntero <= 0 Then
|
||||
Alert("Seleccione un producto.")
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
AFInvSerie = ""
|
||||
AFInvCvePS = -1
|
||||
AFInvCveAlmacen = -1
|
||||
@@ -3073,7 +3079,7 @@ Partial Class AF_AF
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
TxtDescripcion.Text = DdlAFInvPS.SelectedItem.Text
|
||||
TxtDescripcion.Text = DdlAFInvPS.SelectedText
|
||||
TxtValorCompra.Text = Costo.FormatoNumero
|
||||
TxtFechaCompra.Text = Now.ToShortDateString
|
||||
TxtNoSerie.Text = TxtAFInvSerie.Text.Trim
|
||||
@@ -3091,11 +3097,11 @@ Partial Class AF_AF
|
||||
DivAFInvAdvertencia.Visible = True
|
||||
|
||||
UpDatos.Update()
|
||||
End Sub
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
#End Region
|
||||
|
||||
|
||||
#Region "AF GRUPOS"
|
||||
Private Sub BtnAgregarGrupo_Click(sender As Object, e As EventArgs) Handles BtnAgregarGrupo.Click
|
||||
TxtGrupoAF.Text = ""
|
||||
|
||||
@@ -177,11 +177,12 @@
|
||||
<Columns>
|
||||
<asp:BoundField HeaderText="Concepto" DataField="Concepto" ItemStyle-Width="10%" />
|
||||
<asp:HyperLinkField DataNavigateUrlFields="CveMovimiento" DataNavigateUrlFormatString="~/inventarios/EntradasSalidas.aspx?CveMovimiento={0}" Target="_blank" ItemStyle-Width="15%" HeaderText="Movimiento" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" DataTextField="Folio" />
|
||||
<asp:BoundField HeaderText="Almacen" DataField="Almacen" ItemStyle-Width="20%" />
|
||||
<asp:BoundField HeaderText="F. Movimiento" DataField="FechaMovto" DataFormatString="{0:d}" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />
|
||||
<asp:BoundField HeaderText="F. Ingreso" DataField="FechaIng" DataFormatString="{0:d}" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />
|
||||
<asp:HyperLinkField DataNavigateUrlFields="CveCompra" DataNavigateUrlFormatString="~/Compras/Compras.aspx?CveCompra={0}" Target="_blank" ItemStyle-Width="12.5%" HeaderText="Compra" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" DataTextField="SerieFolioCompra" />
|
||||
<asp:HyperLinkField DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="~/Ventas/Ventas.aspx?CvePS={0}" Target="_blank" ItemStyle-Width="12.5%" HeaderText="Venta" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" DataTextField="SerieFolioVenta" />
|
||||
<asp:BoundField HeaderText="Almacen" DataField="Almacen" ItemStyle-Width="10%" />
|
||||
<asp:BoundField HeaderText="Observación" DataField="Observaciones" ItemStyle-Width="20%" />
|
||||
<asp:BoundField HeaderText="F. Movimiento" DataField="FechaMovto" DataFormatString="{0:d}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" />
|
||||
<asp:BoundField HeaderText="F. Ingreso" DataField="FechaIng" DataFormatString="{0:d}" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Center" />
|
||||
<asp:HyperLinkField DataNavigateUrlFields="CveCompra" DataNavigateUrlFormatString="~/Compras/Compras.aspx?CveCompra={0}" Target="_blank" ItemStyle-Width="5%" HeaderText="Compra" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" DataTextField="SerieFolioCompra" />
|
||||
<asp:HyperLinkField DataNavigateUrlFields="CveVenta" DataNavigateUrlFormatString="~/Ventas/Ventas.aspx?CvePS={0}" Target="_blank" ItemStyle-Width="5%" HeaderText="Venta" ControlStyle-CssClass="Texto" ItemStyle-HorizontalAlign="Left" DataTextField="SerieFolioVenta" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
</ContentTemplate>
|
||||
|
||||
Reference in New Issue
Block a user