Ejemplo n.º 1
0
        /// <summary>
        /// 修改医保登记
        /// </summary>
        public void m_mthModifyReg()
        {
            frmYBRegisterZY objYBReg = new frmYBRegisterZY();

            objYBReg.strRegisterId = this.m_objViewer.strRegisterId;
            objYBReg.ShowDialog();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 安排床位
        /// </summary>
        public void m_mthArrangeBed()
        {
            if (m_objViewer.m_cmbBed.SelectedItem == null)
            {
                MessageBox.Show("床位为必选项!", "安排床位", MessageBoxButtons.OK, MessageBoxIcon.Information);
                m_objViewer.m_cmbBed.Focus();
                return;
            }

            if (m_objViewer.m_lsvPatientInfo.SelectedItems.Count < 1)
            {
                MessageBox.Show("病人为必选项!", "安排床位", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            if (m_objViewer.m_txtMaindoctor.Value == null)
            {
                MessageBox.Show("主治医生为必选项!", "安排床位", MessageBoxButtons.OK, MessageBoxIcon.Information);
                m_objViewer.m_txtMaindoctor.Focus();
                return;
            }

            if (m_objViewer.m_cboSTATE_INT.SelectedIndex == 0)
            {
                MessageBox.Show("病情不能为空!", "安排床位", MessageBoxButtons.OK, MessageBoxIcon.Information);
                m_objViewer.m_cboSTATE_INT.Focus();
                return;
            }

            clsT_Bse_Bed_VO bedVO = (clsT_Bse_Bed_VO)m_objViewer.m_cmbBed.SelectedItem;

            string strSex = m_objViewer.m_lsvPatientInfo.SelectedItems[0].SubItems[3].Text.Trim();

            if (bedVO.m_strSexName != "不限" && strSex != bedVO.m_strSexName)
            {
                if (MessageBox.Show("您确定将此" + strSex + "病人转到" + bedVO.m_strSexName + "病床吗?", "安排床位", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
                {
                    return;
                }
            }

            clsT_Opr_Bih_Transfer_VO p_objRecord = new clsT_Opr_Bih_Transfer_VO();

            p_objRecord.m_strTARGETDEPTID_CHR = m_objViewer.m_strDeptID;
            p_objRecord.m_strTARGETAREAID_CHR = m_objViewer.m_strAreaID;
            p_objRecord.m_strTARGETBEDID_CHR  = bedVO.m_strBEDID_CHR;
            p_objRecord.m_strREGISTERID_CHR   = (string)m_objViewer.m_lsvPatientInfo.SelectedItems[0].Tag;

            p_objRecord.m_strDES_VCHR         = m_objViewer.m_txtMaindoctor.Value;
            p_objRecord.m_strOPERATORID_CHR   = m_objViewer.LoginInfo.m_strEmpID;
            p_objRecord.m_strHisInpatientDate = m_objViewer.m_inAreaDate.Text;

            clsT_Opr_Bih_Register_VO objRegVO = new clsT_Opr_Bih_Register_VO();

            objRegVO.m_strREGISTERID_CHR = p_objRecord.m_strREGISTERID_CHR;
            objRegVO.m_intSTATE_INT      = this.m_objViewer.m_cboSTATE_INT.SelectedIndex;
            objRegVO.m_strOPERATORID_CHR = this.m_objViewer.LoginInfo.m_strEmpID;
            objRegVO.m_strCASEDOCTOR_CHR = p_objRecord.m_strDES_VCHR = m_objViewer.m_txtMaindoctor.Value;

            if (this.m_objViewer.m_txtNurse.Value != null)
            {
                objRegVO.m_strNurseOrderdic = this.m_objViewer.m_txtNurse.Value;

                if (this.m_objViewer.m_txtNurse.Text.Contains("特级"))
                {
                    objRegVO.m_intNursingClass = 0;
                }
                else if (this.m_objViewer.m_txtNurse.Text.Contains("一级"))
                {
                    objRegVO.m_intNursingClass = 1;
                }
                else if (this.m_objViewer.m_txtNurse.Text.Contains("二级"))
                {
                    objRegVO.m_intNursingClass = 2;
                }
                else if (this.m_objViewer.m_txtNurse.Text.Contains("三级"))
                {
                    objRegVO.m_intNursingClass = 3;
                }
            }
            else
            {
                objRegVO.m_strNurseOrderdic = "";
            }

            if (this.m_objViewer.m_txtEat.Value != null)
            {
                objRegVO.m_strEatOrderdic = this.m_objViewer.m_txtEat.Value;
            }
            else
            {
                objRegVO.m_strEatOrderdic = "";
            }

            try
            {
                long lngRes = m_objManage.m_lngArrangeBed(p_objRecord, objRegVO);
                if (lngRes > 0)
                {
                    MessageBox.Show("转入成功!", "安排床位", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);

                    if ((new clsDcl_BedAdmin()).IsYbReg(p_objRecord.m_strREGISTERID_CHR))
                    {
                        frmYBRegisterZY frmYb = new frmYBRegisterZY();
                        frmYb.IsNurseModify = true;
                        frmYb.strRegisterId = p_objRecord.m_strREGISTERID_CHR;
                        frmYb.ShowDialog();
                    }

                    m_mthGetEmptyBed();
                    m_objViewer.m_lsvPatientInfo.SelectedItems[0].Remove();
                    if (m_objViewer.m_lsvPatientInfo.Items.Count > 0)
                    {
                        m_objViewer.m_lsvPatientInfo.Items[0].Selected = true;
                    }
                    m_objViewer.m_intFlag = 1;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + "!", "安排床位失败", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                m_mthGetEmptyBed();
                m_mthGetTurnInNotAccept();
            }
        }