Exemplo n.º 1
0
        protected virtual void SelectStoreAction()
        {
            AlmacenSelectForm form = new AlmacenSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                SetStore((StoreInfo)form.Selected);
            }
        }
        protected virtual void SelectAlmacenAction()
        {
            AlmacenSelectForm form = new AlmacenSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                SetAlmacen((StoreInfo)form.Selected);
                //_entity.SetAlmacen(_almacen);
                RefreshLineas();
            }
        }
        protected override void SelectAlmacenLineaAction()
        {
            if (Datos_Lineas.Current == null)
            {
                return;
            }

            LineaPedidoProveedor item = Datos_Lineas.Current as LineaPedidoProveedor;

            AlmacenSelectForm form = new AlmacenSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                StoreInfo source = (StoreInfo)form.Selected;

                item.OidAlmacen = source.Oid;
                item.Almacen    = source.Nombre;

                RefreshLineas();
            }
        }
Exemplo n.º 4
0
        protected override void SelectLineStoreAction()
        {
            if (Lines_BS.Current == null)
            {
                return;
            }

            InputDeliveryLine item = Lines_BS.Current as InputDeliveryLine;

            AlmacenSelectForm form = new AlmacenSelectForm(this);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                StoreInfo source = (StoreInfo)form.Selected;

                item.OidAlmacen = source.Oid;
                item.Almacen    = source.Nombre;

                AddCacheItem(source);
            }
        }