UpdateBarCode.cs 1011 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using UFSoft.UBF.Business;
  7. namespace UFIDA.U9.Cust.Kusi.CJJ.Plugin.BE.MiscShipmentL
  8. {
  9. public class UpdateBarCode : UFSoft.UBF.Eventing.IEventSubscriber
  10. {
  11. public void Notify(params object[] args)
  12. {
  13. #region 从事件参数中取得当前业务实体
  14. if (args == null || args.Length == 0 || !(args[0] is UFSoft.UBF.Business.EntityEvent))
  15. return;
  16. BusinessEntity.EntityKey key = ((UFSoft.UBF.Business.EntityEvent)args[0]).EntityKey;
  17. if (key == null)
  18. return;
  19. UFIDA.U9.InvDoc.MiscShip.MiscShipmentL holder = key.GetEntity() as UFIDA.U9.InvDoc.MiscShip.MiscShipmentL;
  20. if (holder == null)
  21. return;
  22. #endregion
  23. BarCodeUpdater.Update(holder.ID, "UFIDA.U9.InvDoc.MiscShip.MiscShipmentL");
  24. }
  25. }
  26. }