/// <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); } } }
public PaneljibenCheckBingliPrinter1(TB_CHILDBASE baseobj, TB_CHILDCHECK checkobj, string[] bmipingfen, MB_ZD zdobj, MB_WY wyobj) { InitializeComponent(); _baseobj = baseobj; _checkobj = checkobj; _bmipingfen = bmipingfen; _zdobj = zdobj; _wyobj = wyobj; if (_zdobj == null) { _zdobj = new MB_ZD(); } if (_wyobj == null) { _wyobj = new MB_WY(); } _wyobj.WYZD = "喂养指导\r\n" + _wyobj.WYZD; _zdobj.ZJZD = "早教指导\r\n" + _zdobj.ZJZD; _fjTextList = new List <string> { " (请于" + _checkobj.FUZENCOMBOBOX + "后再来复诊,下次复诊,请带此单。)", "儿保门诊预约方式:微信预约、工行自助机、www.jkwin.com.cn(医事", "通)挂号预约", }; }
/// <summary> /// 检索已建档的信息 /// ywj /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSearcher_Click(object sender, EventArgs e) { Paneltsb_searchInfo frmsearcher = new Paneltsb_searchInfo(false); frmsearcher.ckb_check.Checked = false; frmsearcher.ShowDialog(); if (frmsearcher.DialogResult == DialogResult.OK) { TB_CHILDBASE jibenobj = frmsearcher.returnval; if (jibenobj != null) { bool isinclude = true; for (int i = 0; i < dataGridView1.RowCount; i++) { if (dataGridView1.Rows[i].Cells[0].Value.ToString() == jibenobj.HEALTHCARDNO) { dataGridView1.Rows[i].Selected = true; isinclude = false; break; } } if (isinclude) { //bindDataNowday(jibenobj.wm_mrn);//档案号查数据 string[] rowmrn = new string[] { jibenobj.HEALTHCARDNO, jibenobj.CHILDNAME, jibenobj.ID.ToString(), jibenobj.CHILDGENDER, jibenobj.CHILDBIRTHDAY }; dataGridView1.Rows.Add(rowmrn); this.dataGridView1.Rows[this.dataGridView1.Rows.Count - 1].Selected = true;; //选中查询到的数据行 } dataGridView1_CellEnter(sender, null); } } }
/// <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)); } } }
public PaneljibenCheckBingliPrinter(TB_CHILDBASE baseobj, TB_CHILDCHECK checkobj, int childid) { InitializeComponent(); _baseobj = baseobj; _checkobj = checkobj; _childid = childid; }
/// <summary> /// 获取数据 /// </summary> /// <returns></returns> private TB_CHILDBASE getChildBaseInfoObj() { TB_CHILDBASE obj = new TB_CHILDBASE(); if (globalInfoClass.Zhiwu == "护士") { obj = CommonHelper.GetObj <TB_CHILDBASE>(groupPanel1.Controls); obj.STATUS = "1"; obj.CHILDBUILDDAY = DateTime.Now.ToString("yyyy-MM-dd HH:mm"); obj.CHILDBUILDHOSPITAL = "重医大附属儿童医院"; return(obj); } else { obj.PATIENT_ID = patient_id_doc.Text.Trim(); obj.JIUZHENCARDNO = jiuzhencardno_doc.Text.Trim(); obj.CHILDNAME = childname_doc.Text.Trim(); obj.IDENTITYNO = identityno_doc.Text.Trim(); obj.SFZLB = sfzlb_doc.Text.Trim(); obj.CHILDGENDER = childgender_doc.Text.Trim(); obj.CHILDBIRTHDAY = childbirthday_doc.Text; obj.PROVINCE = province_doc.Text.Trim(); obj.JTZZ_CX = jtzz_cx_doc.Text.Trim(); obj.TELEPHONE = telephone_doc.Text.Trim(); obj.TELEPHONE2 = telephone2_doc.Text.Trim(); return(obj); } }
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; }
/// <summary> /// 获取数据 /// </summary> /// <returns></returns> private TB_CHILDBASE getChildBaseInfoObj() { TB_CHILDBASE obj = CommonHelper.GetObj <TB_CHILDBASE>(panel2.Controls); obj.STATUS = "1"; return(obj); }
InputLanguage InputHuoDong = null;//当前输入法 public cp_yysc_panel(cp_WomenInfo cpwomeninfo) { InitializeComponent(); _cpwomeninfo = cpwomeninfo; _childobj = childbll.Get(cpwomeninfo.cd_id); CommonHelper.SetAllControls(panel1); SetData(szyslist, listszys, "songzhen"); SetData(testlist, listtest, "test"); }
private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (dataGridViewX1.Rows[e.RowIndex].Tag != "") { TB_CHILDBASE obj = dataGridViewX1.Rows[e.RowIndex].Tag as TB_CHILDBASE; returnval = obj; DialogResult = System.Windows.Forms.DialogResult.OK; } }
public cp_yysc1_printer(TB_CHILDBASE baseobj, CP_CDI_TAB cdiobj, CP_DDST_TAB ddstobj, CP_CDI1_TAB cdi1obj, CP_PPVT_TAB ppvtobj) { InitializeComponent(); _baseobj = baseobj; _cdiobj = cdiobj; _ddstobj = ddstobj; _cdi1obj = cdi1obj; _ppvtobj = ppvtobj; }
public cp_yysc_printer(TB_CHILDBASE baseobj, CP_DDST_TAB ddstobj, CP_CDI_TAB cdiobj, CP_CDI1_TAB cdi1obj, CP_ZQYYFYJC_TAB zqobj) { InitializeComponent(); _baseobj = baseobj; _ddstobj = ddstobj; _cdiobj = cdiobj; _cdi1obj = cdi1obj; _obj = zqobj; }
/// <summary> /// 获取数据 /// </summary> /// <returns></returns> private TB_CHILDBASE getChildBaseInfoObj() { TB_CHILDBASE obj = CommonHelper.GetObj <TB_CHILDBASE>(panel1.Controls); obj.STATUS = "1"; obj.CHILDBUILDDAY = DateTime.Now.ToString("yyyy-MM-dd HH:mm"); obj.CHILDBUILDHOSPITAL = "重医大附属儿童医院"; return(obj); }
public cp_peabody_printer(TB_CHILDBASE baseobj, CP_PEABODY_TAB obj) { InitializeComponent(); _baseobj = baseobj; TB_CHILDBASE jibenobj = jibenbll.Get(obj.CHILD_ID); _jibenobj = jibenobj; _obj = obj; }
public cp_ptoni_printer(TB_CHILDBASE baseobj, CP_PTONI_TAB obj) { InitializeComponent(); _baseobj = baseobj; TB_CHILDBASE jibenobj = jibenbll.Get(obj.CHILD_ID); _jibenobj = jibenobj; _obj = obj; }
private void buttonX8_Click(object sender, EventArgs e) { using (Paneltsb_searchInfo frmsearcher = new Paneltsb_searchInfo()) { frmsearcher.ShowDialog(); if (frmsearcher.DialogResult == DialogResult.OK) { _jibenobj = frmsearcher.returnval; } } }
/// <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("信息不存在!"); } } } } } }
private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Selected == true) { TB_CHILDBASE obj = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Tag as TB_CHILDBASE; returnval = obj; DialogResult = System.Windows.Forms.DialogResult.OK; } } }
private void dataGridView1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { if (dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Tag != null) { TB_CHILDBASE obj = dataGridView1.Rows[dataGridView1.SelectedRows[0].Index].Tag as TB_CHILDBASE; returnval = obj; DialogResult = System.Windows.Forms.DialogResult.OK; } } }
/// <summary> /// 绑定列表建档信息 /// ywj /// 2016.8.29 /// </summary> //public void bindDataNowday() //{ // dataGridView1.Rows.Clear(); // string checkday = DateTime.Now.ToString("yyyy-MM-dd"); // string isjiuzhen = CommonHelper.getcheckedValue(panel1); // try // { // IList<TB_CHILDBASE> list = basebll.GetListByCheckDoc(checkday, isjiuzhen,cd_id); // if(list!=null) // { // foreach (TB_CHILDBASE obj in list) // { // if (obj == null) // continue; // DataGridViewRow row = new DataGridViewRow(); // row.CreateCells(dataGridView1, obj.healthcardno, obj.childname, obj.ID.ToString(), obj.childgender, obj.childbirthday);// // dataGridView1.Rows.Add(row); // if(obj.ID==this.cd_id) // { // row.Selected = true; // } // } // } // } // catch(Exception ex) // { // throw ex; // } // finally // { // Cursor.Current = Cursors.Default; // if (dataGridView1.Rows.Count >= 1) // { // if(dataGridView1.SelectedRows.Count<=0) // dataGridView1.Rows[0].Selected = true; // } // } //} /// <summary> /// 检索已建档的信息 /// ywj /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSearcher_Click(object sender, EventArgs e) { Paneltsb_searchInfo frmsearcher = new Paneltsb_searchInfo(); frmsearcher.ShowDialog(); if (frmsearcher.DialogResult == DialogResult.OK) { TB_CHILDBASE jibenobj = frmsearcher.returnval; if (jibenobj != null) { bool isinclude = true; for (int i = 0; i < treeView1.Nodes[0].Nodes.Count; i++) { if ((treeView1.Nodes[0].Nodes[i].Tag as TB_CHILDBASE).HEALTHCARDNO == jibenobj.HEALTHCARDNO) { treeView1.Nodes[0].Nodes[i].Checked = true; treeView1.SelectedNode = treeView1.Nodes[0].Nodes[i]; isinclude = false; break; } } for (int i = 0; i < treeView1.Nodes[1].Nodes.Count; i++) { if ((treeView1.Nodes[1].Nodes[i].Tag as TB_CHILDBASE).HEALTHCARDNO == jibenobj.HEALTHCARDNO) { treeView1.Nodes[1].Nodes[i].Checked = true; treeView1.SelectedNode = treeView1.Nodes[1].Nodes[i]; isinclude = false; break; } } if (isinclude) { //bindDataNowday(jibenobj.wm_mrn);//档案号查数据 //string[] rowmrn = new string[] { jibenobj.healthcardno, jibenobj.childname, jibenobj.id.ToString(),jibenobj.childgender,jibenobj.childbirthday }; //dataGridView1.Rows.Add(rowmrn); //this.dataGridView1.Rows[this.dataGridView1.Rows.Count - 1].Selected = true; ;//选中查询到的数据行 //treeview节点添加 TreeNode tn = new TreeNode(); tn.Text = jibenobj.CHILDNAME; tn.Tag = jibenobj; treeView1.Nodes[1].Nodes.Add(tn); tn.Checked = true; treeView1.SelectedNode = tn; } //dataGridView1_CellEnter(sender, null); treeView1_MouseDown(sender, new MouseEventArgs(MouseButtons.Left, 1, treeView1.SelectedNode.Bounds.Location.X, treeView1.SelectedNode.Bounds.Location.Y, 1)); } } }
/// <summary> /// 刷新列表 /// </summary> /// <param name="id"></param> public void RefreshCode() { if (_womeninfo.cd_id != -1) { Cursor.Current = Cursors.WaitCursor; TB_CHILDBASE obj = jibenbll.Get(_womeninfo.cd_id); if (obj != null) { CommonHelper.setForm(obj, panel1.Controls); //_womeninfo.bindDataNowday(); //textBoxX12.Text = new TbGaoweiBll().getGaoweistr(_womeninfo.cd_id, "", ""); } } }
private void textBoxX2_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { _jibenobj = jibenbll.GetByHealthNo(healthcardno.Text); if (_jibenobj != null) { setNursForm(); } else { MessageBox.Show("无儿童信息!"); } } }
/// <summary> /// 加载本地基本信息 /// 2017-12-06 cc /// </summary> /// <param name="childbase">病人信息</param> public void SetChildInfo(TB_CHILDBASE childbase, object sender) { if (childbase != null) { if (childbase != null) { bool isinclude = true; for (int i = 0; i < treeView1.Nodes[0].Nodes.Count; i++) { if ((treeView1.Nodes[0].Nodes[i].Tag as TB_CHILDBASE).HEALTHCARDNO == childbase.HEALTHCARDNO) { treeView1.Nodes[0].Nodes[i].Checked = true; treeView1.SelectedNode = treeView1.Nodes[0].Nodes[i]; isinclude = false; break; } } for (int i = 0; i < treeView1.Nodes[1].Nodes.Count; i++) { if ((treeView1.Nodes[1].Nodes[i].Tag as TB_CHILDBASE).HEALTHCARDNO == childbase.HEALTHCARDNO) { treeView1.Nodes[1].Nodes[i].Checked = true; treeView1.SelectedNode = treeView1.Nodes[1].Nodes[i]; isinclude = false; break; } } if (isinclude) { //bindDataNowday(jibenobj.wm_mrn);//档案号查数据 //string[] rowmrn = new string[] { jibenobj.healthcardno, jibenobj.childname, jibenobj.id.ToString(),jibenobj.childgender,jibenobj.childbirthday }; //dataGridView1.Rows.Add(rowmrn); //this.dataGridView1.Rows[this.dataGridView1.Rows.Count - 1].Selected = true; ;//选中查询到的数据行 //treeview节点添加 TreeNode tn = new TreeNode(); tn.Text = childbase.CHILDNAME; tn.Tag = childbase; treeView1.Nodes[1].Nodes.Add(tn); tn.Checked = true; treeView1.SelectedNode = tn; } treeView1_MouseDown(sender, new MouseEventArgs(MouseButtons.Left, 1, treeView1.SelectedNode.Bounds.Location.X, treeView1.SelectedNode.Bounds.Location.Y, 1)); } } }
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); } } }
/// <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); } } }
/// <summary> /// 加载基本信息 /// 2017-12-13 cc /// </summary> /// <param name="sender"></param> /// <param name="jibenobj">基本信息</param> public void SetInfo(TB_CHILDBASE jibenobj, object sender) { bool isinclude = true; for (int i = 0; i < dataGridView1.RowCount; i++) { if (dataGridView1.Rows[i].Cells[0].Value.ToString() == jibenobj.HEALTHCARDNO) { dataGridView1.Rows[i].Selected = true; isinclude = false; break; } } if (isinclude) { string[] rowmrn = new string[] { jibenobj.HEALTHCARDNO, jibenobj.CHILDNAME, jibenobj.ID.ToString(), jibenobj.CHILDGENDER, jibenobj.CHILDBIRTHDAY }; dataGridView1.Rows.Add(rowmrn); this.dataGridView1.Rows[this.dataGridView1.Rows.Count - 1].Selected = true;; //选中查询到的数据行 } dataGridView1_CellEnter(sender, null); }
public tongji_BMI519(WomenInfo womeninfo) { InitializeComponent(); _womeninfo = womeninfo; jibenobj = new tb_childbasebll().Get(_womeninfo.cd_id); _sex = jibenobj.CHILDGENDER; if (_sex == "性别不明") { _sex = "男"; } _birthtime = jibenobj.CHILDBIRTHDAY; _ispre = jibenobj.ISPRE; if (!String.IsNullOrEmpty(_ispre) && _ispre == "1") { ckb_isPre.Checked = true; } _week = jibenobj.CS_WEEK; _days = jibenobj.CS_DAY; _weight = jibenobj.BIRTHWEIGHT; _height = jibenobj.BIRTHHEIGHT; tongji_WHO_Paint519(); }
private void buttonX8_Click(object sender, EventArgs e) { Paneltsb_searchInfo frmsearcher = new Paneltsb_searchInfo(); frmsearcher.ShowDialog(); if (frmsearcher.DialogResult == DialogResult.OK) { TB_CHILDBASE jibenobj = frmsearcher.returnval; if (jibenobj != null) { YY_ASD_TAB obj = GetObj(); obj.CHILD_ID = jibenobj.ID; if (bll.SaveOrUpdate(obj)) { MessageBox.Show("保存成功!", "软件提示"); RefreshCheckList(); } else { MessageBox.Show("保存失败!", "软件提示"); } } } }
/// <summary> /// 加载本地基本信息 /// 2017-11-29 cc /// </summary> /// <param name="childbase">病人信息</param> public void SetChildInfo(TB_CHILDBASE childbase, object sender) { if (childbase != null) { bool isinclude = true; for (int i = 0; i < dataGridView1.RowCount; i++) { if (dataGridView1.Rows[i].Cells[0].Value.ToString() == childbase.HEALTHCARDNO) { dataGridView1.Rows[i].Selected = true; isinclude = false; break; } } if (isinclude) { //bindDataNowday(jibenobj.wm_mrn);//档案号查数据 string[] rowmrn = new string[] { childbase.HEALTHCARDNO, childbase.CHILDNAME, childbase.ID.ToString(), childbase.CHILDGENDER, childbase.CHILDBIRTHDAY }; dataGridView1.Rows.Add(rowmrn); this.dataGridView1.Rows[this.dataGridView1.Rows.Count - 1].Selected = true;; //选中查询到的数据行 } dataGridView1_CellEnter(sender, null); } }
public cp_hrsy_printer(TB_CHILDBASE baseobj, CP_PPVT_TAB obj) { InitializeComponent(); _baseobj = baseobj; _obj = obj; }