예제 #1
0
파일: WaitForm3.cs 프로젝트: littleking/DJK
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            DataProcess dp     = new DataProcess();
            string      result = dp.getResult(Patient.w_name);

            if (result == "-1")
            {
                XtraMessageBox.Show("校验码不存在", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else if (result == "-2")
            {
                XtraMessageBox.Show("没有自检信息", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                FrmCheckSheet cs = new FrmCheckSheet(result);
                cs.TopMost = true;
                cs.Show();
            }
        }
예제 #2
0
파일: FrmInfo.cs 프로젝트: littleking/DJK
        private void checkSheet()
        {
            if (this.txtCode.Text.Length == 0)
            {
                XtraMessageBox.Show("请输入校验码", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            DataProcess dp     = new DataProcess();
            string      result = dp.getResult(this.txtCode.Text.ToString().Trim());

            if (result == "-1")
            {
                XtraMessageBox.Show("校验码不存在", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else if (result == "-2")
            {
                XtraMessageBox.Show("没有自检信息", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                FrmCheckSheet cs = new FrmCheckSheet(result);
                cs.Show();
            }
        }