Exemplo n.º 1
0
        public new void Load(IEmrHost app)
        {
            try
            {
                _app = app;

                if (!string.IsNullOrEmpty(CurrentNoofinpat))
                {
                    CurrentInpatient = new Inpatient(Convert.ToDecimal(CurrentNoofinpat));
                }
                else if (_app.CurrentPatientInfo != null)
                {
                    CurrentInpatient = _app.CurrentPatientInfo;
                }
                else
                {
                    return;
                }

                CurrentInpatient.ReInitializeAllProperties();

                this.dateBegin.DateTime = DateTime.Now.AddMonths(-1);
                this.dateEnd.DateTime   = DateTime.Now;
                string begintime        = dateBegin.DateTime.ToString("yyyy-MM-dd");
                string endtime          = dateEnd.DateTime.ToString("yyyy-MM-dd");
                string NoOfHisFirstPage = CurrentInpatient.NoOfHisFirstPage.ToString();
                GetInpatientSouce(begintime, endtime, NoOfHisFirstPage);
            }
            catch (Exception ex)
            {
                MyMessageBox.Show(1, ex);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 确定事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        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 = DS_SqlService.GetPatientInfo(m_IemInfo.IemBasicInfo.NoOfInpat);
                }
                else
                {
                    CurrentInpatient = m_App.CurrentPatientInfo;
                }

                GetUI();
                if (null != CurrentInpatient)
                {
                    CurrentInpatient.ReInitializeAllProperties();
                }
                IemMainPageManger manger = new IemMainPageManger(m_App, CurrentInpatient);
                manger.SaveData(m_IemInfo);

                //add by cyq 2012-12-05 病案室人员编辑后状态改为已归档
                if (editFlag)
                {
                    DS_BaseService.SetRecordsRebacked(int.Parse(CurrentInpatient.NoOfFirstPage.ToString().Trim()));
                }
            }
            catch (Exception ex)
            {
                MyMessageBox.Show(1, ex);
            }
        }
Exemplo n.º 3
0
        public new void Load(IYidanEmrHost app)
        {
            DataAccess.App = app;
            m_app = app;
            if (!string.IsNullOrEmpty(CurrentNoofinpat))
            {
                CurrentInpatient = new Common.Eop.Inpatient(Convert.ToDecimal(CurrentNoofinpat));
            }
            else if (m_app.CurrentPatientInfo != null)
            {
                CurrentInpatient = m_app.CurrentPatientInfo;
            }
            else
            {
                return;
            }
            CurrentInpatient.ReInitializeAllProperties();

            GetConsultationEntity();
            if (m_ConsultationID == "")
                return;
            ////一般会诊
            //if (m_ConsultTypeID == "6501")
            //{
            //    BindData();
            //    FillUI();
            //}
            ////多科会诊
            //else
            //{
                ShowConsultationMultiply();
            //}
            PanelControlInit();
        }
Exemplo n.º 4
0
        public new void Load(IEmrHost app)
        {
            m_Host = app;
            if (!string.IsNullOrEmpty(CurrentNoofinpat))
            {
                CurrentInpatient = new Common.Eop.Inpatient(Convert.ToDecimal(CurrentNoofinpat));
            }
            else if (m_Host.CurrentPatientInfo != null)
            {
                CurrentInpatient = m_Host.CurrentPatientInfo;
            }
            else
            {
                return;
            }
            CurrentInpatient.ReInitializeAllProperties();

            manger = new IemMainPageManger(m_Host, CurrentInpatient);
            info   = manger.GetIemInfo();

            LoadForm();

            //病案室人员拥有编辑病案首页的权限(未归档病历)
            InitFirstPageEditFlag(null == CurrentInpatient ? "" : CurrentInpatient.NoOfFirstPage.ToString());
            if (editFlag)
            {
                SetButtonsEditState(true);
            }
        }
Exemplo n.º 5
0
        private Inpatient CurrentInpatient;//add by ywk
        private void btn_OK_Click(object sender, EventArgs e)
        {
            ((ShowUC)this.Parent).Close(true, m_IemInfo);
            //点击确认按钮就将数据更新到数据库
            CurrentInpatient = m_App.CurrentPatientInfo;
            CurrentInpatient.ReInitializeAllProperties();
            IemMainPageManger manger = new IemMainPageManger(m_App, CurrentInpatient);

            manger.SaveData(m_IemInfo);
        }
Exemplo n.º 6
0
        private Inpatient CurrentInpatient;//add by ywk
        private void btn_OK_Click(object sender, EventArgs e)
        {
            GetUI();
            ((ShowUC)this.Parent).Close(true, m_IemInfo);
            //病案首页费用,确认后加到电子病历的表中 add by ywk 2012年10月16日 18:41:57
            CurrentInpatient = m_App.CurrentPatientInfo;
            CurrentInpatient.ReInitializeAllProperties();
            IemMainPageManger manger = new IemMainPageManger(m_App, CurrentInpatient);

            manger.SaveData(m_IemInfo);
        }
