private void EditSecuritySoftwareBrand(int SecuritySoftwareBrandId)
        {
            this.SecuritySoftwareBrand = this.srvSecuritySoftwareBrand.GetById(SecuritySoftwareBrandId);

            this.ClearDetailControls();
            this.LoadFormFromEntity();
            this.frmSecuritySoftwareBrand.HiddenDetail(false);
            this.ShowDetail(true);
        }
예제 #2
0
        public override SecuritySoftwareBrand GetSearchResult()
        {
            SecuritySoftwareBrand SecuritySoftwareBrand = null;
            UltraGridRow          activeRow             = this.grdSchSearch.ActiveRow;

            if (activeRow != null)
            {
                int SecuritySoftwareBrandId = Convert.ToInt32(activeRow.Cells[0].Value);
                SecuritySoftwareBrand = this.srvSecuritySoftwareBrand.GetById(SecuritySoftwareBrandId);
            }

            return(SecuritySoftwareBrand);
        }
 private void DeleteEntity(int SecuritySoftwareBrandId)
 {
     if (MessageBox.Show("¿Esta seguro de eliminar la Marca de Software de Respaldo?", "Advertencia",
                         MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
     {
         return;
     }
     this.SecuritySoftwareBrand           = this.srvSecuritySoftwareBrand.GetById(SecuritySoftwareBrandId);
     this.SecuritySoftwareBrand.Activated = false;
     this.SecuritySoftwareBrand.Deleted   = true;
     this.srvSecuritySoftwareBrand.SaveOrUpdate(this.SecuritySoftwareBrand);
     this.Search();
 }
 private void btnSchCreate_Click(object sender, EventArgs e)
 {
     this.SecuritySoftwareBrand = new SecuritySoftwareBrand();
     this.ClearDetailControls();
     this.ShowDetail(true);
 }