Ejemplo n.º 1
0
        /// <summary>
        /// GET UI
        /// </summary>
        private void GetUI()
        {
            m_IemInfo.IemDiagInfo = new Iem_Mainpage_Diagnosis();

            m_IemInfo.IemDiagInfo.Hurt_Toxicosis_ElementID = lueHurt_Toxicosis_Ele.CodeValue;
            m_IemInfo.IemDiagInfo.Hurt_Toxicosis_Element   = lueHurt_Toxicosis_Ele.Text;

            m_IemInfo.IemDiagInfo.Pathology_Diagnosis_Name = txtPathologyName.Text;
            m_IemInfo.IemDiagInfo.Pathology_Diagnosis_ID   = txtPathologyID.Text;
            m_IemInfo.IemDiagInfo.Pathology_Observation_Sn = txtPathologySn.Text;


            m_IemInfo.IemDiagInfo.Allergic_Drug = txtAllergicDrug.Text;
            if (chkAllergic1.Checked)
            {
                m_IemInfo.IemDiagInfo.Allergic_Flag = "1";
            }
            else if (chkAllergic2.Checked)
            {
                m_IemInfo.IemDiagInfo.Allergic_Flag = "2";
            }
            else
            {
                m_IemInfo.IemDiagInfo.Allergic_Flag = "";
            }


            if (chkAutopsy1.Checked)
            {
                m_IemInfo.IemBasicInfo.Autopsy_Flag = "1";
            }
            else if (chkAutopsy2.Checked)
            {
                m_IemInfo.IemBasicInfo.Autopsy_Flag = "2";
            }
            else
            {
                m_IemInfo.IemBasicInfo.Autopsy_Flag = "";
            }

            if (chkBlood1.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "1";
            }
            else if (chkBlood2.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "2";
            }
            else if (chkBlood3.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "3";
            }
            else if (chkBlood4.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "4";
            }
            else if (chkBlood5.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "5";
            }
            else if (chkBlood6.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "6";
            }
            else
            {
                m_IemInfo.IemDiagInfo.BloodType = "";
            }


            if (chkRH1.Checked)
            {
                m_IemInfo.IemDiagInfo.Rh = "1";
            }
            else if (chkRH2.Checked)
            {
                m_IemInfo.IemDiagInfo.Rh = "2";
            }
            else if (chkRH3.Checked)
            {
                m_IemInfo.IemDiagInfo.Rh = "3";
            }
            else if (chkRH4.Checked)
            {
                m_IemInfo.IemDiagInfo.Rh = "4";
            }
            else
            {
                m_IemInfo.IemDiagInfo.Rh = "";
            }


            DataTable dt = m_IemInfo.IemDiagInfo.OutDiagTable;

            dt.Rows.Clear();
            //门(急)诊诊断
            //m_IemInfo.IemDiagInfo = new List<Iem_Mainpage_Diagnosis>();
            if (!String.IsNullOrEmpty(this.lueOutDiag.CodeValue))
            {
                DataRow imOut = dt.NewRow();
                //Iem_Mainpage_Diagnosis imOut = new Iem_Mainpage_Diagnosis();
                imOut["Diagnosis_Code"]    = this.lueOutDiag.CodeValue;
                imOut["Diagnosis_Name"]    = this.lueOutDiag.DisplayValue;
                imOut["Diagnosis_Type_Id"] = 13;
                //m_IemInfo.IemDiagInfo.Add(imOut);
                dt.Rows.Add(imOut);
                m_IemInfo.IemDiagInfo.OutDiagID   = this.lueOutDiag.CodeValue;
                m_IemInfo.IemDiagInfo.OutDiagName = this.lueOutDiag.DisplayValue;
            }

            if (this.gridControl1.DataSource != null)
            {
                //出院诊断
                DataTable dataTable = this.gridControl1.DataSource as DataTable;
                for (int i = 0; i < dataTable.Rows.Count; i++)
                {
                    DataRow row = dataTable.Rows[i];

                    DataRow imOut = dt.NewRow();
                    imOut["Diagnosis_Code"] = row["Diagnosis_Code"].ToString();
                    imOut["Diagnosis_Name"] = row["Diagnosis_Name"].ToString();
                    if (i == 0)
                    {
                        imOut["Diagnosis_Type_Id"] = 7;
                    }
                    else
                    {
                        imOut["Diagnosis_Type_Id"] = 8;
                    }
                    imOut["Status_Id"]   = Convertmy.ToDecimal(row["Status_Id"]);
                    imOut["Status_Name"] = row["Status_Name"];
                    imOut["Order_Value"] = i + 1;

                    imOut["MenAndInHop"]           = row["MenAndInHop"];
                    imOut["InHopAndOutHop"]        = row["InHopAndOutHop"];
                    imOut["BeforeOpeAndAfterOper"] = row["BeforeOpeAndAfterOper"];
                    imOut["LinAndBingLi"]          = row["LinAndBingLi"];
                    imOut["InHopThree"]            = row["InHopThree"];
                    imOut["FangAndBingLi"]         = row["FangAndBingLi"];

                    imOut["AdmitInfo"] = row["AdmitInfo"];

                    dt.Rows.Add(imOut);
                }
            }

            m_IemInfo.IemDiagInfo.Section_DirectorID    = lueKszr.CodeValue;
            m_IemInfo.IemDiagInfo.Section_DirectorName  = lueKszr.Text;
            m_IemInfo.IemDiagInfo.DirectorID            = lueZrys.CodeValue;
            m_IemInfo.IemDiagInfo.DirectorName          = lueZrys.Text;
            m_IemInfo.IemDiagInfo.Vs_EmployeeID         = lueZzys.CodeValue;
            m_IemInfo.IemDiagInfo.Vs_EmployeeName       = lueZzys.Text;
            m_IemInfo.IemDiagInfo.Resident_EmployeeID   = lueZyys.CodeValue;
            m_IemInfo.IemDiagInfo.Resident_EmployeeName = lueZyys.Text;
            m_IemInfo.IemDiagInfo.Duty_NurseID          = lueDuty_Nurse.CodeValue;
            m_IemInfo.IemDiagInfo.Duty_NurseName        = lueDuty_Nurse.Text;
            m_IemInfo.IemDiagInfo.Refresh_EmployeeID    = luejxys.CodeValue;
            m_IemInfo.IemDiagInfo.Refresh_EmployeeName  = luejxys.Text;
            m_IemInfo.IemDiagInfo.InterneID             = lueSxys.CodeValue;
            m_IemInfo.IemDiagInfo.InterneName           = lueSxys.Text;
            m_IemInfo.IemDiagInfo.Coding_UserID         = lueBmy.CodeValue;
            m_IemInfo.IemDiagInfo.Coding_UserName       = lueBmy.Text;
            //病案质量
            if (chkMedicalQuality1.Checked == true)
            {
                m_IemInfo.IemDiagInfo.Medical_Quality_Id = "1";
            }
            if (chkMedicalQuality2.Checked == true)
            {
                m_IemInfo.IemDiagInfo.Medical_Quality_Id = "2";
            }
            if (chkMedicalQuality3.Checked == true)
            {
                m_IemInfo.IemDiagInfo.Medical_Quality_Id = "3";
            }

            //新增的几个诊断符合情况add by ywk 2012年6月26日13:31:49
            //门诊和住院
            //if (chkMandZ0.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.MenAndInHop = "0";
            //}
            //if (chkMandZ1.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.MenAndInHop = "1";
            //}
            //if (chkMandZ2.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.MenAndInHop = "2";
            //}
            //if (chkMandZ3.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.MenAndInHop = "3";
            //}
            ////入院和出院
            //if (chkRandC0.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.InHopAndOutHop = "0";
            //}
            //if (chkRandC1.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.InHopAndOutHop = "1";
            //}
            //if (chkRandC2.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.InHopAndOutHop = "2";
            //}
            //if (chkRandC3.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.InHopAndOutHop = "3";
            //}
            ////术前和术后
            //if (chkSqAndSh0.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.BeforeOpeAndAfterOper = "0";
            //}
            //if (chkSqAndSh1.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.BeforeOpeAndAfterOper = "1";
            //}
            //if (chkSqAndSh2.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.BeforeOpeAndAfterOper = "2";
            //}
            //if (chkSqAndSh3.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.BeforeOpeAndAfterOper = "3";
            //}
            ////临床和病理
            //if (chkLandB0.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.LinAndBingLi = "0";
            //}
            //if (chkLandB1.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.LinAndBingLi = "1";
            //}
            //if (chkLandB2.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.LinAndBingLi = "2";
            //}
            //if (chkLandB3.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.LinAndBingLi = "3";
            //}
            ////入院三日内
            //if (chkRThree0.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.InHopThree = "0";
            //}
            //if (chkRThree1.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.InHopThree = "1";
            //}
            //if (chkRThree2.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.InHopThree = "2";
            //}
            //if (chkRThree3.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.InHopThree = "3";
            //}
            ////放射和病理
            //if (chkFandB0.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.FangAndBingLi = "0";
            //}
            //if (chkFandB1.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.FangAndBingLi = "1";
            //}
            //if (chkFandB2.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.FangAndBingLi = "2";
            //}
            //if (chkFandB3.Checked == true)
            //{
            //    m_IemInfo.IemDiagInfo.FangAndBingLi = "3";
            //}



            m_IemInfo.IemDiagInfo.Quality_Control_DoctorID   = lueZkys.CodeValue;
            m_IemInfo.IemDiagInfo.Quality_Control_DoctorName = lueZkys.Text;
            m_IemInfo.IemDiagInfo.Quality_Control_NurseID    = lueZkhs.CodeValue;
            m_IemInfo.IemDiagInfo.Quality_Control_NurseName  = lueZkhs.Text;
            if (!(deZkDate.DateTime.CompareTo(DateTime.MinValue) == 0))
            {
                m_IemInfo.IemDiagInfo.Quality_Control_Date = deZkDate.DateTime.ToString("yyyy-MM-dd");//+ " " + teZkDate.Time.ToString("HH:mm:ss");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// GET UI
        /// </summary>
        private void GetUI()
        {
            m_IemInfo.IemDiagInfo.Hurt_Toxicosis_ElementID = lueHurt_Toxicosis_Ele.CodeValue;
            m_IemInfo.IemDiagInfo.Hurt_Toxicosis_Element   = lueHurt_Toxicosis_Ele.Text;

            m_IemInfo.IemDiagInfo.Pathology_Diagnosis_Name = txtPathologyName.Text;
            m_IemInfo.IemDiagInfo.Pathology_Diagnosis_ID   = txtPathologyID.Text;
            m_IemInfo.IemDiagInfo.Pathology_Observation_Sn = txtPathologySn.Text;
            m_IemInfo.IemDiagInfo.Pathology_Observation_Fq = txtPathologyFq.Text;
            m_IemInfo.IemDiagInfo.Follow_Up_Cycle          = txtFOLLOWUPCYCLE.Text;

            m_IemInfo.IemDiagInfo.Allergic_Drug = txtAllergicDrug.Text;
            if (chkAllergic1.Checked)
            {
                m_IemInfo.IemDiagInfo.Allergic_Flag = "1";
            }
            else if (chkAllergic2.Checked)
            {
                m_IemInfo.IemDiagInfo.Allergic_Flag = "2";
            }
            else
            {
                m_IemInfo.IemDiagInfo.Allergic_Flag = "";//为空
            }

            if (chkAutopsy1.Checked)
            {
                m_IemInfo.IemDiagInfo.Autopsy_Flag = "1";
            }
            else if (chkAutopsy2.Checked)
            {
                m_IemInfo.IemDiagInfo.Autopsy_Flag = "2";
            }
            else
            {
                m_IemInfo.IemDiagInfo.Autopsy_Flag = "";
            }

            //随诊
            if (chkFollowup1.Checked)
            {
                m_IemInfo.IemDiagInfo.Follow_Up = "1";
            }
            else if (chkFollowup2.Checked)
            {
                m_IemInfo.IemDiagInfo.Follow_Up = "2";
            }
            else
            {
                m_IemInfo.IemDiagInfo.Follow_Up = "";
            }

            if (chkBlood1.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "1";
            }
            else if (chkBlood2.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "2";
            }
            else if (chkBlood3.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "3";
            }
            else if (chkBlood4.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "4";
            }
            else if (chkBlood5.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "5";
            }
            else if (chkBlood6.Checked)
            {
                m_IemInfo.IemDiagInfo.BloodType = "6";
            }
            else
            {
                m_IemInfo.IemDiagInfo.BloodType = "";
            }

            if (chkRH1.Checked)
            {
                m_IemInfo.IemDiagInfo.Rh = "1";
            }
            else if (chkRH2.Checked)
            {
                m_IemInfo.IemDiagInfo.Rh = "2";
            }
            else if (chkRH3.Checked)
            {
                m_IemInfo.IemDiagInfo.Rh = "3";
            }
            else if (chkRH4.Checked)
            {
                m_IemInfo.IemDiagInfo.Rh = "4";
            }
            else
            {
                m_IemInfo.IemDiagInfo.Rh = "";
            }


            DataTable dt = m_IemInfo.IemDiagInfo.OutDiagTable;

            dt.Rows.Clear();
            #region 已修改  by xlb 2013-07-15 解决保存时表数据窜位置现象

            if (this.gridControl1.DataSource != null)
            {
                //出院诊断
                DataTable dataTable = this.gridControl1.DataSource as DataTable;
                //DataTable dataTable2 = this.gridControl2.DataSource as DataTable;
                DataTable dataTableNew = new DataTable();
                if (dataTable != null)
                {
                    //复制西医表结构
                    dataTableNew = dataTable.Clone();
                }
                //else if (dataTable2 != null)
                //{
                //    //复制中医表结构
                //    dataTableNew = dataTable2.Clone();
                //}
                if (dataTable != null)
                {
                    //中西医表都不为NULL则合并量表数据
                    dataTableNew.Merge(dataTable);
                    //dataTableNew.Merge(dataTable2);
                }
                //else if (dataTable == null)
                //{
                //    //否则复制不为NULL的表
                //    dataTableNew = dataTable2;
                //}
                //else if (dataTable2 == null)
                //{
                //    dataTableNew = dataTable;
                //}
                int XYindex = 0; //西医数据集排序码
                int ZYindex = 0; //中医数据集排序码
                for (int i = 0; i < dataTableNew.Rows.Count; i++)
                {
                    DataRow row = dataTableNew.Rows[i];

                    DataRow imOut = dt.NewRow();
                    imOut["Diagnosis_Code"] = row["Diagnosis_Code"].ToString();
                    imOut["Diagnosis_Name"] = row["Diagnosis_Name"].ToString();
                    if (row["Type"].ToString() == "1")//西医
                    {
                        //默认中西医诊断第一条为主要诊断
                        if (XYindex == 0)
                        {
                            imOut["Diagnosis_Type_Id"] = 7;//7表示主要诊断
                        }
                        else
                        {
                            imOut["Diagnosis_Type_Id"] = 8;//8表示其他诊断
                        }
                        XYindex++;
                    }
                    else if (row["Type"].ToString() == "2")//中医
                    {
                        //默认中西医诊断第一条为主要诊断
                        if (ZYindex == 0)
                        {
                            imOut["Diagnosis_Type_Id"] = 7;//7表示主要诊断
                        }
                        else
                        {
                            imOut["Diagnosis_Type_Id"] = 8;//8表示其他诊断
                        }
                        ZYindex++;
                    }
                    //if (i == 0)
                    //{
                    //    imOut["Diagnosis_Type_Id"] = 7;//7表示主要诊断
                    //}
                    //else
                    //{
                    //    imOut["Diagnosis_Type_Id"] = 8;//8表示其他诊断
                    //}
                    imOut["Status_Id"]      = Convertmy.ToDecimal(row["Status_Id"]);
                    imOut["Status_Name"]    = row["Status_Name"];
                    imOut["OutStatus_Id"]   = Convertmy.ToDecimal(row["OutStatus_Id"]);
                    imOut["OutStatus_Name"] = row["OutStatus_Name"];
                    imOut["Order_Value"]    = i + 1;
                    imOut["Type"]           = row["Type"];
                    imOut["TypeName"]       = row["TypeName"];
                    dt.Rows.Add(imOut);
                }
            }

            #endregion
            m_IemInfo.IemDiagInfo.Section_DirectorID     = lueKszr.CodeValue;
            m_IemInfo.IemDiagInfo.Section_DirectorName   = lueKszr.Text;
            m_IemInfo.IemDiagInfo.DirectorID             = lueZrys.CodeValue;
            m_IemInfo.IemDiagInfo.DirectorName           = lueZrys.Text;
            m_IemInfo.IemDiagInfo.Vs_EmployeeID          = lueZzys.CodeValue;
            m_IemInfo.IemDiagInfo.Vs_EmployeeName        = lueZzys.Text;
            m_IemInfo.IemDiagInfo.Resident_EmployeeID    = lueZyys.CodeValue;
            m_IemInfo.IemDiagInfo.Resident_EmployeeName  = lueZyys.Text;
            m_IemInfo.IemDiagInfo.Attending_EmployeeID   = lueZzhenys.CodeValue;
            m_IemInfo.IemDiagInfo.Attending_EmployeeName = lueZzhenys.Text;
            m_IemInfo.IemDiagInfo.Duty_NurseID           = lueDuty_Nurse.CodeValue;
            m_IemInfo.IemDiagInfo.Duty_NurseName         = lueDuty_Nurse.Text;
            m_IemInfo.IemDiagInfo.Refresh_EmployeeID     = luejxys.CodeValue;
            m_IemInfo.IemDiagInfo.Refresh_EmployeeName   = luejxys.Text;
            m_IemInfo.IemDiagInfo.InterneID       = lueSxys.CodeValue;
            m_IemInfo.IemDiagInfo.InterneName     = lueSxys.Text;
            m_IemInfo.IemDiagInfo.Coding_UserID   = lueBmy.CodeValue;
            m_IemInfo.IemDiagInfo.Coding_UserName = lueBmy.Text;
            //病案质量
            if (chkMedicalQuality1.Checked == true)
            {
                m_IemInfo.IemDiagInfo.Medical_Quality_Id = "1";
            }
            if (chkMedicalQuality2.Checked == true)
            {
                m_IemInfo.IemDiagInfo.Medical_Quality_Id = "2";
            }
            if (chkMedicalQuality3.Checked == true)
            {
                m_IemInfo.IemDiagInfo.Medical_Quality_Id = "3";
            }

            m_IemInfo.IemDiagInfo.Quality_Control_DoctorID   = lueZkys.CodeValue;
            m_IemInfo.IemDiagInfo.Quality_Control_DoctorName = lueZkys.Text;
            m_IemInfo.IemDiagInfo.Quality_Control_NurseID    = lueZkhs.CodeValue;
            m_IemInfo.IemDiagInfo.Quality_Control_NurseName  = lueZkhs.Text;
            if (!(deZkDate.DateTime.CompareTo(DateTime.MinValue) == 0))
            {
                m_IemInfo.IemDiagInfo.Quality_Control_Date = deZkDate.DateTime.ToString("yyyy-MM-dd");//+ " " + teZkDate.Time.ToString("HH:mm:ss");
            }
        }
Ejemplo n.º 3
0
        private void FillUIInner()
        {
            #region
            //if (m_IemInfo.IemBasicInfo.Iem_Mainpage_NO == "")
            //{
            //    //to do 病患基本信息
            //}
            //else
            //{
            //出院诊断
            //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();
            //    }

            //}
            //DataTable dataTableOper = m_IemInfo.IemDiagInfo.OutDiagTable;//这种取值,进行编辑后再进入娶不到值
            IemMainPageManger IemM          = new IemMainPageManger(m_App, m_App.CurrentPatientInfo);
            DataTable         dataTableOper = IemM.GetIemInfo().IemDiagInfo.OutDiagTable;

            this.gridControl1.DataSource = null;
            this.gridControl1.BeginUpdate();
            if (dataTableOper.Select("Diagnosis_Type_Id = '7' or Diagnosis_Type_Id = '8'").Length != 0)
            {
                this.gridControl1.DataSource = dataTableOper.Select("Diagnosis_Type_Id = '7' or Diagnosis_Type_Id = '8'").CopyToDataTable();
            }
            this.gridControl1.EndUpdate();

            m_App.PublicMethod.ConvertGridDataSourceUpper(gridViewDiagnose);

            lueHurt_Toxicosis_Ele.CodeValue = m_IemInfo.IemDiagInfo.Hurt_Toxicosis_ElementID;

            txtPathologyName.Text = m_IemInfo.IemDiagInfo.Pathology_Diagnosis_Name;
            txtPathologyID.Text   = m_IemInfo.IemDiagInfo.Pathology_Diagnosis_ID;
            txtPathologySn.Text   = m_IemInfo.IemDiagInfo.Pathology_Observation_Sn;


            txtAllergicDrug.Text = m_IemInfo.IemDiagInfo.Allergic_Drug;
            if (m_IemInfo.IemDiagInfo.Allergic_Flag == "1")
            {
                chkAllergic1.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.Allergic_Flag == "2")
            {
                chkAllergic2.Checked = true;
            }

            if (m_IemInfo.IemBasicInfo.Autopsy_Flag == "1")
            {
                chkAutopsy1.Checked = true;
            }
            else if (m_IemInfo.IemBasicInfo.Autopsy_Flag == "2")
            {
                chkAutopsy2.Checked = true;
            }

            if (m_IemInfo.IemDiagInfo.BloodType == "1")
            {
                chkBlood1.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.BloodType == "2")
            {
                chkBlood2.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.BloodType == "3")
            {
                chkBlood3.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.BloodType == "4")
            {
                chkBlood4.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.BloodType == "5")
            {
                chkBlood5.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.BloodType == "6")
            {
                chkBlood6.Checked = true;
            }


            if (m_IemInfo.IemDiagInfo.Rh == "1")
            {
                chkRH1.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.Rh == "2")
            {
                chkRH2.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.Rh == "3")
            {
                chkRH3.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.Rh == "4")
            {
                chkRH4.Checked = true;
            }


            foreach (DataRow im in dataTableOper.Rows)
            {
                if (im["Diagnosis_Type_Id"].ToString() == "13")
                {
                    this.lueOutDiag.CodeValue = im["Diagnosis_Code"].ToString() == "" ? "" : im["Diagnosis_Code"].ToString();
                }
                //else if (im["Diagnosis_Type_Id"].ToString() == "2")
                //    this.lueInDiag.CodeValue = im["Diagnosis_Code"].ToString() == "" ? "" : im["Diagnosis_Code"].ToString();
            }
            //如果dataTableOper为0,将门诊诊断的值赋给下拉框add by ywk 2012年6月15日 13:32:01
            if (dataTableOper.Rows.Count == 0 && !string.IsNullOrEmpty(m_IemInfo.IemDiagInfo.OutDiagID))
            {
                this.lueOutDiag.CodeValue = m_IemInfo.IemDiagInfo.OutDiagID;
            }

            lueKszr.CodeValue       = m_IemInfo.IemDiagInfo.Section_DirectorID;
            lueZrys.CodeValue       = m_IemInfo.IemDiagInfo.DirectorID;
            lueZzys.CodeValue       = m_IemInfo.IemDiagInfo.Vs_EmployeeID;
            lueZyys.CodeValue       = m_IemInfo.IemDiagInfo.Resident_EmployeeID;
            lueDuty_Nurse.CodeValue = m_IemInfo.IemDiagInfo.Duty_NurseID;
            luejxys.CodeValue       = m_IemInfo.IemDiagInfo.Refresh_EmployeeID;
            lueSxys.CodeValue       = m_IemInfo.IemDiagInfo.InterneID;
            lueBmy.CodeValue        = m_IemInfo.IemDiagInfo.Coding_UserID;
            //病案质量
            if (Convertmy.ToDecimal(m_IemInfo.IemDiagInfo.Medical_Quality_Id) == 1)
            {
                chkMedicalQuality1.Checked = true;
            }
            if (Convertmy.ToDecimal(m_IemInfo.IemDiagInfo.Medical_Quality_Id) == 2)
            {
                chkMedicalQuality2.Checked = true;
            }
            if (Convertmy.ToDecimal(m_IemInfo.IemDiagInfo.Medical_Quality_Id) == 3)
            {
                chkMedicalQuality3.Checked = true;
            }
            lueZkys.CodeValue = m_IemInfo.IemDiagInfo.Quality_Control_DoctorID;
            lueZkhs.CodeValue = m_IemInfo.IemDiagInfo.Quality_Control_NurseID;
            if (!String.IsNullOrEmpty(m_IemInfo.IemDiagInfo.Quality_Control_Date))
            {
                deZkDate.DateTime = Convert.ToDateTime(m_IemInfo.IemDiagInfo.Quality_Control_Date);
                //teZkDate.Time = Convert.ToDateTime(m_IemInfo.IemDiagInfo.Quality_Control_Date);
            }

            #endregion
        }
Ejemplo n.º 4
0
        private void FillUIInner()
        {
            #region
            DataTable dataTableOper = m_IemInfo.IemDiagInfo.OutDiagTable;
            this.gridControl1.DataSource = null;
            this.gridControl1.BeginUpdate();
            if (dataTableOper.Select("(Diagnosis_Type_Id = '7' or Diagnosis_Type_Id = '8') and Type = '1'").Length != 0)
            {
                this.gridControl1.DataSource = dataTableOper.Select("(Diagnosis_Type_Id = '7' or Diagnosis_Type_Id = '8') and Type = '1'").CopyToDataTable();
            }
            this.gridControl1.EndUpdate();

            m_App.PublicMethod.ConvertGridDataSourceUpper(gridViewDiagnose);

            lueHurt_Toxicosis_Ele.CodeValue = m_IemInfo.IemDiagInfo.Hurt_Toxicosis_ElementID;

            txtPathologyName.Text = m_IemInfo.IemDiagInfo.Pathology_Diagnosis_Name;
            txtPathologyID.Text   = m_IemInfo.IemDiagInfo.Pathology_Diagnosis_ID;
            txtPathologySn.Text   = m_IemInfo.IemDiagInfo.Pathology_Observation_Sn;
            txtPathologyFq.Text   = m_IemInfo.IemDiagInfo.Pathology_Observation_Fq;
            txtFOLLOWUPCYCLE.Text = m_IemInfo.IemDiagInfo.Follow_Up_Cycle;

            txtAllergicDrug.Text = m_IemInfo.IemDiagInfo.Allergic_Drug;
            if (m_IemInfo.IemDiagInfo.Allergic_Flag == "1")
            {
                chkAllergic1.Checked = true;//无过敏药物
            }
            else if (m_IemInfo.IemDiagInfo.Allergic_Flag == "2")
            {
                chkAllergic2.Checked = true;//有过敏药物
            }
            if (m_IemInfo.IemDiagInfo.Autopsy_Flag == "1")
            {
                chkAutopsy1.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.Autopsy_Flag == "2")
            {
                chkAutopsy2.Checked = true;
            }
            //随诊
            if (m_IemInfo.IemDiagInfo.Follow_Up == "1")
            {
                chkFollowup1.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.Follow_Up == "2")
            {
                chkFollowup2.Checked = true;
            }

            if (m_IemInfo.IemDiagInfo.BloodType == "1")
            {
                chkBlood1.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.BloodType == "2")
            {
                chkBlood2.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.BloodType == "3")
            {
                chkBlood3.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.BloodType == "4")
            {
                chkBlood4.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.BloodType == "5")
            {
                chkBlood5.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.BloodType == "6")
            {
                chkBlood6.Checked = true;
            }


            if (m_IemInfo.IemDiagInfo.Rh == "1")
            {
                chkRH1.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.Rh == "2")
            {
                chkRH2.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.Rh == "3")
            {
                chkRH3.Checked = true;
            }
            else if (m_IemInfo.IemDiagInfo.Rh == "4")
            {
                chkRH4.Checked = true;
            }


            //foreach (DataRow im in dataTableOper.Rows)
            //{
            //    if (im["Diagnosis_Type_Id"].ToString() == "13")
            //        this.lueOutDiag.CodeValue = im["Diagnosis_Code"].ToString() == "" ? "" : im["Diagnosis_Code"].ToString();
            //    //else if (im["Diagnosis_Type_Id"].ToString() == "2")
            //    //    this.lueInDiag.CodeValue = im["Diagnosis_Code"].ToString() == "" ? "" : im["Diagnosis_Code"].ToString();
            //}


            lueKszr.CodeValue       = m_IemInfo.IemDiagInfo.Section_DirectorID;
            lueZrys.CodeValue       = m_IemInfo.IemDiagInfo.DirectorID;
            lueZzys.CodeValue       = m_IemInfo.IemDiagInfo.Vs_EmployeeID;
            lueZyys.CodeValue       = m_IemInfo.IemDiagInfo.Resident_EmployeeID;
            lueZzhenys.CodeValue    = m_IemInfo.IemDiagInfo.Attending_EmployeeID;
            lueDuty_Nurse.CodeValue = m_IemInfo.IemDiagInfo.Duty_NurseID;
            luejxys.CodeValue       = m_IemInfo.IemDiagInfo.Refresh_EmployeeID;
            lueSxys.CodeValue       = m_IemInfo.IemDiagInfo.InterneID;
            lueBmy.CodeValue        = m_IemInfo.IemDiagInfo.Coding_UserID;
            //病案质量
            if (Convertmy.ToDecimal(m_IemInfo.IemDiagInfo.Medical_Quality_Id) == 1)
            {
                chkMedicalQuality1.Checked = true;
            }
            if (Convertmy.ToDecimal(m_IemInfo.IemDiagInfo.Medical_Quality_Id) == 2)
            {
                chkMedicalQuality2.Checked = true;
            }
            if (Convertmy.ToDecimal(m_IemInfo.IemDiagInfo.Medical_Quality_Id) == 3)
            {
                chkMedicalQuality3.Checked = true;
            }
            lueZkys.CodeValue = m_IemInfo.IemDiagInfo.Quality_Control_DoctorID;
            lueZkhs.CodeValue = m_IemInfo.IemDiagInfo.Quality_Control_NurseID;
            if (!String.IsNullOrEmpty(m_IemInfo.IemDiagInfo.Quality_Control_Date))
            {
                deZkDate.DateTime = Convert.ToDateTime(m_IemInfo.IemDiagInfo.Quality_Control_Date);
                //teZkDate.Time = Convert.ToDateTime(m_IemInfo.IemDiagInfo.Quality_Control_Date);
            }
            //}
            #endregion
        }