Exemplo n.º 1
0
        private void CargarListas()
        {
            _listaCotizacion             = srvCotizacion.GetLast(Globals.logEmpresa.id);
            dgvListCotizacion.DataSource = _listaCotizacion;

            string fecha = DateTime.Now.ToString("yy/M/d HH:mm:ss");

            _listaDashboardCaja    = srvDashboard.GetResumenCaja(Globals.logEmpresa.id, PrimerDiaMes(DateTime.Now), fecha);
            dgvListCaja.DataSource = _listaDashboardCaja;

            _listaDashboardGeneral = srvDashboard.GetResumenGeneral(Globals.logEmpresa.id, PrimerDiaMes(DateTime.Now), fecha);
        }
Exemplo n.º 2
0
        private void LoadCotizacion()
        {
            string miMoneda = Globals.logEmpresa.moneda_defecto;

            if (Globals.logEmpresa.es_modo_fiscal)
            {
                miMoneda = "11E93A6F6D57549E838500E04C6F7E24";
            }

            Globals.cotizacion = srvCotizacion.GetLast(Globals.logEmpresa.id);
            Globals.ConfigurarComboMonedas(cmbCotizacion);
            foreach (CnfCotizacionDetalle item in Globals.cotizacion)
            {
                if (item.id_moneda == miMoneda)
                {
                    id_cotizacion           = item.id;
                    factor                  = item.valor;
                    Globals.valorCotizacion = factor;
                }
            }
        }
Exemplo n.º 3
0
        //CONSTRUCTOR
        public frmPuntoVenta()
        {
            InitializeComponent();
            Globals.appParentWindow = this;

            //APP PATH
            string appPath = Application.StartupPath;

            Console.WriteLine("appPath: " + appPath);

            //READ CONFIG


            //Console.WriteLine("puerto COM: " + puertoCOM);

            Globals.cotizacion = srvCotizacion.GetLast(Globals.logEmpresa.id);
            _listaOperaciones  = srvOperacion.GetList("11E7C39A0EACD9A08F1A00E04C6F7E24");
            foreach (CnfCotizacionDetalle item in Globals.cotizacion)
            {
                if (item.id_moneda == Globals.logEmpresa.moneda_defecto)
                {
                    Globals.valorCotizacion = item.valor;
                    _oneCotizacion          = item;
                }
            }

            factor = Globals.valorCotizacion;

            CheckImpresoraFiscal();

            InicializarOperacion();

            this.KeyPreview = true;
            this.KeyDown   +=
                new KeyEventHandler(frmPuntoVenta_KeyDown);
        }