示例#1
0
        private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e)
        {
            int indexs = dataGridView1.RowCount;

            if (indexs <= 0)
            {
                return;
            }

            hisRegistObj registobj = this.dataGridView1.SelectedRows[0].Tag as hisRegistObj;//就诊号

            if (registobj == null)
            {
                return;
            }
            _jibenobj = jibenbll.GetByCardNo(registobj.cardno);
            setNursForm();
            if (_jibenobj == null)
            {
                jiuzhencardno.Text  = registobj.cardno;
                childname.Text      = registobj.cardno;
                childgender.Text    = registobj.sex;
                childbirthday.Value = Convert.ToDateTime(registobj.sex);
            }

            Cursor.Current = Cursors.WaitCursor;
        }
示例#2
0
        /// <summary>
        /// 查询挂号基本信息
        /// </summary>
        /// <param name="sqls"></param>
        /// <returns></returns>
        public ArrayList getRegistList(string sqls)
        {
            SqlDataReader sdr       = null;
            ArrayList     arraylist = new ArrayList();

            try
            {
                sdr = dg.executequery(sqls);
                hisRegistObj obj = null;
                if (!sdr.HasRows)
                {
                    return(null);
                }
                else
                {
                    while (sdr.Read())
                    {
                        obj               = new hisRegistObj();
                        obj.cardno        = sdr["cardno"].ToString();
                        obj.visit_number  = sdr["visit_number"].ToString();
                        obj.patient_name  = sdr["patient_name"].ToString();
                        obj.regist_time   = sdr["regist_time"].ToString();
                        obj.identityno    = sdr["identityno"].ToString();
                        obj.dept_code     = sdr["dept_code"].ToString();
                        obj.dept_name     = sdr["dept_name"].ToString();
                        obj.contact_phone = sdr["contact_phone"].ToString();
                        obj.sex           = sdr["sex"].ToString();
                        obj.age           = sdr["age"].ToString();
                        obj.address       = sdr["address"].ToString();
                        obj.doctor_name   = sdr["doctor_name"].ToString();
                        obj.remark        = sdr["remark"].ToString();
                        obj.birth_date    = sdr["birth_date"].ToString();
                        arraylist.Add(obj);
                    }
                }
                return(arraylist);
            }
            catch (Exception ex)
            {
                MessageBox.Show("系统异常,请联系管理员", "软件提示");
                throw ex;
            }
        }
示例#3
0
 private void jiuzhencardno_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)13)
     {
         _jibenobj = jibenbll.GetByCardNo(jiuzhencardno.Text);
         if (_jibenobj != null)
         {
             setNursForm();
         }
         else
         {
             hisRegistObj registobj = this.dataGridView1.SelectedRows[0].Tag as hisRegistObj;//就诊号
             jiuzhencardno.Text  = registobj.cardno;
             childname.Text      = registobj.patient_name;
             childgender.Text    = registobj.sex;
             childbirthday.Value = Convert.ToDateTime(registobj.sex);
         }
     }
 }