<apex:page Controller="EquipmentLoanerApplyController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="样机分配">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<script>
|
function searchProductJs() {
|
blockme();
|
searchLoanerApp();
|
}
|
function notArrDetJs(setid,deatilNo){
|
|
blockme();
|
getLoanerSetdet(setid);
|
var productCount = j$(escapeVfId('loanerSetNo')).value();
|
for (var i = 0; i < productCount; i++) {
|
j$(escapeVfId('allPage:allForm:allBlock:dataBlock0:loanerSetTable:' + i +':loanerSetNamelinK')).css('color', 'black');
|
}
|
j$(escapeVfId('allPage:allForm:allBlock:dataBlock0:loanerSetTable:' + deatilNo +':loanerSetNamelinK')).css('color', 'red');
|
}
|
|
function overwriteRedJs(){
|
var productCount = j$(escapeVfId('loanerSetNo')).value();
|
for (var i = 0; i < productCount; i++) {
|
j$(escapeVfId('allPage:allForm:allBlock:dataBlock0:loanerSetTable:' + i +':loanerSetNamelinK')).css('color', 'black');
|
}
|
}
|
function sortTableJs(key) {
|
blockme();
|
sortTable(key);
|
}
|
function saveJs() {
|
blockme();
|
save();
|
}
|
function checkAllJs() {
|
var productCount = j$(escapeVfId('pageRecordNo')).value();
|
if (j$(escapeVfId('checker')).attr('checked') == 'checked') {
|
for (var i = 0; i < productCount; i++) {
|
if (document.getElementById('allPage:allForm:allBlock:dataBlock:equipmentSetTable:' + i +':equipmentSetRowCheckbox').disabled == false) {
|
j$(escapeVfId('allPage:allForm:allBlock:dataBlock:equipmentSetTable:' + i + ':equipmentSetRowCheckbox')).attr('checked',true);
|
}
|
}
|
}else{
|
for (var i = 0; i < productCount; i++ ) {
|
if (document.getElementById('allPage:allForm:allBlock:dataBlock:equipmentSetTable:' + i +':equipmentSetRowCheckbox').disabled == false) {
|
j$(escapeVfId('allPage:allForm:allBlock:dataBlock:equipmentSetTable:' + i + ':equipmentSetRowCheckbox')).attr('checked',false);
|
}
|
}
|
}
|
|
}
|
|
function ComputePriceJs(j) {
|
var z;
|
var a = j.id;
|
var i=a.substring(0,a.lastIndexOf(':'));
|
i = i.substring(0,i.lastIndexOf(':'));
|
z = parseFloat(j$(escapeVfId(a)).value());
|
if(isNaN(z)){z=0.00;}
|
if(z!=null&&z!=0&&z!=''){
|
j$(escapeVfId(i+':equipmentSetRowCheckbox')).attr('checked',true);
|
}else{
|
j$(escapeVfId(i+':equipmentSetRowCheckbox')).attr('checked',false);
|
}
|
}
|
|
// 计算自然日
|
function getDays(date1,date2){
|
var dayCount = 0;
|
if(date1 && date2){
|
//将时间字符串转化为距离1970年1月1日午夜零时的时间间隔的毫秒数
|
var time1 = Date.parse(date1);
|
var time2 = Date.parse(date2);
|
|
//将两个时间相减,求出相隔的天数
|
var dayCount = (Math.ceil(time2 - time1))/1000/60/60/24;
|
}
|
return dayCount;
|
}
|
|
//页面加载 样机日期初始化
|
/*function onLoadDirction(){
|
var SDay = j$(escapeVfId('allPage:allForm:allBlock:Rental_SDate')).value();
|
var EDay = j$(escapeVfId('allPage:allForm:allBlock:Rental_EDate')).value();
|
var dayCount = 0;
|
var productCount = j$(escapeVfId('pageRecordNo')).value();
|
dayCount = getDays(SDay,EDay);
|
for (var i = 0; i < productCount; i++) {
|
//j$(escapeVfId('allPage:allForm:allBlock:dataBlock:equipmentSetTable:' + i + ':Rental_Start_Date')).attr('checked',true);
|
document.getElementById('allPage:allForm:allBlock:dataBlock:equipmentSetTable:' + i + ':Rental_Start_Date').innerHTML = SDay;
|
document.getElementById('allPage:allForm:allBlock:dataBlock:equipmentSetTable:' + i + ':Rental_End_Date').innerHTML = EDay;
|
document.getElementById('allPage:allForm:allBlock:dataBlock:equipmentSetTable:' + i + ':SEdayCount').innerHTML = dayCount;
|
}
|
|
}*/
|
//window.sfdcPage.appendToOnloadQueue(function() { onLoadDirction(); });
|
</script>
|
<style>
|
div#out_Div {
|
position:relative;
|
overflow: hidden;
|
width: 820px;
|
}
|
div#out_Div_L {
|
position:relative;
|
overflow: hidden;
|
float:left;
|
width: 413px;
|
}
|
div#in_Div {
|
position:relative;
|
overflow: auto;
|
width: 837px;
|
height: 314px;
|
}
|
div#in_Div_L {
|
position:relative;
|
overflow: hidden;
|
float:left;
|
width: 413px;
|
height: 297px;
|
}
|
div#all {
|
overflow: hidden;
|
width: 1250px;
|
}
|
</style>
|
<apex:form id="allForm">
|
<apex:actionFunction name="sortTable" action="{!sortTable}" rerender="dataBlock, message" onComplete="unblockUI();overwriteRedJs();">
|
<apex:param name="firstParam" assignTo="{!sortKey}" value="" />
|
</apex:actionFunction>
|
<apex:actionFunction name="searchLoanerApp" action="{!searchLoanerApp}" rerender="dataBlock, message" onComplete="unblockUI();overwriteRedJs();">
|
</apex:actionFunction>
|
<apex:actionFunction name="getLoanerSetdet" action="{!getLoanerSetdet}" rerender="dataBlock, message" onComplete="unblockUI();">
|
<apex:param name="firstParam" assignTo="{!setId}" value="" />
|
</apex:actionFunction>
|
<apex:actionFunction name="save" action="{!save}" rerender="message" onComplete="unblockUI();overwriteRedJs();">
|
</apex:actionFunction>
|
<apex:outputPanel id="allPanel">
|
<apex:pageBlock title="样机借出申请" id="allBlock">
|
<apex:pageBlockButtons location="top" id="pageBlockButton1">
|
<table>
|
<tr>
|
<td width="80%" align="right">
|
<apex:commandButton value="保存" style="width: 120px;" onclick="saveJs();return false;" rerender="dummy" disabled="{!canSave}"/>
|
</td>
|
<td width="20%" align="right"><apex:commandButton action="{!cancel}" value="返回样机借出申请" rerender="dummy"/></td>
|
</tr>
|
</table>
|
</apex:pageBlockButtons>
|
|
<table id="headTable" style="width:1300px">
|
<colgroup>
|
<col width="10%"/>
|
<col width="15%"/>
|
<col width="10%"/>
|
<col width="15%"/>
|
<col width="10%"/>
|
<col width="15%"/>
|
<col width="10%"/>
|
<col width="15%"/>
|
</colgroup>
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.Name.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.Name}"/></td>
|
<td align="right"></td>
|
<td align="left"></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.Demo_purpose__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.Demo_purpose__c}"/></td>
|
<td align="right"></td>
|
<td align="left"></td>
|
</tr>
|
<apex:outputPanel layout="none" rendered="{!IF(OR(loanerApply.Equipment_Type__c == 'IE',loanerApply.Equipment_Type__c == 'RVI'), true , false)}">
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_1__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_1__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount1__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount1__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_11__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_11__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount11__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount11__c}"/></td>
|
</tr>
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_2__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_2__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount2__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount2__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_12__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_12__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount12__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount12__c}"/></td>
|
</tr>
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_3__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_3__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount3__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount3__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_13__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_13__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount13__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount13__c}"/></td>
|
</tr>
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_4__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_4__c}"/></td>
|
<td align="right">
|
{!$ObjectType.loaner_application__c.fields.ProductCount4__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount4__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_14__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_14__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount14__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount14__c}"/></td>
|
</tr>
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_5__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_5__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount5__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount5__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_15__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_15__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount15__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount15__c}"/></td>
|
</tr>
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_6__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_6__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount6__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount6__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_16__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_16__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount16__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount16__c}"/></td>
|
</tr>
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_7__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_7__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount7__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount7__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_17__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_17__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount17__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount17__c}"/></td>
|
</tr>
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_8__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_8__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount8__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount8__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_18__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_18__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount18__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount18__c}"/></td>
|
</tr>
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_9__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_9__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount9__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount9__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_19__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_19__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount19__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount19__c}"/></td>
|
</tr>
|
<tr>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_10__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_10__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount10__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount10__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.EC_Code_20__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.EC_Code_20__c}"/></td>
|
<td align="right">{!$ObjectType.loaner_application__c.fields.ProductCount20__c.label} : </td>
|
<td align="left"><apex:outputField value="{!loanerApply.ProductCount20__c}"/></td>
|
</tr>
|
</apex:outputPanel>
|
</table>
|
|
<apex:outputPanel id="message">
|
<apex:pageMessages />
|
</apex:outputPanel>
|
<apex:pageBlock id="searchBlock">
|
<table style="border-collapse: collapse;table-layout:fixed; width:1200px" >
|
<colgroup>
|
<col width="8%"/>
|
<col width="25%"/>
|
<col width="9%"/>
|
<col width="25%"/>
|
<col width="8%"/>
|
<col width="25%"/>
|
</colgroup>
|
<tr>
|
<td align="right">机身号</td>
|
<td><apex:inputField value="{!rec.SerialNumber}" style="width:150px"/></td>
|
<!--<td align="right">{!$ObjectType.Asset.fields.Internal_Asset_number__c.label}</td>
|
<td><apex:inputField value="{!rec.Internal_Asset_number__c}" style="width:150px"/></td>-->
|
<td align="right">{!$ObjectType.Asset.fields.EC_Code__c.label}</td>
|
<td><apex:inputText value="{!assECcode}" style="width:150px"/></td>
|
<td align="right">{!$ObjectType.Asset.fields.OT_Code__c.label}</td>
|
<td><apex:inputText value="{!rec.OT_Code__c}" style="width:150px"/></td>
|
</tr>
|
<tr>
|
<td align="right">{!$ObjectType.Asset.fields.Equipment_Type__c.label}</td>
|
<td><apex:inputField value="{!rec.Equipment_Type__c}" style="width:150px"/></td>
|
<td align="right">{!$ObjectType.Asset.fields.loaner_place__c.label}</td>
|
<td><apex:inputField value="{!rec.loaner_place__c}" style="width:150px"/></td>
|
<td align="right">{!$ObjectType.Asset.fields.Status.label}</td>
|
<td><apex:inputField value="{!rec.Status}" style="width:150px"/></td>
|
</tr>
|
<tr>
|
<!-- IE RVI -->
|
<apex:outputPanel rendered="{!IF(rec.Equipment_Type__c == 'IE' || rec.Equipment_Type__c == 'RVI', true , false)}">
|
<td align="right" >{!$ObjectType.Asset.fields.ProductName__c.label}</td>
|
<td><apex:inputText value="{!assName}" style="width:150px"/></td>
|
<td></td>
|
<td></td>
|
<!--<td align="right">{!$ObjectType.Asset.fields.EC_Code__c.label}</td>
|
<td><apex:inputText value="{!assECcode}" style="width:150px"/></td>-->
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(rec.Equipment_Type__c == 'NDT' || rec.Equipment_Type__c == 'ANI', true , false)}">
|
<td align="right" >样机名称</td>
|
<td><apex:inputText value="{!assName}" style="width:150px"/></td>
|
<td align="right">{!$ObjectType.Asset.fields.Remarks2__c.label}</td>
|
<td><apex:inputText value="{!rec.Remarks2__c}" style="width:150px"/></td>
|
</apex:outputPanel>
|
|
<apex:outputPanel rendered="{!IF(rec.Equipment_Type__c == 'BS' , true , false)}">
|
<td align="right" >样机名称</td>
|
<td><apex:inputText value="{!assName}" style="width:150px"/></td>
|
<td align="right">{!$ObjectType.Asset.fields.Internal_Asset_number__c.label}</td>
|
<td><apex:inputText value="{!rec.Internal_Asset_number__c}" style="width:150px"/></td>
|
</apex:outputPanel>
|
|
|
|
<td align="center" ></td>
|
<td ><apex:commandButton value="搜索" style="width: 120px;" onclick="searchProductJs(); return false;" disabled="{!canSearch}"/></td>
|
</tr>
|
</table>
|
</apex:pageBlock>
|
<div style="position: relative;top:0;height:100%;overflow:hidden;overflow-y:auto;-webkit-overflow-scrolling: touch;">
|
<input type="hidden" id="loanerSetNo" value="{!loanerSetNo}" />
|
<apex:pageBlock id="dataBlock0" title="样机套装一览" rendered="{!AND(!loanerApply.Loaner_LendOrder__c,loanerApply.Equipment_Type__c != 'NDT',loanerApply.Equipment_Type__c != 'ANI')}">
|
<div style="position: relative;top:0;height:150px;overflow:hidden;overflow-y:auto;-webkit-overflow-scrolling: touch;">
|
<table class="list" border="0" cellpadding="0" cellspacing="0" id="example0">
|
<tr class="headerRow">
|
<th style="text-align: center;">{!$ObjectType.Loaner_Set__c.fields.Name.label}</th>
|
|
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS', true , false)}">
|
<th style="text-align: center;">{!$ObjectType.Loaner_Set__c.fields.set_type__c.label}</th>
|
<th style="text-align: center;">{!$ObjectType.Loaner_Set__c.fields.SerialNumber__c.label}</th>
|
<th style="text-align: center;">{!$ObjectType.Loaner_Set__c.fields.Internal_Asset_number__c.label}</th>
|
<th style="text-align: center;">{!$ObjectType.Loaner_Set__c.fields.status__c.label}</th>
|
</apex:outputPanel>
|
|
<th style="text-align: center;">{!$ObjectType.Loaner_Set__c.fields.Equipment_Type__c.label}</th>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS', false , true)}">
|
<th style="text-align: center;">{!$ObjectType.Loaner_Set__c.fields.Remarks__c.label}</th>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS', true , false)}">
|
<th style="text-align: center;">{!$ObjectType.Loaner_Set__c.fields.loaner_place__c.label}</th>
|
<th style="text-align: center;">{!$ObjectType.Loaner_Set__c.fields.Reservation_information__c.label}</th>
|
</apex:outputPanel>
|
|
</tr>
|
<apex:repeat value="{!loanerSetRecords}" var="records" id="loanerSetTable">
|
<tr class="dataRow">
|
<td class="dataCell" align="center">
|
<apex:outputLink onclick="notArrDetJs('{!records.lSet.Id}','{!records.deatilNo}'); return false;" id="loanerSetNamelinK" ><apex:outputField value="{!records.lSet.Name}" id="loanerSetName"/></apex:outputLink>
|
</td>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS', true , false)}">
|
<td class="dataCell" align="center">{!records.lSet.set_type__c}</td>
|
<td class="dataCell" align="center">{!records.lSet.SerialNumber__c}</td>
|
<td class="dataCell" align="center">{!records.lSet.Internal_Asset_number__c}</td>
|
<td class="dataCell" align="center">{!records.lSet.status__c}</td>
|
</apex:outputPanel>
|
<td class="dataCell" align="center">
|
{!records.lSet.Equipment_Type__c}
|
</td>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS', false , true)}">
|
<td class="dataCell" align="center">
|
{!records.lSet.Remarks__c}
|
</td>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS', true , false)}">
|
<td class="dataCell" align="center">{!records.lSet.loaner_place__c}</td>
|
<td class="dataCell" align="center">{!records.lSet.Reservation_information__c}</td>
|
</apex:outputPanel>
|
</tr>
|
</apex:repeat>
|
</table>
|
</div>
|
</apex:pageBlock>
|
</div>
|
<div style="position: relative;top:0;height:700px;overflow:hidden;overflow-y:auto;-webkit-overflow-scrolling: touch;">
|
<apex:pageBlock id="dataBlock">
|
<input type="hidden" id="pageRecordNo" value="{!pageRecordNo}" />
|
<table class="list" border="0" cellpadding="0" cellspacing="0" id="example">
|
<tr class="headerRow">
|
<th><input type='checkbox' onClick="checkAllJs()" id='checker' /></th>
|
|
<apex:outputPanel layout="none" rendered="{!IF(AND((loanerApply.Equipment_Type__c == 'NDT' || loanerApply.Equipment_Type__c == 'ANI'),userType == 'PowerPartner'), false , true)}">
|
<th style="text-align: center;">{!$ObjectType.loaner_application_detail__c.fields.Name.label}</th>
|
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'NDT' || loanerApply.Equipment_Type__c == 'ANI', true , false)}">
|
<th style="text-align: center;">产品名称</th>
|
<th style="text-align: center;">样机名称</th>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS', true , false)}">
|
<th style="text-align: center;">样机名称</th>
|
<th style="text-align: center;">类型</th>
|
|
<!-- <th style="text-align: center;">{!$ObjectType.loaner_application_detail__c.fields.Internal_Asset_number__c.label}</th> -->
|
|
</apex:outputPanel>
|
<th style="text-align: center;"><a href="#" onclick="sortTableJs('0');return false;" style="text-decoration: underline;">{!$ObjectType.loaner_application_detail__c.fields.SerialNumber__c.label}</a>{!sortOrder[0]}</th>
|
<!--<th style="text-align: center;"><a href="#" onclick="sortTableJs('1');return false;" style="text-decoration: underline;">{!$ObjectType.loaner_application_detail__c.fields.Internal_Asset_number__c.label}</a>{!sortOrder[1]}</th>-->
|
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS' , false , true)}">
|
<th style="text-align: center;"><a href="#" onclick="sortTableJs('1');return false;" style="text-decoration: underline;">{!$ObjectType.loaner_application_detail__c.fields.OTCODE__c.label}</a>{!sortOrder[2]}</th>
|
</apex:outputPanel>
|
<th style="text-align: center;"><a href="#" onclick="sortTableJs('2');return false;" style="text-decoration: underline;">{!$ObjectType.loaner_application_detail__c.fields.ECCode__c.label}</a>{!sortOrder[3]}</th>
|
<th style="text-align: center;"><a href="#" onclick="sortTableJs('3');return false;" style="text-decoration: underline;">{!$ObjectType.loaner_application_detail__c.fields.loaner_place__c.label}</a>{!sortOrder[3]}</th>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS' , false , true)}">
|
<th style="text-align: center;width: 50Px;"><a href="#" onclick="sortTableJs('4');return false;" style="text-decoration: underline;">{!$ObjectType.loaner_application_detail__c.fields.loaner_Status__c.label}/{!$ObjectType.Asset.fields.Count_can_allocate_F__c.label}</a>{!sortOrder[4]}</th>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS' , true , false)}">
|
<th style="text-align: center;width: 50Px;"><a href="#" onclick="sortTableJs('4');return false;" style="text-decoration: underline;">{!$ObjectType.loaner_application_detail__c.fields.loaner_Status__c.label}</a>{!sortOrder[4]}</th>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'NDT' || loanerApply.Equipment_Type__c == 'ANI', true , false)}">
|
<th style="text-align: center;">{!$ObjectType.Asset.fields.Rental_Customer__c.label}</th>
|
<th style="text-align: center;">{!$ObjectType.Asset.fields.Rental_end_Date__c.label}</th>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS', true , false)}">
|
<th style="text-align: center;">{!$ObjectType.Asset.fields.Rental_Customer__c.label}</th>
|
<th style="text-align: center;">{!$ObjectType.Asset.fields.Rental_Start_Date__c.label}</th>
|
<th style="text-align: center;">{!$ObjectType.Asset.fields.Rental_end_Date__c.label}</th>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS' , false , true)}">
|
<th style="text-align: center;">借出数量</th>
|
</apex:outputPanel>
|
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS', true , false)}">
|
<th style="text-align: center;">数量</th>
|
<th style="text-align: center;">描述</th>
|
</apex:outputPanel>
|
|
<th style="text-align: center;">{!$ObjectType.loaner_application_detail__c.fields.Remark__c.label}</th>
|
</tr>
|
<apex:repeat value="{!equipmentSetRecords}" var="records" id="equipmentSetTable">
|
<tr class="dataRow">
|
<td>
|
<apex:inputCheckbox value="{!records.check}" onclick="#" id="equipmentSetRowCheckbox"/>
|
</td>
|
|
<apex:outputPanel layout="none" rendered="{!IF(AND((loanerApply.Equipment_Type__c == 'NDT' || loanerApply.Equipment_Type__c == 'ANI'),userType == 'PowerPartner'), false , true)}">
|
<td class="dataCell" align="center">
|
{!records.lad.Name}
|
</td>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'NDT' || loanerApply.Equipment_Type__c == 'ANI', true , false)}">
|
<td class="dataCell" align="center">
|
{!records.aset.ProductName__c}
|
</td>
|
<td class="dataCell" align="center">
|
{!records.aset.Name}
|
</td>
|
</apex:outputPanel>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS' , true , false)}">
|
<td class="dataCell" align="center">
|
{!records.aset.Name}
|
</td>
|
<td class="dataCell" align="center">
|
{!records.aset.AssetType__c}
|
</td>
|
<!-- <td class="dataCell" align="center">
|
{!records.aset.Internal_Asset_number__c}
|
</td> -->
|
</apex:outputPanel>
|
<td class="dataCell" align="center">
|
{!records.aset.SerialNumber}
|
</td>
|
<!--<td class="dataCell" align="center">
|
{!records.aset.Internal_Asset_number__c}
|
</td>-->
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS' , false , true)}">
|
<td class="dataCell" align="center">
|
{!records.aset.OT_Code__c}
|
</td>
|
</apex:outputPanel>
|
<td class="dataCell" align="center">
|
{!records.aset.EC_Code__c}
|
</td>
|
<td class="dataCell" align="center">
|
{!records.aset.loaner_place__c}
|
</td>
|
|
<td class="dataCell" align="center">
|
<apex:variable var="v" value="" rendered="{!!records.showNo}" > {!records.aset.Status}</apex:variable>
|
<apex:variable var="v" value="" rendered="{!records.showNo}"> {!records.aset.Count_can_allocate_F__c} </apex:variable>
|
</td>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'NDT' || loanerApply.Equipment_Type__c == 'ANI', true , false)}">
|
<td class="dataCell" align="center">
|
<apex:outputField value="{!records.aset.Rental_Customer__r.Name}"></apex:outputField>
|
</td>
|
<td class="dataCell" align="center">
|
<apex:outputField value="{!records.aset.Rental_end_Date__c}"></apex:outputField>
|
</td>
|
</apex:outputPanel>
|
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS', true , false)}">
|
<td class="dataCell" align="center">
|
<apex:outputField value="{!records.aset.Rental_Customer__r.Name}"></apex:outputField>
|
</td>
|
<td class="dataCell" align="center">
|
<apex:outputField value="{!records.aset.Rental_Start_Date__c}"></apex:outputField>
|
</td>
|
<td class="dataCell" align="center">
|
<apex:outputField value="{!records.aset.Rental_end_Date__c}"></apex:outputField>
|
</td>
|
</apex:outputPanel>
|
|
<td class="dataCell" align="center">
|
<apex:variable var="v" value="" rendered="{!!records.canInput}" ><apex:outputText id="ProductIdOut" value="{!records.deatilNo}"/> </apex:variable>
|
<apex:variable var="v" id="ProductCountIn" value="" rendered="{!records.canInput}" ><apex:inputText id="ProductCount" value="{!records.deatilNo}" onblur="ComputePriceJs(this)" style="width: 50Px;text-align: right;"/>
|
</apex:variable>
|
</td>
|
<apex:outputPanel layout="none" rendered="{!IF(loanerApply.Equipment_Type__c == 'BS' , true , false)}">
|
<td class="dataCell" align="center">
|
{!records.aset.Description}
|
</td>
|
</apex:outputPanel>
|
|
<td class="dataCell" align="center">
|
<apex:inputText id="ProductCount" value="{!records.remark}" style="text-align: right;"/>
|
</td>
|
<!--<td class="dataCell" align="center">
|
<apex:outputText value="{0, date, yyyy/MM/dd}" id="Rental_Start_Date">
|
<apex:param value="{!records.Rental_Start_Date}" />
|
</apex:outputText>
|
</td>
|
<td class="dataCell" align="center">
|
<apex:outputText value="{0, date, yyyy/MM/dd}" id="Rental_End_Date">
|
<apex:param value="{!records.Rental_End_Date}" />
|
</apex:outputText>
|
</td>
|
<td class="dataCell" align="center">
|
<apex:outputText id="SEdayCount" value="{!records.SEdayCount}"/>
|
</td>-->
|
</tr>
|
</apex:repeat>
|
</table>
|
</apex:pageBlock>
|
</div>
|
</apex:pageBlock>
|
</apex:outputPanel>
|
</apex:form>
|
</apex:page>
|