123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- package com.kingdee.eas.custom.bill.salary.app;
- import javax.ejb.*;
- import java.rmi.RemoteException;
- import com.kingdee.bos.*;
- import com.kingdee.bos.util.BOSObjectType;
- import com.kingdee.bos.metadata.IMetaDataPK;
- import com.kingdee.bos.metadata.rule.RuleExecutor;
- import com.kingdee.bos.metadata.MetaDataPK;
- //import com.kingdee.bos.metadata.entity.EntityViewInfo;
- import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
- import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
- //import com.kingdee.bos.dao.IObjectPK;
- import com.kingdee.bos.dao.IObjectValue;
- import com.kingdee.bos.dao.IObjectCollection;
- import com.kingdee.bos.service.ServiceContext;
- import com.kingdee.bos.service.IServiceContext;
- import com.kingdee.eas.framework.Result;
- import com.kingdee.eas.framework.LineResult;
- import com.kingdee.eas.framework.exception.EASMultiException;
- import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
- import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
- import com.kingdee.bos.dao.IObjectPK;
- import com.kingdee.bos.metadata.entity.EntityViewInfo;
- import com.kingdee.eas.framework.app.CoreBillEntryBaseControllerBean;
- import java.lang.String;
- import com.kingdee.eas.framework.CoreBaseInfo;
- import com.kingdee.eas.framework.CoreBaseCollection;
- import com.kingdee.eas.common.EASBizException;
- import com.kingdee.eas.custom.bill.salary.PayPacketEntryCollection;
- import com.kingdee.bos.metadata.entity.SelectorItemCollection;
- import com.kingdee.eas.custom.bill.salary.PayPacketEntryInfo;
- public abstract class AbstractPayPacketEntryControllerBean extends CoreBillEntryBaseControllerBean implements PayPacketEntryController
- {
- protected AbstractPayPacketEntryControllerBean()
- {
- }
- protected BOSObjectType getBOSType()
- {
- return new BOSObjectType("C7B84004");
- }
- public PayPacketEntryInfo getPayPacketEntryInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("45f09004-5cce-45a3-8f15-bb18db90bf3f"), new Object[]{ctx, pk});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketEntryInfo retValue = (PayPacketEntryInfo)_getValue(ctx, pk);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketEntryInfo)svcCtx.getMethodReturnValue();
- } catch (BOSException ex) {
- throw ex;
- } catch (EASBizException ex0) {
- throw ex0;
- } finally {
- super.cleanUpServiceState();
- }
- }
- protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
- {
- return super._getValue(ctx, pk);
- }
- public PayPacketEntryInfo getPayPacketEntryInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("1aa6cf35-cd9f-45ae-9947-dc5d3ece2a9c"), new Object[]{ctx, pk, selector});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketEntryInfo retValue = (PayPacketEntryInfo)_getValue(ctx, pk, selector);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketEntryInfo)svcCtx.getMethodReturnValue();
- } catch (BOSException ex) {
- throw ex;
- } catch (EASBizException ex0) {
- throw ex0;
- } finally {
- super.cleanUpServiceState();
- }
- }
- protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
- {
- return super._getValue(ctx, pk, selector);
- }
- public PayPacketEntryInfo getPayPacketEntryInfo(Context ctx, String oql) throws BOSException, EASBizException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("23dce180-e364-445d-8de8-50085c71d50b"), new Object[]{ctx, oql});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketEntryInfo retValue = (PayPacketEntryInfo)_getValue(ctx, oql);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketEntryInfo)svcCtx.getMethodReturnValue();
- } catch (BOSException ex) {
- throw ex;
- } catch (EASBizException ex0) {
- throw ex0;
- } finally {
- super.cleanUpServiceState();
- }
- }
- protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
- {
- return super._getValue(ctx, oql);
- }
- public PayPacketEntryCollection getPayPacketEntryCollection(Context ctx) throws BOSException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("585bfe2a-b690-4b16-a4d0-fc355cbf4ac9"), new Object[]{ctx});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketEntryCollection retValue = (PayPacketEntryCollection)_getCollection(ctx, svcCtx);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketEntryCollection)svcCtx.getMethodReturnValue();
- } catch (BOSException ex) {
- throw ex;
- } finally {
- super.cleanUpServiceState();
- }
- }
- protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
- {
- return super._getCollection(ctx, svcCtx);
- }
- public PayPacketEntryCollection getPayPacketEntryCollection(Context ctx, EntityViewInfo view) throws BOSException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("376b5fad-3e27-410e-847c-e95d3a29930a"), new Object[]{ctx, view});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketEntryCollection retValue = (PayPacketEntryCollection)_getCollection(ctx, svcCtx, view);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketEntryCollection)svcCtx.getMethodReturnValue();
- } catch (BOSException ex) {
- throw ex;
- } finally {
- super.cleanUpServiceState();
- }
- }
- protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
- {
- return super._getCollection(ctx, svcCtx, view);
- }
- public PayPacketEntryCollection getPayPacketEntryCollection(Context ctx, String oql) throws BOSException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("035f0153-7fd3-4a15-b8a7-73f49169502c"), new Object[]{ctx, oql});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketEntryCollection retValue = (PayPacketEntryCollection)_getCollection(ctx, svcCtx, oql);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketEntryCollection)svcCtx.getMethodReturnValue();
- } catch (BOSException ex) {
- throw ex;
- } finally {
- super.cleanUpServiceState();
- }
- }
- protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
- {
- return super._getCollection(ctx, svcCtx, oql);
- }
- public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
- {
- return (CoreBillEntryBaseCollection)(getPayPacketEntryCollection(ctx).cast(CoreBillEntryBaseCollection.class));
- }
- public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
- {
- return (CoreBillEntryBaseCollection)(getPayPacketEntryCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
- }
- public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
- {
- return (CoreBillEntryBaseCollection)(getPayPacketEntryCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
- }
- public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
- {
- return (CoreBaseCollection)(getPayPacketEntryCollection(ctx).cast(CoreBaseCollection.class));
- }
- public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
- {
- return (CoreBaseCollection)(getPayPacketEntryCollection(ctx, view).cast(CoreBaseCollection.class));
- }
- public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
- {
- return (CoreBaseCollection)(getPayPacketEntryCollection(ctx, oql).cast(CoreBaseCollection.class));
- }
- }
|