/// <summary> /// 根据住院号得到病人信息 /// </summary> /// <param name="CureNo">住院号</param> /// <returns></returns> public static HIS.Model.ZY_PatList GetPatInfo(string CureNo) { ZY_PatList zypl = new ZY_PatList(oleDb); zypl = zypl.GetPatInfo(CureNo); if (zypl == null) { throw new Exception("请输入正确住院号!"); } HIS.Model.ZY_PatList zyp = new HIS.Model.ZY_PatList(); zyp = (HIS.Model.ZY_PatList)HIS.SYSTEM.PubicBaseClasses.ApiFunction.ObjectToObj(zypl, zyp); return(zyp); }
/// <summary> /// 根据住院号加载病人的信息 /// </summary> public void GetInpatNo() { ZY_PatList zypl = zyPatlist.GetPatInfo(IfrmCostView.InpatNo); if (zypl != null) { if (zypl.PatType == "4" || zypl.PatType == "5") { throw new Exception("您输入的住院号病人已出院!"); } zyPatlist = zypl; IfrmCostView.zyPatList = zyPatlist; IfrmCostView.ChargePatData(); } else { IfrmCostView.InpatNo = "0"; throw new Exception("您输入的住院号病人不存在!"); } }
/// <summary> /// 根据住院号查询病人 /// </summary> /// <returns></returns> public bool InPatKeyDown() { zy_Patlist = zy_Patlist.GetPatInfo(view.InpatNo); if (zy_Patlist != null) { if (zy_Patlist.PatType == "1" || zy_Patlist.PatType == "2") { view.BindPatControlData = zy_Patlist; icM.PatListID = zy_Patlist.PatListID; view.BindPatFeeControlData = icM.GetPatFee(); return(true); } return(false); } else { view.InpatNo = "0"; throw new Exception("您输入的住院号病人不存在!"); } }
/// <summary> /// 入院 /// </summary> /// <returns></returns> public bool RegPat() { zy_Patlist = view.zyPatList; view.InpatNo = zy_Patlist.GetPatNo();//系统自动产生住院号 注释掉就手工产生 ZY_PatList zyp = zy_Patlist.GetPatInfo(view.InpatNo); //判断住院号是否存在 if (zyp != null && (zyp.PatType == "1" || zyp.PatType == "2")) { throw new Exception("您输入的住院号是在院病人,请核对正确!"); } zy_Patlist.CureNo = view.InpatNo; zy_Patlist.patientInfo.CureNo = zy_Patlist.CureNo; zy_Patlist.CurrDeptCode = ""; //经管直接跳到在床状态 //if (zyConfig008 == 0) //{ // zy_Patlist.PatType = "1"; //} //else //{ // zy_Patlist.PatType = "2"; //} zy_Patlist.PatType = "1";//update zenghao 091013 //没和农合做接口 暂时不用 //HIS.ZY_BLL.OP_PatientObject.NccmCheck_SavePatientInfo(zy_Patlist); zy_Patlist.Add();//HIS.ZY_BLL.OP_PatientObject.SavePatientInfo(zy_Patlist.PatientInfo, zy_Patlist); view.zyPatList = zy_Patlist; //界面显示住院号 //刷新病人列表 BrushPatList(); return(true); }
/// <summary> /// 住院号搜索病人 /// </summary> public void KeyDownCureNo() { ZY_PatList zyP = zy_Patlist.GetPatInfo(view.InpatNo); view.zyPatList = zyP; }