private void ucQueryInpatientNo_myEvent()
        {
            this.Clear();
            if (this.ucQueryInpatientNo.InpatientNo == null || this.ucQueryInpatientNo.InpatientNo.Trim() == "")
            {
                if (this.ucQueryInpatientNo.Err == "")
                {
                    ucQueryInpatientNo.Err = "此患者不在院!";
                }
                Neusoft.FrameWork.WinForms.Classes.Function.Msg(this.ucQueryInpatientNo.Err, 211);
                this.ucQueryInpatientNo.Focus();
                return;
            }
            PatientInfo temp = this.localManager.GetSIPersonInfo(this.patientInfo.ID, "0");

            if (temp == null)
            {
                MessageBox.Show("获取中间表患者信息失败!");
                this.ucQueryInpatientNo.Focus();
                return;
            }
            this.patientInfo.SIMainInfo.RegNo = temp.SIMainInfo.RegNo;

            //获取住院号赋值给lbl
            this.patientInfo         = this.radtIntegrate.GetPatientInfomation(this.ucQueryInpatientNo.InpatientNo);
            this.lblPatientInfo.Text = string.Format(this.patientBaseInfo, this.patientInfo.Name, this.patientInfo.PVisit.PatientLocation.Bed.ID,
                                                     this.patientInfo.ID.Substring(4), this.patientInfo.SIMainInfo.RegNo, this.patientInfo.Pact.Name, this.patientInfo.PVisit.PatientLocation.Dept.Name,
                                                     this.patientInfo.FT.TotCost.ToString());
        }
Esempio n. 2
0
        /// <summary>
        /// 对控件进行赋值

        /// </summary>
        private void ucQueryInpatientNo1_myEvent()
        {
            patientInfo = null;
            if (this.ucQueryInpatientNo1.InpatientNo == "")
            {
                Neusoft.FrameWork.WinForms.Classes.Function.Msg("不存在该患者,或者该患者已经出院!", 111);
                this.Clear();
                return;
            }
            //获取住院号赋值给实体

            this.patientInfo = this.radtIntegrate.GetPatientInfomation(this.ucQueryInpatientNo1.InpatientNo);

            if (this.patientInfo == null)
            {
                MessageBox.Show(this.radtIntegrate.Err);
                this.ucQueryInpatientNo1.Focus();

                return;
            }

            this.patientInfoOld = this.patientInfo.Clone();
            //重置一次性领用标识
            this.chkGetFlag.Enabled = true;
            SetPatientInfo(this.patientInfo);

            //this.txtName.Focus();
            this.cmbSex.Focus();
        }
Esempio n. 3
0
        private void fpMainInfo_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            if (this.fpMainInfo_Sheet1.RowCount <= 0)
            {
                return;
            }
            string inpatientNO = this.fpMainInfo_Sheet1.Cells[e.Row, 0].Text;

            if (inpatientNO == null)
            {
                return;
            }

            this.currentPatient = this.radtManager.LocalQueryPatientInfoByInpatientNO(inpatientNO);
            if (this.currentPatient == null || this.currentPatient.ID == null || this.currentPatient.ID == string.Empty)
            {
                MessageBox.Show(Language.Msg("查询患者基本信息出错!") + this.radtManager.Err);

                return;
            }

            this.SetPatientInfo();

            dtDrugList.Rows.Clear();
            dtUndrugList.Rows.Clear();
            dtPrepay.Rows.Clear();
            dtFee.Rows.Clear();
            dtBalance.Rows.Clear();

            //设置查询时间
            DateTime beginTime = this.currentPatient.PVisit.InTime;
            DateTime endTime   = this.radtManager.GetDateTimeFromSysDateTime();

            this.QueryAllInfomaition(beginTime, endTime);
        }
Esempio n. 4
0
        private void txtName_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                //{FF539371-A89F-4a21-911A-3F2FAE388EF0}
                this.ucInpatientCharge1.Clear();
                this.patientInfo = new PatientInfo();

                this.GetPatientInfoFromInputName();

                this.ucInpatientCharge1.PatientInfo = this.patientInfo;
                this.cmbDept.Focus();
            }
        }
