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.bos.dao.IObjectPK; import com.kingdee.eas.framework.ObjectBaseCollection; import com.kingdee.eas.custom.bill.salary.SalaryBagInfo; import java.lang.String; import com.kingdee.eas.framework.CoreBillBaseCollection; import com.kingdee.eas.hr.base.HRBillBaseCollection; import com.kingdee.bos.metadata.entity.EntityViewInfo; import com.kingdee.eas.hr.base.app.HRBillBaseControllerBean; import com.kingdee.eas.framework.CoreBaseCollection; import com.kingdee.eas.framework.CoreBaseInfo; import com.kingdee.eas.custom.bill.salary.SalaryBagCollection; import com.kingdee.eas.common.EASBizException; import com.kingdee.bos.metadata.entity.SelectorItemCollection; public abstract class AbstractSalaryBagControllerBean extends HRBillBaseControllerBean implements SalaryBagController { protected AbstractSalaryBagControllerBean() { } protected BOSObjectType getBOSType() { return new BOSObjectType("518DF39C"); } public SalaryBagCollection getSalaryBagCollection(Context ctx) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("6c4a5d09-f9f0-4e8f-9feb-1a1cd66326bc"), new Object[]{ctx}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SalaryBagCollection retValue = (SalaryBagCollection)_getCollection(ctx, svcCtx); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SalaryBagCollection)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 SalaryBagCollection getSalaryBagCollection(Context ctx, EntityViewInfo view) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("61a4489c-fa9b-43b6-afa1-261ca4d0af66"), new Object[]{ctx, view}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SalaryBagCollection retValue = (SalaryBagCollection)_getCollection(ctx, svcCtx, view); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SalaryBagCollection)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 SalaryBagCollection getSalaryBagCollection(Context ctx, String oql) throws BOSException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("39a08734-f364-462a-bbc8-d2a72b25c12a"), new Object[]{ctx, oql}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SalaryBagCollection retValue = (SalaryBagCollection)_getCollection(ctx, svcCtx, oql); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SalaryBagCollection)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 SalaryBagInfo getSalaryBagInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("e2ac4afc-ea07-4ebe-ae92-f38ece0ac244"), new Object[]{ctx, pk}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SalaryBagInfo retValue = (SalaryBagInfo)_getValue(ctx, pk); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SalaryBagInfo)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 SalaryBagInfo getSalaryBagInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("7dfdd5bd-02bf-4597-afb6-2214779d74e2"), new Object[]{ctx, pk, selector}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SalaryBagInfo retValue = (SalaryBagInfo)_getValue(ctx, pk, selector); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SalaryBagInfo)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 SalaryBagInfo getSalaryBagInfo(Context ctx, String oql) throws BOSException, EASBizException { try { ServiceContext svcCtx = createServiceContext(new MetaDataPK("551bbd97-256e-4d6b-a4c7-e7d0b4ee05e6"), new Object[]{ctx, oql}); invokeServiceBefore(svcCtx); if(!svcCtx.invokeBreak()) { SalaryBagInfo retValue = (SalaryBagInfo)_getValue(ctx, oql); svcCtx.setMethodReturnValue(retValue); } invokeServiceAfter(svcCtx); return (SalaryBagInfo)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 HRBillBaseCollection getHRBillBaseCollection (Context ctx) throws BOSException { return (HRBillBaseCollection)(getSalaryBagCollection(ctx).cast(HRBillBaseCollection.class)); } public HRBillBaseCollection getHRBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (HRBillBaseCollection)(getSalaryBagCollection(ctx, view).cast(HRBillBaseCollection.class)); } public HRBillBaseCollection getHRBillBaseCollection (Context ctx, String oql) throws BOSException { return (HRBillBaseCollection)(getSalaryBagCollection(ctx, oql).cast(HRBillBaseCollection.class)); } public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx) throws BOSException { return (CoreBillBaseCollection)(getSalaryBagCollection(ctx).cast(CoreBillBaseCollection.class)); } public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (CoreBillBaseCollection)(getSalaryBagCollection(ctx, view).cast(CoreBillBaseCollection.class)); } public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, String oql) throws BOSException { return (CoreBillBaseCollection)(getSalaryBagCollection(ctx, oql).cast(CoreBillBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException { return (ObjectBaseCollection)(getSalaryBagCollection(ctx).cast(ObjectBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (ObjectBaseCollection)(getSalaryBagCollection(ctx, view).cast(ObjectBaseCollection.class)); } public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException { return (ObjectBaseCollection)(getSalaryBagCollection(ctx, oql).cast(ObjectBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException { return (CoreBaseCollection)(getSalaryBagCollection(ctx).cast(CoreBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException { return (CoreBaseCollection)(getSalaryBagCollection(ctx, view).cast(CoreBaseCollection.class)); } public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException { return (CoreBaseCollection)(getSalaryBagCollection(ctx, oql).cast(CoreBaseCollection.class)); } }