private void EditNetworkCablingType(int NetworkCablingTypeId) { this.NetworkCablingType = this.srvNetworkCablingType.GetById(NetworkCablingTypeId); this.ClearDetailControls(); this.LoadFormFromEntity(); this.frmNetworkCablingType.HiddenDetail(false); this.ShowDetail(true); }
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); }
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(); }
private void btnSchCreate_Click(object sender, EventArgs e) { this.NetworkCablingType = new NetworkCablingType(); this.ClearDetailControls(); this.ShowDetail(true); }