<apex:page standardController="Quotes__c" extensions="NEWCreateSWOQuoteController" showChat="false" showHeader="true" sidebar="false" action="{!init}" id="Page">
|
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.NewQuoteEntryJS)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
|
<apex:includeScript value="{! URLFOR($Resource.AWSService, 'AWSService.js') }" />
|
|
<script type="text/javascript">
|
// 20220311 PI改造 by Bright start
|
AWSService.sfSessionId = '{!GETSESSIONID()}';
|
var staticResource = JSON.parse('{!staticResource}');
|
var contactstaticResource = JSON.parse('{!contactstaticResource}');
|
|
var aws_data = {};
|
|
function Decrypt(r,dataIds,callback){
|
if (!(dataIds && dataIds.length)) {
|
if(callback)callback();
|
return;
|
}
|
|
let Foo = function(){
|
for (const id of dataIds) {
|
if (aws_data.hasOwnProperty(id)) {
|
let d = aws_data[id];
|
let $e =j$("[aws-id='"+d.dataId+ "']");
|
$e.each((i,e)=>{
|
j$(e).html(d[j$(e).attr("aws-api")]);
|
})
|
|
}
|
}
|
if(callback)callback();
|
}
|
let ids = [];
|
for (const id of dataIds) {
|
if (!aws_data.hasOwnProperty(id)) {
|
ids.push(id);
|
}
|
}
|
if (ids.length > 0) {
|
|
AWSService.search(r.searchUrl,JSON.stringify({
|
"dataIds":ids
|
}),function(data){
|
|
if(data.object && data.object.length > 0){
|
|
for(let d of data.object){
|
if(d.dataId){
|
aws_data[d.dataId] = d;
|
}
|
}
|
Foo();
|
}else{
|
if(callback)callback();
|
}
|
},r.token);
|
}else{
|
Foo();
|
}
|
}
|
|
function DecryptAll(callback){
|
let dataIds1 = [];
|
j$('[aws-id][aws-obj="Contact"]').each((i,e)=>{
|
let v = j$(e).attr('aws-id');
|
if (v) {
|
dataIds1.push(v);
|
}
|
});
|
Decrypt(contactstaticResource,dataIds1,callback);
|
|
let dataIds2 = [];
|
j$('[aws-id][aws-obj="Quotes__c"]').each((i,e)=>{
|
let v = j$(e).attr('aws-id');
|
if (v) {
|
dataIds2.push(v);
|
}
|
});
|
Decrypt(staticResource,dataIds2,callback);
|
}
|
|
j$(function(){
|
DecryptAll();
|
|
})
|
// 20220311 PI改造 by Bright end
|
|
function openPDF(){
|
|
var baseUrl = j$(escapeVfId("baseUrl")).value();
|
var Id = j$(escapeVfId("Id")).value();
|
if (Id == '') {
|
alert('Please save first Quotes');
|
return;
|
}
|
window.open(baseUrl + '/apex/SendEmail?type=Quotes&typeid=' + Id);
|
window.close();
|
|
}
|
|
function Editbtn() {
|
|
Editbtn.call();
|
}
|
|
function ReturnToSWO(){
|
var baseUrl = j$(escapeVfId("baseUrl")).value();
|
|
// "/apex/SWOPageRead?id={!QuotesPage.SWO__c}&type=Quotes"
|
window.open(baseUrl + '/apex/SWOPageRead?id={!QuotesPage.SWO__c}&type=Quotes');
|
window.close();
|
}
|
</script>
|
<style type="text/css">
|
.Page{
|
margin-left: 20px;
|
margin-right: 20px;
|
}
|
|
.title{
|
height: 30px;
|
background-color: #DFE6F0;
|
font-size: 15px;
|
color:#607799;
|
font-weight: bold;
|
line-height:30px;
|
}
|
.title1{
|
height: 15px;
|
background-color: #607799;
|
font-size: 15px;
|
color:#FFFFFF;
|
font-weight: bold;
|
}
|
|
.title2{
|
height: 15px;
|
background-color: #DFE6F0!important;
|
font-size: 15px;
|
color:#FFFFFF;
|
font-weight: bold;
|
line-height:15px;
|
|
}
|
.pbSubheader {
|
background: #BFB19C;
|
background-color: #607799!important;
|
|
|
|
}
|
.red {
|
background-color:#B22222;
|
text-align: right;
|
}
|
|
.hand{
|
font-weight:bold;
|
}
|
.centerLong {
|
text-align: center;
|
font-weight: bold;
|
}
|
.center {
|
line-height:30px;
|
height:30px;
|
text-align: center;
|
font-size: 10px;
|
color:#FFFFFF;
|
font-weight: bold;
|
}
|
|
.centerItem {
|
/*line-height:15px; */
|
height:15px;
|
text-align: left;
|
}
|
</style>
|
<apex:form id="allForm">
|
<input type="hidden" id="Id" value="{!Id}"/>
|
<apex:actionFunction name="Editbtn" action="{!Editbtn}"></apex:actionFunction>
|
<apex:actionFunction name="Save" action="{!Save}"></apex:actionFunction>
|
<apex:pageBlock title="Quotes" id="allBlock">
|
|
<apex:commandButton onclick="Editbtn();return false;" value="Edit" style="width:5%;" rerender="dummy" />
|
<apex:commandButton onclick="ReturnToSWO();return false;" value="Return To SWO" style="width:8%;" rerender="dummy" />
|
|
<apex:pageblocksection columns="1" title="QuotesInfo" id="Quotes" >
|
|
<apex:outputPanel id="allPanel">
|
<apex:pageBlock title="" id="unEditable" rendered="true">
|
<table class="formtable" width="100%" border="0">
|
<colgroup>
|
<col width="27%"/>
|
<col width="5%"/>
|
<col width="27%"/>
|
<col width="5%"/>
|
<col width="2%"/>
|
<col width="1%"/>
|
<col width="10%"/>
|
<col width="5%"/>
|
<col width="20%"/>
|
</colgroup>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<th colspan="9" class="title">Estimate</th>
|
<tr>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.CURRENCY__c.label}</td>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.CONTACT_NAME__c.label}</td>
|
</tr>
|
<tr>
|
|
<td colspan="2" align="left" ><apex:outputField id="CURRENCY" value="{!QuotesPage.CURRENCY__c}" style="width: 56%"/></td>
|
<td colspan="2" align="left" >
|
<a href="/{!QuotesPage.CONTACT_NAME__c}" aws-obj="Contact" aws-api="lastName" aws-id="{!QuotesPage.CONTACT_NAME__r.AWS_Data_Id__c}">{!QuotesPage.CONTACT_NAME__r.Name}</a>
|
</td>
|
<td colspan="2"/>
|
<td colspan="2" class="title1">Summary</td>
|
<td/>
|
<td/>
|
|
</tr>
|
<tr>
|
<td class="hand" align="left" >CUSTOMER:JOB</td>
|
|
<td/>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.CONTACT_PHONE__c.label}</td>
|
<td colspan="3"/>
|
<td class="title2">{!$ObjectType.Quotes__c.fields.SUBTOTAL__c.label}</td>
|
<td class="title2" align="left" ><apex:outputField value="{!QuotesPage.SUBTOTAL__c}" style="width: 62%"/></td>
|
<td/>
|
</tr>
|
<tr>
|
<td colspan="2" align="left" ><apex:outputField id="COMPANY" value="{!QuotesPage.COMPANY__c}"/>
|
</td>
|
<td align="left" ><apex:outputField html-aws-obj="Quotes__c" html-aws-api="contactPhone" html-aws-id="{!QuotesPage.AWS_Data_Id__c}" id="CONTACT_PHONE" value="{!QuotesPage.CONTACT_PHONE__c}"/></td>
|
<td colspan="3"/>
|
<td class="title2">{!$ObjectType.Quotes__c.fields.DISCOUNT__c.label}</td>
|
<td class="title2" align="left" ><apex:outputField value="{!QuotesPage.DISCOUNT__c}" style="width: 62%"/></td>
|
<td/>
|
</tr>
|
<tr>
|
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.DATE__c.label}</td>
|
<td ></td>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.CONTACT_FAX__c.label}</td>
|
<td colspan="3"/>
|
<td class="title2">{!$ObjectType.Quotes__c.fields.TAX__c.label}</td>
|
<td class="title2" align="left" ><apex:outputField value="{!QuotesPage.TAX__c}" style="width: 62%"/></td>
|
<td/>
|
|
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="DATE" value="{!QuotesPage.DATE__c }" />
|
</td>
|
<td></td>
|
<td align="left" ><apex:outputField id="CONTACT_FAX" value="{!QuotesPage.CONTACT_FAX__c}"/></td>
|
<td colspan="3"/>
|
<td class="title2">{!$ObjectType.Quotes__c.fields.TOTAL__c.label}</td>
|
<td class="title2" align="left" ><apex:outputField value="{!QuotesPage.TOTAL__c}" style="width: 62%"/></td>
|
<td/>
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.ESTIMATE__c.label}</td>
|
<td></td>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.CONTACT_EMAIL__c.label}</td>
|
<td/>
|
<td/>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="ESTIMATE" value="{!QuotesPage.ESTIMATE__c }" /></td>
|
<td/>
|
<td align="left" ><apex:outputField id="CONTACT_EMAIL" value="{!QuotesPage.CONTACT_EMAIL__c}"/></td>
|
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.OPPORTUNITY__c.label}</td>
|
<td></td>
|
<td class="hand" align="left" ><apex:outputField id="GSA_ORDER" value="{!QuotesPage.GSA_ORDER__c}"/>{!$ObjectType.Quotes__c.fields.GSA_ORDER__c.label}</td>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="OPPORTUNITY" value="{!QuotesPage.OPPORTUNITY__c }"/></td>
|
<td/>
|
<td colspan="2" class="hand" align="left" ><apex:outputField id="GOVERNMENT_ORDER" value="{!QuotesPage.GOVERNMENT_ORDER__c}"/>{!$ObjectType.Quotes__c.fields.GOVERNMENT_ORDER__c.label}</td>
|
</tr>
|
<tr>
|
|
<td colspan="2" class="hand" align="left" >{!$ObjectType.Quotes__c.fields.SUBSIDIARY__c.label}</td>
|
<td class="hand" colspan="3" align="left" ><apex:outputField id="SALES_TEAM_AUTO_ASSIGNMENT_OVERRIDE" value="{!QuotesPage.SALES_TEAM_AUTO_ASSIGNMENT_OVERRIDE__c}"/>{!$ObjectType.Quotes__c.fields.SALES_TEAM_AUTO_ASSIGNMENT_OVERRIDE__c.label}</td>
|
</tr>
|
|
<tr>
|
<td colspan="2" align="left" ><apex:outputField id="SUBSIDIARY" value="{!QuotesPage.SUBSIDIARY__c}"/></td>
|
<td colspan="2" class="hand" align="left" ><apex:outputField id="SALES_TEAM_AUTO_ASSIGN_ON_SAVE" value="{!QuotesPage.SALES_TEAM_AUTO_ASSIGN_ON_SAVE__c}"/>{!$ObjectType.Quotes__c.fields.SALES_TEAM_AUTO_ASSIGN_ON_SAVE__c.label}</td>
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.TAX_ID__c.label}</td>
|
<td/>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.LEAD_TIME__c.label}</td>
|
|
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="TAX_ID" value="{!QuotesPage.TAX_ID__c }" /></td>
|
<td></td>
|
<td align="left" ><apex:outputField id="LEAD_TIME" value="{!QuotesPage.LEAD_TIME__c }" style="width: 95%"/>
|
</td>
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.STATUS__c.label}</td>
|
<td/>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.BILLING_SCHEDULE__c.label}</td>
|
</tr>
|
<tr>
|
<td align="left" colspan="2"><apex:outputField id="STATUS" value="{!QuotesPage.STATUS__c }" style="width: 100%"/>
|
</td>
|
<!-- <td/> -->
|
<td align="left" ><apex:outputField id="BILLING_SCHEDULE" value="{!QuotesPage.BILLING_SCHEDULE__c }" style="width: 95%"/>
|
</td>
|
</tr>
|
<!-- <tr>
|
<td colspan="2" class="hand" align="left" >{!$ObjectType.Quotes__c.fields.DISCOUNT_WORKFLOW_TYPE__c.label}</td>
|
<td/>
|
</tr> -->
|
<!-- <tr>
|
<td colspan="2" align="left" ><apex:outputField id="DISCOUNT_WORKFLOW_TYPE" value="{!QuotesPage.DISCOUNT_WORKFLOW_TYPE__c}" style="width: 65%"/>
|
</td>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.LEAD_SOURCE__c.label}</td>
|
<td/>
|
</tr>
|
<tr>
|
<td/>
|
<td/>
|
<td align="left" ><apex:outputField id="LEAD_SOURCE" value="{!QuotesPage.LEAD_SOURCE__c}"/>
|
</td>
|
</tr> -->
|
<tr>
|
<td colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.DISCOUNT_WORKFLOW_TYPE__c.label}</td>
|
<td align="left" >{!$ObjectType.Quotes__c.fields.LEAD_SOURCE__c.label}</td>
|
<td/>
|
</tr>
|
<tr>
|
<td colspan="2" align="left" ><apex:outputField id="DISCOUNT_WORKFLOW_TYPE" value="{!QuotesPage.DISCOUNT_WORKFLOW_TYPE__c}" style="width: 65%"/>
|
</td>
|
<td align="left" ><apex:outputField id="LEAD_SOURCE" value="{!QuotesPage.LEAD_SOURCE__c}"/>
|
</td>
|
|
</tr>
|
<tr>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.DISCOUNT_STATUS__c.label}</td>
|
|
<td/>
|
<td/>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="DISCOUNT_STATUS" value="{!QuotesPage.DISCOUNT_STATUS__c}" style="width: 100%"/>
|
</td>
|
<td/>
|
<td class="hand" align="left" ><apex:outputField id="ONLINE_BILLING" value="{!QuotesPage.ONLINE_BILLING__c }"/>{!$ObjectType.Quotes__c.fields.ONLINE_BILLING__c.label}
|
</td>
|
|
</tr>
|
<tr>
|
<!-- <td/> -->
|
<td class="hand" colspan="2" align="left" ><apex:outputField id="INITIATE_APPROVAL_ROUTING" value="{!QuotesPage.INITIATE_APPROVAL_ROUTING__c }"/>{!$ObjectType.Quotes__c.fields.INITIATE_APPROVAL_ROUTING__c.label}
|
</td>
|
</tr>
|
<tr>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.DISCOUNT_STATUS_ROUTING__c.label} </td>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.ONLINE_BILLING_ADDRESS__c.label}</td>
|
|
|
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="DISCOUNT_STATUS_ROUTING" value="{!QuotesPage.DISCOUNT_STATUS_ROUTING__c}" style="width: 100%"/></td>
|
<td/>
|
<td align="left" ><apex:outputField id="ONLINE_BILLING_ADDRESS" value="{!QuotesPage.ONLINE_BILLING_ADDRESS__c}"/></td>
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.PROBABILITY__c.label}</td>
|
<td/>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.PRODUCT_SEGMENT__c.label}</td>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="PROBABILITY" value="{!QuotesPage.PROBABILITY__c }"/>
|
</td>
|
<td/>
|
<td align="left" ><apex:outputField id="PRODUCT_SEGMENT" value="{!QuotesPage.PRODUCT_SEGMENT__c}" style="width: 95%"/></td>
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.LOCATION__c.label}</td>
|
<td/>
|
<td class="hand" colspan="2" align="left" ><apex:outputField value="{!QuotesPage.FDA_REPORT_COMPLETE__c }"/>{!$ObjectType.Quotes__c.fields.FDA_REPORT_COMPLETE__c.label}</td>
|
</tr>
|
<tr>
|
|
|
<td align="left" ><apex:outputField id="LOCATION" value="{!QuotesPage.LOCATION__c }" style="width: 100%"/>
|
</td>
|
<td/>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.SWOName__c.label}</td>
|
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.TERMS__c.label}</td>
|
<td/>
|
<td align="left" >
|
<apex:outputLink value="/apex/SWOPageRead?id={!QuotesPage.SWO__c}&type=Quotes" target="LINK_{!QuotesPage.SWO__c}" ><c:PDFWbr targetStr="{!QuotesPage.SWOName__c}"/></apex:outputLink>
|
</td>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="TERMS" value="{!QuotesPage.TERMS__c }" style="width: 100%"/>
|
</td>
|
<td/>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.CONTRACT_NAME__c.label}</td>
|
|
</tr>
|
<tr>
|
<td class="hand" colspan="2" align="left" ><apex:outputField id="TERMS_OVERRIDE" value="{!QuotesPage.TERMS_OVERRIDE__c }" />{!$ObjectType.Quotes__c.fields.TERMS_OVERRIDE__c.label}
|
</td>
|
<!-- <td/> -->
|
<td align="left" ><apex:outputField id="CONTRACT_NAME" value="{!QuotesPage.CONTRACT_NAME__c}" style="width: 95%"/> </td>
|
</tr>
|
|
<tr>
|
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.PO__c.label}</td>
|
|
<td/>
|
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.QUOTE_TITLE__c.label}</td>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="PO" value="{!QuotesPage.PO__c }"/></td>
|
<td/>
|
<td align="left" ><apex:outputField id="QUOTE_TITLE" value="{!QuotesPage.QUOTE_TITLE__c}"/></td>
|
</tr>
|
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.EXPIRES__c.label}</td>
|
<td/>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.PKMS_PO_FOR_RECEIPT__c.label}</td>
|
|
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="EXPIRES" value="{!QuotesPage.EXPIRES__c }" />
|
</td>
|
<td/>
|
<td align="left" ><apex:outputField id="PKMS_PO_FOR_RECEIPT" value="{!QuotesPage.PKMS_PO_FOR_RECEIPT__c}"/></td>
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.EXP_CLOSE__c.label}</td>
|
<td/>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.REVISION_NEEDED__c.label}</td>
|
|
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="EXP_CLOSE" value="{!QuotesPage.EXP_CLOSE__c }"/></td>
|
<td/>
|
<td align="left" ><apex:outputField id="REVISION_NEEDED" value="{!QuotesPage.REVISION_NEEDED__c}" style="width: 95%"/></td>
|
</tr>
|
<tr>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.ORDER_TYPE__c.label}</td>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.COLLECTION_STATUS__c.label}</td>
|
|
</tr>
|
<tr>
|
|
<td colspan="2" align="left" ><apex:outputField id="ORDER_TYPE" value="{!QuotesPage.ORDER_TYPE__c }" style="width: 100%"/>
|
</td>
|
<td align="left" ><apex:outputField id="COLLECTION_STATUS" value="{!QuotesPage.COLLECTION_STATUS__c}" style="width: 95%"/></td>
|
</tr>
|
<tr>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.NO_CHARGE_TYPE__c.label}</td>
|
<!-- CONSOLIDATED INVOICE NUMBER -->
|
<td class="hand" colspan="2" align="left" >CONSOLIDATED INVOICE NUMBER</td>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="NO_CHARGE_TYPE" value="{!QuotesPage.NO_CHARGE_TYPE__c }" style="width: 100%"/></td>
|
<td/>
|
<td/>
|
</tr>
|
<tr>
|
<td/>
|
<td/>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.SHIP_TO_ENTITY_USE_CODE__c.label}</td>
|
</tr>
|
<tr>
|
<td/>
|
<td/>
|
<td colspan="2" align="left" ><apex:outputField id="SHIP_TO_ENTITY_USE_CODE" value="{!QuotesPage.SHIP_TO_ENTITY_USE_CODE__c}" style="width: 56%"/></td>
|
</tr>
|
<tr>
|
<!-- BILL-TO ENTITY/USE CODE -->
|
<td/>
|
<td/>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.BILL_TO_ENTITY_USE_CODE__c.label}</td>
|
</tr>
|
<tr>
|
<td/>
|
<td/>
|
<td colspan="2" align="left" ><apex:outputField id="BILL_TO_ENTITY_USE_CODE" value="{!QuotesPage.BILL_TO_ENTITY_USE_CODE__c}" style="width: 54%"/></td>
|
</tr>
|
<tr>
|
<td/>
|
<td/>
|
<td class="hand" colspan="3" align="left" >{!$ObjectType.Quotes__c.fields.INVOICE_MESSAGING__c.label}</td>
|
|
</tr>
|
<tr>
|
<td/>
|
<td/>
|
<td colspan="3" align="left" ><apex:outputField id="INVOICE_MESSAGING" value="{!QuotesPage.INVOICE_MESSAGING__c}" style="width: 63%"/></td>
|
</tr>
|
<tr>
|
<td/>
|
<td/>
|
<td class="hand" colspan="2" align="left" ><apex:outputField id="IS_SELLER_IMPORTER_OF_RECORD" value="{!QuotesPage.IS_SELLER_IMPORTER_OF_RECORD__c }" />{!$ObjectType.Quotes__c.fields.IS_SELLER_IMPORTER_OF_RECORD__c.label}
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<th colspan="9" class="title">Address</th>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.BILL_TO__c.label}</td>
|
<td/>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.SHIP_TO__c.label}</td>
|
</tr>
|
<tr>
|
<td colspan="2" align="left" ><apex:outputField html-aws-obj="Quotes__c" html-aws-api="billTo" html-aws-id="{!QuotesPage.AWS_Data_Id__c}" id="BILL_TO" value="{!QuotesPage.BILL_TO__c }" style="width: 90%;height: 80PX"/></td>
|
<td colspan="2" align="left" ><apex:outputField html-aws-obj="Quotes__c" html-aws-api="shipTo" html-aws-id="{!QuotesPage.AWS_Data_Id__c}" id="SHIP_TO" value="{!QuotesPage.SHIP_TO__c}" style="width: 90%;height: 80PX"/></td>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<th colspan="9" class="title">Shipping</th>
|
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.SHIPPING_COST__c.label}</td>
|
<td/>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.SHIPPING_TAX_RATE__c.label}</td>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="SHIPPING_COST" value="{!QuotesPage.SHIPPING_COST__c }" />
|
</td>
|
<td/>
|
<td align="left" ><apex:outputField id="SHIPPING_TAX_RATE" value="{!QuotesPage.SHIPPING_TAX_RATE__c}" style="width: 90%"/></td>
|
</tr>
|
<tr>
|
<td class="hand" colspan="4" align="left" >{!$ObjectType.Quotes__c.fields.TOTAL_TRANSACTION_ITEM_WEIGHT_KGS__c.label}</td>
|
<td/>
|
<td/>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="TOTAL_TRANSACTION_ITEM_WEIGHT_KGS" value="{!QuotesPage.TOTAL_TRANSACTION_ITEM_WEIGHT_KGS__c }"/></td>
|
<td/>
|
<td/>
|
|
</tr>
|
<tr>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.SHIPPING_CARRIER__c.label}</td>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.SHIPPING_TAX_CODE__c.label}</td>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="SHIPPING_CARRIER" value="{!QuotesPage.SHIPPING_CARRIER__c }" style="width: 100%"/></td>
|
<td/>
|
<td align="left" ><apex:outputField id="SHIPPING_TAX_CODE" value="{!QuotesPage.SHIPPING_TAX_CODE__c}" style="width: 95%"/></td>
|
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.SHIP_VIA__c.label}</td>
|
<td/>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.INCOTERM__c.label}</td>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="SHIP_VIA" value="{!QuotesPage.SHIP_VIA__c }" style="width: 100%"/>
|
</td>
|
<td/>
|
<td align="left" ><apex:outputField id="INCOTERM" value="{!QuotesPage.INCOTERM__c}" style="width: 95%"/></td>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<th colspan="9" class="title">Items</th>
|
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.DISCOUNT_ITEM__c.label}</td>
|
<td/>
|
<td class="hand" colspan="2" align="left" >{!$ObjectType.Quotes__c.fields.SWO_PART_NUMBERS__c.label}</td>
|
</tr>
|
<tr>
|
<td align="left" colspan="2"><apex:outputField id="DISCOUNT_ITEM" value="{!QuotesPage.DISCOUNT_ITEM__c }" style="width: 100%"/>
|
</td>
|
<td colspan="2" align="left" ><apex:outputField id="SWO_PART_NUMBERS" value="{!QuotesPage.SWO_PART_NUMBERS__c}"/></td>
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.RATE__c.label}</td>
|
<td/>
|
<td class="hand" align="left" ><apex:outputField id="TAX_OVERRIDE" value="{!QuotesPage.TAX_OVERRIDE__c}"/>{!$ObjectType.Quotes__c.fields.TAX_OVERRIDE__c.label}</td>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="RATE" value="{!QuotesPage.RATE__c }"/></td>
|
<td/>
|
<td/>
|
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.SWO_SERIAL__c.label}</td>
|
<td/>
|
<td/>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="SWO_SERIAL" value="{!QuotesPage.SWO_SERIAL__c }"/>
|
</td>
|
<td/>
|
<td/>
|
</tr>
|
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<th colspan="9" class="title">Messages</th>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<td class="hand" align="left" >{!$ObjectType.Quotes__c.fields.QuotesType__c.label}</td>
|
<td/>
|
<td/>
|
<td/>
|
<td/>
|
<td/>
|
<td/>
|
</tr>
|
<tr>
|
<td align="left" ><apex:outputField id="QuotesType" value="{!QuotesPage.QuotesType__c }" style="width: 70%"/>
|
</td>
|
<td/>
|
<td/>
|
<td/>
|
<td/>
|
<td/>
|
<td/>
|
</tr>
|
<tr>
|
<td colspan="9">
|
<apex:outputField value="{!QuotesPage.CUSTOMER_MESSAGE__c}" style="width: 70%"/><br/>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
</table>
|
</apex:pageBlock>
|
</apex:outputPanel>
|
|
</apex:pageblocksection>
|
<apex:pageblocksection columns="1" title="QuotesItem" id="ProductInfoList">
|
<apex:outputPanel >
|
<DIV style="OVERFLOW-Y: hidden; OVERFLOW-X:auto;width:1260px">
|
|
<div id="ProductInfoList:tablediv" style="OVERFLOW-X: hidden; OVERFLOW-Y:auto;width:4000px; height:200px">
|
|
<table id="theTable_header" border="2" style="width:4000px;border-bottom-width: 0px; font-size:11px; border-spacing:0;text-align: center;" styleClass="list">
|
|
<thead>
|
<tr style="background-color: #ccc;">
|
|
<td class="center" style ="width: 1%;text-align: center" scope="col">No</td>
|
|
|
|
<td class="center" style ="width: 2%;text-align: center" scope="col">ProductName</td>
|
<td class="center" style ="width: 3%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.QuotesItemName__c.label}</td>
|
<td class="center" style ="width: 3%;;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.PART_NUMBERNew__c.label}</td>
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.ON_HAND__c.label}</td>
|
<td class="center" style ="width: 2%;;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.QUANTITY__c.label}</td>
|
<td class="center" style ="width: 5%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.DESCRIPTION__c.label}</td>
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.PRICE_LEVEL__c.label}</td>
|
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.RATE__c.label}</td>
|
|
<td class="center" style ="width: 3%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.AMOUNT__c.label}</td>
|
|
<td class="centerLong" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.PRE_APPROVED_DISCOUNT__c.label}</td>
|
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.DISCOUNTED_RATE__c.label}</td>
|
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.EST_COST__c.label}</td>
|
|
<td class="centerLong" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.EST_GROSS_MARGIN__c.label}</td>
|
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.TAX_CODE__c.label}</td>
|
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.TAX_RATE__c.label}</td>
|
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.TAX_AMT__c.label}</td>
|
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.GROSS_AMT__c.label}</td>
|
|
<td class="center" style ="width: 4%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.LOCATION__c.label}</td>
|
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.OPTIONS__c.label}</td>
|
|
<td class="center" style ="width: 3%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.EXPECTED_SHIP_DATE__c.label}</td>
|
|
<td class="center" style ="width: 5%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.ITEM_NOTE__c.label}</td>
|
|
<td class="center" style ="width: 2%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.SERIALIZED__c.label}</td>
|
|
<td class="centerLong" style ="width: 3%;text-align: center" scope="col">{!$ObjectType.Quotes_item__c.fields.SWOName__c.label}</td>
|
</tr>
|
</thead>
|
</table>
|
|
<apex:dataTable value="{!productInfoList}" var="ProductInfo" id="theTable_content" border="2"
|
style="width:4000px;border-bottom-width: 0px; font-size:11px; border-spacing:0;text-align: left;" styleClass="list">
|
<!--No -->
|
<apex:column style="width: 1%">
|
<apex:outputText styleClass="centerItem" value="{!ProductInfo.lineNumber}" style="width:95%;text-align:left;"/>
|
</apex:column>
|
|
<apex:column style="width: 2%">
|
|
<!-- <apex:outputText styleClass="centerItem" id="ProductName" value="{!ProductInfo.productName}" style="width:100%;text-align:left;"/> -->
|
<apex:outputText styleClass="centerItem" id="ProductName" style="width:100%;text-align:left;"><c:PDFWbr targetStr="{!ProductInfo.productName}"/></apex:outputText>
|
|
</apex:column>
|
<!-- ITEM -->
|
<apex:column style="width: 3%">
|
|
|
<apex:outputLink styleClass="centerItem" value="/{!ProductInfo.quotesItemINFO.Id}" target="LINK_{!ProductInfo.quotesItemINFO.Id}" ><c:PDFWbr targetStr="{!ProductInfo.quotesItemINFO.QuotesItemName__c}"/></apex:outputLink>
|
<!-- </td> -->
|
</apex:column>
|
<!-- Part Number -->
|
<apex:column style="width: 3%">
|
<apex:outputText styleClass="centerItem" id="PART_NUMBER" style="width:95%;text-align:left;" value="{!ProductInfo.quotesItemINFO.PART_NUMBERNew__c}" />
|
</apex:column>
|
<!-- ON HAND -->
|
<apex:column style="width: 2%">
|
<apex:outputField styleClass="center" id="ON_HAND" style="width:95%;text-align:left;" value="{!ProductInfo.quotesItemINFO.ON_HAND__c}" />
|
</apex:column>
|
<!-- Quantity -->
|
<apex:column style="width: 2%">
|
|
<apex:outputText styleClass="centerItem" id="quantity" value="{!ProductInfo.quotesItemINFO.QUANTITY__c}" style="width:95%;text-align:left;"/>
|
|
<!-- </apex:outputText> -->
|
</apex:column>
|
<!-- Description -->
|
<apex:column style="width: 5%">
|
<apex:outputField styleClass="centerItem" id="Description" style="width:95%;text-align:left;" value="{!ProductInfo.quotesItemINFO.DESCRIPTION__c}" />
|
</apex:column>
|
<!-- PRICE LEVEL -->
|
<apex:column style="width: 2%">
|
<apex:outputField id="PRICE_LEVEL" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.PRICE_LEVEL__c}" />
|
</apex:column>
|
<!-- RATE -->
|
<apex:column style="width:2%">
|
|
<apex:outputText value="{0,number,###,###,##0.00}">
|
<apex:param value="{!ProductInfo.quotesItemINFO.RATE__c}"/>
|
</apex:outputText>
|
</apex:column>
|
<!-- AMOUNT -->
|
<apex:column style="width: 3%">
|
<apex:outputText value="{0,number,###,###,##0.00}">
|
<apex:param value="{!ProductInfo.quotesItemINFO.AMOUNT__c}"/>
|
</apex:outputText>
|
</apex:column>
|
<!-- PRE-APPROVED_DISCOUNT -->
|
<apex:column style="width: 2%">
|
<apex:outputField id="PRE-APPROVED_DISCOUNT" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.PRE_APPROVED_DISCOUNT__c}" />
|
</apex:column>
|
<!-- DISCOUNTED RATE -->
|
<apex:column style="width: 2%">
|
<apex:outputField id="DISCOUNTED_RATE" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.DISCOUNTED_RATE__c}" />
|
</apex:column>
|
<!-- EST. COST -->
|
<apex:column style="width: 2%">
|
<apex:outputField id="EST_COST" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.EST_COST__c}" />
|
</apex:column>
|
<!-- EST. GROSS MARGIN -->
|
<apex:column style="width: 2%">
|
<apex:outputField id="EST_GROSS_MARGIN" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.EST_GROSS_MARGIN__c}" />
|
</apex:column>
|
<!-- TAX CODE -->
|
<apex:column style="width: 2%">
|
<apex:outputField id="TAX_CODE" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.TAX_CODE__c}"/>
|
|
<!-- </apex:outputField> -->
|
</apex:column>
|
<!-- TAX RATE -->
|
<apex:column style="width: 2%">
|
<apex:outputField id="TAX_RATE" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.TAX_RATE__c}" />
|
</apex:column>
|
<!-- TAX AMT -->
|
<apex:column style="width: 2%">
|
<apex:outputText value="{0,number,###,###,##0.00}">
|
<apex:param value="{!ProductInfo.quotesItemINFO.TAX_AMT__c}"/>
|
</apex:outputText>
|
</apex:column>
|
<!-- GROSS AMT -->
|
<apex:column style="width: 2%">
|
<apex:outputText value="{0,number,###,###,##0.00}">
|
<apex:param value="{!ProductInfo.quotesItemINFO.GROSS_AMT__c}"/>
|
</apex:outputText>
|
</apex:column>
|
<!-- LOCATION -->
|
<apex:column style="width: 4%">
|
<apex:outputField id="LOCATION" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.LOCATION__c}" />
|
</apex:column>
|
<!-- OPTIONS -->
|
<apex:column style="width: 2%">
|
<apex:outputField id="OPTIONS" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.OPTIONS__c}" />
|
</apex:column>
|
<!-- EXPECTED SHIP DATE -->
|
<apex:column style="width: 3%">
|
<apex:outputField id="EXPECTED_SHIP_DATE" style="width:50%;text-align:center;" value="{!ProductInfo.quotesItemINFO.EXPECTED_SHIP_DATE__c}" />
|
</apex:column>
|
<!-- ITEM NOTE -->
|
<apex:column style="width: 5%">
|
<apex:outputField id="ITEM_NOTE" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.ITEM_NOTE__c}" />
|
</apex:column>
|
<!-- SERIALIZED -->
|
<apex:column style="width: 3%">
|
<apex:outputField id="SERIALIZED" style="width:95%;text-align:center;" value="{!ProductInfo.quotesItemINFO.SERIALIZED__c}" />
|
</apex:column>
|
<!-- SERVICE WORK ORDER -->
|
<apex:column style="width: 2%">
|
|
<apex:outputLink value="/{!ProductInfo.quotesItemINFO.SERVICE_WORK_ORDER__c}" target="LINK_{!ProductInfo.quotesItemINFO.SERVICE_WORK_ORDER__c}" ><c:PDFWbr targetStr="{!ProductInfo.quotesItemINFO.SWOName__c}"/></apex:outputLink>
|
<!-- </td> -->
|
</apex:column>
|
|
|
</apex:dataTable>
|
</div>
|
</DIV>
|
</apex:outputPanel>
|
</apex:pageblocksection>
|
<apex:commandButton onclick="Editbtn();return false;" value="Edit" style="width:5%;" rerender="dummy" />
|
<apex:commandButton onclick="ReturnToSWO();return false;" value="Return To SWO" style="width:8%;" rerender="dummy" />
|
<apex:pageBlockSection columns="1" title="Mail_Merge" id="Mail_Merge">
|
<apex:outputPanel >
|
<br/>
|
<apex:commandButton id="openPDF" value="Mail" onclick="openPDF();return false;" style="width: 5%" />
|
|
<br/>
|
<table id="mailTable" border="0" style="width: 1300PX">
|
<colgroup>
|
<col width="1%"/>
|
<col width="9%"/>
|
<col width="4%"/>
|
<col width="25%"/>
|
<col width="1%"/>
|
<col width="12%"/>
|
<col width="12%"/>
|
<col width="2%"/>
|
<col width="5%"/>
|
<col width="1%"/>
|
</colgroup>
|
<tr style="background-color: #ccc;font-size:14px;line-height: 20px;width: 98%;">
|
|
<th>VIEW</th>
|
<th>DATE</th>
|
<th>AUTHOR</th>
|
<th>MESSAGE</th>
|
<th>EMAIL SENT</th>
|
<th>PRIMARY RECIPIENT</th>
|
<th>CC</th>
|
<th>FILES</th>
|
<th>ATTACHMENTS</th>
|
<th>INTERNAL ONLY</th>
|
</tr>
|
<apex:repeat value="{!mailList}" var="mail" id="lines">
|
<tr>
|
<td><apex:outputLink value="/apex/SendEmail?id={!mail.mm.ID}&type=Quotes&typeid={!Id}&openType=View">View</apex:outputLink> <apex:outputLink value="/apex/SendEmail?id={!mail.mm.ID}&type=Quotes&typeid={!Id}&openType=Reply">Reply</apex:outputLink></td>
|
<td><apex:outputField value="{!mail.mm.DATE__c}" /></td>
|
<td><apex:outputField value="{!mail.mm.FROM__c}" /></td>
|
<td><apex:outputField value="{!mail.mm.MESSAGE__c}" /></td>
|
<td><apex:outputText value="{!mail.mm.EMAIL_SENT__c}" /></td>
|
<td><apex:outputField value="{!mail.mm.toName__c}" /></td>
|
<td><apex:outputField value="{!mail.mm.ccName__c}" /></td>
|
<td><apex:outputText value="{!mail.haveAtt}" /></td>
|
<td>
|
<apex:repeat value="{!mail.attList}" var="att" id="lines">
|
<apex:outputLink value="/{!att.Id}" target="LINK_{!att.Id}"><c:PDFWbr targetStr="{!att.FileName__c}" /></apex:outputLink>
|
<br/>
|
</apex:repeat>
|
</td>
|
<td><apex:outputText value="YES" /></td>
|
</tr>
|
|
</apex:repeat>
|
|
</table>
|
</apex:outputPanel>
|
</apex:pageBlockSection>
|
<!-- <apex:commandButton onclick="Editbtn();return false;" value="Edit" style="width:5%;" rerender="dummy" />
|
<apex:commandButton onclick="ReturnToSWO();return false;" value="Return To SWO" style="width:8%;" rerender="dummy" /> -->
|
</apex:pageBlock>
|
|
<table border="0">
|
</table>
|
</apex:form>
|
<!-- <apex:relatedList list="ProcessSteps"/> -->
|
</apex:page>
|