Exemple #1
0
        private void EditAccessPointType(int AccessPointTypeId)
        {
            this.AccessPointType = this.srvAccessPointType.GetById(AccessPointTypeId);

            this.ClearDetailControls();
            this.LoadFormFromEntity();
            this.frmAccessPointType.HiddenDetail(false);
            this.ShowDetail(true);
        }
Exemple #2
0
 private void DeleteEntity(int AccessPointTypeId)
 {
     if (MessageBox.Show("¿Esta seguro de eliminar el Tipo de Punto de Acceso?", "Advertencia",
                         MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
     {
         return;
     }
     this.AccessPointType           = this.srvAccessPointType.GetById(AccessPointTypeId);
     this.AccessPointType.Activated = false;
     this.AccessPointType.Deleted   = true;
     this.srvAccessPointType.SaveOrUpdate(this.AccessPointType);
     this.Search();
 }
Exemple #3
0
        public override AccessPointType GetSearchResult()
        {
            AccessPointType AccessPointType = null;
            UltraGridRow    activeRow       = this.grdSchSearch.ActiveRow;

            if (activeRow != null)
            {
                int AccessPointTypeId = Convert.ToInt32(activeRow.Cells[0].Value);
                AccessPointType = this.srvAccessPointType.GetById(AccessPointTypeId);
            }

            return(AccessPointType);
        }
Exemple #4
0
 private void btnSchCreate_Click(object sender, EventArgs e)
 {
     this.AccessPointType = new AccessPointType();
     this.ClearDetailControls();
     this.ShowDetail(true);
 }