private void GetPatientProperty()
        {
            if (this.PatientInfo != null)
            {
                Neusoft.HISFC.BizLogic.Order.OutPatient.Order orderManager = new Neusoft.HISFC.BizLogic.Order.OutPatient.Order();

                this.patientInfo.PatientNo   = myPatientInfo.PID.CardNO;                    //门诊病例号
                this.patientInfo.Sex         = myPatientInfo.Sex.Name;                      //性别
                this.patientInfo.Age         = orderManager.GetAge(myPatientInfo.Birthday); //年龄
                this.patientInfo.RegDoct     = myPatientInfo.DoctorInfo.Templet.Doct.Name;
                this.patientInfo.RegDept     = myPatientInfo.DoctorInfo.Templet.Dept.Name;  //科室
                this.patientInfo.PatientName = myPatientInfo.Name;                          //姓名
                this.patientInfo.RegLevel    = myPatientInfo.DoctorInfo.Templet.RegLevel.Name;
                this.patientInfo.RegDate     = myPatientInfo.DoctorInfo.SeeDate.ToShortDateString();
                this.patientInfo.PactName    = myPatientInfo.Pact.Name;
            }

            this.propertyGrid1.SelectedObject = patientInfo;
//			propertyGrid1.SelectedObjects = new object[]{patientInfo,Patient.Patient,Patient.PayKind,Patient.PVisit,Patient.SIMainInfo,Patient.Caution,Patient.Diagnoses,Patient.Disease};
        }
예제 #2
0
        private void AddItem(int iIndex, Neusoft.HISFC.Models.Pharmacy.ApplyOut info)
        {
            //try
            //{
            this.neuSpread1_Sheet1.Rows.Get(iIndex).Height = 40;   //行高

            Neusoft.HISFC.BizLogic.Order.OutPatient.Order outPatientOrderManager = new Neusoft.HISFC.BizLogic.Order.OutPatient.Order();
            Neusoft.HISFC.Models.Order.OutPatient.Order   outPatientOrder        = outPatientOrderManager.QueryOneOrder(info.OrderNO);

            if (info.Item.PackQty == 0)
            {
                info.Item.PackQty = 1;
            }
            if (info.Item.Type.ID == "C")
            {
                try
                {
                    //获取医嘱备注  zhangyt
                    //Neusoft.HISFC.BizLogic.Order.OutPatient.Order outPatientOrderManager = new Neusoft.HISFC.BizLogic.Order.OutPatient.Order();
                    //Neusoft.HISFC.Models.Order.OutPatient.Order outPatientOrder = outPatientOrderManager.QueryOneOrder(info.OrderNO);
                    if (outPatientOrder != null)
                    {
                        info.Memo = outPatientOrder.Memo;
                    }
                }
                catch
                { }
                if (info.Memo == "")
                {
                    this.neuSpread1_Sheet1.Cells[iIndex, 0].Text = info.Item.Name;
                }
                else
                {
                    this.neuSpread1_Sheet1.Cells[iIndex, 0].Text = string.Format("{0}[{1}]", info.Item.Name, info.Memo);
                }
            }
            else
            {       //zhangyt 2011-02-22
                this.neuSpread1_Sheet1.Cells[iIndex, 0].Text = string.Format("{0}({1})[{2}]", info.Item.Name, dosageHelper.GetName(info.Item.DosageForm.ID), info.Item.Specs);
            }

            int minQty  = 0;
            int packQty = System.Math.DivRem((int)info.Operation.ApplyQty, (int)info.Item.PackQty, out minQty);

            if (minQty == 0)
            {
                this.neuSpread1_Sheet1.Cells[iIndex, 1].Text = string.Format("{0}{1}", packQty, info.Item.PackUnit);
            }
            else if (packQty == 0)
            {
                this.neuSpread1_Sheet1.Cells[iIndex, 1].Text = string.Format("{0}{1}", minQty, info.Item.MinUnit);
            }
            else
            {
                this.neuSpread1_Sheet1.Cells[iIndex, 1].Text = string.Format("{0}{1}{2}{3}", packQty, info.Item.PackUnit, minQty, info.Item.MinUnit);
            }
            //zhangyt 2011-02-23
            this.sendDrug.Text = string.Format("{0}", info.SendWindow);

            //zhangyt 2011-02-22
            this.neuSpread1_Sheet1.Cells[iIndex, 2].Text = outPatientOrder.DoseOnce.ToString() + outPatientOrder.DoseUnit;   //用量
            this.neuSpread1_Sheet1.Cells[iIndex, 3].Text = outPatientOrder.Frequency.ID;                                     //频次
            this.neuSpread1_Sheet1.Cells[iIndex, 4].Text = this.usageHelper.GetName(outPatientOrder.Usage.ID);               //用法
            string place_no = " ";

            place_no = info.PlaceNO;
            if (place_no == null)
            {
                place_no = " ";
            }

            this.neuSpread1_Sheet1.Cells[iIndex, 5].Text = place_no;
            //this.neuSpread1_Sheet1.Cells[iIndex, 2].Text = info.Item.PriceCollection.RetailPrice.ToString();
            //this.neuSpread1_Sheet1.Cells[iIndex, 3].Text = (System.Math.Round(info.Operation.ApplyQty / info.Item.PackQty * info.Item.PriceCollection.RetailPrice, 2)).ToString();

            //if (this.usageHelper != null)
            //{
            //    this.neuSpread1_Sheet1.Cells[iIndex, 4].Text = this.usageHelper.GetName(info.Usage.ID);
            //}
            //if ((this.neuSpread1_Sheet1.Cells[iIndex, 4].Text) == "")
            //    this.neuSpread1_Sheet1.Cells[iIndex, 4].Text = "遵医嘱";
            //}
            //catch
            //{ }
        }