Ejemplo n.º 1
0
  protected CompareAroundProcesser<AggSalary> getCompareAroundProcesserWithRules(Object userObj) {
    CompareAroundProcesser<AggSalary> processor =
        new CompareAroundProcesser<AggSalary>(SalaryPluginPoint.SEND_APPROVE);
    // TODO 在此处添加审核前后规则
    IRule<AggSalary> rule = null;
    rule = new nc.bs.pubapp.pub.rule.CommitStatusCheckRule();

    processor.addBeforeRule(rule);

    return processor;
  }
Ejemplo n.º 2
0
  @Override
  protected CompareAroundProcesser<AggExpressar> getCompareAroundProcesserWithRules(
      Object userObj) {
    CompareAroundProcesser<AggExpressar> processor =
        new CompareAroundProcesser<AggExpressar>(ExpressARPluginPoint.APPROVE);
    IRule<AggExpressar> rule = null;
    rule = new nc.bs.pubapp.pub.rule.ApproveStatusCheckRule();

    processor.addBeforeRule(rule);

    return processor;
  }
Ejemplo n.º 3
0
 private void addBeforeRule(CompareAroundProcesser<AggExchangeMainHVO> processer) {
   IRule<AggExchangeMainHVO> rule = null;
   rule = new nc.bs.pubapp.pub.rule.FillUpdateDataRule();
   processer.addBeforeRule(rule);
   ICompareRule<AggExchangeMainHVO> ruleCom = new nc.bs.pubapp.pub.rule.UpdateBillCodeRule();
   ((nc.bs.pubapp.pub.rule.UpdateBillCodeRule) ruleCom).setCbilltype("HDZD");
   ((nc.bs.pubapp.pub.rule.UpdateBillCodeRule) ruleCom).setCodeItem("billno");
   ((nc.bs.pubapp.pub.rule.UpdateBillCodeRule) ruleCom).setGroupItem("pk_group");
   ((nc.bs.pubapp.pub.rule.UpdateBillCodeRule) ruleCom).setOrgItem("pk_org");
   processer.addBeforeRule(ruleCom);
   rule = new nc.bs.pubapp.pub.rule.FieldLengthCheckRule();
   processer.addBeforeRule(rule);
 }
Ejemplo n.º 4
0
  @Override
  protected CompareAroundProcesser<AggOperatingincome> getCompareAroundProcesserWithRules(
      Object userObj) {
    CompareAroundProcesser<AggOperatingincome> processor =
        new CompareAroundProcesser<AggOperatingincome>(OperatingincomePluginPoint.UNAPPROVE);
    // TODO 在此处添加前后规则
    IRule<AggOperatingincome> rule = null;
    rule = new nc.bs.pubapp.pub.rule.UnapproveStatusCheckRule();

    processor.addBeforeRule(rule);

    return processor;
  }
Ejemplo n.º 5
0
  private void addAfterRule(CompareAroundProcesser<AggExchangeMainHVO> processer) {
    IRule<AggExchangeMainHVO> rule = null;
    rule = new nc.bs.pubapp.pub.rule.BillCodeCheckRule();
    ((nc.bs.pubapp.pub.rule.BillCodeCheckRule) rule).setCbilltype("HDZD");
    ((nc.bs.pubapp.pub.rule.BillCodeCheckRule) rule).setCodeItem("billno");
    ((nc.bs.pubapp.pub.rule.BillCodeCheckRule) rule).setGroupItem("pk_group");
    ((nc.bs.pubapp.pub.rule.BillCodeCheckRule) rule).setOrgItem("pk_org");

    processer.addAfterRule(rule);
  }
  private void addAfterRule(CompareAroundProcesser<AggVerificationCosts> processer) {
    IRule<AggVerificationCosts> rule = null;
    rule = new nc.bs.pubapp.pub.rule.BillCodeCheckRule();
    ((nc.bs.pubapp.pub.rule.BillCodeCheckRule) rule).setCbilltype("HXYF");
    ((nc.bs.pubapp.pub.rule.BillCodeCheckRule) rule).setCodeItem("billno");
    ((nc.bs.pubapp.pub.rule.BillCodeCheckRule) rule).setGroupItem("pk_group");
    ((nc.bs.pubapp.pub.rule.BillCodeCheckRule) rule).setOrgItem("pk_org");

    processer.addAfterRule(rule);
  }