Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }