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