Exemplo n.º 7
0
 /// <summary>
 /// 确定事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btn_OK_Click(object sender, EventArgs e)
 {
     try
     {
         GetUI();
         CurrentInpatient = m_App.CurrentPatientInfo;
         CurrentInpatient.ReInitializeAllProperties();
         IemMainPageManger manger = new IemMainPageManger(m_App, CurrentInpatient);
         manger.SaveData(m_IemInfo);
         btn_Close_Click(sender, e);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 8
0
        private Inpatient CurrentInpatient;//add by ywk
        /// <summary>
        /// edit by xlb 2013-01-23
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_OK_Click(object sender, EventArgs e)
        {
            try
            {
                string message = "";
                bool   isSuit  = Validate(ref message);
                if (!isSuit)
                {
                    //throw new Exception(message);//在这抛异常,岂不是抛出了系统级,应抛出信息为message
                    //edit by ywk 2013年2月26日8:42:25
                    DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(message);
                    return;
                }
                //设置当前病人(修复m_App病人丢失问题)
                if (null == m_App || null == m_App.CurrentPatientInfo || m_App.CurrentPatientInfo.NoOfFirstPage.ToString() != m_IemInfo.IemBasicInfo.NoOfInpat)
                {
                    CurrentInpatient = DS_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)
                {
                    DS_BaseService.SetRecordsRebacked(int.Parse(CurrentInpatient.NoOfFirstPage.ToString().Trim()));
                }
            }
            catch (Exception ex)
            {
                DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex);
            }
        }
Exemplo n.º 9
0
        private Inpatient CurrentInpatient;//add by ywk

        /// <summary>
        /// 保存事件保存数据关闭窗体
        /// Modify by xlb 2013-05-27
        /// 保存不关闭窗体
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_OK_Click(object sender, EventArgs e)
        {
            try
            {
                GetUI();
                //((ShowUC)this.Parent).Close(true, m_IemInfo);

                //点击确认按钮就将数据更新到数据库
                CurrentInpatient = m_App.CurrentPatientInfo;
                CurrentInpatient.ReInitializeAllProperties();
                IemMainPageManger manger = new IemMainPageManger(m_App, CurrentInpatient);
                manger.SaveData(m_IemInfo);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 10
0
 public new void Load(IEmrHost app)
 {
     //DataAccess.App = app;
     m_app = app;
     if (!string.IsNullOrEmpty(CurrentNoofinpat))
     {
         CurrentInpatient = new DrectSoft.Common.Eop.Inpatient(Convert.ToDecimal(CurrentNoofinpat));
     }
     else if (m_app.CurrentPatientInfo != null)
     {
         CurrentInpatient = m_app.CurrentPatientInfo;
     }
     else
     {
         return;
     }
     CurrentInpatient.ReInitializeAllProperties();
     PanelControlInit();
     InitControl();
 }
Exemplo n.º 11
0
        public new void Load(IYidanEmrHost app)
        {
            m_Host = app;
            if (!string.IsNullOrEmpty(CurrentNoofinpat))
            {
                CurrentInpatient = new Common.Eop.Inpatient(Convert.ToDecimal(CurrentNoofinpat));
            }
            else if (m_Host.CurrentPatientInfo != null)
            {
                CurrentInpatient = m_Host.CurrentPatientInfo;
            }
            else
            {
                return;
            }
            CurrentInpatient.ReInitializeAllProperties();

            manger = new IemMainPageManger(m_Host, CurrentInpatient);
            info   = manger.GetIemInfo();
            LoadForm();
        }
Exemplo n.º 12
0
        private Inpatient CurrentInpatient;//add by ywk

        /// <summary>
        /// 确定事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        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 = DS_SqlService.GetPatientInfo(m_IemInfo.IemBasicInfo.NoOfInpat);
                }
                else
                {
                    CurrentInpatient = m_App.CurrentPatientInfo;
                }

                GetUI();
                //edit by 2012-12-20 张业兴 关闭弹出框只关闭提示框
                //((ShowUC)this.Parent).Close(true, m_IemInfo);
                //病案首页费用,确认后加到电子病历的表中 add by ywk 2012年10月16日 18:41:57
                //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)
                {
                    DS_BaseService.SetRecordsRebacked(int.Parse(CurrentInpatient.NoOfFirstPage.ToString().Trim()));
                }
            }
            catch (Exception ex)
            {
                DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex);
            }
        }
Exemplo n.º 13
0
 public void Load(IEmrHost m_app)
 {
     try
     {
         _app = m_app;
         if (!string.IsNullOrEmpty(CurrentNoofinpat))
         {
             CurrentInpatient = new Inpatient(Convert.ToDecimal(CurrentNoofinpat));
         }
         else if (_app.CurrentPatientInfo != null)
         {
             CurrentInpatient = _app.CurrentPatientInfo;
         }
         else
         {
             return;
         }
         CurrentInpatient.ReInitializeAllProperties();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 14
0
        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 = DS_SqlService.GetPatientInfo(m_IemInfo.IemBasicInfo.NoOfInpat);
                }
                else
                {
                    CurrentInpatient = m_App.CurrentPatientInfo;
                }

                //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)
                {
                    DS_BaseService.SetRecordsRebacked(int.Parse(CurrentInpatient.NoOfFirstPage.ToString().Trim()));
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Exemplo n.º 15
0
 internal void PatientChanged(Inpatient inpatient)
 {
     CurrentPat = inpatient;
     CurrentPat.ReInitializeAllProperties();
 }