123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- 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.custom.bill.salary.PayPacketCollection;
- import com.kingdee.eas.framework.app.CoreBillBaseControllerBean;
- import com.kingdee.eas.framework.ObjectBaseCollection;
- import com.kingdee.eas.custom.bill.salary.PayPacketInfo;
- import com.kingdee.bos.dao.IObjectPK;
- import com.kingdee.bos.metadata.entity.EntityViewInfo;
- import java.lang.String;
- import com.kingdee.eas.framework.CoreBaseInfo;
- import com.kingdee.eas.framework.CoreBaseCollection;
- import com.kingdee.eas.framework.CoreBillBaseCollection;
- import com.kingdee.eas.common.EASBizException;
- import com.kingdee.bos.metadata.entity.SelectorItemCollection;
- public abstract class AbstractPayPacketControllerBean extends CoreBillBaseControllerBean implements PayPacketController
- {
- protected AbstractPayPacketControllerBean()
- {
- }
- protected BOSObjectType getBOSType()
- {
- return new BOSObjectType("2676510E");
- }
- public PayPacketCollection getPayPacketCollection(Context ctx) throws BOSException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("3db09957-de7f-4586-9d87-1e4c4c64e433"), new Object[]{ctx});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketCollection retValue = (PayPacketCollection)_getCollection(ctx, svcCtx);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketCollection)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 PayPacketCollection getPayPacketCollection(Context ctx, EntityViewInfo view) throws BOSException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("370e87c1-bd2f-4030-9ea3-2cd1a87537b0"), new Object[]{ctx, view});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketCollection retValue = (PayPacketCollection)_getCollection(ctx, svcCtx, view);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketCollection)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 PayPacketCollection getPayPacketCollection(Context ctx, String oql) throws BOSException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("b4273ff4-7886-4513-afa7-6ce7fe9f85bc"), new Object[]{ctx, oql});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketCollection retValue = (PayPacketCollection)_getCollection(ctx, svcCtx, oql);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketCollection)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 PayPacketInfo getPayPacketInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("8997a712-46cc-4704-9f09-ceff360a9baa"), new Object[]{ctx, pk});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketInfo retValue = (PayPacketInfo)_getValue(ctx, pk);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketInfo)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 PayPacketInfo getPayPacketInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("b02c099d-c070-4617-a6a9-6901860364c5"), new Object[]{ctx, pk, selector});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketInfo retValue = (PayPacketInfo)_getValue(ctx, pk, selector);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketInfo)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 PayPacketInfo getPayPacketInfo(Context ctx, String oql) throws BOSException, EASBizException
- {
- try {
- ServiceContext svcCtx = createServiceContext(new MetaDataPK("4f4914db-f075-4acd-a356-b953c73ac0d9"), new Object[]{ctx, oql});
- invokeServiceBefore(svcCtx);
- if(!svcCtx.invokeBreak()) {
- PayPacketInfo retValue = (PayPacketInfo)_getValue(ctx, oql);
- svcCtx.setMethodReturnValue(retValue);
- }
- invokeServiceAfter(svcCtx);
-
- return (PayPacketInfo)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);
- }
- protected com.kingdee.eas.basedata.org.OrgUnitInfo getMainBizOrgUnit(Context ctx,com.kingdee.eas.framework.CoreBillBaseInfo model) {
- Object obj = model.get("adminOrgUnit");
- if (obj != null && obj instanceof com.kingdee.eas.basedata.org.OrgUnitInfo)
- return (com.kingdee.eas.basedata.org.OrgUnitInfo)obj;
- else
- return null;
- }
- public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx) throws BOSException
- {
- return (CoreBillBaseCollection)(getPayPacketCollection(ctx).cast(CoreBillBaseCollection.class));
- }
- public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
- {
- return (CoreBillBaseCollection)(getPayPacketCollection(ctx, view).cast(CoreBillBaseCollection.class));
- }
- public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, String oql) throws BOSException
- {
- return (CoreBillBaseCollection)(getPayPacketCollection(ctx, oql).cast(CoreBillBaseCollection.class));
- }
- public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
- {
- return (ObjectBaseCollection)(getPayPacketCollection(ctx).cast(ObjectBaseCollection.class));
- }
- public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
- {
- return (ObjectBaseCollection)(getPayPacketCollection(ctx, view).cast(ObjectBaseCollection.class));
- }
- public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
- {
- return (ObjectBaseCollection)(getPayPacketCollection(ctx, oql).cast(ObjectBaseCollection.class));
- }
- public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
- {
- return (CoreBaseCollection)(getPayPacketCollection(ctx).cast(CoreBaseCollection.class));
- }
- public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
- {
- return (CoreBaseCollection)(getPayPacketCollection(ctx, view).cast(CoreBaseCollection.class));
- }
- public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
- {
- return (CoreBaseCollection)(getPayPacketCollection(ctx, oql).cast(CoreBaseCollection.class));
- }
- }
|