Esempio n. 1
0
        private void button10_Click(object sender, EventArgs e)   //지출 저장
        {
            DBHandling currentDB = new DBHandling(filepath);

            if (Sum2.Text == String.Empty)
            {
                MessageBox.Show("금액을 입력해야합니다.", "오류");
            }
            else
            {
                if (comboBox4.Text != "" && comboBox5.Text != "" && comboBox6.Text != "")
                {
                    currentDB.exp(expen_rowcount, today_date, Int64.Parse(Sum2.Text.Replace(",", "")), Note2.Text, egcode, ehcode, emcode);
                    Sum2.Text  = "";
                    Note2.Text = "";
                    load_data();
                }
                else
                {
                    MessageBox.Show("관, 항, 목을 선택해야합니다.", "오류");
                }
            }
        }