Beispiel #1
0
        /// <summary>
        /// 统计大类选择按钮点击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFeeSelect_Click(object sender, EventArgs e)
        {
            Neusoft.WinForms.Report.Finance.FinIpb.ucFeeStatSelect feeStatSelect = new Neusoft.WinForms.Report.Finance.FinIpb.ucFeeStatSelect();
            Neusoft.FrameWork.WinForms.Classes.Function.PopForm.Text = "项目选择";
            DialogResult r = Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(feeStatSelect);

            if (r == DialogResult.Cancel)
            {
                return;
            }
            this.reportCode  = string.Empty;
            this.feeStatList = new List <string>();
            if (!string.IsNullOrEmpty(feeStatSelect.ReportCodeStr))
            {
                this.reportCode   = feeStatSelect.ReportCodeStr;
                this.lblMemo.Text = "您当前选择是统计类型是:[" + conManager.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.FEECODESTAT, feeStatSelect.ReportCodeStr.ToString()) + "]";
            }
            else
            {
                this.reportCode = "ZY01";
            }
            if (feeStatSelect.FeeStatList != null)
            {
                this.feeStatList = feeStatSelect.FeeStatList;
            }
        }
        /// <summary>
        /// 打印
        /// </summary>
        public virtual void Print( )
        {
            #region 增加核准的打印权限 wbo 2010-10-11

            Neusoft.HISFC.BizLogic.Manager.Constant consMgr = new Neusoft.HISFC.BizLogic.Manager.Constant();
            Neusoft.FrameWork.Models.NeuObject      obj     = consMgr.GetConstant("PhaPrintPriv", consMgr.Operator.ID);
            Neusoft.HISFC.Models.Base.Const         cons    = obj as Neusoft.HISFC.Models.Base.Const;
            if (cons == null || string.IsNullOrEmpty(cons.ID) || cons.IsValid == false)
            {
                MessageBox.Show("无摆药单补打权限,请联系药学部或信息科!");
                return;
            }
            if (cons.IsValid == false)
            {
                MessageBox.Show("摆药单补打权限无效,请联系药学部或信息科!");
                return;
            }

            #endregion

            if (MessageBox.Show("是否打印?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                this.ucDrugDetail1.Print();
                MessageBox.Show("打印完毕!");
            }
        }
Beispiel #3
0
        //public void ControlValue(Neusoft.HISFC.Models.HealthRecord.Base obj)
        //{
        //    throw new Exception("The method or operation is not implemented.");
        //}
        /// <summary>
        /// 设置病案反面值
        /// </summary>
        void Neusoft.HISFC.BizProcess.Interface.HealthRecord.HealthRecordInterfaceBack.ControlValue(Neusoft.HISFC.Models.HealthRecord.Base obj)
        {
            Neusoft.HISFC.Models.HealthRecord.Base healthReord = obj as Neusoft.HISFC.Models.HealthRecord.Base;

            this.SetHashControl();

            // add by lk 2008-09-12 婴儿信息赋值
            //#region 婴儿信息
            ////查询符合条件的数据  如果是一胞胎后面婴儿信息就不要显示
            //ArrayList list = ba.QueryBabyByInpatientNo(healthReord.PatientInfo.ID);
            //Neusoft.HISFC.Models.HealthRecord.Baby babyinfo = null;
            //if (list.Count > 0)
            //{
            //    for (int j = 0; j < list.Count; j++)
            //    {
            //        babyinfo = list[j] as Neusoft.HISFC.Models.HealthRecord.Baby;
            //        if (j == 0)
            //        {
            //            this.age.Text = babyinfo.Age.ToString(); //年龄 天
            //            this.outBodyWeight.Text = babyinfo.Weight.ToString();//出生时体重
            //            this.inBodyWeight.Text = babyinfo.WeightInHospital.ToString();//转院时体重

            //        }
            //        else if (j == 1)
            //        {
            //            this.age1.Text = babyinfo.Age.ToString(); //年龄 天
            //            this.outBodyWeight1.Text = babyinfo.Weight.ToString();//出生时体重
            //            this.inBodyWeight1.Text = babyinfo.WeightInHospital.ToString();//转院时体重

            //            this.txtage1.Visible = true;
            //            this.txtageunit1.Visible = true;
            //            this.txtweightunit1.Visible = true;
            //            this.txtweightunit2.Visible = true;
            //            this.age1.Visible = true;
            //            this.outBodyWeight1.Visible = true;
            //            this.inBodyWeight1.Visible = true;
            //            this.txtoutbaby1.Visible = true;
            //            this.txtinbaby1.Visible = true;
            //            this.neuLabel140.Visible = true;
            //            this.neuLabel47.Visible = true;
            //            this.neuLabel37.Visible = true;

            //        }
            //        else if (j == 2)
            //        {
            //            this.age2.Text = babyinfo.Age.ToString(); //年龄 天
            //            this.outBodyWeigh2.Text = babyinfo.Weight.ToString();//出生时体重

            //            this.inBodyWeight2.Text = babyinfo.WeightInHospital.ToString();//转院时体重

            //            this.txtageunit2.Visible = true;
            //            this.txtweightunit3.Visible = true;
            //            this.txtweightunit4.Visible = true;
            //            this.age2.Visible = true;
            //            this.outBodyWeigh2.Visible = true;
            //            this.inBodyWeight2.Visible = true;
            //            this.txtoutbaby2.Visible = true;
            //            this.txtinbaby2.Visible = true;
            //            this.neuLabel148.Visible = true;
            //            this.neuLabel166.Visible = true;
            //            this.neuLabel156.Visible = true;


            //        }
            //        else
            //        {
            //            continue;
            //        }
            //    }
            //}
            //#endregion

            #region 手术信息

            ArrayList alOpr = operationManager.QueryOperationByInpatientNo(healthReord.PatientInfo.ID);

            int i = 1;

            foreach (object opr in alOpr)
            {
                Neusoft.HISFC.Models.HealthRecord.OperationDetail opration = opr as Neusoft.HISFC.Models.HealthRecord.OperationDetail;
                switch (i)
                {
                case 1:
                    //编码
                    this.lblPriShoushuChaozuoBianma1.Text = opration.OperationInfo.ID;
                    //日期
                    this.lblPriChaozuoRiqi1.Text = opration.OperationDate.ToShortDateString();
                    //名称
                    this.lblPriChaozuoMingchen1.Text = opration.OperationInfo.Name;
                    //术者
                    this.lblPriChaozuoSuzhe1.Text = opration.FirDoctInfo.Name;
                    //一助
                    this.lblPriChaozuoYizu1.Text = opration.SecDoctInfo.Name;
                    //二助
                    this.lblPriChaozuoErzu1.Text = opration.ThrDoctInfo.Name;
                    //麻醉方式
                    this.lblPriChaozuoMazui1.Text = con.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.ANESTYPE, opration.MarcKind).Name;
                    //麻醉医师
                    this.lblPriChaozuoMazuiYishi1.Text = opration.NarcDoctInfo.Name;
                    //切口愈合等级
                    this.lblPriQiekouYuheDengji1.Text = con.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.INCITYPE, opration.NickKind).Name + "/" + con.GetConstant("CICATYPE", opration.CicaKind);
                    i++;
                    break;

                case 4:
                    //编码
                    this.lblPriShoushuChaozuoBianma4.Text = opration.OperationInfo.ID;
                    //日期
                    this.lblPriChaozuoRiqi4.Text = opration.OperationDate.ToShortDateString();
                    //名称
                    this.lblPriChaozuoMingchen4.Text = opration.OperationInfo.Name;
                    //术者
                    this.lblPriChaozuoSuzhe4.Text = opration.FirDoctInfo.Name;
                    //一助
                    this.lblPriChaozuoYizu4.Text = opration.SecDoctInfo.Name;
                    //二助
                    this.lblPriChaozuoErzu4.Text = opration.ThrDoctInfo.Name;
                    //麻醉方式
                    this.lblPriChaozuoMazui4.Text = con.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.ANESTYPE, opration.MarcKind).Name;
                    //麻醉医师
                    this.lblPriChaozuoMazuiYishi4.Text = opration.NarcDoctInfo.Name;
                    //切口愈合等级
                    this.lblPriQiekouYuheDengji4.Text = con.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.INCITYPE, opration.NickKind).Name + "/" + con.GetConstant("CICATYPE", opration.CicaKind);
                    i++;
                    break;

                case 2:
                    //编码
                    this.lblPriShoushuChaozuoBianma2.Text = opration.OperationInfo.ID;
                    //日期
                    this.lblPriChaozuoRiqi2.Text = opration.OperationDate.ToShortDateString();
                    //名称
                    this.lblPriChaozuoMingchen2.Text = opration.OperationInfo.Name;
                    //术者
                    this.lblPriChaozuoSuzhe2.Text = opration.FirDoctInfo.Name;
                    //一助
                    this.lblPriChaozuoYizu2.Text = opration.SecDoctInfo.Name;
                    //二助
                    this.lblPriChaozuoErzu2.Text = opration.ThrDoctInfo.Name;
                    //麻醉方式
                    this.lblPriChaozuoMazui2.Text = con.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.ANESTYPE, opration.MarcKind).Name;
                    //麻醉医师
                    this.lblPriChaozuoMazuiYishi2.Text = opration.NarcDoctInfo.Name;
                    //切口愈合等级
                    this.lblPriQiekouYuheDengji2.Text = con.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.INCITYPE, opration.NickKind).Name + "/" + con.GetConstant("CICATYPE", opration.CicaKind);
                    i++;
                    break;

                case 3:
                    //编码
                    this.lblPriShoushuChaozuoBianma3.Text = opration.OperationInfo.ID;
                    //日期
                    this.lblPriChaozuoRiqi3.Text = opration.OperationDate.ToShortDateString();
                    //名称
                    this.lblPriChaozuoMingchen3.Text = opration.OperationInfo.Name;
                    //术者
                    this.lblPriChaozuoSuzhe3.Text = opration.FirDoctInfo.Name;
                    //一助
                    this.lblPriChaozuoYizu3.Text = opration.SecDoctInfo.Name;
                    //二助
                    this.lblPriChaozuoErzu3.Text = opration.ThrDoctInfo.Name;
                    //麻醉方式
                    this.lblPriChaozuoMazui3.Text = con.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.ANESTYPE, opration.MarcKind).Name;
                    //麻醉医师
                    this.lblPriChaozuoMazuiYishi3.Text = opration.NarcDoctInfo.Name;
                    //切口愈合等级
                    this.lblPriQiekouYuheDengji3.Text = con.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.INCITYPE, opration.NickKind).Name + "/" + con.GetConstant("CICATYPE", opration.CicaKind);
                    i++;
                    break;

                default:
                    break;
                }
                if (i > 4)
                {
                    break;
                }
            }

            #endregion

            #region 死亡信息

            if (healthReord.DeadDate != DateTime.MinValue)
            {
            }

            #endregion

            #region 费用信息

            //Modify by lk 2008-09-12 根据统计大类编码,显示金额  有时间也可以把统计大类名称也 :)
            ArrayList alFee  = feeManager.QueryFeeInfoState(healthReord.PatientInfo.ID);
            decimal   totFee = 0.0M;
            foreach (Neusoft.HISFC.Models.RADT.Patient FeeObj in alFee)
            {
                ////Neusoft.HISFC.Models.RADT.Patient info = fee as Neusoft.HISFC.Models.RADT.Patient;
                //switch (patientinfo.ID)
                //{
                //    case "01":
                //        this.fee01.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "02":
                //        this.fee02.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "03":
                //        this.fee03.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "04":
                //        this.fee04.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "05":
                //        this.fee05.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "06":
                //        this.fee06.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "07":
                //        this.fee07.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "08":
                //        this.fee08.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "09":
                //        this.fee09.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "10":
                //        this.fee10.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "11":
                //        this.fee11.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "12":
                //        this.fee12.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "13":
                //        this.fee13.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "14":
                //        this.fee14.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "15":
                //        this.fee15.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "16":
                //        this.fee16.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "17":
                //        this.fee17.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "18":
                //        this.fee18.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "19":
                //        this.fee19.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "20":
                //        this.fee20.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "21":
                //        this.fee21.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "22":
                //        this.fee22.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "23":
                //        this.fee23.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "24":
                //        this.fee24.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "25":
                //        this.fee25.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "26":
                //        this.fee26.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "27":
                //        this.fee27.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "28":
                //        this.fee28.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "29":
                //        this.fee29.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    case "30":
                //        this.fee30.Text = patientinfo.User01;
                //        totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(patientinfo.User01);
                //        break;
                //    default:
                //        break;
                //}



                //this.lblPriZhuyuanFeiyongZongji.Text = Neusoft.FrameWork.Public.String.FormatNumberReturnString(totFee, 2);

                Control control = this.GetControlByControlName("fee" + FeeObj.DIST);
                control.Text = FeeObj.User01;
                Control control1 = this.GetControlByControlName("lbl" + FeeObj.DIST);
                if (FeeObj.DIST == "17" || FeeObj.DIST == "18" || FeeObj.DIST == "19")
                {
                }
                else
                {
                    //    control.Text = FeeObj.AreaCode;
                    //}
                    //totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(FeeObj.User01);
                    control1.Text = FeeObj.AreaCode;
                    control.Text  = FeeObj.IDCard;
                }
                totFee += Neusoft.FrameWork.Function.NConvert.ToDecimal(FeeObj.IDCard);
            }
            this.lblPriZhuyuanFeiyongZongji.Text = Neusoft.FrameWork.Public.String.FormatNumberReturnString(totFee, 2);

            #endregion

            #region 尸检,手术治疗是否为第一例

            if (healthReord.CadaverCheck == "1")
            {
                this.lblPriShijian.Text = "1";
            }
            else
            {
                this.lblPriShijian.Text = "2";
            }
            if (healthReord.YnFirst == "1")
            {
                this.lblPriDiyili.Text = "1";
            }
            else
            {
                this.lblPriDiyili.Text = "2";
            }
            #endregion

            #region 随诊,示教病例

            if (healthReord.VisiStat == "1")
            {
                this.lblPriSuiZhen.Text = "1";
            }
            else
            {
                this.lblPriSuiZhen.Text = "2";
            }

            //随诊年月周
            this.lblPriSuizhenQixianNian.Text = healthReord.VisiPeriodYear;
            this.lblPriSuizhenQixianYue.Text  = healthReord.VisiPeriodMonth;
            this.lblPriSuizhenQixianZhou.Text = healthReord.VisiPeriodWeek;

            //示教病例
            if (healthReord.TechSerc == "1")
            {
                this.lblPriShijiaoBingli.Text = "1";
            }
            else
            {
                this.lblPriShijiaoBingli.Text = "2";
            }

            #endregion

            #region 血型、输血品种

            //血型不是从常数中获取
            switch (healthReord.PatientInfo.BloodType.ID.ToString())
            {
            case "A":
                this.lblPriXuexing.Text = "1";
                break;

            case "B":
                this.lblPriXuexing.Text = "2";
                break;

            case "AB":
                this.lblPriXuexing.Text = "3";
                break;

            case "O":
                this.lblPriXuexing.Text = "4";
                break;

            case "U":
                this.lblPriXuexing.Text = "5";
                break;

            default:
                this.lblPriXuexing.Text = "5";
                break;
            }

            this.lblPriXuexing.Text = healthReord.PatientInfo.BloodType.ID.ToString();

            this.lblPriRH.Text = healthReord.RhBlood;

            this.lblPriShuxueFanying.Text = healthReord.ReactionBlood;

            //输血品种
            this.lblPriShuxuePinzhongHongxibao.Text  = healthReord.BloodRed;
            this.lblPriShuxuePinzhongQuanxue.Text    = healthReord.BloodWhole;
            this.lblPriShuxuePinzhongXuejiang.Text   = healthReord.BloodPlasma;
            this.lblPriShuxuePinzhongXuexiaoban.Text = healthReord.BloodPlatelet;
            this.lblPriShuxuePinzhongQita.Text       = healthReord.BloodOther;

            #endregion
            //#region 重症信息
            //////Neusoft.HISFC.BizProcess.RADT.InPatient( public ArrayList GetPatientRADTInfo(string patientNo))
            ////Neusoft.HISFC.Models.Invalid.CShiftData myCShiftDate = new Neusoft.HISFC.Models.Invalid.CShiftData();
            //ArrayList alShiftData = new ArrayList();
            //////获取患者转科信息
            //////alShiftData = radtIntergate.GetPatientRADTInfo(healthReord.PatientInfo.ID);
            ////从病案表取转科信息
            //alShiftData = deptChange.QueryChangeDeptFromShiftApply(healthReord.PatientInfo.ID, "2");

            ////ArrayList deptList = managerIntergate.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.I);

            //string inDate = "";
            //string outDate = "";
            //Neusoft.HISFC.Models.RADT.Location changeDept = null;
            //Neusoft.HISFC.Models.RADT.Location changeDeptTemp = null;

            //////把ICU科室信息给哈希表
            ////for (int k = 0; k < deptList.Count; i++)
            ////{
            ////    dept = deptList[0] as Neusoft.HISFC.Models.Base.Department;
            ////    if (dept.SpecialFlag != 3 || dept.SpecialFlag != 4)//不是ICU CCU  coutinue
            ////    {
            ////        continue;
            ////    }
            ////}
            ////hashICUdept
            ////if (alShiftData != null && alShiftData.Count > 0)
            ////{
            ////for (int p = 0; p < alShiftData.Count - 1; p++)
            ////{
            ////    changeDept = alShiftData[p] as Neusoft.HISFC.Models.RADT.Location;
            ////    if (changeDept.Dept.User01 != "3" && changeDept.Dept.User01 != "4" && p > 3)
            ////    {
            ////        continue;
            ////    }
            ////    if (p == 0)
            ////    {
            ////        inDate = healthReord.PatientInfo.PVisit.InTime.ToString();//转入日期
            ////        if (alShiftData.Count > 1)
            ////        {
            ////            changeDeptTemp = alShiftData[1] as Neusoft.HISFC.Models.RADT.Location;
            ////            outDate = changeDeptTemp.User01;//转出时间
            ////        }
            ////        else
            ////        {
            ////            outDate = obj.PatientInfo.PVisit.OutTime.ToString();
            ////        }
            ////    }
            ////    else if (p < alShiftData.Count)
            ////    {
            ////        inDate = changeDept.User01;//转入时间
            ////        changeDeptTemp = alShiftData[p + 1] as Neusoft.HISFC.Models.RADT.Location;
            ////        outDate = changeDeptTemp.User01;//转出时间
            ////    }
            ////    else if (p == alShiftData.Count)
            ////    {
            ////        inDate = changeDept.User01;//转入时间
            ////        outDate = obj.PatientInfo.PVisit.OutTime.ToString();//转出时间
            ////    }

            //    //inDate = changeDept.User01;//转入时间
            //    //Neusoft.HISFC.Models.Base.Department dept = null;

            //    //switch (p)
            //    //{
            //    //    case 0:
            //    //        Jianhu1.Text = changeDept.Dept.Name;
            //    //        Jinru1.Text = inDate;
            //    //        tuichu1.Text = outDate.ToString();
            //    //        break;
            //    //    case 1:
            //    //        Jianhu2.Text = changeDept.Dept.Name;
            //    //        Jinru2.Text = inDate;
            //    //        tuichu2.Text = outDate.ToString();
            //    //        break;
            //    //    case 2:
            //    //        Jianhu3.Text = changeDept.Dept.Name;
            //    //        Jinru3.Text = inDate;
            //    //        tuichu3.Text = outDate.ToString();
            //    //        break;
            //    //    case 3:
            //    //        Jianhu4.Text = changeDept.Dept.Name;
            //    //        Jinru4.Text = inDate;
            //    //        tuichu4.Text = outDate;
            //    //        break;
            //    //    default:
            //    //        break;

            //    //}

            ////}

            ////}
            //#endregion

            #region 其他 add by lk 2008-09-12
            //this.useHourBox.Text = healthReord.ApneaUseTime.ToString();//呼吸机使用时间
            //this.HosHour.Text = healthReord.PreComaHour.ToString();//昏迷时间小时
            //this.HosMinute.Text = healthReord.PreComaMin.ToString();//昏迷时间 分钟
            //this.inHosHour.Text = healthReord.SithComaHour.ToString();//入院后昏迷时间 小时
            //this.inHosMinute.Text = healthReord.SithComaMin.ToString();//入院后昏迷时间 分钟
            //this.outHosMethod.Text = healthReord.LeaveHospital;//离院方式
            //this.HosName.Text = healthReord.TransferHospital;//转入医院名称

            //this.SuperNus.Text = healthReord.SuperNus.ToString();//特级护理
            //this.INus.Text = healthReord.IINus.ToString();//一级护理
            //this.IINus.Text = healthReord.IINus.ToString();//二级护理
            //this.IIINus.Text = healthReord.IIINus.ToString();//三级护理
            //this.ICU.Text = healthReord.StrictNuss.ToString();//重症监护
            //this.CCU.Text = healthReord.SpecalNus.ToString();//特殊护理


            #endregion
        }
