| | |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.SelectFieldJs)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/> |
| | | <style> |
| | | .datePicker { |
| | | left: 805px !important; |
| | | width: 350px !important; |
| | | } |
| | | .label{ |
| | | font-size: .75rem !important; |
| | | } |
| | | .labelCol{ |
| | | font-size: .75rem !important; |
| | | } |
| | | .dataCol{ |
| | | font-size: .75rem !important; |
| | | } |
| | | .textStyle{ |
| | | font-size: 15px; |
| | | } |
| | | /*20230815 ljh start*/ |
| | | table.mytable tr{ |
| | | height:45px; |
| | |
| | | div#out_Div_R { |
| | | position: relative; |
| | | overflow: hidden; |
| | | width: 1200px; |
| | | width: 455px !important; |
| | | margin-left: 686px; |
| | | } |
| | | |
| | |
| | | } |
| | | div#in_Div_R { |
| | | position: relative; |
| | | width: 470px !important; |
| | | overflow: auto; |
| | | height: 451px; |
| | | margin-left: 686px; |
| | |
| | | <apex:param name="csvMaintaintype" value="" /> |
| | | </apex:actionFunction> |
| | | <apex:pageBlockSection columns="2"> |
| | | <apex:outputField value="{!amHeader.Name}"/> |
| | | <apex:outputField value="{!amHeader.MaintainType__c}"/> |
| | | <apex:outputField value="{!amHeader.Submit_Time__c}" rendered="{!amHeader.MaintainType__c=='实物报废'}"/> |
| | | <apex:outputField value="{!amHeader.Date__c}" rendered="{!amHeader.MaintainType__c!='实物报废'}"/> |
| | | <apex:outputField value="{!amHeader.Status__c}"/> |
| | | <apex:outputField value="{!amHeader.Submit_Person__c}" rendered="{! amHeader.MaintainType__c=='实物报废'|| ISBLANK(amHeader.MaintainType__c) }"/> |
| | | <apex:outputField styleClass="textStyle" value="{!amHeader.Name}"/> |
| | | <apex:outputField styleClass="textStyle" value="{!amHeader.MaintainType__c}"/> |
| | | <apex:outputField styleClass="textStyle" value="{!amHeader.Submit_Time__c}" rendered="{!amHeader.MaintainType__c=='实物报废'}"/> |
| | | <apex:outputField styleClass="textStyle" value="{!amHeader.Date__c}" rendered="{!amHeader.MaintainType__c!='实物报废'}"/> |
| | | <apex:outputField styleClass="textStyle" value="{!amHeader.Status__c}"/> |
| | | <apex:outputField styleClass="textStyle" value="{!amHeader.Submit_Person__c}" rendered="{! amHeader.MaintainType__c=='实物报废'|| ISBLANK(amHeader.MaintainType__c) }"/> |
| | | </apex:pageBlockSection> |
| | | <apex:pageBlockSection columns="1" rendered="{! amHeader.MaintainType__c=='实物报废'|| ISBLANK(amHeader.MaintainType__c) }"> |
| | | <apex:pageBlockSection columns="2" rendered="{! editmode}"> |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="{!$ObjectType.AssetMaintainHeader__c.fields.CC_User1__c.Label}"/> |
| | | <apex:inputField value="{!amHeader.CC_User1__c}"/> |
| | | <apex:inputField id="SalesName1" value="{!amHeader.CC_User1__c}"/> |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="{!$ObjectType.AssetMaintainHeader__c.fields.CC_Email1__c.Label}"/> |
| | |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="{!$ObjectType.AssetMaintainHeader__c.fields.CC_User2__c.Label}"/> |
| | | <apex:inputField value="{!amHeader.CC_User2__c}"/> |
| | | <apex:inputField id="SalesName2" value="{!amHeader.CC_User2__c}"/> |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="{!$ObjectType.AssetMaintainHeader__c.fields.CC_Email2__c.Label}"/> |
| | |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="{!$ObjectType.AssetMaintainHeader__c.fields.CC_User3__c.Label}"/> |
| | | <apex:inputField value="{!amHeader.CC_User3__c}"/> |
| | | <apex:inputField id="SalesName3" value="{!amHeader.CC_User3__c}"/> |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="{!$ObjectType.AssetMaintainHeader__c.fields.CC_Email3__c.Label}"/> |
| | |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="{!$ObjectType.AssetMaintainHeader__c.fields.CC_User4__c.Label}"/> |
| | | <apex:inputField value="{!amHeader.CC_User4__c}"/> |
| | | <apex:inputField id="SalesName4" value="{!amHeader.CC_User4__c}"/> |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem /> |
| | | <apex:pageBlockSectionItem > |
| | | <apex:outputLabel value="{!$ObjectType.AssetMaintainHeader__c.fields.CC_User5__c.Label}"/> |
| | | <apex:inputField value="{!amHeader.CC_User5__c}"/> |
| | | <apex:inputField id="SalesName5" value="{!amHeader.CC_User5__c}"/> |
| | | </apex:pageBlockSectionItem> |
| | | <apex:pageBlockSectionItem /> |
| | | </apex:pageBlockSection> |
| | |
| | | <apex:pageBlockSectionItem /> |
| | | </apex:pageBlockSection> |
| | | </apex:pageBlockSection> |
| | | <script> |
| | | let SelectFieldParamList=[ |
| | | |
| | | { |
| | | |
| | | //原apex:inputField的id值,需要在页面上获取 |
| | | |
| | | inputFieldId : 'allPage:allForm:pageBlockButton1:j_id105:j_id106:j_id107:SalesName1', |
| | | |
| | | //查找字段所在对象 |
| | | |
| | | ObjectType : 'AssetMaintainHeader__c', |
| | | |
| | | //查找字段的api名称 |
| | | |
| | | QueryFieldApiName : 'CC_User1__c', |
| | | |
| | | //查找字段的查找对象 |
| | | |
| | | SelectObj : 'User', |
| | | |
| | | //搜索时使用的字段 |
| | | |
| | | SelectFld : 'Name', |
| | | |
| | | }, |
| | | |
| | | { |
| | | |
| | | //原apex:inputField的id值,需要在页面上获取 |
| | | |
| | | inputFieldId : 'allPage:allForm:pageBlockButton1:j_id105:j_id106:j_id112:SalesName2', |
| | | |
| | | //查找字段所在对象 |
| | | |
| | | ObjectType : 'AssetMaintainHeader__c', |
| | | |
| | | //查找字段的api名称 |
| | | |
| | | QueryFieldApiName : 'CC_User2__c', |
| | | |
| | | //查找字段的查找对象 |
| | | |
| | | SelectObj : 'User', |
| | | |
| | | //搜索时使用的字段 |
| | | |
| | | SelectFld : 'Name', |
| | | |
| | | }, { |
| | | |
| | | //原apex:inputField的id值,需要在页面上获取 |
| | | |
| | | inputFieldId : 'allPage:allForm:pageBlockButton1:j_id105:j_id106:j_id117:SalesName3', |
| | | |
| | | //查找字段所在对象 |
| | | |
| | | ObjectType : 'AssetMaintainHeader__c', |
| | | |
| | | //查找字段的api名称 |
| | | |
| | | QueryFieldApiName : 'CC_User3__c', |
| | | |
| | | //查找字段的查找对象 |
| | | |
| | | SelectObj : 'User', |
| | | |
| | | //搜索时使用的字段 |
| | | |
| | | SelectFld : 'Name', |
| | | |
| | | }, { |
| | | |
| | | //原apex:inputField的id值,需要在页面上获取 |
| | | |
| | | inputFieldId : 'allPage:allForm:pageBlockButton1:j_id105:j_id106:j_id122:SalesName4', |
| | | |
| | | //查找字段所在对象 |
| | | |
| | | ObjectType : 'AssetMaintainHeader__c', |
| | | |
| | | //查找字段的api名称 |
| | | |
| | | QueryFieldApiName : 'CC_User4__c', |
| | | |
| | | //查找字段的查找对象 |
| | | |
| | | SelectObj : 'User', |
| | | |
| | | //搜索时使用的字段 |
| | | |
| | | SelectFld : 'Name', |
| | | |
| | | }, { |
| | | |
| | | //原apex:inputField的id值,需要在页面上获取 |
| | | |
| | | inputFieldId : 'allPage:allForm:pageBlockButton1:j_id105:j_id106:j_id125:SalesName5', |
| | | |
| | | //查找字段所在对象 |
| | | |
| | | ObjectType : 'AssetMaintainHeader__c', |
| | | |
| | | //查找字段的api名称 |
| | | |
| | | QueryFieldApiName : 'CC_User5__c', |
| | | |
| | | //查找字段的查找对象 |
| | | |
| | | SelectObj : 'User', |
| | | |
| | | //搜索时使用的字段 |
| | | |
| | | SelectFld : 'Name', |
| | | |
| | | }, |
| | | ] |
| | | |
| | | //初始化 |
| | | |
| | | resetOpenPage(SelectFieldParamList); |
| | | function unblockUI(){ |
| | | |
| | | j$("#sbArea").fadeOut(500, function(){ |
| | | |
| | | j$("#sbArea").remove(); |
| | | |
| | | }); |
| | | |
| | | resetOpenPage(SelectFieldParamList); |
| | | |
| | | } |
| | | </script> |
| | | <table border="0"> |
| | | <tr> |
| | | <!-- <td style="width: 2%"></td> --> |
| | |
| | | else{ |
| | | reportId = "{!notScrappedReportId}"; |
| | | } |
| | | var url = `/lightning/r/Report/${reportId}?fv0=${maintainType}`; |
| | | var url = `/lightning/r/Report/${reportId}/view?fv0=${maintainType}`; |
| | | window.open(url); |
| | | } |
| | | </script> |
| | |
| | | |
| | | <apex:inputText id="abandonCountId" style="width: 90%"/> |
| | | </td> |
| | | <td class="setButtonStyle"><apex:commandButton style="width: 70%" action="{!changeEditable}" value="编辑" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();" disabled="{!!editButtonActive}" /></td> |
| | | <td class="setButtonStyle"> |
| | | <apex:commandButton style="width: 70%" action="{!changeEditable}" value="编辑" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();resetOpenPage(SelectFieldParamList);" disabled="{!!editButtonActive}" /> |
| | | |
| | | </td> |
| | | <td class="setButtonStyle"> |
| | | <apex:commandButton style="width: 58%" value="适用" reRender="allForm" onclick="applyJs(); return false;" disabled="{!!editmode}" /> |
| | | <script type="text/javascript"> |
| | |
| | | </table> |
| | | </div> |
| | | <div id="out_Div_R"> |
| | | <table class="list" border="1" style="border-collapse: collapse; table-layout:fixed; border-bottom-width: 0px; border-spacing:0; width:700px; height: 30px;"> |
| | | <table class="list" border="1" style="border-collapse: collapse; table-layout:fixed; border-bottom-width: 0px; border-spacing:0; width:455px; height: 30px;"> |
| | | <tr class="headerRow" style="background-color: #DCDCDC; text-align: left; vertical-align: top;"> |
| | | <apex:variable value="{!0}" var="cnt" /> |
| | | <apex:repeat value="{!amdRightLabelList}" var="t"> |