Beispiel #1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="app">插件接口</param>
        /// <param name="operatetype">操作方式</param>
        /// <param name="diagcode">诊断的ICD编码</param>
        /// <param name="statusid">诊断结果(入院病情)</param>
        /// <param name="admitinfo">子入院病情</param>
        /// <param name="statusIdOut">出院情况</param>
        public IemNewDiagInfoForm(IEmrHost app, string operatetype, string diagcode, string statusid, string admitinfo, string statusIdOut)
        {
            try
            {
                InitializeComponent();
                m_App = app;
                InitLookUpEditor();

                InitInHosPatiResult();
                InitSubInHosPatiResult();
                InitOutHosPatiResult();

                m_OPETYPE     = operatetype;
                m_DIAGCODE    = diagcode;
                m_STATUSID    = statusid;
                m_AdmitInfo   = admitinfo;
                m_StatusIDOut = statusIdOut;
                BridFormValue(m_OPETYPE, m_DIAGCODE, m_STATUSID, m_AdmitInfo);

                IemMainPageManger IemM   = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
                string            cansee = IemM.GetConfigValueByKey("EmrInputConfig");
                XmlDocument       doc    = new XmlDocument();
                doc.LoadXml(cansee);
            }
            catch (Exception ex)
            {
                DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex);
            }
        }
Beispiel #2
0
        public IemNewDiagInfoForm(IEmrHost app, string operatetype, string diagcode, string statusid, string admitinfo, string morphoicd, string statusIDOut, int diagnosisNo, int mainpageNo)
        {
            try
            {
                InitializeComponent();
                m_SqlHelper = DataAccessFactory.DefaultDataAccess;
                m_App       = app;
                InitLookUpEditor();
                InitlueMorpho();
                InitInHosPatiResult();
                InitSubInHosPatiResult();
                InitOutHosPatiResult();

                m_DiagnosisNo = diagnosisNo;
                m_MainpageNo  = mainpageNo;
                m_OPETYPE     = operatetype;
                m_DIAGCODE    = diagcode;
                m_STATUSID    = statusid;
                m_AdmitInfo   = admitinfo;
                m_Morphoicd   = morphoicd; //add by jxh
                m_StatusIDOut = statusIDOut;
                BridFormValue(m_OPETYPE, m_DIAGCODE, m_STATUSID, m_AdmitInfo, m_Morphoicd, m_StatusIDOut);

                IemMainPageManger IemM   = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
                string            cansee = IemM.GetConfigValueByKey("EmrInputConfig");
                XmlDocument       doc    = new XmlDocument();
                doc.LoadXml(cansee);
            }
            catch (Exception ex)
            {
                DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex);
            }
        }
