AbstractRecuritmentFacadeControllerBean.java 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. package com.kingdee.eas.custom.recuritment.task;
  2. import javax.ejb.*;
  3. import java.rmi.RemoteException;
  4. import com.kingdee.bos.*;
  5. import com.kingdee.bos.util.BOSObjectType;
  6. import com.kingdee.bos.metadata.IMetaDataPK;
  7. import com.kingdee.bos.metadata.rule.RuleExecutor;
  8. import com.kingdee.bos.metadata.MetaDataPK;
  9. //import com.kingdee.bos.metadata.entity.EntityViewInfo;
  10. import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
  11. import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
  12. //import com.kingdee.bos.dao.IObjectPK;
  13. import com.kingdee.bos.dao.IObjectValue;
  14. import com.kingdee.bos.dao.IObjectCollection;
  15. import com.kingdee.bos.service.ServiceContext;
  16. import com.kingdee.bos.service.IServiceContext;
  17. import com.kingdee.eas.framework.Result;
  18. import com.kingdee.eas.framework.LineResult;
  19. import com.kingdee.eas.framework.exception.EASMultiException;
  20. import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
  21. import com.kingdee.eas.common.EASBizException;
  22. import java.lang.String;
  23. public abstract class AbstractRecuritmentFacadeControllerBean extends AbstractBizControllerBean implements RecuritmentFacadeController
  24. {
  25. protected AbstractRecuritmentFacadeControllerBean()
  26. {
  27. }
  28. protected BOSObjectType getBOSType()
  29. {
  30. return new BOSObjectType("38763AD7");
  31. }
  32. public void syncRecuritmentToBeisen(Context ctx, String billId) throws BOSException, EASBizException
  33. {
  34. try {
  35. ServiceContext svcCtx = createServiceContext(new MetaDataPK("94c839a0-2597-4db8-bdcb-6bafa4ec4020"), new Object[]{ctx, billId});
  36. invokeServiceBefore(svcCtx);
  37. if(!svcCtx.invokeBreak()) {
  38. _syncRecuritmentToBeisen(ctx, billId);
  39. }
  40. invokeServiceAfter(svcCtx);
  41. } catch (BOSException ex) {
  42. throw ex;
  43. } catch (EASBizException ex0) {
  44. throw ex0;
  45. } finally {
  46. super.cleanUpServiceState();
  47. }
  48. }
  49. protected void _syncRecuritmentToBeisen(Context ctx, String billId) throws BOSException, EASBizException
  50. {
  51. return;
  52. }
  53. public void updateRecuritment(Context ctx, String startDate, String endDate, int offset) throws BOSException, EASBizException
  54. {
  55. try {
  56. ServiceContext svcCtx = createServiceContext(new MetaDataPK("5e3367bc-8f3f-402a-9d0e-fd2a4cee05e2"), new Object[]{ctx, startDate, endDate, new Integer(offset)});
  57. invokeServiceBefore(svcCtx);
  58. if(!svcCtx.invokeBreak()) {
  59. _updateRecuritment(ctx, startDate, endDate, offset);
  60. }
  61. invokeServiceAfter(svcCtx);
  62. } catch (BOSException ex) {
  63. throw ex;
  64. } catch (EASBizException ex0) {
  65. throw ex0;
  66. } finally {
  67. super.cleanUpServiceState();
  68. }
  69. }
  70. protected void _updateRecuritment(Context ctx, String startDate, String endDate, int offset) throws BOSException, EASBizException
  71. {
  72. return;
  73. }
  74. public void syncBeisenResume(Context ctx, String applyId) throws BOSException, EASBizException
  75. {
  76. try {
  77. ServiceContext svcCtx = createServiceContext(new MetaDataPK("eb601c63-52f8-4b53-8d00-2639a80dadff"), new Object[]{ctx, applyId});
  78. invokeServiceBefore(svcCtx);
  79. if(!svcCtx.invokeBreak()) {
  80. _syncBeisenResume(ctx, applyId);
  81. }
  82. invokeServiceAfter(svcCtx);
  83. } catch (BOSException ex) {
  84. throw ex;
  85. } catch (EASBizException ex0) {
  86. throw ex0;
  87. } finally {
  88. super.cleanUpServiceState();
  89. }
  90. }
  91. protected void _syncBeisenResume(Context ctx, String applyId) throws BOSException, EASBizException
  92. {
  93. return;
  94. }
  95. }