Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("内容を登録し、完了してもよろしいですか?",
                                                  "確認",
                                                  MessageBoxButtons.OKCancel,
                                                  MessageBoxIcon.Exclamation,
                                                  MessageBoxDefaultButton.Button2);

            if (result == DialogResult.OK)
            {
                this.Close();
            }
            else if (result == DialogResult.Cancel)
            {
            }

            if (textBox1.Text == "")
            {
                Count = 0;
            }
            else
            {
                Count = Convert.ToInt16(textBox1.Text);
            }
            IsedaDBClass db = new IsedaDBClass();

            if (Custemerflg)
            {
                db.Juchu_Insert2(comboBox4.SelectedValue.ToString());
                Custemerflg = false;
            }

            db.Juchu_Insert(JuchuCode, comboBox4.ValueMember, textBox8.Text, comboBox1.Text, textBox6.Text, textBox3.Text, JuchuShift, textBox4.Text, textBox2.Text, textBox5.Text, textBox6.Text, textBox9.Text, Count);
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                Count = 0;
            }
            else
            {
                Count = Convert.ToInt16(textBox1.Text);
            }
            IsedaDBClass db = new IsedaDBClass();

            db.Juchu_Insert(Code, Custemer, textBox8.Text, comboBox1.Text, textBox4.Text, textBox3.Text, JuchuShift, textBox6.Text, textBox2.Text, textBox5.Text, textBox6.Text, textBox9.Text, Count);
            DialogResult result = MessageBox.Show("登録しました。",
                                                  "確認",
                                                  MessageBoxButtons.OK,
                                                  MessageBoxIcon.Exclamation,
                                                  MessageBoxDefaultButton.Button2);
        }