Ejemplo n.º 1
0
        public int SetFeeValue(ArrayList alFeeItem)
        {
            if (alFeeItem == null || alFeeItem.Count == 0)
            {
                return(0);
            }
            this.nlbl_姓名.Text  = "患者姓名: " + this.myPatientInfo.Name;
            this.nlbl_住院号.Text = "住院号: " + this.myPatientInfo.PID.PatientNO;
            this.nlbl_病区.Text  = "病区: " + this.myPatientInfo.PVisit.PatientLocation.NurseCell.Name;
            decimal   decQty     = 0;
            int       rows       = 0;
            string    str取药药房    = ".";
            decimal   str总金额     = 0;
            Hashtable htDrugCode = new Hashtable();

            this.neuSpread1_Sheet1.Rows.Count = 0;

            for (int i = 0; i < alFeeItem.Count; i++)
            {
                this.myFeeItemList = alFeeItem[i] as Neusoft.HISFC.Object.Fee.Inpatient.FeeItemList;

                if (!htDrugCode.ContainsKey(this.myFeeItemList.Item.ID))
                {
                    htDrugCode.Add(this.myFeeItemList.Item.ID, this.myFeeItemList);
                }
                str取药药房 = this.myFeeItemList.Item.Memo;
            }
            foreach (DictionaryEntry oneItem in htDrugCode)
            {
                decQty = 0;
                for (int i = 0; i < alFeeItem.Count; i++)
                {
                    this.myFeeItemList = alFeeItem[i] as Neusoft.HISFC.Object.Fee.Inpatient.FeeItemList;
                    if (this.myFeeItemList.Item.ID == oneItem.Key.ToString())
                    {
                        decQty += this.myFeeItemList.Item.Qty;
                    }
                }
                this.neuSpread1_Sheet1.AddRows(rows, 1);
                Neusoft.HISFC.Object.Fee.Inpatient.FeeItemList oneFeeItemObj = oneItem.Value as Neusoft.HISFC.Object.Fee.Inpatient.FeeItemList;
                this.neuSpread1_Sheet1.Cells[rows, 0].Text = oneFeeItemObj.Item.Name;
                this.neuSpread1_Sheet1.Cells[rows, 1].Text = oneFeeItemObj.Item.Specs;
                this.neuSpread1_Sheet1.Cells[rows, 2].Text = decQty.ToString();
                this.neuSpread1_Sheet1.Cells[rows, 3].Text = oneFeeItemObj.Item.PriceUnit;
                str总金额 += oneFeeItemObj.Item.Price / oneFeeItemObj.Item.PackQty * oneFeeItemObj.Item.Qty;
                rows++;
            }
            this.nlbl药房.Text  = "取药药房: " + str取药药房;
            this.lbl_总金额.Text = "总金额: " + Neusoft.NFC.Public.String.FormatNumberReturnString(str总金额, 2) + "元";
            this.neuSpread1_Sheet1.AddRows(rows, 1);
            this.neuSpread1_Sheet1.Models.Span.Add(rows, 0, 1, 4);
            this.neuSpread1_Sheet1.Cells[rows, 0].Text = "打印人: " + inPatientManager.Operator.Name + " 打印时间:" + inPatientManager.GetSysDateTime("yyyy-mm-dd hh24:mi:ss");
            return(1);
        }
Ejemplo n.º 2
0
 public int ControlValue(object obj)
 {
     if (obj == null)
     {
         return(-1);
     }
     Neusoft.HISFC.Integrate.RADT radt = new Neusoft.HISFC.Integrate.RADT();
     Neusoft.HISFC.Object.Fee.Inpatient.FeeItemList itemInfo    = (Neusoft.HISFC.Object.Fee.Inpatient.FeeItemList)obj;
     Neusoft.HISFC.Object.RADT.PatientInfo          patientInfo = radt.GetPatientInfoByPatientNO(itemInfo.Patient.ID);
     this.lbName1.Text      = itemInfo.Patient.Name.ToString();
     this.lbPatientNo1.Text = itemInfo.Patient.PID.PatientNO.ToString();
     this.lbDept1.Text      = patientInfo.PVisit.PatientLocation.Dept.Name;
     this.lbItemName1.Text  = itemInfo.Item.Name;
     this.lbExeDept1.Text   = itemInfo.ExecOper.Dept.Name;
     this.lbItemQty1.Text   = itemInfo.Item.Qty.ToString();
     this.lbCost1.Text      = String.Format("{0:N}", (itemInfo.Item.Price * itemInfo.Item.Qty));
     this.lbCostUp1.Text    = Neusoft.NFC.Function.NConvert.ToCapital(itemInfo.Item.Price * itemInfo.Item.Qty).ToString();
     this.lbNo1.Text        = itemInfo.Order.ID;//医嘱流水号
     this.lbOperCode1.Text  = Neusoft.NFC.Management.Connection.Operator.ID;
     this.lbDate1.Text      = this.inpatientManager.GetDateTimeFromSysDateTime().ToString();
     return(1);
 }