Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (hacchukakunin == 1)
     {
         発注管理_.txt_chuumoncode2 f2 = new 発注管理_.txt_chuumoncode2(dataGridView1);
         f2.ShowDialog();
     }
     else
     {
     }
 }
Ejemplo n.º 2
0
        private void button_hacchu_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("入力した情報発注しますか?", "質問", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);

            if (result == DialogResult.OK)
            {
                button_shouhintsuika.Enabled = false;
                button_cancel.Enabled        = false;
                ExitBtn.Enabled       = false;
                button_hacchu.Enabled = false;
                this.ControlBox       = false;


                for (int i = 0; i < dataGridView1.RowCount - 1; i++)
                {
                    if (Convert.ToInt32(dataGridView1.Rows[i].Cells[13].Value) < 50)
                    {
                        dataGridView1.Rows[i].Cells[12].Value      = "待機";
                        dataGridView1.Rows[i].Cells["new在庫"].Value = 50;
                    }
                }

                //textBox_hacchujoutai.Text = "待っている";

                発注管理_.txt_chuumoncode2 f1 = new 発注管理_.txt_chuumoncode2(dataGridView1);
                f1.ShowDialog();
                // Form4 f = new Form4(); go to hacchuuuuuuuuu
                //f.Show();
            }



            else if (result == DialogResult.Cancel)
            {
                MessageBox.Show("発注キャンセルされました。");
            }
        }