Esempio n. 5
0
        /// <summary>
        /// 获取诊断
        /// </summary>
        protected string GetDiagnose(Neusoft.HISFC.Models.RADT.PatientInfo patientInfo)
        {
            Neusoft.HISFC.BizLogic.HealthRecord.Diagnose diag = new Neusoft.HISFC.BizLogic.HealthRecord.Diagnose();
            if (patientInfo.CaseState == "1" || patientInfo.CaseState == "2")
            {
                //从医生站录入的信息中查询
                ArrayList diagList = diag.QueryCaseDiagnose(patientInfo.ID, "%", Neusoft.HISFC.Models.HealthRecord.EnumServer.frmTypes.DOC);
                if (diagList != null && diagList.Count > 0)
                {
                    Neusoft.HISFC.Models.HealthRecord.Diagnose obj = diagList[0] as Neusoft.HISFC.Models.HealthRecord.Diagnose;
                    return(obj.DiagInfo.ICD10.Name);
                }
            }

            return("");
        }
Esempio n. 6
0
        /// <summary>
        /// 根据输入的住院号查询患者基本信息
        /// </summary>
        private void QueryPatientByInpatientNO(Neusoft.HISFC.Models.RADT.PatientInfo patients)
        {
            this.Clear();
            this.dtMainInfo.Rows.Clear();
            Cursor.Current = Cursors.WaitCursor;
            //住院主表信息
            this.SetPatientToFpMain(patients);
            Cursor.Current = Cursors.Arrow;
            this.SetPatientInfo();
            //设置查询时间
            //设置查询时间
            DateTime beginTime = this.currentPatient.PVisit.InTime;
            DateTime endTime   = this.radtManager.GetDateTimeFromSysDateTime();

            this.QueryAllInfomaition(beginTime, endTime);
            this.fpMainInfo_Sheet1.Columns[13].Width = 180;
        }
Esempio n. 7
0
 /// <summary>
 /// 清空控件信息
 /// </summary>
 protected virtual void Clear()
 {
     this.txtName.Text  = string.Empty;
     this.txtIDNO.Text  = string.Empty;
     this.cmbMarry.Text = string.Empty;
     this.cmbPact.Text  = string.Empty;
     this.cmbArea.Text  = string.Empty;
     //this.cmbCountry.Text = string.Empty;
     this.cmbCountry.SelectedIndex = 0;
     this.cmbNation.SelectedIndex  = 0;
     this.cmbProfession.Text       = string.Empty;
     this.txtLinkMan.Text          = string.Empty;
     this.cmbRelation.Text         = string.Empty;
     this.cmbLinkAddress.Text      = string.Empty;
     this.txtHomePhone.Text        = string.Empty;
     this.txtWorkPhone.Text        = string.Empty;
     //this.cmbInSource.Text = string.Empty;
     this.cmbDoctor.Text            = string.Empty;
     this.cmbInSource.SelectedIndex = 0;
     this.cmbApproach.SelectedIndex = 0;
     this.cmbCircs.SelectedIndex    = 0;
     this.txtBedInterval.Text       = "1";
     this.cmbArea.Text = string.Empty;
     // 属性控制{F577FEF5-53D1-4768-B345-F2EBD3E9DF9C}
     //this.txtName.Enabled = true;
     this.txtIDNO.Enabled     = true;
     this.cmbHomeAddress.Text = string.Empty;
     this.cmbWorkAddress.Text = string.Empty;
     this.txtCardNO.Text      = string.Empty;
     //this.cmbSex.Text = string.Empty;
     //this.cmbNation.Text = string.Empty;
     this.dtpInTime.Value          = this.inpatientManager.GetDateTimeFromSysDateTime();
     this.dtpBirthDay.Value        = this.inpatientManager.GetDateTimeFromSysDateTime();
     this.txtAge.Text              = string.Empty;
     this.txtAge.ReadOnly          = true;
     this.txtHomePhone.Text        = string.Empty;
     this.txtLinkPhone.Text        = string.Empty;
     this.patientInfo              = null;
     this.patientInfoOld           = null;
     this.ucQueryInpatientNo1.Text = string.Empty;
     this.cmbMark.Text             = string.Empty;
     this.chbEncrypt.Checked       = false;
     this.chkGetFlag.Checked       = false;
     this.chkGetFlag.Enabled       = true;
 }
