<apex:page id="Page" Controller="NewCrossHighOpportunityController" sidebar="true" showHeader="true" action="{!init}">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
|
<script>
|
function saveJs() {
|
blockme();
|
saveBtn();
|
}
|
|
function saveYesJs() {
|
blockme();
|
saveBtnYes();
|
}
|
|
function saveNoJs() {
|
blockme();
|
saveBtnNo();
|
}
|
|
function cancelJs() {
|
var baseUrl = '{!baseUrl}';
|
var rtUrl = '{!rtUrl}';
|
if (rtUrl == 'null' || rtUrl == '') {
|
rtUrl = '{!conId}';
|
}
|
window.location.href = baseUrl + "/" + rtUrl;
|
}
|
</script>
|
|
<apex:form id="mainForm">
|
<apex:actionFunction action="{!saveBtn}" name="saveBtn" reRender="mainForm,message" oncomplete="unblockUI();"/>
|
<apex:actionFunction action="{!saveBtnYes}" name="saveBtnYes" reRender="mainForm,message" oncomplete="unblockUI();"/>
|
<apex:actionFunction action="{!saveBtnNo}" name="saveBtnNo" reRender="mainForm,message" oncomplete="unblockUI();"/>
|
|
<apex:outputPanel id="message">
|
<apex:messages styleClass="editListError"/>
|
</apex:outputPanel>
|
|
<input type="hidden" id="hasError" value="{!hasError}"/>
|
<input type="hidden" id="isDealerPage" value="{!isDealerPage}"/>
|
|
<apex:pageBlock id="idSearchSetProduct" title="新建询价" tabStyle="Opportunity">
|
<apex:pageBlockButtons location="top">
|
<apex:commandButton style="width:50px" onclick="saveJs();" value="保存" rerender="dummy" rendered="{!IF(hasError == true, false, true)}"/>
|
<apex:commandButton style="width:50px" onclick="cancelJs();" value="取消" rerender="dummy" rendered="{!IF(hasError == true, false, true)}"/>
|
<apex:commandButton style="width:50px" onclick="saveYesJs();" value="是" rerender="dummy" rendered="{!IF(hasError == true, true, false)}"/>
|
<apex:commandButton style="width:50px" onclick="saveNoJs();" value="否" rerender="dummy" rendered="{!IF(hasError == true, true, false)}"/>
|
</apex:pageBlockButtons>
|
|
<apex:pageBlockSection title="询价信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="询价名称" for="opp_Name"/>
|
<apex:inputField value="{!opp.Name}" id="opp_Name"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="产品分类" for="opp_ProductSegment"/>
|
<apex:inputField value="{!opp.ProductSegment__c}" id="opp_ProductSegment" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="客户名" for="opp_Account"/>
|
<apex:inputField value="{!opp.AccountId}" id="opp_Account" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="询价币种" for="opp_CurrencyIsoCode"/>
|
<apex:inputField value="{!opp.CurrencyIsoCode}" id="opp_CurrencyIsoCode"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="类型" for="opp_Type"/>
|
<apex:inputField value="{!opp.Type}" id="opp_Type"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="预算金额" for="opp_BudgetAmount"/>
|
<apex:inputField value="{!opp.BudgetAmount__c}" id="opp_BudgetAmount"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="整机/零件" for="opp_MachineParts"/>
|
<apex:inputField value="{!opp.Machine_Parts__c}" id="opp_MachineParts"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="金额" for="opp_Amount"/>
|
<apex:inputField value="{!opp.Amount}" id="opp_Amount"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="审批人" for="opp_DealerSelectOwner"/>
|
<apex:inputField value="{!opp.DealerSelectOwner__c}" id="opp_DealerSelectOwner" required="true"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="结果信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="预定下单日期" for="opp_ExpectedOrderDate"/>
|
<apex:inputField value="{!opp.ExpectedOrderDate__c}" id="opp_ExpectedOrderDate"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="希望出货日期" for="opp_ExpectedDeliveryDate"/>
|
<apex:inputField value="{!opp.ExpectedDeliveryDate__c}" id="opp_ExpectedDeliveryDate"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="附加信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="潜在客户来源" for="opp_LeadSource"/>
|
<apex:inputField value="{!opp.LeadSource}" id="opp_LeadSource" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="内贸 / 外贸" for="opp_TradeType"/>
|
<apex:inputField value="{!opp.TradeType__c}" id="opp_TradeType" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="System" for="OppSystem__c"/>
|
<apex:inputField value="{!opp.SystemNew__c}" id="OppSystem__c" required="true"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="销售方式" for="opp_SalesChannel"/>
|
<apex:inputField value="{!opp.SalesChannel__c}" id="opp_SalesChannel" required="true"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="经销商相关信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="代理商名" for="opp_Dealer"/>
|
<apex:inputField value="{!opp.Dealer__c}" id="opp_Dealer"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="代理商销售担当者名" for="opp_DealerSalesStaffName"/>
|
<apex:inputField value="{!opp.DealerSalesStaffName__c}" id="opp_DealerSalesStaffName"/>
|
</apex:pageBlockSectionItem>
|
|
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="中间商名" for="opp_SubDealer"/>
|
<apex:inputField value="{!opp.SubDealer__c}" id="opp_SubDealer"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="代理商服务担当者名" for="opp_DealerService"/>
|
<apex:inputField value="{!opp.DealerService__c}" id="opp_DealerService"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="跨区域销售" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="合作区域负责人" for="HeadOfCooperationArea__c"/>
|
<apex:inputField value="{!opp.HeadOfCooperationArea__c}" id="HeadOfCooperationArea__c"/>
|
</apex:pageBlockSectionItem>
|
|
</apex:pageBlockSection>
|
|
|
<apex:pageBlockSection title="竞争者信息" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品1" for="opp_CompetitorProduct"/>
|
<apex:inputField value="{!opp.Competitor_Product__c}" id="opp_CompetitorProduct"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号1" for="opp_CompetitorProductCode"/>
|
<apex:inputField value="{!opp.CompetitorProductCode__c}" id="opp_CompetitorProductCode"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品2" for="opp_CompetitorProduct2"/>
|
<apex:inputField value="{!opp.Competitor_Product2__c}" id="opp_CompetitorProduct2"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号2" for="opp_CompetitorProductCode2"/>
|
<apex:inputField value="{!opp.CompetitorProductCode2__c}" id="opp_CompetitorProductCode2"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品3" for="opp_CompetitorProduct3"/>
|
<apex:inputField value="{!opp.Competitor_Product3__c}" id="opp_CompetitorProduct3"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号3" for="opp_CompetitorProductCode3"/>
|
<apex:inputField value="{!opp.CompetitorProductCode3__c}" id="opp_CompetitorProductCode3"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品4" for="opp_CompetitorProduct4"/>
|
<apex:inputField value="{!opp.Competitor_Product4__c}" id="opp_CompetitorProduct4"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号4" for="opp_CompetitorProductCode4"/>
|
<apex:inputField value="{!opp.CompetitorProductCode4__c}" id="opp_CompetitorProductCode4"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品5" for="opp_CompetitorProduct5"/>
|
<apex:inputField value="{!opp.Competitor_Product5__c}" id="opp_CompetitorProduct5"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号5" for="opp_CompetitorProductCode5"/>
|
<apex:inputField value="{!opp.CompetitorProductCode5__c}" id="opp_CompetitorProductCode5"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品6" for="opp_CompetitorProduct6"/>
|
<apex:inputField value="{!opp.Competitor_Product6__c}" id="opp_CompetitorProduct6"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号6" for="opp_CompetitorProductCode6"/>
|
<apex:inputField value="{!opp.CompetitorProductCode6__c}" id="opp_CompetitorProductCode6"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品7" for="opp_CompetitorProduct7"/>
|
<apex:inputField value="{!opp.Competitor_Product7__c}" id="opp_CompetitorProduct7"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号7" for="opp_CompetitorProductCode7"/>
|
<apex:inputField value="{!opp.CompetitorProductCode7__c}" id="opp_CompetitorProductCode7"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品8" for="opp_CompetitorProduct8"/>
|
<apex:inputField value="{!opp.Competitor_Product8__c}" id="opp_CompetitorProduct8"/>
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="竞争产品型号8" for="opp_CompetitorProductCode8"/>
|
<apex:inputField value="{!opp.CompetitorProductCode8__c}" id="opp_CompetitorProductCode8"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
<apex:pageBlockSection title="备注" columns="2">
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="备注" for="opp_Remark"/>
|
<apex:inputField value="{!opp.Remark__c}" id="opp_Remark" style="width: 75%;"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
|
</apex:pageBlock>
|
</apex:form>
|
|
</apex:page>
|