5d26e48709f07eb3b018cd6ef81e03bc25c160c1.svn-base 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. package com.kingdee.eas.custom.ats.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.bos.dao.IObjectPK;
  22. import com.kingdee.bos.metadata.entity.SelectorItemCollection;
  23. import com.kingdee.eas.common.EASBizException;
  24. import com.kingdee.eas.custom.ats.AtsLeaveBillDetailSameCollection;
  25. import com.kingdee.eas.framework.CoreBaseCollection;
  26. import com.kingdee.eas.framework.CoreBaseInfo;
  27. import com.kingdee.bos.metadata.entity.EntityViewInfo;
  28. import java.lang.String;
  29. import com.kingdee.eas.framework.app.DataBaseControllerBean;
  30. import com.kingdee.eas.framework.DataBaseCollection;
  31. import com.kingdee.eas.custom.ats.AtsLeaveBillDetailSameInfo;
  32. import com.kingdee.eas.framework.ObjectBaseCollection;
  33. public abstract class AbstractAtsLeaveBillDetailSameControllerBean extends DataBaseControllerBean implements AtsLeaveBillDetailSameController
  34. {
  35. protected AbstractAtsLeaveBillDetailSameControllerBean()
  36. {
  37. }
  38. protected BOSObjectType getBOSType()
  39. {
  40. return new BOSObjectType("01B9C828");
  41. }
  42. public AtsLeaveBillDetailSameInfo getAtsLeaveBillDetailSameInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  43. {
  44. try {
  45. ServiceContext svcCtx = createServiceContext(new MetaDataPK("e5bbfda3-ac3f-4e3d-a235-4d59662790a2"), new Object[]{ctx, pk});
  46. invokeServiceBefore(svcCtx);
  47. if(!svcCtx.invokeBreak()) {
  48. AtsLeaveBillDetailSameInfo retValue = (AtsLeaveBillDetailSameInfo)_getValue(ctx, pk);
  49. svcCtx.setMethodReturnValue(retValue);
  50. }
  51. invokeServiceAfter(svcCtx);
  52. return (AtsLeaveBillDetailSameInfo)svcCtx.getMethodReturnValue();
  53. } catch (BOSException ex) {
  54. throw ex;
  55. } catch (EASBizException ex0) {
  56. throw ex0;
  57. } finally {
  58. super.cleanUpServiceState();
  59. }
  60. }
  61. protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  62. {
  63. return super._getValue(ctx, pk);
  64. }
  65. public AtsLeaveBillDetailSameInfo getAtsLeaveBillDetailSameInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  66. {
  67. try {
  68. ServiceContext svcCtx = createServiceContext(new MetaDataPK("94165f52-1c42-40c9-b099-ab1b4d78a3cf"), new Object[]{ctx, pk, selector});
  69. invokeServiceBefore(svcCtx);
  70. if(!svcCtx.invokeBreak()) {
  71. AtsLeaveBillDetailSameInfo retValue = (AtsLeaveBillDetailSameInfo)_getValue(ctx, pk, selector);
  72. svcCtx.setMethodReturnValue(retValue);
  73. }
  74. invokeServiceAfter(svcCtx);
  75. return (AtsLeaveBillDetailSameInfo)svcCtx.getMethodReturnValue();
  76. } catch (BOSException ex) {
  77. throw ex;
  78. } catch (EASBizException ex0) {
  79. throw ex0;
  80. } finally {
  81. super.cleanUpServiceState();
  82. }
  83. }
  84. protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  85. {
  86. return super._getValue(ctx, pk, selector);
  87. }
  88. public AtsLeaveBillDetailSameInfo getAtsLeaveBillDetailSameInfo(Context ctx, String oql) throws BOSException, EASBizException
  89. {
  90. try {
  91. ServiceContext svcCtx = createServiceContext(new MetaDataPK("762d5011-4568-408e-997d-625b56db7512"), new Object[]{ctx, oql});
  92. invokeServiceBefore(svcCtx);
  93. if(!svcCtx.invokeBreak()) {
  94. AtsLeaveBillDetailSameInfo retValue = (AtsLeaveBillDetailSameInfo)_getValue(ctx, oql);
  95. svcCtx.setMethodReturnValue(retValue);
  96. }
  97. invokeServiceAfter(svcCtx);
  98. return (AtsLeaveBillDetailSameInfo)svcCtx.getMethodReturnValue();
  99. } catch (BOSException ex) {
  100. throw ex;
  101. } catch (EASBizException ex0) {
  102. throw ex0;
  103. } finally {
  104. super.cleanUpServiceState();
  105. }
  106. }
  107. protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
  108. {
  109. return super._getValue(ctx, oql);
  110. }
  111. public AtsLeaveBillDetailSameCollection getAtsLeaveBillDetailSameCollection(Context ctx) throws BOSException
  112. {
  113. try {
  114. ServiceContext svcCtx = createServiceContext(new MetaDataPK("7d7590a3-6c4c-418c-a2e4-442375fe572d"), new Object[]{ctx});
  115. invokeServiceBefore(svcCtx);
  116. if(!svcCtx.invokeBreak()) {
  117. AtsLeaveBillDetailSameCollection retValue = (AtsLeaveBillDetailSameCollection)_getCollection(ctx, svcCtx);
  118. svcCtx.setMethodReturnValue(retValue);
  119. }
  120. invokeServiceAfter(svcCtx);
  121. return (AtsLeaveBillDetailSameCollection)svcCtx.getMethodReturnValue();
  122. } catch (BOSException ex) {
  123. throw ex;
  124. } finally {
  125. super.cleanUpServiceState();
  126. }
  127. }
  128. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
  129. {
  130. return super._getCollection(ctx, svcCtx);
  131. }
  132. public AtsLeaveBillDetailSameCollection getAtsLeaveBillDetailSameCollection(Context ctx, EntityViewInfo view) throws BOSException
  133. {
  134. try {
  135. ServiceContext svcCtx = createServiceContext(new MetaDataPK("0971ecb5-f3f5-4ab6-bf25-538aa5bde10a"), new Object[]{ctx, view});
  136. invokeServiceBefore(svcCtx);
  137. if(!svcCtx.invokeBreak()) {
  138. AtsLeaveBillDetailSameCollection retValue = (AtsLeaveBillDetailSameCollection)_getCollection(ctx, svcCtx, view);
  139. svcCtx.setMethodReturnValue(retValue);
  140. }
  141. invokeServiceAfter(svcCtx);
  142. return (AtsLeaveBillDetailSameCollection)svcCtx.getMethodReturnValue();
  143. } catch (BOSException ex) {
  144. throw ex;
  145. } finally {
  146. super.cleanUpServiceState();
  147. }
  148. }
  149. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
  150. {
  151. return super._getCollection(ctx, svcCtx, view);
  152. }
  153. public AtsLeaveBillDetailSameCollection getAtsLeaveBillDetailSameCollection(Context ctx, String oql) throws BOSException
  154. {
  155. try {
  156. ServiceContext svcCtx = createServiceContext(new MetaDataPK("059e154f-e7ee-4287-9608-6192ba2cdc11"), new Object[]{ctx, oql});
  157. invokeServiceBefore(svcCtx);
  158. if(!svcCtx.invokeBreak()) {
  159. AtsLeaveBillDetailSameCollection retValue = (AtsLeaveBillDetailSameCollection)_getCollection(ctx, svcCtx, oql);
  160. svcCtx.setMethodReturnValue(retValue);
  161. }
  162. invokeServiceAfter(svcCtx);
  163. return (AtsLeaveBillDetailSameCollection)svcCtx.getMethodReturnValue();
  164. } catch (BOSException ex) {
  165. throw ex;
  166. } finally {
  167. super.cleanUpServiceState();
  168. }
  169. }
  170. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
  171. {
  172. return super._getCollection(ctx, svcCtx, oql);
  173. }
  174. public DataBaseCollection getDataBaseCollection (Context ctx) throws BOSException
  175. {
  176. return (DataBaseCollection)(getAtsLeaveBillDetailSameCollection(ctx).cast(DataBaseCollection.class));
  177. }
  178. public DataBaseCollection getDataBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  179. {
  180. return (DataBaseCollection)(getAtsLeaveBillDetailSameCollection(ctx, view).cast(DataBaseCollection.class));
  181. }
  182. public DataBaseCollection getDataBaseCollection (Context ctx, String oql) throws BOSException
  183. {
  184. return (DataBaseCollection)(getAtsLeaveBillDetailSameCollection(ctx, oql).cast(DataBaseCollection.class));
  185. }
  186. public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
  187. {
  188. return (ObjectBaseCollection)(getAtsLeaveBillDetailSameCollection(ctx).cast(ObjectBaseCollection.class));
  189. }
  190. public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  191. {
  192. return (ObjectBaseCollection)(getAtsLeaveBillDetailSameCollection(ctx, view).cast(ObjectBaseCollection.class));
  193. }
  194. public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
  195. {
  196. return (ObjectBaseCollection)(getAtsLeaveBillDetailSameCollection(ctx, oql).cast(ObjectBaseCollection.class));
  197. }
  198. public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
  199. {
  200. return (CoreBaseCollection)(getAtsLeaveBillDetailSameCollection(ctx).cast(CoreBaseCollection.class));
  201. }
  202. public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  203. {
  204. return (CoreBaseCollection)(getAtsLeaveBillDetailSameCollection(ctx, view).cast(CoreBaseCollection.class));
  205. }
  206. public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
  207. {
  208. return (CoreBaseCollection)(getAtsLeaveBillDetailSameCollection(ctx, oql).cast(CoreBaseCollection.class));
  209. }
  210. }