-- cambios en secciones, en base su clasificacion del PS
This commit is contained in:
@@ -1267,21 +1267,23 @@ Partial Class Inventarios_RecepcionAlmacen
|
||||
If CBool(e.Row.DBCampo("AplicaSeccion")) Then
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").Visible = True
|
||||
If DdlAlmacen.SelectedValue.ToEntero > 0 Then
|
||||
Dim dtsec As DataTable = GlobalDTInvPSSeccionesAlmacen(UsuarioActual.CveEmpresa, DdlAlmacen.SelectedValue.ToEntero, e.Row.DBCampo("CvePS").ToEntero)
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").DataSource = dtsec
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").DataBind()
|
||||
If dtsec.Rows.Count = 1 Then
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").SelectedIndex = 0
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").Enabled = False
|
||||
Else 'si es mayor a uno que por default seleccione el primero, que seria el predeterminado
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").SelectedValueExist(dtsec.FiltroPrimeroValor("CveSeccionAlmacen", "Predeterminado = 1"))
|
||||
End If
|
||||
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||
CargaSeccionesAlmacen(e.Row.FCDropDownList("DdlSeccionAlmacen"), DdlAlmacen.SelectedValue.ToEntero, e.Row.DBCampo("CvePS").ToEntero, UsuarioActual.CveEmpresa, True)
|
||||
'Dim dtsec As DataTable = GlobalDTInvPSSeccionesAlmacen(UsuarioActual.CveEmpresa, DdlAlmacen.SelectedValue.ToEntero, e.Row.DBCampo("CvePS").ToEntero)
|
||||
'e.Row.FCDropDownList("DdlSeccionAlmacen").DataSource = dtsec
|
||||
'e.Row.FCDropDownList("DdlSeccionAlmacen").DataBind()
|
||||
'If dtsec.Rows.Count = 1 Then
|
||||
' e.Row.FCDropDownList("DdlSeccionAlmacen").SelectedIndex = 0
|
||||
' e.Row.FCDropDownList("DdlSeccionAlmacen").Enabled = False
|
||||
'Else 'si es mayor a uno que por default seleccione el primero, que seria el predeterminado
|
||||
' e.Row.FCDropDownList("DdlSeccionAlmacen").SelectedValueExist(dtsec.FiltroPrimeroValor("CveSeccionAlmacen", "Predeterminado = 1"))
|
||||
'End If
|
||||
|
||||
dtsec.Dispose()
|
||||
End If
|
||||
e.Row.FCTextBox("TxtDividir").Visible = True
|
||||
'e.Row.FCDropDownList("DdlSeccionAlmacen").Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||
|
||||
'dtsec.Dispose()
|
||||
End If
|
||||
e.Row.FCTextBox("TxtDividir").Visible = True
|
||||
|
||||
Else
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").Visible = False
|
||||
|
||||
Reference in New Issue
Block a user