78963fa0847df49978499ca856aaf3a8427d572b.svn-base 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. package com.kingdee.eas.custom.facade.leave;
  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 com.kingdee.eas.common.EASBizException;
  10. import com.kingdee.eas.custom.facade.leave.*;
  11. import java.lang.String;
  12. import com.kingdee.bos.Context;
  13. import com.kingdee.bos.framework.*;
  14. public class LeaveAllowanceFacade extends AbstractBizCtrl implements ILeaveAllowanceFacade
  15. {
  16. public LeaveAllowanceFacade()
  17. {
  18. super();
  19. registerInterface(ILeaveAllowanceFacade.class, this);
  20. }
  21. public LeaveAllowanceFacade(Context ctx)
  22. {
  23. super(ctx);
  24. registerInterface(ILeaveAllowanceFacade.class, this);
  25. }
  26. public BOSObjectType getType()
  27. {
  28. return new BOSObjectType("1FBBCAEE");
  29. }
  30. private LeaveAllowanceFacadeController getController() throws BOSException
  31. {
  32. return (LeaveAllowanceFacadeController)getBizController();
  33. }
  34. /**
  35. *生成年假结转额度-User defined method
  36. *@param year 年度
  37. *@param personNum 人员编码
  38. */
  39. public void createAnnualLeave(int year, String personNum) throws BOSException
  40. {
  41. try {
  42. getController().createAnnualLeave(getContext(), year, personNum);
  43. }
  44. catch(RemoteException err) {
  45. throw new EJBRemoteException(err);
  46. }
  47. }
  48. /**
  49. *生成护理假额度-User defined method
  50. *@param year 年度
  51. *@param personNum 人员编码
  52. */
  53. public void creareNursingLeave(int year, String personNum) throws BOSException
  54. {
  55. try {
  56. getController().creareNursingLeave(getContext(), year, personNum);
  57. }
  58. catch(RemoteException err) {
  59. throw new EJBRemoteException(err);
  60. }
  61. }
  62. /**
  63. *生成育儿假额度-User defined method
  64. *@param year 年度
  65. *@param personNum 人员编码
  66. */
  67. public void creareParentalLeave(int year, String personNum) throws BOSException
  68. {
  69. try {
  70. getController().creareParentalLeave(getContext(), year, personNum);
  71. }
  72. catch(RemoteException err) {
  73. throw new EJBRemoteException(err);
  74. }
  75. }
  76. /**
  77. *年假结转-User defined method
  78. *@param year 年度
  79. *@param isExecute 是否执行
  80. *@param personNum 人员编码
  81. */
  82. public void carryForwardLeave(int year, boolean isExecute, String personNum) throws BOSException, EASBizException
  83. {
  84. try {
  85. getController().carryForwardLeave(getContext(), year, isExecute, personNum);
  86. }
  87. catch(RemoteException err) {
  88. throw new EJBRemoteException(err);
  89. }
  90. }
  91. /**
  92. *设置司龄-User defined method
  93. */
  94. public void setSeniority() throws BOSException, EASBizException
  95. {
  96. try {
  97. getController().setSeniority(getContext());
  98. }
  99. catch(RemoteException err) {
  100. throw new EJBRemoteException(err);
  101. }
  102. }
  103. }