public void Insert(string Nombre, int IdZona, string NombreNacion, string Complejidad, int IdEfectorSuperior, string Domicilio, string Telefono, string Reponsable, string CodigoRemediar, string Cuie, int?IdTipoEfector, string CodigoSisa) { SysEfector item = new SysEfector(); item.Nombre = Nombre; item.IdZona = IdZona; item.NombreNacion = NombreNacion; item.Complejidad = Complejidad; item.IdEfectorSuperior = IdEfectorSuperior; item.Domicilio = Domicilio; item.Telefono = Telefono; item.Reponsable = Reponsable; item.CodigoRemediar = CodigoRemediar; item.Cuie = Cuie; item.IdTipoEfector = IdTipoEfector; item.CodigoSisa = CodigoSisa; item.Save(UserName); }
public void setEfector(int idE) { SysEfector oEfec = new SysEfector(idE); if (!oEfec.IsNew) { idEfector.Value = oEfec.IdEfector.ToString(); lblNombre.Text = oEfec.Nombre; if (idE < 0 && Requerido) { ActivarRequerido(true); } } else { lblNombre.Text = "El Efector seteado es incorrecto"; } }
protected void Page_Load(object sender, EventArgs e) { SSOHelper.Authenticate(); if (SSOHelper.CurrentIdentity == null) { SSOHelper.RedirectToSSOPage("Login.aspx", Request.Url.ToString()); } SysEfector efector = null; efector = new SysEfector(SSOHelper.CurrentIdentity.IdEfector); //lblUsr.Text = string.Format("{0}, {1}", SSOHelper.CurrentIdentity.Surname, SSOHelper.CurrentIdentity.FirstName); lblUsr.Text = string.Format(" {0}", SSOHelper.CurrentIdentity.Surname + " " + SSOHelper.CurrentIdentity.FirstName); lblEfector.Text = string.Format("{0}", efector.Nombre); //lblEfector.Text = string.Format("{0}", SSOHelper.GetNombreEfectorRol(SSOHelper.CurrentIdentity.IdEfectorRol)); Session["SessionEfector"] = lblEfector.Text; ImgHomeSip.PostBackUrl = "/Sips/Default.aspx"; ImgHomeSystem.PostBackUrl = "Default.aspx"; ImgChangePass.PostBackUrl = "/SSO/Options.aspx"; string url = HttpContext.Current.Request.QueryString["url"]; if (string.IsNullOrEmpty(url)) { url = SSOHelper.Configuration["StartPage"] as string; } ImgExit.PostBackUrl = "/SSO/Logout.aspx?relogin=1&url=" + url + "/sips"; ////Armo el menú de la Aplicación seleccionada para el efector seleccionado /* List<SSOMenuItem> menu = SSOHelper.GetApplicationMenuByEfector(); * lvMenuSSO.DataSource = menu[0].items; * lvMenuSSO.DataBind(); */ }
public bool Destroy(object IdEfector) { return(SysEfector.Destroy(IdEfector) == 1); }
public bool Delete(object IdEfector) { return(SysEfector.Delete(IdEfector) == 1); }