1e4fc1024e7a4e492e8cfc7d66bb71bdacdd0a5f.svn-base 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. package com.kingdee.eas.custom.facade;
  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. public abstract class AbstractEarlyWarningFacadeControllerBean extends AbstractBizControllerBean implements EarlyWarningFacadeController
  23. {
  24. protected AbstractEarlyWarningFacadeControllerBean()
  25. {
  26. }
  27. protected BOSObjectType getBOSType()
  28. {
  29. return new BOSObjectType("113E89AF");
  30. }
  31. public void overExpenseApply(Context ctx) throws BOSException, EASBizException
  32. {
  33. try {
  34. ServiceContext svcCtx = createServiceContext(new MetaDataPK("4a30ed6a-d8f5-4620-b136-d191609efba2"), new Object[]{ctx});
  35. invokeServiceBefore(svcCtx);
  36. if(!svcCtx.invokeBreak()) {
  37. _overExpenseApply(ctx);
  38. }
  39. invokeServiceAfter(svcCtx);
  40. } catch (BOSException ex) {
  41. throw ex;
  42. } catch (EASBizException ex0) {
  43. throw ex0;
  44. } finally {
  45. super.cleanUpServiceState();
  46. }
  47. }
  48. protected void _overExpenseApply(Context ctx) throws BOSException, EASBizException
  49. {
  50. return;
  51. }
  52. public void forwardApply(Context ctx) throws BOSException, EASBizException
  53. {
  54. try {
  55. ServiceContext svcCtx = createServiceContext(new MetaDataPK("02527311-2c0d-494e-9a87-afadfe819fa2"), new Object[]{ctx});
  56. invokeServiceBefore(svcCtx);
  57. if(!svcCtx.invokeBreak()) {
  58. _forwardApply(ctx);
  59. }
  60. invokeServiceAfter(svcCtx);
  61. } catch (BOSException ex) {
  62. throw ex;
  63. } catch (EASBizException ex0) {
  64. throw ex0;
  65. } finally {
  66. super.cleanUpServiceState();
  67. }
  68. }
  69. protected void _forwardApply(Context ctx) throws BOSException, EASBizException
  70. {
  71. return;
  72. }
  73. public void overAuditApply(Context ctx) throws BOSException, EASBizException
  74. {
  75. try {
  76. ServiceContext svcCtx = createServiceContext(new MetaDataPK("64bfe833-2f29-4056-9703-885000f80b38"), new Object[]{ctx});
  77. invokeServiceBefore(svcCtx);
  78. if(!svcCtx.invokeBreak()) {
  79. _overAuditApply(ctx);
  80. }
  81. invokeServiceAfter(svcCtx);
  82. } catch (BOSException ex) {
  83. this.setRollbackOnly();
  84. throw ex;
  85. } catch (EASBizException ex0) {
  86. this.setRollbackOnly();
  87. throw ex0;
  88. } finally {
  89. super.cleanUpServiceState();
  90. }
  91. }
  92. protected void _overAuditApply(Context ctx) throws BOSException, EASBizException
  93. {
  94. return;
  95. }
  96. public void attendanceAbnormalApply(Context ctx) throws BOSException, EASBizException
  97. {
  98. try {
  99. ServiceContext svcCtx = createServiceContext(new MetaDataPK("f6fb3c0b-86a9-4b9c-9789-62f97d1dba1c"), new Object[]{ctx});
  100. invokeServiceBefore(svcCtx);
  101. if(!svcCtx.invokeBreak()) {
  102. _attendanceAbnormalApply(ctx);
  103. }
  104. invokeServiceAfter(svcCtx);
  105. } catch (BOSException ex) {
  106. throw ex;
  107. } catch (EASBizException ex0) {
  108. throw ex0;
  109. } finally {
  110. super.cleanUpServiceState();
  111. }
  112. }
  113. protected void _attendanceAbnormalApply(Context ctx) throws BOSException, EASBizException
  114. {
  115. return;
  116. }
  117. public void becomeWorkApply(Context ctx) throws BOSException, EASBizException
  118. {
  119. try {
  120. ServiceContext svcCtx = createServiceContext(new MetaDataPK("5fee4b6f-80d7-49ea-95c0-8cfb118f9c2b"), new Object[]{ctx});
  121. invokeServiceBefore(svcCtx);
  122. if(!svcCtx.invokeBreak()) {
  123. _becomeWorkApply(ctx);
  124. }
  125. invokeServiceAfter(svcCtx);
  126. } catch (BOSException ex) {
  127. throw ex;
  128. } catch (EASBizException ex0) {
  129. throw ex0;
  130. } finally {
  131. super.cleanUpServiceState();
  132. }
  133. }
  134. protected void _becomeWorkApply(Context ctx) throws BOSException, EASBizException
  135. {
  136. return;
  137. }
  138. public void thatAttendAbnormal(Context ctx) throws BOSException, EASBizException
  139. {
  140. try {
  141. ServiceContext svcCtx = createServiceContext(new MetaDataPK("ec7fa15c-9272-4bc2-a0a4-e9c7b3d2751f"), new Object[]{ctx});
  142. invokeServiceBefore(svcCtx);
  143. if(!svcCtx.invokeBreak()) {
  144. _thatAttendAbnormal(ctx);
  145. }
  146. invokeServiceAfter(svcCtx);
  147. } catch (BOSException ex) {
  148. throw ex;
  149. } catch (EASBizException ex0) {
  150. throw ex0;
  151. } finally {
  152. super.cleanUpServiceState();
  153. }
  154. }
  155. protected void _thatAttendAbnormal(Context ctx) throws BOSException, EASBizException
  156. {
  157. return;
  158. }
  159. public void departAttendAbnormal(Context ctx) throws BOSException, EASBizException
  160. {
  161. try {
  162. ServiceContext svcCtx = createServiceContext(new MetaDataPK("d716e608-829c-4b3e-803b-6e75be209f8b"), new Object[]{ctx});
  163. invokeServiceBefore(svcCtx);
  164. if(!svcCtx.invokeBreak()) {
  165. _departAttendAbnormal(ctx);
  166. }
  167. invokeServiceAfter(svcCtx);
  168. } catch (BOSException ex) {
  169. throw ex;
  170. } catch (EASBizException ex0) {
  171. throw ex0;
  172. } finally {
  173. super.cleanUpServiceState();
  174. }
  175. }
  176. protected void _departAttendAbnormal(Context ctx) throws BOSException, EASBizException
  177. {
  178. return;
  179. }
  180. public void monthAttendAbnormal(Context ctx) throws BOSException, EASBizException
  181. {
  182. try {
  183. ServiceContext svcCtx = createServiceContext(new MetaDataPK("200fcda7-0adc-41d4-905c-d45beee2577b"), new Object[]{ctx});
  184. invokeServiceBefore(svcCtx);
  185. if(!svcCtx.invokeBreak()) {
  186. _monthAttendAbnormal(ctx);
  187. }
  188. invokeServiceAfter(svcCtx);
  189. } catch (BOSException ex) {
  190. throw ex;
  191. } catch (EASBizException ex0) {
  192. throw ex0;
  193. } finally {
  194. super.cleanUpServiceState();
  195. }
  196. }
  197. protected void _monthAttendAbnormal(Context ctx) throws BOSException, EASBizException
  198. {
  199. return;
  200. }
  201. }