Compras prodcutos servicios agrupador
This commit is contained in:
@@ -191,6 +191,13 @@ Partial Class Compras_RepProductosServicios
|
||||
DdlGrupo.Items.Insert(7, New ListItem("Proveedor", "10"))
|
||||
DdlGrupo.Items.Insert(8, New ListItem("Usuario", "11"))
|
||||
DdlGrupo.Items.Insert(9, New ListItem("Estatus Fact.", "12"))
|
||||
|
||||
'Agrega el grupo si es una empresa Agricola
|
||||
If UsuarioActual.Empresa.Funcionalidad(590).ToString.ToEntero = 1 Then
|
||||
DdlGrupo.Items.Insert(9, New ListItem("Cultivo", "15"))
|
||||
End If
|
||||
|
||||
|
||||
DdlGrupo.DataBind()
|
||||
DdlGrupo.SelectedValueExist("8")
|
||||
End Sub
|
||||
@@ -296,7 +303,7 @@ Partial Class Compras_RepProductosServicios
|
||||
Protected Sub GvDatos_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatos.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
|
||||
If DdlGrupo.SelectedValue.ToEntero < 13 Then
|
||||
If DdlGrupo.SelectedValue.ToEntero < 13 Or DdlGrupo.SelectedValue.ToEntero = 15 Then
|
||||
If e.Row.DBCampo("GpoID") = "1" Then
|
||||
e.Row.Cells(0).Text = e.Row.DBCampo("Moneda")
|
||||
e.Row.CssClass = "Totales"
|
||||
|
||||
@@ -296,6 +296,12 @@ Partial Class Compras_RepProductosServiciosDetalle
|
||||
DdlGrupo.Items.Insert(7, New ListItem("Proveedor", "10"))
|
||||
DdlGrupo.Items.Insert(8, New ListItem("Usuario", "11"))
|
||||
DdlGrupo.Items.Insert(9, New ListItem("Estatus Fact.", "12"))
|
||||
|
||||
'Agrega el grupo si es una empresa Agricola
|
||||
If UsuarioActual.Empresa.Funcionalidad(590).ToString.ToEntero = 1 Then
|
||||
DdlGrupo.Items.Insert(9, New ListItem("Cultivo", "15"))
|
||||
End If
|
||||
|
||||
DdlGrupo.DataBind()
|
||||
DdlGrupo.SelectedValueExist("8")
|
||||
End Sub
|
||||
|
||||
Reference in New Issue
Block a user