Esempio n. 8
0
        /// <summary>
        /// 显示患者基本信息
        /// </summary>
        /// <param name="patient">成功 1 失败 -1</param>
        private void SetPatientToFpMain(Neusoft.HISFC.Models.RADT.PatientInfo patient)
        {
            if (patient == null)
            {
                return;
            }

            DataRow row = this.dtMainInfo.NewRow();

            try
            {
                row["住院流水号"]    = patient.ID;
                row["住院号"]      = patient.PID.PatientNO;
                row["姓名"]       = patient.Name;
                row["住院科室"]     = patient.PVisit.PatientLocation.Dept.Name;
                row["床号"]       = patient.PVisit.PatientLocation.Bed.ID;
                row["患者类别"]     = patient.Pact.Name;
                row["预交金(未结)"]  = patient.FT.PrepayCost;
                row["费用合计(未结)"] = patient.FT.TotCost;
                row["余额"]       = patient.FT.LeftCost;
                row["自费"]       = patient.FT.OwnCost;
                row["自负"]       = patient.FT.PayCost;
                row["公费"]       = patient.FT.PubCost;
                row["入院日期"]     = patient.PVisit.InTime;
                row["在院状态"]     = patient.PVisit.InState.Name;

                row["出院日期"] = patient.PVisit.OutTime.Date == new DateTime(1, 1, 1).Date ? string.Empty : patient.PVisit.OutTime.ToString();

                row["预交金(已结)"]  = patient.FT.BalancedPrepayCost;
                row["费用合计(已结)"] = patient.FT.BalancedCost;
                //row["医疗类别"] = patient.PVisit.MedicalType.Name;
                row["结算日期"] = patient.BalanceDate;

                this.dtMainInfo.Rows.Add(row);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);

                return;
            }
        }
Esempio n. 9
0
        /// <summary>
        /// 清空!
        /// </summary>
        protected void Clear()
        {
            this.txtName.Text         = string.Empty;
            this.cmbDept.Tag          = string.Empty;
            this.cmbDoct.Tag          = string.Empty;
            this.txtInDate.Text       = string.Empty;
            this.txtBedNO.Text        = string.Empty;
            this.txtNurseStation.Text = string.Empty;
            this.txtLeftCost.Text     = string.Empty;
            this.txtDoct.Text         = string.Empty;

            this.patientInfo = null;

            this.ucInpatientCharge1.Clear();

            this.rbName.Checked = true;
            this.isInputName    = true;
            this.txtName.Focus();
            this.ucQueryInpatientNO.Text = string.Empty;
        }
Esempio n. 10
0
        /// <summary>
        /// 单据打印
        /// </summary>
        /// <param name="patient"></param>
        /// <param name="feeItemCollection"></param>
        protected void Print(Neusoft.HISFC.Models.RADT.PatientInfo patient, List <Neusoft.HISFC.Models.Fee.Inpatient.FeeItemList> feeItemCollection)
        {
            if (this.printInterface == null)
            {
                this.printInterface = Neusoft.FrameWork.WinForms.Classes.UtilInterface.CreateObject(this.GetType(), typeof(Neusoft.HISFC.BizProcess.Interface.FeeInterface.IInpatientChargePrint)) as Neusoft.HISFC.BizProcess.Interface.FeeInterface.IInpatientChargePrint;
            }

            if (this.printInterface != null)
            {
                this.printInterface.Patient = patient;
                this.printInterface.SetData(feeItemCollection);

                this.printInterface.Print();
            }
            else
            {
                return;
                //MessageBox.Show(Language.Msg("打印接口未进行设置,不进行单据打印"));
            }
        }
