private void btnFecha_Click(object sender, EventArgs e)
        {
            Pedidos.frmCalendario calendario = new Pedidos.frmCalendario(btnFecha.Text);
            calendario.ShowDialog();

            if (calendario.DialogResult == DialogResult.OK)
            {
                btnFecha.Text = calendario.txtFecha.Text;
                sFechaActual  = btnFecha.Text.Substring(6, 4) + "/" + btnFecha.Text.Substring(3, 2) + "/" + btnFecha.Text.Substring(0, 2);
                pnlOrdenes.Controls.Clear();
                iOp = 1;

                espere.AccionEjecutar = mostrarBotones;
                espere.ShowDialog();

                btnTotalOrdenes.Text = "Total de Órdenes" + Environment.NewLine + iCuenta.ToString();

                //using (VentanasMensajes.frmMensajeEspere espere = new VentanasMensajes.frmMensajeEspere())
                //{
                //    espere.AccionEjecutar = mostrarBotones;

                //    if (espere.ShowDialog() != DialogResult.OK)
                //    {
                //        MessageBox.Show("ERROR");
                //    }
                //}

                //btnTotalOrdenes.Text = "Total de Órdenes" + Environment.NewLine + iCuenta.ToString();
                //pnlOrdenes = pnlCrear;
            }
        }
        private void btnHasta_Click(object sender, EventArgs e)
        {
            Pedidos.frmCalendario calendario = new Pedidos.frmCalendario(TxtHasta.Text.Trim());
            calendario.ShowDialog();

            if (calendario.DialogResult == DialogResult.OK)
            {
                TxtHasta.Text = calendario.txtFecha.Text;
                sFechaHasta   = TxtHasta.Text.Substring(6, 4) + "/" + TxtHasta.Text.Substring(3, 2) + "/" + TxtHasta.Text.Substring(0, 2);
            }
        }
        private void btnDesde_Click(object sender, EventArgs e)
        {
            Pedidos.frmCalendario calendario = new Pedidos.frmCalendario(txtDesde.Text.Trim());
            calendario.ShowDialog();

            if (calendario.DialogResult == DialogResult.OK)
            {
                txtDesde.Text = calendario.txtFecha.Text;
                sFechaDesde   = txtDesde.Text.Substring(6, 4) + "/" + txtDesde.Text.Substring(3, 2) + "/" + txtDesde.Text.Substring(0, 2);
            }
        }
Exemple #4
0
        private void btnFecha_Click(object sender, EventArgs e)
        {
            Pedidos.frmCalendario calendario = new Pedidos.frmCalendario(btnFecha.Text);
            calendario.ShowInTaskbar = false;
            calendario.ShowDialog();

            if (calendario.DialogResult == DialogResult.OK)
            {
                btnFecha.Text = calendario.txtFecha.Text;
            }
        }
Exemple #5
0
        private void btnCalendario_Click(object sender, EventArgs e)
        {
            Pedidos.frmCalendario calendario = new Pedidos.frmCalendario(txtFecha.Text.Trim());
            calendario.ShowDialog();

            if (calendario.DialogResult == DialogResult.OK)
            {
                txtFecha.Text = calendario.txtFecha.Text.Trim();
                sFecha        = txtFecha.Text.Trim();
                cargarDashboard(sFecha);
            }
        }
Exemple #6
0
        private void btnCalendario_Click(object sender, EventArgs e)
        {
            Pedidos.frmCalendario calendario = new Pedidos.frmCalendario(txtFecha.Text.Trim());
            calendario.ShowDialog();

            if (calendario.DialogResult == DialogResult.OK)
            {
                //sFecha = Convert.ToDateTime(txtFecha.Text.Trim()).ToString("yyyy/MM/dd");
                sFecha        = calendario.txtFecha.Text.Trim();
                txtFecha.Text = sFecha;
                cargarDashboard(Convert.ToDateTime(sFecha).ToString("yyyy/MM/dd"));
            }
        }
        private void btnCalendario_Click(object sender, EventArgs e)
        {
            sFecha = Program.sFechaSistema.ToString("dd/MM/yyyy");
            Pedidos.frmCalendario calendario = new Pedidos.frmCalendario(sFecha);
            calendario.ShowInTaskbar = false;
            calendario.ShowDialog();

            if (calendario.DialogResult == DialogResult.OK)
            {
                sFecha        = calendario.txtFecha.Text.Trim();
                sFecha        = Convert.ToDateTime(sFecha).ToString("yyyy/MM/dd");
                LblFecha.Text = Convert.ToDateTime(sFecha).ToString("yyyy-MM-dd");
                llenarGrid(1);
            }
        }
        private void btnHasta_Click(object sender, EventArgs e)
        {
            Pedidos.frmCalendario calendario = new Pedidos.frmCalendario(txtFechaFinal.Text.Trim());
            calendario.ShowDialog();

            if (calendario.DialogResult == DialogResult.OK)
            {
                txtFechaFinal.Text = calendario.txtFecha.Text;

                if (Convert.ToDateTime(txtFechaInicial.Text) > Convert.ToDateTime(txtFechaFinal.Text))
                {
                    ok.LblMensaje.Text = "La fecha inicial no puede ser superior a la ficha final del rango.";
                    ok.ShowDialog();
                    txtFechaInicial.Text = DateTime.Now.ToString("dd/MM/yyyy");
                    txtFechaFinal.Text   = DateTime.Now.ToString("dd/MM/yyyy");
                }
            }
        }
Exemple #9
0
        private void btnFecha_Click(object sender, EventArgs e)
        {
            Pedidos.frmCalendario calendario = new Pedidos.frmCalendario(btnFecha.Text);
            calendario.ShowDialog();

            if (calendario.DialogResult == DialogResult.OK)
            {
                btnFecha.Text = calendario.txtFecha.Text;
                sFechaActual  = btnFecha.Text.Substring(6, 4) + "/" + btnFecha.Text.Substring(3, 2) + "/" + btnFecha.Text.Substring(0, 2);
                pnlOrdenes.Controls.Clear();
                iOp = 1;

                //espere.AccionEjecutar = mostrarBotones;
                espere.AccionEjecutar = cargarComandas;
                espere.ShowDialog();

                btnTotalOrdenes.Text = "Total de Órdenes" + Environment.NewLine + dtComandas.Rows.Count.ToString();
            }
        }