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