buli
2023-05-22 71b93327e8f3fb3bffffc7c033c1f782e7b6ab32
force-app/main/default/pages/RepairPCL.page
@@ -10,9 +10,10 @@
<style>
   
   /* div#out_Div table th, div#out_Div>table>tbody>tr.headerRow>td{
    /*div#out_Div_L table th, div#out_Div_L>table>tbody>tr.headerRow>td,*/
    div#out_Div table th, div#out_Div>table>tbody>tr.headerRow>td{
        white-space: normal;
    }*/
    }
    
    td .dateFormat  {
@@ -29,19 +30,19 @@
  position:relative;
  overflow: hidden;
  float:left;
  width:1000px;
  width:700px;
}
div#out_Div_L {
  position:relative;
  overflow: hidden;
  float:left;
  width: 500px;
  width: 547px;
}
div#in_Div {/* tbodyが入っている。ここがスクロール対象*/
  position:relative;
  overflow: auto;  /*スクロールバー*/
  float:left;
  width:1000px;
  width:700px;
  height: 100px; /* tbodyを表示する高さ、後でjsにて調整 */
}
div#in_Div_L {
@@ -49,6 +50,7 @@
  overflow: hidden;
  float:left;
  height: 100px;
  width: 547px;
}
body .pbBody table.list tr.headerRow td {
@@ -72,24 +74,22 @@
  padding:0px 0px 0px 1px;
  border-width: 0px 0px 1px 1px; vertical-align: middle; word-break:break-all;
}
@-moz-document url-prefix() {
body .pbBody table.list tr.dataRow td.dataCellBorder1 {padding:0px 0px 0px 0px; border-width: 0px 0px 1px 1px; vertical-align: middle; word-break:break-all;}
}
table.list {table-layout: fixed;}
table.list td {width:100px;}
table.list td select {width:85%;}
table.list td input {width:85%;}
table.list td select {width:95%;}
table.list td input {width:95%;}
table.list td textarea {
  height:50px;
  width:70%;
  width:90%;
}
table.list .col_Name {width:110px;}
table.list .col_Service_Repair_No__c {width:49px;}
table.list .col_Account__c {width:123px;}
table.list .col_Account__c {width:115px;}
table.list .col_Department_Name__c {width:59px;}
table.list .col_State_Hospital__c {width:69px;}
table.list .col_OwnershipMachine_No__c {width:69px;}
@@ -165,7 +165,7 @@
                    <tr>
                        <td width="150px">
                            <apex:commandButton action="{!save}" value="保存" rerender="allPanel" onclick="blockme();" oncomplete="unblockUI();" style="height:30px;width:60px;"/>&nbsp;&nbsp;
                            <apex:commandButton value="检索" onclick="searchOppJs();return false;" style="height:30px;width:60px;"/>
                            <apex:commandButton value="检索" onclick="searchOppJs();return false;"  style="height:30px;width:60px;"/>
                        </td>
                        <td width="1000px">
                            <apex:pageMessages />
@@ -183,9 +183,7 @@
                                  从&nbsp;<apex:inputField value="{!con1.BirthDate}" id="fromDateId"/> 
                                 到&nbsp;<apex:inputField value="{!con2.BirthDate}" id="toDateId"/>
                        </td>
<!--                         <td width="30px"><apex:commandButton value="标记" onclick="markOpp('{!$Label.BackgroundColor}');return false;" rerender="allPanel"/></td> -->
<!--                         <td width="10px"></td> -->
<!--                         <td width="80px">只询价&nbsp;<apex:inputCheckbox value="{!onlyOpp}" /></td> -->
                        <td>显示 <apex:selectList value="{!limits}" size="1" onchange="searchOppJs();return false;"><apex:selectOptions value="{!limitOpts}"/></apex:selectList> 条数据</td>
                        <td width="10px"></td>
                        <td width="70px"><a href="#" onclick="expandAll();return false;" style="text-decoration: underline;">全部展开</a></td>
@@ -219,10 +217,9 @@
            </apex:pageBlock>
            
            <apex:pageBlock id="oppBlock" tabStyle="Report">
<!--                <apex:pageblocksection columns="1" id="oppSection">-->
                <apex:outputPanel >
                    <apex:inputHidden id="oppCount" value="{!oppCount}"/>
                    <div id="out_Div_L" >
                    <div id="out_Div_L">
                        <table class="list" style="border-bottom-width: 0px; font-size:11px; border-spacing:0;" border="" id="tableHeader_L">
                            <tr class="dataRow" height="1px">
                            <apex:variable value="{!0}" var="cnt" />
@@ -388,9 +385,6 @@
    // list の headerRow の tdに toggleWidth() を追加
    bindTdToggleWidth();
});
var elements = document.getElementsByTagName("select");
for (i = 0; i < elements.length; i++) {
@@ -415,16 +409,14 @@
        input[i].style.width = "95%";
    }
}
//add by zzm  2023/4/26 -----start----
j$('div#in_Div').scroll(function() {
    j$('div#out_Div').scrollLeft(j$(this).scrollLeft());
});
j$('div#in_Div').scroll(function() {
    j$('div#in_Div_L').scrollTop(j$(this).scrollTop());
});
windowResize();
//add by zzm  2023/4/26 -----end----
resizeTable();
// windowResize();
</script>
        </apex:outputPanel>
    </apex:form>