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