示例#1
0
 /// <summary>
 /// 打开会诊申请窗体
 /// Add xlb 2013-03-01
 /// </summary>
 private bool InitFormConsultApply(string consultApplySn, bool readOnly /*是否只读*/)
 {
     try
     {
         FormApplyForMultiply formapply = new FormApplyForMultiply(noofinpat, m_app, consultApplySn, readOnly /*只读*/);
         if (formapply == null)
         {
             return(false);
         }
         formapply.StartPosition = FormStartPosition.CenterScreen;
         formapply.ShowDialog();
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
        /// <summary>
        /// 根据会诊信息状态打开相应的界面
        /// Add by xlb 2013-04-01
        /// </summary>
        /// <param name="rowHandel"></param>
        private void ShowConsultInfo(int rowHandel)
        {
            try
            {
                DataRow dataRow = gridViewList.GetDataRow(rowHandel) as DataRow;
                if (dataRow == null)
                {
                    return;
                }
                string           noOfFirstPage  = dataRow["NoOfInpat"].ToString();
                string           consultTypeID  = dataRow["ConsultTypeID"].ToString();
                string           consultApplySn = dataRow["ConsultApplySn"].ToString();
                string           stateID        = dataRow["StateID"].ToString();
                FrmRecordConsult frmRecord      = new FrmRecordConsult();
                DataTable        dtReord        = GetConsultationDepartmentBySN(consultApplySn);

                if (stateID == Convert.ToString((int)DrectSoft.Core.Consultation.NEW.Enum.ConsultStatus.WaitApprove))//待审核
                {
                    FrmConsultForReview frmApprove = new FrmConsultForReview(noOfFirstPage, m_app, consultApplySn, true /*只读*/);
                    if (frmApprove == null)
                    {
                        return;
                    }
                    frmApprove.StartPosition = FormStartPosition.CenterParent;
                    frmApprove.ShowDialog();
                }
                else if (stateID == Convert.ToString((int)DrectSoft.Core.Consultation.NEW.Enum.ConsultStatus.WaitConsultation))//待会诊
                {
                    if (dtReord.Rows.Count > 1)
                    {
                        frmRecord = new FrmRecordConsult(noOfFirstPage, consultApplySn, m_app, true, ConsultRecordForWrite.MultiEmployee);
                    }
                    else
                    {
                        frmRecord = new FrmRecordConsult(noOfFirstPage, consultApplySn, m_app, true);
                    }
                    if (frmRecord == null)
                    {
                        return;
                    }
                    frmRecord.StartPosition = FormStartPosition.CenterParent;
                    frmRecord.ShowDialog();
                }
                else if (stateID == Convert.ToString((int)DrectSoft.Core.Consultation.NEW.Enum.ConsultStatus.CancelConsultion))//已取消
                {
                    FormApplyForMultiply frmapply = new FormApplyForMultiply(noOfFirstPage, m_app, consultApplySn, true);
                    if (frmapply == null)
                    {
                        return;
                    }
                    frmapply.StartPosition = FormStartPosition.CenterParent;
                    frmapply.ShowDialog();
                }
                else if (stateID == Convert.ToString((int)DrectSoft.Core.Consultation.NEW.Enum.ConsultStatus.Reject))//否决 弹出申请页面
                {
                    FormApplyForMultiply frmapply = new FormApplyForMultiply(noOfFirstPage, m_app, consultApplySn, true);
                    if (frmapply == null)
                    {
                        return;
                    }
                    frmapply.StartPosition = FormStartPosition.CenterParent;
                    frmapply.ShowDialog();
                }
                else if (stateID == Convert.ToString((int)DrectSoft.Core.Consultation.NEW.Enum.ConsultStatus.RecordeSave) || stateID == Convert.ToString((int)DrectSoft.Core.Consultation.NEW.Enum.ConsultStatus.RecordeComplete))//完成,保存
                {
                    if (dtReord.Rows.Count > 1)
                    {
                        frmRecord = new FrmRecordConsult(noOfFirstPage, consultApplySn, m_app, true, ConsultRecordForWrite.MultiEmployee);
                    }
                    else
                    {
                        frmRecord = new FrmRecordConsult(noOfFirstPage, consultApplySn, m_app, true);
                    }
                    if (frmRecord == null)
                    {
                        return;
                    }
                    frmRecord.StartPosition = FormStartPosition.CenterParent;
                    frmRecord.ShowDialog();
                }
                else if (stateID == Convert.ToString((int)DrectSoft.Core.Consultation.NEW.Enum.ConsultStatus.ApplySave))//会诊申请保存 弹出申请页面不可编辑
                {
                    FormApplyForMultiply frmapply = new FormApplyForMultiply(noOfFirstPage, m_app, consultApplySn, true);
                    if (frmapply == null)
                    {
                        return;
                    }
                    frmapply.StartPosition = FormStartPosition.CenterParent;
                    frmapply.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#3
0
        /// <summary>
        /// 显示会诊信息
        /// </summary>
        private void ShowConsultationInfo()
        {
            DataRow dr = gridViewList.GetDataRow(gridViewList.FocusedRowHandle);

            if (dr != null)
            {
                string           noOfFirstPage  = dr["NoOfInpat"].ToString();
                string           consultTypeID  = dr["ConsultTypeID"].ToString();
                string           consultApplySn = dr["ConsultApplySn"].ToString();
                string           stateID        = dr["StateID"].ToString();
                FrmRecordConsult frmRecord      = new FrmRecordConsult();
                DataTable        dtReord        = GetConsultationDepartmentBySN(consultApplySn);
                #region OLD
                //在会诊清单模块只有查询会诊信息功能,将审核与填写会诊信息功能移除
                //add by yxy
                //if (consultTypeID == Convert.ToString((int)ConsultType.One))
                //{
                //    if (stateID == Convert.ToString((int)ConsultStatus.WaitApprove)
                //        || stateID == Convert.ToString((int)ConsultStatus.WaitConsultation) //  待会诊 作废
                //        || stateID == Convert.ToString((int)ConsultStatus.Reject))//否决
                //    {
                //        FormApproveForOne formApprove = new FormApproveForOne(noOfFirstPage, m_App, consultApplySn);
                //        //todo why待审签的审签信息要隐藏审核按钮?
                //        formApprove.ReadOnlyControl();
                //        formApprove.StartPosition = FormStartPosition.CenterParent;
                //        formApprove.ShowDialog();
                //    }
                //    //else if (stateID == Convert.ToString((int)ConsultStatus.WaitConsultation) //  待会诊 作废
                //    //    || stateID == Convert.ToString((int)ConsultStatus.Reject))
                //    //{
                //    //    FormApproveForOne formApprove = new FormApproveForOne(noOfFirstPage, m_App, consultApplySn);
                //    //    //todo why待审签的审签信息要隐藏审核按钮?
                //    //    formApprove.ReadOnlyControl();
                //    //    formApprove.StartPosition = FormStartPosition.CenterParent;
                //    //    formApprove.ShowDialog();
                //    //}
                //    else if (stateID == Convert.ToString((int)ConsultStatus.RecordeSave) || stateID == Convert.ToString((int)ConsultStatus.RecordeComplete))
                //    {
                //        FormRecordForOne formRecord = new FormRecordForOne(noOfFirstPage, m_App, consultApplySn);
                //        formRecord.ReadOnlyControl();
                //        formRecord.StartPosition = FormStartPosition.CenterParent;
                //        formRecord.ShowDialog();
                //        //FormRecordForOne formRecordForOne = new FormRecordForOne(noOfFirstPage, m_App, consultApplySn);
                //        //formRecordForOne.StartPosition = FormStartPosition.CenterParent;
                //        //formRecordForOne.ShowDialog();
                //    }
                //}
                //else
                //{

                //if (stateID == Convert.ToString((int)ConsultStatus.WaitApprove)
                //    || stateID == Convert.ToString((int)ConsultStatus.WaitConsultation) //待签核 待会诊
                //    || stateID == Convert.ToString((int)ConsultStatus.Reject))//否决
                //{
                //    FormApproveForMultiply formApprove = new FormApproveForMultiply(noOfFirstPage, m_App, consultApplySn);
                //    formApprove.ReadOnlyControl();
                //    formApprove.StartPosition = FormStartPosition.CenterParent;
                //    formApprove.ShowDialog();
                //}
                //else if (stateID == Convert.ToString((int)ConsultStatus.RecordeSave) || stateID == Convert.ToString((int)ConsultStatus.RecordeComplete))
                //{
                //    FormRecordForMultiply formRecord = new FormRecordForMultiply(noOfFirstPage, m_App, consultApplySn);
                //    //todo why待审签的审签信息要隐藏审核按钮?
                //    //将审核与填写会诊信息功能移除,在对应的会诊记录与待审核的清单模块
                //    formRecord.ReadOnlyControl();
                //    formRecord.StartPosition = FormStartPosition.CenterParent;
                //    formRecord.ShowDialog();
                //}
                #endregion

                if (stateID == Convert.ToString((int)ConsultStatus.WaitApprove))//待审核
                {
                    FrmConsultForReview frmApprove = new FrmConsultForReview(noOfFirstPage, m_App, consultApplySn, true /*只读*/);
                    if (frmApprove == null)
                    {
                        return;
                    }
                    frmApprove.StartPosition = FormStartPosition.CenterParent;
                    frmApprove.ShowDialog();
                }
                else if (stateID == Convert.ToString((int)ConsultStatus.WaitConsultation))//待会诊
                {
                    #region 注销 by xlb 2013-03-08
                    //待会诊的现在改为只能申请人进行填写会诊意见
                    //if (dr["applyuser"].ToString() == m_App.User.Id)// 当前登录人是申请人,可以进行审核操作
                    //{
                    //    FormRecordForMultiply formRecrodForMultiply = new FormRecordForMultiply(noOfFirstPage, m_App, consultApplySn);
                    //    formRecrodForMultiply.StartPosition = FormStartPosition.CenterParent;
                    //    formRecrodForMultiply.ShowDialog();
                    //}
                    //else
                    //{
                    //FormRecordForMultiply formRecrodForMultiply = new FormRecordForMultiply(noOfFirstPage, m_App, consultApplySn);
                    //formRecrodForMultiply.StartPosition = FormStartPosition.CenterParent;
                    //formRecrodForMultiply.ReadOnlyControl();
                    //formRecrodForMultiply.ShowDialog();
                    //}
                    //FormRecordForMultiply formRecrodForMultiply = new FormRecordForMultiply(noOfFirstPage, m_App, consultApplySn);
                    //formRecrodForMultiply.StartPosition = FormStartPosition.CenterParent;
                    //formRecrodForMultiply.ShowDialog();
                    #endregion
                    if (dtReord.Rows.Count > 1)
                    {
                        frmRecord = new FrmRecordConsult(noOfFirstPage, consultApplySn, m_App, true, ConsultRecordForWrite.MultiEmployee);
                    }
                    else
                    {
                        frmRecord = new FrmRecordConsult(noOfFirstPage, consultApplySn, m_App, true);
                    }
                    if (frmRecord == null)
                    {
                        return;
                    }
                    frmRecord.StartPosition = FormStartPosition.CenterParent;
                    frmRecord.ShowDialog();
                }
                else if (stateID == Convert.ToString((int)ConsultStatus.CancelConsultion))//已取消
                {
                    #region 注销 by xlb 2013-03-08
                    //FormRecordForMultiply formRecrodForMultiply = new FormRecordForMultiply(noOfFirstPage, m_App, consultApplySn);
                    //formRecrodForMultiply.StartPosition = FormStartPosition.CenterParent;
                    //formRecrodForMultiply.ReadOnlyControl();
                    //formRecrodForMultiply.ShowDialog();
                    #endregion
                    FormApplyForMultiply frmapply = new FormApplyForMultiply(noOfFirstPage, m_App, consultApplySn, true);
                    if (frmapply == null)
                    {
                        return;
                    }
                    frmapply.StartPosition = FormStartPosition.CenterParent;
                    frmapply.ShowDialog();
                }
                else if (stateID == Convert.ToString((int)ConsultStatus.Reject))//否决 弹出申请页面
                {
                    #region 注销 by xlb 2013-03-08
                    //FormConsultationApply formApply = new FormConsultationApply(syxh.ToString(), m_App, true);
                    //formApply.StartPosition = FormStartPosition.CenterParent;
                    //formApply.ShowApprove(consultApplySn);
                    //formApply.ShowDialog();

                    //FormConsultationApply formApply = new FormConsultationApply(noOfFirstPage, m_App, consultApplySn);
                    //formApply.StartPosition = FormStartPosition.CenterParent;
                    //formApply.ShowApprove(consultApplySn);
                    //formApply.ReadOnlyControl();
                    //formApply.ShowDialog();
                    #endregion
                    FormApplyForMultiply frmapply = new FormApplyForMultiply(noOfFirstPage, m_App, consultApplySn, true);
                    if (frmapply == null)
                    {
                        return;
                    }
                    frmapply.StartPosition = FormStartPosition.CenterParent;
                    frmapply.ShowDialog();
                }
                else if (stateID == Convert.ToString((int)ConsultStatus.RecordeSave) || stateID == Convert.ToString((int)ConsultStatus.RecordeComplete))//完成,保存
                {
                    #region 注销by xlb 2013-03-08
                    //FormRecordForMultiply formRecrodForMultiply = new FormRecordForMultiply(noOfFirstPage, m_App, consultApplySn);
                    //formRecrodForMultiply.StartPosition = FormStartPosition.CenterParent;
                    //formRecrodForMultiply.ReadOnlyControl();
                    //formRecrodForMultiply.ShowDialog();
                    #endregion
                    if (dtReord.Rows.Count > 1)
                    {
                        frmRecord = new FrmRecordConsult(noOfFirstPage, consultApplySn, m_App, true, ConsultRecordForWrite.MultiEmployee);
                    }
                    else
                    {
                        frmRecord = new FrmRecordConsult(noOfFirstPage, consultApplySn, m_App, true);
                    }
                    if (frmRecord == null)
                    {
                        return;
                    }
                    frmRecord.StartPosition = FormStartPosition.CenterParent;
                    frmRecord.ShowDialog();
                }
                else if (stateID == Convert.ToString((int)ConsultStatus.ApplySave))//会诊申请保存 弹出申请页面不可编辑
                {
                    FormApplyForMultiply frmapply = new FormApplyForMultiply(noOfFirstPage, m_App, consultApplySn, true);
                    if (frmapply == null)
                    {
                        return;
                    }
                    frmapply.StartPosition = FormStartPosition.CenterParent;
                    frmapply.ShowDialog();
                }

                Search();
            }
        }