706c1c43e1b141ec427914fd576c6c58e632e03e.svn-base 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.kingdee.eas.custom.ats.app;
  2. import org.apache.log4j.Logger;
  3. import com.kingdee.bos.*;
  4. import com.kingdee.eas.hr.ats.AtsLeaveBillCollection;
  5. import com.kingdee.eas.hr.ats.AtsLeaveBillFactory;
  6. import com.kingdee.eas.custom.ats.util.AtsLeaveBillEasOperationUtil;
  7. /**
  8. * 修复请假单中审批中 未审批的数据拆分明细
  9. * @author issuser
  10. *
  11. */
  12. public class AtsLeaveDetailSameFacadeControllerBean extends AbstractAtsLeaveDetailSameFacadeControllerBean
  13. {
  14. private static Logger logger =
  15. Logger.getLogger("com.kingdee.eas.custom.ats.app.AtsLeaveDetailSameFacadeControllerBean");
  16. @Override
  17. public void repairData(Context ctx) throws BOSException {
  18. // TODO 自动生成的方法存根
  19. repairLeaveBill(ctx);
  20. super.repairData(ctx);
  21. }
  22. /**
  23. * 修复请假单拆分数据
  24. * @param ctx
  25. * @return
  26. * @throws BOSException
  27. */
  28. private void repairLeaveBill(Context ctx) throws BOSException {
  29. AtsLeaveBillCollection atsLeaveBillCollection = AtsLeaveBillFactory.getLocalInstance(ctx).getAtsLeaveBillCollection(" where billState in ('1','2')");
  30. if(atsLeaveBillCollection !=null && atsLeaveBillCollection.size()>0) {
  31. }
  32. for (int i = 0; i < atsLeaveBillCollection.size(); i++) {
  33. AtsLeaveBillEasOperationUtil.saveInfo(ctx, atsLeaveBillCollection.get(i));
  34. }
  35. }
  36. }