コード例 #1
0
 private void btn_picking_Click(object sender, EventArgs e)
 {
     if (login == false)
     {
         string res = MessageBox.Show("Desea Cambiar de PICKING ?", "Aviso", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2).ToString();
         if (res == "Yes")
         {
             frm_supervisor f1 = new frm_supervisor();
             this.Visible = false;
             f1.ShowDialog();
             if (f1.ok == true)
             {
                 frm_seleccionar_picking f = new frm_seleccionar_picking();
                 this.Close();
                 f.Show();
             }
             else
             {
                 this.Visible = true;
             }
         }
     }
     else
     {
         frm_seleccionar_picking f = new frm_seleccionar_picking();
         f.login = true;
         this.Close();
         f.Show();
     }
 }
コード例 #2
0
 private void btn_picking2_Click(object sender, EventArgs e)
 {
     if (login == true)
     {
         Global.Eliminar_Zonas_Usuario(Global.usuario);
         Global.picking    = 2;
         Global.orden_zona = 2;
         frm_menu f = new frm_menu();
         f.login = true;
         this.Close();
         f.Show();
         return;
     }
     else
     {
         if (Global.picking == 1)
         {
             frm_supervisor f1 = new frm_supervisor();
             this.Hide();
             f1.ShowDialog();
             if (f1.ok)
             {
                 if (Global.invcnbr != "")
                 {
                     Global.verificar_factura_salida_usuario(Global.invcnbr);
                 }
                 Global.Eliminar_Zonas_Usuario(Global.usuario);
                 Global.picking    = 2;
                 Global.orden_zona = 2;
                 frm_menu f = new frm_menu();
                 f.login = false;
                 this.Close();
                 f.Show();
             }
             else
             {
                 this.Show();
             }
         }
         else
         {
             Global.Eliminar_Zonas_Usuario(Global.usuario);
             Global.picking    = 2;
             Global.orden_zona = 2;
             frm_menu f = new frm_menu();
             f.login = false;
             this.Close();
             f.Show();
         }
     }
 }
コード例 #3
0
 private void btn_picking1_Click(object sender, EventArgs e)
 {
     if (login == true)
     {
         Global.picking = 1;
         Global.cajap2  = "";
         this.Close();
         frm_seleccionar_areas_piciking f = new frm_seleccionar_areas_piciking();
         f.Show();
     }
     else if (Global.picking == 2)
     {
         if (Global.invcnbr != "")
         {
             MessageBox.Show("Tiene una factura pendiente en PICKING2 " + Global.invcnbr);
             return;
         }
         else
         {
             frm_supervisor f1 = new frm_supervisor();
             this.Hide();
             f1.ShowDialog();
             if (f1.ok)
             {
                 Global.picking = 1;
                 Global.cajap2  = "";
                 frm_menu f = new frm_menu();
                 f.login = false;
                 this.Close();
                 f.Show();
             }
             else
             {
                 this.Show();
             }
         }
     }
 }