Browse Source

更新e签宝元数据

heyuan 1 month ago
parent
commit
4c5846363d

+ 0 - 35
src/com/kingdee/eas/custom/esign/AbstractESignTemplateESignFileTempInfo.java

@@ -1,35 +0,0 @@
-package com.kingdee.eas.custom.esign;
-
-import java.io.Serializable;
-import com.kingdee.bos.dao.AbstractObjectValue;
-import java.util.Locale;
-import com.kingdee.util.TypeConversionUtils;
-import com.kingdee.bos.util.BOSObjectType;
-
-
-public class AbstractESignTemplateESignFileTempInfo extends com.kingdee.eas.framework.CoreBillEntryBaseInfo implements Serializable 
-{
-    public AbstractESignTemplateESignFileTempInfo()
-    {
-        this("id");
-    }
-    protected AbstractESignTemplateESignFileTempInfo(String pkField)
-    {
-        super(pkField);
-    }
-    /**
-     * Object: µç×ÓÇ©ÎļþÄ£°å 's null property 
-     */
-    public com.kingdee.eas.custom.esign.ESignTemplateInfo getParent()
-    {
-        return (com.kingdee.eas.custom.esign.ESignTemplateInfo)get("parent");
-    }
-    public void setParent(com.kingdee.eas.custom.esign.ESignTemplateInfo item)
-    {
-        put("parent", item);
-    }
-    public BOSObjectType getBOSType()
-    {
-        return new BOSObjectType("401C5027");
-    }
-}

+ 0 - 338
src/com/kingdee/eas/custom/esign/ESignTemplateESignFileTemp.java

