/// <summary> /// 病案室人员编辑首页(未归档) /// <auth>Yanqiao.Cai</auth> /// <date>2012-12-05</date> /// </summary> /// <param name="noofinpat">首页序号</param> /// <return></return> private void InitFirstPageEditFlag(string noofinpat) { try { editFlag = YD_BaseService.CheckIfQuatityControlPerson(DS_Common.currentUser.Id); //如果是病案人员则继续判断是否为未归档病历 if (editFlag) { editFlag = YD_BaseService.CheckRecordRebacked(noofinpat); } } catch (Exception ex) { throw new Exception(ex.Message); } }
/// <summary> /// 病案室人员编辑首页(未归档) /// <auth>Yanqiao.Cai</auth> /// <date>2012-12-05</date> /// </summary> /// <param name="noofinpat">首页序号</param> /// <return></return> private void InitFirstPageEditFlag(string noofinpat) { try { if (!string.IsNullOrEmpty(m_Host.FloderState) && (FloderState)Enum.Parse(typeof(FloderState), m_Host.FloderState) == FloderState.FirstPage) { editFlag = YD_BaseService.CheckIfQuatityControlPerson(DS_Common.currentUser.Id); ///如果是病案人员则继续判断是否为未归档病历 if (editFlag) { IsShowBackRecord = YD_BaseService.CheckRecordRebacked(noofinpat); } } } catch (Exception ex) { throw new Exception(ex.Message); } }
private Inpatient CurrentInpatient;//add by ywk private void btn_OK_Click(object sender, EventArgs e) { try { //设置当前病人(修复m_App病人丢失问题) if (null == m_App || null == m_App.CurrentPatientInfo || m_App.CurrentPatientInfo.NoOfFirstPage.ToString() != m_IemInfo.IemBasicInfo.NoOfInpat) { CurrentInpatient = YD_SqlService.GetPatientInfo(m_IemInfo.IemBasicInfo.NoOfInpat); } else { CurrentInpatient = m_App.CurrentPatientInfo; } GetUI(); //edit by 2012-12-20 张业兴 关闭弹出框只关闭提示框 //((ShowUC)this.Parent).Close(true, m_IemInfo); //点击确认按钮就将数据更新到数据库 //CurrentInpatient = m_App.CurrentPatientInfo; if (null != CurrentInpatient) { CurrentInpatient.ReInitializeAllProperties(); } IemMainPageManger manger = new IemMainPageManger(m_App, CurrentInpatient); manger.SaveData(m_IemInfo); //add by cyq 2012-12-05 病案室人员编辑后状态改为已归档 if (editFlag) { YD_BaseService.SetRecordsRebacked(int.Parse(CurrentInpatient.NoOfFirstPage.ToString().Trim())); } } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex); } }