Пример #1
0
 public Print_UCFee(IemMainPageInfo info, IYidanEmrHost app)
 {
     InitializeComponent();
     //m_IemInfo = info;
     //m_App = app;
     //m_SqlHelper = DataAccessFactory.DefaultDataAccess;
 }
Пример #2
0
        public void FillUI(IemMainPageInfo info, IYidanEmrHost app)
        {
            m_App     = app;
            m_IemInfo = info;

            //(new FillUIDelegate(FillUIInner)).BeginInvoke(null, null);
            FillUIInner();
        }
Пример #3
0
        public Print_UCIemBasInfo(IemMainPageInfo info, IYidanEmrHost app)
        {
            InitializeComponent();
            //m_IemInfo = info;
            //m_App = app;

            //InitLookUpEditor();
        }
Пример #4
0
        public Print_UCObstetricsBaby(IemMainPageInfo info, IYidanEmrHost app)
        {
            InitializeComponent();
            //m_IemInfo = info;
            //m_App = app;

            //m_SqlHelper = DataAccessFactory.DefaultDataAccess;
            //InitLookUpEditor();
        }
Пример #5
0
 public Print_FormMainPage(IYidanEmrHost app, IemMainPageInfo ieminfo)
 {
     InitializeComponent();
     m_Print_UCMainPage = new Print_UCMainPage(app, ieminfo);
     this.Controls.Add(m_Print_UCMainPage);
     m_Print_UCMainPage.Dock = DockStyle.Fill;
     this.Text = "病案首页打印";
     m_Print_UCMainPage.Location = new Point((this.Width - m_Print_UCMainPage.Width) / 2, 20);
 }
Пример #6
0
        public Print_UCMainPage(IYidanEmrHost app, IemMainPageInfo ieminfo)
        {
            InitializeComponent();
            m_app = app;

            m_IemInfo = ieminfo;
            //this.Load += new EventHandler(UCMainPage_Load);
            //simpleButtonSave.Click += new EventHandler(simpleButtonSave_Click);
            InitUserControl();
            //m_app.ChoosePatient(150);//切换病人
        }
Пример #7
0
        /// <summary>
        /// 显示其他信息页面
        /// </summary>
        /// <param name="info"></param>
        public void ShowUCOthers(UCOthers info, IemMainPageInfo m_pageInfo)
        {
            //this.ResumeLayout();
            //this.Height = info.Height + 10;
            //this.Width = info.Width + 10;
            this.Text = "其他信息编辑";
            this.Controls.Clear();
            this.Controls.Add(info);
            //info.Dock = DockStyle.Fill;

            info.FillUI(m_pageInfo, m_app);
        }
Пример #8
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            manger = new IemMainPageManger(m_Host);
            info   = manger.GetIemInfo();
            util   = new DrawMainPageUtil(info);

            pictureBox1.BackgroundImage       = util.MF1;
            pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;

            pictureBox2.BackgroundImage       = util.MF2;
            pictureBox2.BackgroundImageLayout = ImageLayout.Stretch;
        }
Пример #9
0
        /// <summary>
        /// 是否点击确认按钮关闭的
        /// </summary>
        /// <param name="is_OK"></param>
        public void Close(bool is_OK, IemMainPageInfo info)
        {
            if (is_OK)
            {
                m_info            = info;
                this.DialogResult = System.Windows.Forms.DialogResult.OK;
            }
            else
            {
                this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            }

            this.Close();
        }
Пример #10
0
 /// <summary>
 /// 编辑费用信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void simpleButton6_Click(object sender, EventArgs e)
 {
     SetWaitDialogCaption("正在加载数据");
     if (m_UCOthers == null)
     {
         m_UCOthers = new UCOthers();
     }
     ShowUCForm.ShowUCOthers(m_UCOthers, info);
     ShowUCForm.StartPosition = FormStartPosition.CenterScreen;
     HideWaitDialog();
     if (ShowUCForm.ShowDialog() == DialogResult.OK)
     {
         info = ShowUCForm.m_info;
     }
     RefreshForm();
 }
Пример #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();
        }
