- mejora para igualar a regprepolizas.aspx
This commit is contained in:
@@ -717,6 +717,7 @@
|
|||||||
<asp:RequiredFieldValidator ID="RfvDdlComprasE" InitialValue="-1" runat="server" ControlToValidate="DdlComprasE" Display="None" ErrorMessage="El campo <b>''Compra''</b> es requerido por la aplicación, por favor ingrese uno." ValidationGroup="GrpMocalConceptoGuardar"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RfvDdlComprasE" InitialValue="-1" runat="server" ControlToValidate="DdlComprasE" Display="None" ErrorMessage="El campo <b>''Compra''</b> es requerido por la aplicación, por favor ingrese uno." ValidationGroup="GrpMocalConceptoGuardar"></asp:RequiredFieldValidator>
|
||||||
<ajax:ValidatorCalloutExtender ID="CeRfvDdlComprasE" runat="server" HighlightCssClass="vco" TargetControlID="RfvDdlComprasE" Width="350px"></ajax:ValidatorCalloutExtender>
|
<ajax:ValidatorCalloutExtender ID="CeRfvDdlComprasE" runat="server" HighlightCssClass="vco" TargetControlID="RfvDdlComprasE" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
<i></i>
|
<i></i>
|
||||||
|
<asp:HiddenField ID="HdnCveCompra" runat="server" Value="-1" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -468,7 +468,7 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
ObjContabilidad.GetContabilizacionDiarioDetalle(CvePrePoliza, UsuarioActual.CveEmpresa)
|
ObjContabilidad.GetContabilizacionDiarioDetalle(CvePrePoliza, UsuarioActual.CveEmpresa)
|
||||||
DtMovimientos = ObjContabilidad.DtResultados.FiltraParametros($"CveEmpresa = {UsuarioActual.CveEmpresa}")
|
DtMovimientos = ObjContabilidad.DtResultados
|
||||||
|
|
||||||
If dr("Modulo").ToString.Contiene("Banc/FluctuaA", "Banc/FluctuaC", "Banc/FluctuaV", "Banc/FluctuaFilial", "Banc/FluctuaAD") Then
|
If dr("Modulo").ToString.Contiene("Banc/FluctuaA", "Banc/FluctuaC", "Banc/FluctuaV", "Banc/FluctuaFilial", "Banc/FluctuaAD") Then
|
||||||
BtnEliminar.Enabled = False
|
BtnEliminar.Enabled = False
|
||||||
@@ -573,7 +573,7 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
|
|
||||||
Dim CveConceptoContable As Integer = e.Row.DataKey("CveConceptoContable").ToEntero
|
Dim CveConceptoContable As Integer = e.Row.DataKey("CveConceptoContable").ToEntero
|
||||||
|
|
||||||
If CveConceptoContable.Contiene(1, 2, 12, 91, 13, 38, 207, 203, 39, 61, 62, 63, 4, 278, 291, 292, 293, 294, 272, 150, 251, 301) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Ventas/Ventas.aspx?CveVenta={0}", e.Row.DataKey("CveVenta"))
|
If CveConceptoContable.Contiene(1, 2, 12, 91, 13, 38, 207, 203, 39, 61, 62, 63, 4, 278, 291, 292, 293, 294, 272, 150, 251, 301, 3, 11) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Ventas/Ventas.aspx?CveVenta={0}", e.Row.DataKey("CveVenta"))
|
||||||
If CveConceptoContable.Contiene(5, 6, 17, 18, 14, 19, 25, 26, 60, 205, 225, 234, 235, 240, 305, 306, 307, 308, 309, 310, 311, 312, 201, 206, 323, 324, 341, 342, 343, 344, 304, 272, 259, 287, 288, 370, 371, 372, 373) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Compras/Compras.aspx?CveCompra={0}", e.Row.DataKey("CveCompra"))
|
If CveConceptoContable.Contiene(5, 6, 17, 18, 14, 19, 25, 26, 60, 205, 225, 234, 235, 240, 305, 306, 307, 308, 309, 310, 311, 312, 201, 206, 323, 324, 341, 342, 343, 344, 304, 272, 259, 287, 288, 370, 371, 372, 373) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Compras/Compras.aspx?CveCompra={0}", e.Row.DataKey("CveCompra"))
|
||||||
If CveConceptoContable.Contiene(68) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}", e.Row.DBCampo("CveMovimientoAlmacen"))
|
If CveConceptoContable.Contiene(68) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}", e.Row.DBCampo("CveMovimientoAlmacen"))
|
||||||
If CveConceptoContable.Contiene(30, 204, 66, 92, 202, 10, 21, 48, 56, 338, 339, 340, 345, 346, 347) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Bancos/IE.aspx?CveIE={0}", e.Row.DBCampo("CveIE"))
|
If CveConceptoContable.Contiene(30, 204, 66, 92, 202, 10, 21, 48, 56, 338, 339, 340, 345, 346, 347) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Bancos/IE.aspx?CveIE={0}", e.Row.DBCampo("CveIE"))
|
||||||
@@ -1309,7 +1309,7 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
TxtME.Text = GvPrePoliza.Rows(IndiceGrid).DataKey("ImporteME").ToDecimal.FormatoNumero
|
TxtME.Text = GvPrePoliza.Rows(IndiceGrid).DataKey("ImporteME").ToDecimal.FormatoNumero
|
||||||
|
|
||||||
DdlPorcentajeIVAE.SelectedValueExist(PorcentajeImpuesto)
|
DdlPorcentajeIVAE.SelectedValueExist(PorcentajeImpuesto)
|
||||||
|
HdnCveCompra.Value = CveCompra.ToString
|
||||||
DdlProveedoresE.SelectedValueExist(CveProveedor)
|
DdlProveedoresE.SelectedValueExist(CveProveedor)
|
||||||
DdlProveedoresE_SelectedIndexChanged(DdlProveedoresE, e)
|
DdlProveedoresE_SelectedIndexChanged(DdlProveedoresE, e)
|
||||||
DdlComprasE.SelectedValueExist(CveCompra)
|
DdlComprasE.SelectedValueExist(CveCompra)
|
||||||
@@ -1551,13 +1551,13 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
DdlProveedoresE.DataBind()
|
DdlProveedoresE.DataBind()
|
||||||
DdlProveedoresE.Items.Insert(0, New ListItem(" - ", "-1"))
|
DdlProveedoresE.Items.Insert(0, New ListItem(" - ", "-1"))
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaComprasE(CveProveedor As Integer)
|
Private Sub CargaComprasE(CveProveedor As Integer, Optional tCveCompra As Integer = -1)
|
||||||
If DdlConceptosContablesE.SelectedValue.ToEntero.Contiene(5, 17, 305, 308, 310, 311, 312) Then
|
If DdlConceptosContablesE.SelectedValue.ToEntero.Contiene(5, 17, 305, 308, 310, 311, 312) Then
|
||||||
Dim ObjCompras As New ClsCompras
|
Dim ObjCompras As New ClsCompras
|
||||||
|
|
||||||
DdlComprasE.ClearSelection()
|
DdlComprasE.ClearSelection()
|
||||||
If ObjCompras.GetCompras(-1, "-1", "-1", CveProveedor, -1, UsuarioActual.CveEmpresa) Then
|
If ObjCompras.GetCompras(tCveCompra, "-1", "-1", CveProveedor, -1, UsuarioActual.CveEmpresa) Then
|
||||||
DdlComprasE.DataSource = ObjCompras.DtResultados.FiltraParametros("Saldo > 0")
|
DdlComprasE.DataSource = ObjCompras.DtResultados.FiltraParametros($"Saldo > 0 OR CveCompra = {tCveCompra}")
|
||||||
DdlComprasE.DataBind()
|
DdlComprasE.DataBind()
|
||||||
DdlComprasE.Items.Insert(0, New ListItem(" - ", "-1"))
|
DdlComprasE.Items.Insert(0, New ListItem(" - ", "-1"))
|
||||||
Else
|
Else
|
||||||
@@ -1618,7 +1618,7 @@ Partial Class ContabilidadC_RegPrePoliza
|
|||||||
DdlClasificacionesE.Items.Insert(0, New ListItem(" - ", "-1"))
|
DdlClasificacionesE.Items.Insert(0, New ListItem(" - ", "-1"))
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub DdlProveedoresE_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlProveedoresE.SelectedIndexChanged
|
Private Sub DdlProveedoresE_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlProveedoresE.SelectedIndexChanged
|
||||||
CargaComprasE(DdlProveedoresE.SelectedValue.ToEntero)
|
CargaComprasE(DdlProveedoresE.SelectedValue.ToEntero, HdnCveCompra.Value.ToEntero)
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub DdlClientesE_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlClientesE.selectedindexchange
|
Private Sub DdlClientesE_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlClientesE.selectedindexchange
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user