private void EditCommutatorBrand(int CommutatorBrandId) { this.CommutatorBrand = this.srvCommutatorBrand.GetById(CommutatorBrandId); this.ClearDetailControls(); this.LoadFormFromEntity(); this.frmCommutatorBrand.HiddenDetail(false); this.ShowDetail(true); }
private void DeleteEntity(int CommutatorBrandId) { if (MessageBox.Show("¿Esta seguro de eliminar la Marca de Conmutador?", "Advertencia", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK) { return; } this.CommutatorBrand = this.srvCommutatorBrand.GetById(CommutatorBrandId); this.CommutatorBrand.Activated = false; this.CommutatorBrand.Deleted = true; this.srvCommutatorBrand.SaveOrUpdate(this.CommutatorBrand); this.Search(); }
public override CommutatorBrand GetSearchResult() { CommutatorBrand CommutatorBrand = null; UltraGridRow activeRow = this.grdSchSearch.ActiveRow; if (activeRow != null) { int CommutatorBrandId = Convert.ToInt32(activeRow.Cells[0].Value); CommutatorBrand = this.srvCommutatorBrand.GetById(CommutatorBrandId); } return(CommutatorBrand); }
private void btnSchCreate_Click(object sender, EventArgs e) { this.CommutatorBrand = new CommutatorBrand(); this.ClearDetailControls(); this.ShowDetail(true); }