Пример #12
0
        private void FillUIInner()
        {
            IemMainPageInfo info = m_IemInfo;

            #region
            if (info.IemBasicInfo.Iem_Mainpage_NO == "")
            {
                //to do 病患基本信息
            }
            else
            {
                //第一案例
                if (m_IemInfo.IemFeeInfo.IsFirstCase == "1")
                {
                    chkIsFirstCase1.Checked = true;
                }
                if (m_IemInfo.IemFeeInfo.IsFirstCase == "2")
                {
                    chkIsFirstCase2.Checked = true;
                }

                //随诊
                if (m_IemInfo.IemFeeInfo.IsFollowing == "1")
                {
                    chkIsFollowing1.Checked = true;
                }
                if (m_IemInfo.IemFeeInfo.IsFollowing == "2")
                {
                    chkIsFollowing2.Checked = true;
                }

                //示教
                if (m_IemInfo.IemFeeInfo.IsTeachingCase == "1")
                {
                    chkIsTeachingCase1.Checked = true;
                }
                if (m_IemInfo.IemFeeInfo.IsTeachingCase == "2")
                {
                    chkIsTeachingCase2.Checked = true;
                }

                //血型
                if (m_IemInfo.IemFeeInfo.BloodType == "1")
                {
                    chkBlood1.Checked = true;
                }
                if (m_IemInfo.IemFeeInfo.BloodType == "2")
                {
                    chkBlood2.Checked = true;
                }
                if (m_IemInfo.IemFeeInfo.BloodType == "3")
                {
                    chkBlood3.Checked = true;
                }
                if (m_IemInfo.IemFeeInfo.BloodType == "4")
                {
                    chkBlood4.Checked = true;
                }
                if (m_IemInfo.IemFeeInfo.BloodType == "5")
                {
                    chkBlood5.Checked = true;
                }


                //RH
                //if (m_IemInfo.IemFeeInfo.Rh == "0")
                //    chkRh1.Checked = true;
                if (m_IemInfo.IemFeeInfo.Rh == "1")
                {
                    chkRh2.Checked = true;
                }
                if (m_IemInfo.IemFeeInfo.Rh == "2")
                {
                    chkRh3.Checked = true;
                }


                //输血反应
                if (m_IemInfo.IemFeeInfo.BloodReaction == "0")
                {
                    chkBloodReaction1.Checked = true;
                }
                if (m_IemInfo.IemFeeInfo.BloodReaction == "1")
                {
                    chkBloodReaction2.Checked = true;
                }
                if (m_IemInfo.IemFeeInfo.BloodReaction == "2")
                {
                    chkBloodReaction3.Checked = true;
                }

                //输血
                seRbc.Value    = Convertmy.ToDecimal(m_IemInfo.IemFeeInfo.Rbc);
                sePlt.Value    = Convertmy.ToDecimal(m_IemInfo.IemFeeInfo.Plt);
                sePlasma.Value = Convertmy.ToDecimal(m_IemInfo.IemFeeInfo.Plasma);
                seWb.Value     = Convertmy.ToDecimal(m_IemInfo.IemFeeInfo.Wb);
                txtOthers.Text = m_IemInfo.IemFeeInfo.Others;

                // 随诊
                if (!String.IsNullOrEmpty(m_IemInfo.IemFeeInfo.Following_Ending_Date))
                {
                    for (int i = 0; i < m_IemInfo.IemFeeInfo.Following_Ending_Date.Split('-').Length; i++)
                    {
                        if (i == 0)
                        {
                            txtIsFollowingDay.Text = m_IemInfo.IemFeeInfo.Following_Ending_Date.Split('-')[i];
                        }
                        else if (i == 1)
                        {
                            txtIsFollowingMon.Text = m_IemInfo.IemFeeInfo.Following_Ending_Date.Split('-')[i];
                        }
                        else if (i == 2)
                        {
                            txtIsFollowingYear.Text = m_IemInfo.IemFeeInfo.Following_Ending_Date.Split('-')[i];
                        }
                    }
                }

                //尸检
                if (m_IemInfo.IemFeeInfo.Ashes_Check == "1")
                {
                    chkAshes_Check1.Checked = true;
                }
                else if (m_IemInfo.IemFeeInfo.Ashes_Check == "2")
                {
                    chkAshes_Check2.Checked = true;
                }



                lblTotal.Text     = m_IemInfo.IemFeeInfo.Total;
                lblBed.Text       = m_IemInfo.IemFeeInfo.Bed;
                lblCare.Text      = m_IemInfo.IemFeeInfo.Care;
                lblWMedical.Text  = m_IemInfo.IemFeeInfo.WMedical;
                lblCPMedical.Text = m_IemInfo.IemFeeInfo.CPMedical;

                lblCMedical.Text = m_IemInfo.IemFeeInfo.CMedical;
                lblRadiate.Text  = m_IemInfo.IemFeeInfo.Radiate;
                lblAssay.Text    = m_IemInfo.IemFeeInfo.Assay;
                lblOx.Text       = m_IemInfo.IemFeeInfo.Ox;
                lblBlood.Text    = m_IemInfo.IemFeeInfo.Blood;

                lblMecical.Text     = m_IemInfo.IemFeeInfo.Mecical;
                lblOperation.Text   = m_IemInfo.IemFeeInfo.Operation;
                lblAccouche.Text    = m_IemInfo.IemFeeInfo.Accouche;
                lblRis.Text         = m_IemInfo.IemFeeInfo.Ris;
                lblAnaesthesia.Text = m_IemInfo.IemFeeInfo.Anaesthesia;

                lblBaby.Text      = m_IemInfo.IemFeeInfo.Baby;
                lblFollwBed.Text  = m_IemInfo.IemFeeInfo.FollwBed;
                lblOthers.Text    = m_IemInfo.IemFeeInfo.Others1;
                labelZhiLiao.Text = m_IemInfo.IemFeeInfo.Others2;
                lblRate.Text      = m_IemInfo.IemFeeInfo.Others3;
            }
            #endregion
        }
