Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\siteweb\webform\webform-guide-devis-asso.jsp
<%-- <div style="display:none;"> <b>Cotisation Association:</b><br><br> <table id="order-table2"> <tr> <th><%=Utils.getMessage(context, lngCode, "F203F", "D�signation") %></th> <th><%=Utils.getMessage(context, lngCode, "F3023", "P. U. HT") %></th> <th width="6%"><%=Utils.getMessage(context, lngCode, "LF18A", "Quantit� factur�e") %></th> <th width="8%"><%=Utils.getMessage(context, lngCode, "F3025", "Remise sur P.U") %></th> <th width="10%"><%=Utils.getMessage(context, lngCode, "FF132", "P. U. HT Apr�s Remise") %></th> <th><%=Utils.getMessage(context, lngCode, "FF134", "Montant HT") %></th> <th width="8%"><%=Utils.getMessage(context, lngCode, "FF130","TVA � appliquer") %></th> <th><%=Utils.getMessage(context, lngCode, "FF140", "Montant TVA") %></th> <th style="text-align: right; padding-right: 30px;" width="11%"><%=Utils.getMessage(context, lngCode, "F3026", "Prix net") %></th> </tr> <% depTotal=0; for (Entry<String,Vector<String>> entry : mapCotQuestionResponse.entrySet()) { String lfqID = entry.getKey(); Vector<String> cotResps = entry.getValue(); String filProID2 = null; String depProID = null; int proQuantity = 0; ProductOpportunityBean filpro = null; String ProMontantTva_ = ""; String ProPrdTva_Val = ""; String ProRemise_ = ""; if(cotResps != null && cotResps.size()>0 && !cotResps.isEmpty()){ QuestionResponseBean qrs = null; if(cotResps.elementAt(0) != null){ qrs = new QuestionResponseBean(cotResps.elementAt(0),context); try{ filProID2 = qrs.getQrsText(); }catch(FieldNotInitializedException e){ } } if(cotResps.size() > 1 && cotResps.elementAt(1) != null){ qrs = new QuestionResponseBean(cotResps.elementAt(1),context); try{ depProID = qrs.getQrsText(); }catch(FieldNotInitializedException e){ } } if(cotResps.size() > 2 && cotResps.elementAt(2) != null){ qrs = new QuestionResponseBean(cotResps.elementAt(2),context); try{ String quantity = qrs.getQrsText(); Integer temp=0; try{ temp = Integer.valueOf(quantity); }catch(Exception e){ logger.error(e.getMessage()); } proQuantity = (quantity != null && !quantity.isEmpty()) ? temp : 0; }catch(FieldNotInitializedException e){ } } if(depProID != null && depProID.length()==16){ String prdCode=null; try { filpro = new ProductOpportunityBean(depProID, context); prdCode = (String)ProductOpportunityBean.lookup(context, "ProPrdID:PrdCode", depProID); } catch (Exception e1) { e1.printStackTrace(); } Integer maxquantity = null; try{ maxquantity = (Integer)ProductOpportunityBean.lookup(context, "ProPrdID:PrdMaxQt_", depProID); }catch(Exception e){ } Integer tmp = null; try{ tmp = (Integer)ProductOpportunityBean.lookup(context, "ProPrdID:PrdOrderQst_", depProID); }catch(Exception e){ } String SortingOrder = null; if(tmp==null) SortingOrder = "0"; else{ SortingOrder = tmp.toString(); if(tmp>maxOrder) maxOrder = tmp; } try{ Double x = (Double)ProductOpportunityBean.lookup(context, "ProMontantTva_", depProID); Integer y = (Integer)ProductOpportunityBean.lookup(context, "ProQuantity", depProID); ProMontantTva_ = ""+(x/y); if(ProMontantTva_.contains("NaN"))ProMontantTva_ = "0.0"; }catch(Exception e){ logger.warn(e.getMessage()); ProMontantTva_ = "0.0"; } try{ ProPrdTva_Val = ""+ProductOpportunityBean.lookup(context, "ProPrdTva_:Val", depProID); ProRemise_ = ""+ProductOpportunityBean.lookup(context, "ProRemise_", depProID); } catch (FrontlineException e) { } Double ProRemise_Nu1 = (double) 0; try{ ProRemise_Nu1 = (Double)dico.getRefDisp("Od_", "Nu1", ProRemise_); } catch (FrontlineException e) { } Double ProUnitHTrem_ = (Double)ProductOpportunityBean.lookup(context, "ProUnitHTrem_", depProID); Double ProMontantHTrem_ = (Double)ProductOpportunityBean.lookup(context, "ProMontantHTrem_", depProID); Double ProMontantTva_2 = (Double)ProductOpportunityBean.lookup(context, "ProMontantTva_", depProID); String prdLabel = null; if(ids != "") ids += "," + prdCode; else ids += prdCode; String prdID = (String)ProductOpportunityBean.lookup(context, "ProPrdID", depProID); String prdName = (String)ProductOpportunityBean.lookup(context, "ProPrdID:PrdName", depProID); try{ String prdnamelng_ = (String)ProductOpportunityBean.lookup(context, "ProPrdID:PrdNamelng_", depProID); try{ String[] fields = {"RelTe1"}; String[][] query = {{"RelRefID = '" + prdnamelng_ + "'" , "RelLngID = '" + languageID + "'" }}; String[] orderBy = {"RelTe1 ASC"}; Vector list = RefLocaleBean.listSummary(context, fields, query, orderBy ); if(list != null && list.size() > 0){ Hashtable line = (Hashtable)list.elementAt(0); prdLabel = (String)line.get("RelTe1"); } }catch(Exception e){ } }catch(Exception e ){ logger.warn(e.getMessage()); } if(!prdCode.contains("COTROO") && !prdCode.contains("COTCOM")) proQuantity = (Integer)ProductOpportunityBean.lookup(context, "ProQuantity", depProID); depOppID = (String)ProductOpportunityBean.lookup(context, "ProOppID", depProID); double filProttc = 0; try{ filProttc = (Double)ProductOpportunityBean.lookup(context, "ProPrice", depProID); }catch(FrontlineException e){} double priUnit = 0; try{ ///Avoir priUnit = (Double)ProductOpportunityBean.lookup(context, "ProUnitPrice", depProID); }catch(FrontlineException e){} String proPrdTva_ = (String)ProductOpportunityBean.lookup(context, "ProPrdTva_", depProID); proPrdTva_ = dico.getRefCode("ProPrdTva_", proPrdTva_); if("T0".equalsIgnoreCase(proPrdTva_)) proPrdTva_ = "TVA INTRACOM"; double depProttc = 0; if(depProID != null) { try{ depProttc = proQuantity * priUnit; depTotal += depProttc; depOppID = (String)ProductOpportunityBean.lookup(context, "ProOppID", depProID); }catch(FrontlineException e){} } %> <input type="hidden" name="<%=prdCode + "ProductOpportunityDEP" %>" id="<%=prdCode %>" value="<%= depProID != null ? depProID : "" %>"/> <tr class="odd"> <td class="product-title"><em><%=(prdLabel != null ? prdLabel : Utils.formatToWeb(prdName, false)) + " (" + proPrdTva_ + " ) " %></em> <% if(prdCode!=null && (prdCode.contains("COTCOM") || prdCode.contains("COTROO"))){ out.print("<br/><b>"+Utils.getMessage(context, lngCode, "MF101", true,true,"*Plafonn� � XX h�bergements.").replace("XX", maxquantity+"")+"</b>"); } %> </td> <td align="right"><span><%=Utils.formatToWeb(priUnit, false)%></span> €<input type="hidden" id="<%= "2pr_" + prdCode%>" value="<%= priUnit %>"/></td> <td class="row-total"><input type="text" class="num-pallets-input" id="<%= "2qu_" + prdCode%>" name="<%= "2qu_" + prdCode%>" value="<%= proQuantity %>" disabled="disabled" /> <input type="hidden" id="max_2qu_<%=prdCode%>" name="max_2qu_<%=prdCode%>" value="<%=(maxquantity==0 ? 50 : maxquantity)%>" /> </td> <td align="center"><span><%=ProRemise_Nu1.intValue()+"%"%></span><input type="hidden" id="<%= "REMT2_" + prdCode%>" value="<%= ProRemise_Nu1.intValue() %>"/></td> <td align="right"><span><%=ProUnitHTrem_%></span> €<input type="hidden" id="<%= "ProUnitHTT2_" + prdCode%>" value="<%=ProUnitHTrem_%>" /></td> <td align="right" id="<%= "MTHTT2_" + prdCode%>"><span><%=ProMontantHTrem_%></span> €</td> <td align="center"><span><%=ProPrdTva_Val%></span><input type="hidden" id="<%= "TVAT2_" + prdCode%>" value="<%= ProPrdTva_Val.substring(0,ProPrdTva_Val.length()-1).replace(",",".") %>"/></td> <td align="right" id="<%= "MTTVAT2_" + prdCode%>"><span><%=ProMontantTva_2%></span> €</td> <td align="right" class="row-total"><input type="text" style="text-align:right;" class="row-total-input" id="<%= "todep_" + prdCode %>" disabled="disabled" value="<%= filProttc %>"/> €</td> <td class="row-total forPrintOnly"> <input type="hidden" id="<%= "REM_todep_" + prdCode %>" value="<%=((double)(ProRemise_Nu1*priUnit)/100) %>"/> <input type="hidden" id="<%= "TVA_todep_" + prdCode %>" value="<%=ProMontantTva_%>"/> <input type="text" class="row-total-input" id="<%= "todep_" + prdCode %>" disabled="disabled" value="<%= depProttc %> €"/></td> <td class="row-total"><input type="text" class="row-total-input" id="<%= "todep_" + prdCode%>" value="<%= depProttc %>"/></td> <td class="sort2" style="display: none;"><%=SortingOrder %></td> </tr> <% } } } depTotal = (new BigDecimal(depTotal)).setScale(2, java.math.RoundingMode.UP).doubleValue(); %> <tr> <td colspan="4"> </td> <td> </td> <td class="thstyle"><%=Utils.getMessage(context, lngCode, "LF18B", "Total HT") %></td> <td class="thstyle"> </td> <td class="thstyle"><%=Utils.getMessage(context, lngCode, "LF18C", "Total TVA") %></td> <td class="thstyle"><%=Utils.getMessage(context, lngCode, "LF18D", "Total TTC") %></td> <td class="sort2" style="display: none;"><%=maxOrder+1 %></td> </tr> <tr class="odd"> <td colspan="4"> </td> <td class="thstyle"><%=Utils.getMessage(context, lngCode, "F1058", "Total")%> </td> <td align="right" id="MTHTT2_Total"> </td> <td> </td> <td align="right" id="MTTVAT2_Total"> </td> <td class="row-total"><input type="text" class="row-total-input" id="todep" style="text-align:right;" disabled="disabled" value="<%= depTotal %>"/> €</td> <td class="sort2" style="display: none;"><%=maxOrder+2 %></td> </tr> </table> </div> --%>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de