1b9eb498ebdeb8096628131facefbe976ceb03bd.svn-base 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. package com.kingdee.eas.custom.facade.leave;
  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 AbstractLeaveAllowanceFacadeControllerBean extends AbstractBizControllerBean implements LeaveAllowanceFacadeController
  24. {
  25. protected AbstractLeaveAllowanceFacadeControllerBean()
  26. {
  27. }
  28. protected BOSObjectType getBOSType()
  29. {
  30. return new BOSObjectType("1FBBCAEE");
  31. }
  32. public void createAnnualLeave(Context ctx, int year, String personNum) throws BOSException
  33. {
  34. try {
  35. ServiceContext svcCtx = createServiceContext(new MetaDataPK("35c5aa3b-7229-435a-9362-8e541a7d0b9a"), new Object[]{ctx, new Integer(year), personNum});
  36. invokeServiceBefore(svcCtx);
  37. if(!svcCtx.invokeBreak()) {
  38. _createAnnualLeave(ctx, year, personNum);
  39. }
  40. invokeServiceAfter(svcCtx);
  41. } catch (BOSException ex) {
  42. throw ex;
  43. } finally {
  44. super.cleanUpServiceState();
  45. }
  46. }
  47. protected void _createAnnualLeave(Context ctx, int year, String personNum) throws BOSException
  48. {
  49. return;
  50. }
  51. public void creareNursingLeave(Context ctx, int year, String personNum) throws BOSException
  52. {
  53. try {
  54. ServiceContext svcCtx = createServiceContext(new MetaDataPK("b1f957e5-8312-48b4-b8e8-ffd910101d5d"), new Object[]{ctx, new Integer(year), personNum});
  55. invokeServiceBefore(svcCtx);
  56. if(!svcCtx.invokeBreak()) {
  57. _creareNursingLeave(ctx, year, personNum);
  58. }
  59. invokeServiceAfter(svcCtx);
  60. } catch (BOSException ex) {
  61. throw ex;
  62. } finally {
  63. super.cleanUpServiceState();
  64. }
  65. }
  66. protected void _creareNursingLeave(Context ctx, int year, String personNum) throws BOSException
  67. {
  68. return;
  69. }
  70. public void creareParentalLeave(Context ctx, int year, String personNum) throws BOSException
  71. {
  72. try {
  73. ServiceContext svcCtx = createServiceContext(new MetaDataPK("359aa746-c31f-48f4-8bf0-05cbcf83f838"), new Object[]{ctx, new Integer(year), personNum});
  74. invokeServiceBefore(svcCtx);
  75. if(!svcCtx.invokeBreak()) {
  76. _creareParentalLeave(ctx, year, personNum);
  77. }
  78. invokeServiceAfter(svcCtx);
  79. } catch (BOSException ex) {
  80. throw ex;
  81. } finally {
  82. super.cleanUpServiceState();
  83. }
  84. }
  85. protected void _creareParentalLeave(Context ctx, int year, String personNum) throws BOSException
  86. {
  87. return;
  88. }
  89. public void carryForwardLeave(Context ctx, int year, boolean isExecute, String personNum) throws BOSException, EASBizException
  90. {
  91. try {
  92. ServiceContext svcCtx = createServiceContext(new MetaDataPK("cf246335-8d83-4f66-9ba0-fe3340b031a5"), new Object[]{ctx, new Integer(year), new Boolean(isExecute), personNum});
  93. invokeServiceBefore(svcCtx);
  94. if(!svcCtx.invokeBreak()) {
  95. _carryForwardLeave(ctx, year, isExecute, personNum);
  96. }
  97. invokeServiceAfter(svcCtx);
  98. } catch (BOSException ex) {
  99. throw ex;
  100. } catch (EASBizException ex0) {
  101. throw ex0;
  102. } finally {
  103. super.cleanUpServiceState();
  104. }
  105. }
  106. protected void _carryForwardLeave(Context ctx, int year, boolean isExecute, String personNum) throws BOSException, EASBizException
  107. {
  108. return;
  109. }
  110. public void setSeniority(Context ctx) throws BOSException, EASBizException
  111. {
  112. try {
  113. ServiceContext svcCtx = createServiceContext(new MetaDataPK("741d13ae-4d75-40fa-84f2-58fee9a5c938"), new Object[]{ctx});
  114. invokeServiceBefore(svcCtx);
  115. if(!svcCtx.invokeBreak()) {
  116. _setSeniority(ctx);
  117. }
  118. invokeServiceAfter(svcCtx);
  119. } catch (BOSException ex) {
  120. throw ex;
  121. } catch (EASBizException ex0) {
  122. throw ex0;
  123. } finally {
  124. super.cleanUpServiceState();
  125. }
  126. }
  127. protected void _setSeniority(Context ctx) throws BOSException, EASBizException
  128. {
  129. return;
  130. }
  131. }