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