-- si tiene una sola seccion de almacen, que este inactiva la seleccion
This commit is contained in:
@@ -1264,11 +1264,19 @@ Partial Class Inventarios_RecepcionAlmacen
|
||||
If CBool(e.Row.DBCampo("AplicaSeccion")) Then
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").Visible = True
|
||||
If DdlAlmacen.SelectedValue.ToEntero > 0 Then
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").DataSource = GlobalDTInvPSSeccionesAlmacen(UsuarioActual.CveEmpresa, DdlAlmacen.SelectedValue.ToEntero, e.Row.DBCampo("CvePS").ToEntero)
|
||||
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
|
||||
End If
|
||||
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||
End If
|
||||
e.Row.FCTextBox("TxtDividir").Visible = True
|
||||
|
||||
dtsec.Dispose()
|
||||
End If
|
||||
e.Row.FCTextBox("TxtDividir").Visible = True
|
||||
|
||||
Else
|
||||
e.Row.FCDropDownList("DdlSeccionAlmacen").Visible = False
|
||||
|
||||
Reference in New Issue
Block a user