Example #1
0
        private void SelectfactoryName_button_Click_1(object sender, EventArgs e)
        {
            string factoryName = this.factoryName_textBox.Text.Trim();

            InsertFile_Form insertFile_Form = new InsertFile_Form();

            insertFile_Form.getFactoryName(factoryName);
            insertFile_Form.Show();
            this.Close();
        }
Example #2
0
        private void SelectOutDate_button_Click(object sender, EventArgs e)
        {
            string startDate  = this.startDate_dateTimePicker.Value.Date.ToString("yyyy-MM-dd");
            string finishDate = this.finishDate_dateTimePicker.Value.Date.ToString("yyyy-MM-dd");

            InsertFile_Form insertFile_Form = new InsertFile_Form();

            insertFile_Form.getFinishDate(startDate, finishDate);
            insertFile_Form.Show();
            this.Close();
        }
Example #3
0
        private void SelecttaxIncluded_button_Click(object sender, EventArgs e)
        {
            Check check = new Check();

            bool checktaxIncluded = check.IsNumber(taxIncluded_textBox.Text.Trim());

            if (checktaxIncluded == false)
            {
                MessageBox.Show("請勿空白或是輸入非數字", "提示訊息", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            int taxIncluded = int.Parse(this.taxIncluded_textBox.Text);

            InsertFile_Form insertFile_Form = new InsertFile_Form();

            insertFile_Form.getTaxIncluded(taxIncluded);
            insertFile_Form.Show();
            this.Close();
        }
Example #4
0
        private void Insert_button_Click(object sender, EventArgs e)
        {
            InsertFile_Form insertFile_Form = new InsertFile_Form();

            insertFile_Form.ShowDialog();
        }