public frmHangBed(InPatientInfo inPatient) { InitializeComponent(); this.inPatientInfo = inPatient; App.FormStytleSet(this, false); cbxHang_Bed.SelectedIndex = 0; }
private void 消息提醒ToolStripMenuItem_Click(object sender, EventArgs e) { try { if (ucGridviewX1.fg.CurrentRow.Index >= 1) { if (null != ds && ds.Tables[0].Rows.Count > 0) { //int row = this.ucGridviewX1.fg.mou; string id = ucGridviewX1.fg["ID", ucGridviewX1.fg.CurrentRow.Index].Value.ToString(); string pid = ucGridviewX1.fg["住院号", ucGridviewX1.fg.CurrentRow.Index].Value.ToString(); if (pid != "") { InPatientInfo patientInfo = DataInit.GetInpatientInfoByPid(id); Base_Function.BLL_MSG_REMIND.MSG_ACCORD_REMIND.frmNotice notice = new Base_Function.BLL_MSG_REMIND.MSG_ACCORD_REMIND.frmNotice(patientInfo); notice.ShowDialog(); SelectAllLevy(); } } } } catch (Exception ex) { App.MsgErr(ex.Message); } }
private string showname = ""; //显示名称 /// <summary> /// 构造函数 /// </summary> /// <param name="patient">病人实体类</param> /// <param name="dtime">执行时间</param> /// <param name="sname">显示名称</param> public frmFormula(InPatientInfo patient, string dtime, string sname) { InitializeComponent(); currentpatient = patient; measureTime = dtime; showname = sname; }
public UcInhospital(InPatientInfo inpatient, NodeCollection node) { InitializeComponent(); this.inpat = inpatient; this.nodes = node; this.nodeInpatient.Tag = inpatient as object; }
/// <summary> /// 根据文书不同的id,生成报表文件 /// </summary> /// <param name="ds">数据源</param> /// <param name="inpatientInfo">当前病人信息</param> /// <param name="tid">文书id</param> public Ucprint(DataSet ds, InPatientInfo inpatientInfo, string tid) { InitializeComponent(); this.ds = ds; this.inpatien = inpatientInfo; this.tid = tid; }
private void flgview_DoubleClick(object sender, EventArgs e) { try { if (this.flgview.RowSel >= 1) { string patient_id = this.flgview[this.flgview.RowSel, "住院号"].ToString(); string sql = "select * from t_in_patient t where t.pid='" + patient_id + "'"; DataSet ds1 = App.GetDataSet(sql); if (ds1 != null) { if (ds1.Tables[0].Rows.Count > 0) { InPatientInfo patientInfo = DataInit.GetIninpatientByPid(ds1.Tables[0]); ucDoctorOperater fq = new ucDoctorOperater(patientInfo); App.UsControlStyle(fq); App.AddNewBusUcControl(fq, "病人文书"); } } } } catch (Exception ex) { App.MsgErr(ex.Message); } }
private void dgv_Tempreturelist_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex < 0 || e.ColumnIndex != -1) { return; } if (m_updateRows.Count > 0) { App.Msg("有数据修改,请先保存!"); return; } InPatientInfo info = tempetureDataComm.GetInpatientInfoByPid(dgv_Tempreturelist.Rows[e.RowIndex].Cells["Col_ID"].Value.ToString()); ucTempraute tp = new ucTempraute(info, _templateType, true); tp.Dock = DockStyle.Fill; Form frm = new Form(); frm.Controls.Add(tp); frm.WindowState = FormWindowState.Maximized; frm.ShowDialog(); //App.UsControlStyle(tp); //App.AddNewBusUcControl(tp, dgv_Tempreturelist.Rows[dgv_Tempreturelist.CurrentCell.RowIndex].Cells["Col_PATIENTNAME"].ToString() + "-体温单信息"); Query(); //进入单录后返回时,数据可能被编辑,自动刷新下群录界面。 }
public ucWjzJC(InPatientInfo info) { InitializeComponent(); inpatient = info; BindDgv(); RefDgv(); }
/// <summary> /// 诊断证明书 /// </summary> /// <param name="patient">病人</param> public ucDIAGNOSIS_CERTIFICATE(InPatientInfo Patient) { InitializeComponent(); patient = Patient; lblName.Text = patient.Patient_Name; if (patient.Gender_Code == "0") { lblSex.Text = "男"; } else { lblSex.Text = "女"; } lblAge.Text = patient.Age.ToString() + patient.Age_unit; lblSection.Text = patient.Section_Name; lblPid.Text = patient.PId; DataSet ds = App.GetDataSet("select * from T_DIAGNOSIS_CERTIFICATE where PATIENT_ID=" + patient.Id + ""); if (ds.Tables[0].Rows.Count > 0) { AdciceId = ds.Tables[0].Rows[0]["id"].ToString(); txtAdvice.Text = ds.Tables[0].Rows[0]["ADVICE"].ToString(); dptCreateTime.Value = Convert.ToDateTime(ds.Tables[0].Rows[0]["DISPLAY_TIME"].ToString()); } cbxPrientNum.SelectedIndex = 0; }
/// <summary> /// 构造函数 /// </summary> /// <param name="inpatinetInfo"></param> /// <param name="node"></param> /// <param name="dianose_name"></param> public UCPictureBox(InPatientInfo inpatinetInfo, NodeCollection node, string dianose_name) { if (inpatinetInfo != null) { if (inpatinetInfo.Age == "0" && inpatinetInfo.Id != 0) { //inpatinetInfo.Age = Convert.ToString(App.GetSystemTime().Year - Convert.ToDateTime(inpatinetInfo.Birthday).Year); inpatinetInfo.Age = GetAge(Convert.ToDateTime(inpatinetInfo.Birthday), App.GetSystemTime()); if ((inpatinetInfo.Child_age != null || inpatinetInfo.Child_age != "") && inpatinetInfo.Age == "0") { inpatinetInfo.Age = inpatinetInfo.Child_age; inpatinetInfo.Age_unit = ""; } else { inpatinetInfo.Age_unit = "岁"; } } else if (inpatinetInfo.Age != null && inpatinetInfo.Age.Contains("岁")) { inpatinetInfo.Age_unit = ""; } } this.Inpat = inpatinetInfo; this.BackColor = SystemColors.Info; this.nodes = node; this.Width = 210; //206 this.Height = 131; //181 this.BorderStyle = BorderStyle.None; dianose_Name = dianose_name;//App.ReadSqlVal(sql, 0, "diagnose_name"); this.BackgroundImage = global::Base_Function.Resource.card_unselect; Img(inpat); }
public ucTempraute(InPatientInfo info)//string pid,string medicare_no, string id, string bedNo, string name, string sex, string age, string section, string ward, string in_time) { InitializeComponent(); currentPatient = info; string age = currentPatient.Age; string Age_Child = DataInit.GetAge(currentPatient.Id.ToString()); if (string.IsNullOrEmpty(age) || age.Equals("0岁")) { Age = Age_Child; } if (currentPatient.PId.Contains("_")) { IsChild = true; } else { if (Age_Child.Contains("天")) { Age_Child = Age_Child.Replace("天", ""); } if (Age_Child.Contains("小时") || Age_Child.Contains("分") || (App.IsNumeric(Age_Child) && Convert.ToInt32(Age_Child) < 28)) { IsChild = true; } else { IsChild = false; } } }
/// <summary> /// 构造函数,获取参数 /// </summary> /// <param name="inpatientInfo">病人对象</param> /// <param name="apply_Time">申请时间</param> /// <param name="apply_SectionName">申请科室</param> /// <param name="consultation_Type">会诊类别</param> /// <param name="id">当前会诊记录id</param> public frmConsultation_Record() { InitializeComponent(); App.UsControlStyle(this); //绑定数据到flgGrid RefGrid(); if (flgGrid.Rows.Count > 0 && flgGrid.RowSel > 0) { this.inPatient = DataInit.GetInpatientInfoByPid(flgGrid[flgGrid.RowSel, "patient_id"].ToString()); //this.lblApply_Time.Text = flgGrid[flgGrid.RowSel,"申请时间"].ToString(); //this.lblSonsultation_Type.Text = flgGrid[flgGrid.RowSel, "会诊类别"].ToString(); //this.lblApply_SectionName.Text = flgGrid[flgGrid.RowSel,"申请科室"].ToString(); //this.lblSection.Text =DataInit.getSectionNameById(App.UserAccount.CurrentSelectRole.Section_Id); //this.lblConsul_section.Text = DataInit.getSectionNameById(App.UserAccount.CurrentSelectRole.Section_Id); //this.lblConsul_doctor.Text = App.UserAccount.UserInfo.User_name; //this.Id = flgGrid[flgGrid.RowSel,"序号"].ToString(); //this.txtApply_Content.Text = flgGrid[flgGrid.RowSel, "会诊内容"].ToString(); //this.lblSection.Text = DataInit.getSectionNameById(App.UserAccount.CurrentSelectRole.Section_Id); } if (inPatient != null) { this.lblPatientName.Text = inPatient.Patient_Name; this.lblArea.Text = inPatient.Sick_Area_Name; this.lblBedNumber.Text = inPatient.Sick_Bed_Name; } }
public frmMain(InPatientInfo inpatientInfo) { InitializeComponent(); DataInit.CurrentPatient = inpatientInfo; ucTemp = new ucTemplateListGet(); ucTemp.Dock = DockStyle.Fill; ucTemp.TemplateSelect += new EventHandler(Template_Doubleclick); ucTemp.Reflesh(DataInit.discuss_text_id.ToString()); splitContainer1.Panel2.Controls.Add(ucTemp); if (DataInit.CurrentPatient != null) { string sql = "select * from T_DISCUSS_DOC where patient_id=" + DataInit.CurrentPatient.Id + ""; DataSet ds = App.GetDataSet(sql); string Record_Time = ""; if (ds.Tables[0].Rows.Count > 0) { int tid = Convert.ToInt32(ds.Tables[0].Rows[0]["id"].ToString()); string Content = ds.Tables[0].Rows[0]["CONTENT"].ToString(); //读取已有文书 frmText text = new frmText(DataInit.discuss_text_id, 0, 0, "病例讨论", tid, DataInit.CurrentPatient, true, false, Record_Time, "病例讨论"); if (Content != "") { //读取默认模板 XmlDocument tempxmldoc = new XmlDocument(); tempxmldoc.PreserveWhitespace = true; tempxmldoc.LoadXml(Content); text.MyDoc.FromXML(tempxmldoc.DocumentElement); } text.Dock = DockStyle.Fill; groupPanel1.Controls.Add(text); } else { Record_Time = App.GetSystemTime().ToString("yyyy-MM-dd HH:mm"); //新的文书 frmText text = new frmText(DataInit.discuss_text_id, 0, 0, "病例讨论", 0, DataInit.CurrentPatient, true, false, Record_Time, "病例讨论"); string templatecontent = DataInit.GetDefaultTemp(DataInit.discuss_text_id.ToString()); ucTemp.Reflesh(text.MyDoc.Us.TextKind_id.ToString()); if (templatecontent != "" && templatecontent != null) { //读取默认模板 XmlDocument tempxmldoc = new XmlDocument(); tempxmldoc.PreserveWhitespace = true; tempxmldoc.LoadXml(templatecontent); text.MyDoc.FromXML(tempxmldoc.DocumentElement); } text.Dock = DockStyle.Fill; groupPanel1.Controls.Add(text); } } }
/// <summary> /// 构造函数 /// </summary> /// <param name="Pid">病人主键</param> public UcLis(InPatientInfo patient, string msg) { InitializeComponent(); txtPid.Text = patient.PId; lisoutres = new List <LisOutPutResult>(); btnSure.Enabled = false; }
public frmBack_Area(InPatientInfo inPatient) { InitializeComponent(); this.inPatientInfo = inPatient; App.FormStytleSet(this, false); GetEmptyBed(); }
/// <summary> /// 构造函数 /// </summary> /// <param name="patient">病人实体类</param> public FrmLis(InPatientInfo patient) { InitializeComponent(); //txtPid.Text = patient.Patient_Id; txtPid.Text = patient.PId; lisoutres = new List <LisOutPutResult>(); }
/// <summary> /// 普通体温单打印构造函数 /// </summary> /// <param name="name">姓名</param> /// <param name="bedNo">床号</param> /// <param name="sex">性别</param> /// <param name="in_time">出生时间</param> /// <param name="pid">住院号</param> public frmTemperPrint(InPatientInfo currentPatient)//string pid, string medicare_no, string id, string bedNo, string name, string sex, string age, string section, string ward, string in_time) { InitializeComponent(); // ucTemperPrintDataLoad uc1 = new ucTemperPrintDataLoad(currentPatient);//pid,medicare_no, id, bedNo, name, sex, age, section, ward, in_time, ""); // uc1.Dock = DockStyle.Fill; // this.Controls.Add(uc1); }
/// <summary> /// 显示屏展示 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void 显示屏展示ToolStripMenuItem_Click(object sender, EventArgs e) { this.currentInpatient = this.GetPatientByList(); UcScreen frm = new UcScreen(currentInpatient); frm.ShowDialog(); }
public frmOperaterTest(InPatientInfo tt) { InitializeComponent(); currentInpo = tt; treeView1.ExpandAll(); }
public frmPatientProgress(InPatientInfo inpateint) { InitializeComponent(); App.FormStytleSet(this, false); this.inPateintInfo = inpateint; App.GetListDatas(inpateint.PId); }
/// <summary> /// 曲线图配置 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void 曲线图配置ToolStripMenuItem_Click(object sender, EventArgs e) { this.currentInpatient = this.GetPatientByList(); frmPatientProgress fpp = new frmPatientProgress(currentInpatient); fpp.ShowDialog(); }
public frmDocView(string strPatientId, string strType, string strInfoId) { InitializeComponent(); inpat = DataInit.GetInpatientInfoByPid(strPatientId); type = strType; infoId = strInfoId; }
/// <summary> /// 构造函数 /// </summary> /// <param name="patient">病人实体类</param> public frm_Pasc(InPatientInfo patient) { InitializeComponent(); pt = patient; App.PascResault = ""; App.FormStytleSet(this, false); }
private void fg_DoubleClick(object sender, EventArgs e) { try { //获取病人ID string id = ucGridviewX1.fg.SelectedRows[0].Cells[0].Value.ToString(); string sql = "select * from t_in_patient t where t.id='" + id + "'"; DataSet ds = App.GetDataSet(sql); if (ds != null) { if (ds.Tables[0].Rows.Count > 0) { InPatientInfo patientInfo = new InPatientInfo(); patientInfo = DataInit.InitPatient(ds.Tables[0].Rows[0]); ucDoctorOperater fq = new ucDoctorOperater(patientInfo); //frmMain fq = new frmMain(patientInfo, true, patientInfo.Id); App.AddNewBusUcControl(fq, "病人文书"); ((Form)this.ParentForm).Close(); } } } catch (Exception ex) { App.MsgErr(ex.Message); } }
public frmSurgery(InPatientInfo inPatientInfo) { InitializeComponent(); this.inPatinet = inPatientInfo; flgSergeryList.DataSource = GetAllInfo(); flgSergeryList.Cols["code_icd9"].Visible = false; flgSergeryList.Cols["id"].Visible = false; }
public frmPatientInfo(InPatientInfo inpatient) { InitializeComponent(); UcPatientInfo ucPatientInfo = new UcPatientInfo(inpatient); this.Controls.Add(ucPatientInfo); ucPatientInfo.Dock = DockStyle.Fill; }
/// <summary> /// 构造函数 /// </summary> /// <param name="inPatient">当前病人</param> public frmUpdateBed(InPatientInfo inPatient) { InitializeComponent(); this.inPatientInfo = inPatient; App.FormStytleSet(this, false); GetSickArea(); }
private string tng_Name; //诊疗组 public frmUpdateDoctor(InPatientInfo inPatient) { InitializeComponent(); this.inPatientInfo = inPatient; App.FormStytleSet(this, false); //获得当前科室的医生 GetDoctor(); }
/// <summary> /// 构造函数 /// </summary> /// <param name="patient">病人实体类</param> public frm_Pasc(InPatientInfo patient, string sqlcondition) { InitializeComponent(); pt = patient; App.PascResault = ""; App.FormStytleSet(this, false); SqlConditions = sqlcondition; }
public frmCancleTurnIn(InPatientInfo inPatient) { InitializeComponent(); this.inPatientInfo = inPatient; App.FormStytleSet(this, false); //获得当前病区的空床 GetEmptyBed(); }