Exemplo n.º 1
0
        public Vendedor()
        {
            Count = ListaVendedores.Count;

            GestionArchivo gs = new GestionArchivo(pathID);

            gs.CreateFile();
            string ID = gs.GetDateOne();

            if (ID != null)
            {
                IdVendedor = Convert.ToInt32(ID);
                gs.Delete(IdVendedor.ToString());
            }
            else
            {
                IdVendedor = ListaVendedores.Count + 1;
            }
        }
Exemplo n.º 2
0
        private FormImprimir ImprimirData(Panel panel)
        {
            FormImprimir imprimir = new FormImprimir();

            imprimir.TopLevel = false;

            GestionArchivo gs = new GestionArchivo();

            gs.Path = Venta.path;
            gs.CreateFile();

            panel.Controls.Add(imprimir);

            imprimir.TitleWindow = "Lista de Items";
            imprimir.DataInput   = gs.GetDataString();
            imprimir.Titles      = Venta.Titles;

            return(imprimir);
        }
Exemplo n.º 3
0
        public Producto()
        {
            Count = ListaProductos.Count;

            GestionArchivo gs = new GestionArchivo(pathID);

            gs.CreateFile();
            string ID = gs.GetDateOne();

            if (ID != null)
            {
                IdProducto = Convert.ToInt32(ID);
                gs.Delete(IdProducto.ToString());
            }
            else
            {
                IdProducto = ListaProductos.Count + 1;
            }
        }
Exemplo n.º 4
0
        public Inventario()//Cambio
        {
            Count = ListaInventario.Count;

            GestionArchivo gs = new GestionArchivo(pathID);

            gs.CreateFile();
            string ID = gs.GetDateOne();

            if (ID != null)
            {
                IdInventario = Convert.ToInt32(ID);
                gs.Delete(IdInventario.ToString());
            }
            else
            {
                IdInventario = ListaInventario.Count + 1;
            }
        }
Exemplo n.º 5
0
        public Cliente()
        {
            Count = ListaClientes.Count;

            GestionArchivo gs = new GestionArchivo(pathID);

            gs.CreateFile();
            string ID = gs.GetDateOne();

            if (ID != null)
            {
                IdCliente = Convert.ToInt32(ID);
                gs.Delete(IdCliente.ToString());
            }
            else
            {
                IdCliente = ListaClientes.Count + 1;
            }
        }
Exemplo n.º 6
0
        public Factura()//Here
        {
            Count = ListaFactura.Count;

            GestionArchivo gs = new GestionArchivo(pathID);

            gs.CreateFile();
            string ID = gs.GetDateOne();

            if (ID != null)
            {
                IdFactura = Convert.ToInt32(ID);
                gs.Delete(IdFactura.ToString());
            }
            else
            {
                IdFactura = ListaFactura.Count + 1;
            }
        }