public void LlenaCombo(string SP, ref ListBox LBX, string parametro1, string parametro2, string parametro3, string valor1, string valor2, string valor3, ref List <Comun> Etiquetas) { try { List <Comun> Lista = new List <Comun>(); CD_Comun CDComun = new CD_Comun(); CDComun.LlenaCombo(SP, ref Lista, parametro1, parametro2, parametro3, valor1, valor2, valor3); LBX.Items.Clear(); if (Lista.Count > 0) { Etiquetas = Lista; LBX.DataSource = Lista; LBX.DataValueField = "IdStr"; LBX.DataTextField = "Descripcion"; LBX.DataBind(); } else { LBX.Items.Add("La opción no contiene datos"); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public void LlenaCombo(string SP, ref DropDownList DDL, string parametro1, string parametro2, string valor1, string valor2) { try { List <Comun> Lista = new List <Comun>(); CD_Comun CDComun = new CD_Comun(); CDComun.LlenaCombo(SP, ref Lista, parametro1, parametro2, valor1, valor2); DDL.Items.Clear(); if (Lista.Count > 0) { DDL.DataSource = Lista; DDL.DataValueField = "IdStr"; DDL.DataTextField = "Descripcion"; DDL.DataBind(); } else { DDL.Items.Add("La opción no contiene datos"); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public void LlenaListaRbn(string SP, ref RadioButtonList ListBox, string parametro1, string parametro2, string valor1, string valor2) { try { List <Comun> Lista = new List <Comun>(); CD_Comun CDComun = new CD_Comun(); CDComun.LlenaLista(SP, ref Lista, parametro1, parametro2, valor1, valor2); ListBox.Items.Clear(); if (Lista.Count > 0) { ListBox.DataSource = Lista; ListBox.DataValueField = "IdStr"; ListBox.DataTextField = "Descripcion"; ListBox.DataBind(); } else { ListBox.Items.Add("La opción no contiene datos"); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public void LlenaCombo(string SP, ref DropDownList DDL, string[] parametros, string[] valores, ref List <Comun> Etiquetas) { try { List <Comun> Lista = new List <Comun>(); CD_Comun CDComun = new CD_Comun(); CDComun.LlenaCombo(SP, ref Lista, parametros, valores); DDL.Items.Clear(); if (Lista.Count > 0) { Etiquetas = Lista; DDL.DataSource = Lista; DDL.DataValueField = "IdStr"; DDL.DataTextField = "Descripcion"; DDL.DataBind(); } else { DDL.Items.Add("LA OPCIÓN NO CONTIENE DATOS."); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public void LlenaCombo(string SP, string USERBD, string usuario, ref DropDownList DDL) { try { List <Comun> Lista = new List <Comun>(); CD_Comun CDComun = new CD_Comun(); CDComun.LlenaCombo(SP, ref Lista, "P_usuario", usuario, USERBD); DDL.Items.Clear(); if (Lista.Count > 0) { DDL.DataSource = Lista; DDL.DataValueField = "IdStr"; DDL.DataTextField = "Descripcion"; DDL.DataBind(); } else { DDL.Items.Add("La opción no contiene datos"); } } catch (Exception ex) { throw new Exception(ex.Message); } }
public void LlenaCheckBoxList(string SP, ref CheckBoxList CBL, string[] parametros, string[] valores, ref List <Comun> Etiquetas) { try { List <Comun> Lista = new List <Comun>(); CD_Comun CDComun = new CD_Comun(); CDComun.LlenaCombo(SP, ref Lista, parametros, valores); CBL.Items.Clear(); if (Lista.Count > 0) { Etiquetas = Lista; CBL.DataSource = Lista; CBL.DataValueField = "IdStr"; CBL.DataTextField = "Descripcion"; CBL.DataBind(); } else { CBL.Items.Add("La opción no contiene datos"); } } catch (Exception ex) { throw new Exception(ex.Message); } }
//-- public void ConsultarImagen(ref Comun ObjComun, ref string Verificador) { try { CD_Comun CDComun = new CD_Comun(); CDComun.ConsultarImagen(ref ObjComun, ref Verificador); } catch (Exception ex) { throw new Exception(ex.Message); } }
public void Estadisticas(int Rango, ref List <Comun> List) { try { CD_Comun CDMonitor = new CD_Comun(); CDMonitor.Estadisticas(Rango, ref List); } catch (Exception ex) { throw new Exception(ex.Message); } }
public void Estadisticas_Presupuesto(string tipo, ref string[] datosX, ref int[] datosY) { try { CD_Comun CDMonitor = new CD_Comun(); CDMonitor.Estadisticas_Presupuesto(tipo, ref datosX, ref datosY); } catch (Exception ex) { throw new Exception(ex.Message); } }
public void Monitor_EstadisticaPP(string Color, int Rango, ref List <Comun> List) { try { CD_Comun CDMonitor = new CD_Comun(); CDMonitor.Monitor_EstadisticaPP(Color, Rango, ref List); } catch (Exception ex) { throw new Exception(ex.Message); } }
public void Monitor_Patrimonio(string Usuario, string Sistema, string Centro_Contable, ref List <Comun> List) { try { CD_Comun CDMonitor = new CD_Comun(); CDMonitor.Monitor_Patrimonio(Usuario, Sistema, Centro_Contable, ref List); } catch (Exception ex) { throw new Exception(ex.Message); } }
public void insertar_datos_sesion(ref Sesion objsesion, ref string Verificador) { try { CD_Comun CDsesion = new CD_Comun(); CDsesion.insertar_datos_sesion(ref objsesion, ref Verificador); } catch (Exception ex) { throw new Exception(ex.Message); } }
public string Desencripta(string Palabra) { string clave = "0"; try { CD_Comun CDComun = new CD_Comun(); clave = CDComun.Desencripta(Palabra); } catch (Exception ex) { throw new Exception(ex.Message); } return(clave); }
public void LlenaCombo(string SP, ref ListBox LBX, string parametro1, string parametro2, string parametro3, string parametro4, string parametro5, string valor1, string valor2, string valor3, string valor4, string valor5) { try { List <Comun> Lista = new List <Comun>(); CD_Comun CDComun = new CD_Comun(); CDComun.LlenaCombo(SP, ref Lista, parametro1, parametro2, parametro3, parametro4, parametro5, valor1, valor2, valor3, valor4, valor5); LBX.Items.Clear(); if (Lista.Count > 0) { LBX.DataSource = Lista; LBX.DataValueField = "IdStr"; LBX.DataTextField = "Descripcion"; LBX.DataBind(); } } catch (Exception ex) { throw new Exception(ex.Message); } }