Exemplo n.º 1
0
        public frmPrintLeaveNotice(clsBedManageVO p_bedManageVO, clsT_Opr_Bih_Leave_VO p_leaveVO)
        {
            InitializeComponent();

            this.m_bedManageVO = p_bedManageVO;
            this.m_leaveVO     = p_leaveVO;
        }
Exemplo n.º 2
0
        /// <summary>
        /// 控件赋值给Vo  {出院}
        /// </summary>
        /// <param name="objPatientVO"></param>
        private void ValueToVoForLeave(out clsT_Opr_Bih_Leave_VO objPatientVO)
        {
            objPatientVO = new clsT_Opr_Bih_Leave_VO();

            //入院登记流水号(200409010001)
            objPatientVO.m_strREGISTERID_CHR = m_objViewer.m_strRegisterID;
            //类型{1=治愈出院2=转院3=其它4=死亡}
            objPatientVO.m_strTYPE_INT = "0";
            if (m_objViewer.m_cbmTYPE.SelectedIndex != 0)
            {
                objPatientVO.m_strTYPE_INT = m_objViewer.m_cbmTYPE.SelectedIndex.ToString();
            }
            //出院科室
            objPatientVO.m_strOUTDEPTID_CHR = m_objViewer.m_strOutDeptID;

            //出院病区
            objPatientVO.m_strOUTAREAID_CHR = m_objViewer.m_strOutAreaID;
            objPatientVO.m_strOutAreaName   = m_objViewer.m_lblAREAID_CHR.Text;

            //出院病床
            objPatientVO.m_strOUTBEDID_CHR = m_objViewer.m_strOutBedID;

            //备注
            objPatientVO.m_strDES_VCHR = m_objViewer.m_txtDES.Text;

            //操作人ID
            objPatientVO.m_strOPERATORID_CHR = this.m_objViewer.LoginInfo.m_strEmpID;
            //操作人
            objPatientVO.m_strOperatorName = this.m_objViewer.LoginInfo.m_strEmpName;

            //修改日期,操作日期
            objPatientVO.m_strMODIFY_DAT = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");

            //状态(-1历史,0-无效,1有效)
            objPatientVO.m_intSTATUS_INT = 1;

            //出院方式	{0=预出院;1=实际出院}
            objPatientVO.m_intPSTATUS_INT = m_objViewer.m_cbmPSTATUS_INT.SelectedIndex - 1;

            //出院日期
            objPatientVO.m_strOUTHOSPITAL_DAT = Convert.ToDateTime(this.m_objViewer.m_dtpOutDate.Text).ToString("yyyy-MM-dd HH:mm:ss");

            //出院诊断
            objPatientVO.m_strDIAGNOSE_VCHR = m_objViewer.m_tbDiagnose.Text;

            //医保出院诊断
            objPatientVO.m_strINS_DIAGNOSE_VCHR = m_objViewer.m_tbInsDiagnose.Text;

            if (this.m_objViewer.m_ckbDiseasType.Checked == true)
            {
                objPatientVO.m_intDISEASETYPE_INT = 1;
            }
            else
            {
                objPatientVO.m_intDISEASETYPE_INT = 0;
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// 直接出院
        /// </summary>
        /// <param name="objPatientVO">[clsT_Opr_Bih_Leave_VO]</param>
        /// <returns></returns>
        public long LeaveHospital(clsT_Opr_Bih_Leave_VO objPatientVO)
        {
            long lngRes = 0;

            try
            {
                com.digitalwave.iCare.middletier.HIS.clsBihLeaHosSvc objSvc =
                    (com.digitalwave.iCare.middletier.HIS.clsBihLeaHosSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsBihLeaHosSvc));

                lngRes = objSvc.LeaveHospital(objPrincipal, objPatientVO);
                objSvc.Dispose();
            }
            catch (Exception e)
            {
                throw e;
            }

            return(lngRes);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 修改预出院日期
        /// </summary>
        /// <param name="p_RegisterId">住院登记号</param>
        /// <param name="p_OutDiagnose">出院诊断</param>
        /// <returns></returns>
        public long ModifyLeaveDate(DateTime p_dtNewDate, clsT_Opr_Bih_Leave_VO p_objLeave)
        {
            long lngRes = 0;

            try
            {
                com.digitalwave.iCare.middletier.HIS.clsBihLeaHosSvc objSvc =
                    (com.digitalwave.iCare.middletier.HIS.clsBihLeaHosSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsBihLeaHosSvc));

                lngRes = objSvc.ModifyLeaveDate(objPrincipal, p_dtNewDate, p_objLeave);
                objSvc.Dispose();
            }
            catch (Exception e)
            {
                throw e;
            }

            return(lngRes);
        }
Exemplo n.º 5
0
        /// <summary>
        /// 根据入院登记流水号查询有效的出院记录
        /// </summary>
        /// <param name="p_strRegisterid_chr">入院登记流水号</param>
        /// <param name="p_pstatus">标志 0 预出院;1 正式出院</param>
        /// <param name="p_objResult"></param>
        /// <returns></returns>
        public long GetLeaveByRegisterID(string p_strRegisterid, string p_pstatus, out clsT_Opr_Bih_Leave_VO p_objResult)
        {
            long lngRes = 0;

            try
            {
                com.digitalwave.iCare.middletier.HIS.clsBihLeaHosSvc objSvc =
                    (com.digitalwave.iCare.middletier.HIS.clsBihLeaHosSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsBihLeaHosSvc));

                lngRes = objSvc.GetLeaveByRegisterID(objPrincipal, p_strRegisterid, p_pstatus, out p_objResult);
                objSvc.Dispose();
            }
            catch (Exception e)
            {
                throw e;
            }

            return(lngRes);
        }