Пример #13
0
 private void FillUIInner()
 {
     #region
     IemMainPageInfo info = m_IemInfo;
     IYidanEmrHost   app  = m_App;
     if (info.IemBasicInfo.Iem_Mainpage_NO == 0)
     {
         //to do 病患基本信息
     }
     else
     {
         luePayId.CodeValue = info.IemBasicInfo.PayID;
         txtSocialCare.Text = info.IemBasicInfo.SocialCare;
         txtPatNoOfHis.Text = info.IemBasicInfo.PatNoOfHis.ToString();
         seInCount.Text     = info.IemBasicInfo.InCount.ToString();
         txtName.Text       = info.IemBasicInfo.Name;
         lueSex.Text        = info.IemBasicInfo.SexID;
         if (!String.IsNullOrEmpty(info.IemBasicInfo.Birth))
         {
             deBirth.Text = Convert.ToDateTime(info.IemBasicInfo.Birth).ToString("yyyy年MM月dd日");
         }
         txtAge.Text      = app.CurrentPatientInfo.PersonalInformation.CurrentDisplayAge;
         lueMarital.Text  = info.IemBasicInfo.Marital;
         lueJob.CodeValue = info.IemBasicInfo.JobID;
         //lueProvice.CodeValue = info.IemBasicInfo.ProvinceID;
         lueCounty.CodeValue       = info.IemBasicInfo.CountyID;
         lueNation.CodeValue       = info.IemBasicInfo.NationID;
         lueNationality.CodeValue  = info.IemBasicInfo.NationalityID;
         txtIDNO.Text              = info.IemBasicInfo.IDNO;
         txtOfficePlace.Text       = info.IemBasicInfo.OfficePlace;
         txtOfficeTEL.Text         = info.IemBasicInfo.OfficeTEL;
         txtOfficePost.Text        = info.IemBasicInfo.OfficePost;
         txtNativeAddress.Text     = info.IemBasicInfo.NativeAddress;
         txtNativeTEL.Text         = info.IemBasicInfo.NativeTEL;
         txtNativePost.Text        = info.IemBasicInfo.NativePost;
         txtContactPerson.Text     = info.IemBasicInfo.ContactPerson;
         lueRelationship.CodeValue = info.IemBasicInfo.Relationship;
         txtContactAddress.Text    = info.IemBasicInfo.ContactAddress;
         txtContactTEL.Text        = info.IemBasicInfo.ContactTEL;
         if (!String.IsNullOrEmpty(info.IemBasicInfo.AdmitDate))
         {
             txtAdmitWardDate.Text = Convert.ToDateTime(info.IemBasicInfo.AdmitDate).ToString("yyyy年MM月dd日 HH时");
             //deAdmitDate.DateTime = Convert.ToDateTime(info.IemBasicInfo.AdmitDate);
             //teAdmitDate.Time = Convert.ToDateTime(info.IemBasicInfo.AdmitDate);
         }
         lueAdmitDept.CodeValue = info.IemBasicInfo.AdmitDept;
         lueAdmitWard.CodeValue = info.IemBasicInfo.AdmitWard;
         //seDaysBefore.Value = Convertmy.ToDecimal(info.IemBasicInfo.Days_Before);
         //if (!String.IsNullOrEmpty(info.IemBasicInfo.Trans_Date))
         //{
         //    deTransDate.DateTime = Convert.ToDateTime(info.IemBasicInfo.Trans_Date);
         //    teTransDate.Time = Convert.ToDateTime(info.IemBasicInfo.Trans_Date);
         //}
         lueTransAdmitDept.CodeValue = info.IemBasicInfo.Trans_AdmitDept;
         //lueTransAdmitWard.CodeValue = info.IemBasicInfo.Trans_AdmitWard;
         //lueAdmitDeptAgain.CodeValue = info.IemBasicInfo.Trans_AdmitDept_Again;
         if (!String.IsNullOrEmpty(info.IemBasicInfo.OutWardDate))
         {
             txtOutWardDate.Text = Convert.ToDateTime(info.IemBasicInfo.OutWardDate).ToString("yyyy年MM月dd日 HH时");
             //deOutWardDate.DateTime = Convert.ToDateTime(info.IemBasicInfo.OutWardDate);
             //teOutWardDate.Time = Convert.ToDateTime(info.IemBasicInfo.OutWardDate);
         }
         lueOutHosDept.CodeValue = info.IemBasicInfo.OutHosDept;
         lueOutHosWard.CodeValue = info.IemBasicInfo.OutHosWard;
         seActualDays.Text       = info.IemBasicInfo.Actual_Days.ToString();
     }
     #endregion
 }
