Пример #1
0
        /// <summary>
        /// 克隆
        /// </summary>
        /// <returns>返回当前对象实例副本</returns>
        public new FeeItemList Clone()
        {
            FeeItemList feeItemList = base.Clone() as FeeItemList;

            feeItemList.FTRate      = this.FTRate.Clone();
            feeItemList.BalanceOper = this.BalanceOper.Clone();
            feeItemList.ExecOrder   = this.ExecOrder.Clone();
            //{AC6A5576-BA29-4dba-8C39-E7C5EBC7671E} 增加医疗组处理
            feeItemList.MedicalTeam = this.MedicalTeam.Clone();
            return(feeItemList);
        }
Пример #2
0
        private void RetrieveReturnApplyUndrug(string inpatientNO, DateTime beginTime, DateTime endTime)
        {
            this.fpQuit_SheetUndrug.Rows.Count = 0;

            ArrayList returnApplys = new ArrayList();

            //获取时间段范围内的记录
            returnApplys = this.returnApplyManager.QueryReturnApplys(this.patientInfo.ID, false, false);
            if (returnApplys == null)
            {
                return;
            }

            foreach (Neusoft.HISFC.Models.Fee.ReturnApply returnApply in returnApplys)
            {
                Neusoft.HISFC.Models.Fee.Inpatient.FeeItemList feeItemList = null;

                //feeItemList = this.inpatientManager.GetItemListByRecipeNO(returnApply.RecipeNO, returnApply.SequenceNO, false);
                feeItemList = this.inpatientManager.GetItemListByRecipeNO(returnApply.RecipeNO, returnApply.SequenceNO, HISFC.Models.Base.EnumItemType.UnDrug);
                if (feeItemList == null)
                {
                    MessageBox.Show("获得项目信息出错!" + this.inpatientManager.Err);

                    return;
                }

                this.fpQuit_SheetUndrug.Rows.Add(this.fpQuit_SheetUndrug.RowCount, 1);

                int index = this.fpQuit_SheetUndrug.Rows.Count - 1;

                returnApply.Item.PackQty = feeItemList.Item.PackQty;
                if (returnApply.Item.PackQty == 0)
                {
                    returnApply.Item.PackQty = 1;
                }
                if (feeItemList.Item.PackQty == 0)
                {
                    feeItemList.Item.PackQty = 1;
                }
                if (returnApply.Days == 0)
                {
                    returnApply.Days = 1;
                }

                this.fpQuit_SheetUndrug.SetValue(index, (int)UndrugColumns.ItemName, returnApply.Item.Name);
                this.fpQuit_SheetUndrug.SetValue(index, (int)UndrugColumns.FeeName, feeItemList.Item.MinFee.ID);
                this.fpQuit_SheetUndrug.SetValue(index, (int)UndrugColumns.Price, feeItemList.Item.Price);
                this.fpQuit_SheetUndrug.SetValue(index, (int)UndrugColumns.Qty, returnApply.Item.Qty);
                this.fpQuit_SheetUndrug.SetValue(index, (int)UndrugColumns.Unit, feeItemList.Item.PriceUnit);
                this.fpQuit_SheetUndrug.SetValue(index, (int)UndrugColumns.Cost, feeItemList.Item.Price * returnApply.Item.Qty);
                this.fpQuit_SheetUndrug.SetValue(index, (int)UndrugColumns.ExecDept, feeItemList.FeeOper.Dept.ID);
                this.fpQuit_SheetUndrug.SetValue(index, (int)UndrugColumns.IsConfirm, feeItemList.IsConfirmed);
                this.fpQuit_SheetUndrug.SetValue(index, (int)UndrugColumns.IsApply, false);

                feeItemList.User02     = returnApply.ApplyBillNO; //退费申请单据号
                feeItemList.Item.Qty   = returnApply.Item.Qty;
                feeItemList.FT.TotCost = feeItemList.Item.Price * returnApply.Item.Qty;
                feeItemList.User03     = returnApply.ID;        //退费申请流水号
                feeItemList.User01     = "0";                   // "0" 该条数据由病区退费申请表获取 其他 该条数据由出库申请表获取
                //用于区别是否为已保存过的退费申请
                feeItemList.Memo = "OLD";

                this.fpQuit_SheetUndrug.Rows[index].Tag = feeItemList;
            }
        }