SyncTranForOAFacade.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package com.kingdee.eas.custom.synctask;
  2. import com.kingdee.bos.framework.ejb.EJBRemoteException;
  3. import com.kingdee.bos.util.BOSObjectType;
  4. import java.rmi.RemoteException;
  5. import com.kingdee.bos.framework.AbstractBizCtrl;
  6. import com.kingdee.bos.orm.template.ORMObject;
  7. import com.kingdee.bos.BOSException;
  8. import com.kingdee.bos.util.*;
  9. import java.lang.String;
  10. import com.kingdee.bos.Context;
  11. import com.kingdee.bos.framework.*;
  12. import com.kingdee.eas.custom.synctask.*;
  13. public class SyncTranForOAFacade extends AbstractBizCtrl implements ISyncTranForOAFacade
  14. {
  15. public SyncTranForOAFacade()
  16. {
  17. super();
  18. registerInterface(ISyncTranForOAFacade.class, this);
  19. }
  20. public SyncTranForOAFacade(Context ctx)
  21. {
  22. super(ctx);
  23. registerInterface(ISyncTranForOAFacade.class, this);
  24. }
  25. public BOSObjectType getType()
  26. {
  27. return new BOSObjectType("07053019");
  28. }
  29. private SyncTranForOAFacadeController getController() throws BOSException
  30. {
  31. return (SyncTranForOAFacadeController)getBizController();
  32. }
  33. /**
  34. *OA部门信息同步-User defined method
  35. *@param billds 组织id
  36. *@param action 操作
  37. */
  38. public void syncOrgUnitToOA(String billds, ActionTypeEnum action) throws BOSException
  39. {
  40. try {
  41. getController().syncOrgUnitToOA(getContext(), billds, action);
  42. }
  43. catch(RemoteException err) {
  44. throw new EJBRemoteException(err);
  45. }
  46. }
  47. /**
  48. *OA岗位信息同步-User defined method
  49. *@param billds 岗位id
  50. *@param action 操作类型
  51. */
  52. public void syncPositionToOA(String billds, ActionTypeEnum action) throws BOSException
  53. {
  54. try {
  55. getController().syncPositionToOA(getContext(), billds, action);
  56. }
  57. catch(RemoteException err) {
  58. throw new EJBRemoteException(err);
  59. }
  60. }
  61. /**
  62. *OA人员信息同步-User defined method
  63. *@param billds 人员id
  64. *@param action 操作类型
  65. */
  66. public void syncPersonToOA(String billds, ActionTypeEnum action) throws BOSException
  67. {
  68. try {
  69. getController().syncPersonToOA(getContext(), billds, action);
  70. }
  71. catch(RemoteException err) {
  72. throw new EJBRemoteException(err);
  73. }
  74. }
  75. }