Example #1
0
 private void FrmRegister_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!_isSure)
     {
         _currentPatient = new HIS.MZDoc_BLL.Patient(new HIS.Model.MZ_PatList());
     }
 }
Example #2
0
 public FrmZyInpatReg(HIS.MZDoc_BLL.Patient patient, User user, Deptment deptment)
 {
     InitializeComponent();
     this._patient  = patient;
     this._user     = user;
     this._deptment = deptment;
 }
Example #3
0
 //选择已有病人
 private void lVPatList_DoubleClick(object sender, EventArgs e)
 {
     if (lVPatList.SelectedItems != null && lVPatList.SelectedItems.Count > 0)
     {
         _currentPatient = new HIS.MZDoc_BLL.Patient((HIS.Model.MZ_PatList)lVPatList.SelectedItems[0].Tag);
         ShowPatInfo();
     }
 }
Example #4
0
 public FrmPatInfoEdit(long currentUserId, long currentDeptId, string chineseName, HIS.MZDoc_BLL.Patient patient)
 {
     InitializeComponent();
     _currentUser           = new User(currentUserId);
     _currentDept           = new Deptment(currentDeptId);
     this.Text              = chineseName;
     this.FormTitle         = chineseName;
     this._currentPatient   = patient;
     this.tBVisitNo.Enabled = false;
 }
Example #5
0
 private void tBVisitNo_KeyPress(object sender, KeyPressEventArgs e)
 {
     if ((int)e.KeyChar == 13 && this.tBVisitNo.Text.Trim() != "")
     {
         this._currentPatient = new HIS.MZDoc_BLL.Patient(this.tBVisitNo.Text.Trim());
         if (this._currentPatient.PatList.PatListID == 0)
         {
             MessageBox.Show("找不到与该门诊号对应的病人信息!");
             return;
         }
         ShowPatInfo();
     }
 }
Example #6
0
        /// <summary>
        /// 获得病人基本信息
        /// </summary>
        private void GetPatInfo()
        {
            _currentPatient             = new HIS.MZDoc_BLL.Patient();
            _currentPatient.FeeTypeName = this.cboFeeType.Text.Trim();

            _currentPatient.PatientInfo            = new HIS.Model.PatientInfo();
            _currentPatient.PatientInfo.PatName    = this.txtName.Text.Trim();
            _currentPatient.PatientInfo.PatSex     = this.cboSex.Text.Trim();
            _currentPatient.PatientInfo.PatNumber  = this.txtIdentityCard.Text.Trim();
            _currentPatient.PatientInfo.PatTEL     = this.txtTel.Text.Trim();
            _currentPatient.PatientInfo.PatAddress = this.txtAddress.Text.Trim();
            _currentPatient.PatientInfo.PATJOB     = this.cboJob.Text.Trim();
        }
Example #7
0
        //查询处方
        private void dGVEResult_CurrentCellChanged(object sender, EventArgs e)
        {
            DataTable table = (DataTable)dGVEResult.DataSource;

            if (table != null && dGVEResult.CurrentCell != null && table.Rows.Count > dGVEResult.CurrentCell.RowIndex)
            {
                this.Cursor = Cursors.WaitCursor;
                HIS.MZDoc_BLL.Patient patient = new HIS.MZDoc_BLL.Patient((HIS.Model.MZ_PatList)HIS.MZDoc_BLL.Public.Function.DataRowToObject <HIS.Model.MZ_PatList>(table.Rows[dGVEResult.CurrentCell.RowIndex]));
                dGVEMain.AutoGenerateColumns = false;

                DataTable tablePre = _isSkinTestProcess ? patient.GetSkinTestPres() : patient.GetPrescription(Convert.ToInt64(table.Rows[dGVEResult.CurrentCell.RowIndex]["PRES_DOC"]));
                this.dGVEMain.DataSource = tablePre;
                SetPresGridViewColor(tablePre);
                this.Cursor = Cursors.Default;
            }
        }
 private void tBVisitNo_KeyPress(object sender, KeyPressEventArgs e)
 {
     if ((int)e.KeyChar == 13)
     {
         string searchValue = tBVisitNo.Text.Trim();
         if (searchValue != "")
         {
             _currentPatient = new HIS.MZDoc_BLL.Patient(searchValue);
             ShowPatientInfo();
             if (_currentPatient.PatList.PatListID == 0)
             {
                 MessageBox.Show("找不到与该门诊号对应的病人信息!", "提示");
             }
         }
     }
 }
 private void btRefresh_Click(object sender, EventArgs e)
 {
     if (_currentPatient == null || _currentPatient.PatList == null)
     {
         string searchValue = tBVisitNo.Text.Trim();
         if (searchValue != "")
         {
             _currentPatient = new HIS.MZDoc_BLL.Patient(searchValue);
             ShowPatientInfo();
             if (_currentPatient.PatList.PatListID == 0)
             {
                 MessageBox.Show("找不到与该门诊号对应的病人信息!", "提示");
             }
         }
     }
     else
     {
         ShowPatientInfo();
     }
 }
 private void _lvwPatientList_DoubleClick(object sender, EventArgs e)
 {
     _currentPatient = new HIS.MZDoc_BLL.Patient((HIS.Model.MZ_PatList)_lvwPatientList.SelectedItems[0].Tag);
     ShowPatientInfo();
 }