Esempio n. 11
0
        /// <summary>
        /// 住院号回车
        /// </summary>
        private void ucQueryInpatientNO_myEvent()
        {
            //{FF539371-A89F-4a21-911A-3F2FAE388EF0}
            this.ucInpatientCharge1.Clear();
            if (this.ucQueryInpatientNO.InpatientNo == null || this.ucQueryInpatientNO.InpatientNo.Trim() == string.Empty)
            {
                MessageBox.Show(Language.Msg("没有该住院号,请验证再输入") + this.ucQueryInpatientNO.Err);
                this.ucQueryInpatientNO.Focus();
                this.ucQueryInpatientNO.TextBox.SelectAll();

                return;
            }

            //获得患者基本信息
            this.patientInfo = this.radtIntegrate.GetPatientInfomation(this.ucQueryInpatientNO.InpatientNo);
            if (this.patientInfo == null)
            {
                MessageBox.Show(Language.Msg("获得患者基本信息出错!") + this.radtIntegrate.Err);
                this.ucQueryInpatientNO.Focus();
                this.ucQueryInpatientNO.TextBox.SelectAll();

                return;
            }

            //判断在院状态是否符合
            if (!this.IsPatientStateValid())
            {
                return;
            }

            //显示患者基本信息
            this.SetInfomaition();

            this.ucInpatientCharge1.PatientInfo = this.patientInfo;

            this.cmbDoct.Focus();
        }
Esempio n. 12
0
 /// <summary>
 /// 显示患者信息
 /// </summary>
 /// <param name="patient"></param>
 private void DispPatientinfo(Neusoft.HISFC.Models.RADT.PatientInfo patient)
 {
     this.neuLabel3.Text = patient.Name + "[" + patient.PID.PatientNO + ", " + patient.Sex.Name + ",  " + patient.PVisit.PatientLocation.Dept.Name + " ]";
 }
