Examples of Dno


Examples of net.sf.chellow.billing.Dno

      HhStartDate to) throws HttpException {
    MpanRaw raw = new MpanRaw(mpanStr);
    MpanCore core = MpanCore.getMpanCore(raw.getCore());
    List<SupplyGeneration> supplyGenerations = core.getSupply()
        .getGenerations(from, to);
    Dno dno = core.getDno();
    return (List<Mpan>) Hiber
        .session()
        .createQuery(
            "from Mpan mpan where mpan.core = :core and mpan.supplyGeneration in (:supplyGenerations) and mpan.supplyGeneration.pc = :pc and mpan.mtc = :mtc and mpan.llfc = :llfc")
        .setEntity("core", core).setEntity("pc",
            Pc.getPc(raw.getPcCode())).setEntity("mtc",
            Mtc.getMtc(dno, raw.getMtcCode())).setEntity("llfc",
            dno.getLlfc(raw.getLlfcCode())).setParameterList(
            "supplyGenerations", supplyGenerations).list();
  }
View Full Code Here

Examples of net.sf.chellow.billing.Dno

    String dnoCode = core.substring(0, 2);
    return Dno.getDno(dnoCode);
  }
 
  static public Mtc mtc(String mpan) throws HttpException {
    Dno dno = dno(mpan);
    return Mtc.getMtc(dno, new MpanRaw(mpan).getMtcCode());
  }
View Full Code Here

Examples of net.sf.chellow.billing.Dno

    }
    MpanCore mpanCore = MpanCore.findMpanCore(core);
    if (mpanCore == null) {
      mpanCore = supplyGeneration.getSupply().addMpanCore(core);
    }
    Dno dno = mpanCore.getDno();
    Llfc llfc = dno.getLlfc(llfcCode);

    if (!mpanCore.getSupply().equals(supplyGeneration.getSupply())) {
      throw new UserException(
          "This MPAN core is already attached to another supply.");
    }
View Full Code Here

Examples of net.sf.chellow.billing.Dno

          .equals(exportMpan.getLlfc().getVoltageLevel())) {
        throw new UserException(
            "The voltage level indicated by the Line Loss Factor must be the same for both the MPANs.");
      }
    }
    Dno dno = getDno();
    setMtc(Mtc.getMtc(dno, mtcCode));
    String meterTypeCode = mtc.getMeterType().getCode();
    String copCode = cop.getCode();

    if ((meterTypeCode.equals("C5") && !(copCode.equals("1")
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.