private void mniFirstIllnessNote_Click(object sender, System.EventArgs e) { PrivilegeData.enmPrivilegeSF enmSF = (PrivilegeData.enmPrivilegeSF)Enum.Parse(typeof(PrivilegeData.enmPrivilegeSF), this.GetType().Name); #if FunctionPrivilege if (!MDIParent.s_blnCheckCurrentPrivilege(enmSF, PrivilegeData.enmPrivilegeOperation.AddOrModify)) { MDIParent.s_mthShowNotPermitMessage(); return; } #endif this.Cursor = Cursors.WaitCursor; if (MDIParent.m_objCurrentDepartment != null) { if (com.digitalwave.Emr.StaticObject.clsEMR_StaticObject.s_StrCurrentHospitalNO == "440104001") { #region 市一 if (MDIParent.m_objCurrentDepartment.m_strSHORTNO_CHR != null) { //满足市一中医科要求,暂时直接用科室的SHORTNO_CHR进行判断 if (MDIParent.m_objCurrentDepartment.m_strSHORTNO_CHR.Trim() == "1500000") { m_mthAddNewRecord((int)enmDiseaseTrackType.FirstIllnessNote_ZY); } else if (MDIParent.m_objCurrentDepartment.m_strSHORTNO_CHR.Trim() == "1030200") { bool blnYes = false; for (int i = 0; i < clsEMRLogin.m_ObjCurDeptOfEmpArr.Length; i++) { if (clsEMRLogin.m_ObjCurDeptOfEmpArr[i].strShortNo == "1500000") { blnYes = true; break; } } if (blnYes) { if (MessageBox.Show(this, "使用中医科首程请按\"确定\"!否则按\"取消\"!", "选择首次病程记录", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { m_mthAddNewRecord((int)enmDiseaseTrackType.FirstIllnessNote_ZY); } else { blnYes = false; } } if (!blnYes) { m_mthAddNewRecord((int)enmDiseaseTrackType.FirstIllnessNote); } } else { m_mthAddNewRecord((int)enmDiseaseTrackType.FirstIllnessNote); } } #endregion 市一 } else if (com.digitalwave.Emr.StaticObject.clsEMR_StaticObject.s_StrCurrentHospitalNO == "450101001")//佛二 { m_mthAddNewRecord((int)enmDiseaseTrackType.FirstIllnessNote); } else//其他 { m_mthAddNewRecord((int)enmDiseaseTrackType.FirstIllnessNote_XJ); } } this.Cursor = Cursors.Default; }