package com.kingdee.eas.custom.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.eas.hr.base.app.HRBillBaseEntryControllerBean; import com.kingdee.bos.dao.IObjectPK; import com.kingdee.bos.metadata.entity.EntityViewInfo; import com.kingdee.eas.hr.base.HRBillBaseEntryCollection; import java.lang.String; import com.kingdee.eas.framework.CoreBaseInfo; import com.kingdee.eas.framework.CoreBaseCollection; import com.kingdee.eas.custom.PlatPreResEntryCollection; import com.kingdee.eas.common.EASBizException; import com.kingdee.eas.custom.PlatPreResEntryInfo; import com.kingdee.bos.metadata.entity.SelectorItemCollection; public abstract class AbstractPlatPreResEntryControllerBean extends HRBillBaseEntryControllerBean implements PlatPreResEntryController { protected AbstractPlatPreResEntryControllerBean() { } protected BOSObjectType getBOSType() { return new BOSObjectType("818913E1"); } public PlatPreResEntryInfo getPlatPreResEntryInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("c517013f-13bb-43a3-8d9e-e8c404b2641a"), new Object[]{ctx, pk}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResEntryInfo retValue = (PlatPreResEntryInfo)_getValue(ctx, pk); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResEntryInfo)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 PlatPreResEntryInfo getPlatPreResEntryInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("034fd478-30aa-4690-88c0-0a57b5519d0a"), new Object[]{ctx, pk, selector}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResEntryInfo retValue = (PlatPreResEntryInfo)_getValue(ctx, pk, selector); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResEntryInfo)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 PlatPreResEntryInfo getPlatPreResEntryInfo(Context ctx, String oql) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("d7ea3d08-0e59-4dc2-8df7-62ce97f8a403"), new Object[]{ctx, oql}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResEntryInfo retValue = (PlatPreResEntryInfo)_getValue(ctx, oql); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResEntryInfo)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 PlatPreResEntryCollection getPlatPreResEntryCollection(Context ctx) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("bba13f58-446c-460d-a3d7-19f42dd19e09"), new Object[]{ctx}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResEntryCollection retValue = (PlatPreResEntryCollection)_getCollection(ctx, svcCtx); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResEntryCollection)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 PlatPreResEntryCollection getPlatPreResEntryCollection(Context ctx, EntityViewInfo view) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("170b67dc-7d2f-4da9-9003-a7d59069aac3"), new Object[]{ctx, view}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResEntryCollection retValue = (PlatPreResEntryCollection)_getCollection(ctx, svcCtx, view); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResEntryCollection)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 PlatPreResEntryCollection getPlatPreResEntryCollection(Context ctx, String oql) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("172246ad-0ad8-44e1-b0f0-88715031ab35"), new Object[]{ctx, oql}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { PlatPreResEntryCollection retValue = (PlatPreResEntryCollection)_getCollection(ctx, svcCtx, oql); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (PlatPreResEntryCollection)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 HRBillBaseEntryCollection getHRBillBaseEntryCollection (Context ctx) throws BOSException { return (HRBillBaseEntryCollection)(getPlatPreResEntryCollection(ctx).cast(HRBillBaseEntryCollection.class)); } public HRBillBaseEntryCollection getHRBillBaseEntryCollection (Context ctx, EntityViewInfo view) throws BOSException { return (HRBillBaseEntryCollection)(getPlatPreResEntryCollection(ctx, view).cast(HRBillBaseEntryCollection.class)); } public HRBillBaseEntryCollection getHRBillBaseEntryCollection (Context ctx, String oql) throws BOSException { return (HRBillBaseEntryCollection)(getPlatPreResEntryCollection(ctx, oql).cast(HRBillBaseEntryCollection.class)); } public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException { return (CoreBillEntryBaseCollection)(getPlatPreResEntryCollection(ctx).cast(CoreBillEntryBaseCollection.class)); } public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (CoreBillEntryBaseCollection)(getPlatPreResEntryCollection(ctx, view).cast(CoreBillEntryBaseCollection.class)); } public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException { return (CoreBillEntryBaseCollection)(getPlatPreResEntryCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException { return (CoreBaseCollection)(getPlatPreResEntryCollection(ctx).cast(CoreBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (CoreBaseCollection)(getPlatPreResEntryCollection(ctx, view).cast(CoreBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException { return (CoreBaseCollection)(getPlatPreResEntryCollection(ctx, oql).cast(CoreBaseCollection.class)); } }