Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\sales\opportunity\edit_action.jsp
<% /****************************************************************************** * Copyright (c) 2000-2005 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. ******************************************************************************/ %><%@page session="true" import="com.edeal.frontline.*"%><%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <%@ page import="java.util.Vector"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.custom.*" %> <jsp:useBean class="com.edeal.frontline.OpportunityBean" id="Opportunity" scope="request"/> <% FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); String salesModel = context.getContextParameter("SalesModel"); String oppID; String OppReferFact_=null; try { oppID = Opportunity.getID(); } catch (FieldNotInitializedException e) { oppID = null; } try { OppReferFact_ = Opportunity.getCustomProperty("OppReferFact_")+""; } catch (FieldNotInitializedException e) { OppReferFact_ = null; } DataDictionary dico = context.getDataDictionary(); String needDetected; try { needDetected = dico.getRefIdByCode("Sto", "Te1", "NEED"); } catch (Exception e) { needDetected = null; } // If "NEED" doesn't exist for some reason, just take the first one if (needDetected == null) { Vector vect = dico.getRefCodeList("OppStoID"); Vector firstElement = (Vector)vect.firstElement(); needDetected = (String)firstElement.firstElement(); } %> <script language="javascript"> function products() { var oppid=$('input[name$="id"]').val(); var prdfamilleproduit_id=$('input[name$="prdfamilleproduit_id"]').val(); var qteProdNegFlag_flag=$('input[name$="OppFactAvoir_"]').val(); var varFactID = '<%= OppReferFact_ %>'; //alert(oppid); if (oppid!= '') { if(prdfamilleproduit_id!=null) { if( qteProdNegFlag_flag!=null && qteProdNegFlag_flag == 'true') { window.open('<fl:link list="false" url="<%= \"/edit_productopportunity_avoir.fl?\" %>"/>&negSelProd=true&OppID=' + oppid + '&PrdFamilleProduit_=' + prdfamilleproduit_id + '&OppReferFact_=' + varFactID,'ChoixProduit', 'width=1248,height=748,resizable'); } else { window.open('<fl:link list="false" url="<%= \"/edit_productopportunity.fl?\" %>"/>&OppID=' + oppid + '&PrdFamilleProduit_=' + prdfamilleproduit_id,'ChoixProduit', 'width=1248,height=748,resizable'); } } else { if( qteProdNegFlag_flag!=null && qteProdNegFlag_flag == 'true') { window.open('<fl:link list="false" url="<%= \"/edit_productopportunity_avoir.fl?\" %>"/>&negSelProd=true&OppID=' + oppid + '&OppReferFact_=' + varFactID,'ChoixProduit', 'width=1248,height=748,resizable'); } else { window.open('<fl:link list="false" url="<%= \"/edit_productopportunity.fl?\" %>"/>&OppID=' + oppid,'ChoixProduit', 'width=1248,height=748,resizable'); } } } else { //alert("saveNewOppAndOpenProducts"); saveNewOppAndOpenProducts(); } } //http://u-project2.umanis.com/view.php?id=45467 function saveNewOppAndOpenProducts() { if (!doSubmit()) { return; } var mf = document.forms[0]; var strUrl = '<fl:link url="/save_newopportunity_show_products_ajax.fl?type=Opportunity&$$presentFields="/>'; var oppTitle = mf.OppTitle.value; if (oppTitle != '') { strUrl += '&OppTitle=' + escape(oppTitle); } var oppPerID = mf.OppPerID.value; if (oppPerID != null && oppPerID != '') { strUrl += '&OppPerID=' + oppPerID; } var oppEntID = mf.OppEntID.value; if (oppEntID != null && oppEntID != '') { strUrl += '&OppEntID=' + oppEntID; } var oppAccountID = mf.OppAccountID_.value; if (oppAccountID != null && oppAccountID != '') { strUrl += '&OppAccountID_=' + oppAccountID; } try{ var oppCmdTypo_ = mf.OppCmdTypo_.value; if (oppCmdTypo_ != null && oppCmdTypo_ != '') { strUrl += '&OppCmdTypo_=' + oppCmdTypo_; } } catch(err) { } var oppStoID = mf.OppStoID.value; if (oppStoID == null || oppStoID == '') { oppStoID = '<%= needDetected %>'; } strUrl += '&OppStoID=' + oppStoID; try{ var varFactID = '<%= OppReferFact_ %>'; if (varFactID != null && varFactID != '') { strUrl += '&OppReferFact_=' + varFactID; } } catch(err) { } //OppDatDev_ try{ var OppDatDev_ = mf.OppDatDev_.value; if (OppDatDev_ != null && OppDatDev_ != '') { strUrl += '&OppDatDev_=' + OppDatDev_; } }catch(err){} //OppCompteClient_ try{ var OppCompteClient_ = mf.OppCompteClient_.value; if (OppCompteClient_ != null && OppCompteClient_ != '') { strUrl += '&OppCompteClient_=' + OppCompteClient_; } }catch(err){} //OppCnlDev_ try{ var OppCnlDev_ = mf.OppCnlDev_.value; if (OppCnlDev_ != null && OppCnlDev_ != '') { strUrl += '&OppCnlDev_=' + OppCnlDev_; } }catch(err){} //OppDatComm_ try{ var OppDatComm_ = mf.OppDatComm_.value; if (OppDatComm_ != null && OppDatComm_ != '') { strUrl += '&OppDatComm_=' + OppDatComm_; } }catch(err){} //OppCnlCom_ try{ var OppCnlCom_ = mf.OppCnlCom_.value; if (OppCnlCom_ != null && OppCnlCom_ != '') { strUrl += '&OppCnlCom_=' + OppCnlCom_; } }catch(err){} //OppModRegl_ try{ var OppModRegl_ = mf.OppModRegl_.value; if (OppModRegl_ != null && OppModRegl_ != '') { strUrl += '&OppModRegl_=' + OppModRegl_; } }catch(err){} //OppActID try{ var OppActID = mf.OppActID.value; if (OppActID != null && OppActID != '') { strUrl += '&OppActID=' + OppActID; } }catch(err){} //OppFactAvoir_ try{ var OppFactAvoir_ = mf.OppFactAvoir_.value; if (OppFactAvoir_ != null && OppFactAvoir_ != '') { strUrl += '&OppFactAvoir_=' + OppFactAvoir_; } }catch(err){} //OppRefFact_ try{ var OppRefFact_ = mf.OppRefFact_.value; if (OppRefFact_ != null && OppRefFact_ != '') { strUrl += '&OppRefFact_=' + OppRefFact_; } }catch(err){} //OppStoID try{ var OppStoID = mf.OppStoID.value; if (OppStoID != null && OppStoID != '') { strUrl += '&OppStoID=' + OppStoID; } }catch(err){} //OppDatFact_ try{ var OppDatFact_ = mf.OppDatFact_.value; if (OppDatFact_ != null && OppDatFact_ != '') { strUrl += '&OppDatFact_=' + OppDatFact_; } }catch(err){} //OppReferFact_ try{ var OppReferFact_ = mf.OppReferFact_.value; if (OppReferFact_ != null && OppReferFact_ != '') { strUrl += '&OppReferFact_=' + OppReferFact_; } }catch(err){} doAjax(strUrl); } function ajaxReturn(index) { if (eDealXmlhttpArr[index].readyState == 4) { var response = eDealXmlhttpArr[index].responseText; } } function doRefreshPros() { var mf = document.forms[0]; doAjax('<fl:webapp/>/refresh_prodOpp_ajax.fl?listOnly=true&OppID=' + mf.id.value); } function refreshPros() { setTimeout("doRefreshPros();", 20); } function doSubmit(document) { mf = window.document.forms[0]; return true; } </script> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:verifPresenceArticles()"> <p class="actions_tabletext"><fl:getMessage code="A0003" alt="Enregistrer"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <%-- if(oppID != null) {--%> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:products();"> <p class="actions_tabletext"><fl:getMessage code="LF184" alt="Articles"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <%--} --%>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de