@@ -1,338 +0,0 @@
-package com.kingdee.eas.custom.esign;
-
-import com.kingdee.bos.framework.ejb.EJBRemoteException;
-import com.kingdee.bos.util.BOSObjectType;
-import java.rmi.RemoteException;
-import com.kingdee.bos.framework.AbstractBizCtrl;
-import com.kingdee.bos.orm.template.ORMObject;
-
-import com.kingdee.bos.util.*;
-import com.kingdee.eas.framework.ICoreBillEntryBase;
-import com.kingdee.eas.framework.CoreBaseInfo;
-import com.kingdee.eas.framework.CoreBillEntryBase;
-import com.kingdee.bos.Context;
-import com.kingdee.bos.dao.IObjectPK;
-import com.kingdee.bos.BOSException;
-import com.kingdee.bos.metadata.entity.FilterInfo;
-import com.kingdee.bos.metadata.entity.SelectorItemCollection;
-import com.kingdee.bos.metadata.entity.SorterItemCollection;
-import com.kingdee.eas.common.EASBizException;
-import com.kingdee.eas.framework.CoreBaseCollection;
-import com.kingdee.eas.custom.esign.app.*;
-import com.kingdee.bos.metadata.entity.EntityViewInfo;
-import java.lang.String;
-import com.kingdee.bos.framework.*;
-
-public class ESignTemplateESignFileTemp extends CoreBillEntryBase implements IESignTemplateESignFileTemp
-{
-    public ESignTemplateESignFileTemp()
-    {
-        super();
-        registerInterface(IESignTemplateESignFileTemp.class, this);
-    }
-    public ESignTemplateESignFileTemp(Context ctx)
-    {
-        super(ctx);
-        registerInterface(IESignTemplateESignFileTemp.class, this);
-    }
-    public BOSObjectType getType()
-    {
-        return new BOSObjectType("401C5027");
-    }
-    private ESignTemplateESignFileTempController getController() throws BOSException
-    {
-        return (ESignTemplateESignFileTempController)getBizController();
-    }
-    /**
-     *exists-System defined method
-     *@param pk pk
-     *@return
-     */
-    public boolean exists(IObjectPK pk) throws BOSException, EASBizException
-    {
-        try {
-            return getController().exists(getContext(), pk);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *exists-System defined method
-     *@param filter filter
-     *@return
-     */
-    public boolean exists(FilterInfo filter) throws BOSException, EASBizException
-    {
-        try {
-            return getController().exists(getContext(), filter);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *exists-System defined method
-     *@param oql oql
-     *@return
-     */
-    public boolean exists(String oql) throws BOSException, EASBizException
-    {
-        try {
-            return getController().exists(getContext(), oql);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *getValue-System defined method
-     *@param pk pk
-     *@return
-     */
-    public ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(IObjectPK pk) throws BOSException, EASBizException
-    {
-        try {
-            return getController().getESignTemplateESignFileTempInfo(getContext(), pk);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *getValue-System defined method
-     *@param pk pk
-     *@param selector selector
-     *@return
-     */
-    public ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
-    {
-        try {
-            return getController().getESignTemplateESignFileTempInfo(getContext(), pk, selector);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *getValue-System defined method
-     *@param oql oql
-     *@return
-     */
-    public ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(String oql) throws BOSException, EASBizException
-    {
-        try {
-            return getController().getESignTemplateESignFileTempInfo(getContext(), oql);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *addnew-System defined method
-     *@param model model
-     *@return
-     */
-    public IObjectPK addnew(ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException
-    {
-        try {
-            return getController().addnew(getContext(), model);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *addnew-System defined method
-     *@param pk pk
-     *@param model model
-     */
-    public void addnew(IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException
-    {
-        try {
-            getController().addnew(getContext(), pk, model);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *update-System defined method
-     *@param pk pk
-     *@param model model
-     */
-    public void update(IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException
-    {
-        try {
-            getController().update(getContext(), pk, model);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *updatePartial-System defined method
-     *@param model model
-     *@param selector selector
-     */
-    public void updatePartial(ESignTemplateESignFileTempInfo model, SelectorItemCollection selector) throws BOSException, EASBizException
-    {
-        try {
-            getController().updatePartial(getContext(), model, selector);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *updateBigObject-System defined method
-     *@param pk pk
-     *@param model model
-     */
-    public void updateBigObject(IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException
-    {
-        try {
-            getController().updateBigObject(getContext(), pk, model);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *delete-System defined method
-     *@param pk pk
-     */
-    public void delete(IObjectPK pk) throws BOSException, EASBizException
-    {
-        try {
-            getController().delete(getContext(), pk);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *getPKList-System defined method
-     *@return
-     */
-    public IObjectPK[] getPKList() throws BOSException, EASBizException
-    {
-        try {
-            return getController().getPKList(getContext());
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *getPKList-System defined method
-     *@param oql oql
-     *@return
-     */
-    public IObjectPK[] getPKList(String oql) throws BOSException, EASBizException
-    {
-        try {
-            return getController().getPKList(getContext(), oql);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *getPKList-System defined method
-     *@param filter filter
-     *@param sorter sorter
-     *@return
-     */
-    public IObjectPK[] getPKList(FilterInfo filter, SorterItemCollection sorter) throws BOSException, EASBizException
-    {
-        try {
-            return getController().getPKList(getContext(), filter, sorter);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *getCollection-System defined method
-     *@return
-     */
-    public ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection() throws BOSException
-    {
-        try {
-            return getController().getESignTemplateESignFileTempCollection(getContext());
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *getCollection-System defined method
-     *@param view view
-     *@return
-     */
-    public ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection(EntityViewInfo view) throws BOSException
-    {
-        try {
-            return getController().getESignTemplateESignFileTempCollection(getContext(), view);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *getCollection-System defined method
-     *@param oql oql
-     *@return
-     */
-    public ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection(String oql) throws BOSException
-    {
-        try {
-            return getController().getESignTemplateESignFileTempCollection(getContext(), oql);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *delete-System defined method
-     *@param filter filter
-     *@return
-     */
-    public IObjectPK[] delete(FilterInfo filter) throws BOSException, EASBizException
-    {
-        try {
-            return getController().delete(getContext(), filter);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *delete-System defined method
-     *@param oql oql
-     *@return
-     */
-    public IObjectPK[] delete(String oql) throws BOSException, EASBizException
-    {
-        try {
-            return getController().delete(getContext(), oql);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-    /**
-     *delete-System defined method
-     *@param arrayPK arrayPK
-     */
-    public void delete(IObjectPK[] arrayPK) throws BOSException, EASBizException
-    {
-        try {
-            getController().delete(getContext(), arrayPK);
-        }
-        catch(RemoteException err) {
-            throw new EJBRemoteException(err);
-        }
-    }
-}

+ 0 - 48
src/com/kingdee/eas/custom/esign/ESignTemplateESignFileTempCollection.java

@@ -1,48 +0,0 @@
-package com.kingdee.eas.custom.esign;
-
-import com.kingdee.bos.dao.AbstractObjectCollection;
-import com.kingdee.bos.dao.IObjectPK;
-
-public class ESignTemplateESignFileTempCollection extends AbstractObjectCollection 
-{
-    public ESignTemplateESignFileTempCollection()
-    {
-        super(ESignTemplateESignFileTempInfo.class);
-    }
-    public boolean add(ESignTemplateESignFileTempInfo item)
-    {
-        return addObject(item);
-    }
-    public boolean addCollection(ESignTemplateESignFileTempCollection item)
-    {
-        return addObjectCollection(item);
-    }
-    public boolean remove(ESignTemplateESignFileTempInfo item)
-    {
-        return removeObject(item);
-    }
-    public ESignTemplateESignFileTempInfo get(int index)
-    {
-        return(ESignTemplateESignFileTempInfo)getObject(index);
-    }
-    public ESignTemplateESignFileTempInfo get(Object key)
-    {
-        return(ESignTemplateESignFileTempInfo)getObject(key);
-    }
-    public void set(int index, ESignTemplateESignFileTempInfo item)
-    {
-        setObject(index, item);
-    }
-    public boolean contains(ESignTemplateESignFileTempInfo item)
-    {
-        return containsObject(item);
-    }
-    public boolean contains(Object key)
-    {
-        return containsKey(key);
-    }
-    public int indexOf(ESignTemplateESignFileTempInfo item)
-    {
-        return super.indexOf(item);
-    }
-}

+ 0 - 30
src/com/kingdee/eas/custom/esign/ESignTemplateESignFileTempFactory.java

@@ -1,30 +0,0 @@
-package com.kingdee.eas.custom.esign;
-
-import com.kingdee.bos.BOSException;
-import com.kingdee.bos.BOSObjectFactory;
-import com.kingdee.bos.util.BOSObjectType;
-import com.kingdee.bos.Context;
-
-public class ESignTemplateESignFileTempFactory
-{
-    private ESignTemplateESignFileTempFactory()
-    {
-    }
-    public static com.kingdee.eas.custom.esign.IESignTemplateESignFileTemp getRemoteInstance() throws BOSException
-    {
-        return (com.kingdee.eas.custom.esign.IESignTemplateESignFileTemp)BOSObjectFactory.createRemoteBOSObject(new BOSObjectType("401C5027") ,com.kingdee.eas.custom.esign.IESignTemplateESignFileTemp.class);
-    }
-    
-    public static com.kingdee.eas.custom.esign.IESignTemplateESignFileTemp getRemoteInstanceWithObjectContext(Context objectCtx) throws BOSException
-    {
-        return (com.kingdee.eas.custom.esign.IESignTemplateESignFileTemp)BOSObjectFactory.createRemoteBOSObjectWithObjectContext(new BOSObjectType("401C5027") ,com.kingdee.eas.custom.esign.IESignTemplateESignFileTemp.class, objectCtx);
-    }
-    public static com.kingdee.eas.custom.esign.IESignTemplateESignFileTemp getLocalInstance(Context ctx) throws BOSException
-    {
-        return (com.kingdee.eas.custom.esign.IESignTemplateESignFileTemp)BOSObjectFactory.createBOSObject(ctx, new BOSObjectType("401C5027"));
-    }
-    public static com.kingdee.eas.custom.esign.IESignTemplateESignFileTemp getLocalInstance(String sessionID) throws BOSException
-    {
-        return (com.kingdee.eas.custom.esign.IESignTemplateESignFileTemp)BOSObjectFactory.createBOSObject(sessionID, new BOSObjectType("401C5027"));
-    }
-}

+ 0 - 15
src/com/kingdee/eas/custom/esign/ESignTemplateESignFileTempInfo.java

@@ -1,15 +0,0 @@
-package com.kingdee.eas.custom.esign;
-
-import java.io.Serializable;
-
-public class ESignTemplateESignFileTempInfo extends AbstractESignTemplateESignFileTempInfo implements Serializable 
-{
-    public ESignTemplateESignFileTempInfo()
-    {
-        super();
-    }
-    protected ESignTemplateESignFileTempInfo(String pkField)
-    {
-        super(pkField);
-    }
-}

+ 0 - 47
src/com/kingdee/eas/custom/esign/IESignTemplateESignFileTemp.java

@@ -1,47 +0,0 @@
-package com.kingdee.eas.custom.esign;
-
-import com.kingdee.bos.BOSException;
-//import com.kingdee.bos.metadata.*;
-import com.kingdee.bos.framework.*;
-import com.kingdee.bos.util.*;
-import com.kingdee.bos.Context;
-
-import com.kingdee.bos.util.*;
-import com.kingdee.eas.framework.ICoreBillEntryBase;
-import com.kingdee.eas.framework.CoreBaseInfo;
-import com.kingdee.bos.Context;
-import com.kingdee.bos.dao.IObjectPK;
-import com.kingdee.bos.BOSException;
-import com.kingdee.bos.metadata.entity.FilterInfo;
-import com.kingdee.bos.metadata.entity.SelectorItemCollection;
-import com.kingdee.bos.metadata.entity.SorterItemCollection;
-import com.kingdee.eas.common.EASBizException;
-import com.kingdee.eas.framework.CoreBaseCollection;
-import com.kingdee.bos.metadata.entity.EntityViewInfo;
-import java.lang.String;
-import com.kingdee.bos.framework.*;
-
-public interface IESignTemplateESignFileTemp extends ICoreBillEntryBase
-{
-    public boolean exists(IObjectPK pk) throws BOSException, EASBizException;
-    public boolean exists(FilterInfo filter) throws BOSException, EASBizException;
-    public boolean exists(String oql) throws BOSException, EASBizException;
-    public ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(IObjectPK pk) throws BOSException, EASBizException;
-    public ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException;
-    public ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(String oql) throws BOSException, EASBizException;
-    public IObjectPK addnew(ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException;
-    public void addnew(IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException;
-    public void update(IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException;
-    public void updatePartial(ESignTemplateESignFileTempInfo model, SelectorItemCollection selector) throws BOSException, EASBizException;
-    public void updateBigObject(IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException;
-    public void delete(IObjectPK pk) throws BOSException, EASBizException;
-    public IObjectPK[] getPKList() throws BOSException, EASBizException;
-    public IObjectPK[] getPKList(String oql) throws BOSException, EASBizException;
-    public IObjectPK[] getPKList(FilterInfo filter, SorterItemCollection sorter) throws BOSException, EASBizException;
-    public ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection() throws BOSException;
-    public ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection(EntityViewInfo view) throws BOSException;
-    public ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection(String oql) throws BOSException;
-    public IObjectPK[] delete(FilterInfo filter) throws BOSException, EASBizException;
-    public IObjectPK[] delete(String oql) throws BOSException, EASBizException;
-    public void delete(IObjectPK[] arrayPK) throws BOSException, EASBizException;
-}

+ 0 - 590
src/com/kingdee/eas/custom/esign/app/AbstractESignTemplateESignFileTempControllerBean.java

@@ -1,590 +0,0 @@
-package com.kingdee.eas.custom.esign.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.CoreBaseInfo;
-import com.kingdee.eas.custom.esign.ESignTemplateESignFileTempCollection;
-import com.kingdee.eas.framework.app.CoreBillEntryBaseControllerBean;
-import com.kingdee.bos.dao.IObjectPK;
-import com.kingdee.bos.metadata.entity.FilterInfo;
-import com.kingdee.bos.metadata.entity.SelectorItemCollection;
-import com.kingdee.bos.metadata.entity.SorterItemCollection;
-import com.kingdee.eas.common.EASBizException;
-import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
-import com.kingdee.eas.framework.CoreBaseCollection;
-import com.kingdee.bos.metadata.entity.EntityViewInfo;
-import java.lang.String;
-import com.kingdee.eas.custom.esign.ESignTemplateESignFileTempInfo;
-
-
-
-public abstract class AbstractESignTemplateESignFileTempControllerBean extends CoreBillEntryBaseControllerBean implements ESignTemplateESignFileTempController
-{
-    protected AbstractESignTemplateESignFileTempControllerBean()
-    {
-    }
-
-    protected BOSObjectType getBOSType()
-    {
-        return new BOSObjectType("401C5027");
-    }
-
-    public boolean exists(Context ctx, IObjectPK pk) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("d469e974-caf1-44c0-a5ac-9377c4e46aef"), new Object[]{ctx, pk});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            boolean retValue = (boolean)_exists(ctx, pk);
-            svcCtx.setMethodReturnValue(new Boolean(retValue));
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return ((Boolean)svcCtx.getMethodReturnValue()).booleanValue();
-        } catch (BOSException ex) {
-            throw ex;
-        } catch (EASBizException ex0) {
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected boolean _exists(Context ctx, IObjectPK pk) throws BOSException, EASBizException
-    {
-        return super._exists(ctx, pk);
-    }
-
-    public boolean exists(Context ctx, FilterInfo filter) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("440e4f6b-b5b4-4131-8476-0ebed287aab0"), new Object[]{ctx, filter});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            boolean retValue = (boolean)_exists(ctx, filter);
-            svcCtx.setMethodReturnValue(new Boolean(retValue));
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return ((Boolean)svcCtx.getMethodReturnValue()).booleanValue();
-        } catch (BOSException ex) {
-            throw ex;
-        } catch (EASBizException ex0) {
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected boolean _exists(Context ctx, FilterInfo filter) throws BOSException, EASBizException
-    {
-        return super._exists(ctx, filter);
-    }
-
-    public boolean exists(Context ctx, String oql) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b0d1c5f3-b73b-4948-9fee-cccaca9ed8ad"), new Object[]{ctx, oql});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            boolean retValue = (boolean)_exists(ctx, oql);
-            svcCtx.setMethodReturnValue(new Boolean(retValue));
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return ((Boolean)svcCtx.getMethodReturnValue()).booleanValue();
-        } catch (BOSException ex) {
-            throw ex;
-        } catch (EASBizException ex0) {
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected boolean _exists(Context ctx, String oql) throws BOSException, EASBizException
-    {
-        return super._exists(ctx, oql);
-    }
-
-    public ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ce65b005-6579-4500-9fba-0648af404d56"), new Object[]{ctx, pk});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            ESignTemplateESignFileTempInfo retValue = (ESignTemplateESignFileTempInfo)_getValue(ctx, pk);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (ESignTemplateESignFileTempInfo)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 ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("2b17ff23-93ee-484f-b50c-4a0d3f70e02c"), new Object[]{ctx, pk, selector});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            ESignTemplateESignFileTempInfo retValue = (ESignTemplateESignFileTempInfo)_getValue(ctx, pk, selector);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (ESignTemplateESignFileTempInfo)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 ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(Context ctx, String oql) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("929ea966-698c-44e2-aa3e-e3d85cce8692"), new Object[]{ctx, oql});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            ESignTemplateESignFileTempInfo retValue = (ESignTemplateESignFileTempInfo)_getValue(ctx, oql);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (ESignTemplateESignFileTempInfo)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 IObjectPK addnew(Context ctx, ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("3fab0bd3-5777-4427-8a06-7c02139fd076"), new Object[]{ctx, model});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            IObjectPK retValue = (IObjectPK)_addnew(ctx, model);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (IObjectPK)svcCtx.getMethodReturnValue();
-        } catch (BOSException ex) {
-            this.setRollbackOnly();
-            throw ex;
-        } catch (EASBizException ex0) {
-            this.setRollbackOnly();
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected IObjectPK _addnew(Context ctx, IObjectValue model) throws BOSException, EASBizException
-    {
-        return super._addnew(ctx, model);
-    }
-
-    public void addnew(Context ctx, IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("9c554620-5857-4b8b-be52-302de5f387b8"), new Object[]{ctx, pk, model});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()){
-            _addnew(ctx, pk, model);
-            }
-            invokeServiceAfter(svcCtx);
-        } catch (BOSException ex) {
-            this.setRollbackOnly();
-            throw ex;
-        } catch (EASBizException ex0) {
-            this.setRollbackOnly();
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected void _addnew(Context ctx, IObjectPK pk, IObjectValue model) throws BOSException, EASBizException
-    {
-        super._addnew(ctx, pk, model);
-    }
-
-    public void update(Context ctx, IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("1f390131-faf0-4c0f-bc0d-1dcf09c0a952"), new Object[]{ctx, pk, model});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()){
-            _update(ctx, pk, model);
-            }
-            invokeServiceAfter(svcCtx);
-        } catch (BOSException ex) {
-            this.setRollbackOnly();
-            throw ex;
-        } catch (EASBizException ex0) {
-            this.setRollbackOnly();
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected void _update(Context ctx, IObjectPK pk, IObjectValue model) throws BOSException, EASBizException
-    {
-        super._update(ctx, pk, model);
-    }
-
-    public void updatePartial(Context ctx, ESignTemplateESignFileTempInfo model, SelectorItemCollection selector) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("62016e98-7cc4-42fc-a03c-b51d2ccd9861"), new Object[]{ctx, model, selector});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()){
-            _updatePartial(ctx, model, selector);
-            }
-            invokeServiceAfter(svcCtx);
-        } catch (BOSException ex) {
-            this.setRollbackOnly();
-            throw ex;
-        } catch (EASBizException ex0) {
-            this.setRollbackOnly();
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected void _updatePartial(Context ctx, IObjectValue model, SelectorItemCollection selector) throws BOSException, EASBizException
-    {
-        super._updatePartial(ctx, model, selector);
-    }
-
-    public void updateBigObject(Context ctx, IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("feb4d1b0-6795-44d9-8885-5ce88a0a8642"), new Object[]{ctx, pk, model});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()){
-            _updateBigObject(ctx, pk, model);
-            }
-            invokeServiceAfter(svcCtx);
-        } catch (BOSException ex) {
-            this.setRollbackOnly();
-            throw ex;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected void _updateBigObject(Context ctx, IObjectPK pk, IObjectValue model) throws BOSException
-    {
-        innerUpdateBigObject(ctx, pk, model);
-    }
-
-    public void delete(Context ctx, IObjectPK pk) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e861071f-e07b-412d-8007-314958201040"), new Object[]{ctx, pk});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()){
-            _delete(ctx, pk);
-            }
-            invokeServiceAfter(svcCtx);
-        } catch (BOSException ex) {
-            this.setRollbackOnly();
-            throw ex;
-        } catch (EASBizException ex0) {
-            this.setRollbackOnly();
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected void _delete(Context ctx, IObjectPK pk) throws BOSException, EASBizException
-    {
-        super._delete(ctx, pk);
-    }
-
-    public IObjectPK[] getPKList(Context ctx) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("5b71da11-bad0-4aba-8c82-f40d15d87d8d"), new Object[]{ctx});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            IObjectPK[] retValue = (IObjectPK[])_getPKList(ctx);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (IObjectPK[])svcCtx.getMethodReturnValue();
-        } catch (BOSException ex) {
-            throw ex;
-        } catch (EASBizException ex0) {
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected IObjectPK[] _getPKList(Context ctx) throws BOSException, EASBizException
-    {
-        return super._getPKList(ctx);
-    }
-
-    public IObjectPK[] getPKList(Context ctx, String oql) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("da1e4f85-b247-4c55-9a01-8f013023cde8"), new Object[]{ctx, oql});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            IObjectPK[] retValue = (IObjectPK[])_getPKList(ctx, oql);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (IObjectPK[])svcCtx.getMethodReturnValue();
-        } catch (BOSException ex) {
-            throw ex;
-        } catch (EASBizException ex0) {
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected IObjectPK[] _getPKList(Context ctx, String oql) throws BOSException, EASBizException
-    {
-        return super._getPKList(ctx, oql);
-    }
-
-    public IObjectPK[] getPKList(Context ctx, FilterInfo filter, SorterItemCollection sorter) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("9be2d5c1-5378-4f21-869b-2cf0649bcd2d"), new Object[]{ctx, filter, sorter});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            IObjectPK[] retValue = (IObjectPK[])_getPKList(ctx, filter, sorter);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (IObjectPK[])svcCtx.getMethodReturnValue();
-        } catch (BOSException ex) {
-            throw ex;
-        } catch (EASBizException ex0) {
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected IObjectPK[] _getPKList(Context ctx, FilterInfo filter, SorterItemCollection sorter) throws BOSException, EASBizException
-    {
-        return super._getPKList(ctx, filter, sorter);
-    }
-
-    public ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection(Context ctx) throws BOSException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7be8ace7-ae3d-4beb-bbb8-d023313fac7d"), new Object[]{ctx});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            ESignTemplateESignFileTempCollection retValue = (ESignTemplateESignFileTempCollection)_getCollection(ctx, svcCtx);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (ESignTemplateESignFileTempCollection)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 ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection(Context ctx, EntityViewInfo view) throws BOSException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b1c878d5-1b00-440d-86cd-7785d8d355c7"), new Object[]{ctx, view});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            ESignTemplateESignFileTempCollection retValue = (ESignTemplateESignFileTempCollection)_getCollection(ctx, svcCtx, view);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (ESignTemplateESignFileTempCollection)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 ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection(Context ctx, String oql) throws BOSException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("2be3a3f3-a682-402e-90f9-203e4957a37f"), new Object[]{ctx, oql});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            ESignTemplateESignFileTempCollection retValue = (ESignTemplateESignFileTempCollection)_getCollection(ctx, svcCtx, oql);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (ESignTemplateESignFileTempCollection)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 IObjectPK[] delete(Context ctx, FilterInfo filter) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("0a381cb4-bec4-4ec8-81f5-30be41049547"), new Object[]{ctx, filter});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            IObjectPK[] retValue = (IObjectPK[])_delete(ctx, filter);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (IObjectPK[])svcCtx.getMethodReturnValue();
-        } catch (BOSException ex) {
-            this.setRollbackOnly();
-            throw ex;
-        } catch (EASBizException ex0) {
-            this.setRollbackOnly();
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected IObjectPK[] _delete(Context ctx, FilterInfo filter) throws BOSException, EASBizException
-    {
-        return super._delete(ctx, filter);
-    }
-
-    public IObjectPK[] delete(Context ctx, String oql) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("dae93e51-ca62-47e2-8f97-e0332ea24e06"), new Object[]{ctx, oql});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()) {
-            IObjectPK[] retValue = (IObjectPK[])_delete(ctx, oql);
-            svcCtx.setMethodReturnValue(retValue);
-            }
-            invokeServiceAfter(svcCtx);
-        
-          return (IObjectPK[])svcCtx.getMethodReturnValue();
-        } catch (BOSException ex) {
-            this.setRollbackOnly();
-            throw ex;
-        } catch (EASBizException ex0) {
-            this.setRollbackOnly();
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected IObjectPK[] _delete(Context ctx, String oql) throws BOSException, EASBizException
-    {
-        return super._delete(ctx, oql);
-    }
-
-    public void delete(Context ctx, IObjectPK[] arrayPK) throws BOSException, EASBizException
-    {
-        try {
-            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f7c23cca-166b-4c32-bfca-bc4c2da6d887"), new Object[]{ctx, arrayPK});
-            invokeServiceBefore(svcCtx);
-            if(!svcCtx.invokeBreak()){
-            _delete(ctx, arrayPK);
-            }
-            invokeServiceAfter(svcCtx);
-        } catch (BOSException ex) {
-            this.setRollbackOnly();
-            throw ex;
-        } catch (EASBizException ex0) {
-            this.setRollbackOnly();
-            throw ex0;
-        } finally {
-            super.cleanUpServiceState();
-        }
-    }
-    protected void _delete(Context ctx, IObjectPK[] arrayPK) throws BOSException, EASBizException
-    {
-        super._delete(ctx, arrayPK);
-    }
-
-    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
-    {
-    	return (CoreBillEntryBaseCollection)(getESignTemplateESignFileTempCollection(ctx).cast(CoreBillEntryBaseCollection.class));
-    }
-    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
-    {
-    	return (CoreBillEntryBaseCollection)(getESignTemplateESignFileTempCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
-    }
-    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
-    {
-    	return (CoreBillEntryBaseCollection)(getESignTemplateESignFileTempCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
-    }
-    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
-    {
-    	return (CoreBaseCollection)(getESignTemplateESignFileTempCollection(ctx).cast(CoreBaseCollection.class));
-    }
-    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
-    {
-    	return (CoreBaseCollection)(getESignTemplateESignFileTempCollection(ctx, view).cast(CoreBaseCollection.class));
-    }
-    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
-    {
-    	return (CoreBaseCollection)(getESignTemplateESignFileTempCollection(ctx, oql).cast(CoreBaseCollection.class));
-    }
-}

+ 34 - 0
src/com/kingdee/eas/custom/esign/app/AttachmentStoragePathConfigControllerBean.java

@@ -1,5 +1,8 @@
 package com.kingdee.eas.custom.esign.app;
 
+import com.kingdee.bos.dao.ormapping.CanNotDeleteException;
+import com.kingdee.eas.custom.esign.ESignTemplateInfo;
+import com.kingdee.shr.base.syssetting.BaseItemStateEnum;
 import org.apache.log4j.Logger;
 
 import javax.ejb.*;
@@ -27,6 +30,7 @@ import com.kingdee.eas.framework.CoreBaseInfo;
 import com.kingdee.bos.metadata.entity.EntityViewInfo;
 
 import java.lang.String;
+import java.sql.Connection;
 
 import com.kingdee.eas.framework.app.DataBaseControllerBean;
 import com.kingdee.eas.custom.esign.AttachmentStoragePathConfigInfo;
@@ -39,4 +43,34 @@ import com.kingdee.eas.framework.ObjectBaseCollection;
  */
 public class AttachmentStoragePathConfigControllerBean extends AbstractAttachmentStoragePathConfigControllerBean {
     private static Logger logger = Logger.getLogger(AttachmentStoragePathConfigControllerBean.class);
+
+
+    /**
+     * 检查附件存储路径配置信息是否可以删除
+     *
+     * @param ctx 上下文对象
+     * @param pk 对象主键
+     * @param cn 数据库连接
+     * @throws CanNotDeleteException 当数据处于启用状态或发生业务异常时抛出
+     */
+    @Override
+    protected void _canDelete(Context ctx, IObjectPK pk, Connection cn) throws CanNotDeleteException {
+        super._canDelete(ctx, pk, cn);
+        try {
+            // 获取附件存储路径配置信息并检查状态
+            AttachmentStoragePathConfigInfo info = getAttachmentStoragePathConfigInfo(ctx, pk);
+            BaseItemStateEnum state = info.getState();
+            if (BaseItemStateEnum.ENABLE.equals(state)) {
+                throw new CanNotDeleteException("启用的数据,不允许删除!");
+            }
+        } catch (BOSException e) {
+            logger.error(e.getMessage(), e);
+            throw new CanNotDeleteException(e);
+        } catch (EASBizException e) {
+            logger.error(e.getMessage(), e);
+            throw new CanNotDeleteException(e);
+        }
+    }
+
+
 }

+ 36 - 27
src/com/kingdee/eas/custom/esign/app/ESignTemplateControllerBean.java

@@ -1,37 +1,46 @@
 package com.kingdee.eas.custom.esign.app;
 
+import com.kingdee.bos.dao.ormapping.CanNotDeleteException;
+import com.kingdee.shr.base.syssetting.BaseItemStateEnum;
 import org.apache.log4j.Logger;
+
 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.bos.*;
 import com.kingdee.bos.dao.IObjectPK;
-import com.kingdee.bos.metadata.entity.SelectorItemCollection;
 import com.kingdee.eas.common.EASBizException;
 import com.kingdee.eas.custom.esign.ESignTemplateInfo;
-import com.kingdee.eas.custom.esign.ESignTemplateCollection;
-import com.kingdee.eas.framework.CoreBaseCollection;
-import com.kingdee.eas.framework.CoreBaseInfo;
-import com.kingdee.bos.metadata.entity.EntityViewInfo;
-import java.lang.String;
-import com.kingdee.eas.framework.app.DataBaseControllerBean;
-import com.kingdee.eas.framework.DataBaseCollection;
-import com.kingdee.eas.framework.ObjectBaseCollection;
 
-public class ESignTemplateControllerBean extends AbstractESignTemplateControllerBean
-{
-    private static Logger logger =
-        Logger.getLogger("com.kingdee.eas.custom.esign.app.ESignTemplateControllerBean");
+import java.sql.Connection;
+
+public class ESignTemplateControllerBean extends AbstractESignTemplateControllerBean {
+    private static Logger logger = Logger.getLogger(ESignTemplateControllerBean.class);
+
+    /**
+     * 检查电子签名模板是否可以删除
+     *
+     * @param ctx 业务上下文对象
+     * @param pk 电子签名模板主键
+     * @param cn 数据库连接对象
+     * @throws CanNotDeleteException 当数据处于启用状态时抛出此异常,表示不允许删除
+     */
+    @Override
+    protected void _canDelete(Context ctx, IObjectPK pk, Connection cn) throws CanNotDeleteException {
+        super._canDelete(ctx, pk, cn);
+        try {
+            // 获取电子签名模板信息并检查状态
+            ESignTemplateInfo info = getESignTemplateInfo(ctx, pk);
+            BaseItemStateEnum state = info.getState();
+            if (BaseItemStateEnum.ENABLE.equals(state)) {
+                throw new CanNotDeleteException("启用的数据,不允许删除!");
+            }
+        } catch (BOSException e) {
+            logger.error(e.getMessage(), e);
+            throw new CanNotDeleteException(e);
+        } catch (EASBizException e) {
+            logger.error(e.getMessage(), e);
+            throw new CanNotDeleteException(e);
+        }
+    }
+
 }

+ 0 - 52
src/com/kingdee/eas/custom/esign/app/ESignTemplateESignFileTempController.java

@@ -1,52 +0,0 @@
-package com.kingdee.eas.custom.esign.app;
-
-import com.kingdee.bos.BOSException;
-//import com.kingdee.bos.metadata.*;
-import com.kingdee.bos.framework.*;
-import com.kingdee.bos.util.*;
-import com.kingdee.bos.Context;
-
-import com.kingdee.bos.util.*;
-import com.kingdee.eas.framework.app.CoreBillEntryBaseController;
-import com.kingdee.eas.framework.CoreBaseInfo;
-import com.kingdee.eas.custom.esign.ESignTemplateESignFileTempCollection;
-import com.kingdee.bos.Context;
-import com.kingdee.bos.dao.IObjectPK;
-import com.kingdee.bos.BOSException;
-import com.kingdee.bos.metadata.entity.FilterInfo;
-import com.kingdee.bos.metadata.entity.SelectorItemCollection;
-import com.kingdee.bos.metadata.entity.SorterItemCollection;
-import com.kingdee.eas.common.EASBizException;
-import com.kingdee.eas.framework.CoreBaseCollection;
-import com.kingdee.bos.metadata.entity.EntityViewInfo;
-import java.lang.String;
-import com.kingdee.bos.framework.*;
-import com.kingdee.eas.custom.esign.ESignTemplateESignFileTempInfo;
-
-import java.rmi.RemoteException;
-import com.kingdee.bos.framework.ejb.BizController;
-
-public interface ESignTemplateESignFileTempController extends CoreBillEntryBaseController
-{
-    public boolean exists(Context ctx, IObjectPK pk) throws BOSException, EASBizException, RemoteException;
-    public boolean exists(Context ctx, FilterInfo filter) throws BOSException, EASBizException, RemoteException;
-    public boolean exists(Context ctx, String oql) throws BOSException, EASBizException, RemoteException;
-    public ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException, RemoteException;
-    public ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException, RemoteException;
-    public ESignTemplateESignFileTempInfo getESignTemplateESignFileTempInfo(Context ctx, String oql) throws BOSException, EASBizException, RemoteException;
-    public IObjectPK addnew(Context ctx, ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException, RemoteException;
-    public void addnew(Context ctx, IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException, RemoteException;
-    public void update(Context ctx, IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException, EASBizException, RemoteException;
-    public void updatePartial(Context ctx, ESignTemplateESignFileTempInfo model, SelectorItemCollection selector) throws BOSException, EASBizException, RemoteException;
-    public void updateBigObject(Context ctx, IObjectPK pk, ESignTemplateESignFileTempInfo model) throws BOSException, RemoteException;
-    public void delete(Context ctx, IObjectPK pk) throws BOSException, EASBizException, RemoteException;
-    public IObjectPK[] getPKList(Context ctx) throws BOSException, EASBizException, RemoteException;
-    public IObjectPK[] getPKList(Context ctx, String oql) throws BOSException, EASBizException, RemoteException;
-    public IObjectPK[] getPKList(Context ctx, FilterInfo filter, SorterItemCollection sorter) throws BOSException, EASBizException, RemoteException;
-    public ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection(Context ctx) throws BOSException, RemoteException;
-    public ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection(Context ctx, EntityViewInfo view) throws BOSException, RemoteException;
-    public ESignTemplateESignFileTempCollection getESignTemplateESignFileTempCollection(Context ctx, String oql) throws BOSException, RemoteException;
-    public IObjectPK[] delete(Context ctx, FilterInfo filter) throws BOSException, EASBizException, RemoteException;
-    public IObjectPK[] delete(Context ctx, String oql) throws BOSException, EASBizException, RemoteException;
-    public void delete(Context ctx, IObjectPK[] arrayPK) throws BOSException, EASBizException, RemoteException;
-}

+ 0 - 38
src/com/kingdee/eas/custom/esign/app/ESignTemplateESignFileTempControllerBean.java

@@ -1,38 +0,0 @@
-package com.kingdee.eas.custom.esign.app;
-
-import org.apache.log4j.Logger;
-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.CoreBaseInfo;
-import com.kingdee.eas.custom.esign.ESignTemplateESignFileTempCollection;
-import com.kingdee.eas.framework.app.CoreBillEntryBaseControllerBean;
-import com.kingdee.bos.dao.IObjectPK;
-import com.kingdee.bos.metadata.entity.FilterInfo;
-import com.kingdee.bos.metadata.entity.SelectorItemCollection;
-import com.kingdee.bos.metadata.entity.SorterItemCollection;
-import com.kingdee.eas.common.EASBizException;
-import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
-import com.kingdee.eas.framework.CoreBaseCollection;
-import com.kingdee.bos.metadata.entity.EntityViewInfo;
-import java.lang.String;
-import com.kingdee.eas.custom.esign.ESignTemplateESignFileTempInfo;
-
-public class ESignTemplateESignFileTempControllerBean extends AbstractESignTemplateESignFileTempControllerBean
-{
-    private static Logger logger =
-        Logger.getLogger("com.kingdee.eas.custom.esign.app.ESignTemplateESignFileTempControllerBean");
-}

+ 34 - 0
src/com/kingdee/eas/custom/esign/app/ESignTemplateFileEntryControllerBean.java

@@ -2,8 +2,11 @@ package com.kingdee.eas.custom.esign.app;
 
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
+import com.kingdee.bos.dao.IObjectPK;
+import com.kingdee.bos.dao.ormapping.CanNotDeleteException;
 import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
 import com.kingdee.eas.custom.esign.*;
+import com.kingdee.shr.base.syssetting.BaseItemStateEnum;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.log4j.Logger;
 
@@ -14,6 +17,7 @@ import com.kingdee.bos.metadata.entity.SelectorItemCollection;
 import com.kingdee.eas.common.EASBizException;
 
 import java.lang.String;
+import java.sql.Connection;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -96,4 +100,34 @@ public class ESignTemplateFileEntryControllerBean extends AbstractESignTemplateF
         //3.同步模板附件
         //syncTemplateAttachments(ctx, billId);
     }
+
+
+
+    /**
+     * 检查电子签名模板文件是否可以删除
+     *
+     * @param ctx 上下文对象
+     * @param pk 对象主键
+     * @param cn 数据库连接
+     * @throws CanNotDeleteException 当数据处于启用状态或发生业务异常时抛出
+     */
+    @Override
+    protected void _canDelete(Context ctx, IObjectPK pk, Connection cn) throws CanNotDeleteException {
+        super._canDelete(ctx, pk, cn);
+        try {
+            // 获取电子签名模板文件信息并检查状态
+            ESignTemplateFileEntryInfo info = getESignTemplateFileEntryInfo(ctx, pk);
+            BaseItemStateEnum state = info.getState();
+            if (BaseItemStateEnum.ENABLE.equals(state)) {
+                throw new CanNotDeleteException("启用的数据,不允许删除!");
+            }
+        } catch (BOSException e) {
+            logger.error(e.getMessage(), e);
+            throw new CanNotDeleteException(e);
+        } catch (EASBizException e) {
+            logger.error(e.getMessage(), e);
+            throw new CanNotDeleteException(e);
+        }
+    }
+
 }