binxie
2023-07-11 be102ae06e8f986bd9d1a544cd2752e5fa94231a
force-app/main/default/pages/SearchProduct.page
@@ -1,11 +1,13 @@
<apex:page id="Page" standardController="Product2" extensions="SearchProductController" sidebar="false" showHeader="false"  >
<apex:page id="Page" standardController="Product2"  extensions="SearchProductController" sidebar="false" showHeader="false" lightningStylesheets="true" >
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <apex:includeScript value="/soap/ajax/32.0/connection.js"/>
    <apex:includeScript value="/soap/ajax/32.0/apex.js"/>
    <script>
        var QuoteEntryMaxLine = window.opener.QuoteEntryMaxLine;
        function setProductList() {
        var QuoteEntryMaxLine =window.opener.QuoteEntryMaxLine  ;
        function setProductList() {
            var nextLine = top.window.opener.getLastLineNoNext(window.opener.document);
            var hasCheckedCnt = 0;
            var checklist = j$("input[name='checklist']");
@@ -417,7 +419,7 @@
    </script>
    <style type="text/css">
        div#iframelike {
            color: #fff;
            color: rgba(1, 118, 211, 1);
            height: 300px;
            overflow-y: auto;
            overflow-x: hidden;
@@ -428,7 +430,9 @@
            <apex:messages styleClass="editListError"/>
        </apex:outputPanel>
        <apex:form id="mainForm">
        <apex:actionFunction action="{!searchNameisNUll}" name="searchNameisNUll"/>
            <apex:pageBlock id="idSearchSetProduct" title="{!$Label.Product_Search}">
                <apex:inputHidden id="Trade" value="{!Trade}"/>
                <table width="900" border="0" style="background-color:#DCDCDC">
                    <colgroup>
@@ -454,7 +458,11 @@
                        <td><apex:inputText id="searchName" value="{!SearchName}" style="width:200px" required="false"/></td>
<!--                        <td><apex:commandButton value="{!$Label.Search}" action="{!serContact}" style="width:100px" rerender="all,message1" onclick="blockme();" oncomplete="unblockUI();"/></td>-->
                        <!-- xudan Enterキーを対応するため、rerender、onclick、oncomplete全部なし -->
                        <td><apex:commandButton value="{!$Label.Search}" action="{!serContact}" style="width:100px" /></td>
                        <td><apex:commandButton value="{!$Label.Search}" action="{!serContact}" style="width:100px" />
</td>
                        <td>&nbsp;<apex:commandButton value="{!$Label.Add_Product}" style="width:100px;float:right;" disabled="{!Hascl}" rerender="dummy" onclick="setProductList();return false;"/></td>
                    </tr>
                    <tr>