Пример #14
0
        private void FillUIInner()
        {
            #region
            IemMainPageInfo info = m_IemInfo;
            IYidanEmrHost   app  = m_App;
            if (info.IemBasicInfo.Iem_Mainpage_NO == 0)
            {
                //to do 病患基本信息
                btnBasInfo_Click(null, null);
            }
            else
            {
                btnBasInfo_Click(null, null);

                luePayId.CodeValue = info.IemBasicInfo.PayID;
                txtSocialCare.Text = info.IemBasicInfo.SocialCare;
                txtPatNoOfHis.Text = info.IemBasicInfo.PatNoOfHis.ToString();
                seInCount.Value    = info.IemBasicInfo.InCount;
                txtName.Text       = info.IemBasicInfo.Name;
                lueSex.CodeValue   = info.IemBasicInfo.SexID;
                if (!String.IsNullOrEmpty(info.IemBasicInfo.Birth))
                {
                    deBirth.DateTime = Convert.ToDateTime(info.IemBasicInfo.Birth);
                }
                txtAge.Text               = app.CurrentPatientInfo.PersonalInformation.CurrentDisplayAge;
                lueMarital.CodeValue      = info.IemBasicInfo.Marital;
                lueJob.CodeValue          = info.IemBasicInfo.JobID;
                lueProvice.CodeValue      = info.IemBasicInfo.ProvinceID;
                lueCounty.CodeValue       = info.IemBasicInfo.CountyID;
                lueNation.CodeValue       = info.IemBasicInfo.NationID;
                lueNationality.CodeValue  = info.IemBasicInfo.NationalityID;
                txtIDNO.Text              = info.IemBasicInfo.IDNO;
                txtOfficePlace.Text       = info.IemBasicInfo.OfficePlace;
                txtOfficeTEL.Text         = info.IemBasicInfo.OfficeTEL;
                txtOfficePost.Text        = info.IemBasicInfo.OfficePost;
                txtNativeAddress.Text     = info.IemBasicInfo.NativeAddress;
                txtNativeTEL.Text         = info.IemBasicInfo.NativeTEL;
                txtNativePost.Text        = info.IemBasicInfo.NativePost;
                txtContactPerson.Text     = info.IemBasicInfo.ContactPerson;
                lueRelationship.CodeValue = info.IemBasicInfo.Relationship;
                txtContactAddress.Text    = info.IemBasicInfo.ContactAddress;
                txtContactTEL.Text        = info.IemBasicInfo.ContactTEL;
                if (!String.IsNullOrEmpty(info.IemBasicInfo.AdmitDate))
                {
                    deAdmitDate.DateTime = Convert.ToDateTime(info.IemBasicInfo.AdmitDate);
                    teAdmitDate.Time     = Convert.ToDateTime(info.IemBasicInfo.AdmitDate);
                }
                lueAdmitDept.CodeValue = info.IemBasicInfo.AdmitDept;
                lueAdmitWard.CodeValue = info.IemBasicInfo.AdmitWard;
                seDaysBefore.Value     = Convertmy.ToDecimal(info.IemBasicInfo.Days_Before);
                if (!String.IsNullOrEmpty(info.IemBasicInfo.Trans_Date))
                {
                    deTransDate.DateTime = Convert.ToDateTime(info.IemBasicInfo.Trans_Date);
                    teTransDate.Time     = Convert.ToDateTime(info.IemBasicInfo.Trans_Date);
                }
                lueTransAdmitDept.CodeValue = info.IemBasicInfo.Trans_AdmitDept;
                lueTransAdmitWard.CodeValue = info.IemBasicInfo.Trans_AdmitWard;
                lueAdmitDeptAgain.CodeValue = info.IemBasicInfo.Trans_AdmitDept_Again;
                if (!String.IsNullOrEmpty(info.IemBasicInfo.OutWardDate))
                {
                    deOutWardDate.DateTime = Convert.ToDateTime(info.IemBasicInfo.OutWardDate);
                    teOutWardDate.Time     = Convert.ToDateTime(info.IemBasicInfo.OutWardDate);
                }
                lueOutHosDept.CodeValue = info.IemBasicInfo.OutHosDept;
                lueOutHosWard.CodeValue = info.IemBasicInfo.OutHosWard;
                seActualDays.Value      = Convertmy.ToDecimal(info.IemBasicInfo.Actual_Days);
                if (!String.IsNullOrEmpty(info.IemBasicInfo.Death_Time))
                {
                    deDeathTime.DateTime = Convert.ToDateTime(info.IemBasicInfo.Death_Time);
                    teDeathTime.Time     = Convert.ToDateTime(info.IemBasicInfo.Death_Time);
                }
                txtDeathReason.Text = info.IemBasicInfo.Death_Reason;
                lueKszr.CodeValue   = info.IemBasicInfo.Section_Director;
                lueZrys.CodeValue   = info.IemBasicInfo.Director;
                lueZzys.CodeValue   = info.IemBasicInfo.Vs_Employee_Code;
                lueZyys.CodeValue   = info.IemBasicInfo.Resident_Employee_Code;
                lueJxys.CodeValue   = info.IemBasicInfo.Refresh_Employee_Code;
                lueYjs.CodeValue    = info.IemBasicInfo.Master_Interne;
                lueSxys.CodeValue   = info.IemBasicInfo.Interne;
                lueBmy.CodeValue    = info.IemBasicInfo.Coding_User;
                //病案质量
                if (Convertmy.ToDecimal(info.IemBasicInfo.Medical_Quality_Id) == 1)
                {
                    chkMedicalQuality1.Checked = true;
                }
                if (Convertmy.ToDecimal(info.IemBasicInfo.Medical_Quality_Id) == 2)
                {
                    chkMedicalQuality2.Checked = true;
                }
                if (Convertmy.ToDecimal(info.IemBasicInfo.Medical_Quality_Id) == 3)
                {
                    chkMedicalQuality3.Checked = true;
                }
                lueZkys.CodeValue = info.IemBasicInfo.Quality_Control_Doctor;
                lueZkhs.CodeValue = info.IemBasicInfo.Quality_Control_Nurse;
                if (!String.IsNullOrEmpty(info.IemBasicInfo.Quality_Control_Date))
                {
                    deZkDate.DateTime = Convert.ToDateTime(info.IemBasicInfo.Quality_Control_Date);
                    teZkDate.Time     = Convert.ToDateTime(info.IemBasicInfo.Quality_Control_Date);
                }
            }
            #endregion
        }