Esempio n. 13
0
        /// <summary>
        /// 数据打印
        /// </summary>
        /// <returns></returns>
        protected virtual int Print()
        {
            #region 管理变量

            ArrayList al = new ArrayList();                                                             //数值数组
            Neusoft.HISFC.BizLogic.Order.Order orderManager = new Neusoft.HISFC.BizLogic.Order.Order(); //管理类

            #endregion

            foreach (Control c in this.panelContainer.Controls)
            {
                #region 事务设置

                //Neusoft.FrameWork.Management.Transaction t = new Neusoft.FrameWork.Management.Transaction(orderManager.Connection);
                //t.BeginTransaction();
                //orderManager.SetTrans(t.Trans);
                //itemManager.SetTrans(t.Trans);

                Neusoft.FrameWork.Management.PublicTrans.BeginTransaction();
                orderManager.SetTrans(Neusoft.FrameWork.Management.PublicTrans.Trans);

                #endregion

                if (((ucLisApplyControl)c).IsSelected)//选择打印的检验单
                {
                    #region 打印状态更新

                    al.Add(((ucLisApplyControl)c).ControlValue);

                    //添加控制打印条码	//置打印标记	//保存检验条码
                    Neusoft.HISFC.Models.RADT.PatientInfo p = ((ucLisApplyControl)c).ControlValue as Neusoft.HISFC.Models.RADT.PatientInfo;

                    List <Neusoft.HISFC.Models.Order.ExecOrder> execList = null;
                    if (this.ILisDBInstance != null)
                    {
                        execList = new List <ExecOrder>();
                    }

                    try
                    {
                        string[] strExeOrderID = p.User01.Split(',');
                        for (int m = 0; m < strExeOrderID.Length; m++)
                        {
                            #region 如果ILisDB接口已实现 则获取医嘱执行档信息

                            if (this.ILisDBInstance != null)
                            {
                                Neusoft.HISFC.Models.Order.ExecOrder exeOrder = orderManager.QueryExecOrderByExecOrderID(strExeOrderID[m], "2");
                                if (exeOrder == null)
                                {
                                    //t.RollBack();
                                    Neusoft.FrameWork.Management.PublicTrans.RollBack();
                                    MessageBox.Show("获得执行档信息出错!" + orderManager.Err);
                                    return(-1);
                                }

                                execList.Add(exeOrder);
                            }

                            #endregion

                            #region 更新本地医嘱信息
                            if (orderManager.UpdateExecOrderLisBarCode(strExeOrderID[m], "") == -1)
                            {
                                //t.RollBack();
                                Neusoft.FrameWork.Management.PublicTrans.RollBack();
                                MessageBox.Show("无法更新条码!" + orderManager.Err);
                                return(-1);
                            }
                            if (orderManager.UpdateExecOrderLisPrint(strExeOrderID[m]) == -1)//更新巡回卡打印标记
                            {
                                //t.RollBack();
                                Neusoft.FrameWork.Management.PublicTrans.RollBack();
                                MessageBox.Show("无法更新打印标记!" + orderManager.Err);
                                return(-1);
                            }
                            #endregion
                        }

                        #region 如果ILisDB接口已实现 则传输Lis数据

                        if (this.ILisDBInstance != null)
                        {
                            string err = "";
                            if (this.ILisDBInstance.TransDataToLisDB(p, execList, ref err) == -1)
                            {
                                Neusoft.FrameWork.Management.PublicTrans.RollBack();
                                MessageBox.Show(p.Name + " 患者的Lis数据传输失败!  " + err);
                                return(-1);
                            }
                        }

                        #endregion
                    }
                    catch (Exception ex)
                    {
                        //t.RollBack();
                        Neusoft.FrameWork.Management.PublicTrans.RollBack();
                        MessageBox.Show("无法打印条码!" + ex.Message);
                        return(-1);
                    }

                    #endregion
                }

                //t.Commit();
                Neusoft.FrameWork.Management.PublicTrans.Commit();
            }

            #region 打印检验申请单

            Panel panel = new Panel();
            panel.BackColor = Color.White;

            if (al.Count > 0) //打印
            {
                ArrayList alNew = new ArrayList();
                foreach (Neusoft.HISFC.Models.RADT.PatientInfo pa in al)//查询数量,打印多张检验申请单
                {
                    string strLisID = "";
                    for (int i = 0; i < Neusoft.FrameWork.Function.NConvert.ToInt32(pa.PVisit.Memo); i++)
                    {
                        if (strLisID == "")
                        {
                            strLisID = pa.User01;
                        }

                        pa.User01 = strLisID + "-" + (i + 1).ToString();

                        alNew.Add(pa.Clone());
                    }
                }

                Neusoft.FrameWork.WinForms.Classes.Function.AddControlToPanel(alNew, this.printControl, panel, new System.Drawing.Size(800, 353), 1);

                Neusoft.FrameWork.WinForms.Classes.Print p = new Neusoft.FrameWork.WinForms.Classes.Print();
                try
                {
                    Control c = panel;

                    p.SetPageSize(new System.Drawing.Printing.PaperSize("", 800, 1000));
                    //Neusoft.UFC.Common.Classes.Function.GetPageSize("jyd", ref p);

                    p.IsPrintBackImage = false;
                    p.PrintPreview(8, 1, c);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }

                this.Query();

                return(0);
            }
            else //没选择不打印
            {
                return(-1);
            }

            #endregion
        }
