Beispiel #1
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            Identity.i_address   = null;
            Identity.i_birth_day = null;
            Identity.i_code      = null;
            Identity.i_name      = null;
            Identity.i_sex       = null;
            OrderList ol = new OrderList();

            if (getICCard())
            {
                //if (true) {
                DataProcess dp   = new DataProcess();
                string      name = Identity.i_code;
                //name = "42100319840118001X";
                string msg = dp.getInfoByID(name);
                if (msg.Length == 0)
                {
                    XtraMessageBox.Show("验证身份证时出错,请重试!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else if (msg == "-1")
                {
                    XtraMessageBox.Show("没有未使用的订单!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else if (msg == "-2")
                {
                    XtraMessageBox.Show("未找到联系人!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else if (msg == "-3")
                {
                    XtraMessageBox.Show("未查询到诊疗师信息或者未绑定门店!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    ol = getOrder(msg);
                    List <OrderData> olist = ol.datas;
                    OrderSelect      osFrm = new OrderSelect(olist);
                    if (osFrm.ShowDialog() == DialogResult.OK)
                    {
                        txtCode.Text     = osFrm.verifyCode;
                        txtBirthDay.Text = Identity.i_birth_day;
                        txtName.Text     = Identity.i_name;
                        txtSex.Text      = Identity.i_sex;
                        //txtBirthPlace.Text = getPlace("北京市市辖区朝阳区");
                        txtBirthPlace.Text = getPlace(Identity.i_address);
                        osFrm.Close();
                    }
                }
            }
        }