From 99b667bdfd8d4fd4d56c2952510169d7f7be794c Mon Sep 17 00:00:00 2001
From: 沙世明 <shashiming@prec-tech.com>
Date: 星期四, 09 三月 2023 17:12:43 +0800
Subject: [PATCH] 产品报价金额自动计算

---
 force-app/main/default/pages/NewQuoteEntry.page |   41 +++++++++++++++++++++++++++++++++--------
 1 files changed, 33 insertions(+), 8 deletions(-)

diff --git a/force-app/main/default/pages/NewQuoteEntry.page b/force-app/main/default/pages/NewQuoteEntry.page
index f00ec02..559cf10 100644
--- a/force-app/main/default/pages/NewQuoteEntry.page
+++ b/force-app/main/default/pages/NewQuoteEntry.page
@@ -1,6 +1,6 @@
 <!--<apex:page standardController="Quote" extensions="NewQuoteEntryController" sidebar="false" action="{!init}" id="Page">
 -->
-<apex:page controller="NewQuoteEntryController" sidebar="false" action="{!init}" id="Page">
+<apex:page controller="NewQuoteEntryController" sidebar="false" action="{!init}" id="Page" lightningStylesheets="true" >
     <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
     <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
     <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
@@ -37,7 +37,7 @@
         // }
         //dialog 寮圭獥 end 
         // 娣诲姞琛� html鐗规�у鍔犳粦鍔ㄦ潯 绮剧悽鎶�鏈� wql 2021/02/09 end 
-
+            debugger
         var QuoteEntryMaxLine = {!QuoteEntryMaxLine};
         var trade = '{!oppInfo.Trade}';
         var displayCost = '{!displayCost}';
@@ -191,6 +191,7 @@
         <apex:inputHidden id="changedAfterPrint" value="{!changedAfterPrint}"/>
         <apex:inputHidden id="changedAfterBid" value="{!changedAfterBid}"/>
         <apex:inputHidden id="filg" value="{!filg}" />
+        <apex:inputHidden id="SkipQuotefilg" value="{!SkipQuotefilg}" />
         <apex:inputHidden id="productStatusUpdated" value="{!productStatusUpdated}"/>
         <!-- 20211011 lt add MarkRed();-->
         <apex:actionFunction action="{!setProductEntry}" name="setProductEntry" reRender="mainForm" oncomplete="unblockUI();calPriceAll();MarkRed();">
@@ -257,6 +258,10 @@
             <apex:inputHidden value="{!oppInfo.Authorized_DB_No}" id="Authorized_DB_No" rendered="{!displayFlg}"/>
             <apex:inputHidden value="{!oppInfo.If_Need_Authorize}" id="If_Need_Authorize" rendered="{!displayFlg}"/>
             <!-- LHJ End -->
+            <!-- DB202303051651 浜у搧鎶ヤ环閲戦鑷姩璁$畻 ssm start -->
+            <apex:inputHidden id="rateHospital" value="{!oppInfo.rate_hospital}"/>
+            <apex:inputHidden id="rateAgency1" value="{!oppInfo.rate_agency1}"/>
+            <!-- DB202303051651 浜у搧鎶ヤ环閲戦鑷姩璁$畻 ssm end -->
 
             <apex:outputPanel id="message1">
                 <apex:messages styleClass="editListError"/>
@@ -299,11 +304,12 @@
                     <tr>
                         <th style="text-align:right">{!IF(displayFlg,'浜у搧鏍囧噯瀹氫环鎬婚','')}</th>
                         <td style="text-align:right;"><apex:outputText id="Estimation_List_Price" style="display:{!IF(displayFlg, '', 'none')}" value="{0, number, ###,##0.00}"><apex:param value="{!qb.Estimation_List_Price}" /></apex:outputText></td>
-                        <th style="text-align:right;">{!IF(displayFlg,$Label.Total_Price,'')}</th>
-                        <td><apex:inputField id="quoTotalPrice" value="{!quo.QuoteTotal_Page__c}" style="text-align:right;" rendered="{!displayFlg}" onchange="quoteTotalPriceAction()"/></td>
+                        <th style="text-align:right;">{!IF(displayFlg,$Label.Total_Price,'')}</th><!--obsap 缁忛攢鍟�1鍚堝悓閲戦璁$畻 fy  html-disabled="true" -->
+                        <td><apex:inputField id="quoTotalPrice" value="{!quo.QuoteTotal_Page__c}" style="text-align:right;" rendered="{!displayFlg}" onchange="quoteTotalPriceAction()" html-disabled="true"/></td>
                         <th style="text-align:right;">{!IF(displayFlg,$Label.Contact_Price,'')}</th>
                             <!--    2018/09/28 CHAN-B4YAB8 缁忛攢鍟嗗崟浠疯绠� start -->
