public raReportSection createSectionHeader0() {
   System.out.println("repPonuda2KupTemplate");
   raRPSectionHeader sh = new raRPSectionHeader(this);
   sh.LabelRACUNOTPREMNICA.setDefault(ep.CAPTION, "\nP O N U D A");
   sh.LabelDospijece.setDefault(ep.CAPTION, "Opcija dana");
   sh.TextSgetDDOSP.setDefault(ep.CONTROL_SOURCE, "DDOSP");
   sh.TextNAZPAR.setDefault(ep.CONTROL_SOURCE, "NAZKUPCAL");
   sh.TextADR.setDefault(ep.CONTROL_SOURCE, "ADRKUPCA");
   sh.TextMJ.setDefault(ep.CONTROL_SOURCE, "PbrMjestoKupca");
   //    sh.TextSgetDATDOSP.setDefault(ep.LEFT, sh.TextBRNARIZ.getDefault(ep.LEFT));
   //    sh.TextSgetDATDOSP.setDefault(ep.ALIGN, "");
   sh.LabelR1.setDefault(ep.VISIBLE, raElixirPropertyValues.NO);
   return sh;
 }
Exemple #2
0
  public raReportSection createSectionHeader0() {
    //    sh.LabelRACUNOTPREMNICA.setDefault(ep.CAPTION, "\nR A \u010C U N");
    //    sh.defaultAltererSect().getView(sh.LabelMjesto, sh.TextNAZFRA).
    //        deleteElementsPushDown(sh, new raReportElement[] {sh.LabelParitet, sh.TextNAZFRA});
    //    long top = sh.LabelNacin_placanja.defaultAlterer().getTop();
    //    raReportElement lab = sh.copyToModify(sh.LabelNarudzba);
    //    lab.setCaption("Izlazni dokument");
    //    lab.setTop(top);
    //    lab.setLeft(lab.getLeft() - 300);
    //    lab.setWidth(lab.getWidth() + 300);
    //    raReportElement tx1 = sh.copyToModify(sh.TextBRNARIZ);
    //    tx1.setControlSource("BRDOKIZ");
    //    tx1.setTop(top);
    //    raReportElement tx2 = sh.copyToModify(sh.TextSgetDATNARIZ);
    //    tx2.setControlSource("SgetDATDOKIZ");
    //    tx2.setTop(top);

    raSectionHeader0TF sh = new raSectionHeader0TF(this);
    //  zakaii::     sh.TextTEL.defaultAlterer().setVisible(false);

    long topNar = sh.LabelNarudzba.defaultAlterer().getTop();
    long topIzDok = sh.LabelIzlazni_dokument.defaultAlterer().getTop();

    sh.defaultAltererSect().getView(sh.LabelNarudzba, sh.LabelR1).moveDown(topIzDok - topNar);

    raReportElement labelUgovor = sh.copyToModify(sh.LabelNarudzba);
    labelUgovor.setCaption("Ugovor");
    labelUgovor.setTop(topNar);

    raReportElement textCUG = sh.copyToModify(sh.TextBRNARIZ);
    textCUG.setControlSource("CUG");
    textCUG.setTop(topNar);

    raReportElement textSgetDatug = sh.copyToModify(sh.TextSgetDATNARIZ);
    textSgetDatug.setControlSource("SgetDATUG");
    textSgetDatug.setTop(topNar);

    /*if (hr.restart.sisfun.frmParam.getParam("robno","ispisTELFAX_Par","N","Ispis Telefona i faxa partnera na ROT-u u polju za adresu").
    .        equalsIgnoreCase("N")) {
          sh.TextTEL.defaultAlterer().setVisible(false);
    //      sh.TextFAX.defaultAlterer().setVisible(false);
        }*/

    if (frmParam
        .getParam("robno", "vertZag", "N", "Vertikalno pozicionirano zaglavlje raèuna")
        .equals("D")) {
      raReportElement isp = sh.LabelIsporuka.defaultAlterer();
      raReportElement rac = sh.LabelR_A_C_U_N.defaultAlterer();
      raReportSection win =
          sh.defaultAltererSect()
              .getView(isp.getLeft(), rac.getTop(), rac.getRight(), isp.getBottom());
      sh.setHeight(sh.getHeight() + isp.getBottom() - rac.getTop());

      win.moveDown(isp.getTop() - rac.getTop() - 120);
      win.moveLeft(5760);
      raReportElement r1 = sh.LabelR1.defaultAlterer();
      r1.setTop(r1.getTop() + isp.getTop() - rac.getTop() - 120);
      raReportElement ob = sh.LabelObrazac.defaultAlterer();
      ob.setTop(ob.getTop() + isp.getTop() - rac.getTop() - 120);
    }

    return sh;
    //
    // sh.LabelNacinplacanja.defaultAlterer().setTop(sh.LabelNacinotpreme.defaultAlterer().getTop());
    //    sh.TextNAZNACPL.defaultAlterer().setTop(sh.TextNAZNAC.defaultAlterer().getTop());
    //    sh.removeModels(new raReportElement[] {sh.LabelNacinotpreme, sh.TextNAZNAC});

  }