public virtual ItemListaPreciosTransporte AddItem() { ItemListaPreciosTransporte Item = new ItemListaPreciosTransporte(); Items.Add(Item); return(Item); }
private void ugDistritos_AfterSelectChange(object sender, AfterSelectChangeEventArgs e) { if (ugDistritos.ActiveRow == null) { return; } ItemListaPreciosTransporte = (ItemListaPreciosTransporte)ugDistritos.ActiveRow.Tag; MostrarEscalas(ItemListaPreciosTransporte); }
public void MostrarEscalas(ItemListaPreciosTransporte ItemListaPreciosTransporte) { base.ClearAllRows(ref ugEscalas); foreach (EscalaListaPreciosTransporte Item in ItemListaPreciosTransporte.Escalas) { UltraGridRow Row = ugEscalas.DisplayLayout.Bands[0].AddNew(); Row.Tag = Item; MostrarEscala(Row); } }
private void ubNuevo_Click(object sender, EventArgs e) { UltraGridRow Row = ugDistritos.DisplayLayout.Bands[0].AddNew(); Row.Tag = ListaPreciosTransporte.AddItem(); ItemListaPreciosTransporte = (ItemListaPreciosTransporte)Row.Tag; }
public virtual ItemListaPreciosTransporte AddItem() { ItemListaPreciosTransporte Item = new ItemListaPreciosTransporte(); Items.Add(Item); return Item; }