Exemplo n.º 1
0
        public void llenarbodega()
        {
            Historial_Envios x = new Historial_Envios();

            // 1
            dataGridView1.DataSource = (x.historialarea(1));
        }
Exemplo n.º 2
0
        public void agregar_historial(int inX)
        {
            Historial_Envios x = new Historial_Envios();

            // Console.WriteLine("SE CAMBIO A - - -  estado 2");
            x.historial(inX, stId_factura);
        }
Exemplo n.º 3
0
        public void buscarpendientesunicamente()
        {
            int xx = 0;

            foreach (DataGridViewRow Fila in dataGridView1.Rows)// recorrer fila por fila
            {
                string stsubquery = "";
                stsubquery = stsubquery + (Convert.ToString(Fila.Cells[0].Value));
                // Console.WriteLine("ENVIOS: "+stsubquery);
                if (stsubquery.Equals(stId_factura))
                {
                    Historial_Envios x = new Historial_Envios();
                    dataGridView1.DataSource = (x.busquedaporarea(1, stId_factura));

                    MessageBox.Show("Factura encontrada");

                    xx++;
                }
            }

            if (xx == 0)
            {
                MessageBox.Show("No se encontro la factura");
                button3.Hide();
                button1.Visible = false;
            }
            else
            {
                // Factura encontrada en el area de bodega pendiente
                button1.Visible = true;
            }
        }
Exemplo n.º 4
0
        public void llenarbodega()
        {
            dataGridView1.Columns.Clear();
            Historial_Envios x = new Historial_Envios();

            // 1
            //MessageBox.Show("Intentanto consultar historial de bodega");
            dataGridView1.DataSource = (x.historialarea(2));
        }
Exemplo n.º 5
0
        public void confirmar()
        {
            Historial_Envios x = new Historial_Envios();

            dataGridView1.DataSource       = (x.historialarea(1));
            this.tabControl1.SelectedIndex = 0;
            tabControl1.TabPages.Remove(tabPage2);
            button1.Visible = false;
            button3.Hide();
        }
 public void AnalizarDATA()
 {
     try
     {
         int inX = 0;
         foreach (DataGridViewRow dgRow in dataGridView2.Rows)
         {
             DataGridViewCheckBoxCell dgChk = (DataGridViewCheckBoxCell)dgRow.Cells[0];
             if (dgChk.Value == dgChk.FalseValue || dgChk.Value == null)
             {
                 dgRow.DefaultCellStyle.BackColor = System.Drawing.Color.Red;
                 Console.WriteLine("..1");
                 dgChk.Value = dgChk.TrueValue;
                 inX++;
             }
             else
             {
                 dgRow.DefaultCellStyle.BackColor = System.Drawing.Color.White;
                 Console.WriteLine("..2");
                 dgChk.Selected = true;
                 dgChk.Value    = dgChk.FalseValue;
             }
         }
         if (inX == 0)
         {
             Console.WriteLine("Todo limpio");
             //agregar reparando
             foreach (DataGridViewRow Fila in dataGridView3.Rows)// recorrer fila por fila
             {
                 Historial_Envios x = new Historial_Envios();
                 //// Console.WriteLine("SE CAMBIO A - - -  estado 2");
                 Console.Write("---------------->Factura: " + Convert.ToString(Fila.Cells[0].Value));
                 x.historial(3, Convert.ToString(Fila.Cells[0].Value));
             }
             salir();
         }
         else
         {
             MessageBox.Show("Producto faltante");
         }
     }
     catch (Exception fe)
     {
         creardetalle();
     }
 }
        public void actualizardatos()
        {
            Historial_Envios x = new Historial_Envios();

            cmb_vehiculos.DataSource = (x.busquedavehiculos("en ruta", "mantenimiento", "disponible"));
            //dataGridView1.DataSource = (x.busquedavehiculos("en ruta", "mantenimiento"));
            cmb_vehiculos.DisplayMember = "placa_vehiculo";
            cmb_vehiculos.ValueMember   = "cod_vehiculo";
            if (cmb_vehiculos.Text.Equals(""))
            {
                groupBox2.Visible = false;
            }

            string Query = "select * from tbm_establecimiento";

            cmb_ubicacion.DataSource    = (gCon.consulta_ComboBox(Query));
            cmb_ubicacion.DisplayMember = "tx_establecimiento";
            cmb_ubicacion.ValueMember   = "cod_establecimiento";
        }