Package ecar.pojo

Examples of ecar.pojo.AreaAre


   * @author N/C
   * @since N/C
   * @version N/C
   */
  public void geraHTMLAreaAre() {
    AreaAre area = new AreaAre();
    area.setIndAtivoAre("S");
    try {
      List areas = new Dao().pesquisar(area, new String[] {
          atributo.iGetNomeFk(), "asc" });
      List options = new ArrayList();
      Iterator it = areas.iterator();
      while (it.hasNext()) {
        area = (AreaAre) it.next();
        options
            .add(new String[] {
                area.getCodAre().toString(),
                Util.invocaGet(area, atributo.iGetNomeFk())
                    .toString() });
      }

      if (transformarComboBoxListaChecks.booleanValue()) {
View Full Code Here


         * @param areas
   */
  public void criaJScriptArea(List areas) {
    JspWriter writer = this.page.getOut();
    StringBuffer s = new StringBuffer();
    AreaAre area;
    SubAreaSare subArea;
    List lSubAreas = new ArrayList(0);
    try {
      s.append("\n<script language=\"javascript\">\n");
      s.append("aSubArea = new Array(").append(areas.size()).append(1)
View Full Code Here

      TreeSet<FuncaoAreaAreBean> colecao = new TreeSet<FuncaoAreaAreBean>( new FuncaoComparatorAreaAre() );
     
      for (Iterator iter = itens.iterator(); iter.hasNext();) {
        ItemEstruturaIett itemAcao = (ItemEstruturaIett) iter.next();
       
        AreaAre areaAre = itemAcao.getAreaAre();
        SubAreaSare subAreaSare = itemAcao.getSubAreaSare();
       
        FuncaoAreaAreBean tmpAreBean = new FuncaoAreaAreBean();
        tmpAreBean.setAreaAre( areaAre );
        tmpAreBean.setCodigoIdentAre( areaAre.getCodigoIdentAre() );
        tmpAreBean.setNomeAre( areaAre.getNomeAre() );
       
        FuncaoSubAreaSareBean tmpSareBean = new FuncaoSubAreaSareBean();
        tmpSareBean.setSubAreaSare(subAreaSare);         
        tmpSareBean.setCodigoIdentSare( subAreaSare.getCodigoIdentSare() );
        tmpSareBean.setNomeSare( subAreaSare.getNomeSare() );
View Full Code Here

     * @author N/C
   * @since N/C
   * @version N/C
     */
    public void geraHTMLAreaAre() {
        AreaAre area = new AreaAre();
        area.setIndAtivoAre("S");
        try {
            List areas = new Dao().pesquisar(area, new String[] { atributo.iGetNomeFk(), "asc" });
            List options = new ArrayList();
            Iterator it = areas.iterator();
            while (it.hasNext()) {
                area = (AreaAre) it.next();
                options.add(new String[] { area.getCodAre().toString(), Util.invocaGet(area, atributo.iGetNomeFk()).toString() });
            }
           
            //criaSelect("areaAre", atributo.iGetLabel(), atributo.iGetValorCodFk(getItemEstrutura()), options, "onChange=\"updateSub(this.selectedIndex, this.form.subAreaSare);\"");
            criaSelect("areaAre", atributo.iGetLabel(), atributo.iGetValorCodFk(getItemEstruturaRevisao()), options, "");
           
View Full Code Here

     * @param areas
     */
    public void criaJScriptArea(List areas) {
        JspWriter writer = this.page.getOut();
        StringBuffer s = new StringBuffer();
        AreaAre area;
        SubAreaSare subArea;
        List lSubAreas = new ArrayList(0);
        try {
            s.append("\n<script language=\"javascript\">\n");
            s.append("aSubArea = new Array(" + (areas.size() + 1) + ");\n");
View Full Code Here

   * @version 0.2, 22/03/2007
   */
  public void criaJScriptArea(List areas) {
    JspWriter writer = this.page.getOut();
    StringBuffer s = new StringBuffer();
    AreaAre area;
    SubAreaSare subArea;
    List lSubAreas = new ArrayList(0);
    try {
      s.append("\n<script language=\"javascript\">\n");
      s.append("aSubArea = new Array(").append(areas.size()).append(1).append(");\n");
View Full Code Here

     * @author N/C
   * @since N/C
   * @version N/C
     */
    public void geraHTMLAreaAre() {
      AreaAre area = null;
        try {
          List areas = null;
          if (getEhHistorico().booleanValue()){
            area = getHistoricoItemEstruturaIett().getAreaAre();
            areas = new ArrayList();
            if (area != null){
              areas.add(area);
            }
          } else {
                area = new AreaAre();
                area.setIndAtivoAre("S");
            areas = new Dao().pesquisar(area, new String[] { atributo.iGetNomeFk(), "asc" });
          }
           
            List options = new ArrayList();
            Iterator it = areas.iterator();
            while (it.hasNext()) {
                area = (AreaAre) it.next();
                options.add(new String[] { area.getCodAre().toString(), Util.invocaGet(area, atributo.iGetNomeFk()).toString() });
            }
           
            //criaSelect("areaAre", atributo.iGetLabel(), atributo.iGetValorCodFk(getItem()), options, "onChange=\"updateSub(this.selectedIndex, this.form.subAreaSare);\"");
            criaSelect("areaAre" + this.getCodigo(), atributo.iGetLabel(), atributo.iGetValorCodFk(getItem()), options, "", atributo.iGetDica());
           
View Full Code Here

     * @version 0.2, 22/03/2007
     */
    public void criaJScriptArea(List areas) {
        JspWriter writer = this.page.getOut();
        StringBuffer s = new StringBuffer();
        AreaAre area;
        SubAreaSare subArea;
        List lSubAreas = new ArrayList(0);
        try {
            s.append("\n<script language=\"javascript\">\n");
            s.append("aSubArea = new Array(").append(areas.size()).append(1).append(");\n");
View Full Code Here

     * @param areas
     */
    public void criaJScriptArea(List areas) {
        JspWriter writer = this.page.getOut();
        StringBuffer s = new StringBuffer();
        AreaAre area;
        SubAreaSare subArea;
        List lSubAreas = new ArrayList(0);
        try {
            s.append("\n<script language=\"javascript\">\n");
            s.append("aSubArea = new Array(").append(areas.size()).append(1).append(");\n");
View Full Code Here

          sql = "select funcao from AreaAre funcao where funcao.codigoIdentAre = :codIdentFunc";
          q = this.session.createQuery(sql);
          q.setLong("codIdentFunc", Long.valueOf(codIdentFunc).longValue());
          q.setMaxResults(1);
         
        AreaAre funcao = (AreaAre) q.uniqueResult();
          if(funcao == null)
            throw new ECARException("Funcao Nulo");
        iett.setAreaAre(funcao);

          /* Buscando subfuncao pelo codigo do COP */
 
View Full Code Here

TOP

Related Classes of ecar.pojo.AreaAre

Copyright © 2018 www.massapicom. 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.