private void EditSecuritySoftwareType(int SecuritySoftwareTypeId)
        {
            this.SecuritySoftwareType = this.srvSecuritySoftwareType.GetById(SecuritySoftwareTypeId);

            this.ClearDetailControls();
            this.LoadFormFromEntity();
            this.frmSecuritySoftwareType.HiddenDetail(false);
            this.ShowDetail(true);
        }
Exemplo n.º 2
0
        public override SecuritySoftwareType GetSearchResult()
        {
            SecuritySoftwareType SecuritySoftwareType = null;
            UltraGridRow         activeRow            = this.grdSchSearch.ActiveRow;

            if (activeRow != null)
            {
                int SecuritySoftwareTypeId = Convert.ToInt32(activeRow.Cells[0].Value);
                SecuritySoftwareType = this.srvSecuritySoftwareType.GetById(SecuritySoftwareTypeId);
            }

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