Ejemplo n.º 1
0
        /// <summary>
        /// 本地无数据情况下,加载HIS查询信息
        /// 2017-11-29 cc
        /// </summary>
        /// <param name="hisPatientInfo"></param>
        public void SetHisPatientInfo(object sender, HisPatientInfo hisPatientInfo)
        {
            //l_cardno.Text = "";//孕妇档案号
            //l_name.Text = hisPatientInfo.PAT_NAME;//孕妇姓名
            //this.cd_id = -1;//孕妇id
            //l_sex.Text = hisPatientInfo.PHYSI_SEX_NAME;//孕妇性别
            //l_birth.Text = hisPatientInfo.DATE_BIRTH;//出生日期
            //int[] age = CommonHelper.getAgeBytime(l_birth.Text, DateTime.Now.ToString("yyyy-MM-dd"));
            //l_age.Text = (age[0] > 0 ? age[0].ToString() + "岁" : "") + (age[1] > 0 ? age[1].ToString() + "月" : "") + (age[2] > 0 ? age[2].ToString() + "天" : "");
            //MessageBox.Show("未保存的信息,请先保存!");

            doc_jibenxinxi_edit doc_Jibenxinxi_Edit = new doc_jibenxinxi_edit(hisPatientInfo);

            doc_Jibenxinxi_Edit.ShowDialog();
            if (doc_Jibenxinxi_Edit.DialogResult == DialogResult.OK)
            {
                TB_CHILDBASE _Childbase = basebll.GetByPatientId(hisPatientInfo.PAT_INDEX_NO);
                if (_Childbase != null)
                {
                    SetInfo(sender, _Childbase);
                }
                else
                {
                    treeView1_MouseDown(sender, new MouseEventArgs(MouseButtons.Left, 1, treeView1.SelectedNode.Bounds.Location.X, treeView1.SelectedNode.Bounds.Location.Y, 1));
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 本地无数据情况下,加载HIS查询信息
        /// 2017-11-29 cc
        /// </summary>
        /// <param name="hisPatientInfo"></param>
        public void SetHisPatientInfo(object sender, HisPatientInfo hisPatientInfo)
        {
            //l_cardno.Text = "";//孕妇档案号
            //l_name.Text = hisPatientInfo.PAT_NAME;//孕妇姓名
            //this.cd_id = -1;//孕妇id
            //l_sex.Text = hisPatientInfo.PHYSI_SEX_NAME;//孕妇性别
            //l_birth.Text = hisPatientInfo.DATE_BIRTH;//出生日期
            //int[] age = CommonHelper.getAgeBytime(l_birth.Text, DateTime.Now.ToString("yyyy-MM-dd"));
            //l_age.Text = (age[0] > 0 ? age[0].ToString() + "岁" : "") + (age[1] > 0 ? age[1].ToString() + "月" : "") + (age[2] > 0 ? age[2].ToString() + "天" : "");
            //MessageBox.Show("未保存的信息,请先保存!");

            cp_jibenxinxi_edit cp_Jibenxinxi_Edit = new cp_jibenxinxi_edit(hisPatientInfo);

            cp_Jibenxinxi_Edit.ShowDialog();
            // MessageBox.Show(cp_Jibenxinxi_Edit.DialogResult.ToString());
            if (cp_Jibenxinxi_Edit.DialogResult == DialogResult.OK)
            {
                TB_CHILDBASE _Childbase = basebll.GetByPatientId(hisPatientInfo.PAT_INDEX_NO);
                if (_Childbase != null)
                {
                    SetInfo(sender, _Childbase);
                }
                else
                {
                    this.dataGridView1.Rows[this.dataGridView1.Rows.Count - 1].Selected = true;
                    dataGridView1_CellEnter(sender, null);
                }
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// HIS信息插入
        /// 2017-12-05 cc
        /// </summary>
        /// <param name="hisPatientInfo">His查询信息</param>
        public void RefreshCode(HisPatientInfo hisPatientInfo)
        {
            if (globalInfoClass.Zhiwu == "护士")
            {
                if (hisPatientInfo != null)
                {
                    healthcardno.Text   = "";                                            //保健卡号
                    patient_id.Text     = hisPatientInfo.PAT_INDEX_NO;                   //病人ID
                    jiuzhencardno.Text  = hisPatientInfo.VISIT_CARD_NO;                  //就诊卡号
                    this.childname.Text = hisPatientInfo.PAT_NAME;                       //姓名
                    childgender.Text    = hisPatientInfo.PHYSI_SEX_NAME;                 //性别
                    childbirthday.Value = Convert.ToDateTime(hisPatientInfo.DATE_BIRTH); //出生日期
                    telephone.Text      = hisPatientInfo.PHONE_NO;                       //电话号码
                }
                else
                {
                    healthcardno.Text    = ""; //保健卡号
                    childname.Text       = ""; //姓名
                    childgender.Text     = ""; //性别
                    childbirthday.Value  = DateTime.Now;
                    fatherheight.Text    = "";
                    fathereducation.Text = "本科";
                    motherheight.Text    = "";
                    mothereducation.Text = "本科";
                    telephone.Text       = "";
                    cs_fetus.Text        = "";
                    cs_produce.Text      = "";
                    cs_week.Text         = "";
                    cs_day.Text          = "";
                    modedelivery.Text    = "";
                    birthweight.Text     = "";
                    birthheight.Text     = "";
                }
            }
            else
            {
                if (hisPatientInfo != null)
                {
                    healthcardno.Text      = "";                                             //保健卡号
                    patient_id_doc.Text    = hisPatientInfo.PAT_INDEX_NO;                    //病人ID
                    jiuzhencardno_doc.Text = hisPatientInfo.VISIT_CARD_NO;                   //就诊卡号

                    this.childname_doc.Text = hisPatientInfo.PAT_NAME;                       //姓名
                    childgender_doc.Text    = hisPatientInfo.PHYSI_SEX_NAME;                 //性别
                    childbirthday_doc.Value = Convert.ToDateTime(hisPatientInfo.DATE_BIRTH); //出生日期
                    telephone_doc.Text      = hisPatientInfo.PHONE_NO;                       //电话号码
                }
                else
                {
                    healthcardno_doc.Text   = ""; //保健卡号
                    childname_doc.Text      = ""; //姓名
                    childgender_doc.Text    = ""; //性别
                    childbirthday_doc.Value = DateTime.Now;
                    telephone_doc.Text      = "";
                }
            }
        }
Ejemplo n.º 4
0
        public jibenxinxi_panel(WomenInfo cpwomeninfo, HisPatientInfo hisPatientInfo)
        {
            InitializeComponent();
            setCombValueAndText(new ComboBox(), "area.xml");

            _womeninfo      = cpwomeninfo;
            _hisPatientInfo = hisPatientInfo;
            CommonHelper.SetAllControls(panel1);
        }
Ejemplo n.º 5
0
 private void dataGridViewX2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         HisPatientInfo obj = dataGridView1.Rows[e.RowIndex].Tag as HisPatientInfo;
         returnval    = obj;
         DialogResult = DialogResult.OK;
     }
 }
Ejemplo n.º 6
0
        /// <summary>
        /// 读卡
        /// 2017-11-29 cc
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void butRead_Click(object sender, EventArgs e)
        {
            //MessageBox.Show("该功能暂未开放!");
            //return;

            HisChipInfo _chipobj = ReadCard.GetChipObj();

            if (_chipobj != null)
            {
                // MessageBox.Show("病人ID:" + _chipobj.PAT_INDEX_NO + "\r\n就诊卡号:" + _chipobj.CARD_NO);

                TB_CHILDBASE _childobj = basebll.GetByPatientId(_chipobj.PAT_INDEX_NO);
                if (_childobj != null)
                {
                    //MessageBox.Show("本地病人ID查询有数据");
                    SetChildInfo(_childobj, sender);
                }
                else
                {
                    _childobj = basebll.GetByPatientId(_chipobj.CARD_NO);
                    if (_childobj != null)
                    {
                        //MessageBox.Show("本地就诊卡号查询有数据");
                        SetChildInfo(_childobj, sender);
                    }
                    else
                    {
                        if (_chipobj.PAT_INDEX_NO == null && _chipobj.CARD_NO == null)
                        {
                            MessageBox.Show("读卡错误!");
                            return;
                        }
                        else
                        {
                            IList <HisPatientInfo> _hisPatientlist = ReadCard.GetListHisPatientInfo(_chipobj.PAT_INDEX_NO, _chipobj.CARD_NO, false);
                            if (_hisPatientlist.Count > 0)
                            {
                                _hisobj = _hisPatientlist[0]; //取查询第一条数据

                                if (_hisobj != null)
                                {
                                    SetHisPatientInfo(sender, _hisobj);
                                }
                            }
                            else
                            {
                                MessageBox.Show("信息不存在!");
                            }
                        }
                    }
                }
            }
        }
Ejemplo n.º 7
0
 private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Selected == true)
         {
             HisPatientInfo obj = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Tag as HisPatientInfo;
             returnval    = obj;
             DialogResult = System.Windows.Forms.DialogResult.OK;
         }
     }
 }
