Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                if (comboBox1.Text == string.Empty)
                {
                    MessageBox.Show("请选择中断原因!");
                    return;
                }

                ClsBLL.AddServicePause(RecordID, Worker, comboBox1.Text);
                ClsBLL.AddMsg(RecordID, "车牌号码:" + CarNo + "维修中断,原因是" + comboBox1.Text + "--" + ClsBLL.UserName);

                this.DialogResult = DialogResult.OK;
                this.Close();
            }
            catch (Exception Err)
            {
                MessageBox.Show(Err.Message);
            }
        }