19626
2023-10-23 1727a4f4d02e429475608e60f142a63bc24127bc
force-app/main/default/pages/CheckAllOlympusAsset.page
@@ -4,6 +4,7 @@
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
    <style>
        .dateFormat  {
            display: none;
        }
@@ -37,12 +38,12 @@
        div#in_Div_L {
            position: relative;
            width: 745px;
            height: 451px;
            height: 470px !important;
        }
        div#in_Div_R {
            position: relative;
            overflow: auto;
            height: 451px;
            height: 485px !important;
            margin-left: 686px;
            margin-top: -451px;
        }
@@ -163,6 +164,22 @@
        // 改变table尺寸
        var heightAjustment = 120;
        var widthAjustment = 30;
        function showCalendar(inputId, position) {
        // 使用jQuery UI DatePicker或其他日期选择器库,将日历弹出到指定的位置
        // 这里假设您使用了jQuery UI DatePicker作为示例
        $("#" + inputId).datepicker({
            // 在这里配置DatePicker的选项
            // 比如,设置日期选择器的位置
            beforeShow: function(input, inst) {
                inst.dpDiv.addClass(position);
            }
        });
        // 手动触发日期选择器的显示
        $("#" + inputId).datepicker('show');
    }
        function windowResize() {
            blockHeight = j$(window).innerHeight() - j$(escapeVfId('allPage:allForm:searchBlock')).height() - j$(escapeVfId('allPage:allForm:dataBlock:pageBlockButton1')).height() - j$('table#msg').height() - heightAjustment;
            sbwidth = scrollbarWidth();
@@ -203,6 +220,7 @@
                j$('div#in_Div_R').css('width', (R_width-blockWidth-240 + sbwidth) + 'px');
            }
        }
        // 全选功能
        function selectAllJs() {
            j$(escapeVfId('checker')).prop('disabled', true);
@@ -588,7 +606,7 @@
                            <td class="blankStyle"></td>
                            <td class="labelStyle">消耗品有效期至</td>
                            <td class="inputTextStyle">
                                <apex:inputText id="consumable_Guaranteen_endStr" value="{!searchB.consumable_Guaranteen_endStr}" size="12" onfocus="DatePicker.pickDate(true, '{!$Component.consumable_Guaranteen_endStr}', false)" />
                                <apex:inputText id="consumable_Guaranteen_endStr" value="{!searchB.consumable_Guaranteen_endStr}" size="12" onfocus="DatePicker.pickDate(true, '{!$Component.consumable_Guaranteen_endStr}', false);showCalendar('consumable_Guaranteen_endStr','right');" />
                            </td>
                            <td class="blankStyle"></td>
                        </tr>
@@ -999,7 +1017,7 @@
                        <tr class="dataRow" id="tableData_L_{!Cnt_L}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}">
                            <!-- 全选 -->
                            <td class="dataCellBorder1" style="width:20px" align="center">
                                <apex:inputCheckbox id="rowCheck" value="{!eachAssetData.isCheck}" disabled="{!IF((internalAssetLocationLogin != 'All' && eachAssetData.assetQuertResult['Internal_asset_location__c'] != internalAssetLocationLogin), true, false)}" onchange="checkboxOnclick(); return false;" />
                                <apex:inputCheckbox id="rowCheck" value="{!eachAssetData.isCheck}" disabled="{!IF(columnLeftRWMap[leftApiList[0][0]]=='r' || (internalAssetLocationLogin != 'All' && eachAssetData.assetQuertResult['Internal_asset_location__c'] != internalAssetLocationLogin), true, false)}" onchange="checkboxOnclick(); return false;" />
                                <apex:inputHidden id="canChange" />
                            </td>
                            <apex:variable value="{!0}" var="cnt2" />