Ejemplo n.º 8
0
 private void dataGridView1_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)13)
     {
         if (dataGridView1.Rows[0].Selected == true)
         {
             HisPatientInfo obj = dataGridView1.Rows[0].Tag as HisPatientInfo;
             returnval    = obj;
             DialogResult = DialogResult.OK;
         }
     }
 }
Ejemplo n.º 9
0
        /// <summary>
        /// 本地无数据情况下,加载HIS查询信息
        /// 2017-12-13 cc
        /// </summary>
        /// <param name="hisPatientInfo"></param>
        public void SetHisPatientInfo(object sender, HisPatientInfo hisPatientInfo)
        {
            xl_jibenxinxi_edit xl_Jibenxinxi_Edit = new xl_jibenxinxi_edit(hisPatientInfo);

            xl_Jibenxinxi_Edit.ShowDialog();
            if (xl_Jibenxinxi_Edit.DialogResult == DialogResult.OK)
            {
                TB_CHILDBASE _Childbase = basebll.GetByPatientId(hisPatientInfo.PAT_INDEX_NO);
                if (_Childbase != null)
                {
                    SetInfo(_Childbase, sender);
                }
                else
                {
                    this.dataGridView1.Rows[this.dataGridView1.Rows.Count - 1].Selected = true;
                    dataGridView1_CellEnter(sender, null);
                }
            }
        }
Ejemplo n.º 10
0
 public cp_jibenxinxi_edit(HisPatientInfo hisPatientInfo)
 {
     InitializeComponent();
     _hisPatientInfo = hisPatientInfo;
     CommonHelper.SetAllControls(panel1);
 }
Ejemplo n.º 11
0
 public cp_jibenxinxi_panel(cp_WomenInfo cpwomeninfo, HisPatientInfo hisPatientInfo)
 {
     InitializeComponent();
     _cpwomeninfo    = cpwomeninfo;
     _hisPatientInfo = hisPatientInfo;
 }