-                        <td><div class="requiredInput"><div class="requiredBlock"></div><apex:inputField id="Dealer_Final_Price" value="{!quo.Dealer_Final_Price_Page__c}" style="text-align:right;" rendered="{!displayFlg}" onChange="calFromContactPrice();setOCMAmount();quoteAgencyTotalPriceAction1('OCM鐩存帴閿�鍞�');"/></div></td>
+                             <!-- fy obsap  <div class="requiredBlock"> </div>-->
+                        <td><div class="requiredInput"><apex:inputField id="Dealer_Final_Price" value="{!quo.Dealer_Final_Price_Page__c}" style="text-align:right;" rendered="{!displayFlg}" onChange="calFromContactPrice();setOCMAmount();quoteAgencyTotalPriceAction1('OCM鐩存帴閿�鍞�');"/></div></td>
                             <!--    2018/09/28 CHAN-B4YAB8 缁忛攢鍟嗗崟浠疯绠� end -->
                         <th style="text-align:right;">{!IF(displayFlg,$Label.Forecast_Amounts,'')}</th>
                         <td style="text-align:right;"><apex:outputLabel id="Wholesale_Price" value="{!oppInfo.Wholesale_Price}" style="display:{!IF(displayFlg, '', 'none')}"/></td>
@@ -368,7 +374,7 @@
                     <th style="text-align:right;width:50px;">
                         {!$ObjectType.Quote.fields.MultiYearWarrantyTotalPrice__c.label}
                     :&nbsp;</th>
-                    <td style="width:470px;">
+                    <td style="width:370px;">
                         <apex:outputtext id="MultiYearWarrantyTotalPrice_out" value="{0, number, ###,##0.00}" 
                         style="text-align:right;width:180px;">
                             <apex:param value="{!quo.MultiYearWarrantyTotalPrice__c}"/>
@@ -400,13 +406,29 @@
                     </div>
                     </td>
                      
-                    <th style="text-align:right;width:50px;">
+                    <th style="text-align:right;width:20px;">
                         {!$ObjectType.Quote.fields.multiYearWarranty__c.label}
                     :&nbsp;</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>
                     <!-- 澶栬锤澶氬勾淇� 鍙栨秷nodiscount 鍚堣  绮剧悽鎶�鏈� wql 2021/01/18 end -->
                 </tr>
+                <!-- SWAG-CKDATG 銆愬鎵樸�戙�怬BSAP-鎶ヤ环濮旀墭銆戞姤浠峰鎵橀」鐩敼鍠�1 fy start -->
+                <tr>
+                    <th style="text-align:right;width:30px;">&nbsp;</th>
+                    <th style="text-align:left;width:50px;">{!$ObjectType.Quote.fields.QuotationChange__c.label}:&nbsp;</th>
+                    <td style="width:190px;"><apex:inputField id="QuotationChange" value="{!quo.QuotationChange__c}"  style="width:205px; text-align:left;" />
+                    </td>
+                    <th style="text-align:right;width:50px;">{!$ObjectType.Quote.fields.MainEngineWithoutMonitor__c.label}:&nbsp;</th>
+                    <td style="width:50px;"><apex:inputField id="RemarksOnChanges" value="{!quo.MainEngineWithoutMonitor__c}"  style=" text-align:center;" />
+                    </td>
+                    <th style="text-align:right;width:50px;">
+                        {!$ObjectType.Quote.fields.Interdepartmental__c.label}
+                    :&nbsp;</th>
+                    <td style="width:200px;"><apex:inputField id="Interdepartmental" value="{!quo.Interdepartmental__c}" onchange="callFromCancelgurantee_MD();" style="text-align:right;width:30px;" /></td>
+                </tr>
+                <!-- SWAG-CKDATG 銆愬鎵樸�戙�怬BSAP-鎶ヤ环濮旀墭銆戞姤浠峰鎵橀」鐩敼鍠�1 fy end -->
                 <tr>
                     <td>&nbsp;</td>
                 </tr>
@@ -490,7 +512,10 @@
                         <apex:outputLabel id="indexNo" value="{!IF(s.PageObject.Id__c==null,null,s.lineNo + 1)}" style="width:10px;"/>
                     </td>
                     <td class="dataCell" style="text-align:center;width:125px;">
-                        <apex:inputText id="Assert" style="width:95%;" value="{!s.Asset_Model}" onclick="searchProduct('{!s.lineNo}',this.value)" />
+                        <!-- Celon璇环淇敼 2022-04-24 ssm start -->
+                        <!-- <apex:inputText id="Assert" style="width:95%;" value="{!s.Asset_Model}" onclick="searchProduct('{!s.lineNo}',this.value)" /> -->
+                        <apex:inputText id="Assert" style="width:95%;" value="{!s.Asset_Model}" onclick="searchProduct('{!s.lineNo}',this.value,'{!oppInfo.CelonOpportunity}')" />
+                        <!-- Celon璇环淇敼 2022-04-24 ssm end -->
                     </td>
                     <td class="dataCell" id="{!Text(cnt-1)}:td_Status__c" style="width:70px;text-align: center;">
                         <apex:outputField style="width:75px;" id="Status__c" value="{!s.PageObject.SFDA_Status__c}"/>

--
Gitblit v1.9.1