Пример #15
0
        private void FillUIInner()
        {
            IemMainPageInfo info = m_IemInfo;

            if (m_IemInfo.IemBasicInfo.Iem_Mainpage_NO == 0)
            {
                //to do 病患基本信息
            }
            else
            {
                #region 将出院诊断信息加载到页面中
                DataTable dataTableOper = new DataTable();

                foreach (Iem_Mainpage_Diagnosis im in m_IemInfo.IemDiagInfo)
                {
                    if (m_DiagInfoForm == null)
                    {
                        m_DiagInfoForm = new IemNewDiagInfoForm(m_App);
                    }
                    if (im.Diagnosis_Type_Id == 7 || im.Diagnosis_Type_Id == 8)
                    {
                        m_DiagInfoForm.IemOperInfo = im;
                        DataTable dataTable = m_DiagInfoForm.DataOper;
                        if (dataTableOper.Rows.Count == 0)
                        {
                            dataTableOper = dataTable.Clone();
                        }
                        foreach (DataRow row in dataTable.Rows)
                        {
                            dataTableOper.ImportRow(row);
                        }
                        //dataTableOper.AcceptChanges();
                    }
                }
                int i = 0;
                foreach (DataRow dr in dataTableOper.Rows)
                {
                    if (i == 0)
                    {
                        labDiagnosis_Name1.Text = dr["Diagnosis_Name"].ToString();
                        if (Convert.ToInt32(dr["Status_Id"].ToString()) == 1)
                        {
                            chkStatus_1_1.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 2)
                        {
                            chkStatus_2_1.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 3)
                        {
                            chkStatus_3_1.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 4)
                        {
                            chkStatus_4_1.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 5)
                        {
                            chkStatus_5_1.Visible = true;
                        }
                        labDiagnosis_Code1.Text = dr["Diagnosis_Code"].ToString();

                        labDiagnosis_Name1.Visible = true;
                        labDiagnosis_Code1.Visible = true;
                    }
                    else if (i == 1)
                    {
                        labDiagnosis_Name2.Text = dr["Diagnosis_Name"].ToString();
                        if (Convert.ToInt32(dr["Status_Id"].ToString()) == 1)
                        {
                            chkStatus_1_2.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 2)
                        {
                            chkStatus_2_2.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 3)
                        {
                            chkStatus_3_2.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 4)
                        {
                            chkStatus_4_2.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 5)
                        {
                            chkStatus_5_2.Visible = true;
                        }
                        labDiagnosis_Code2.Text = dr["Diagnosis_Code"].ToString();

                        labDiagnosis_Name2.Visible = true;
                        labDiagnosis_Code2.Visible = true;
                    }
                    else if (i == 2)
                    {
                        labDiagnosis_Name3.Text = dr["Diagnosis_Name"].ToString();
                        if (Convert.ToInt32(dr["Status_Id"].ToString()) == 1)
                        {
                            chkStatus_1_3.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 2)
                        {
                            chkStatus_2_3.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 3)
                        {
                            chkStatus_3_3.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 4)
                        {
                            chkStatus_4_3.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 5)
                        {
                            chkStatus_5_3.Visible = true;
                        }
                        labDiagnosis_Code3.Text = dr["Diagnosis_Code"].ToString();

                        labDiagnosis_Name3.Visible = true;
                        labDiagnosis_Code3.Visible = true;
                    }
                    else if (i == 3)
                    {
                        labDiagnosis_Name4.Text = dr["Diagnosis_Name"].ToString();
                        if (Convert.ToInt32(dr["Status_Id"].ToString()) == 1)
                        {
                            chkStatus_1_4.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 2)
                        {
                            chkStatus_2_4.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 3)
                        {
                            chkStatus_3_4.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 4)
                        {
                            chkStatus_4_4.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 5)
                        {
                            chkStatus_5_4.Visible = true;
                        }
                        labDiagnosis_Code4.Text = dr["Diagnosis_Code"].ToString();

                        labDiagnosis_Name4.Visible = true;
                        labDiagnosis_Code4.Visible = true;
                    }
                    else if (i == 4)
                    {
                        labDiagnosis_Name5.Text = dr["Diagnosis_Name"].ToString();
                        if (Convert.ToInt32(dr["Status_Id"].ToString()) == 1)
                        {
                            chkStatus_1_5.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 2)
                        {
                            chkStatus_2_5.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 3)
                        {
                            chkStatus_3_5.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 4)
                        {
                            chkStatus_4_5.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 5)
                        {
                            chkStatus_5_5.Visible = true;
                        }
                        labDiagnosis_Code5.Text = dr["Diagnosis_Code"].ToString();

                        labDiagnosis_Name5.Visible = true;
                        labDiagnosis_Code5.Visible = true;
                    }
                    else if (i == 5)
                    {
                        labDiagnosis_Name6.Text = dr["Diagnosis_Name"].ToString();
                        if (Convert.ToInt32(dr["Status_Id"].ToString()) == 1)
                        {
                            chkStatus_1_6.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 2)
                        {
                            chkStatus_2_6.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 3)
                        {
                            chkStatus_3_6.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 4)
                        {
                            chkStatus_4_6.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 5)
                        {
                            chkStatus_5_6.Visible = true;
                        }
                        labDiagnosis_Code6.Text = dr["Diagnosis_Code"].ToString();

                        labDiagnosis_Name6.Visible = true;
                        labDiagnosis_Code6.Visible = true;
                    }
                    else if (i == 6)
                    {
                        labDiagnosis_Name7.Text = dr["Diagnosis_Name"].ToString();
                        if (Convert.ToInt32(dr["Status_Id"].ToString()) == 1)
                        {
                            chkStatus_1_7.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 2)
                        {
                            chkStatus_2_7.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 3)
                        {
                            chkStatus_3_7.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 4)
                        {
                            chkStatus_4_7.Visible = true;
                        }
                        else if (Convert.ToInt32(dr["Status_Id"].ToString()) == 5)
                        {
                            chkStatus_5_7.Visible = true;
                        }
                        labDiagnosis_Code7.Text = dr["Diagnosis_Code"].ToString();

                        labDiagnosis_Name7.Visible = true;
                        labDiagnosis_Code7.Visible = true;
                    }
                }
                #endregion

                #region 相关人员加载到页面

                lueKszr.CodeValue = info.IemBasicInfo.Section_Director;
                lueZrys.CodeValue = info.IemBasicInfo.Director;
                lueZzys.CodeValue = info.IemBasicInfo.Vs_Employee_Code;
                lueZyys.CodeValue = info.IemBasicInfo.Resident_Employee_Code;
                lueJxys.CodeValue = info.IemBasicInfo.Refresh_Employee_Code;
                lueYjs.CodeValue  = info.IemBasicInfo.Master_Interne;
                lueSxys.CodeValue = info.IemBasicInfo.Interne;
                lueBmy.CodeValue  = info.IemBasicInfo.Coding_User;
                #endregion

                #region 其他信息
                labMedical_Quality.Text = info.IemBasicInfo.Medical_Quality_Id.ToString();

                //this.gridControl1.BeginUpdate();
                //this.gridControl1.DataSource = dataTableOper;
                //this.gridControl1.EndUpdate();

                //入院状态
                //if (m_IemInfo.IemBasicInfo.AdmitInfo == "1")
                //    chkAdmitInfo1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.AdmitInfo == "2")
                //    chkAdmitInfo2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.AdmitInfo == "3")
                //    chkAdmitInfo3.Checked = true;
                labAdmitInfo.Text = m_IemInfo.IemBasicInfo.AdmitInfo;

                txtPathologyName.Text = m_IemInfo.IemBasicInfo.Pathology_Diagnosis_Name;
                //txtPathologyObservationSn.Text = m_IemInfo.IemBasicInfo.Pathology_Observation_Sn;

                //txtAshesDiagnosisName.Text = m_IemInfo.IemBasicInfo.Ashes_Diagnosis_Name;
                //txtAshesAnatomiseSn.Text = m_IemInfo.IemBasicInfo.Ashes_Anatomise_Sn;

                //labelControl1.Text = m_IemInfo.IemBasicInfo.Allergic_Drug;

                chkHBsAg.Text = m_IemInfo.IemBasicInfo.Hbsag.ToString();
                //if (m_IemInfo.IemBasicInfo.Hbsag == 0)
                //    chkHBsAg1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Hbsag == 1)
                //    chkHBsAg2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Hbsag == 2)
                //    chkHBsAg3.Checked = true;

                chkHCV.Text = m_IemInfo.IemBasicInfo.Hcv_Ab.ToString();
                //if (m_IemInfo.IemBasicInfo.Hcv_Ab == 0)
                //    chkHCV1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Hcv_Ab == 1)
                //    chkHCV2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Hcv_Ab == 2)
                //    chkHCV3.Checked = true;


                chkHIV.Text = m_IemInfo.IemBasicInfo.Hiv_Ab.ToString();
                //if (m_IemInfo.IemBasicInfo.Hiv_Ab == 0)
                //    chkHIV1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Hiv_Ab == 1)
                //    chkHIV2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Hiv_Ab == 2)
                //    chkHIV3.Checked = true;


                chkOpdIpd.Text = m_IemInfo.IemBasicInfo.Opd_Ipd_Id.ToString();

                //if (m_IemInfo.IemBasicInfo.Opd_Ipd_Id == 0)
                //    chkOpdIpd1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Opd_Ipd_Id == 1)
                //    chkOpdIpd2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Opd_Ipd_Id == 2)
                //    chkOpdIpd3.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Opd_Ipd_Id == 3)
                //    chkOpdIpd4.Checked = true;


                chkInOut.Text = m_IemInfo.IemBasicInfo.In_Out_Inpatinet_Id.ToString();

                //if (m_IemInfo.IemBasicInfo.In_Out_Inpatinet_Id == 0)
                //    chkInOut1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.In_Out_Inpatinet_Id == 1)
                //    chkInOut2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.In_Out_Inpatinet_Id == 2)
                //    chkInOut3.Checked = true;
                //if (m_IemInfo.IemBasicInfo.In_Out_Inpatinet_Id == 3)
                //    chkInOut4.Checked = true;

                chkBeforeAfter.Text = m_IemInfo.IemBasicInfo.Before_After_Or_Id.ToString();
                //if (m_IemInfo.IemBasicInfo.Before_After_Or_Id == 0)
                //    chkBeforeAfter1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Before_After_Or_Id == 1)
                //    chkBeforeAfter2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Before_After_Or_Id == 2)
                //    chkBeforeAfter3.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Before_After_Or_Id == 3)
                //    chkBeforeAfter4.Checked = true;

                chkClinical.Text = m_IemInfo.IemBasicInfo.Clinical_Pathology_Id.ToString();
                //if (m_IemInfo.IemBasicInfo.Clinical_Pathology_Id == 0)
                //    chkClinical1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Clinical_Pathology_Id == 1)
                //    chkClinical2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Clinical_Pathology_Id == 2)
                //    chkClinical3.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Clinical_Pathology_Id == 3)
                //    chkClinical4.Checked = true;

                chkPacsPathology.Text = m_IemInfo.IemBasicInfo.Pacs_Pathology_Id.ToString();
                //if (m_IemInfo.IemBasicInfo.Pacs_Pathology_Id == 0)
                //    chkPacsPathology1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Pacs_Pathology_Id == 1)
                //    chkPacsPathology2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Pacs_Pathology_Id == 2)
                //    chkPacsPathology3.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Pacs_Pathology_Id == 3)
                //    chkPacsPathology4.Checked = true;

                seSaveTimes.Text    = m_IemInfo.IemBasicInfo.Save_Times.ToString();
                seSuccessTimes.Text = m_IemInfo.IemBasicInfo.Success_Times.ToString();


                //入院后确诊日期
                if (!String.IsNullOrEmpty(m_IemInfo.IemBasicInfo.In_Check_Date))
                {
                    txtIn_Check_Date.Text = Convert.ToDateTime(m_IemInfo.IemBasicInfo.In_Check_Date).ToString("yyyy年MM月dd日");
                    //deInCheckDate.DateTime = Convert.ToDateTime(m_IemInfo.IemBasicInfo.In_Check_Date);
                    //teInCheckDate.Time = Convert.ToDateTime(m_IemInfo.IemBasicInfo.In_Check_Date);
                }

                foreach (Iem_Mainpage_Diagnosis im in m_IemInfo.IemDiagInfo)
                {
                    if (im.Diagnosis_Type_Id == 13)
                    {
                        this.lueOutDiag.CodeValue = im.Diagnosis_Code;
                    }
                    else if (im.Diagnosis_Type_Id == 2)
                    {
                        this.lueInDiag.CodeValue = im.Diagnosis_Code;
                    }
                }
                #endregion
            }
        }