Esempio n. 14
0
        /// <summary>
        /// 查询
        /// </summary>
        protected virtual void Query()
        {
            if (this.ILisDBInstance != null)
            {
                if (this.ILisDBInstance.ConnectLisOnQuery() == -1)
                {
                    MessageBox.Show("连接Lis数据库失败");
                }
            }

            ArrayList al = new ArrayList();

            if (myPatients == null)
            {
                return;
            }

            Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在查询检验单信息...");
            Application.DoEvents();

            for (int i = 0; i < this.myPatients.Count; i++)
            {
                ArrayList alOrder = alOrder = orderManager.QueryOrderLisApplyBill(((Neusoft.FrameWork.Models.NeuObject) this.myPatients[i]).ID, this.BeginDate, this.EndDate, this.RePrint);
                if (alOrder == null)
                {
                    MessageBox.Show(orderManager.Err);
                    Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();
                    return;
                }
                //患者诊断信息 赋值
                Neusoft.HISFC.Models.RADT.PatientInfo p = ((Neusoft.HISFC.Models.RADT.PatientInfo)myPatients[i]).Clone();
                string diagnose = this.GetDiagnose(p);

                string strDocName = "";
                string strDiff    = "";
                string strItems   = "";
                string strID      = "";                            //为了更新打印的索引

                Neusoft.HISFC.Models.Order.ExecOrder exeTempOrder; //临时变量 存储执行档信息
                //p.User01 主键ID p.User02 样本  p.User03 项目
                //p.PVisit.User01 执行科室  p.PVisit.User02 医生  p.PVisit.User01 送检日期 p.PVisit.Memo 数量
                for (int j = 0; j < alOrder.Count; j++)
                {
                    Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm(j);
                    Application.DoEvents();

                    exeTempOrder = alOrder[j] as Neusoft.HISFC.Models.Order.ExecOrder;

                    if (strDiff != exeTempOrder.Order.Combo.ID + exeTempOrder.DateUse.ToString("YYYY-MM-DD HH:mm") + exeTempOrder.Order.Sample.Name)
                    {
                        #region   组别项目
                        //添加上次的项目
                        if (strItems != "")
                        {
                            p.User01 = strID;                   //上次索引
                            p.User03 = strItems;

                            p.PVisit.User02 = strDocName;

                            al.Add(p.Clone());                          //上次的检验单
                        }

                        strDiff = exeTempOrder.Order.Combo.ID + exeTempOrder.DateUse.ToString("YYYY-MM-DD HH:mm") + exeTempOrder.Order.Sample.Name;
                        //患者诊断信息赋值
                        p           = ((Neusoft.HISFC.Models.RADT.PatientInfo)myPatients[i]).Clone();                                   //设置下一个
                        p.Diagnoses = new ArrayList(new string[1] {
                            diagnose
                        });

                        strItems   = exeTempOrder.Order.Item.Name;
                        strDocName = exeTempOrder.Order.ReciptDoctor.Name;

                        if (((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).Order.IsEmergency == true)
                        {
                            p.ExtendFlag1 = ((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).Order.IsEmergency.ToString();//加急标志
                        }
                        if (this.RePrint)
                        {
                            p.ExtendFlag2 = "True";//补打标志
                        }

                        p.User01        = ((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).ID;
                        p.User02        = ((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).Order.Sample.Name;  //样本类型
                        p.PVisit.User01 = ((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).Order.ExeDept.Name; //执行科室
                        p.PVisit.User03 = ((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).DateUse.ToLongDateString();

                        p.PVisit.Memo = ((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).Order.Qty.ToString(); //数量

                        strID = ((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).ID;

                        #endregion
                    }
                    else//相同的
                    {
                        strItems = strItems + "+" + ((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).Order.Item.Name;

                        p.PVisit.Memo = ((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).Order.Qty.ToString();//数量

                        strID = strID + "," + ((Neusoft.HISFC.Models.Order.ExecOrder)alOrder[j]).ID;
                    }
                }
                if (strItems != "")
                {
                    p.User01 = strID;
                    p.User03 = strItems;

                    p.PVisit.User02 = strDocName;

                    al.Add(p.Clone());//上次的检验单
                }
            }

            Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm();

            this.AddControlData(al);
        }
Esempio n. 15
0
        /// <summary>
        /// 设置患者信息到控件
        /// </summary>
        /// <param name="patientInfo"></param>
        protected void SetPatientInfo(Neusoft.HISFC.Models.RADT.PatientInfo patientInfo)
        {
            this.patientInfo = patientInfo;
            Neusoft.HISFC.Models.RADT.Patient Patient = patientInfo;
            this.chbEncrypt.Checked = patientInfo.IsEncrypt;
            bool GetFlag = false; //领用标识

            #region               //{7218AEA9-CEA8-4eea-B592-F599E9A5DDE8} by xizf 20101123
            string rev = local.GetReceiptPerson(this.patientInfo.ID);
            if (rev != "0")
            {
                GetFlag = true;
            }
            #endregion
            if (patientInfo.IsEncrypt)
            {
                patientInfo.Name = Neusoft.FrameWork.WinForms.Classes.Function.Decrypt3DES(patientInfo.NormalName);
            }
            this.chkGetFlag.Checked  = GetFlag;                                            //领用标识
            this.txtName.Text        = patientInfo.Name;                                   //姓名
            this.cmbSex.Text         = patientInfo.Sex.Name;                               //性别
            this.cmbSex.Tag          = patientInfo.Sex.ID;                                 //性别
            this.txtCardNO.Text      = patientInfo.PID.CardNO;                             //就诊卡号
            this.txtCardNO.ReadOnly  = true;
            this.cmbPact.Text        = patientInfo.Pact.Name;                              //合同单位名称
            this.cmbPact.Tag         = patientInfo.Pact.ID;                                //合同单位ID
            this.cmbPact.IsListOnly  = true;
            this.cmbArea.Tag         = patientInfo.AreaCode;                               //地区
            this.cmbCountry.Tag      = patientInfo.Country.ID;                             //国籍
            this.cmbNation.Tag       = patientInfo.Nationality.ID;                         //民族
            this.dtpBirthDay.Value   = patientInfo.Birthday;                               //出生日期
            this.txtAge.Text         = this.inpatientManager.GetAge(patientInfo.Birthday); //年龄
            this.cmbDistrict.Text    = patientInfo.DIST;                                   //籍贯
            this.cmbProfession.Tag   = patientInfo.Profession.ID;                          //职业
            this.txtIDNO.Text        = patientInfo.IDCard;                                 //身份证号
            this.cmbWorkAddress.Text = patientInfo.CompanyName;                            //工作单位
            this.txtWorkPhone.Text   = patientInfo.PhoneBusiness;                          //单位电话
            this.cmbMarry.Tag        = patientInfo.MaritalStatus.ID.ToString();            //婚姻状况
            this.cmbHomeAddress.Text = patientInfo.AddressHome;                            //家庭住址
            this.txtHomePhone.Text   = patientInfo.PhoneHome;                              //家庭电话
            this.txtLinkMan.Text     = patientInfo.Kin.Name;                               //联系人

            this.cmbRelation.Tag = patientInfo.Kin.Relation.ID;                            //联系人关系

            this.cmbLinkAddress.Text = patientInfo.Kin.RelationAddress;                    //联系人地址

            this.txtLinkPhone.Text = patientInfo.Kin.RelationPhone;                        //联系人电话

            this.cmbInSource.Tag     = patientInfo.PVisit.InSource.ID;                     //入院来源
            this.cmbApproach.Tag     = patientInfo.PVisit.AdmitSource.ID;                  //入院途径
            this.cmbCircs.Tag        = patientInfo.PVisit.Circs.ID;                        //入院情况
            this.txtBedInterval.Text = patientInfo.FT.FixFeeInterval.ToString();           //床位间隔
            this.dtpInTime.Value     = patientInfo.PVisit.InTime;                          //入院日期
            this.cmbDoctor.Tag       = patientInfo.PVisit.AdmittingDoctor.ID;              //收住院医师

            this.cmbMark.Tag = patientInfo.Memo;                                           //特注
            this.ucQueryInpatientNo1.txtInputCode.Text = patientInfo.PID.PatientNO;        //住院号

            //{3a23d5ff-8e31-4128-a5cc-736abfbbd056}调入信息的修改
            this.txtDeptName.Text    = patientInfo.PVisit.PatientLocation.Dept.Name; //入院科室
            this.cmbPreDoctor.Tag    = patientInfo.DoctorReceiver.ID;                //开住院证医生
            this.txtInDiagnosis.Text = patientInfo.ClinicDiagnose;                   //入院诊断
            //[email protected] 20110107 接诊处的娘们儿又让修改了
            //if (this.chkGetFlag.Checked) {
            //    this.chkGetFlag.Enabled = false;
            //}
        }
Esempio n. 16
0
        protected override int OnSetValue(object neuObject, TreeNode e)
        {
            this.PatientInfo = neuObject as Neusoft.HISFC.Models.RADT.PatientInfo;

            return(base.OnSetValue(neuObject, e));
        }