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