Пример #16
0
        private void FillUIInner()
        {
            IemMainPageInfo info = m_IemInfo;

            #region
            if (info.IemBasicInfo.Iem_Mainpage_NO == 0)
            {
                //to do 病患基本信息
            }
            else
            {
                //第一案例
                //if (m_IemInfo.IemBasicInfo.Is_First_Case == 1)
                //    chkIsFirstCase1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Is_First_Case == 2)
                //    chkIsFirstCase2.Checked = true;
                labchkIsFirstCase.Text = m_IemInfo.IemBasicInfo.Is_First_Case.ToString();
                //随诊
                //if (m_IemInfo.IemBasicInfo.Is_Following == 1)
                //    chkIsFollowing1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Is_Following == 2)
                //    chkIsFollowing2.Checked = true;

                labchkIsFollowing.Text = m_IemInfo.IemBasicInfo.Is_Following.ToString();

                //示教
                //if (m_IemInfo.IemBasicInfo.Is_Teaching_Case == 1)
                //    chkIsTeachingCase1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Is_Teaching_Case == 2)
                //    chkIsTeachingCase2.Checked = true;

                labchkIsTeachingCase.Text = m_IemInfo.IemBasicInfo.Is_Teaching_Case.ToString();

                //血型
                //if (m_IemInfo.IemBasicInfo.Blood_Type_id == 1)
                //    chkBlood1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Blood_Type_id == 2)
                //    chkBlood2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Blood_Type_id == 3)
                //    chkBlood3.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Blood_Type_id == 4)
                //    chkBlood4.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Blood_Type_id == 5)
                //    chkBlood5.Checked = true;
                labchkBlood.Text = m_IemInfo.IemBasicInfo.Blood_Type_id.ToString();

                //RH
                //if (m_IemInfo.IemBasicInfo.Rh == 0)
                //    chkRh1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Blood_Type_id == 1)
                //    chkRh2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Blood_Type_id == 2)
                //    chkRh3.Checked = true;
                labchkRh.Text = m_IemInfo.IemBasicInfo.Rh.ToString();

                //输血反应
                //if (m_IemInfo.IemBasicInfo.Blood_Reaction_Id == 0)
                //    chkBloodReaction1.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Blood_Reaction_Id == 1)
                //    chkBloodReaction2.Checked = true;
                //if (m_IemInfo.IemBasicInfo.Blood_Reaction_Id == 2)
                //    chkBloodReaction3.Checked = true;
                labchkBloodReaction.Text = m_IemInfo.IemBasicInfo.Blood_Reaction_Id.ToString();

                //输血
                seRbc.Text     = m_IemInfo.IemBasicInfo.Blood_Rbc.ToString();
                sePlt.Text     = m_IemInfo.IemBasicInfo.Blood_Plt.ToString();
                sePlasma.Text  = m_IemInfo.IemBasicInfo.Blood_Plasma.ToString();
                seWb.Text      = m_IemInfo.IemBasicInfo.Blood_Wb.ToString();
                txtOthers.Text = m_IemInfo.IemBasicInfo.Blood_Others;

                // 随诊
                if (!String.IsNullOrEmpty(m_IemInfo.IemBasicInfo.Following_Ending_Date))
                {
                    for (int i = 0; i < m_IemInfo.IemBasicInfo.Following_Ending_Date.Split('-').Length; i++)
                    {
                        if (i == 0)
                        {
                            txtIsFollowingDay.Text = m_IemInfo.IemBasicInfo.Following_Ending_Date.Split('-')[i];
                        }
                        else if (i == 1)
                        {
                            txtIsFollowingMon.Text = m_IemInfo.IemBasicInfo.Following_Ending_Date.Split('-')[i];
                        }
                        else if (i == 2)
                        {
                            txtIsFollowingYear.Text = m_IemInfo.IemBasicInfo.Following_Ending_Date.Split('-')[i];
                        }
                    }
                }
            }
            #endregion
        }
