Esempio n. 1
0
 /// <summary>
 /// 作废医嘱信息
 /// </summary>
 /// <param name="r">患者挂号信息</param>
 /// <param name="order">医嘱实体</param>
 /// <param name="errText">错误信息</param>
 /// <returns></returns>
 public int CancelOrder(Register r, Neusoft.HISFC.Models.Order.OutPatient.Order order, ref string errText)
 {
     //普通患者
     if (r.Pact.ID == "6" || r.Pact.ID == "7" || r.Pact.ID == "8")
     {
         FeeItemList f = outPatientFee.QueryFeeItemListFromMOOrder(order.ID);
         if (f == null)
         {
             errText = "查询患者费用信息失败!";
             return(-1);
         }
         if (!string.IsNullOrEmpty(f.Invoice.ID))
         {
             errText = "发票已打印请去收费处退费!";
             return(-1);
         }
         int resultValue = 0;
         if (f.IsConfirmed)
         {
             resultValue = this.CancelOrderConfirm(r, f, order.DCOper.OperTime, ref errText);
         }
         else
         {
             resultValue = this.CancelOrderNOConfirm(r, f, order.DCOper.OperTime, ref errText);
         }
         return(resultValue);
     }
     return(0);
 }