コード例 #1
0
        public virtual ItemListaPreciosTransporte AddItem()
        {
            ItemListaPreciosTransporte Item = new ItemListaPreciosTransporte();

            Items.Add(Item);
            return(Item);
        }
コード例 #2
0
 private void ugDistritos_AfterSelectChange(object sender, AfterSelectChangeEventArgs e)
 {
     if (ugDistritos.ActiveRow == null) { return; }
     ItemListaPreciosTransporte = (ItemListaPreciosTransporte)ugDistritos.ActiveRow.Tag;
     MostrarEscalas(ItemListaPreciosTransporte);
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 private void ubNuevo_Click(object sender, EventArgs e)
 {
     UltraGridRow Row = ugDistritos.DisplayLayout.Bands[0].AddNew();
     Row.Tag = ListaPreciosTransporte.AddItem();
     ItemListaPreciosTransporte = (ItemListaPreciosTransporte)Row.Tag;
 }
コード例 #5
0
 public virtual ItemListaPreciosTransporte AddItem()
 {
     ItemListaPreciosTransporte Item = new ItemListaPreciosTransporte();
     Items.Add(Item);
     return Item;
 }