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

            pactItemRate.OperEnvironment = this.OperEnvironment.Clone();
            pactItemRate.PactItem        = this.PactItem.Clone();
            pactItemRate.Rate            = this.Rate.Clone();

            return(pactItemRate);
        }
Пример #2
0
 /// <summary>
 /// 拆分记账费用
 /// </summary>
 /// <param name="r">患者挂号信息</param>
 /// <param name="FeeItemList">费用信息</param>
 /// <param name="nofeeList">记账费用</param>
 /// <param name="feeList">收费项目</param>
 /// <returns></returns>
 private bool SplitFeeItemList(Neusoft.HISFC.Models.Registration.Register r, ArrayList feeItemLists, ref string errText)
 {
     Neusoft.HISFC.Models.Base.PactItemRate pRate = null;
     foreach (FeeItemList f in feeItemLists)
     {
         //城镇医疗
         if (r.Pact.ID == "6" || r.Pact.ID == "7")
         {
             if (f.Item.ItemType == EnumItemType.Drug)
             {
                 Neusoft.HISFC.Models.Pharmacy.Item item = pharmarcyManager.GetItem(f.Item.ID);
                 if (item == null)
                 {
                     errText = "查询药品项目失败!" + pharmarcyManager.Err;
                     return(false);
                 }
                 if (item.SpecialFlag == "1")
                 {
                     pRate = pactItemRate.GetOnepPactUnitItemRateByItem(r.Pact.ID, f.Item.ID);
                     if (pRate != null && pRate.Rate.PubRate == 1)
                     {
                         f.FT.PayCost = 0;
                         f.FT.PubCost = f.FT.OwnCost;
                         f.FT.OwnCost = 0;
                         noFeeList.Add(f);
                     }
                     else
                     {
                         feeList.Add(f);
                     }
                 }
                 else
                 {
                     feeList.Add(f);
                 }
             }
             else
             {
                 feeList.Add(f);
             }
         }
         //美的全部记账
         if (r.Pact.ID == "8")
         {
             f.FT.PayCost = 0;
             f.FT.PubCost = f.FT.OwnCost;
             f.FT.OwnCost = 0;
             noFeeList.Add(f);
         }
     }
     return(true);
 }