-- E189, que genere folio al inicial la página
This commit is contained in:
@@ -329,6 +329,7 @@ Partial Class Ventas_Promociones
|
|||||||
|
|
||||||
TxtPromocion.Enabled = False
|
TxtPromocion.Enabled = False
|
||||||
TxtPromocion.ReadOnly = True
|
TxtPromocion.ReadOnly = True
|
||||||
|
CargaFolio()
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
@@ -1577,20 +1578,27 @@ Partial Class Ventas_Promociones
|
|||||||
|
|
||||||
|
|
||||||
Protected Sub DdlSubProyecto_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlSubProyecto_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
If Me.CvePromocion <= 0 Then
|
CargaFolio()
|
||||||
Dim ObjFolios As New ClsGralFolios()
|
End Sub
|
||||||
If ObjFolios.GetFolios("PRM", UsuarioActual.CveEmpresa, DdlSubProyecto.SelectedValue.ToEntero()) Then
|
|
||||||
Dim DT As DataTable = ObjFolios.DtResultados
|
|
||||||
If DT.Rows.Count > 0 Then
|
|
||||||
TxtPromocion.Text = String.Format("{0}-{1}", DT.Rows(0)("Serie"), DT.Rows(0)("FActual"))
|
|
||||||
Else
|
|
||||||
TxtPromocion.Text = ""
|
|
||||||
End If
|
|
||||||
DT.Dispose()
|
|
||||||
End If
|
|
||||||
ObjFolios.Dispose()
|
|
||||||
|
|
||||||
UpGenerales.Update()
|
Private Sub CargaFolio()
|
||||||
|
If UsuarioActual.Empresa.Funcionalidad(382) = "1" Then
|
||||||
|
If Me.CvePromocion <= 0 Then
|
||||||
|
Dim ObjFolios As New ClsGralFolios()
|
||||||
|
If ObjFolios.GetFolios("PRM", UsuarioActual.CveEmpresa, DdlSubProyecto.SelectedValue.ToEntero()) Then
|
||||||
|
Dim DT As DataTable = ObjFolios.DtResultados
|
||||||
|
If DT.Rows.Count > 0 Then
|
||||||
|
TxtPromocion.Text = String.Format("{0}-{1}", DT.Rows(0)("Serie"), DT.Rows(0)("FActual"))
|
||||||
|
Else
|
||||||
|
TxtPromocion.Text = ""
|
||||||
|
End If
|
||||||
|
DT.Dispose()
|
||||||
|
End If
|
||||||
|
ObjFolios.Dispose()
|
||||||
|
|
||||||
|
UpGenerales.Update()
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
End Class
|
End Class
|
||||||
Reference in New Issue
Block a user