Ejemplo n.º 1
0
        private void dgvMember_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvMember.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
            {
                MemberModel memModel = new MemberModel();

                if (dgvMember.Rows[e.RowIndex].Cells[2].Value.ToString() != null)
                {
                    memModel.EmpID       = dgvMember.Rows[e.RowIndex].Cells[0].Value.ToString();
                    memModel.CompanyName = dgvMember.Rows[e.RowIndex].Cells[1].Value.ToString();
                    memModel.MemberCode  = dgvMember.Rows[e.RowIndex].Cells[2].Value.ToString();
                    memModel.LName       = dgvMember.Rows[e.RowIndex].Cells[3].Value.ToString();
                    memModel.FName       = dgvMember.Rows[e.RowIndex].Cells[4].Value.ToString();
                    memModel.MName       = dgvMember.Rows[e.RowIndex].Cells[5].Value.ToString();
                    memModel.BDate       = dgvMember.Rows[e.RowIndex].Cells[2].Value.ToString();
                    memModel.Age         = dgvMember.Rows[e.RowIndex].Cells[6].Value.ToString();
                    memModel.Gender      = dgvMember.Rows[e.RowIndex].Cells[8].Value.ToString();
                }
                else
                {
                    MessageBox.Show("There are no specified member code", "OCMS");
                }

                frmConsultation frmConsultation = new frmConsultation(memModel);
                frmConsultation.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 打开选中的会诊记录

        /// </summary>
        private void m_mthOpenConsultationRecord()
        {
            if (m_lsvResult.SelectedItems == null || m_lsvResult.SelectedItems.Count != 1)
            {
                return;
            }

            DataRowView objRow = m_lsvResult.SelectedItems[0].Tag as DataRowView;

            if (objRow == null)
            {
                return;
            }

            #region 设置当前病人
            //设置当前病人
            clsPatient objPatient = new clsPatient(objRow["inpatientid"].ToString(), objRow["HISINPATIENTID_CHR"].ToString(), null);
            objPatient.m_DtmSelectedHISInDate = Convert.ToDateTime(objRow["HISINPATIENTDATE"]);
            objPatient.m_DtmSelectedInDate    = Convert.ToDateTime(objRow["inpatientdate"]);

            //将选中病人设置为全局可见
            MDIParent.s_ObjCurrentPatient = objPatient;
            Exp::clsHospitalManagerDomain objDomain = new Exp::clsHospitalManagerDomain();
            iCareData.clsEmrDept_VO       objDeptNew;
            objDomain.m_lngGetSpecialDeptInfo(objRow["ASKCONSULTATIONDEPTID"].ToString(), out objDeptNew);
            if (objDeptNew != null)
            {
                MDIParent.m_objCurrentDepartment = objDeptNew;
                com.digitalwave.emr.BEDExplorer.frmHRPExplorer.objpCurrentDepartment = objDeptNew;
                objPatient.m_strDeptNewID = objDeptNew.m_strDEPTID_CHR;
            }
            clsPatientInBedInfo objNewBed = new clsPatientInBedInfo(objPatient);
            if (objNewBed != null && objNewBed.m_ObjLastSessionInfo != null)
            {
                if (objNewBed.m_ObjLastRoomInfo.m_intGetBedCount() > 0)
                {
                    objPatient.m_strBedCode = objNewBed.m_ObjLastRoomInfo.m_objGetBedByIndex(0).m_ObjBed.m_StrBedName;
                }
            }
            #endregion

            //打开会诊记录
            frmConsultation frmRecord = new frmConsultation();
            frmRecord.MdiParent   = clsEMRLogin.s_FrmMDI;
            frmRecord.WindowState = FormWindowState.Maximized;
            frmRecord.Show();
            objPatient.m_IntCharacter = 1;
            frmRecord.m_mthSetPatient(objPatient);
            MDIParent.s_ObjSaveCue.m_mthRemoveForm(frmRecord);
        }
Ejemplo n.º 3
0
        private void dgvMember_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Cursor.Current = Cursors.Default;

            //DISABLE CLICKING THE HEADER CODE
            if (e.RowIndex == -1)
            {
                return;
            }

            DataGridViewRow row = dgvMember.Rows[e.RowIndex];

            //END

            if (dgvMember.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
            {
                MemberModel memModel = new MemberModel();

                if (dgvMember.Rows[e.RowIndex].Cells[2].Value.ToString() != null)
                {
                    memModel.EmpID = dgvMember.Rows[e.RowIndex].Cells[0].Value.ToString() ?? "";

                    memModel.MemberCode = dgvMember.Rows[e.RowIndex].Cells[1].Value.ToString() ?? "";

                    memModel.LName = dgvMember.Rows[e.RowIndex].Cells[2].Value.ToString() ?? "";

                    memModel.FName = dgvMember.Rows[e.RowIndex].Cells[3].Value.ToString() ?? "";

                    memModel.MName = dgvMember.Rows[e.RowIndex].Cells[4].Value.ToString() ?? "";

                    memModel.BDate = dgvMember.Rows[e.RowIndex].Cells[5].Value.ToString() ?? "";

                    memModel.Age = dgvMember.Rows[e.RowIndex].Cells[6].Value.ToString() ?? "";

                    memModel.Gender = dgvMember.Rows[e.RowIndex].Cells[7].Value.ToString() ?? "";

                    memModel.CompanyName = dgvMember.Rows[e.RowIndex].Cells[8].Value.ToString() ?? "";
                }
                else
                {
                    MessageBox.Show("There are field with no member code", "OCMS");
                }

                frmConsultation frmConsultation = new frmConsultation(memModel);
                frmConsultation.ShowDialog();
            }
        }