Ejemplo n.º 1
0
        //#region addby xuewj 2010-3-31 {67B867B1-96BD-454a-9BE0-E4DD6EB3E995} 中草药医嘱打印设置
        ///// <summary>
        ///// sheetView
        ///// </summary>
        //private FarPoint.Win.Spread.SheetView view = new FarPoint.Win.Spread.SheetView();

        //InterfaceInstanceDefault.IRecipePrint.Print pp = new Print();

        ///// <summary>
        ///// 草药处方每行显示的药品数
        ///// </summary>
        //private int pccPerRowCount = 0;

        ///// <summary>
        ///// 草药处方每页显示的行数
        ///// </summary>
        //private int pccPerPageCount = 0;

        ///// <summary>
        ///// 草药打印容器是否初始化过
        ///// </summary>
        //private bool isInitial = false;


        //private String deptCode = "";

        ////public String DeptCode
        ////{
        ////    get { return deptCode; }
        ////    set { deptCode = value; }
        ////}
        ///// <summary>
        ///// 列枚举
        ///// </summary>
        //enum Columns
        //{
        //    /// <summary>
        //    /// 名称
        //    /// </summary>
        //    drugName,
        //    /// <summary>
        //    /// 规格
        //    /// </summary>
        //    specs,
        //    /// <summary>
        //    /// 组合号
        //    /// </summary>
        //    comboNO,
        //    /// <summary>
        //    /// 付
        //    /// </summary>
        //    hearbalQty,
        //    /// <summary>
        //    /// 组
        //    /// </summary>
        //    comboFlag,
        //    /// <summary>
        //    /// 剂量
        //    /// </summary>
        //    doseOnce,
        //    /// <summary>
        //    /// 用法
        //    /// </summary>
        //    usage,
        //    /// <summary>
        //    /// 频次
        //    /// </summary>
        //    frequence,
        //    /// <summary>
        //    /// 总量
        //    /// </summary>
        //    totQty,
        //    /// <summary>
        //    /// 院注
        //    /// </summary>
        //    injectCount,
        //    /// <summary>
        //    /// 备注
        //    /// </summary>
        //    memo

        //}
        //#endregion
        //#endregion

        //#region 属性

        ///// <summary>
        /////
        ///// </summary>
        //public Neusoft.HISFC.Models.Registration.Register PatientInfo
        //{
        //    get
        //    {
        //        return this.myRegister;
        //    }
        //    set
        //    {
        //        this.myRegister = value;
        //    }
        //}

        //#endregion

        //#region 私有方法

        ///// <summary>
        ///// 取控制参数
        ///// </summary>
        //private void GetArgument()
        //{
        //    pPrintNum = this.controlManagemnt.GetControlParam<int>("200031", false, 99);
        //    pccPrintNum = this.controlManagemnt.GetControlParam<int>("200033", false, 99);
        //    isSameRecipe = this.controlManagemnt.GetControlParam<bool>("200032", false, true);

        //    #region addby xuewj 2010-3-31 {67B867B1-96BD-454a-9BE0-E4DD6EB3E995} 中草药医嘱打印设置
        //    pccPerRowCount = this.controlManagemnt.GetControlParam<int>("200043", false, 4);
        //    pccPerPageCount = this.controlManagemnt.GetControlParam<int>("200044", false, 17);
        //    #endregion
        //}

        /// <summary>
        /// 设置患者基本信息
        /// </summary>
        public void SetPatient(Neusoft.HISFC.Models.Registration.Register myRegister)
        {
            //this.GetArgument();

            if (myRegister == null)
            {
                return;
            }
            DateTime myOperDate = System.DateTime.MinValue;

            myOperDate = this.orderManagement.QueryMaxOperTimeByClinicCode(myRegister.ID);

            Neusoft.HISFC.Models.Order.OutPatient.ClinicCaseHistory clinicCaseHistory = new Neusoft.HISFC.Models.Order.OutPatient.ClinicCaseHistory();
            clinicCaseHistory = this.orderManagement.QueryCaseHistoryByClinicCode(myRegister.ID, myOperDate.ToString("yyyy-MM-dd HH:mm:ss"));
            if (clinicCaseHistory != null)
            {
                if (clinicCaseHistory.ID != "" && clinicCaseHistory.ID != null)
                {
                    this.lblDiagnose.Text = clinicCaseHistory.CaseDiag;
                }
                else
                {
                    this.lblDiagnose.Text = "";
                }
            }
            else
            {
                this.lblDiagnose.Text = "";
            }

            #region 病历中不存在诊断则去met_com_diagnose中找门诊诊断  {787A81FD-9E3D-4cc3-A932-95A686A89B0A}

            if (this.lblDiagnose.Text == "")
            {
                ArrayList alDiagnoses = this.diagnoseIntegrate.QueryDiagnoseNoOps(myRegister.ID);
                if (alDiagnoses != null)
                {
                    foreach (Neusoft.HISFC.Models.HealthRecord.Diagnose diagnose in alDiagnoses)
                    {
                        if (diagnose.DiagInfo.DiagType.ID == "1")
                        {
                            if (this.lblDiagnose.Text != "")
                            {
                                this.lblDiagnose.Text += "|" + diagnose.DiagInfo.Name;
                            }
                            else
                            {
                                this.lblDiagnose.Text = diagnose.DiagInfo.Name;
                            }
                        }
                    }
                }
            }

            #endregion

            //#region {B8B67F3B-397F-4e21-9A87-56BD52E0C042}

            //this.lblTitle.Text = managerIntegrate.GetHospitalName() + "\r\n" + "    处 方 笺";

            //#endregion

            this.lblPact.Text = myRegister.Pact.Name;
            this.lblDept.Text = myRegister.DoctorInfo.Templet.Dept.Name;
            // this.deptCode = this.myRegister.DoctorInfo.Templet.Dept.ID;

            this.lblName.Text   = myRegister.Name;
            this.lblCardNO.Text = myRegister.PID.CardNO;
            this.lblSex.Text    = myRegister.Sex.Name;
            //this.lblAge.Text = orderManagement.GetAge(this.myRegister.Birthday);
            Neusoft.HISFC.Models.RADT.Patient pat = this.managerIntegrate.QueryComPatientInfo(myRegister.PID.CardNO);
            if (pat != null)
            {
                this.lblAge.Text = Neusoft.HISFC.BizProcess.Integrate.Function.GetAge(pat.Birthday);
            }

            this.lblSICard.Text  = myRegister.SIMainInfo.RegNo;
            this.lblAddress.Text = myRegister.AddressHome + "   " + myRegister.PhoneHome;

            DateTime sysDate = orderManagement.GetDateTimeFromSysDateTime();
            this.lblSeeDate.Text = sysDate.ToString("yyyy年MM月dd日");

            this.lblSeeDoctor.Text = orderManagement.Operator.Name;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 设置患者基本信息
        /// </summary>
        private void SetPatient()
        {
            this.GetArgument();
            if (this.myRegister == null)
            {
                return;
            }
            DateTime myOperDate = System.DateTime.MinValue;

            myOperDate = this.orderManagement.QueryMaxOperTimeByClinicCode(this.myRegister.ID);
            Neusoft.HISFC.Models.Order.OutPatient.ClinicCaseHistory clinicCaseHistory = new Neusoft.HISFC.Models.Order.OutPatient.ClinicCaseHistory();
            clinicCaseHistory = this.orderManagement.QueryCaseHistoryByClinicCode(this.myRegister.ID, myOperDate.ToString("yyyy-MM-dd HH:mm:ss"));
            if (clinicCaseHistory != null)
            {
                if (clinicCaseHistory.ID != "" && clinicCaseHistory.ID != null)
                {
                    this.lblDiagnose.Text = clinicCaseHistory.CaseDiag;
                }
                else
                {
                    this.lblDiagnose.Text = "";
                }
            }
            else
            {
                this.lblDiagnose.Text = "";
            }

            #region 病历中不存在诊断则去met_com_diagnose中找门诊诊断  {787A81FD-9E3D-4cc3-A932-95A686A89B0A}
            if (this.lblDiagnose.Text == "")
            {
                ArrayList alDiagnoses = this.diagnoseIntegrate.QueryDiagnoseNoOps(this.myRegister.ID);
                if (alDiagnoses != null)
                {
                    foreach (Neusoft.HISFC.Models.HealthRecord.Diagnose diagnose in alDiagnoses)
                    {
                        if (diagnose.DiagInfo.DiagType.ID == "10")
                        {
                            if (this.lblDiagnose.Text != "")
                            {
                                this.lblDiagnose.Text += "|" + diagnose.DiagInfo.Name;
                            }
                            else
                            {
                                this.lblDiagnose.Text = diagnose.DiagInfo.Name;
                            }
                        }
                    }
                }
            }
            #endregion
            #region {B8B67F3B-397F-4e21-9A87-56BD52E0C042}
            this.lbHosName.Text = managerIntegrate.GetHospitalName();
            #endregion
            this.lblPact.Text = this.myRegister.Pact.Name;
            this.lblDept.Text = this.myRegister.DoctorInfo.Templet.Dept.Name;

            this.lblName.Text    = this.myRegister.Name;
            this.lblCardNO.Text  = this.myRegister.PID.CardNO;
            this.lblSex.Text     = this.myRegister.Sex.Name;
            this.lblAge.Text     = orderManagement.GetAge(this.myRegister.Birthday);
            this.lblSeeDate.Text = this.myRegister.DoctorInfo.SeeDate.ToString("yyyy年MM月dd日");
        }