Beispiel #3
0
        /// <summary>
        /// 重载构造
        /// </summary>
        /// <param name="app"></param>
        /// <param name="operatetype"></param>
        /// <param name="diagcode"></param>
        /// <param name="statusid"></param>
        /// <param name="admitinfo"></param>
        /// <param name="statusIDOut"></param>
        /// <param name="diagnosisNo"></param>
        /// <param name="mainpageNo"></param>
        public IemNewDiagInfoForm(IEmrHost app, string operatetype, string diagcode, string statusid, string admitinfo, string statusIDOut, int diagnosisNo, int mainpageNo)
        {
            try
            {
                InitializeComponent();
                m_App = app;
                InitLookUpEditor();

                InitInHosPatiResult();
                InitSubInHosPatiResult();
                InitOutHosPatiResult();

                m_DiagnosisNo = diagnosisNo;
                m_MainpageNo  = mainpageNo;
                m_OPETYPE     = operatetype;
                m_DIAGCODE    = diagcode;
                m_STATUSID    = statusid;
                m_AdmitInfo   = admitinfo;
                m_StatusIDOut = statusIDOut;
                BridFormValue(m_OPETYPE, m_DIAGCODE, m_STATUSID, m_AdmitInfo, m_StatusIDOut);

                IemMainPageManger IemM   = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
                string            cansee = IemM.GetConfigValueByKey("EmrInputConfig");
                XmlDocument       doc    = new XmlDocument();
                doc.LoadXml(cansee);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #4
0
        private void UCIemDiagnose_Load(object sender, EventArgs e)
        {
            //m_SqlHelper = DataAccessFactory.DefaultDataAccess;
            //InitLookUpEditor();
            #if DEBUG
            #else
            //HideSbutton();
            #endif
            IemMainPageManger IemM   = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
            string            cansee = IemM.GetConfigValueByKey("EmrInputConfig");
            XmlDocument       doc    = new XmlDocument();
            doc.LoadXml(cansee);
            if (doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "0")//不可见
            {
                CanSEEControl = "0";
            }
            if (doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "1")//可见
            {
                CanSEEControl = "1";
            }

            //固定编码员 add by cyq 2012-11-23
            string encoder = GetFixedEncoder();
            if (!string.IsNullOrEmpty(encoder.Trim()))
            {
                lueBmy.CodeValue = encoder;
                lueBmy.Enabled   = false;
            }
            else
            {
                lueBmy.Enabled = true;
            }
        }
Beispiel #5
0
 /// <summary>
 /// 获取固定编码员工号(配置)
 /// <auth>Yanqiao.Cai</auth>
 /// <date>2011-11-23</date>
 /// </summary>
 public string GetFixedEncoder()
 {
     try
     {
         IemMainPageManger IemM          = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
         string            encoder       = string.Empty;
         string            encoderConfig = IemM.GetConfigValueByKey("FixedEncoder");
         if (!string.IsNullOrEmpty(encoderConfig.Trim()))
         {
             if (encoderConfig.Contains(","))
             {
                 string[] str = encoderConfig.Split(',');
                 encoder = str[0];
             }
             else
             {
                 encoder = encoderConfig;
             }
             //员工工号不满6位,则不足6位
             if (!string.IsNullOrEmpty(encoder.Trim()) && encoder.Length < 6)
             {
                 int length = encoder.Length;
                 for (int i = 0; i < 6 - length; i++)
                 {
                     encoder = "0" + encoder;
                 }
             }
         }
         return(encoder);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Beispiel #6
0
        private void UCIemOperInfo_Load(object sender, EventArgs e)
        {
            IemMainPageManger IemM   = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
            string            cansee = IemM.GetConfigValueByKey("EmrInputConfig");
            XmlDocument       doc    = new XmlDocument();

            doc.LoadXml(cansee);
            if (doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "0")//不可见
            {
                CanSEEControl = "0";
            }
            if (doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "1")//可见
            {
                CanSEEControl = "1";
            }
        }
Beispiel #7
0
        /// <summary>
        /// 控件是否显示
        /// <auth>Yanqiao.Cai</auth>
        /// <date>2011-10-17</date>
        /// </summary>
        private void InitUIShowOrHide()
        {
            IemMainPageManger IemM   = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
            string            cansee = IemM.GetConfigValueByKey("EmrInputConfig");
            XmlDocument       doc    = new XmlDocument();

            doc.LoadXml(cansee);
            controlEnableFlag = doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "1" ? true : false;
            if (controlEnableFlag)//可见
            {
                labelControl8.Visible      = true;
                labelControl9.Visible      = true;
                labelControl10.Visible     = true;
                labelControl12.Visible     = true;
                labelControl13.Visible     = true;
                lueISChooseDate.Visible    = true;
                lueIsClearOpe.Visible      = true;
                lueISGanran.Visible        = true;
                lueAnesthesiaLevel.Visible = true;
                lueComplications.Visible   = true;
                this.Height = 275;

                BindAnesthesiaLevel();
                BindComplications();
            }
            else
            {
                labelControl8.Visible      = false;
                labelControl9.Visible      = false;
                labelControl10.Visible     = false;
                labelControl12.Visible     = false;
                labelControl13.Visible     = false;
                lueISChooseDate.Visible    = false;
                lueIsClearOpe.Visible      = false;
                lueISGanran.Visible        = false;
                lueAnesthesiaLevel.Visible = false;
                lueComplications.Visible   = false;
                this.Height = 230;
            }
        }
Beispiel #8
0
 /// <summary>
 /// 窗体加载事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UCIemOperInfo_Load(object sender, EventArgs e)
 {
     try
     {
         IemMainPageManger IemM   = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
         string            cansee = IemM.GetConfigValueByKey("EmrInputConfig");
         XmlDocument       doc    = new XmlDocument();
         doc.LoadXml(cansee);
         if (doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "0")//不可见
         {
             CanSEEControl = "0";
         }
         if (doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "1")//可见
         {
             CanSEEControl = "1";
         }
         this.ActiveControl = btnAddOperation;
     }
     catch (Exception ex)
     {
         MyMessageBox.Show(1, ex);
     }
 }
Beispiel #9
0
        private string m_Morphoicd;   //形态学诊断

        public IemNewDiagInfoForm(IEmrHost app, string operatetype, string diagcode, string statusid, string admitinfo)
        {
            try
            {
                InitializeComponent();
                m_SqlHelper = DataAccessFactory.DefaultDataAccess;
                m_App       = app;
                InitLookUpEditor();
                InitlueMorpho();      //add by jxh  绑定下拉控件
                InitInHosPatiResult();
                InitSubInHosPatiResult();
                InitOutHosPatiResult();

                m_OPETYPE   = operatetype;
                m_DIAGCODE  = diagcode;
                m_STATUSID  = statusid;
                m_AdmitInfo = admitinfo;
                BridFormValue(m_OPETYPE, m_DIAGCODE, m_STATUSID, m_AdmitInfo);

                IemMainPageManger IemM   = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
                string            cansee = IemM.GetConfigValueByKey("EmrInputConfig");
                XmlDocument       doc    = new XmlDocument();
                doc.LoadXml(cansee);
                if (doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "0")//不可见
                {
                    #region 注释
                    //labelControl4.Visible = false;
                    //chkMandZ0.Visible = false;
                    //chkMandZ1.Visible = false;
                    //chkMandZ2.Visible = false;
                    //chkMandZ3.Visible = false;
                    //labelControl5.Visible = false;
                    //chkRandC0.Visible = false;
                    //chkRandC1.Visible = false;
                    //chkRandC2.Visible = false;
                    //chkRandC3.Visible = false;
                    //labelControl6.Visible = false;
                    //labelControl7.Visible = false;
                    //labelControl8.Visible = false;
                    //labelControl9.Visible = false;
                    //chkSqAndSh0.Visible = false;
                    //chkSqAndSh1.Visible = false;
                    //chkSqAndSh2.Visible = false;
                    //chkSqAndSh3.Visible = false;
                    //chkLandB0.Visible = false;
                    //chkLandB1.Visible = false;
                    //chkLandB2.Visible = false;
                    //chkLandB3.Visible = false;
                    //chkRThree0.Visible = false;
                    //chkRThree1.Visible = false;
                    //chkRThree2.Visible = false;
                    //chkRThree3.Visible = false;
                    //chkFandB0.Visible = false;
                    //chkFandB1.Visible = false;
                    //chkFandB2.Visible = false;
                    //chkFandB3.Visible = false;
                    #endregion

                    #region 注释 by cyq 2012-12-25
                    //Point M = new Point(100, 100);
                    //Point M1 = new Point(280, 100);
                    //btnConfirm.Location = M;
                    //btnCancel.Location = M1;
                    #endregion
                }
                if (doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "1")//可见
                {
                    #region 注释
                    //labelControl4.Visible = true;
                    //chkMandZ0.Visible = true;
                    //chkMandZ1.Visible = true;
                    //chkMandZ2.Visible = true;
                    //chkMandZ3.Visible = true;
                    //labelControl5.Visible = true;
                    //chkRandC0.Visible = true;
                    //chkRandC1.Visible = true;
                    //chkRandC2.Visible = true;
                    //chkRandC3.Visible = true;
                    //labelControl6.Visible = true;
                    //labelControl7.Visible = true;
                    //labelControl8.Visible = true;
                    //labelControl9.Visible = true;
                    //chkSqAndSh0.Visible = true;
                    //chkSqAndSh1.Visible = true;
                    //chkSqAndSh2.Visible = true;
                    //chkSqAndSh3.Visible = true;
                    //chkLandB0.Visible = true;
                    //chkLandB1.Visible = true;
                    //chkLandB2.Visible = true;
                    //chkLandB3.Visible = true;
                    //chkRThree0.Visible = true;
                    //chkRThree1.Visible = true;
                    //chkRThree2.Visible = true;
                    //chkRThree3.Visible = true;
                    //chkFandB0.Visible = true;
                    //chkFandB1.Visible = true;
                    //chkFandB2.Visible = true;
                    //chkFandB3.Visible = true;
                    #endregion
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #10
0
        private string m_AdmitInfo; //传来的子入院病情
        public IemNewDiagInfoForm(IEmrHost app, string operatetype, string diagcode, string statusid, string admitinfo)
        {
            InitializeComponent();
            m_App = app;
            InitLookUpEditor();
            m_OPETYPE   = operatetype;
            m_DIAGCODE  = diagcode;
            m_STATUSID  = statusid;
            m_AdmitInfo = admitinfo;
            BridFormValue(m_OPETYPE, m_DIAGCODE, m_STATUSID, m_AdmitInfo);

            IemMainPageManger IemM   = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
            string            cansee = IemM.GetConfigValueByKey("EmrInputConfig");
            XmlDocument       doc    = new XmlDocument();

            doc.LoadXml(cansee);
            if (doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "0")//不可见
            {
                //labelControl4.Visible = false;
                //chkMandZ0.Visible = false;
                //chkMandZ1.Visible = false;
                //chkMandZ2.Visible = false;
                //chkMandZ3.Visible = false;
                //labelControl5.Visible = false;
                //chkRandC0.Visible = false;
                //chkRandC1.Visible = false;
                //chkRandC2.Visible = false;
                //chkRandC3.Visible = false;
                //labelControl6.Visible = false;
                //labelControl7.Visible = false;
                //labelControl8.Visible = false;
                //labelControl9.Visible = false;
                //chkSqAndSh0.Visible = false;
                //chkSqAndSh1.Visible = false;
                //chkSqAndSh2.Visible = false;
                //chkSqAndSh3.Visible = false;
                //chkLandB0.Visible = false;
                //chkLandB1.Visible = false;
                //chkLandB2.Visible = false;
                //chkLandB3.Visible = false;
                //chkRThree0.Visible = false;
                //chkRThree1.Visible = false;
                //chkRThree2.Visible = false;
                //chkRThree3.Visible = false;
                //chkFandB0.Visible = false;
                //chkFandB1.Visible = false;
                //chkFandB2.Visible = false;
                //chkFandB3.Visible = false;
                Point M  = new Point(100, 100);
                Point M1 = new Point(280, 100);
                btnConfirm.Location = M;
                btnCancel.Location  = M1;
            }
            if (doc.GetElementsByTagName("IemPageContorlVisable")[0].InnerText == "1")//可见
            {
                //labelControl4.Visible = true;
                //chkMandZ0.Visible = true;
                //chkMandZ1.Visible = true;
                //chkMandZ2.Visible = true;
                //chkMandZ3.Visible = true;
                //labelControl5.Visible = true;
                //chkRandC0.Visible = true;
                //chkRandC1.Visible = true;
                //chkRandC2.Visible = true;
                //chkRandC3.Visible = true;
                //labelControl6.Visible = true;
                //labelControl7.Visible = true;
                //labelControl8.Visible = true;
                //labelControl9.Visible = true;
                //chkSqAndSh0.Visible = true;
                //chkSqAndSh1.Visible = true;
                //chkSqAndSh2.Visible = true;
                //chkSqAndSh3.Visible = true;
                //chkLandB0.Visible = true;
                //chkLandB1.Visible = true;
                //chkLandB2.Visible = true;
                //chkLandB3.Visible = true;
                //chkRThree0.Visible = true;
                //chkRThree1.Visible = true;
                //chkRThree2.Visible = true;
                //chkRThree3.Visible = true;
                //chkFandB0.Visible = true;
                //chkFandB1.Visible = true;
                //chkFandB2.Visible = true;
                //chkFandB3.Visible = true;
            }
        }