<apex:page controller="NewQuoteIraiController" sidebar="false" action="{!init}" id="Page" lightningStylesheets="true">
|
<apex:stylesheet value="{!URLFOR($Resource.jquerysuggestcss)}"/>
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquerysuggestjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.NewQuoteIraiJS)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquerydoubletapjs)}"/>
|
<script type="text/javascript">
|
var QuoteEntryMaxLine = {!QuoteEntryMaxLine};
|
var displayCost = '{!displayCost}';
|
var quoid = '{!quoid}';
|
var Session_ID = '{!$Api.Session_ID}';
|
var Price_Valid_Period = '{!$Label.Price_Valid_Period}';
|
var Message_001 = '{!$Label.Message_001}';
|
var Message_Please_Save_Quote = '{!$Label.Please_Save_Quote}';
|
var Message_Check_Your_Clipboard = '{!$Label.Check_Your_Clipboard}';
|
var Error_Message3 = '{!$Label.Error_Message3}';
|
var Error_Message11 = '{!$Label.Error_Message11}';
|
var Error_Message29 = '{!$Label.Error_Message29}';
|
var Error_Message33 = '{!$Label.Error_Message33}';
|
var Error_Message34 = '{!$Label.Error_Message34}';
|
var Error_Message35 = '{!$Label.Error_Message35}';
|
var Error_Message36 = '{!$Label.Error_Message36}';
|
var Error_Message40 = '{!$Label.Error_Message40}';
|
var Confirm_ChangedAfterPrint = '打印后行信息有变化,是否继续操作(报价编码会变新)?';
|
var Confirm_PriceRefresh = '报价作成后{!$Label.Price_Valid_Period}天,还没有更新过价格,需要执行{!$Label.Status_Update}?';
|
var Confirm_saveBtn = '您选择了委托人员,确定只是保存吗(不进行委托)?';
|
window.sfdcPage.appendToOnloadQueue(function() { calonLoad() });
|
var openQuoteExcelImportWindow = null;
|
|
function vpClear2_delay(){
|
var vp = 'Page:mainForm:block:idVisitorPlace';
|
var vpHidden = 'Page:mainForm:block:idVisitorPlaceHidden';
|
setTimeout(
|
function() {
|
if(j$(escapeVfId(vp)).attr("jquerysuggest_skip_flag") == "false") {
|
if (j$(escapeVfId(vp)).value() != j$(escapeVfId(vpHidden)).value()) {
|
vpClear2();
|
}
|
}
|
},
|
200
|
);
|
}
|
|
function vpClear2(){
|
resetValue('Page:mainForm:block:idVisitorPlace');
|
}
|
|
//訪問場所インスタント検索
|
function setVisitorPlace(){
|
try{
|
var str = 'Page:mainForm:block:idVisitorPlace';
|
var strPage = null;
|
var options = {};
|
|
var us = j$(escapeVfId('Page:mainForm:idDayEdit:idHiddenUserStateHospital')).value();
|
|
strPage = '/apex/Xin_SearchVisitorPlace?r=' + encodeURI(us);
|
options = {minchars:3, minwords:2, resultsClass:'visitorplace_results'};
|
|
jQuery(escapeVfId(str)).unbind();
|
if (strPage != null) {
|
jQuery(escapeVfId(str)).suggest(strPage,options);
|
}
|
}catch(e){
|
alert(e);
|
}
|
}
|
|
function selectAll() {
|
var checklist = j$("input[name='checklist']");
|
var all = j$(escapeVfId("checkAll"));
|
for(var i = 0; i < checklist.length; i++){
|
if (all[0].checked == true) {
|
checklist[i].checked = true;
|
} else {
|
checklist[i].checked = false;
|
}
|
}
|
}
|
|
function iraiJs() {
|
// var username = j$(escapeVfId("Page:mainForm:block:IraiUser")).val();
|
// var userid = j$(escapeVfId("Page:mainForm:block:IraiUser_lkid")).val();
|
var username1 = j$(escapeVfId("Page:mainForm:block:j_id43:IraiUser")).val();
|
var userid = j$(escapeVfId("Page:mainForm:block:j_id43:IraiUser_lkid")).val();
|
var username2 = j$(escapeVfId("Page:mainForm:block:j_id46:IraiUser")).val();
|
//obsap 新增经销商1字段 fy start
|
var Agency1entrustc = j$(escapeVfId("Page:mainForm:block:SalesName1")).val();
|
debugger
|
//obsap 新增经销商1字段 fy end
|
sforce.connection.sessionId = Session_ID;
|
if(!userid&&username2){
|
userid=username2;
|
}
|
var resultSet = sforce.connection.query( "SELECT Email,SFDCPosition_C__c FROM User WHERE Id = '" + userid + "'");
|
var records = resultSet.getArray("records");
|
|
var mail = null;
|
var SFDCPosition;
|
if (records != null && records.length > 0) {
|
var iraiUser = records[0];
|
mail = iraiUser.Email;
|
SFDCPosition = iraiUser.SFDCPosition_C__c;
|
}
|
//obsap 新增经销商1字段 fy start
|
if(Agency1entrustc != null&&Agency1entrustc !=""&&Agency1entrustc.length > 0){
|
if (mail != null && mail.length > 0) {
|
// var Salesdepartment = '{!loginUser.Salesdepartment_text__c}';
|
//fy 20220512
|
var Salesdepartment = {!obsflag};
|
console.log('Salesdepartment:' + Salesdepartment);
|
var positioncheck = true;
|
// if (Salesdepartment == '5.华东' || Salesdepartment == '6.华南') {
|
//fy 20220512
|
if (Salesdepartment) {
|
mail = '{!obsap_mail}';
|
positioncheck = false;
|
}
|
if (positioncheck && SFDCPosition != '营业助理'){
|
alert('请选择对应的营业助理.');
|
unblockUI();
|
}
|
// 20230104 lt DB202212427301 start 注释
|
// else if (window.confirm('确定要委托该人员吗?\n' + mail)) {
|
// QuoteIrai();
|
// }
|
// 20230104 lt DB202212427301 end
|
else {
|
QuoteIrai(); // 20230104 lt DB202212427301 end
|
// unblockUI(); // 20230104 lt DB202212427301 end
|
}
|
} else {
|
alert('请选择委托人员.');
|
unblockUI();
|
}
|
}else {
|
alert('请选择第一经销商.');
|
unblockUI();
|
}
|
//obsap 新增经销商1字段 fy end
|
}
|
|
function openpdf(type) {
|
var qid = j$(escapeVfId("Page:mainForm:hiddenQuoid")).value();
|
if (qid == '') {
|
alert('请先做成报价委托。');
|
return false;
|
}
|
if (window.confirm('是否新建'+type+'报告书?')) {
|
try {
|
sforce.connection.sessionId = "{!GETSESSIONID()}";
|
var accid = j$(escapeVfId("Page:mainForm:block:idVisitorPlaceId")).value();
|
var recordType = type;
|
var repOwnerId = '{!$User.Id}';
|
|
var pdfno = sforce.apex.execute("ControllerUtil", "selectCommonSequence", {valueField: 'EvaluationPDF_NextValue__c', formatField: 'EvaluationPDF_Format__c'});
|
|
//新建OPD报告书
|
var rtn = sforce.apex.execute("Add_Report", "addReportOPWithEvaluationPDF",
|
{repOwnerId: repOwnerId,
|
reportId: null,
|
dailyReportId: null,
|
eventId: null,
|
recordType: recordType,
|
aId: accid,
|
visitor1: null,
|
visitor2: null,
|
visitor3: null,
|
visitor4: null,
|
visitor5: null,
|
opp1: null,
|
opp2: null,
|
opp3: null,
|
opp4: null,
|
opp5: null,
|
reportDate: null,
|
evaluationPDFNumber: pdfno,
|
pro1: null
|
}
|
);
|
window.open('/apex/BeforeOPDPDF?qid=' + encodeURI(qid) + '&pdfNo=' + encodeURI(pdfno), 'BeforeOPDPDF');
|
} catch(e) {
|
alert(e);
|
}
|
} else {
|
window.open('/apex/BeforeOPDPDF?qid=' + encodeURI(qid), 'BeforeOPDPDF');
|
}
|
}
|
</script>
|
<style type="text/css">
|
div#iframelike {
|
color: #fff;
|
height: 300px;
|
overflow: auto;
|
}
|
div#iframelikeheader {
|
color: #fff;
|
height: 23px;
|
overflow: auto;
|
}
|
input {
|
font-size: 10.5px;
|
}
|
body {
|
font-size: 10.5px;
|
}
|
|
.visitorplace_results {
|
border: 1px solid gray;
|
background-color: white;
|
padding: 0;
|
margin: 0;
|
list-style: none;
|
position: absolute;
|
z-index: 10000;
|
display: none;
|
overflow:auto;
|
white-space:nowrap;
|
width:400px;
|
height:250px;
|
}
|
.visitorplace_results li {
|
padding: 2px 5px 2px 0px;
|
margin-left : 2px;
|
color: #101010;
|
text-align: left;
|
}
|
</style>
|
|
<apex:form id="mainForm">
|
<apex:outputText id="hiddenQuoid" value="{!quoid}" style="display:none;"/>
|
<apex:inputHidden id="changedAfterPrint" value="{!changedAfterPrint}"/>
|
<apex:inputHidden id="productStatusUpdated" value="{!productStatusUpdated}"/>
|
<apex:inputHidden id="idHiddenUserStateHospital" value="{!loginUser.State_Hospital__c}" />
|
<apex:actionFunction action="{!setProductEntry}" name="setProductEntry" reRender="mainForm" oncomplete="unblockUI();calPriceAll();">
|
<apex:param assignTo="{!setProduct_text}" name="setProduct_text" value=""/>
|
</apex:actionFunction>
|
<apex:actionFunction action="{!excelImport}" name="excelImport" reRender="mainForm" oncomplete="unblockUI();calPriceAll();">
|
<apex:param assignTo="{!excel_text}" name="select_index" value=""/>
|
</apex:actionFunction>
|
<apex:actionFunction action="{!Save}" name="Save" reRender="mainForm,message1" oncomplete="unblockUI();"/>
|
<apex:actionFunction action="{!OppReflection}" name="OppReflection" reRender="mainForm" oncomplete="unblockUI();"/>
|
<apex:actionFunction action="{!QuoteIrai}" name="QuoteIrai" reRender="mainForm,message1" oncomplete="unblockUI();"/>
|
<apex:pageBlock id="block">
|
<apex:inputHidden value="{!quo.CurrencyIsoCode}" id="CurrencyIsoCode"/>
|
<apex:inputHidden value="{!baseUrl}" id="baseUrl"/>
|
<!-- CHAN-BJQ4VZ 精琢技术 2019/12/10 Start -->
|
<apex:inputHidden value="{!qb.Estimation_List_Price}" id="hidden_Estimation"/>
|
<apex:inputHidden value="{!qb.QuoteTotal_Page}" id="hidden_quoTotalPrice"/>
|
<apex:inputHidden value="{!qb.MultiYearWarrantyTotalPrice}" id="hidden_MultiYearWarrantyTotalPrice_out"/>
|
<!-- CHAN-BJQ4VZ 精琢技术 2019/12/10 END -->
|
<apex:outputPanel id="message1">
|
<apex:messages styleClass="editListError"/>
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!errorflg}" >
|
<table width="100%">
|
<tr>
|
<td align="left"><div class="errorMsg">{!errorMessage}</div></td>
|
</tr>
|
</table>
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!Messageflg}" >
|
<table width="100%">
|
<tr>
|
<td align="left">{!Message}</td>
|
</tr>
|
</table>
|
</apex:outputPanel>
|
<div>
|
<table border="0">
|
<tr>
|
<th style="text-align:right;width:60px;">{!$ObjectType.QuoteIrai__c.fields.IraiSubject__c.Label}</th>
|
<td style="text-align:left;width:220px;">
|
<div class="requiredInput"><div class="requiredBlock"></div><apex:inputField id="idVisitorPlace" value="{!quo.IraiSubject__c}" onblur="vpClear2_delay();" onfocus="setVisitorPlace();" style="width:210px;"/></div>
|
<apex:inputHidden id="idVisitorPlaceId" value="{!quo.Account__c}"/>
|
<apex:inputHidden id="idVisitorPlaceHidden" value="{!quo.IraiSubject__c}" />
|
<apex:inputHidden id="idVisitorPlaceHiddenId" value="{!quo.Account__c}" />
|
</td>
|
<th style="text-align:right;width:60px;">{!$ObjectType.QuoteIrai__c.fields.IraiName__c.Label}</th>
|
<td style="text-align:left;width:220px;"><apex:inputField value="{!quo.IraiName__c}" style="width:220px;"/></td>
|
<th style="text-align:right;width:60px;">{!$ObjectType.QuoteIrai__c.fields.IraiComment__c.Label}</th>
|
<td style="text-align:left;width:220px;"><apex:inputField value="{!quo.IraiComment__c}" style="width:220px;"/></td>
|
<th style="text-align:right;width:60px;">{!$ObjectType.QuoteIrai__c.fields.QuoteProportion__c.Label}</th>
|
<td style="text-align:left;width:60px;"><apex:inputField value="{!quo.QuoteProportion__c}" style="width:50px;text-align:right;"/></td>
|
<th style="text-align:left;width:20px;">%</th>
|
<th style="text-align:right;width:60px;">{!$ObjectType.QuoteIrai__c.fields.QuoteIrai_Status__c.Label}</th>
|
<td style="text-align:left;width:80px;"><apex:outputField value="{!quo.QuoteIrai_Status__c}" style="width:80px;"/></td>
|
</tr>
|
</table>
|
<!-- CHAN-BJQ4VZ 精琢技术 2019/12/10 Start -->
|
<table border="0">
|
<tr>
|
<td> </td>
|
<!-- <th style="text-align:right">{!IF(displayFlg,'产品标准定价总额','')}</th> -->
|
<th style="text-align:right;width:50px;">产品标准定价总额 : </th>
|
<td style="width:176px;">
|
<apex:outputText id="Estimation_Price" value="{0, number, ###,##0.00}"
|
style="text-align:right;width:100px;">
|
<apex:param value="{!qb.Estimation_List_Price}" />
|
</apex:outputText>
|
</td>
|
<th style="text-align:right;width:50px;">报价总额 : </th>
|
<!-- <th style="text-align:right;">{!IF(displayFlg,$Label.Total_Price,'')}</th> -->
|
<td style="width:180px;">
|
<apex:outputtext id="quoTotalPrice" value="{0, number, ###,##0.00}"
|
style="text-align:right;width:100px;">
|
<apex:param value="{!qb.QuoteTotal_Page}"/>
|
</apex:outputtext>
|
</td>
|
|
</tr>
|
</table>
|
<!-- CHAN-BJQ4VZ 精琢技术 2019/12/10 End -->
|
<table border="0">
|
<tr>
|
<th style="width:50px;"> </th>
|
<!-- 产品配套检索按钮 -->
|
<td style="width:100px;"><apex:commandButton id="SetProduct" onclick="searchSetProduct();return false;" value="{!$Label.Set_Product}" rerender="dummy"/></td>
|
<!-- excel 导出按钮 -->
|
<td style="width:100px;"><apex:commandButton onclick="openQuoteExcelImport(event);return false;" value="{!$Label.Excel_Import}" rerender="dummy"/></td>
|
<td style="text-align:right;width:80px;"><apex:commandButton rerender="dummy" id="Btn_RowDelete" onclick="radioChecker2('del');return false;" value="{!$Label.deleteLabel}" style="width:60px;"/></td>
|
<td style="width:150px;">
|
<apex:commandButton rerender="dummy" id="Btn_RowUp" onclick="radioChecker2('up');return false;" value="{!$Label.Row_Up}" style="width:60px;"/>
|
<apex:commandButton rerender="dummy" id="Btn_RowDown" onclick="radioChecker2('down');return false;" value="{!$Label.Row_Down}" style="width:60px;"/>
|
</td>
|
<th style="text-align:right;width:80px;">{!$ObjectType.QuoteIrai__c.fields.IraiUser__c.Label}</th>
|
<!-- fy 20220512 -->
|
<!-- <apex:variable value="identif1" var="identif1" rendered="{!!(loginUser !=null&&loginUser.Salesdepartment_text__c != null&&loginUser.Salesdepartment_text__c != ''&&(loginUser.Salesdepartment_text__c == '5.华东' || loginUser.Salesdepartment_text__c == '6.华南'))}" > -->
|
<apex:variable value="identif1" var="identif1" rendered="{!!(loginUser !=null&&loginUser.Salesdepartment_text__c != null&&loginUser.Salesdepartment_text__c != ''&& obsflag)}" >
|
|
<td style="width:150px;"><apex:outputPanel id="IraiUserId"><apex:inputField id="IraiUser" value="{!quo.IraiUser__c}"/></apex:outputPanel></td>
|
</apex:variable>
|
<!-- fy 20220512 -->
|
<!-- <apex:variable value="identif" var="identif" rendered="{!loginUser !=null&&loginUser.Salesdepartment_text__c != null&&loginUser.Salesdepartment_text__c != ''&&(loginUser.Salesdepartment_text__c == '5.华东' || loginUser.Salesdepartment_text__c == '6.华南')}" > -->
|
<apex:variable value="identif" var="identif" rendered="{!loginUser !=null&&loginUser.Salesdepartment_text__c != null&&loginUser.Salesdepartment_text__c != ''&& obsflag}" >
|
|
<!-- <th style="text-align:right;width:20px;">obsap人员</th> -->
|
<td style="text-align:center;width:20px;"><apex:selectList value="{!quo.IraiUser__c}" size="1" style="width:120px" id="IraiUser" onchange="ObsapUsersChange()"><apex:selectOptions value="{!ObsapUsers}" id="obsapUsersList"/></apex:selectList></td>
|
</apex:variable>
|
|
<!-- 20230104 lt DB202212427301 start-->
|
<!-- <th style="text-align:right;width:80px;">{!$ObjectType.QuoteIrai__c.fields.LastIraiUser__c.Label}</th>
|
<td style="text-align:center;width:70px;"><apex:outputField id="LastIraiUser" value="{!quo.LastIraiUser__c}"/></td> -->
|
<!-- 20230104 lt DB202212427301 end-->
|
|
<!-- 20230104 lt DB202212427301 start-->
|
<th style="text-align:right;width:190px;">紧急:</th>
|
<td style="text-align:center;width:10px;"><apex:inputField id="Urgent" value="{!quo.Urgent__c}"/></td>
|
<!-- 20230104 lt DB202212427301 end-->
|
|
<!-- 2020/02/18 精琢技术 韩部长提出先隐藏 没必要 Start-->
|
<!-- <th style="text-align:right;width:70px;">总计</th>
|
<td style="text-align:right;width:80px;">
|
<apex:outputtext id="Estimation_List_Price" value="{0, number, ###,##0.00}"><apex:param value="{!total_ListPrice}"/></apex:outputtext>
|
<apex:inputHidden id="hidden_Estimation_List" value="{!total_ListPrice}"/>
|
</td> -->
|
<!-- 2020/02/18 精琢技术 韩部长提出先隐藏 没必要 end-->
|
</tr>
|
</table>
|
<!-- CHAN-BJQ4VZ 精琢技术 2019/12/10 Start -->
|
<table>
|
<tr>
|
<td> </td>
|
</tr>
|
<tr>
|
<td style="text-align:right;width:50px;"></td>
|
<th style="text-align:right;width:50px;" rowspan="3">
|
{!$ObjectType.QuoteIrai__c.fields.MultiYearWarrantyTotalPrice__c.Label}
|
: </th>
|
<!-- <td style="width:470px;"> -->
|
<!--obsap 新增经销商1字段 fy start-->
|
<td style="width:100px;" rowspan="3">
|
<!--obsap 新增经销商1字段 fy end-->
|
<apex:outputtext style="width: :100px" id="MultiYearWarrantyTotalPrice_out" value="{0, number, ###,##0.00}"
|
>
|
<!--obsap 新增经销商1字段 fy start-->
|
<!-- style="text-align:right;width:180px;"> -->
|
<!--obsap 新增经销商1字段 fy end-->
|
<apex:param value="{!qb.MultiYearWarrantyTotalPrice}"/>
|
</apex:outputtext>
|
</td>
|
<!--obsap 新增经销商1字段 fy start-->
|
<th style="width:100px;"> </th>
|
<td style="text-align:right;width:50px;"></td>
|
<td style="text-align:right;width:50px;"></td>
|
<th colspan="2" style="width:260px;text-align:center;">{!$Label.Sales_Name}</th>
|
<!--obsap 新增经销商1字段 fy end-->
|
<!-- <apex:variable id="contractWarranty" value="{!1}" var="abc" rendered="{!IF(trade == '内貿',true,false)}">
|
|
<th style="text-align:right;width:50px;">
|
{!$ObjectType.Quote.fields.MultiYearWarrantyTotalPrice__c.label}
|
: </th>
|
<td style="width:470px;">
|
<apex:outputtext id="MultiYearWarrantyTotalPrice_out" value="{0, number, ###,##0.00}"
|
style="text-align:right;width:180px;">
|
<apex:param value="{!quo.MultiYearWarrantyTotalPrice__c}"/>
|
</apex:outputtext>
|
</td>
|
<th style="text-align:right;width:50px;">
|
{!$ObjectType.Quote.fields.multiYearWarranty__c.label}
|
: </th>
|
<td style="width:200px;"><apex:inputField id="multiYearWarranty" value="{!quo.multiYearWarranty__c}" onchange="callFromCancelgurantee_MD();" style="text-align:right;width:30px;" /></td>
|
</apex:variable> -->
|
</tr>
|
<!--obsap 新增经销商1字段 fy start-->
|
<tr>
|
<td ></td>
|
<td ></td>
|
<td ></td>
|
<th style="width:100px;text-align:right;">{!$Label.Sales_Name1}</th>
|
<td colspan="2" style="width:260px;text-align:right;"><apex:inputField style="width:230px;" id="SalesName1" value="{!quo.Agency1_entrust__c}" onChange=""/></td>
|
<!-- SWAG-CKDATG 【委托】【OBSAP-报价委托】报价委托项目改善1 fy start -->
|
<th style="width:100px;text-align:right;">多年保</th>
|
<!-- DB202212304166 【紧急-报价委托与购买意向】请将最后操作的报价委托状态放到购买意向中 fy start -->
|
<td colspan="2" style="text-align:left;"><apex:inputField id="cancelMultiyearInsurance" value="{!quo.cancelMultiyearInsurance__c}" onChange="cancelMultiyearInsurancechange()"/></td><!-- onChange="cancelMultiyearInsurancechange()"-->
|
<!-- DB202212304166 【紧急-报价委托与购买意向】请将最后操作的报价委托状态放到购买意向中 fy end -->
|
<!-- SWAG-CKDATG 【委托】【OBSAP-报价委托】报价委托项目改善1 fy end -->
|
</tr>
|
<!--obsap 新增经销商1字段 fy end-->
|
<!--DB202302464682【报价委托】报价委托改善224 fy start-->
|
<tr>
|
<td ></td>
|
<td ></td>
|
<td ></td>
|
<th style="width:100px;text-align:right;">{!$Label.Sales_Name2}</th>
|
<td colspan="2" style="width:260px;text-align:right;"><apex:inputField style="width:230px;" id="SalesName2" value="{!quo.Agency2_entrust__c}" onChange=""/></td>
|
<th style="width:100px;text-align:right;"></th>
|
<td colspan="2" style="text-align:left;"></td>
|
</tr>
|
<!--DB202302464682【报价委托】报价委托改善224 fy end-->
|
<tr>
|
<td> </td>
|
</tr>
|
</table>
|
<!-- CHAN-BJQ4VZ 精琢技术 2019/12/10 End -->
|
</div>
|
<table>
|
<tr>
|
<td> </td>
|
</tr>
|
</table>
|
<table style="width:1165px;" border="0">
|
<tr>
|
<th style="text-align:center;width:15px;"> <input type="checkbox" id="checkAll" onclick="selectAll()" style="width:10px;"/></th>
|
<th style="text-align:center;width:15px;">No</th>
|
<th style="text-align:center;width:150px;">{!$Label.Asset_No}</th>
|
<th style="text-align:center;width:100px;">{!$Label.SFDA_Status}</th>
|
<th style="text-align:center;width:300px;">{!$Label.Product_Name}</th>
|
<th style="text-align:center;width:100px;">{!$Label.Quantity}</th>
|
<!-- CHAN-BHNBX6 2019/11/20 START -->
|
<th style="text-align:center;width:50px;">保修年限</th>
|
<!-- CHAN-BHNBX6 2019/11/20 END -->
|
<th style="text-align:center;width:85px;">ListPrice</th>
|
<th style="text-align:center;width:100px;">小计</th>
|
<!-- CHAN-BHNBX6 2019/11/20 START -->
|
<th style="text-align:center;width:100px;">NoDiscount小计</th>
|
<!-- CHAN-BHNBX6 2019/11/20 END -->
|
</tr>
|
</table>
|
<div id="iframelike" style="width:1183px;">
|
<input type="hidden" id="ListPriceTotal" value="0" />
|
<input type="hidden" id="UnitPriceTotal" value="0" />
|
<apex:pageblocktable value="{!activities}" var="s" id="lists" style="width:1165px;">
|
|
<apex:column style="width:15px;" >
|
<input type="checkbox" name="checklist" value="{!s.lineNo}" style="width:10px;"/>
|
</apex:column>
|
<!-- No -->
|
<apex:column style="width:15px;text-align:right;" >
|
<apex:outputLabel id="indexNo" value="{!IF(s.PageObject.Product2__c==null,null,s.lineNo + 1)}" style="width:10px;"/>
|
</apex:column>
|
<!-- 产品编号-->
|
<apex:column style="text-align:center;width:150px;">
|
<apex:inputText id="Assert" style="width:120px;" value="{!s.Asset_Model}" onclick="searchProduct('{!s.lineNo}',this.value)" />
|
<!-- DB202212304166 【紧急-报价委托与购买意向】请将最后操作的报价委托状态放到购买意向中 fy start -->
|
<apex:inputHidden id="CanNotCancelledGurantee__c" value="{!s.CanNotCancelledGurantee}" />
|
<!-- DB202212304166 【紧急-报价委托与购买意向】请将最后操作的报价委托状态放到购买意向中 fy start -->
|
</apex:column>
|
<!-- NMPA状态 -->
|
<apex:column style="width:100px;text-align:center;">
|
<apex:outputField style="width:75px;" id="Status__c" value="{!s.PageObject.SFDA_Status__c}"/>
|
<apex:inputHidden id="SFDA" value="{!s.PageObject.SFDA_Status__c}"/>
|
</apex:column>
|
<!-- 产品名称 -->
|
<apex:column style="width:300px;">
|
<div id="Page:mainForm:block:lists:{!s.lineNo}:NameLink"><apex:outputLink style="width:300px;" value="{!baseUrl}/{!s.PageObject.Product2__c}" id="Nametext1" target="_blank">{!s.PageObject.Name__c}</apex:outputLink></div>
|
<apex:inputHidden id="Name__c" value="{!s.PageObject.Name__c}"/>
|
</apex:column>
|
<!-- 数量 -->
|
<apex:column style="text-align:center;width:100px;">
|
<apex:inputField id="Quantity" style="width:50px;text-align:right;" value="{!s.PageObject.Quantity__c}" onChange="calPrice('{!s.lineNo}')"/>
|
</apex:column>
|
<!-- 2019/11/12 保修年限 CHAN-BHNBX6 start -->
|
<apex:column style="width:50px;text-align:right;" >
|
<apex:outputLabel id="itemGuaranteePeriod" value="{!s.PageObject.GuaranteePeriod__c}" style="width:10px;"/>
|
</apex:column>
|
<!-- 2019/11/12 保修年限 CHAN-BHNBX6 end -->
|
<!-- ListPrice-->
|
<apex:column style="width:85px;text-align:right;">
|
<apex:outputPanel layout="none" rendered="{!$ObjectType.QuoteIraiLineItem__c.fields.ListPrice__c.accessible}" >
|
<apex:outputText style="width:85px;" id="ListPricetext" value="{0, number, ###,##0.00}">
|
<apex:param value="{!s.ListPrice_Page}" />
|
</apex:outputText>
|
</apex:outputPanel>
|
<apex:inputHidden id="ListPrice" value="{!s.ListPrice_Page}"/>
|
<apex:outputPanel layout="none" rendered="{!!$ObjectType.QuoteIraiLineItem__c.fields.ListPrice__c.accessible}" >
|
<span style="width:85px;text-align:right;" id="Page:mainForm:block:lists:{!s.lineNo}:ListPricetext">{!IF(s.PageObject.Product2__c == null, ' ', 0.00)}</span>
|
<script type="text/javascript">
|
j$(escapeVfId('Page:mainForm:block:lists:'+ {!s.lineNo} + ':ListPrice')).val(toNum(0));
|
</script>
|
</apex:outputPanel>
|
</apex:column>
|
<!-- 小计 -->
|
<apex:column style="width:100px;text-align:right;">
|
<apex:outputPanel layout="none" rendered="{!$ObjectType.QuoteIraiLineItem__c.fields.ListPrice__c.accessible}" >
|
<apex:outputText style="width:80px;" id="ListPriceTotalText" value="{0, number, ###,##0.00}">
|
<apex:param value="{!s.ListPriceTotal_Page}" />
|
</apex:outputText>
|
</apex:outputPanel>
|
<apex:inputHidden id="ListPriceTotal" value="{!s.ListPriceTotal_Page}"/>
|
<apex:outputPanel layout="none" rendered="{!!$ObjectType.QuoteIraiLineItem__c.fields.ListPrice__c.accessible}" >
|
<span style="width:80px;text-align:right;" id="Page:mainForm:block:lists:{!s.lineNo}:ListPriceTotalText">{!IF(s.PageObject.Product2__c == null, ' ', 0.00)}</span>
|
<script type="text/javascript">
|
j$(escapeVfId('Page:mainForm:block:lists:'+ {!s.lineNo} + ':ListPriceTotal')).val(toNum(0));
|
</script>
|
</apex:outputPanel>
|
<apex:inputHidden id="Product_Id" value="{!s.PageObject.Product2__c}"/>
|
<apex:inputHidden id="lineNo" value="{!s.lineNo}"/>
|
</apex:column>
|
<!-- CHAN-BHNBX6 NodisCount 小计 2019/11/20 START -->
|
<apex:column style="width:100px;text-align:right;">
|
<apex:outputPanel layout="none" rendered="{!$ObjectType.QuoteIraiLineItem__c.fields.ServicePrice__c.accessible}" >
|
<apex:outputText style="width:80px;" id="NoDiscountTotalText" value="{0, number, ###,##0.00}">
|
<apex:param value="{!s.NoDiscountTotal_Page}" />
|
</apex:outputText>
|
</apex:outputPanel>
|
<apex:inputHidden id="NoDiscountTotal" value="{!s.NoDiscountTotal_Page}"/>
|
<apex:inputHidden id="NoDiscount" value="{!s.NoDiscount_Page}"/>
|
<apex:outputPanel layout="none" rendered="{!!$ObjectType.QuoteIraiLineItem__c.fields.ServicePrice__c.accessible}" >
|
<span style="width:80px;text-align:right;" id="Page:mainForm:block:lists:{!s.lineNo}:NoDiscountTotalText">{!IF(s.PageObject.Product2__c == null, ' ', 0.00)}</span>
|
<script type="text/javascript">
|
debugger
|
j$(escapeVfId('Page:mainForm:block:lists:'+ {!s.lineNo} + ':NoDiscountTotal')).val(toNum(0));
|
</script>
|
</apex:outputPanel>
|
|
|
</apex:column>
|
<!-- DB202212304166 【紧急-报价委托与购买意向】请将最后操作的报价委托状态放到购买意向中 fy start -->
|
<!-- <apex:column style="width:100px;text-align:right;">
|
<apex:outputPanel layout="none" rendered="{!IF(quo.cancelMultiyearInsurance__c =='要' ||(quo.cancelMultiyearInsurance__c =='不要' && s.CanNotCancelledGurantee == 'true' ),true,false)}" >
|
<apex:outputText style="width:80px;" id="NoDiscountTotalText" value="{0, number, ###,##0.00}">
|
<apex:param value="{!s.NoDiscountTotal_Page}" />
|
</apex:outputText>
|
</apex:outputPanel>
|
<apex:inputHidden id="NoDiscountTotal" value="{!s.NoDiscountTotal_Page}"/>
|
<apex:inputHidden id="NoDiscount" value="{!s.NoDiscount_Page}"/>
|
<apex:outputPanel layout="none" rendered="{!IF(quo.cancelMultiyearInsurance__c =='不要'&& s.CanNotCancelledGurantee == 'false' ,true,false)}" >
|
<span style="width:80px;text-align:right;" id="Page:mainForm:block:lists:{!s.lineNo}:NoDiscountTotalText">{!IF(s.PageObject.Product2__c == null, ' ', 0.00)}</span>
|
<script type="text/javascript">
|
j$(escapeVfId('Page:mainForm:block:lists:'+ {!s.lineNo} + ':NoDiscountTotal')).val(toNum(0));
|
</script>
|
</apex:outputPanel>
|
</apex:column> -->
|
<!-- DB202212304166 【紧急-报价委托与购买意向】请将最后操作的报价委托状态放到购买意向中 fy end -->
|
<!-- CHAN-BHNBX6 NodisCount 小计 2019/11/20 END -->
|
</apex:pageBlockTable>
|
</div>
|
|
<BR></BR>
|
<table border="0">
|
<tr>
|
<td style="width:550px;" align="right">
|
<apex:inputField value="{!quo.Note__c}" style="width:550px;height:55px;"/>
|
</td>
|
<td>
|
<table border="0">
|
<tr>
|
<th style="width:15px"> </th>
|
<!-- SWAG-CKDATG 【委托】【OBSAP-报价委托】报价委托项目改善1 fy start -->
|
<td style="width:100px;" align="right"><apex:commandButton id="QuoteIraiBtn" action="{!checkIraiUser}" reRender="IraiUserId,message1" onclick="blockme();" oncomplete="iraiJs();return false;" value="发送委托邮件" style="width:90px;" disabled="{!Save_button}"/></td>
|
<!-- SWAG-CKDATG 【委托】【OBSAP-报价委托】报价委托项目改善1 fy end -->
|
<td style="width:100px;" align="right"><apex:commandButton action="{!checkIraiUser}" reRender="IraiUserId,hiddenQuoid,message1" onclick="blockme();" oncomplete="save2btn();return false;" value="{!$Label.Save_Button}" style="width:90px;" disabled="{!Save_button}" /></td>
|
<!-- 20230109 lt DB202212427301 start 注释 -->
|
<!-- <td style="width:100px;" align="right"><apex:commandButton onclick="oppReflection2btn();return false;" rerender="hiddenQuoid" value="{!$Label.Opp_Button}" style="width:90px;" disabled="{!Save_button}"/></td>
|
<td style="width:100px;" align="right"><apex:commandButton action="{!Back}" rerender="hiddenQuoid" value="不保存(返回)" style="width:90px;"/></td>
|
<td style="width:100px;" align="right"><apex:commandButton value="产品试用评价OPD" style="width:95px;" onclick="openpdf('OPD');return false;" disabled="{!pdf_button}"/></td>
|
<td style="width:100px;" align="right"><apex:commandButton value="产品试用评价SIS" style="width:95px;" onclick="openpdf('SIS');return false;" disabled="{!pdf_button}"/></td> -->
|
<!-- 20230109 lt DB202212427301 end 注释 -->
|
</tr>
|
</table>
|
</td>
|
</tr>
|
</table>
|
</apex:pageBlock>
|
</apex:form>
|
</apex:page>
|