private void EditWarrantyType(int WarrantyTypeId) { this.WarrantyType = this.srvWarrantyType.GetById(WarrantyTypeId); this.ClearDetailControls(); this.LoadFormFromEntity(); this.frmWarrantyType.HiddenDetail(false); this.ShowDetail(true); }
internal override WarrantyType GetSerchResult() { WarrantyType WarrantyType = null; UltraGridRow activeRow = this.grdSchSearch.ActiveRow; if (activeRow != null) { int WarrantyTypeId = Convert.ToInt32(activeRow.Cells[0].Value); WarrantyType = this.srvWarrantyType.GetById(WarrantyTypeId); } return(WarrantyType); }
private void DeleteEntity(int WarrantyTypeId) { if (MessageBox.Show("¿Esta seguro de eliminar el tipo de Fianza?", "Advertencia", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK) { return; } this.WarrantyType = this.srvWarrantyType.GetById(WarrantyTypeId); this.WarrantyType.Activated = false; this.WarrantyType.Deleted = true; this.srvWarrantyType.SaveOrUpdate(this.WarrantyType); this.Search(); }
private void btnSchCreate_Click(object sender, EventArgs e) { this.WarrantyType = new WarrantyType(); this.ClearDetailControls(); this.ShowDetail(true); }