Esempio n. 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);
        }
Esempio n. 2
0
        public Juchu()
        {
            InitializeComponent();
            IsedaDBClass db = new IsedaDBClass();

            JuchuCode = db.Juchu_Select();
            if (JuchuCode == "0" || JuchuCode == null)
            {
                JuchuCode = "1";
            }
            comboBox4.DataSource    = db.Select_Custemer().Tables["Custemer"];
            comboBox4.ValueMember   = "顧客コード";
            comboBox4.DisplayMember = "顧客名";
        }
Esempio n. 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            IsedaDBClass db = new IsedaDBClass();

            if (Custemerflg)
            {
                db.Juchu_Insert2(comboBox4.SelectedValue.ToString());
                Custemerflg = false;
            }
            Form form = new Sugukuru.JuchuMulti(JuchuCode, comboBox4.ValueMember);

            form.ShowDialog();
            form.Dispose();//閉じられたらリソース開放
            this.Close();
        }
Esempio n. 4
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);
        }