Пример #17
0
        private void FillUIInner()
        {
            #region
            IemMainPageInfo info = m_IemInfo;
            IYidanEmrHost   app  = m_App;
            //if (info.IemBasicInfo.Iem_Mainpage_NO == "")
            //{
            //    //to do 病患基本信息
            //    btnBasInfo_Click(null, null);
            //}
            //else
            //{
            //btnBasInfo_Click(null, null);

            luePayId.CodeValue = info.IemBasicInfo.PayID;
            txtSocialCare.Text = info.IemBasicInfo.SocialCare;
            txtPatNoOfHis.Text = info.IemBasicInfo.PatNoOfHis.ToString();
            seInCount.Value    = info.IemBasicInfo.InCount == ""?0:Convert.ToInt32(info.IemBasicInfo.InCount);
            txtName.Text       = info.IemBasicInfo.Name;
            lueSex.CodeValue   = info.IemBasicInfo.SexID;
            if (!String.IsNullOrEmpty(info.IemBasicInfo.Birth))
            {
                deBirth.DateTime = Convert.ToDateTime(info.IemBasicInfo.Birth);
            }
            txtAge.Text          = app.CurrentPatientInfo.PersonalInformation.CurrentDisplayAge;
            lueMarital.CodeValue = info.IemBasicInfo.Marital;
            lueJob.CodeValue     = info.IemBasicInfo.JobID;
            lueProvice.CodeValue = info.IemBasicInfo.ProvinceID;
            lueCounty.CodeValue  = info.IemBasicInfo.CountyID;

            lueNation.CodeValue      = info.IemBasicInfo.NationID;
            lueNationality.CodeValue = info.IemBasicInfo.NationalityID;
            txtIDNO.Text             = info.IemBasicInfo.IDNO;
            txtOfficePlace.Text      = info.IemBasicInfo.OfficePlace;
            txtOfficeTEL.Text        = info.IemBasicInfo.OfficeTEL;

            txtOfficePost.Text    = info.IemBasicInfo.OfficePost;
            txtNativeAddress.Text = info.IemBasicInfo.NativeAddress;
            txtNativeTEL.Text     = info.IemBasicInfo.NativeTEL;
            txtNativePost.Text    = info.IemBasicInfo.NativePost;
            txtContactPerson.Text = info.IemBasicInfo.ContactPerson;

            lueRelationship.CodeValue = info.IemBasicInfo.RelationshipID;
            txtContactAddress.Text    = info.IemBasicInfo.ContactAddress;
            txtContactTEL.Text        = info.IemBasicInfo.ContactTEL;
            if (!String.IsNullOrEmpty(info.IemBasicInfo.AdmitDate))
            {
                deAdmitDate.DateTime = Convert.ToDateTime(info.IemBasicInfo.AdmitDate);
                teAdmitDate.Time     = Convert.ToDateTime(info.IemBasicInfo.AdmitDate);
            }

            lueAdmitDept.CodeValue = info.IemBasicInfo.AdmitDeptID;
            lueAdmitWard.CodeValue = info.IemBasicInfo.AdmitWardID;
            seDaysBefore.Value     = Convertmy.ToDecimal(info.IemBasicInfo.Days_Before);
            if (!String.IsNullOrEmpty(info.IemBasicInfo.Trans_Date))
            {
                deTransDate.DateTime = Convert.ToDateTime(info.IemBasicInfo.Trans_Date);
                teTransDate.Time     = Convert.ToDateTime(info.IemBasicInfo.Trans_Date);
            }
            lueTransAdmitDept.CodeValue = info.IemBasicInfo.Trans_AdmitDeptID;
            //lueTransAdmitWard.CodeValue = info.IemBasicInfo.Trans_AdmitWardID;
            lueAdmitDeptAgain.CodeValue = info.IemBasicInfo.Trans_AdmitDept_Again;
            if (!String.IsNullOrEmpty(info.IemBasicInfo.OutWardDate))
            {
                deOutWardDate.DateTime = Convert.ToDateTime(info.IemBasicInfo.OutWardDate);
                teOutWardDate.Time     = Convert.ToDateTime(info.IemBasicInfo.OutWardDate);
            }
            lueOutHosDept.CodeValue = info.IemBasicInfo.OutHosDeptID;
            lueOutHosWard.CodeValue = info.IemBasicInfo.OutHosWardID;
            seActualDays.Value      = Convertmy.ToDecimal(info.IemBasicInfo.ActualDays);
            if (!String.IsNullOrEmpty(info.IemBasicInfo.Death_Time))
            {
                deDeathTime.DateTime = Convert.ToDateTime(info.IemBasicInfo.Death_Time);
                teDeathTime.Time     = Convert.ToDateTime(info.IemBasicInfo.Death_Time);
            }
            txtDeathReason.Text = info.IemBasicInfo.Death_Reason;


            //}
            #endregion
        }