Esempio n. 1
0
        private void CargarDetalleCotizacionDeVenta()
        {
            VwCotizacioncliente vwCotizacionclienteSel = (VwCotizacioncliente)gvConsulta.GetFocusedRow();

            if (vwCotizacionclienteSel != null)
            {
                Cursor       = Cursors.WaitCursor;
                string where = string.Format("idcotizacioncliente = {0} and saldoaimportar >0", vwCotizacionclienteSel.Idcotizacioncliente);
                _vwCotizacionclientedetovimpList = Service.GetAllVwCotizacionclientedetovimp(where, "numeroitem");



                //Actualizar Stock
                foreach (var item in _vwCotizacionclientedetovimpList)
                {
                    item.Stock = Service.ObtenerStockAlmacen(item.Idarticulo, FechaInicialInventario, SessionApp.DateServer, SessionApp.SucursalSel.Idalmacendefecto);
                }

                gcDetalleImp.BeginUpdate();
                gcDetalleImp.DataSource = _vwCotizacionclientedetovimpList;
                gcDetalleImp.EndUpdate();

                gvDetalleImp.BestFitColumns();
                Cursor = Cursors.Default;
            }
        }
Esempio n. 2
0
        private void CargarInfoCotizacionCliente()
        {
            VwCotizacionclienteInicial         = Service.GetVwCotizacioncliente(x => x.Idcotizacioncliente == Idcotizacioncliente);
            rSeriecotizacionOrigen.EditValue   = VwCotizacionclienteInicial.Seriecotizacion;
            rNumerocotizacionOrigen.EditValue  = VwCotizacionclienteInicial.Numerocotizacion;
            iNumeronegociacionOrigen.EditValue = VwCotizacionclienteInicial.Numeronegociacion;
            iFechacotizacionOrigen.EditValue   = VwCotizacionclienteInicial.Fechacotizacion;
            iIdtipocpOrigen.EditValue          = VwCotizacionclienteInicial.Idtipocp;
            iIdcptooperacionOrigen.EditValue   = VwCotizacionclienteInicial.Idcptooperacion;
            rIdempresaOrigen.Text  = VwCotizacionclienteInicial.Nombreempresa;
            rIdsucursalOrigen.Text = VwCotizacionclienteInicial.Nombresucursal;
            iNombrecliente.Text    = VwCotizacionclienteInicial.Razonsocial;


            rSeriecotizacionDestino.EditValue   = VwCotizacionclienteInicial.Seriecotizacion;
            rNumerocotizacionDestino.EditValue  = VwCotizacionclienteInicial.Numerocotizacion;
            iNumeronegociacionDestino.EditValue = VwCotizacionclienteInicial.Numeronegociacion + 1;

            iIdEmpresaDestino.EditValue  = VwCotizacionclienteInicial.Idempresa;
            iIdSucursalDestino.EditValue = VwCotizacionclienteInicial.Idsucursal;

            iIdtipocpDestino.EditValue        = VwCotizacionclienteInicial.Idtipocp;
            iIdcptooperacionDestino.EditValue = VwCotizacionclienteInicial.Idcptooperacion;
        }