<apex:page controller="AssetMaintainDetailController" title="维护明细画面" action="{!init}" showHeader="false" sidebar="false" id="allPage" lightningStylesheets="true">
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/>
    <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning -->
    <style>
        #in_Div
        {
            height: 310px !important;
        }
        #in_Div_L
        {
            height: 295px !important;
        }
        .headerRow{
            height: 40px;
        }
        .headStyle td input{
            width: 150px;
        }

        .headStyle td input.btn{
            width: 70px;
        }

        .headStyle td{
            padding-left: 30px;
            padding-bottom: 10px;
        }

        body .bPageBlock .detailList .dataCol{
            width: 18%;
        }

        body .bPageBlock .detailList .labelCol{
            width: 8%;
        }

        table.list .col_Asset__r_Id {width:100px;}
        table.list .col_Asset__r_Internal_asset_location__c{width:100px;}
        table.list .col_Asset__r_Salesdepartment__c{width:100px;}
        table.list .col_Asset__r_SalesProvince__c{width:100px;}
        table.list .col_Asset__r_Fixture_Model_No_F__c{width:120px;}
        table.list .col_Asset__r_Internal_Asset_number_key__c{width:100px;}
        table.list .col_Asset__r_Internal_Asset_number__c{width:100px;}
        table.list .col_Asset__r_SerialNumberLink__c{width:100px;}

        table.list .col_Asset__r_Product_category__c {width:120px;}
        table.list .col_Asset__r_Equipment_Type__c {width:100px;}
        table.list .col_Asset__r_Consumable_Guaranteen_end__c {width:100px;} 
        table.list .col_Asset__r_Manage_type__c {width:100px;}
        table.list .col_Asset__r_Loaner_accsessary__c {width:100px;}
        table.list .col_Asset__r_EquipmentSet_Managment_Code__c {width:100px;}
        table.list .col_Asset__r_AssetManageConfirm__c {width:100px;}
        table.list .col_Asset__r_Fixture_QRCode__c {width:100px;}
        table.list .col_Asset__r_WH_location__c {width:100px;}
        table.list .col_MaintainReason__c {width:100px;}
        table.list .col_MaintainCount__c {width:100px;}
        table.list .col_AbandonReason__c {width:100px;}
        table.list .col_AbandonCount__c  {width:100px;}
        table.list .col_Is_OneToOne_Accessory__c {width:120px;}
        table.list .col_Asset__r_Main_OneToOne__c {width:100px;}
        table.list .col_DisconnectCount__c {width:100px;}
        table.list .col_Asset__r_Quantity {width:100px;}
        table.list .col_Asset__r_You_Xiao_Ku_Cun__c {width:100px;}
        table.list .col_Asset__r_Abandoned_RealThing__c {width:100px;}
        table.list .col_Asset__r_Ji_Zhong_Guan_Li_Ku_Cun__c {width:100px;}
        table.list .col_Asset__r_In_wh_Fu_Shu_Pin_You_Xiao_Ku_Cun_Sum__c {width:140px;}
        table.list .col_Asset__r_Status {width:100px;}
        table.list .col_Asset__r_Fixture_Status__c {width:100px;}
        table.list .col_Asset__r_Frozen_Quantity__c {width:100px;}


    </style>
    <apex:form id="allForm">
        <apex:actionFunction name="searchOpp" action="{!searchOpp}" rerender="allForm" oncomplete="windowResize();unblockUI();"/>
        <apex:pageBlock id="searchBlock" title="维护明细画面">
            <apex:pageBlockSection columns="4">
                <apex:outputField value="{!parentObj.Name}"/>
                <apex:outputField value="{!parentObj.MaintainType__c}"/>
                <apex:outputField value="{!parentObj.Submit_Time__c}" rendered="{!parentObj.MaintainType__c=='实物报废'}"/>
                <apex:outputField value="{!parentObj.Date__c}" rendered="{!parentObj.MaintainType__c!='实物报废'}"/>
                <apex:outputField value="{!parentObj.Status__c}"/>
                <apex:outputField value="{!parentObj.Submit_Person__c}" rendered="{!parentObj.MaintainType__c=='实物报废'}"/>
            </apex:pageBlockSection>
            <apex:pageMessages />
            <table>
                <tr class='headStyle'>
                    <td>关键字：<apex:inputText value="{!keyword}"/></td>
                    <td>备品配套明细型号：<apex:inputText value="{!model}"/></td>
                    <td>固定资产编号：<apex:inputField value="{!ass.Internal_Asset_number__c}"/></td>
                    <td>机身编码：  <apex:inputField value="{!ass.SerialNumber}" style="width:152px"/></td>
                    <td>货架号：<apex:inputField value="{!ass.WH_location__c}"/></td>
                    <td><apex:commandButton value="检索" onclick="blockme();searchOpp(); return false;"/></td>
                </tr>
                <tr class='headStyle'>
                    <td>备品存放地：<apex:inputField value="{!ass.Internal_asset_location__c}" style="width:150px"/></td>
                    <td>主体/附属品：
                        <apex:selectList value="{!mainOrAccessory}" size="1" style="width:150px">
                            <apex:selectOptions value="{!mainOrAccessoryOptions}"/>
                        </apex:selectList>
                    </td>
                    <td>是否固定资产：
                        <apex:selectList value="{!isInternalAsset}" size="1" style="width:150px">
                            <apex:selectOptions value="{!isInternalAssetOptions}"/>
                        </apex:selectList>
                    </td>
                    <td>产品分类(GI/SP)：<apex:inputField value="{!ass.Product_category__c}" style="width:150px"/></td>
                    <td>备品分类：<apex:inputField value="{!ass.Equipment_Type__c}"/></td>
                    <td>管理种类：<apex:inputField value="{!ass.Manage_type__c}"/></td>
                </tr>
            </table>
        </apex:pageBlock>
        <c:RelationListPagingCmp id="cmpid" pgController="{!this}" hasCheckbox="false" isRadio="false"/>
   </apex:form>
</apex:page>