Exemplo n.º 1
0
        /// <summary>
        /// 删除申请单内容

        /// </summary>
        private void m_mthDeleteValue()
        {
            if (m_objRequisitionValue == null)
            {
                return;
            }

            clsEMR_HIS_CheckRequisitionDomain objDomain = new clsEMR_HIS_CheckRequisitionDomain();
            long lngRes = objDomain.m_lngDeleteRequisition(clsEMR_StaticObject.s_ObjCurrentEmployee.m_strEMPID_CHR, m_objRequisitionValue.m_strREGISTERID_CHR, m_objRequisitionValue.m_strORDERID_CHR);

            objDomain = null;

            if (lngRes > 0)
            {
                m_mthClear();
                DialogResult drSuccess = MessageBox.Show("删除成功!" + System.Environment.NewLine + "是否关闭当前窗体?", "检查申请单", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                if (drSuccess == DialogResult.Yes)
                {
                    MDIParent.s_ObjSaveCue.m_mthRemoveForm(this);
                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("删除失败!", "检查申请单", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取申请单内容

        /// </summary>
        private void m_mthGetRequisition()
        {
            if (m_objRequisitionValue == null)
            {
                clsEMR_HIS_CheckRequisitionDomain objDomain = new clsEMR_HIS_CheckRequisitionDomain();
                long lngRes = objDomain.m_lngGetCheckRequisitionValue(m_strRegisterID, m_strOrderID, out m_objRequisitionValue);
                objDomain = null;
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// 获取指定病人的所有申请单内容
        /// </summary>
        /// <returns></returns>
        public clsEMR_HIS_CheckRequisitionValue[] m_objGetAllCheckRequisition()
        {
            clsEMR_HIS_CheckRequisitionValue[] objValue = null;

            clsEMR_HIS_CheckRequisitionDomain objDomain = new clsEMR_HIS_CheckRequisitionDomain();
            long lngRes = objDomain.m_lngGetCheckRequisitionValue(m_strRegisterID, out objValue);

            objDomain = null;
            return(objValue);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 删除检查申请单内容
        /// </summary>
        public void m_mthDeleteCheckRequisition()
        {
            clsEMR_HIS_CheckRequisitionDomain objDomain = new clsEMR_HIS_CheckRequisitionDomain();
            long lngRes = objDomain.m_lngDeleteRequisition(clsEMR_StaticObject.s_ObjCurrentEmployee.m_strEMPID_CHR, m_objValue.m_strREGISTERID_CHR, m_objValue.m_strORDERID_CHR);

            objDomain = null;

            if (lngRes > 0)
            {
                m_objValue = null;
                System.Windows.Forms.MessageBox.Show("删除成功!", "检查申请单", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("删除失败!", "检查申请单", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// 保存申请单内容

        /// </summary>
        private void m_mthSaveValue()
        {
            clsEMR_HIS_CheckRequisitionDomain objDomain = new clsEMR_HIS_CheckRequisitionDomain();
            long lngRes = 0;

            if (m_objRequisitionValue == null)
            {
                m_objRequisitionValue = new clsEMR_HIS_CheckRequisitionValue();
                m_objRequisitionValue.m_dtmRECORDDATE_DAT          = m_dtpRecordDate.Value;
                m_objRequisitionValue.m_strPHYSEXAM_VCHR           = m_txtPhysExam.Text;
                m_objRequisitionValue.m_strCASESUMMARY_VCHR        = m_txtCaseSummary.Text;
                m_objRequisitionValue.m_strADMISSIONDIAGNOSIS_VCHR = m_txtAdmissionDiagnosis.Text;
                m_objRequisitionValue.m_strCREATEUSERID            = clsEMR_StaticObject.s_ObjCurrentEmployee.m_strEMPID_CHR;
                m_objRequisitionValue.m_strREGISTERID_CHR          = m_strRegisterID;
                m_objRequisitionValue.m_strORDERID_CHR             = m_strOrderID;
                lngRes = objDomain.m_lngAddNewRequisition(m_objRequisitionValue);
            }
            else
            {
                m_objRequisitionValue.m_dtmRECORDDATE_DAT          = m_dtpRecordDate.Value;
                m_objRequisitionValue.m_strPHYSEXAM_VCHR           = m_txtPhysExam.Text;
                m_objRequisitionValue.m_strCASESUMMARY_VCHR        = m_txtCaseSummary.Text;
                m_objRequisitionValue.m_strADMISSIONDIAGNOSIS_VCHR = m_txtAdmissionDiagnosis.Text;
                m_objRequisitionValue.m_strREGISTERID_CHR          = m_strRegisterID;
                m_objRequisitionValue.m_strORDERID_CHR             = m_strOrderID;
                lngRes = objDomain.m_lngModifyRequisition(m_objRequisitionValue);
            }
            objDomain = null;

            if (lngRes > 0)
            {
                DialogResult drSuccess = MessageBox.Show("保存成功!" + System.Environment.NewLine + "是否关闭当前窗体?", "检查申请单", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                if (drSuccess == DialogResult.Yes)
                {
                    MDIParent.s_ObjSaveCue.m_mthRemoveForm(this);
                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("保存失败!", "检查申请单", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }