public System.Data.DataTable ListaServidoresCompletaApp(bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); System.Data.DataTable Resultados = new System.Data.DataTable(); Resultados.Columns.Add("Srv_Id"); Resultados.Columns.Add("Srv_Nombre"); Resultados.Columns.Add("EsPropietaria"); foreach (System.Data.DataRow dr in DataLayerSoftware.getServidoresCompletaApp(IncluirValorInicial).Rows) { System.Data.DataRow drN; drN = Resultados.NewRow(); drN[0] = dr[0].ToString(); drN[1] = dr[1].ToString(); drN[2] = ""; Resultados.Rows.Add(drN); } Resultados.AcceptChanges(); return(Resultados); }
public void ListaBDConServerInstancia(ref DropDownList oddl, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddl.DataSource = DataLayerSoftware.ListaBDConServerInstancia(IncluirValorInicial); oddl.DataValueField = "Valor"; oddl.DataTextField = "Descripcion"; }
public void ListaBDPorServidorApp(ref DropDownList oddlBD, int Srv_Id, int App_Id, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlBD.DataSource = DataLayerSoftware.ListaBDPorServidorApp(Srv_Id, App_Id, IncluirValorInicial); oddlBD.DataValueField = "Valor"; oddlBD.DataTextField = "Descripcion"; }
public void ListaTiposApp(ref CheckBoxList oddlBD, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlBD.DataSource = DataLayerSoftware.ListaTiposAppChk(IncluirValorInicial); oddlBD.DataValueField = "Valor"; oddlBD.DataTextField = "Descripcion"; }
public void ListaEstadosApp(ref DropDownList oddlBD, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlBD.DataSource = DataLayerSoftware.ListaEstadosApp(IncluirValorInicial); oddlBD.DataValueField = "Valor"; oddlBD.DataTextField = "Descripcion"; }
public void ObtenerEquipos(ref System.Web.UI.WebControls.DropDownList oddlInst, int Srv_Id, bool Exclusion) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlInst.DataSource = DataLayerSoftware.ObtenerEquipos(Srv_Id, Exclusion); oddlInst.DataValueField = "Valor"; oddlInst.DataTextField = "Descripcion"; }
public void ObtenerInstanciaBD(ref DropDownList oddlInst, int Srv_Id) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlInst.DataSource = DataLayerSoftware.ObtenerInstanciaBD(Srv_Id); oddlInst.DataValueField = "Valor"; oddlInst.DataTextField = "Descripcion"; }
public void CargaServidoresAplicaciones(ref DropDownList oddlSO, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlSO.DataSource = DataLayerSoftware.getListaServidoresApp(IncluirValorInicial); oddlSO.DataValueField = "id"; oddlSO.DataTextField = "Nombre"; }
public void CargaSOAplicaciones(ref CheckBoxList oddlSO, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlSO.DataSource = DataLayerSoftware.getSistemasOperativosAppChk(IncluirValorInicial); oddlSO.DataValueField = "idSistema"; oddlSO.DataTextField = "descripcion"; }
public void CargaTiposServidor(ref CheckBoxList oddlSO, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlSO.DataSource = DataLayerSoftware.getTiposServidorAppChk(IncluirValorInicial); oddlSO.DataValueField = "Valor"; oddlSO.DataTextField = "Descripcion"; }
public void CargaUbicacionesSW(ref CheckBoxList oddlU, bool IncluirValorInicial = true) { DLSoftware DataLayerArticulo = new DLSoftware(); oddlU.DataSource = DataLayerArticulo.getUbicacionesAll(IncluirValorInicial); oddlU.DataValueField = "idUbicacion"; oddlU.DataTextField = "descripcion"; }
public void CargaCatalogoSoftwareCombo(ref DropDownList oddlSW, int SWE_Id, int SWG_Id, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlSW.DataSource = DataLayerSoftware.getCatalogoSoftwareCombo(SWE_Id, SWG_Id, IncluirValorInicial); oddlSW.DataValueField = "id"; oddlSW.DataTextField = "descripcion"; }
public void CargaGruposSoftware(ref CheckBoxList oddlGpo, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlGpo.DataSource = DataLayerSoftware.getGruposSoftwareChk(IncluirValorInicial); oddlGpo.DataValueField = "idGruposSoftware"; oddlGpo.DataTextField = "descripcion"; }
//Software public void CargaEmpresasSoftware(ref DropDownList oddlESW, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlESW.DataSource = DataLayerSoftware.getEmpresasSoftwareAll(IncluirValorInicial); oddlESW.DataValueField = "idEmpresasSoftware"; oddlESW.DataTextField = "descripcion"; }
public void ObtenerBDServidor(ref DropDownList oddlBD, int Srv_Id) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlBD.DataSource = DataLayerSoftware.ObtenerBDServidor(Srv_Id); oddlBD.DataValueField = "Valor"; oddlBD.DataTextField = "Descripcion"; }
public void ListaTiposRespaldo(ref DropDownList oddlF, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlF.DataSource = DataLayerSoftware.ListaTiposRespaldo(IncluirValorInicial); oddlF.DataValueField = "Valor"; oddlF.DataTextField = "Descripcion"; }
public string ActualizarApp(int App_Id, int AppSt_Id, int AppT_Id, string App_Nombre, string App_Descripcion, bool App_EnTFS, bool App_Productiva, string App_Observaciones, string App_Ubicacion) { DLSoftware odlSoftware = new DLSoftware(); return(odlSoftware.ActualizarApp(App_Id, AppSt_Id, AppT_Id, App_Nombre, App_Descripcion, App_EnTFS, App_Productiva, App_Observaciones, App_Ubicacion)); }
public DataSet ReporteInventarioSW(string SWE_Id, string SWG_Id, string SW_Descripcion, string SW_Version, string SWEx_NoParte, string SWEx_Llave, string SWEx_Ubicacion, string SWEx_Observaciones, string SWEx_EnExistencia, bool IncluirEstadisticas) { DLSoftware Reporte = new DLSoftware(); bool? EnExistencia = null; SWEx_EnExistencia = SWEx_EnExistencia.Trim(); if (SWE_Id.Trim() == "") { SWE_Id = null; } if (SWG_Id.Trim() == "") { SWG_Id = null; } if (SW_Descripcion.Trim() == "") { SW_Descripcion = null; } if (SW_Version.Trim() == "") { SW_Version = null; } if (SWEx_NoParte.Trim() == "") { SWEx_NoParte = null; } if (SWEx_Llave.Trim() == "") { SWEx_Llave = null; } if (SWEx_Ubicacion.Trim() == "") { SWEx_Ubicacion = null; } if (SWEx_Observaciones.Trim() == "") { SWEx_Observaciones = null; } if (SWEx_EnExistencia == "NO") { EnExistencia = false; } else if (SWEx_EnExistencia == "SI") { EnExistencia = true; } return(Reporte.InventarioSW(SWE_Id, SWG_Id, SW_Descripcion, SW_Version, SWEx_NoParte, SWEx_Llave, SWEx_Ubicacion, SWEx_Observaciones, EnExistencia, IncluirEstadisticas)); }
public string InsertaGrupoSoftware(string Descripcion) { GruposSoftware objSoftware = new GruposSoftware(); DLSoftware odlSoftware = new DLSoftware(); objSoftware.descripcion = Descripcion; return(odlSoftware.InsertaGrupoSoftware(ref objSoftware)); }
public string InsertaEmpresaSoftware(string Descripcion) { EmpresasSoftware objSoftware = new EmpresasSoftware(); DLSoftware odlSoftware = new DLSoftware(); objSoftware.descripcion = Descripcion; return(odlSoftware.InsertaEmpresaSoftware(ref objSoftware)); }
public void ListaTiposFiltroCartasSHF(ref System.Web.UI.WebControls.DropDownList oddlF, bool IncluirValorInicial = true) { DLSoftware DataLayerSoftware = new DLSoftware(); oddlF.DataSource = DataLayerSoftware.ListaTiposFiltroMaxI(IncluirValorInicial); oddlF.DataValueField = "Valor"; oddlF.DataTextField = "Descripcion"; oddlF.DataBind(); }
public string ReporteDiscosSrv(string Srv_Id, string RutaArchivos) { DLSoftware sw = new DLSoftware(); if (Srv_Id.Trim() == "") { Srv_Id = null; } return(sw.ReporteDiscosSrv(Srv_Id, RutaArchivos + "\\")); }
public string InsertaCatalogo(int Empresa, int Grupo, string Descripcion, string Version, bool Estatus = true) { CatalogoSoftware objSoftware = new CatalogoSoftware(); DLSoftware odlSoftware = new DLSoftware(); objSoftware.idEmpresa = Empresa; objSoftware.idGrupo = Grupo; objSoftware.Descripcion = Descripcion; objSoftware.Version = Version; objSoftware.Estatus = Estatus; return(odlSoftware.InsertaCatalogo(ref objSoftware)); }
public string InsertaInventario(int SW_Id, string Descripcion, string NoParte, string Llave, string Ubicacion, string Observaciones, bool EnExistencia = true) { SoftwareExistente objSoftware = new SoftwareExistente(); DLSoftware odlSoftware = new DLSoftware(); objSoftware.Id = 0; objSoftware.SW_Id = SW_Id; objSoftware.Descripcion = Descripcion; objSoftware.NoParte = NoParte; objSoftware.Llave = Llave; objSoftware.Ubicacion = Ubicacion; objSoftware.Observaciones = Observaciones; objSoftware.EnExistencia = EnExistencia; return(odlSoftware.InsertaInventario(ref objSoftware)); }
public string InsertarDiscoServidorApp(int Srv_Id, int SrvD_Capacidad, string SrvD_Unidad, int SrvTA_Id, int SrvUD_Id, int idItem, string SrvD_Observaciones) { DLSoftware odlSoftware = new DLSoftware(); string Res = ""; odlSoftware.BorrarDiscosServidorApp(Srv_Id, SrvD_Unidad); Res = odlSoftware.InsertarDiscoServidorApp(Srv_Id, SrvD_Capacidad, SrvD_Unidad, SrvTA_Id, SrvUD_Id, idItem, SrvD_Observaciones); if (Res != "") { Res += "Error al insertar unidad " + SrvD_Unidad + ": " + Res.Replace(Environment.NewLine, "\t") + Environment.NewLine; } return(Res); }
public void InformacionGeneralApp(int App_Id, ref System.Data.DataTable Info) { DLSoftware odlSoftware = new DLSoftware(); System.Data.DataSet ds = new System.Data.DataSet(); ds = odlSoftware.InformacionGeneralApp(App_Id); if (ds.Tables.Count > 0) { Info = ds.Tables[0]; } else { Info = new System.Data.DataTable(); } }
public void InformacionCompletaDiscos(int Srv_Id, ref System.Data.DataTable InfoDiscos) { DLSoftware odlSoftware = new DLSoftware(); System.Data.DataSet ds = new System.Data.DataSet(); ds = odlSoftware.InformacionCompletaDiscos(Srv_Id); if (ds.Tables.Count > 0) { InfoDiscos = ds.Tables[0]; } else { InfoDiscos = new System.Data.DataTable(); } }
public DataSet ReporteGeneralServidores(string idSO, string idEquipo, string Srv_Tipo, string Srv_EsVirtual, string Srv_Estado) { DLSoftware Reporte = new DLSoftware(); bool? Srv_EsVirtualb = null; bool? Srv_Estadob = null; Srv_EsVirtual = Srv_EsVirtual.Trim(); Srv_Estado = Srv_Estado.Trim(); if (idSO.Trim() == "") { idSO = null; } if (idEquipo.Trim() == "") { idEquipo = null; } if (Srv_Tipo.Trim() == "") { Srv_Tipo = null; } if (Srv_EsVirtual == "NO") { Srv_EsVirtualb = false; } else if (Srv_EsVirtual == "SI") { Srv_EsVirtualb = true; } if (Srv_Estado == "NO") { Srv_Estadob = false; } else if (Srv_Estado == "SI") { Srv_Estadob = true; } return(Reporte.ReporteGeneralServidores(idSO, idEquipo, Srv_Tipo, Srv_EsVirtualb, Srv_Estadob)); }
public void InformacionGeneralServidor(int Srv_Id, ref System.Data.DataTable InfoServidor, ref System.Data.DataTable InfoDiscos) { DLSoftware odlSoftware = new DLSoftware(); System.Data.DataSet ds = new System.Data.DataSet(); ds = odlSoftware.InformacionGeneralServidor(Srv_Id); if (ds.Tables.Count > 1) { InfoServidor = ds.Tables[0]; InfoDiscos = ds.Tables[1]; } else { InfoServidor = new System.Data.DataTable(); InfoDiscos = new System.Data.DataTable(); } }
public System.Data.DataTable InformacionRelAppBD(int App_Id) { System.Data.DataTable Info = new System.Data.DataTable(); DLSoftware odlSoftware = new DLSoftware(); System.Data.DataSet ds = new System.Data.DataSet(); ds = odlSoftware.InformacionRelAppBD(App_Id); if (ds.Tables.Count > 0) { Info = ds.Tables[0]; } else { Info = new System.Data.DataTable(); } return(Info); }