예제 #1
0
        private void neuSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            if (neuSpread1_Sheet1.Rows.Count < 1)
            {
                //没有数据 返回
                return;
            }

            Neusoft.HISFC.Models.RADT.PatientInfo patient = new Neusoft.HISFC.Models.RADT.PatientInfo();
            //取出住院流水号
            patient.ID = neuSpread1_Sheet1.Cells[neuSpread1_Sheet1.ActiveRowIndex, GetColumnId("住院流水号")].Text;
            Neusoft.HISFC.BizLogic.RADT.InPatient inPatient = new Neusoft.HISFC.BizLogic.RADT.InPatient();
            patient = inPatient.QueryPatientInfoByInpatientNO(patient.ID);
            //触发事件
            try
            {
                SaveInfo(patient);
            }
            catch (Exception ex)
            {
                string Err = ex.Message;
            }
            this.Close();
            //if (dcEvent == neusoft.Common.Class.FormStyleInfo.DCAutoClose)
            //{
            //    this.Close();
            //}
        }
예제 #2
0
 public ucMinFeeEnd(string patientNo, DateTime begin, DateTime end, Decimal cost)
 {
     InitializeComponent();
     this.patient   = LogicPatient.QueryPatientInfoByInpatientNO(patientNo);
     this.beginTime = begin;
     this.endTime   = end;
     this.ThisCost  = cost;
 }
예제 #3
0
        public ucDetailFeeBegin(string patientNo, DateTime begin, DateTime end)
        {
            InitializeComponent();

            this.patient   = LogicPatient.QueryPatientInfoByInpatientNO(patientNo);
            this.beginTime = begin;
            this.endTime   = end;
        }
예제 #4
0
        public int ShowData(ArrayList alData, bool isPreview)
        {
            #region  患者进行单独分组

            List <Neusoft.HISFC.Models.Pharmacy.ApplyOut> detailApplyOut = new List <Neusoft.HISFC.Models.Pharmacy.ApplyOut>();
            System.Collections.Hashtable hsPatientApply = new Hashtable();

            foreach (Neusoft.HISFC.Models.Pharmacy.ApplyOut temp in alData)
            {
                if (hsPatientApply.ContainsKey(temp.PatientNO + temp.UseTime.ToString()))
                {
                    (hsPatientApply[temp.PatientNO + temp.UseTime.ToString()] as List <Neusoft.HISFC.Models.Pharmacy.ApplyOut>).Add(temp.Clone());
                }
                else
                {
                    List <Neusoft.HISFC.Models.Pharmacy.ApplyOut> tempList = new List <Neusoft.HISFC.Models.Pharmacy.ApplyOut>();
                    tempList.Add(temp.Clone());

                    hsPatientApply.Add(temp.PatientNO + temp.UseTime.ToString(), tempList);
                }
            }

            #endregion

            #region  批次流水对患者药品进行排序 完成打印

            CompareApplyOutByCompoundGroup compare = new CompareApplyOutByCompoundGroup();
            foreach (List <Neusoft.HISFC.Models.Pharmacy.ApplyOut> list in hsPatientApply.Values)
            {
                if (list.Count <= 0)
                {
                    continue;
                }

                list.Sort(compare);

                //患者头信息赋值
                string information = "";
                this.neuSpread1_Sheet1.Rows.Count = 0;
                foreach (Neusoft.HISFC.Models.Pharmacy.ApplyOut info in list)
                {
                    int iRowIndex = this.neuSpread1_Sheet1.Rows.Count;
                    this.neuSpread1_Sheet1.Rows.Add(iRowIndex, 1);

                    this.neuSpread1_Sheet1.Cells[iRowIndex, 0].Text = info.CompoundGroup.Substring(0, 1);
                    this.neuSpread1_Sheet1.Cells[iRowIndex, 1].Text = info.CompoundGroup;
                    this.neuSpread1_Sheet1.Cells[iRowIndex, 2].Text = info.Item.Name + "-" + Function.DrugDosage.GetStaticDosage(info.Item.ID) + "[" + info.Item.Specs + "]";
                    this.neuSpread1_Sheet1.Cells[iRowIndex, 3].Text = info.Operation.ApplyQty.ToString();            //总量
                    this.neuSpread1_Sheet1.Cells[iRowIndex, 4].Text = info.DoseOnce.ToString() + info.Item.DoseUnit; //用量
                    this.neuSpread1_Sheet1.Cells[iRowIndex, 5].Text = usageHelper.GetName(info.Usage.ID);

                    string birth = "";
                    if (hsBirth.ContainsKey(info.PatientNO))
                    {
                        birth = hsBirth[info.PatientNO] as string;
                    }
                    else
                    {
                        Neusoft.HISFC.BizLogic.RADT.InPatient patientManager = new Neusoft.HISFC.BizLogic.RADT.InPatient();
                        Neusoft.HISFC.Models.RADT.PatientInfo patient        = patientManager.QueryPatientInfoByInpatientNO(info.PatientNO);
                        birth = patient.Birthday.ToString("yyyy.MM.dd");
                        hsBirth.Add(info.PatientNO, birth);
                    }

                    if (iRowIndex == 0)
                    {
                        if (info.User01.Length <= 4)
                        {
                            information = string.Format("{0}    床号:{1}   {2}   {3}    出生日期:{4}   用药时间:{5}", deptHelper.GetName(info.ApplyDept.ID),
                                                        info.User01, info.User02, info.User02.Substring(2), birth, info.UseTime.ToString("yyyy.MM.dd"));
                        }
                        else
                        {
                            information = string.Format("{0}    床号:{1}   {2}   {3}    出生日期:{4}   用药时间:{5}", deptHelper.GetName(info.ApplyDept.ID),
                                                        info.User01.Substring(4), info.User02, info.PatientNO.Substring(4), birth, info.UseTime.ToString("yyyy.MM.dd"));
                        }
                    }
                }

                this.lbInfo.Text = information;

                this.Print(isPreview);
            }

            #endregion

            return(1);
        }
예제 #5
0
 public virtual Neusoft.HISFC.Models.RADT.PatientInfo QueryPatientInfoByInpatientNO(string inpatientNo)
 {
     Neusoft.HISFC.BizLogic.RADT.InPatient manager = new Neusoft.HISFC.BizLogic.RADT.InPatient();
     this.SetDB(manager);
     return(manager.QueryPatientInfoByInpatientNO(inpatientNo));
 }