OC Bloquear cancelacion cuando exista movimiento de almacen
This commit is contained in:
@@ -875,7 +875,7 @@
|
|||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|
||||||
<asp:Literal runat="server" ID="LtlGvAnticiposSel" Visible="false">Anticipos/NC Vinculados</asp:Literal>
|
<asp:Literal runat="server" ID="LtlGvAnticiposSel" Visible="false">Anticipos/NC Vinculados</asp:Literal>
|
||||||
<asp:GridView ID="GvAnticiposSel" runat="server" CssClass="table table-striped table-hover ScrollAD" Width="100%" AutoGenerateColumns="False" DataKeyNames="TipoDocto,CveCompraNC" ClientIDMode="Static" EmptyDataText="" data-height="280"
|
<asp:GridView ID="GvAnticiposSel" runat="server" CssClass="table table-striped table-hover ScrollAD" Width="100%" AutoGenerateColumns="False" DataKeyNames="TipoDocto,CveCompraNC" ClientIDMode="Static" EmptyDataText="" data-height="200"
|
||||||
GridLines="None">
|
GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
|
|||||||
@@ -922,10 +922,31 @@ Partial Class OC_OC
|
|||||||
|
|
||||||
MostrarUsuarioAsignado()
|
MostrarUsuarioAsignado()
|
||||||
|
|
||||||
|
ValidaCancelacionConAlamcen()
|
||||||
|
|
||||||
Me.Form.DefaultButton = ""
|
Me.Form.DefaultButton = ""
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Sub ValidaCancelacionConAlamcen()
|
||||||
|
|
||||||
|
' BtnCancelarPrevio.Visible = True
|
||||||
|
' BtnCancelarPrevio.Enabled = True
|
||||||
|
|
||||||
|
If BtnCancelarPrevio.Visible AndAlso BtnCancelarPrevio.Enabled And GVInv.Rows.Count > 0 Then
|
||||||
|
|
||||||
|
|
||||||
|
'BtnCancelarPrevio.Attributes.Remove("onclick")
|
||||||
|
BtnCancelarPrevio.Attributes.Add("Data-toggle", "tooltip")
|
||||||
|
BtnCancelarPrevio.Attributes.Add("Title", "La orden de compra no se puede cancelar porque tiene movimientos de almacén.")
|
||||||
|
BtnCancelarPrevio.OnClientClick = "return false;"
|
||||||
|
'BtnCancelarPrevio.Attributes.Add("onclick", "$('#DivCancelarCompra').modal('hide')")
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
#Region " PERMISOS PAGINA "
|
#Region " PERMISOS PAGINA "
|
||||||
Private Sub PermisosPagina()
|
Private Sub PermisosPagina()
|
||||||
ActivarIVAEditable()
|
ActivarIVAEditable()
|
||||||
|
|||||||
Reference in New Issue
Block a user