da2470fde48f5e649d987e5c4efebff09b8933f9.svn-base 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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.bos.dao.IObjectPK;
  22. import com.kingdee.eas.framework.ObjectBaseCollection;
  23. import com.kingdee.eas.custom.bill.salary.SalaryBagInfo;
  24. import java.lang.String;
  25. import com.kingdee.eas.framework.CoreBillBaseCollection;
  26. import com.kingdee.eas.hr.base.HRBillBaseCollection;
  27. import com.kingdee.bos.metadata.entity.EntityViewInfo;
  28. import com.kingdee.eas.hr.base.app.HRBillBaseControllerBean;
  29. import com.kingdee.eas.framework.CoreBaseCollection;
  30. import com.kingdee.eas.framework.CoreBaseInfo;
  31. import com.kingdee.eas.custom.bill.salary.SalaryBagCollection;
  32. import com.kingdee.eas.common.EASBizException;
  33. import com.kingdee.bos.metadata.entity.SelectorItemCollection;
  34. public abstract class AbstractSalaryBagControllerBean extends HRBillBaseControllerBean implements SalaryBagController
  35. {
  36. protected AbstractSalaryBagControllerBean()
  37. {
  38. }
  39. protected BOSObjectType getBOSType()
  40. {
  41. return new BOSObjectType("518DF39C");
  42. }
  43. public SalaryBagCollection getSalaryBagCollection(Context ctx) throws BOSException
  44. {
  45. try {
  46. ServiceContext svcCtx = createServiceContext(new MetaDataPK("6c4a5d09-f9f0-4e8f-9feb-1a1cd66326bc"), new Object[]{ctx});
  47. invokeServiceBefore(svcCtx);
  48. if(!svcCtx.invokeBreak()) {
  49. SalaryBagCollection retValue = (SalaryBagCollection)_getCollection(ctx, svcCtx);
  50. svcCtx.setMethodReturnValue(retValue);
  51. }
  52. invokeServiceAfter(svcCtx);
  53. return (SalaryBagCollection)svcCtx.getMethodReturnValue();
  54. } catch (BOSException ex) {
  55. throw ex;
  56. } finally {
  57. super.cleanUpServiceState();
  58. }
  59. }
  60. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
  61. {
  62. return super._getCollection(ctx, svcCtx);
  63. }
  64. public SalaryBagCollection getSalaryBagCollection(Context ctx, EntityViewInfo view) throws BOSException
  65. {
  66. try {
  67. ServiceContext svcCtx = createServiceContext(new MetaDataPK("61a4489c-fa9b-43b6-afa1-261ca4d0af66"), new Object[]{ctx, view});
  68. invokeServiceBefore(svcCtx);
  69. if(!svcCtx.invokeBreak()) {
  70. SalaryBagCollection retValue = (SalaryBagCollection)_getCollection(ctx, svcCtx, view);
  71. svcCtx.setMethodReturnValue(retValue);
  72. }
  73. invokeServiceAfter(svcCtx);
  74. return (SalaryBagCollection)svcCtx.getMethodReturnValue();
  75. } catch (BOSException ex) {
  76. throw ex;
  77. } finally {
  78. super.cleanUpServiceState();
  79. }
  80. }
  81. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
  82. {
  83. return super._getCollection(ctx, svcCtx, view);
  84. }
  85. public SalaryBagCollection getSalaryBagCollection(Context ctx, String oql) throws BOSException
  86. {
  87. try {
  88. ServiceContext svcCtx = createServiceContext(new MetaDataPK("39a08734-f364-462a-bbc8-d2a72b25c12a"), new Object[]{ctx, oql});
  89. invokeServiceBefore(svcCtx);
  90. if(!svcCtx.invokeBreak()) {
  91. SalaryBagCollection retValue = (SalaryBagCollection)_getCollection(ctx, svcCtx, oql);
  92. svcCtx.setMethodReturnValue(retValue);
  93. }
  94. invokeServiceAfter(svcCtx);
  95. return (SalaryBagCollection)svcCtx.getMethodReturnValue();
  96. } catch (BOSException ex) {
  97. throw ex;
  98. } finally {
  99. super.cleanUpServiceState();
  100. }
  101. }
  102. protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
  103. {
  104. return super._getCollection(ctx, svcCtx, oql);
  105. }
  106. public SalaryBagInfo getSalaryBagInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  107. {
  108. try {
  109. ServiceContext svcCtx = createServiceContext(new MetaDataPK("e2ac4afc-ea07-4ebe-ae92-f38ece0ac244"), new Object[]{ctx, pk});
  110. invokeServiceBefore(svcCtx);
  111. if(!svcCtx.invokeBreak()) {
  112. SalaryBagInfo retValue = (SalaryBagInfo)_getValue(ctx, pk);
  113. svcCtx.setMethodReturnValue(retValue);
  114. }
  115. invokeServiceAfter(svcCtx);
  116. return (SalaryBagInfo)svcCtx.getMethodReturnValue();
  117. } catch (BOSException ex) {
  118. throw ex;
  119. } catch (EASBizException ex0) {
  120. throw ex0;
  121. } finally {
  122. super.cleanUpServiceState();
  123. }
  124. }
  125. protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
  126. {
  127. return super._getValue(ctx, pk);
  128. }
  129. public SalaryBagInfo getSalaryBagInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  130. {
  131. try {
  132. ServiceContext svcCtx = createServiceContext(new MetaDataPK("7dfdd5bd-02bf-4597-afb6-2214779d74e2"), new Object[]{ctx, pk, selector});
  133. invokeServiceBefore(svcCtx);
  134. if(!svcCtx.invokeBreak()) {
  135. SalaryBagInfo retValue = (SalaryBagInfo)_getValue(ctx, pk, selector);
  136. svcCtx.setMethodReturnValue(retValue);
  137. }
  138. invokeServiceAfter(svcCtx);
  139. return (SalaryBagInfo)svcCtx.getMethodReturnValue();
  140. } catch (BOSException ex) {
  141. throw ex;
  142. } catch (EASBizException ex0) {
  143. throw ex0;
  144. } finally {
  145. super.cleanUpServiceState();
  146. }
  147. }
  148. protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
  149. {
  150. return super._getValue(ctx, pk, selector);
  151. }
  152. public SalaryBagInfo getSalaryBagInfo(Context ctx, String oql) throws BOSException, EASBizException
  153. {
  154. try {
  155. ServiceContext svcCtx = createServiceContext(new MetaDataPK("551bbd97-256e-4d6b-a4c7-e7d0b4ee05e6"), new Object[]{ctx, oql});
  156. invokeServiceBefore(svcCtx);
  157. if(!svcCtx.invokeBreak()) {
  158. SalaryBagInfo retValue = (SalaryBagInfo)_getValue(ctx, oql);
  159. svcCtx.setMethodReturnValue(retValue);
  160. }
  161. invokeServiceAfter(svcCtx);
  162. return (SalaryBagInfo)svcCtx.getMethodReturnValue();
  163. } catch (BOSException ex) {
  164. throw ex;
  165. } catch (EASBizException ex0) {
  166. throw ex0;
  167. } finally {
  168. super.cleanUpServiceState();
  169. }
  170. }
  171. protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
  172. {
  173. return super._getValue(ctx, oql);
  174. }
  175. protected com.kingdee.eas.basedata.org.OrgUnitInfo getMainBizOrgUnit(Context ctx,com.kingdee.eas.framework.CoreBillBaseInfo model) {
  176. Object obj = model.get("adminOrgUnit");
  177. if (obj != null && obj instanceof com.kingdee.eas.basedata.org.OrgUnitInfo)
  178. return (com.kingdee.eas.basedata.org.OrgUnitInfo)obj;
  179. else
  180. return null;
  181. }
  182. public HRBillBaseCollection getHRBillBaseCollection (Context ctx) throws BOSException
  183. {
  184. return (HRBillBaseCollection)(getSalaryBagCollection(ctx).cast(HRBillBaseCollection.class));
  185. }
  186. public HRBillBaseCollection getHRBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  187. {
  188. return (HRBillBaseCollection)(getSalaryBagCollection(ctx, view).cast(HRBillBaseCollection.class));
  189. }
  190. public HRBillBaseCollection getHRBillBaseCollection (Context ctx, String oql) throws BOSException
  191. {
  192. return (HRBillBaseCollection)(getSalaryBagCollection(ctx, oql).cast(HRBillBaseCollection.class));
  193. }
  194. public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx) throws BOSException
  195. {
  196. return (CoreBillBaseCollection)(getSalaryBagCollection(ctx).cast(CoreBillBaseCollection.class));
  197. }
  198. public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  199. {
  200. return (CoreBillBaseCollection)(getSalaryBagCollection(ctx, view).cast(CoreBillBaseCollection.class));
  201. }
  202. public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, String oql) throws BOSException
  203. {
  204. return (CoreBillBaseCollection)(getSalaryBagCollection(ctx, oql).cast(CoreBillBaseCollection.class));
  205. }
  206. public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
  207. {
  208. return (ObjectBaseCollection)(getSalaryBagCollection(ctx).cast(ObjectBaseCollection.class));
  209. }
  210. public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  211. {
  212. return (ObjectBaseCollection)(getSalaryBagCollection(ctx, view).cast(ObjectBaseCollection.class));
  213. }
  214. public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
  215. {
  216. return (ObjectBaseCollection)(getSalaryBagCollection(ctx, oql).cast(ObjectBaseCollection.class));
  217. }
  218. public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
  219. {
  220. return (CoreBaseCollection)(getSalaryBagCollection(ctx).cast(CoreBaseCollection.class));
  221. }
  222. public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
  223. {
  224. return (CoreBaseCollection)(getSalaryBagCollection(ctx, view).cast(CoreBaseCollection.class));
  225. }
  226. public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
  227. {
  228. return (CoreBaseCollection)(getSalaryBagCollection(ctx, oql).cast(CoreBaseCollection.class));
  229. }
  230. }