/**
  * 新增前规则
  *
  * @param processor
  */
 private void addBeforeRule(AroundProcesser<AggCostsHVO> processer) {
   IRule<AggCostsHVO> rule = null;
   rule = new nc.bs.pubapp.pub.rule.FillInsertDataRule();
   processer.addBeforeRule(rule);
   rule = new nc.bs.pubapp.pub.rule.CreateBillCodeRule();
   ((nc.bs.pubapp.pub.rule.CreateBillCodeRule) rule).setCbilltype("XSCB");
   ((nc.bs.pubapp.pub.rule.CreateBillCodeRule) rule).setCodeItem("billno");
   ((nc.bs.pubapp.pub.rule.CreateBillCodeRule) rule).setGroupItem("pk_group");
   ((nc.bs.pubapp.pub.rule.CreateBillCodeRule) rule).setOrgItem("pk_org");
   processer.addBeforeRule(rule);
   rule = new nc.bs.pubapp.pub.rule.FieldLengthCheckRule();
   processer.addBeforeRule(rule);
   rule = new nc.bs.pubapp.pub.rule.CheckNotNullRule();
   processer.addBeforeRule(rule);
 }
  /**
   * 删除后业务规则
   *
   * @param processer
   */
  private void addAfterRule(AroundProcesser<AggReceiptAsNdHVO> processer) {
    IRule<AggReceiptAsNdHVO> rule = null;
    rule = new nc.bs.pubapp.pub.rule.ReturnBillCodeRule();
    ((nc.bs.pubapp.pub.rule.ReturnBillCodeRule) rule).setCbilltype("SKF2");
    ((nc.bs.pubapp.pub.rule.ReturnBillCodeRule) rule).setCodeItem("billno");
    ((nc.bs.pubapp.pub.rule.ReturnBillCodeRule) rule).setGroupItem("pk_group");
    ((nc.bs.pubapp.pub.rule.ReturnBillCodeRule) rule).setOrgItem("pk_org");

    processer.addAfterRule(rule);
  }
  /**
   * 新增后规则
   *
   * @param processor
   */
  private void addAfterRule(AroundProcesser<AggCostsHVO> processor) {
    IRule<AggCostsHVO> rule = null;
    rule = new nc.bs.pubapp.pub.rule.BillCodeCheckRule();
    ((nc.bs.pubapp.pub.rule.BillCodeCheckRule) rule).setCbilltype("XSCB");
    ((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");

    processor.addAfterRule(rule);
  }
  private void addBeforeRule(AroundProcesser<AggReceiptAsNdHVO> processer) {
    IRule<AggReceiptAsNdHVO> rule = null;
    rule = new nc.bs.pubapp.pub.rule.BillDeleteStatusCheckRule();

    processer.addBeforeRule(rule);
  }