protected override void EditLineaAction()
        {
            if (Lineas_DGW.CurrentRow.DataBoundItem == null)
            {
                return;
            }

            LineaPedidoProveedor item = (LineaPedidoProveedor)Lineas_DGW.CurrentRow.DataBoundItem;

            if (item == null)
            {
                return;
            }

            ProductInfo producto = SelectProducto();

            if (producto == null)
            {
                return;
            }

            item.CopyFrom(_entity, _acreedor, producto);
            _entity.CalculaTotal();

            RefreshLineas();
        }
示例#2
0
        public LineaPedidoProveedor NewItem(PedidoProveedor parent, IAcreedorInfo acreedor, ProductInfo producto)
        {
            LineaPedidoProveedor item = LineaPedidoProveedor.NewChild(parent, acreedor, producto);

            this.AddItem(item);

            parent.CalculaTotal();

            return(item);
        }
示例#3
0
 public void RemoveItem(PedidoProveedor parent, LineaPedidoProveedor item)
 {
     base.Remove(item);
     parent.CalculaTotal();
 }