42accb119a2695ea98b2f3b9ec650b95d5e877c1.svn-base 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. package com.kingdee.eas.custom.bill.salary.app;
  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.framework.CoreBillEntryBaseCollection;
  22. import com.kingdee.bos.dao.IObjectPK;
  23. import com.kingdee.bos.metadata.entity.EntityViewInfo;
  24. import com.kingdee.eas.framework.app.CoreBillEntryBaseControllerBean;
  25. import java.lang.String;
  26. import com.kingdee.eas.framework.CoreBaseInfo;
  27. import com.kingdee.eas.framework.CoreBaseCollection;
  28. import com.kingdee.eas.common.EASBizException;
  29. import com.kingdee.eas.custom.bill.salary.PayPacketEntryCollection;
  30. import com.kingdee.bos.metadata.entity.SelectorItemCollection;
  31. import com.kingdee.eas.custom.bill.salary.PayPacketEntryInfo;
  32. public abstract class AbstractPayPacketEntryControllerBean extends CoreBillEntryBaseControllerBean implements PayPacketEntryController
  33. {
  34. protected AbstractPayPacketEntryControllerBean()
  35. {
  36. }
  37. protected BOSObjectType getBOSType()
  38. {
  39. return new BOSObjectType("C7B84004");
  40. }
  41. public PayPacketEntryInfo getPayPacketEntryInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  42. {
  43. try {
  44. ServiceContext svcCtx = createServiceContext(new MetaDataPK("45f09004-5cce-45a3-8f15-bb18db90bf3f"), new Object[]{ctx, pk});
  45. invokeServiceBefore(svcCtx);
  46. if(!svcCtx.invokeBreak()) {
  47. PayPacketEntryInfo retValue = (PayPacketEntryInfo)_getValue(ctx, pk);
  48. svcCtx.setMethodReturnValue(retValue);
  49. }
  50. invokeServiceAfter(svcCtx);
  51. return (PayPacketEntryInfo)svcCtx.getMethodReturnValue();
  52. } catch (BOSException ex) {
  53. throw ex;
  54. } catch (EASBizException ex0) {
  55. throw ex0;
  56. } finally {
  57. super.cleanUpServiceState();
  58. }
  59. }
  60. protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  61. {
  62. return super._getValue(ctx, pk);
  63. }
  64. public PayPacketEntryInfo getPayPacketEntryInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  65. {
  66. try {
  67. ServiceContext svcCtx = createServiceContext(new MetaDataPK("1aa6cf35-cd9f-45ae-9947-dc5d3ece2a9c"), new Object[]{ctx, pk, selector});
  68. invokeServiceBefore(svcCtx);
  69. if(!svcCtx.invokeBreak()) {
  70. PayPacketEntryInfo retValue = (PayPacketEntryInfo)_getValue(ctx, pk, selector);
  71. svcCtx.setMethodReturnValue(retValue);
  72. }
  73. invokeServiceAfter(svcCtx);
  74. return (PayPacketEntryInfo)svcCtx.getMethodReturnValue();
  75. } catch (BOSException ex) {
  76. throw ex;
  77. } catch (EASBizException ex0) {
  78. throw ex0;
  79. } finally {
  80. super.cleanUpServiceState();
  81. }
  82. }
  83. protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  84. {
  85. return super._getValue(ctx, pk, selector);
  86. }
  87. public PayPacketEntryInfo getPayPacketEntryInfo(Context ctx, String oql) throws BOSException, EASBizException
  88. {
  89. try {
  90. ServiceContext svcCtx = createServiceContext(new MetaDataPK("23dce180-e364-445d-8de8-50085c71d50b"), new Object[]{ctx, oql});
  91. invokeServiceBefore(svcCtx);
  92. if(!svcCtx.invokeBreak()) {
  93. PayPacketEntryInfo retValue = (PayPacketEntryInfo)_getValue(ctx, oql);
  94. svcCtx.setMethodReturnValue(retValue);
  95. }
  96. invokeServiceAfter(svcCtx);
  97. return (PayPacketEntryInfo)svcCtx.getMethodReturnValue();
  98. } catch (BOSException ex) {
  99. throw ex;
  100. } catch (EASBizException ex0) {
  101. throw ex0;
  102. } finally {
  103. super.cleanUpServiceState();
  104. }
  105. }
  106. protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
  107. {
  108. return super._getValue(ctx, oql);
  109. }
  110. public PayPacketEntryCollection getPayPacketEntryCollection(Context ctx) throws BOSException
  111. {
  112. try {
  113. ServiceContext svcCtx = createServiceContext(new MetaDataPK("585bfe2a-b690-4b16-a4d0-fc355cbf4ac9"), new Object[]{ctx});
  114. invokeServiceBefore(svcCtx);
  115. if(!svcCtx.invokeBreak()) {
  116. PayPacketEntryCollection retValue = (PayPacketEntryCollection)_getCollection(ctx, svcCtx);
  117. svcCtx.setMethodReturnValue(retValue);
  118. }
  119. invokeServiceAfter(svcCtx);
  120. return (PayPacketEntryCollection)svcCtx.getMethodReturnValue();
  121. } catch (BOSException ex) {
  122. throw ex;
  123. } finally {
  124. super.cleanUpServiceState();
  125. }
  126. }
  127. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
  128. {
  129. return super._getCollection(ctx, svcCtx);
  130. }
  131. public PayPacketEntryCollection getPayPacketEntryCollection(Context ctx, EntityViewInfo view) throws BOSException
  132. {
  133. try {
  134. ServiceContext svcCtx = createServiceContext(new MetaDataPK("376b5fad-3e27-410e-847c-e95d3a29930a"), new Object[]{ctx, view});
  135. invokeServiceBefore(svcCtx);
  136. if(!svcCtx.invokeBreak()) {
  137. PayPacketEntryCollection retValue = (PayPacketEntryCollection)_getCollection(ctx, svcCtx, view);
  138. svcCtx.setMethodReturnValue(retValue);
  139. }
  140. invokeServiceAfter(svcCtx);
  141. return (PayPacketEntryCollection)svcCtx.getMethodReturnValue();
  142. } catch (BOSException ex) {
  143. throw ex;
  144. } finally {
  145. super.cleanUpServiceState();
  146. }
  147. }
  148. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
  149. {
  150. return super._getCollection(ctx, svcCtx, view);
  151. }
  152. public PayPacketEntryCollection getPayPacketEntryCollection(Context ctx, String oql) throws BOSException
  153. {
  154. try {
  155. ServiceContext svcCtx = createServiceContext(new MetaDataPK("035f0153-7fd3-4a15-b8a7-73f49169502c"), new Object[]{ctx, oql});
  156. invokeServiceBefore(svcCtx);
  157. if(!svcCtx.invokeBreak()) {
  158. PayPacketEntryCollection retValue = (PayPacketEntryCollection)_getCollection(ctx, svcCtx, oql);
  159. svcCtx.setMethodReturnValue(retValue);
  160. }
  161. invokeServiceAfter(svcCtx);
  162. return (PayPacketEntryCollection)svcCtx.getMethodReturnValue();
  163. } catch (BOSException ex) {
  164. throw ex;
  165. } finally {
  166. super.cleanUpServiceState();
  167. }
  168. }
  169. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
  170. {
  171. return super._getCollection(ctx, svcCtx, oql);
  172. }
  173. public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
  174. {
  175. return (CoreBillEntryBaseCollection)(getPayPacketEntryCollection(ctx).cast(CoreBillEntryBaseCollection.class));
  176. }
  177. public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  178. {
  179. return (CoreBillEntryBaseCollection)(getPayPacketEntryCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
  180. }
  181. public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
  182. {
  183. return (CoreBillEntryBaseCollection)(getPayPacketEntryCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
  184. }
  185. public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
  186. {
  187. return (CoreBaseCollection)(getPayPacketEntryCollection(ctx).cast(CoreBaseCollection.class));
  188. }
  189. public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  190. {
  191. return (CoreBaseCollection)(getPayPacketEntryCollection(ctx, view).cast(CoreBaseCollection.class));
  192. }
  193. public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
  194. {
  195. return (CoreBaseCollection)(getPayPacketEntryCollection(ctx, oql).cast(CoreBaseCollection.class));
  196. }
  197. }