Carga de cuentas de lineas de telefono
This commit is contained in:
@@ -471,18 +471,29 @@ public partial class GPS_WizardDispositivos : ClsPaginas
|
||||
{
|
||||
ClsGPS ObjGPS = new ClsGPS();
|
||||
ObjGPS.ProveedoresComunicacionCuentasGet(-1, UsuarioActual.CveEmpresa);
|
||||
DdlLineaTelefono.SelectedIndex = -1;
|
||||
DdlLineaTelefono.DataSource = ObjGPS.DtResultados.FiltraParametros($"CveDispositivo is NULL OR CveDispositivo = {CveDispositivo}");
|
||||
|
||||
DataTable DtProveedores = ObjGPS.DtResultados.FiltraParametros($"CveDispositivo IS NULL OR CveDispositivo = {CveDispositivo}");
|
||||
DdlLineaTelefono.DataSource = DtProveedores;
|
||||
|
||||
ObjGPS.Dispose();
|
||||
|
||||
DdlLineaTelefono.DataBind();
|
||||
DdlLineaTelefono.Items.Insert(0, new ListItem("Seleccione", "-1"));
|
||||
DdlLineaTelefono.SelectedValue = "-1";
|
||||
DataRow drow = ObjGPS.DtResultados.FiltroPrimero($"CveDispositivo is NULL OR CveDispositivo = {CveDispositivo}");
|
||||
|
||||
DataRow drow = DtProveedores.FiltroPrimero($"CveDispositivo IS NULL OR CveDispositivo = {CveDispositivo}");
|
||||
if (drow != null)
|
||||
{
|
||||
DdlLineaTelefono.SelectedValue = drow["CveProveedorComunicacionCuenta"].ToString();
|
||||
DdlLineaTelefono.SelectedValueExist(drow["CveProveedorComunicacionCuenta"].ToString());
|
||||
}
|
||||
|
||||
if (DtProveedores != null)
|
||||
{
|
||||
DtProveedores.Dispose();
|
||||
DtProveedores = null;
|
||||
}
|
||||
|
||||
upLinea.Update();
|
||||
UpModelo.Update();
|
||||
}
|
||||
protected void DdlProveedorComunicacion_SelectedIndexChanged1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user