Example #1
0
        private void EditNetworkCablingType(int NetworkCablingTypeId)
        {
            this.NetworkCablingType = this.srvNetworkCablingType.GetById(NetworkCablingTypeId);

            this.ClearDetailControls();
            this.LoadFormFromEntity();
            this.frmNetworkCablingType.HiddenDetail(false);
            this.ShowDetail(true);
        }
Example #2
0
        public override NetworkCablingType GetSearchResult()
        {
            NetworkCablingType NetworkCablingType = null;
            UltraGridRow       activeRow          = this.grdSchSearch.ActiveRow;

            if (activeRow != null)
            {
                int NetworkCablingTypeId = Convert.ToInt32(activeRow.Cells[0].Value);
                NetworkCablingType = this.srvNetworkCablingType.GetById(NetworkCablingTypeId);
            }

            return(NetworkCablingType);
        }
Example #3
0
 private void DeleteEntity(int NetworkCablingTypeId)
 {
     if (MessageBox.Show("¿Esta seguro de eliminar el Tipo de Cableado?", "Advertencia",
                         MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
     {
         return;
     }
     this.NetworkCablingType           = this.srvNetworkCablingType.GetById(NetworkCablingTypeId);
     this.NetworkCablingType.Activated = false;
     this.NetworkCablingType.Deleted   = true;
     this.srvNetworkCablingType.SaveOrUpdate(this.NetworkCablingType);
     this.Search();
 }
Example #4
0
 private void btnSchCreate_Click(object sender, EventArgs e)
 {
     this.NetworkCablingType = new NetworkCablingType();
     this.ClearDetailControls();
     this.ShowDetail(true);
 }