Beispiel #4
0
        /// <summary>
        /// 打印函数
        /// </summary>
        /// <param name="al">打印数组</param>
        /// <param name="i">第几页</param>
        /// <param name="count">总页数</param>
        /// <param name="operCode">制单人</param>
        private void PrintStockplan(ArrayList al, int inow, int icount, string operCode)
        {
            if (al.Count <= 0)
            {
                MessageBox.Show("没有打印的数据!");
                return;
            }
            Neusoft.HISFC.BizLogic.Pharmacy.Constant    constant    = new Neusoft.HISFC.BizLogic.Pharmacy.Constant();
            Neusoft.HISFC.Models.Pharmacy.StockPlan     stockPlan   = (Neusoft.HISFC.Models.Pharmacy.StockPlan)al[0];
            Neusoft.HISFC.BizLogic.Manager.Constant     constantMgr = new Neusoft.HISFC.BizLogic.Manager.Constant();
            Neusoft.HISFC.BizLogic.Manager.Department   deptMgr     = new Neusoft.HISFC.BizLogic.Manager.Department();
            Neusoft.HISFC.BizProcess.Integrate.Pharmacy itemMgr     = new Neusoft.HISFC.BizProcess.Integrate.Pharmacy();

            string strHos   = constantMgr.GetHospitalName();
            string dosageID = string.Empty; //剂型


            if (stockPlan.State == "2")
            {
                this.lbl0.Text = strHos + "药品采购审批单";
            }
            else
            {
                this.lbl0.Text = strHos + "药品采购计划单";
                //label2.Visible = false;
            }

            #region label赋值

            if (this.IsReprint)
            {
                this.lbl0.Text = this.lbl0.Text + "(补打)";
            }

            //DateTime sysTime = this.itemMgr.GetDateTimeFromSysDateTime();
            //this.lb11.Text = "计划科室  " + inPlan.Dept+this.deptMgr.get + " 计划人  " + inPlan.PlanOper.ID;
            this.lb11.Text   = " 计划人:  " + stockPlan.Oper.Name;
            this.lb12.Text   = "计划日期:" + this.itemMgr.GetDateTimeFromSysDateTime().ToString("yyyy-MM-dd");
            this.label2.Text = "采购日期:" + stockPlan.StockOper.OperTime.ToString("yyyy-MM-dd");
            this.lb36.Text   = "第" + inow.ToString() + "页/共" + icount.ToString() + "页";
            this.label1.Text = "单据号:" + stockPlan.BillNO;
            this.label3.Text = "科室:" + deptMgr.GetDeptmentById(stockPlan.Dept.ID);

            #endregion

            #region farpoint赋值

            decimal sumNum5 = 0;
            decimal sumNum8 = 0;
            decimal sumNum9 = 0;
            this.sheetView1.RowCount = 0;

            #region {1EC17564-2FAD-4a77-97AC-4C57076888B2}
            FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
            numberCellType1.DecimalPlaces       = 4;
            this.sheetView1.Columns[6].CellType = numberCellType1;
            this.sheetView1.Columns[7].CellType = numberCellType1;
            this.sheetView1.Columns[8].CellType = numberCellType1;
            #endregion
            for (int i = 0; i < al.Count; i++)
            {
                this.sheetView1.AddRows(i, 1);
                Neusoft.HISFC.Models.Pharmacy.StockPlan info = al[i] as Neusoft.HISFC.Models.Pharmacy.StockPlan;


                this.sheetView1.Cells[i, 0].Text = info.Item.ID;    // info.Item.NameCollection.UserCode;//药品自定义码
                this.sheetView1.Cells[i, 1].Text = info.Item.Name;  //药品名称
                this.sheetView1.Cells[i, 2].Text = info.Item.Specs; //规格
                if (info.Item.PackQty == 0)
                {
                    info.Item.PackQty = 1;
                }

                decimal count = 0, count2 = 0, count3 = 0;
                count  = info.StockApproveQty / info.Item.PackQty;
                count2 = (info.StockApproveQty / info.Item.PackQty) * (info.Item.PriceCollection.PurchasePrice);
                count3 = (info.StockApproveQty / info.Item.PackQty) * (info.Item.PriceCollection.RetailPrice);
                this.sheetView1.Cells[i, 3].Text = info.Item.PackUnit;//单位

                // Neusoft.HISFC.BizProcess.Integrate.Pharmacy itemMgr = new Neusoft.HISFC.BizProcess.Integrate.Pharmacy();



                dosageID = ((Neusoft.HISFC.Models.Pharmacy.Item)itemMgr.GetItem(info.Item.ID)).DosageForm.ID;


                this.sheetView1.Cells[i, 4].Text = ((Neusoft.FrameWork.Models.NeuObject)constantMgr.GetConstant("DOSAGEFORM", dosageID)).Name; //info.Item.DosageForm.Name; //剂型
                this.sheetView1.Cells[i, 5].Text = (info.StockApproveQty / info.Item.PackQty).ToString();                                      //计划数量

                this.sheetView1.Cells[i, 6].Text = info.StockPrice.ToString();                                                                 //计划购入价      // info.Item.PackUnit;//
                this.sheetView1.Cells[i, 7].Text = info.Item.Price.ToString();                                                                 //参考零售价


                this.sheetView1.Cells[i, 8].Text = ((info.StockApproveQty / info.Item.PackQty) * (info.StockPrice)).ToString();                       //计划金额
                this.sheetView1.Cells[i, 9].Text = ((info.StockApproveQty / info.Item.PackQty) * (info.Item.PriceCollection.RetailPrice)).ToString(); //零售金额


                //if (info.Item.Product.Company.Name != "")
                //    this.sheetView1.Cells[i, 7].Text = info.Item.Product.Company.Name;         //供货公司;
                //else
                //    this.sheetView1.Cells[i, 7].Text = "未选择";

                if (info.Company.Name != "")
                {
                    this.sheetView1.Cells[i, 10].Text = info.Company.Name;         //供货公司;
                }
                else
                {
                    this.sheetView1.Cells[i, 10].Text = "未选择";
                }

                //if (info.Item.Product.Producer.Name != "")
                //    this.sheetView1.Cells[i, 8].Text = info.Item.Product.Producer.Name;        //生产厂家
                //else
                //    this.sheetView1.Cells[i, 8].Text = "未选择";

                sumNum5 = sumNum5 + count;
                sumNum8 = sumNum8 + count2;
                sumNum9 = sumNum9 + count3;
            }
            this.sheetView1.RowCount = al.Count + 1;
            this.sheetView1.Cells[al.Count, 0].Text = "合计";
            this.sheetView1.Cells[al.Count, 1].Text = "共" + al.Count + "行"; //行数;
            this.sheetView1.Cells[al.Count, 5].Text = sumNum5.ToString();   //购入数量合计
            this.sheetView1.Cells[al.Count, 8].Text = sumNum8.ToString();   //购入金额合计
            this.sheetView1.Cells[al.Count, 9].Text = sumNum9.ToString();   //零售金额合计

            //宽度
            //this.panel4.Width = this.Width - 3;
            this.fpSpread1.Width  = this.panel1.Width - 10;
            this.fpSpread1.Height = (int)this.sheetView1.RowHeader.Rows[0].Height +
                                    (int)(this.sheetView1.Rows[0].Height * (al.Count + 1)) + 10;

            #endregion

            #region 打印函数

            Neusoft.FrameWork.WinForms.Classes.Print p = new Neusoft.FrameWork.WinForms.Classes.Print();

            Neusoft.HISFC.Components.Common.Classes.Function.GetPageSize("PhaInplan", ref p);

            p.PrintPage(5, 0, this.panel1);

            #endregion
        }
        /// <summary>
        /// 设置入院通知单打印值
        /// </summary>
        /// <param name="prePatientInfo"></param>
        /// <returns></returns>
        public int SetValue(Neusoft.HISFC.Models.RADT.PatientInfo prePatientInfo)
        {
            this.neuLabel466.Text = this.manager.GetHospitalName() + "入院通知单";
            this.SetVisible(false);
            this.lblPriName.Text = prePatientInfo.Name;
            if (!string.IsNullOrEmpty(prePatientInfo.ID))
            {
                this.ID.Text = prePatientInfo.ID.Substring(4);
            }
            this.lblPriSex.Text      = prePatientInfo.Sex.Name;
            this.lblPriAge.Text      = inpatientManager.GetAge(prePatientInfo.Birthday);
            this.lblPriDeptName.Text = prePatientInfo.PVisit.PatientLocation.Dept.Name;
            this.ID.Text             = prePatientInfo.PID.CardNO;
            //this.lblPriClinicDiag.Text = prePatientInfo.ClinicDiagnose;
            ////this.lblPriDoc.Text = prePatientInfo.PatientInfo.DoctorReceiver.Name;
            //if (prePatientInfo.PVisit.Circs.ID == "1")
            //{
            //    this.lblPriCommon.Text = "一般";
            //    this.lblPriEmergency.Text = "";
            //    this.lblPriDanger.Text = "";
            //}
            //else if (prePatientInfo.PVisit.Circs.ID == "2")
            //{
            //    this.lblPriCommon.Text = "";
            //    this.lblPriEmergency.Text = "急";
            //    this.lblPriDanger.Text = "";
            //}
            //else
            //{
            //    this.lblPriCommon.Text = "";
            //    this.lblPriEmergency.Text = "";
            //    this.lblPriDanger.Text = "危";
            //}
            //this.lblName.Text = prePatientInfo.Name;//姓名
            //this.lblBirth.Text = prePatientInfo.Birthday.ToShortDateString();//出生日期
            //this.lblProfession.Text = prePatientInfo.Profession.Name;//职业
            //this.lblPriPreCost.Text = prePatientInfo.FT.PrepayCost.ToString();//预交金

            if (prePatientInfo.PVisit.InTime > DateTime.MinValue)
            {
                this.lblPriYear.Text  = (prePatientInfo.PVisit.InTime.Year.ToString()).Substring(2, 2); //入院年份
                this.lblPriMonth.Text = prePatientInfo.PVisit.InTime.Month.ToString();                  //入院月份
                this.lblPriDay.Text   = prePatientInfo.PVisit.InTime.Day.ToString();                    //入院日期
            }
            else
            {
                this.lblPriYear.Text  = (DateTime.Now.Year.ToString()).Substring(2, 2); //入院年份
                this.lblPriMonth.Text = DateTime.Now.Month.ToString();                  //入院月份
                this.lblPriDay.Text   = DateTime.Now.Day.ToString();                    //入院日期
            }

            this.lblDocName.Text = "";//Neusoft.NFC.Management.Connection.Operator.Name; //医生签名
            //this.lblID.Text = prePatientInfo.IDCard; //身份证
            //this.lblTelephone.Text = prePatientInfo.PhoneHome; //家庭电话
            //this.lblWorkStationAndAddr.Text = prePatientInfo.CompanyName; //工作单位

            Neusoft.HISFC.BizLogic.Manager.Constant constant  = new Neusoft.HISFC.BizLogic.Manager.Constant();
            Neusoft.FrameWork.Models.NeuObject      birthArea = constant.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.AREA, prePatientInfo.AreaCode);
            //if (!string.IsNullOrEmpty(birthArea.Name))
            //{
            //    this.lblBirthArea.Text = birthArea.Name; //出生地
            //}

            //this.lblPeople.Text = prePatientInfo.Nationality.Name; //民族

            //if (string.IsNullOrEmpty(prePatientInfo.Nationality.Name))//有的地方传入的民族只有id没有名字
            //{
            //    Neusoft.FrameWork.Models.NeuObject nationality = constant.GetConstant(Neusoft.HISFC.Models.Base.EnumConstant.NATION, prePatientInfo.Nationality.ID);

            //    this.lblPeople.Text = nationality.Name;
            //}

            Neusoft.FrameWork.Models.NeuObject pact = constant.GetConstant("PACTUNIT", prePatientInfo.Pact.ID);

            this.lblPactName.Text = pact.Name; //身份类型

            //this.lblNational.Text = prePatientInfo.Country.Name;// 国籍
            //this.lblHomeZip.Text = prePatientInfo.HomeZip; //家庭邮编
            //this.lblTel.Text = prePatientInfo.Kin.RelationPhone; //联系电话
            //this.relaName.Text = prePatientInfo.Kin.ID; //联系人姓名

            //this.neuLabel8.Text = pact.Name;

            //this.lblRelations.Text = prePatientInfo.Kin.Relation.Name; //与患者关系

            //this.lblProvice.Text = prePatientInfo.AddressHome;

            //if (!string.IsNullOrEmpty(prePatientInfo.MaritalStatus.Name))
            //{
            //    this.isMarried.Text = prePatientInfo.MaritalStatus.Name;
            //}
            //else
            //{
            //    this.isMarried.Text = "未知";
            //}
            return(1);
        }