Beispiel #1
0
        private void 确定_Click(object sender, EventArgs e)
        {
            if ((IS == 1 ? Insert() : Update()) > 0)
            {
                //更新bar_code 添加这个
                tjcheckDao tjdao = new tjcheckDao();

                tjdao.updateTJbgdclnrzytzbs(aichive_no, id_number, "1", bar_code);

                MessageBox.Show("成功!");
                this.DialogResult = DialogResult.OK;
            }
            else
            {
                MessageBox.Show("失败!");
            }
        }