Example #1
0
        private void frmAgregaPlatilloV2_Load(object sender, EventArgs e)
        {
            string[] numPedidos = dPedidos.arregloNumPedidos();
            for (int i = 0; i < numPedidos.Length; i++)
            {
                cmbNumPe.Items.Add(numPedidos[i]);
            }
            string[] descripcion = listPlatillos.arregloDescripcion();
            for (int i = 0; i < descripcion.Length; i++)
            {
                cmbDescripcion.Items.Add(descripcion[i]);
            }

            if (op != 1)
            {
                cmbNumPe.Enabled = false;
                cmbNumPe.Text    = numPe.ToString();
                string nombreC = admMesa.RegresaNombreCliente(numMesa);
                lblNombre.Text = nombreC;

                string[] Aclave   = lPLaPedidos.RegresaPlatilloClaves(numPe);
                string[] Adesc    = lPLaPedidos.RegresaPlatilloDescripcion(numPe);
                string[] Aimporte = lPLaPedidos.RegresaPlatilloImporte(numPe);
                string[] Atiempo  = lPLaPedidos.RegresaPlatilloTiempo(numPe);
                for (int i = 0; i < Aclave.Length; i++)
                {
                    dtgvPlatillo.Rows.Add(Aclave[i], Adesc[i], Aimporte[i], Atiempo[i]);
                }
            }
        }
 private void frmPagarCuenta_Load(object sender, EventArgs e)
 {
     string[] numPedidos = dPedidos.arregloNumPedidos();
     for (int i = 0; i < numPedidos.Length; i++)
     {
         cmbNumPe.Items.Add(numPedidos[i]);
     }
 }
Example #3
0
 private void frmReportePedidos_Load(object sender, EventArgs e)
 {
     string[] numPe      = dPedidos.arregloNumPedidos();
     string[] numMesa    = dPedidos.arregloNumMesa();
     string[] numBebidas = dPedidos.arregloNumBebidas();
     string[] numPla     = dPedidos.arregloNumPlatillos();
     for (int i = 0; i < numPe.Length; i++)
     {
         dgvPedidos.Rows.Add(numPe[i], numMesa[i], numBebidas[i], numPla[i]);
     }
 }