<apex:page lightningStylesheets="true" standardController="LostReport__c" extensions="LostReportEditController" showHeader="false" sidebar="false" id="allPage" action="{!init}">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
|
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning -->
|
<!-- 标准控件弹出页面修改 start -->
|
<apex:includeScript value="{!URLFOR($Resource.SelectFieldJs)}"/>
|
<!-- 标准控件弹出页面修改 end -->
|
<style>
|
.dateFormat {
|
display: none;
|
}
|
|
.requiredInput {
|
position: relative;
|
height: 100%;
|
}
|
|
.requiredBlock {
|
background-color: #c00;
|
position: absolute;
|
left: -4px;
|
width: 3px;
|
top: 1px;
|
bottom: 1px;
|
|
}
|
.message {
|
width: 1184px;
|
}
|
table {
|
margin: 10px 0px;
|
/*float: left;*/
|
table-layout: fixed;
|
border-collapse: collapse;
|
}
|
a {
|
text-decoration: none;
|
}
|
.navigationBarBlock {
|
width: 100%;
|
}
|
.apexp .bPageBlock.apexDefaultPageBlock .pbBody {
|
margin: 0px;
|
background-color: white;
|
}
|
.relatedProcessHistory{
|
margin-top: 5px;
|
margin-left: auto;
|
/*width: 75%;*//*20230922 ljh 注释*/
|
margin-right: auto;
|
}
|
.bPageBlock {
|
border-top: 0px;
|
}
|
.checkButtonStyle input {
|
width: 100%;
|
text-align: left;
|
margin: 2px;
|
}
|
.searchButtonStyle {
|
width: 10%;
|
}
|
.searchButtonStyle input {
|
width: 30%;
|
background-color: #9BC2E6;
|
}
|
.setButtonStyle {
|
width: 8%;
|
}
|
.setButtonStyle input {
|
width: 100%;
|
background-color: #9BC2E6;
|
}
|
.startInventory input {
|
width: 10%;
|
padding: 5px;
|
margin-bottom: 5px;
|
border-radius: 5px;
|
background: #9BC2E6;
|
}
|
.labelStyle {
|
width: 9%;
|
padding: 5px;
|
}
|
.blankStyle {
|
width: 3%;
|
}
|
.inputTextStyle {
|
width: 9%;
|
}
|
.inputTextStyle input {
|
width: 90%;
|
}
|
.redStyle {
|
background-color: #F00;
|
}
|
.greyStyle {
|
background-color: #AAA;
|
}
|
.blueStyle {
|
background-color: #9BC2E6;
|
}
|
.yellowStyle {
|
background-color: #FFCC00;
|
}
|
body td.col_Scroll {width:0px; padding:0px; border-width:0px;}
|
.line {
|
margin:20px 0;
|
width:100%;
|
height:1px;
|
border:1px;
|
background-color:black;
|
}
|
body .datePicker {
|
width: 250px;
|
/* height: 200px;*/
|
}
|
.bRelatedList .relatedProcessHistory .extraRow td.actionColumn .actionLink, .bRelatedList .relatedProcessHistory .extraRow td, .bRelatedList .relatedProcessHistory .extraRow th {
|
color: gray;
|
}
|
.bPageBlock .list {
|
width: auto;
|
}
|
.bRelatedList {
|
width: 75%;
|
margin: 0 auto;
|
}
|
.bRelatedList .bPageBlock .pbButton{
|
display: none;
|
}
|
.inventoryReportTableHead tr td{
|
height: 35px;
|
}
|
/*@page {*/
|
/*size: 7in 9.25in;*/
|
/*margin: 27mm 16mm 27mm 16mm;*/
|
/*}*/
|
|
/*@page {*/
|
/*size: A4 portrait;*/
|
/*margin: 20mm 12mm 21mm 12mm;
|
@top-left {
|
content: element(top-left)
|
}
|
@top-right {
|
font-size: 26px;
|
content: element(top-right)
|
}
|
@bottom-center {
|
font-size: 11px;
|
content: counter(page) " / " counter(pages) element(bottom-center)
|
}*/
|
/*}*/
|
|
.leftb2 {border-left: black 2px solid;}
|
.rightb2 {border-right: black 2px solid;}
|
.topb2 {border-top: black 2px solid;}
|
.bottomb2 {border-bottom: black 2px solid;}
|
|
.leftb {border-left: black 1px solid;}
|
.rightb {border-right: black 1px solid;}
|
.topb {border-top: black 1px solid;}
|
.bottomb {border-bottom: black 1px solid;}
|
.B {font-weight:bold;}
|
|
td.center {text-align: center;}
|
td.right {text-align: right;}
|
td.left {text-align: left;}
|
.test-textarea {
|
/*width: 100%;*/
|
margin-left: auto;
|
margin-right: auto;
|
padding: 3px;
|
outline: 0;
|
border: 1px solid #ccc;
|
font-size: 12px;
|
word-wrap: break-word;
|
overflow-x: hidden;
|
overflow-y: auto;
|
-webkit-user-modify: read-write-plaintext-only;
|
/*border-radius: 4px;*/
|
font-size: 100%;
|
border-top: black 2px solid;
|
border-left: black 2px solid;
|
border-right: black 2px solid;
|
border-bottom: black 2px solid;
|
}
|
/*20230921 ljh add start*/
|
body td.actionColumn:before {
|
content: normal;
|
}
|
/*20230921 ljh add end*/
|
</style>
|
<style type="text/css" media="print">
|
.hiddenPrint{display:none !important;}
|
.showPrint{display:block !important;}
|
</style>
|
|
<apex:form id="allForm">
|
<apex:actionFunction name="submit" rerender="allForm" oncomplete="unblockUI();"/>
|
|
<apex:actionFunction name="saveLR" action="{!saveLR}" rerender="allForm, process,ccid" oncomplete="unblockUI();">
|
<apex:param value="" name="saveType"/>
|
</apex:actionFunction>
|
<!-- <apex:actionFunction action="{!relevantConfirm}" name="relevantConfirm" rerender="allForm" oncomplete="unblockUI();"/> -->
|
<!-- <apex:pageBlock id="searchBlock"> -->
|
<!-- 左侧按钮区 -->
|
<!-- <apex:outputPanel id="LeftArea" layout="block" style="width: 15%; float: left;">
|
<apex:pageBlock >
|
<table style='width:140px;'>
|
<tr><td class="checkButtonStyle"><apex:commandButton value="查看全部保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=all'; return false" /></td></tr>
|
<tr><td class="checkButtonStyle"><apex:commandButton value="查看在库的保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=consumable'; return false" /></td></tr>
|
<tr><td class="checkButtonStyle"><apex:commandButton value="查看出借中保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=lending'; return false" /></td></tr>
|
<tr><td class="checkButtonStyle"><apex:commandButton value="查看修理中保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=repairing'; return false" /></td></tr>
|
<tr><td class="checkButtonStyle"><apex:commandButton value="查看待报废保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=scrapping'; return false" /></td></tr>
|
<tr><td class="checkButtonStyle"><apex:commandButton value="查看已报废保有设备" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=scrapped'; return false" /></td></tr>
|
<tr><td class="checkButtonStyle"><apex:commandButton value="盘点结果记录" action="{!URLFOR($Page.InventoryResultRecord)}" /></td></tr>
|
<tr><td class="checkButtonStyle"><apex:commandButton style="background: #9BC2E6;" value="盘点报告"/></td></tr>
|
</table>
|
</apex:pageBlock>
|
</apex:outputPanel> -->
|
<!-- 右侧盘点报告 -->
|
<apex:outputPanel id="RightArea" layout="block" style="width: 75%; margin: 0 auto;">
|
<apex:outputPanel id="message">
|
<apex:pageMessages />
|
</apex:outputPanel>
|
<div style="margin-top: 1%" class="startInventory">
|
<apex:commandButton styleClass="hiddenPrint" value="返回" rerender="allForm" onclick="returnjs();return false;"/>
|
<apex:commandButton styleClass="hiddenPrint" value="上传附件" rerender="allForm" onclick="FilesUploadJs()" rendered="{!(pBean.islock == false && pBean.hasApprovedFlag == false)|| pBean.bzCanEdit == true}" />
|
<!-- <apex:commandButton value="填写遗失报告书" rerender="allForm" onclick="inventory_lost_report();return false;" /> -->
|
<!-- 20211215 ljh SFDC-C933NJ update start -->
|
<!-- <apex:commandButton styleClass="hiddenPrint" value="保存" id="saveData" rendered="{! pBean.islock == false && pBean.hasApprovedFlag == false }" style="float: right;" rerender="allForm" oncomplete="unblockUI();" onclick="blockme()" action="{!saveLR}" /> -->
|
<apex:commandButton styleClass="hiddenPrint" value="保存" id="saveData" rendered="{! (pBean.islock == false && pBean.hasApprovedFlag == false)|| pBean.bzCanEdit == true}" style="float: right;" rerender="allForm" oncomplete="unblockUI();" onclick="blockme()" action="{!saveLR}" />
|
<apex:outputText rendered="{!pBean.bzCanEdit == true}" style="float: right;height: 30px;line-height: 30px;color: red;" value="【是否罚则对象】必须填写保存后才能审批"/>
|
<!-- 20211215 ljh SFDC-C933NJ update end -->
|
<apex:commandButton styleClass="hiddenPrint" value="保存并提交审批" id="saveData1" rendered="{! pBean.islock == false && pBean.hasApprovedFlag == false}" style="float: right;width: 120px;" rerender="allForm, process" oncomplete="unblockUI();" onclick="saveLRjs('1'); return false;" />
|
<!-- <apex:commandButton value="保存" id="saveData" style="margin-left: 25%;" rerender="allForm" oncomplete="unblockUI();" action="{!saveData}" onclick="unvalid()" /> -->
|
<!-- <apex:commandButton value="相关人员确认" rendered="{!IF(ihObj.InventoryCheck_PIC__c!=$User.Id, false, true)}" rerender="allForm" onclick="relevant_confirm();return false;" /> -->
|
<!-- <apex:commandButton value="审批" rendered="{!IF(ihObj.Jingli_Equipment__c!=$User.Id || ihObj.Buzhang_Equipment__c!=$User.Id || ihObj.Zongjian_Equipment__c!=$User.Id, false, true)}" rerender="allForm" oncomplete="unblockUI();" onclick="submit_approval();return false;" /> -->
|
</div>
|
<p style="margin:0 auto; text-align: center; width:100%; font-weight:bold; font-size:22px;">固定资产遗失・盘亏报告</p>
|
<table class="inventoryReportTableHead" style="width: 100%;" id="ccid">
|
<col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<tr>
|
<apex:outputText rendered="{!IF( pBean.lr.isBeipin__c==false && pBean.lr.Inventory_Header__c != null,true,false ) }" >
|
<td colspan="3">
|
<apex:outputText styleClass="hiddenPrint" value="遗失报告书备品中心受理人"/>
|
<div class="hiddenPrint" style="display: inline-block;">
|
<apex:inputField required="{!DESC_RW1['Rental_Apply_SplitUser_Agency__c'] == 'wm'}" rendered="{!DESC_RW1['Rental_Apply_SplitUser_Agency__c'] == 'wm' || DESC_RW1['Rental_Apply_SplitUser_Agency__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" id="Rental_Apply_SplitUser_Agency__c" value="{!pBean.lr.Rental_Apply_SplitUser_Agency__c}">
|
<script>
|
if( document.getElementById('allPage:allForm:Rental_Apply_SplitUser_Agency__c_mlktp')){
|
document.getElementById('allPage:allForm:Rental_Apply_SplitUser_Agency__c_mlktp').style.display="none";
|
}
|
</script>
|
</apex:inputField>
|
</div>
|
<apex:outputText value="{!pBean.lr.Rental_Apply_SplitUser_Agency__c}" rendered="{!DESC_RW1['Rental_Apply_SplitUser_Agency__c'] == 'r'}"/>
|
|
</td>
|
</apex:outputText>
|
|
<apex:outputText rendered="{!IF( pBean.lr.isBeipin__c || pBean.lr.Inventory_Header__c == null,true,false ) }" >
|
<td/><td/><td/>
|
|
</apex:outputText>
|
<td colspan="2">
|
医疗备品管理中心编号: {!pBean.lr.Name}
|
</td>
|
</tr>
|
<tr>
|
<td colspan="3">
|
<apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User1__c.label}"/>
|
<div class="hiddenPrint" style="display: inline-block;">
|
<apex:inputField required="{!DESC_RW1['CC_User1__c'] == 'wm'}" rendered="{!DESC_RW1['CC_User1__c'] == 'wm' || DESC_RW1['CC_User1__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" id="CC_User1__c" value="{!pBean.lr.CC_User1__c}">
|
<script>
|
if( document.getElementById('allPage:allForm:CC_User1__c_mlktp')){
|
document.getElementById('allPage:allForm:CC_User1__c_mlktp').style.display="none";
|
}
|
</script>
|
</apex:inputField>
|
</div>
|
<apex:outputText value="{!pBean.lr.CC_User1__c}" rendered="{!DESC_RW1['CC_User1__c'] == 'r'}"/>
|
|
</td>
|
<td class="topb2 leftb2 bottomb rightb">报告日期</td>
|
<td class="topb2 bottomb rightb2">{!pBean.lrCreateDate}</td>
|
</tr>
|
<tr>
|
<td colspan="3">
|
<apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User2__c.label}"/>
|
<div class="hiddenPrint" style="display: inline-block;">
|
<apex:inputField required="{!DESC_RW1['CC_User2__c'] == 'wm'}" rendered="{!DESC_RW1['CC_User2__c'] == 'wm' || DESC_RW1['CC_User2__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" id="CC_User2__c" value="{!pBean.lr.CC_User2__c}">
|
<script>
|
if( document.getElementById('allPage:allForm:CC_User2__c_mlktp')){
|
document.getElementById('allPage:allForm:CC_User2__c_mlktp').style.display="none";
|
}
|
</script>
|
</apex:inputField>
|
</div>
|
<apex:outputText value="{!pBean.lr.CC_User2__c}" rendered="{!DESC_RW1['CC_User2__c'] == 'r'}"/>
|
</td>
|
<td class="topb leftb2 bottomb rightb">报告者</td>
|
<td class="topb bottomb rightb2">{!pBean.lr.CreatedBy.Name}</td>
|
</tr>
|
<tr>
|
<td colspan="3">
|
<apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User3__c.label}"/>
|
<div class="hiddenPrint" style="display: inline-block;">
|
<apex:inputField required="{!DESC_RW1['CC_User3__c'] == 'wm'}" rendered="{!DESC_RW1['CC_User3__c'] == 'wm' || DESC_RW1['CC_User3__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" Id="CC_User3__c" value="{!pBean.lr.CC_User3__c}">
|
<script>
|
if( document.getElementById('allPage:allForm:CC_User3__c_mlktp')){
|
document.getElementById('allPage:allForm:CC_User3__c_mlktp').style.display="none";
|
}
|
</script>
|
</apex:inputField>
|
</div>
|
<apex:outputText value="{!pBean.lr.CC_User3__c}" rendered="{!DESC_RW1['CC_User3__c'] == 'r'}"/>
|
</td>
|
<td class="topb leftb2 bottomb2 rightb">所属部门</td>
|
<td class="topb bottomb2 rightb2">{!pBean.lr.CreatedBy.Dept__c}</td>
|
</tr>
|
<tr>
|
<td colspan="2">
|
<apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User4__c.label}"/>
|
<div class="hiddenPrint" style="display: inline-block;">
|
<apex:inputField required="{!DESC_RW1['CC_User4__c'] == 'wm'}" rendered="{!DESC_RW1['CC_User4__c'] == 'wm' || DESC_RW1['CC_User4__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" Id="CC_User4__c" value="{!pBean.lr.CC_User4__c}">
|
<script>
|
if( document.getElementById('allPage:allForm:CC_User4__c_mlktp')){
|
document.getElementById('allPage:allForm:CC_User4__c_mlktp').style.display="none";
|
}
|
</script>
|
</apex:inputField>
|
</div>
|
<apex:outputText value="{!pBean.lr.CC_User4__c}" rendered="{!DESC_RW1['CC_User4__c'] == 'r'}"/>
|
</td>
|
<td colspan="3">
|
<apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_Email1__c.label}"/>
|
<div class="hiddenPrint" style="display: inline-block;">
|
<apex:inputField required="{!DESC_RW1['CC_Email1__c'] == 'wm'}" rendered="{!DESC_RW1['CC_Email1__c'] == 'wm' || DESC_RW1['CC_Email1__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" Id="CC_Email1__c" value="{!pBean.lr.CC_Email1__c}">
|
<script>
|
if( document.getElementById('allPage:allForm:CC_Email1__c_mlktp')){
|
document.getElementById('allPage:allForm:CC_Email1__c_mlktp').style.display="none";
|
}
|
</script>
|
</apex:inputField>
|
</div>
|
<apex:outputText value="{!pBean.lr.CC_Email1__c}" rendered="{!DESC_RW1['CC_Email1__c'] == 'r'}"/>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="2">
|
<apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User5__c.label}"/>
|
<div class="hiddenPrint" style="display: inline-block;">
|
<apex:inputField required="{!DESC_RW1['CC_User5__c'] == 'wm'}" rendered="{!DESC_RW1['CC_User5__c'] == 'wm' || DESC_RW1['CC_User5__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" Id="CC_User5__c" value="{!pBean.lr.CC_User5__c}">
|
<script>
|
if( document.getElementById('allPage:allForm:CC_User5__c_mlktp')){
|
document.getElementById('allPage:allForm:CC_User5__c_mlktp').style.display="none";
|
}
|
</script>
|
</apex:inputField>
|
</div>
|
<apex:outputText value="{!pBean.lr.CC_User5__c}" rendered="{!DESC_RW1['CC_User5__c'] == 'r'}"/>
|
</td>
|
<td colspan="3">
|
<apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_Email2__c.label}"/>
|
<div class="hiddenPrint" style="display: inline-block;">
|
<apex:inputField required="{!DESC_RW1['CC_Email2__c'] == 'wm'}" rendered="{!DESC_RW1['CC_Email2__c'] == 'wm' || DESC_RW1['CC_Email2__c'] == 'w'}" styleClass="hiddenPrint" style="display: inline;" Id="CC_Email2__c" value="{!pBean.lr.CC_Email2__c}">
|
<script>
|
if( document.getElementById('allPage:allForm:CC_Email2__c_mlktp')){
|
document.getElementById('allPage:allForm:CC_Email2__c_mlktp').style.display="none";
|
}
|
</script>
|
</apex:inputField>
|
</div>
|
<apex:outputText value="{!pBean.lr.CC_Email2__c}" rendered="{!DESC_RW1['CC_Email2__c'] == 'r'}"/>
|
</td>
|
</tr>
|
<!-- <tr>
|
<td colspan="5">
|
<apex:outputText styleClass="hiddenPrint" value="{!$ObjectType.LostReport__c.fields.CC_User5__c.label}"/>
|
<apex:inputField styleClass="hiddenPrint" style="display: inline;" Id="CC_User5__c" value="{!pBean.lr.CC_User5__c}">
|
<script>
|
if( document.getElementById('allPage:allForm:CC_User5__c_mlktp')){
|
document.getElementById('allPage:allForm:CC_User5__c_mlktp').style.display="none";
|
}
|
</script>
|
</apex:inputField>
|
</td>
|
</tr> -->
|
<tr>
|
<td colspan="5">
|
记:本部门下述固定资产(遗失・盘亏),特此报告。
|
</td>
|
</tr>
|
</table>
|
<table class="inventoryReportTable" border="2" style="width: 100%;">
|
<!-- 20211213 ljh SFDC-C933NJ update -->
|
<!-- <col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<col style="width: 20%;" /> -->
|
<tr>
|
<!-- <td >产品型号</td>
|
<td >机身号</td>
|
<td >固定资产编号(Key)</td>
|
<td >资本化日期</td>
|
<td >残值(元)</td> -->
|
<td style="width: {!IF(pBean.isShowPunish == true,'18%;','20%;')}">产品型号</td>
|
<td style="width: {!IF(pBean.isShowPunish == true,'15%;','20%;')}">机身号</td>
|
<td style="width: {!IF(pBean.isShowPunish == true,'17%;','20%;')}">固定资产编号(Key)</td>
|
<td style="width: {!IF(pBean.isShowPunish == true,'16%;','20%;')}">资本化日期</td>
|
<td style="width: {!IF(pBean.isShowPunish == true,'18%;','20%;')}">残值(元)</td>
|
<td style="width: 16%;display: {!IF(pBean.isShowPunish == true,'','none;')}" >是否罚则对象</td>
|
<!-- 20211213 ljh SFDC-C933NJ end -->
|
</tr>
|
<apex:repeat value="{!pBean.rowList}" var="row">
|
<tr>
|
<td >
|
<apex:outputField value="{!row.lrd.Fixture_Model_No_F__c}"/>
|
</td>
|
<td >
|
<apex:outputField value="{!row.lrd.SerialNumber__c}"/>
|
</td>
|
<td >
|
<apex:outputField value="{!row.lrd.Internal_Asset_number__c}"/>
|
</td>
|
<td >
|
<apex:inputField required="{!DESC_RW['Asset_day__c'] == 'wm'}" rendered="{!DESC_RW['Asset_day__c'] == 'w' || DESC_RW['Asset_day__c'] == 'wm'}" value="{!row.lrd.Asset_day__c}"/>
|
<apex:outputText rendered="{!DESC_RW['Asset_day__c'] == 'r'}" value="{!row.asset_dayStr}"/>
|
</td>
|
<td >
|
<apex:inputField required="{!DESC_RW['Asset_Value__c'] == 'wm'}" rendered="{!DESC_RW['Asset_Value__c'] == 'w' || DESC_RW['Asset_Value__c'] == 'wm'}" value="{!row.lrd.Asset_Value__c}"/>
|
<apex:outputText rendered="{!DESC_RW['Asset_Value__c'] == 'r'}" value="{!row.lrd.Asset_Value__c}"/>
|
</td>
|
<!-- 20211213 ljh SFDC-C933NJ add start-->
|
<td style="display: {!IF(pBean.isShowPunish == true,'','none;')}">
|
<apex:inputField required="{!DESC_RW['IsPunishObj__c'] == 'wm'}" rendered="{!DESC_RW['IsPunishObj__c'] == 'w' || DESC_RW['IsPunishObj__c'] == 'wm'}" value="{!row.lrd.IsPunishObj__c}"/>
|
<apex:outputText rendered="{!DESC_RW['IsPunishObj__c'] == 'r'}" value="{!row.lrd.IsPunishObj__c}"/>
|
</td>
|
<!-- 20211213 ljh SFDC-C933NJ add end-->
|
</tr>
|
</apex:repeat>
|
</table>
|
<p style="margin:0px;" >备品最后一次使用相关信息</p>
|
<table class="inventoryReportTable" border="2" style="width: 100%;margin-top: 0px;">
|
<col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<col style="width: 20%;" />
|
<tr>
|
<td >申请人</td>
|
<!-- //update by rentx 2021-05-18 start 1635 -->
|
<!-- <td >借用医院名(科室)</td> -->
|
<td >{!if(pBean.tr == null && pBean.tr == '' ,'借用医院名(科室)' , '备品存放地')}</td>
|
<!--<td >备品中心出库日</td>-->
|
<!-- <td >{!if(pBean.ra.RecordType.Name=='备品申请(办事处)','办事处出库日','备品中心出库日')}</td> -->
|
<td> {!if(pBean.tr == null && pBean.tr == '',if(pBean.ra.RecordType.Name=='备品申请(办事处)','办事处出库日','备品中心出库日'),'出库日')} </td>
|
<!-- <td >{!if(pBean.ra.RecordType.Name=='备品申请(办事处)','办事处出库日','备品中心出库日')}</td> -->
|
<!-- <td >使用目的</td> -->
|
<td >{!if(pBean.tr == null && pBean.tr == '','使用目的','调拨类型')} </td>
|
<!-- <td >出借理由</td> -->
|
<td >{!if(pBean.tr == null && pBean.tr == '','出借理由','调拨理由')} </td>
|
</tr>
|
<tr>
|
<td >
|
<!-- <apex:outputField value="{!pBean.ra.Owner.Name}"/> -->
|
<apex:outputText value="{!pBean.applicant}"/>
|
</td>
|
<td >
|
<!-- <apex:outputField value="{!pBean.ra.Account__c}"/> -->
|
<apex:outputText value="{!pBean.addressOrAccount}" />
|
</td>
|
<td >
|
<apex:outputText value="{!pBean.bollow_DateStr}"/>
|
</td>
|
<td >
|
<!-- <apex:outputField value="{!pBean.ra.demo_purpose2__c}"/> -->
|
<apex:outputText value="{!pBean.mdOrType}"/>
|
</td>
|
<td >
|
<!-- <apex:outputField value="{!pBean.ra.Demo_purpose_text__c}"/> -->
|
<apex:outputText value="{!pBean.cjOrdbReason}"/>
|
</td>
|
<!-- //update by rentx 2021-05-18 end 1635 -->
|
</tr>
|
</table>
|
<p style="margin:0px;" >描述产品遗失・盘亏等过程
|
<a href="javascript:return null;" onclick="window.open('{!$Label.lostReport_1}','_blank')" style="color:#FF7744;">※遗失报告填写指南</a>
|
</p>
|
<!-- niwu add /a0v1000000Kd8y8 = Label.lostReport_1 -->
|
<p style="margin:0px;" >①{!$ObjectType.LostReport__c.fields.Situation_description__c.label}</p>
|
<div class="test-textarea showPrint" id="Situation_description" style="min-height: 70px; display: none;" contenteditable="true" oninput="document.getElementById('allPage:allForm:Situation_description').value = this.innerHTML;">{!pBean.lr.Situation_description__c}</div>
|
<apex:inputField styleClass="hiddenPrint" style="width: 100%; padding: 0px;" id="Situation_description" required="{!DESC_RW1['Situation_description__c'] == 'wm'}" value="{!pBean.lr.Situation_description__c}" onchange="document.getElementById('Situation_description').innerHTML = this.value;"/>
|
|
<p style="margin:0px;" >②{!$ObjectType.LostReport__c.fields.Confirmation_process__c.label}</p>
|
<div class="test-textarea showPrint" id="Confirmation_process" style="min-height: 140px; display: none;" contenteditable="true" oninput="document.getElementById('allPage:allForm:Confirmation_process').value = this.innerHTML;">{!pBean.lr.Confirmation_process__c}</div>
|
<apex:inputField styleClass="hiddenPrint" style="width: 100%; padding: 0px;" id="Confirmation_process" required="{!DESC_RW1['Confirmation_process__c'] == 'wm'}" value="{!pBean.lr.Confirmation_process__c}" onchange="document.getElementById('Confirmation_process').innerHTML = this.value;"/>
|
</apex:outputPanel>
|
</apex:form>
|
|
<apex:outputPanel styleClass="hiddenPrint" id="process1">
|
<!-- <apex:relatedList subject="{!lrid}" list="CombinedAttachments"/> -->
|
<apex:relatedList subject="{!lrid}" list="AttachedContentDocuments"/>
|
</apex:outputPanel>
|
<apex:includeLightning />
|
<!-- <div style="width:75%; margin: 0 auto;" id="filesRelatedListId" /> -->
|
|
<apex:form style="width:75%; margin: 0 auto;">
|
<apex:outputPanel >
|
<p style="margin:0px;" >③所属上级领导处理意见</p>
|
|
<table class="inventoryReportTable" style="width: 100%;margin-top: 0px; margin-bottom: 0px;">
|
<col style="width: 100%;" />
|
<!-- 20210430 1653 you start -->
|
<apex:outputPanel rendered="{!pBean.BSCfenpeirenInfo.show}" >
|
<tr>
|
<td class="topb leftb2 rightb2">分配人: </td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
{!pBean.BSCfenpeirenInfo.userName + ',' + pBean.BSCfenpeirenInfo.appStatus + ','}
|
{!pBean.BSCfenpeirenInfo.appMemo}
|
{!',' + pBean.BSCfenpeirenInfo.appTime}
|
<br/>
|
</td>
|
</tr>
|
</apex:outputPanel>
|
<!-- 20210430 1653 you end -->
|
<!-- add by rentx 20210605 1635 start 调拨的 备品中心提交 -->
|
|
<apex:outputText rendered="{!pBean.tr != null && ! !pBean.lr.isBeipin__c}" >
|
<!-- CL6 经理级 -->
|
<tr>
|
<td class="topb2 leftb2 rightb2">CL6 经理级:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.managerapprovalInfo.show}" >
|
{!pBean.managerapprovalInfo.userName + ',' + pBean.managerapprovalInfo.appStatus + ','}
|
{!pBean.managerapprovalInfo.appMemo}
|
{!',' + pBean.managerapprovalInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.managerapprovalInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
<!-- CL5 总监级 -->
|
<tr>
|
<td class="topb2 leftb2 rightb2">CL5 总监级:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.directorofOperationsApprovalInfo.show}" >
|
{!pBean.directorofOperationsApprovalInfo.userName + ',' + pBean.directorofOperationsApprovalInfo.appStatus + ','}
|
{!pBean.directorofOperationsApprovalInfo.appMemo}
|
{!',' + pBean.directorofOperationsApprovalInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.directorofOperationsApprovalInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
<!-- 备品中心CL4 高级总监 -->
|
<tr>
|
<td class="topb2 leftb2 rightb2">备品中心CL4 高级总监:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.approvalbytheDirectorofSparePartsInfo.show}" >
|
{!pBean.approvalbytheDirectorofSparePartsInfo.userName + ',' + pBean.approvalbytheDirectorofSparePartsInfo.appStatus + ','}
|
{!pBean.approvalbytheDirectorofSparePartsInfo.appMemo}
|
{!',' + pBean.approvalbytheDirectorofSparePartsInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.approvalbytheDirectorofSparePartsInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
</apex:outputText>
|
|
<!-- add by rentx 20210605 start 调拨的和盘点的 盘点的(盘点表头不等于null) 办事处提交 1650 & 1635-->
|
<!-- <apex:outputPanel rendered="{!IF((pBean.tr != null && !pBean.lr.isBeipin__c) || pBean.lr.Inventory_Header__c != null,true,false ) }" > -->
|
<apex:outputText rendered="{!IF((pBean.tr != null && !pBean.lr.isBeipin__c) || pBean.lr.Inventory_Header__c != null,true,false ) }" >
|
<!-- 备品总窗口 -->
|
<tr>
|
<td class="topb2 leftb2 rightb2">备品总窗口:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.beiPinWindowInfo.show}" >
|
{!pBean.beiPinWindowInfo.userName + ',' + pBean.beiPinWindowInfo.appStatus + ','}
|
{!pBean.beiPinWindowInfo.appMemo}
|
{!',' + pBean.beiPinWindowInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.beiPinWindowInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
<!-- CL6 经理级 -->
|
<tr>
|
<td class="topb2 leftb2 rightb2">CL6 经理级:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.managerapprovalInfo.show}" >
|
{!pBean.managerapprovalInfo.userName + ',' + pBean.managerapprovalInfo.appStatus + ','}
|
{!pBean.managerapprovalInfo.appMemo}
|
{!',' + pBean.managerapprovalInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.managerapprovalInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
<!-- CL5 总监级 -->
|
<tr>
|
<td class="topb2 leftb2 rightb2">CL5 总监级:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.ministerapprovedInfo.show}" >
|
{!pBean.ministerapprovedInfo.userName + ',' + pBean.ministerapprovedInfo.appStatus + ','}
|
{!pBean.ministerapprovedInfo.appMemo}
|
{!',' + pBean.ministerapprovedInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.ministerapprovedInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
<!-- 副CL4 高级总监-->
|
<tr>
|
<!-- 20220414 ljh 副CL4 高级总监->CL4 高级总监 -->
|
<td class="topb2 leftb2 rightb2">CL4 高级总监:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.approvedbyDeputyDirectorofEastChinaInfo.show}" >
|
{!pBean.approvedbyDeputyDirectorofEastChinaInfo.userName + ',' + pBean.approvedbyDeputyDirectorofEastChinaInfo.appStatus + ','}
|
{!pBean.approvedbyDeputyDirectorofEastChinaInfo.appMemo}
|
{!',' + pBean.approvedbyDeputyDirectorofEastChinaInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.approvedbyDeputyDirectorofEastChinaInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
<!-- CL4 高级总监 -->
|
<tr>
|
<td class="topb2 leftb2 rightb2">CL4 高级总监:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.districtGovernorApprovalInfo.show}" >
|
{!pBean.districtGovernorApprovalInfo.userName + ',' + pBean.districtGovernorApprovalInfo.appStatus + ','}
|
{!pBean.districtGovernorApprovalInfo.appMemo}
|
{!',' + pBean.districtGovernorApprovalInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.districtGovernorApprovalInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
<!-- CL3 副总裁-->
|
<tr>
|
<td class="topb2 leftb2 rightb2">CL3 副总裁:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.generalDirectorApprovalInfo.show}" >
|
{!pBean.generalDirectorApprovalInfo.userName + ',' + pBean.generalDirectorApprovalInfo.appStatus + ','}
|
{!pBean.generalDirectorApprovalInfo.appMemo}
|
{!',' + pBean.generalDirectorApprovalInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.generalDirectorApprovalInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
<!-- //如果是盘点的话 这个节点是 备品中心受理窗口 1650 1650暂不上线 先注释掉-->
|
<apex:outputText rendered="{!pBean.lr.Inventory_Header__c!= null}" >
|
<tr>
|
<td class="topb2 leftb2 rightb2">备品中心受理窗口:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.BSCbeipinzhongxinslckInfo.show}" >
|
{!pBean.BSCbeipinzhongxinslckInfo.userName + ',' + pBean.BSCbeipinzhongxinslckInfo.appStatus + ','}
|
{!pBean.BSCbeipinzhongxinslckInfo.appMemo}
|
{!',' + pBean.BSCbeipinzhongxinslckInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.BSCbeipinzhongxinslckInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
</apex:outputText>
|
<!-- 如果是调拨的话 这个节点是联络人 -->
|
<apex:outputText rendered="{!pBean.tr != null && !pBean.lr.isBeipin__c}" >
|
<!-- 联络人 -->
|
<tr>
|
<td class="topb2 leftb2 rightb2">备品中心受理:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.contactpersonapprovalInfo.show}" >
|
{!pBean.contactpersonapprovalInfo.userName + ',' + pBean.contactpersonapprovalInfo.appStatus + ','}
|
{!pBean.contactpersonapprovalInfo.appMemo}
|
{!',' + pBean.contactpersonapprovalInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.contactpersonapprovalInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
</apex:outputText>
|
|
<!-- 如果是调拨的话 这个节点是运营CL5 总监级 如果是盘点的话这个节点是备品中心CL5 总监级 但是盘点取得审批人是 运营CL5 总监级 1650 1650暂不上线 先注释掉-->
|
<tr>
|
<apex:outputText rendered="{!pBean.lr.Inventory_Header__c!= null}" >
|
<td class="topb2 leftb2 rightb2">备品中心CL5 总监级:</td>
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.tr != null && !pBean.lr.isBeipin__c}" >
|
<td class="topb2 leftb2 rightb2">运营CL5 总监级:</td>
|
</apex:outputText>
|
<!-- <td class="topb2 leftb2 rightb2">运营CL5 总监级:</td> -->
|
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.operationsMinisterInfo.show}" >
|
{!pBean.operationsMinisterInfo.userName + ',' + pBean.operationsMinisterInfo.appStatus + ','}
|
{!pBean.operationsMinisterInfo.appMemo}
|
{!',' + pBean.operationsMinisterInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.operationsMinisterInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
<!-- 备品中心CL4 高级总监 -->
|
<tr>
|
<td class="topb2 leftb2 rightb2">备品中心CL4 高级总监:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputText rendered="{!pBean.approvalbytheDirectorofSparePartsInfo.show}" >
|
{!pBean.approvalbytheDirectorofSparePartsInfo.userName + ',' + pBean.approvalbytheDirectorofSparePartsInfo.appStatus + ','}
|
{!pBean.approvalbytheDirectorofSparePartsInfo.appMemo}
|
{!',' + pBean.approvalbytheDirectorofSparePartsInfo.appTime}
|
</apex:outputText>
|
<apex:outputText rendered="{!pBean.approvalbytheDirectorofSparePartsInfo.show == false}" >
|
<br/>
|
</apex:outputText>
|
</td>
|
</tr>
|
<!-- </apex:outputPanel> -->
|
</apex:outputText>
|
|
<!-- //不是调拨也不是盘点时 1635-->
|
<!-- <apex:outputPanel rendered="{!pBean.tr == null && !pBean.lr.Inventory_Header__c == null}" > -->
|
<apex:outputText rendered="{!IF(pBean.tr == null && pBean.lr.Inventory_Header__c == null,true,false ) }" >
|
<!-- add by rentx 20210605 end -->
|
|
<tr>
|
<td class="topb2 leftb2 rightb2">CL6 经理级:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
|
<apex:outputPanel rendered="{!pBean.jingliInfo.show}" >
|
{!pBean.jingliInfo.userName + ',' + pBean.jingliInfo.appStatus + ','}
|
{!pBean.jingliInfo.appMemo}
|
{!',' + pBean.jingliInfo.appTime}
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!pBean.jingliInfo.show == false}" >
|
<br/>
|
</apex:outputPanel>
|
</td>
|
</tr>
|
<tr>
|
<td class="topb leftb2 rightb2">CL5 总监级: </td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
<apex:outputPanel rendered="{!pBean.buzhangInfo.show}" >
|
{!pBean.buzhangInfo.userName + ',' + pBean.buzhangInfo.appStatus + ','}
|
{!pBean.buzhangInfo.appMemo}
|
{!',' + pBean.buzhangInfo.appTime}
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!pBean.buzhangInfo.show == false}" >
|
<br/>
|
</apex:outputPanel>
|
</td>
|
</tr>
|
<tr>
|
<!-- 20220414 ljh 副CL4 高级总监->CL4 高级总监 -->
|
<td class="topb leftb2 rightb2">CL4 高级总监: </td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
<apex:outputPanel rendered="{!pBean.fuzongjianInfo.show}" >
|
{!pBean.fuzongjianInfo.userName + ',' + pBean.fuzongjianInfo.appStatus + ','}
|
{!pBean.fuzongjianInfo.appMemo}
|
{!',' + pBean.fuzongjianInfo.appTime}
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!pBean.fuzongjianInfo.show == false}" >
|
<br/>
|
</apex:outputPanel>
|
</td>
|
</tr>
|
<tr>
|
<td class="topb leftb2 rightb2">CL3 副总裁(CL4 高级总监): </td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
<apex:outputPanel rendered="{!pBean.zongjianliInfo.show}" >
|
{!pBean.zongjianliInfo.userName + ',' + pBean.zongjianliInfo.appStatus + ','}
|
{!pBean.zongjianliInfo.appMemo}
|
{!',' + pBean.zongjianliInfo.appTime}
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!pBean.zongjianliInfo.show == false}" >
|
<br/>
|
</apex:outputPanel>
|
</td>
|
</tr>
|
<tr>
|
<td class="topb leftb2 rightb2">备品管理中心处理意见:</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2">
|
<apex:outputPanel rendered="{!pBean.fenpeirenInfo.show}" >
|
{!pBean.fenpeirenInfo.userName + ',' + pBean.fenpeirenInfo.appStatus + ','}
|
{!pBean.fenpeirenInfo.appMemo}
|
{!',' + pBean.fenpeirenInfo.appTime}
|
<br/>
|
</apex:outputPanel>
|
<!-- 20210430 1653 you start -->
|
<apex:outputPanel rendered="{!pBean.BSCbeipinzhongxinslckInfo.show}" >
|
{!pBean.BSCbeipinzhongxinslckInfo.userName + ',' + pBean.BSCbeipinzhongxinslckInfo.appStatus + ','}
|
{!pBean.BSCbeipinzhongxinslckInfo.appMemo}
|
{!',' + pBean.BSCbeipinzhongxinslckInfo.appTime}
|
<br/>
|
</apex:outputPanel>
|
<!-- 20210430 1653 you end -->
|
<apex:outputPanel rendered="{!pBean.yunyingbuzhangInfo.show}" >
|
{!pBean.yunyingbuzhangInfo.userName + ',' + pBean.yunyingbuzhangInfo.appStatus + ','}
|
{!pBean.yunyingbuzhangInfo.appMemo}
|
{!',' + pBean.yunyingbuzhangInfo.appTime}
|
<br/>
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!pBean.beipinzhongxinInfo.show}" >
|
{!pBean.beipinzhongxinInfo.userName + ',' + pBean.beipinzhongxinInfo.appStatus + ','}
|
{!pBean.beipinzhongxinInfo.appMemo}
|
{!',' + pBean.beipinzhongxinInfo.appTime}
|
<br/>
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{! !pBean.fenpeirenInfo.show && !pBean.yunyingbuzhangInfo.show && !pBean.beipinzhongxinInfo.show}" >
|
<br/>
|
</apex:outputPanel>
|
</td>
|
</tr>
|
</apex:outputText>
|
|
<tr>
|
<td class="topb2 leftb2 rightb2 bottomb center" colspan="5">备品使用注意事项</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2 bottomb left" colspan="5">1、当发生固定资产遗失・盘亏情况时,申请人须填写本《固定资产遗失・盘亏报告》,逐级向所属部门领导汇报,并取得CL3 副总裁批准。</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2 bottomb left" colspan="5">2、对于遗失或盘亏的固定资产由公司做出最后处理决定。</td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2 bottomb left" colspan="5"> </td>
|
</tr>
|
<tr>
|
<td class="leftb2 rightb2 bottomb2 left" colspan="5">
|
奥林巴斯医疗备品管理中心<br/>
|
<br/>
|
北京备品中心地址:北京市朝阳区酒仙桥路10号恒通商务园B12C座西门1F<br/>
|
邮编:100015 TEL:010-59756006-1894 FAX:010-5975-6534<br/>
|
广州备品中心地址:广州市番禺区东环街番禺大道北537号番山创业中心3号楼1F<br/>
|
邮编:511400 TEL:020-39198888-8876 FAX:020-39198848<br/>
|
上海备品中心地址:上海市浦东新区金吉路778号3号楼1F<br/>
|
邮编:201206 TEL:021-60391318-8877 FAX:021-60391316<br/>
|
</td>
|
<!-- 20210812 SFDC-C5CC5S 修改地址-->
|
</tr>
|
</table>
|
</apex:outputPanel>
|
<!-- </apex:pageBlock> -->
|
</apex:form>
|
<apex:outputPanel styleClass="hiddenPrint" id="process">
|
<apex:relatedList list="ProcessSteps" ></apex:relatedList>
|
</apex:outputPanel>
|
<script type="text/javascript">
|
var loginUserId = '{!JSENCODE($User.Id)}';
|
// var loginUserName = '{!JSENCODE($User.Username)}';
|
var loginUserName = '{!JSENCODE($User.LastName)}' + ' ' + '{!JSENCODE($User.FirstName)}';
|
|
function buttonsEnabled(enabled) {
|
// retrieve all of the buttons or links on the page
|
// with the css class of btn
|
var $buttons = jQuery('.btn');
|
// var $save = document.getElementById('allPage:allForm:searchBlock:saveData');
|
if (enabled === false) {
|
// add the btnDisabled class to give it the look of being disabled
|
// add the disabled attribute to actually disable interactability
|
// $save.toggleClass('hidden');
|
// $save.toggleClass('btnDisabled', true).attr('disabled', 'disabled');
|
// $("#allPage:allForm:searchBlock:saveData").toggleClass('btnDisabled', true).attr('disabled', 'disabled');
|
$buttons.toggleClass('btnDisabled', true).attr('disabled', 'disabled');
|
} else {
|
// remove the css class and the disabled attribute
|
$buttons.toggleClass('btnDisabled', false).attr('disabled', null);
|
// $save.toggleClass('btnDisabled', false).attr('disabled', 'null');
|
}
|
}
|
function unvalid() {
|
buttonsEnabled(false);
|
}
|
function saveChangedRemark(tableName, cnt, thisValue) {
|
document.getElementById('allPage:allForm:searchBlock:InventoryResult:' + tableName + ':' + cnt + ':changeFlg').value = 1;
|
if (trim(thisValue) != '') {
|
document.getElementById('allPage:allForm:searchBlock:InventoryResult:' + tableName + ':' + cnt + ':remarkPerson').value = loginUserId;
|
document.getElementById('allPage:allForm:searchBlock:InventoryResult:' + tableName + ':' + cnt + ':remarkPersonName').innerText = loginUserName;
|
} else {
|
document.getElementById('allPage:allForm:searchBlock:InventoryResult:' + tableName + ':' + cnt + ':remarkPerson').value = '';
|
document.getElementById('allPage:allForm:searchBlock:InventoryResult:' + tableName + ':' + cnt + ':remarkPersonName').innerText = '';
|
}
|
}
|
|
function saveLRjs(savetype) {
|
if (confirm('一旦提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?')) {
|
var query = "SELECT Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c FROM LostReport_Detail__c WHERE Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c != null AND LostReport__c = '{!lrid}'";
|
sforce.connection.sessionId = "{!$Api.Session_ID}";
|
var records = sforce.connection.query(query).getArray('records');
|
if (records.length > 0) {
|
var qianpinDate = new Date(records[0].Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c);
|
for (var i = 1; i < records.length; i++) {
|
var d = new Date(records[i].Rental_Apply_Equipment_Set_Detail__r.Lost_item_check_day__c);
|
if(d < qianpinDate){
|
qianpinDate = d;
|
}
|
}
|
qianpinDate.setDate(qianpinDate.getDate() + 90);
|
var d = '' + qianpinDate.getFullYear()+'/' + (qianpinDate.getMonth()+1) + '/' + qianpinDate.getDate();
|
alert('请您的上级领导于' + d + '前完成遗失报告审批,否则备品自动断念,遗失报告自动取消。');
|
}
|
blockme();
|
saveLR(savetype);
|
}
|
}
|
function returnjs() {
|
var lhId = '{!lrid}'
|
var url = "/" + lhId;
|
window.location.href = url;
|
}
|
function FilesUploadJs(){
|
if(confirm("请填写完数据,点击保存后,再上传附件")){
|
var lhId = '{!lrid}'
|
blockme();
|
//window.location.href = '/p/attach/NoteAttach?pid='+lhId+'&retURL=%2F' + '/apex/LostReportEdit?id=' +lhId;
|
// window.location.replace('/lightning/n/LexUploadPage?0.recordId='+lhId);
|
window.location.replace('/lightning/n/LexUploadPage?0.recordId='+lhId+'&backgroundContext=%2Fapex%2FLostReportEdit%3FId%3D'+lhId);
|
//window.location.href = '/lightning/n/lightning?backgroundContext%2Fapex%2FLostReportEdit%3FId%3D'+lhId+'&0.recordId='+lhId;
|
}
|
}
|
//标准控件弹出页面修改 start
|
//查询参数列表
|
let SelectFieldParamList=[
|
//
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:CC_User1__c',
|
//查找字段所在对象
|
ObjectType : 'LostReport__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'CC_User1__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:CC_User2__c',
|
//查找字段所在对象
|
ObjectType : 'LostReport__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'CC_User2__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:CC_User3__c',
|
//查找字段所在对象
|
ObjectType : 'LostReport__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'CC_User3__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:CC_User4__c',
|
//查找字段所在对象
|
ObjectType : 'LostReport__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'CC_User4__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
|
},
|
{
|
//原apex:inputField的id值,需要在页面上获取
|
inputFieldId : 'allPage:allForm:CC_User5__c',
|
//查找字段所在对象
|
ObjectType : 'LostReport__c',
|
//查找字段的api名称
|
QueryFieldApiName : 'CC_User5__c',
|
//查找字段的查找对象
|
SelectObj : 'User',
|
//搜索时使用的字段
|
SelectFld : 'Name',
|
|
}
|
|
]
|
//初始化
|
resetOpenPage(SelectFieldParamList);
|
|
|
function unblockUI(){
|
j$("#sbArea").fadeOut(500, function(){
|
j$("#sbArea").remove();
|
});
|
resetOpenPage(SelectFieldParamList);
|
init();// 20231011 ljh add
|
}
|
//标准控件弹出页面修改 end
|
// $Lightning.use("c:filesRelatedListApp", function () {
|
// $Lightning.createComponent("c:filesRelatedList",
|
// {recordId: "{!lrid}"},
|
// "filesRelatedListId",
|
// function (cmp) {
|
// console.log('Component created, do something cool here');
|
// });
|
// });
|
// 重写 url
|
init();
|
function init(){
|
var obgMap = new Map();
|
var obgStr = "{!cdlStr}";
|
var obgMapTemp = obgStr.split(';');
|
for(let i = 0;i<obgMapTemp.length;i++){
|
if(obgMapTemp[i] != ''){
|
obgMap.set(obgMapTemp[i].split('_')[0],obgMapTemp[i].split('_')[1]);
|
}
|
}
|
console.log(obgMap);
|
var _event_list = {};
|
// var links = [];
|
// 找到页面上所有的a 符合标签
|
var linksAll = document.getElementsByClassName("actionLink");
|
for(let i = 0; i < linksAll.length;i++ ){
|
// console.log('zheli:',linksAll[i].innerText);
|
if(linksAll[i].innerText == '预览'){
|
// console.log('zheli:',linksAll[i].innerText);
|
// links.push(linksAll[i]);
|
// console.log();
|
// 保存click属性的值
|
// var _click = linksAll[i].getAttribute("onclick");
|
// 保存href属性的值
|
var _href = linksAll[i].getAttribute("href");
|
// console.log('zheli00:',_href);
|
var tempA = linksAll[i].parentNode.nextSibling.children[0]
|
var _hreff= tempA.getAttribute("href");
|
if (_href != null) {
|
// 拿到href属性的值
|
// console.log('zhel99:',_href);
|
// console.log('zheli88:',UrlDecode(_href));
|
var idTemp = UrlDecode(_href).split(',');
|
var idS = idTemp[3].replaceAll('\'','').substring(0,15);
|
// console.log(idS);
|
var lid = obgMap.get(idS);
|
// console.log(lid);
|
// console.log('zheli8899:',idTemp[3].replaceAll('\'',''));
|
// // 给href属性重新设值
|
linksAll[i].setAttribute("href", "/lightning/r/ContentDocument/"+lid+"/view");
|
linksAll[i].setAttribute("target", "_blank");
|
}
|
if(_hreff != null){
|
var lfidtemp = _hreff.split('/').slice(-1)[0];
|
var lfid = obgMap.get(lfidtemp);
|
console.log(lfidtemp);
|
tempA.setAttribute("href", "/lightning/r/ContentDocument/"+lfid+"/view");
|
tempA.setAttribute("target", "_blank");
|
}
|
|
}
|
}
|
}
|
|
function UrlDecode(zipStr){
|
var uzipStr = '';
|
for (var i = 0; i < zipStr.length; i += 1) {
|
var chr = zipStr.charAt(i);
|
if (chr === '+') {
|
uzipStr += ' ';
|
} else if (chr === '%') {
|
var asc = zipStr.substring(i + 1, i + 3);
|
if (parseInt('0x' + asc) > 0x7f) {
|
uzipStr += decodeURI('%' + asc.toString() + zipStr.substring(i+3, i+9).toString());
|
i += 8;
|
}else{
|
uzipStr += AsciiToString(parseInt('0x' + asc));
|
i += 2;
|
}
|
}else{
|
uzipStr += chr;
|
}
|
}
|
|
return uzipStr;
|
}
|
|
function AsciiToString(asccode){
|
return String.fromCharCode(asccode);
|
}
|
</script>
|
</apex:page>
|