Exemplo n.º 6
0
        /// <summary>
        /// 根据入院登记ID获取病人预出院信息
        /// </summary>
        public void GetPatientPreLeaveInfo()
        {
            if (this.m_objViewer.m_ucPatientInfo.BihPatient_VO.RegisterID == "" || this.m_objViewer.m_ucPatientInfo.Status != 2)
            {
                this.m_objViewer.m_ucPatientInfo.m_mthReset();
                return;
            }

            p_objRrecord = null;
            long lngRes = m_objManage.GetPreLeaveByRegisterID(this.m_objViewer.m_ucPatientInfo.BihPatient_VO.RegisterID, out p_objRrecord);

            if (lngRes > 0 && p_objRrecord != null)
            {
                if (p_objRrecord.m_strOUTHOSPITAL_DAT != null && p_objRrecord.m_strOUTHOSPITAL_DAT != "")
                {
                    this.m_objViewer.m_dtpOldDate.Value = Convert.ToDateTime(p_objRrecord.m_strOUTHOSPITAL_DAT);
                    this.m_objViewer.m_txtRemark.Text   = p_objRrecord.m_strDES_VCHR;
                }
            }
            else
            {
                MessageBox.Show("对不起,找不到该病人的预出院信息!", "查找病人", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemplo n.º 7
0
 /// <summary>
 /// 设置出院Vo
 /// </summary>
 /// <param name="objItem"></param>
 /// <returns></returns>
 private void SetVoForLeave(out clsT_Opr_Bih_Leave_VO objItem)
 {
     objItem = new clsT_Opr_Bih_Leave_VO();
     //入院登记流水号(200409010001)
     objItem.m_strREGISTERID_CHR = m_strREGISTERID_CHR;
     //类型{1=治愈出院2=转院3=其它4=死亡}
     objItem.m_strTYPE_INT = m_objViewer.m_cboTYPE_INT.SelectedIndex.ToString();
     //出院科室
     objItem.m_strOUTDEPTID_CHR = m_objViewer.m_lblOUTAREAID_CHR.Tag.ToString();
     //出院病区
     objItem.m_strOUTAREAID_CHR = m_objViewer.m_lblOUTAREAID_CHR.Tag.ToString();
     //出院病床
     objItem.m_strOUTBEDID_CHR = m_objViewer.m_lblOUTBEDID_CHR.Tag.ToString();
     //备注
     objItem.m_strDES_VCHR = m_objViewer.m_txtDESC_VCHR.Text;
     //操作人
     objItem.m_strOPERATORID_CHR = m_strOperatorID;
     //修改日期,操作日期
     objItem.m_strMODIFY_DAT = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
     //状态(-1历史,0-无效,1有效)
     objItem.m_intSTATUS_INT = 1;
     //出院方式	{0=预出院;1=实际出院;}
     objItem.m_intPSTATUS_INT = m_objViewer.m_cboPSTATUS_INT.SelectedIndex;
 }