asfOpptyDtailFrm.jsp 业务机会名称自动生成的实现 Jsp
asfOpptyDtailRen.jsp 业务机会名称自动生成的实现 Jsp
asfOpptyDtailCtx.jsp 业务机会名称自动生成的实现 Jsp
<!-- $Header: asfOpptyDtailFrm.jsp 115.105.1159.3 2003/06/27 23:20:31 xding ship $-->
<%@ include file="asfinccs.jsp" %>
<%@ page language="java" import="oracle.apps.asf.html.*" %>
<jsp:useBean id="asfPage" class="oracle.apps.asf.webbean.PageWebBean" scope="request"/>
<jsp:useBean id="oppForm" class="oracle.apps.asf.webbean.FormWebBean" scope="request"/>
<jsp:useBean id="JTFffContext" class="oracle.apps.jtf.jflex.FlexfieldContext" scope="request"/>
<%@ page import="oracle.apps.asf.webbean.PageWebBean" %>
<%@ page import="oracle.apps.asf.html.LOV" %>
<%@ page import="oracle.apps.asf.util.RegionUtil" %>
<%@ page import="oracle.apps.asf.util.FunctionUtil" %>
<%@ page import="oracle.apps.jtf.base.resources.AOLMessageManager" %>
<%@ page language="java" import="oracle.apps.asf.util.EncodeUtil" %>
<%@ page language="java" import="oracle.apps.asf.util.MessageUtil" %>
<%@ page language="java" import="java.math.BigDecimal" %>
<%@ page language="java" import="oracle.apps.asf.html.FormLOVField" %>
<%@page import="java.sql.*"%>
<%@ page import='oracle.apps.fnd.sso.Utils'%>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.lang.*,java.util.*,java.sql.*"%>
<%@ page import="oracle.apps.jtf.aom.transaction.TransactionScope"%>
<SCRIPT>
function clearOwner(){
var thisForm = document.forms['<%=asfPage.getHTMLFormName()%>'];
thisForm.elements['<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "ownerSalesforceID")%>'].value="";
thisForm.elements['<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "ownerSalesRepID")%>'].value="";
thisForm.elements['<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "ownerPersonID")%>'].value="";
thisForm.elements['<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "ownerSalesGroupName")%>'].value="";
thisForm.elements['<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "ownerSalesGroupID")%>'].value="";
thisForm.elements['<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "ownerPersonName")%>'].value="";
}
</SCRIPT>
<%
oracle.apps.asf.query.DataSource ds = oppForm.getDataSource();
String fname = asfPage.getHTMLFormName() ;
Hashtable prompts = new Hashtable();
Hashtable promptlengths = new Hashtable();
prompts = RegionUtil.getPrompts(asfPage, "ASF_OPPTY_DTAIL_FRM");
promptlengths = RegionUtil.getLengths(asfPage, "ASF_OPPTY_DTAIL_FRM");
asfPage.addDebug(prompts.toString());
%>
<input type="hidden" name="ASFOppCop.OBJ.leadID" value="<%=ds.getFormattedData("leadID")%>">
<%
// modified by luoguoxing 20061211
String v_OpptyName = "";
//---------------------------------
String LeadID = ds.getFormattedData("leadID");
String vReturn = "";
try
{
Connection conn=TransactionScope.getConnection();
String procedure = "{call CHAGE_DIT_NAME(?,?)}";
CallableStatement cstmt = conn.prepareCall(procedure);
//cstmt.setInt(1,55555);
cstmt.setString(1,LeadID);
cstmt.registerOutParameter(2,Types.VARCHAR);
cstmt.execute();
vReturn=cstmt.getString(2);
/* Hotline 0017931 Bug 修正*/
vReturn = oracle.apps.jtf.admin.adminconsole.HtmlWriter.preformat(vReturn);
/* 0017931 修正结束*/
}
catch(SQLException e)
{
throw e;
}
finally
{
}
String copyText = prompts.get("ASF_COPY")+": "+
ds.getFormattedData("description");
if(copyText.length() > 240) {
copyText = copyText.substring(0,240);
}
%>
<input type="hidden" name="ASFOppCop.OBJ.description" value="<%=copyText%>">
<input type="hidden" name="ASFOppCop.OBJ.customerID" value="<%=ds.getFormattedData("customerID")%>">
<input type="hidden" name="ASFOppCop.OBJ.oldCustomerID" value="<%=ds.getFormattedData("customerID")%>">
<input type="hidden" name="ASFOppCop.OBJ.addressID" value="<%=ds.getFormattedData("addressID")%>">
<input type="hidden" name="ASFOppCop.OBJ.partyName" value="<%=ds.getFormattedData("partyName")%>">
<input type="hidden" name="ASFOppCop.OBJ.addressLabel" value="<%=ds.getFormattedData("addressLabel")%>">
<tr>
<td colspan="3">
<table border="0">
<!-- Opportunity section -->
<tr><td> </td><td> </td><td> </td><td> </td></tr>
<tr>
<td colspan="4"><table border=0 width="100%"><tr>
<td align="right" width="5%" class="sectionHeader2" nowrap>
<%=prompts.get("ASF_OPPORTUNITY")%></td>
<td colspan="3" align = "left" ><hr size="1"></td>
</tr></table></td>
</tr>
<tr>
<td align="right" nowrap class="requiredFieldPrompt">
<span class="requiredFieldAsterisk">*</span><%=prompts.get("ASF_OPPORTUNITY_NAME")%>
</td>
<td >
<input type='text' readonly="true" class="formObjReadOnly" name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "description")%>' value="<%=vReturn%>"size='50' width="240" maxlength='280' >
<%
Hashtable tokens3 = new Hashtable(1);
try{
tokens3.put("FIELD", (String) prompts.get("ASF_OPPORTUNITY_NAME"));
asfPage.registerRequiredField(PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "description"),
MessageUtil.getMessageJSVar(asfPage,"ASF","ASF_REQUIRED_VALIDATION", tokens3));
asfPage.registerLengthCheckField(
PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "description"),
MessageUtil.getMessageJSVar(asfPage,"ASF","ASF_LENGTH_CHECK", tokens3),
240
);
}catch(Exception e) {}
%>
</td>
<td class="prompt" nowrap align="right">
<!-- update 2007-08-07 for hidden control asfopptydtailfrm ASF_TOTAL_BUDGET-->
<!--
<%=prompts.get("ASF_TOTAL_BUDGET")%>
-->
</td>
<td nowrap>
<!-- update 2007-08-07 for hidden control asfopptydtailfrm type='text'->"hidden" -->
<input type="hidden" name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "totalBudget")%>' size='16' maxlength="<%=promptlengths.get("ASF_TOTAL_BUDGET")%>" value="<%=ds.getFormattedData("totalBudget")%>" onBlur="JavaScript:checkAsfNumber(this,<%=MessageUtil.getMessageJSVar(asfPage, "ASF", "ASF_BUDGET_NUMBER")%>);" >
<!--
<td align="right" nowrap class="requiredFieldPrompt">
<span class="requiredFieldAsterisk">*</span><%=prompts.get("ASF_CURRENCY")%>
</td>
-->
<%
String[] selectedCurrencyCode = new String[1];
selectedCurrencyCode[0]=ds.getFormattedData("currencyCode");
String js1 = " onChange=\"Javascript:changeCurrency();\"";
%>
<div id=his style=display:none >
<%=SelectRenderer.renderFrcstCurrency(asfPage,PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "currencyCode"),null,false,1,selectedCurrencyCode,js1)%>
</div>
</td>
</tr>
<tr>
<td class="prompt" nowrap align="right">
<%=prompts.get("ASF_NUMBER")%>
</td>
<td class="dataReadOnly" align="left">
<%=ds.getFormattedData("leadNumber")%>
</td>
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "leadNumber")%>' value="<%=ds.getFormattedData("leadNumber")%>">
<%
asfPage.addDebug("leadNumber is " + ds.getFormattedData("leadNumber"));
%>
<td align="right" nowrap class="prompt">
<!-- update 2007-08-07 for hidden control -->
<!--
<%=prompts.get("ASF_TRANSACTION_AMOUNT")%>
-->
</td>
<td class="dataReadOnly" nowrap align="left">
<!--
<%=ds.getFormattedData("totalAmount")%>
<%=ds.getFormattedData("tranCurrency")%>
-->
</td>
<td class="dataReadOnly" nowrap align="left">
<!--
<%=ds.getFormattedData("totalAmount")%>
-->
<!-- update 2007-08-07 for hidden control type='text'->"hidden" -->
<input type="hidden" name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "tranCurrency1")%>' size="17" style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; border: medium none" value="<%=ds.getFormattedData("tranCurrency")%>"onFocus="this.blur();">
</td>
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "totalAmount")%>' value="<%=ds.getFormattedData("totalAmount")%>">
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "tranCurrency")%>' value="<%=ds.getFormattedData("tranCurrency")%>">
</tr>
<tr>
<td align="right" nowrap class="prompt">
<%=prompts.get("ASF_OPPORTUNITY_OWNER")%>
</td>
<td nowrap align="left"> <span class="prompt">
<%
Integer wsize = (Integer)promptlengths.get("ASF_OPPORTUNITY_OWNER");
int wsz = wsize.intValue();
FormLOVField ownerLOV = new FormLOVField("ownerPersonName",
(String)prompts.get("ASF_OPPORTUNITY_OWNER"),
new String[] {"ownerSalesforceID", "ownerSalesRepID","ownerPersonID",
"ownerSalesGroupName", "ownerSalesGroupID"},
oppForm, asfPage, wsz);
String [] wins = {"salesrepLastName"};
String [] wmapins = {"ownerPersonName"};
String [] wouts = {"salesrepFullName", "salesGroupId", "salesGroupName",
"employeePersonId", "salesForceId"};
String [] wmapouts = {"ownerPersonName","ownerSalesGroupID", "ownerSalesGroupName",
"ownerPersonID", "ownerSalesforceID"};
ownerLOV.setLOV("ASF_FS_SALESREP_LOV","ASFSalesrepFlt",
wins, wmapins, wouts, wmapouts,"ownerLOVFunc");
%>
<%=ownerLOV.render()%>
</span>
<input onClick="JavaScript:clearOwner();" type="button"; name="ClearOwner" value="<%=prompts.get("ASF_CLEAR")%>">
</td>
<td align="right" nowrap class="prompt">
<!-- update 2007-08-07 for hidden control -->
<!--
<%=prompts.get("ASF_USER_AMOUNT")%>
-->
</td>
<td class="dataReadOnly" nowrap align="left">
<!--
<%=ds.getFormattedData("userAmount")%>
<%=ds.getFormattedData("userCurrency")%>
-->
</td>
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "userAmount")%>' value="<%=ds.getFormattedData("userAmount")%>">
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "userCurrency")%>' value="<%=ds.getFormattedData("userCurrency")%>">
<%
String conversionStatus = ds.getFormattedData("conversionStatus");
%>
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ,"conversionStatus")%>' value="<%=conversionStatus%>">
<%
if(!conversionStatus.equals("0")) {
out.println("<SPAN class=\"footnote\">*</SPAN>");
}
%>
</tr>
<!-- Customer Information section -->
<tr>
<td colspan="4"><table border=0 width="100%"><tr>
<td align="right" width="5%" class="sectionHeader2" nowrap>
<%=oracle.apps.asf.util.PageAnchorUtil.renderPageAnchor("anchor1")%>
<%=prompts.get("ASF_CUSTOMER_INFORMATION")%></td>
<td colspan="3" align = "left" ><hr size="1"></td>
</tr></table></td>
</tr>
<tr>
<td align="right" nowrap class="requiredFieldPrompt">
<span class="requiredFieldAsterisk">*</span><%=prompts.get("ASF_CUSTOMER")%>
</td>
<%
// depending on the party type this href will point to different locations
String hrefLocation = null;
String partyType = ds.getFormattedData("partyType");
asfPage.addDebug("partyType is " + partyType);
if (partyType.equals("ORGANIZATION"))
hrefLocation = FunctionUtil.getURL("ASF_FS_ORGZN_SUMRY", asfPage, "ASF_FS_ORGZN_DTAIL", "?PAGE.OBJ.ID_NAME=partyID&PAGE.OBJ.ID="+ds.getFormattedData("customerID"));
else if (partyType.equals("PERSON"))
hrefLocation = FunctionUtil.getURL("ASF_FS_CNTCT_SUMRY", asfPage, "ASF_FS_CNTCT_DTAIL", "?PAGE.OBJ.ID_NAME=partyID&PAGE.OBJ.ID="+ds.getFormattedData("customerID")) ;
%>
<input type="HIDDEN" name="<%=PageWebBean.makeName(oppForm.getSectionName(),PageWebBean.OBJ,"partyType")%>" value="<%=partyType%>">
<td class="prompt" nowrap colspan="3">
<a href="<%=hrefLocation%>"><%=ds.getFormattedData("partyName")%></a>
</td>
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "partyName")%>' value="<%=ds.getFormattedData("partyName")%>">
</tr>
<%
Hashtable tokens1 = new Hashtable(1);
try{
tokens1.put("FIELD", (String) prompts.get("ASF_CUSTOMER"));
asfPage.registerRequiredField(PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "partyName"),
MessageUtil.getMessageJSVar(asfPage,"ASF","ASF_REQUIRED_VALIDATION", tokens1));
}catch(Exception e) {}
%>
<tr>
<%
String addrProfile = asfPage.getProfileValue("AS_OPP_ADDRESS_REQUIRED");
asfPage.addDebug("addrProfile is " + addrProfile);
if (addrProfile.equals("N"))
{
%>
<td align="right" nowrap class="prompt"><%=prompts.get("ASF_CUSTOMER_ADDRESS")%></td>
<%
}
else
{
%>
<td align="right" nowrap class="requiredFieldPrompt"><span class="requiredFieldAsterisk">*</span><%=prompts.get("ASF_CUSTOMER_ADDRESS")%></td>
<%
Hashtable tokens2 = new Hashtable(1);
try{
tokens2.put("FIELD", (String) prompts.get("ASF_CUSTOMER_ADDRESS"));
asfPage.registerRequiredField(PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "addressLabel"),
MessageUtil.getMessageJSVar(asfPage,"ASF","ASF_REQUIRED_VALIDATION", tokens2));
}catch(Exception e) {}
%>
<%
}
%>
<td nowrap colspan="3">
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "copyFlag")%>' value="">
<input type='text' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "addressLabel")%>' size='50' maxlength='240' readonly onFocus = "this.blur();" value="<%=ds.getFormattedData("addressLabel")%>" class="formObjReadOnly" >
<%
String [] orgAddrLOVIns = {"partyID"};
String [] orgAddrLOVOuts = {"addressLabel","siteID"};
oracle.apps.asf.html.LOV orgAddrLOV = new oracle.apps.asf.html.LOV("ASF_FS_ORGADDR_LOV",orgAddrLOVIns, "ASFOrgFlt", orgAddrLOVOuts, asfPage,"orgAddrLOVFunc");
%>
<%orgAddrLOV.setNoLike(true); %>
<%=orgAddrLOV.renderJSFunction() %>
<input type="hidden" name="<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "addressID")%>" value="<%=ds.getFormattedData("addressID")%>">
<input type="hidden" name="<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "customerID")%>" value="<%=ds.getFormattedData("customerID")%>">
<input onClick="JavaScript:orgAddrLOVFunc('ASFOppFrm.OBJ.customerID','ASFOppFrm.OBJ.addressLabel','ASFOppFrm.OBJ.addressID');" type="button"; name="ChangeAddress" value="<%=prompts.get("ASF_CHANGE")%>">
<input onClick="JavaScript:clearAddress();" type="button"; name="ClearAddress" value="<%=prompts.get("ASF_CLEAR")%>">
</td>
</tr>
<!--hided by raymeng 20070814-->
<!--
<tr>
<td align="right" nowrap class="prompt"><%=prompts.get("ASF_PRIMARY_CONTACT")%></td>
<%
String hrefPerson = FunctionUtil.getURL("ASF_FS_CNTCT_SUMRY", asfPage, "ASF_FS_CNTCT_DTAIL", "?PAGE.OBJ.ID_NAME0=partyID&PAGE.OBJ.ID0="+ds.getFormattedData("contactPersonPartyID")+"&PAGE.OBJ.ID_NAME1=leadID1&PAGE.OBJ.ID1="+ds.getFormattedData("leadID"));
%>
<%
String pcontact = "";
pcontact = ds.getFormattedData("primaryContact");
if ( pcontact.equals("") )
{
%>
<td class="dataReadOnly" nowrap align="left"><%=prompts.get("ASF_NOT_IDENTIFIED")%></td>
<%
}
else
{
%>
<td class="prompt" nowrap ><a href="<%=hrefPerson%>"><%=ds.getFormattedData("primaryContact")%></a></td>
<input type="hidden" name="<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "primaryContact")%>" value="<%=ds.getFormattedData("primaryContact")%>"></td>
<%
}
%>
<td align="right" nowrap class="prompt"><%=prompts.get("ASF_CONTACT_ROLE")%></td>
<%
String ctRole = "";
ctRole = ds.getFormattedData("contactRole");
if ( ctRole.equals("") )
{
ctRole = (String)prompts.get("ASF_NOT_IDENTIFIED");
}
%>
<td class="dataReadOnly" align="left"><%=ctRole%></td>
</tr>
-->
<!-- Progression section -->
<tr>
<td colspan="4"><table border=0 width="100%"><tr>
<td align="right" width="5%" class="sectionHeader2" nowrap>
<%=oracle.apps.asf.util.PageAnchorUtil.renderPageAnchor("anchor2")%>
<%=prompts.get("ASF_PROGRESSION")%></td>
<td colspan="3" align = "left" ><hr size="1"></td>
</tr></table></td>
</tr>
<tr>
<td align="right" nowrap class="requiredFieldPrompt">
<span class="requiredFieldAsterisk">*</span><%=prompts.get("ASF_STATUS")%>
</td>
<td>
<% String[] selectOppStatus = new String[1];
selectOppStatus[0] = ds.getFormattedData("statusCode");
%>
<%=SelectRenderer.renderOppOpenStatus(asfPage,PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "statusCode"),null,false,1,selectOppStatus,null)%>
</td>
<td class="prompt" nowrap align="right">
<!-- update 2007-08-07 for hidden control ASF_METHODOLOGY-->
<!--
<%=prompts.get("ASF_METHODOLOGY")%>
-->
</td>
<%
// in the detail page, methodology will be editable/non editable based
// on the current value
String[] selectMethodologyID= new String[1];
String methodologyHidden = ds.getFormattedData("salesMethodologyID");
selectMethodologyID[0] = ds.getFormattedData("salesMethodologyID");
String js = " onChange=\"Javascript:reloadDependentLOV('"
+ asfPage.getHTMLFormName() + "','"
+ FunctionUtil.getURL(asfPage, "ASF_FS_OPPORTUNITY_DTAIL") + "','"
+ PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "salesMethodologyID")
+ "'); \" " ;
StringBuffer smd = new StringBuffer();
String smname = ds.getFormattedData("salesMethodologyName");
if ( smname.equals(""))
{
smd.append( "<td>" );
smd.append( SelectRenderer.renderMethodology(asfPage, PageWebBean.makeName(
oppForm.getSectionName(), PageWebBean.OBJ, "salesMethodologyID"),
new String[]{"BLANK"},false,1,selectMethodologyID,js) );
/*
smd.append(" <input onClick=\"JavaScript:smethDrillDown();\" type=\"button\"; name='");
smd.append(PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "smethDetail"));
smd.append("' value=\"" + prompts.get("ASF_DETAILS") +"\">" );
*/
/* update 2007-08-07 for hidden control */
/*
out.println(smd);
*/
%>
<!--
<A href = "JavaScript:smethDrillDown();"><img src="/OA_MEDIA/asfglss.gif" width="24" height="24" alt ="<%=prompts.get("ASF_DETAILS")%>" border="0"></A>
-->
</td>
<%
}
else
{
String hrefLoc = FunctionUtil.getURL("ASF_FS_OPPORTUNITY_DTAIL", asfPage,"ASF_FS_OPPTY_SMETH_DTAIL",
"PAGE.OBJ.ID_NAME0=methId&PAGE.OBJ.ID0="+ds.getFormattedData("salesMethodologyID")
+ "&PAGE.OBJ.ID_NAME1=leadId&PAGE.OBJ.ID1="+ds.getFormattedData("leadID"));
smd.append(" <td class=\"prompt\" nowrap colspan=\"1\"> ");
smd.append(" <A href = '" + hrefLoc + "'>");
smd.append( ds.getFormattedData("salesMethodologyName") + "</A></td>");
smd.append(" <input type=\"hidden\" name='");
smd.append( PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "salesMethodologyID") );
smd.append("' size=\"15\" value=\"" + methodologyHidden + "\">" );
/* update 2007-08-07 for hidden control */
/*
out.println(smd);
*/
}
%>
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "xsalesMethodologyID")%>' value="<%=selectMethodologyID[0]%>">
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "salesMethodologyName")%>' value="<%=ds.getFormattedData("salesMethodologyName")%>">
</tr>
<tr>
<td align="right" nowrap class="requiredFieldPrompt">
<span class="requiredFieldAsterisk">*</span><%=prompts.get("ASF_SALES_STAGE")%>
</td>
<td>
<% String[] selectSalesStage= new String[1];
selectSalesStage[0] = ds.getFormattedData("salesStageID");
BigDecimal smethID;
if (selectMethodologyID[0].equals("")){smethID = null;}
else{ smethID = new BigDecimal(selectMethodologyID[0]); }
%>
<%=SelectRenderer.renderMethodologySalesStage(asfPage,PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "salesStageID"),null,false,1,selectSalesStage,null,smethID)%>
</td>
<td align="right" nowrap class="prompt"><%=prompts.get("ASF_CLOSE_DATE")%></td>
<td nowrap>
<% DatePicker dp = new DatePicker(PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "decisionDate"), asfPage.getHTMLFormName(), ds.getFormattedData("decisionDate"));
out.println(dp.render());
%>
</td>
</tr>
<tr>
<td align="right" nowrap class="requiredFieldPrompt"><span class="requiredFieldAsterisk">*</span><%=prompts.get("ASF_WIN_PROBABILITY")%></td>
<td>
<% String[] selectWinProb= new String[1];
selectWinProb[0] = ds.getFormattedData("winProbability");
%>
<%=SelectRenderer.renderWinProb(asfPage,PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "winProbability"),null,false,1,selectWinProb,null)%>
</td>
<td> </td>
<td>
<%
String freezeValue = (String)ds.getFormattedData("freezeValue");
asfPage.addDebug("freezeValue in dtailfrm page is " + freezeValue);
%>
<% if (freezeValue.equals("Y")) { %>
<input type="checkbox" name="<%=PageWebBean.makeName(oppForm.getSectionName(),PageWebBean.OBJ, "freezeValue")%>" checked value="Y">
<%} else { %>
<input type="checkbox" name="<%=PageWebBean.makeName(oppForm.getSectionName(),PageWebBean.OBJ, "freezeValue")%>" value="Y">
<%}%>
<span class="prompt"><%=prompts.get("ASF_FREEZE")%></span>
</td>
</tr>
<!-- Additional Information section -->
<tr>
<td colspan="4"><table border=0 width="100%"><tr>
<td align="right" width="5%" class="sectionHeader2" nowrap>
<%=oracle.apps.asf.util.PageAnchorUtil.renderPageAnchor("anchor3")%>
<%=prompts.get("ASF_ADDITIONAL_INFORMATION")%></td>
<td colspan="3" align = "left" ><hr size="1"></td>
</tr></table></td>
</tr>
<!-- update 2007-08-07 for hidden control asfopptycreatefrm selectProject -->
<tr>
<td align="right" nowrap class="prompt">
<!--
<%=prompts.get("ASF_PROJECT_NAME")%>
-->
</td>
<td nowrap colspan="1">
<span class="prompt">
<%
Integer psize = (Integer) promptlengths.get("ASF_PROJECT_NAME");
int psz = psize.intValue();
FormLOVField projectLOV = new FormLOVField("selectProjectName",
(String)prompts.get("ASF_PROJECT_NAME"),
new String[] {"parentProjectName"}, oppForm, asfPage, psz);
String [] pins = {"projectName","customerID"};
String [] pmapins = {"selectProjectName","customerID"};
String [] pouts = {"projectName", "projectName"};
String [] pmapouts ={"parentProjectName", "selectProjectName"};
projectLOV.setLOV("ASF_FS_PRJCT_LOV","ASFPrjFlt",pins,pmapins,
pouts,pmapouts,"projectLOVFunc");
%>
<div id=his style=display:none >
<%=projectLOV.render()%>
</div>
</span>
</td>
<td align="right" nowrap class="requiredFieldPrompt">
<!--
<span class="requiredFieldAsterisk">*</span><%=prompts.get("ASF_SALES_CHANNEL")%>
-->
</td>
<td>
<% String[] selectChannelCode= new String[1];
selectChannelCode[0] = ds.getFormattedData("channelCode");
%>
<div id=his style=display:none >
<%=SelectRenderer.renderLeadChannel(asfPage,PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "channelCode"), null, false, 4, selectChannelCode,null)%>
</div>
</td>
</tr>
<!-- update 2007-08-07 for hidden control asfopptycreatefrm AS_COMPETITOR_REQUIRED-->
<!-- update 2007-08-07 for hidden control asfopptycreatefrm AS_OPP_SOURCE_CODE_REQUIRED -->
<tr>
<%
String sourceProfile = asfPage.getProfileValue("AS_OPP_SOURCE_CODE_REQUIRED");
asfPage.addDebug("sourceProfile is " + sourceProfile);
if (sourceProfile.equals("Y"))
{
%>
<td align="right" nowrap class="requiredFieldPrompt">
<span class="requiredFieldAsterisk">*</span><%=prompts.get("ASF_SOURCE")%>
</td>
<%
Hashtable tokens4 = new Hashtable(1);
try{
tokens4.put("FIELD", (String) prompts.get("ASF_SOURCE"));
asfPage.registerRequiredField(PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "campaignName"),
MessageUtil.getMessageJSVar(asfPage,"ASF","ASF_REQUIRED_VALIDATION", tokens4));
}catch(Exception e) {}
%>
<%
}
else
{
%>
<td align="right" nowrap class="prompt">
<!-- <%=prompts.get("ASF_SOURCE")%>
--> </td>
<%
}
%>
<td nowrap> <span class="prompt">
<%
Integer csize = (Integer) promptlengths.get("ASF_SOURCE");
int csz = csize.intValue();
FormLOVField campaignLOV = new FormLOVField("campaignName",
(String)prompts.get("ASF_SOURCE"),
new String[] {"campaignID"}, oppForm, asfPage, csz);
String [] cins = {"campaignName"};
String [] cmapins = {"campaignName"};
String [] couts = {"campaignName", "campaignID", "offerID", "offerName", "campaignCode", "offerCode"};
String [] cmapouts ={"campaignName", "campaignID", "offerID", "offerName", "campaignCode", "offerCode"};
campaignLOV.setLOV("ASF_FS_CAMPAIGN_LOV","ASFCpnFlt",cins,cmapins,
couts,cmapouts,"xcampaignLOVFunc");
%>
<div id=his style=display:none >
<%=campaignLOV.render()%>
</div>
</span>
<!--
<input onClick="JavaScript:campaignDrillDown();" type="button"; name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "campaignDetail")%>' value="<%=prompts.get("ASF_DETAILS")%>">
<A href = "JavaScript:campaignDrillDown();"><img src="/OA_MEDIA/asfglss.gif" width="24" height="24" alt ="<%=prompts.get("ASF_DETAILS")%>" border="0"></A>
-->
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "campaignCode")%>' value="<%=ds.getFormattedData("campaignCode")%>">
</td>
<td align="right" nowrap class="prompt">
<!--
<%=prompts.get("ASF_OFFER")%>
-->
</td>
<td nowrap><span class="prompt">
<%
Integer osize = (Integer)promptlengths.get("ASF_OFFER");
int osz = osize.intValue();
FormLOVField offerLOV = new FormLOVField("offerName",
(String)prompts.get("ASF_OFFER"),
new String[] {"offerID"}, oppForm, asfPage, osz);
String [] oins = {"offerName"};
String [] omapins = {"offerName"};
String [] oouts = {"offerName", "campaignID", "offerID", "campaignName", "offerCode", "campaignCode"};
String [] omapouts ={"offerName", "campaignID", "offerID", "campaignName", "offerCode", "campaignCode"};
offerLOV.setLOV("ASF_FS_OFFER_LOV","ASFOfrFlt",oins,omapins,
oouts,omapouts,"xofferLOVFunc");
%>
<div id=his style=display:none >
<%=offerLOV.render()%>
</div>
</span>
<!--
<input onClick="JavaScript:offerDrillDown();" type="button"; name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "offerDetail")%>' value="<%=prompts.get("ASF_DETAILS")%>">
<A href = "JavaScript:offerDrillDown();"><img src="/OA_MEDIA/asfglss.gif" width="24" height="24" alt ="<%=prompts.get("ASF_DETAILS")%>" border="0"></A>
-->
<input type='hidden' name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "offerCode")%>' value="<%=ds.getFormattedData("offerCode")%>">
</td>
</tr>
<%
Hashtable f = new Hashtable();
f.put("ATTRIBUTE1",ds.getFormattedData("ATTRIBUTE1",true));
f.put("ATTRIBUTE2",ds.getFormattedData("ATTRIBUTE2",true));
f.put("ATTRIBUTE3",ds.getFormattedData("ATTRIBUTE3",true));
f.put("ATTRIBUTE4",ds.getFormattedData("ATTRIBUTE4",true));
f.put("ATTRIBUTE5",ds.getFormattedData("ATTRIBUTE5",true));
f.put("ATTRIBUTE6",ds.getFormattedData("ATTRIBUTE6",true));
f.put("ATTRIBUTE7",ds.getFormattedData("ATTRIBUTE7",true));
f.put("ATTRIBUTE8",ds.getFormattedData("ATTRIBUTE8",true));
f.put("ATTRIBUTE9",ds.getFormattedData("ATTRIBUTE9",true));
f.put("ATTRIBUTE10",ds.getFormattedData("ATTRIBUTE10",true));
f.put("ATTRIBUTE11",ds.getFormattedData("ATTRIBUTE11",true));
f.put("ATTRIBUTE12",ds.getFormattedData("ATTRIBUTE12",true));
f.put("ATTRIBUTE13",ds.getFormattedData("ATTRIBUTE13",true));
f.put("ATTRIBUTE14",ds.getFormattedData("ATTRIBUTE14",true));
f.put("ATTRIBUTE15",ds.getFormattedData("ATTRIBUTE15",true));
f.put("ATTRIBUTE_CATEGORY", ds.getFormattedData("ATTRIBUTE_CATEGORY",true));
JTFffContext.getInputData().put("ASAS_LEADS", f);
try {
oracle.apps.jtf.jflex.DescriptiveFlexfield dff
= new oracle.apps.jtf.jflex.DescriptiveFlexfield("AS","AS_LEADS");
if (asfPage.getObjectProperty(PageWebBean.PAGE, PageWebBean.OBJ, "asfLoadFromRequest")== null ||
!asfPage.getObjectProperty(PageWebBean.PAGE, PageWebBean.OBJ, "asfLoadFromRequest").equals("JTFFlex"))
{
dff.setContextSegmentValue(ds.getFormattedData("ATTRIBUTE_CATEGORY",true));
}
dff.setIdentifyingSection(oppForm.getSectionName());
dff.setPrefixName(oppForm.getSectionName()+".OBJ.");
dff.setPromptStyle("prompt");
dff.setDisplayType('E');
dff.setNumEmptyCols(0);
dff.setColSpan(3);
out.println(dff.render(asfPage.getHTMLFormName(),request, JTFffContext));
} catch (oracle.apps.jtf.jflex.JFlexException jfex) {
//throw new oracle.apps.asf.util.OSOException(jfex.toString());
%>
<tr>
<td colspan="4">
<p class="footnote"><%=jfex.toString()%></p>
</td>
</tr>
<%
}
%>
<input type="hidden" name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "lastUpdateDate")%>' size="15" value="<%=ds.getFormattedData("lastUpdateDate")%>">
<input type="hidden" name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "updatedBy")%>' size="15" value="<%=ds.getFormattedData("updatedBy")%>">
<input type="hidden" name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "createdBy")%>' size="15" value="<%=ds.getFormattedData("createdBy")%>">
<input type="hidden" name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "createdDate")%>' size="15" value="<%=ds.getFormattedData("createdDate")%>">
<input type="hidden" name='<%=PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "leadID")%>' size="15" value="<%=ds.getFormattedData("leadID")%>">
<!--if commit DR move dowm come from 625 rows -->
<tr>
<td align="right" nowrap class="prompt"><%=prompts.get("ASF_VEHICLE_RESPONSE_CODE")%></td>
<td>
<% String[] selectResponseCode= new String[1];
selectResponseCode[0] = ds.getFormattedData("responseCode");
%>
<%=SelectRenderer.renderVehicleResponse(asfPage,PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "responseCode"), new String[]{"BLANK"},false,1,selectResponseCode,null)%>
</td>
<%
String compProfile = asfPage.getProfileValue("AS_COMPETITOR_REQUIRED");
asfPage.addDebug("compProfile is " + compProfile);
if (compProfile.equals("Y"))
{
%>
<td align="right" nowrap class="requiredFieldPrompt">
<!--
<span class="requiredFieldAsterisk">*</span><%=prompts.get("ASF_KEY_COMPETITOR")%>
-->
</td>
<%
Hashtable tokens5 = new Hashtable(1);
try{
tokens5.put("FIELD", (String) prompts.get("ASF_KEY_COMPETITOR"));
asfPage.registerRequiredField(PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "closeCompetitorID"),
MessageUtil.getMessageJSVar(asfPage,"ASF","ASF_REQUIRED_VALIDATION", tokens5));
}catch(Exception e) {}
%>
<%
}
else
{
%>
<td align="right" nowrap class="prompt">
<!-- <%=prompts.get("ASF_KEY_COMPETITOR")%>
--> </td>
<%
}
%>
<td>
<% String[] selectCloseCompetitorID= new String[1];
selectCloseCompetitorID[0] = ds.getFormattedData("closeCompetitorID");
%>
<div id=his style=display:none >
<%=SelectRenderer.renderCompetitors(asfPage, PageWebBean.makeName(oppForm.getSectionName(), PageWebBean.OBJ, "closeCompetitorID"), new String[]{"BLANK"},false,1,selectCloseCompetitorID,null )%>
</div>
</td>
</tr>
<tr>
<td class="requiredFieldPrompt" colspan="4"><span class="requiredFieldAsterisk">*</span>
<%=prompts.get("ASF_MANDATORY_SAVE")%></td>
<td class="requiredFieldPrompt" colspan="4">
</tr>
<!--ASF_REMARK_INPUT the label add by raymeng 20070814-->
<tr>
<td class="requiredFieldPrompt" colspan="4"><span class="requiredFieldAsterisk">**</span>
<%=prompts.get("ASF_REMARK_INPUT")%></td>
<td class="requiredFieldPrompt" colspan="4">
</tr>
<tr>
<td class="requiredFieldPrompt" colspan="4">
<%=prompts.get("ASF_OPPTY_DTAIL_HINT")%> : 1.Function--please explain details 2.Features-- please explain details 3.Price 4.Service(technical,logistical,funds support) 5.Relationship 6.Brand 7.Others-- please explain details Function and feature here have different meanings. For example, we say imaging is a function in a mobile phone, meanwhile feature means the imaging function has 1-megapixel camera or 2-megapixel camera.</td>
<td class="requiredFieldPrompt" colspan="4">
</tr>
<%
if(!conversionStatus.equals("0")) {
%>
<tr>
<td class="footnote" colspan="4">
<%=EncodeUtil.jsEncode(AOLMessageManager.getMessageSt("ASF","ASF_MISSING_RATE"))%></td>
</tr>
<%
}
%>
</table>
</td>
<td> </td>
</tr>