<apex:page controller="LoanerLendDeliverController" showHeader="true" 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)}"/>
|
<style type="text/css"> td>div{display: inline-block;}</style>
|
<script>
|
function saveJs() {
|
if(confirm('是否保存修改?')==true){
|
blockme();
|
saveBtn();
|
}
|
}
|
function checkAll() {
|
var productCount = j$(escapeVfId('linesize')).value();
|
if (j$(escapeVfId('checkall')).attr('checked') == 'checked') {
|
for (var i = 0; i < productCount; i++) {
|
j$(escapeVfId('allPage:allForm:allBlock:lines:' + i + ':check')).attr('checked',true);
|
}
|
} else {
|
for (var i = 0; i < productCount; i++) {
|
j$(escapeVfId('allPage:allForm:allBlock:lines:' + i + ':check')).attr('checked',false);
|
}
|
}
|
}
|
</script>
|
|
<apex:form id="allForm">
|
<apex:actionFunction name="saveBtn" action="{!saveBtn}" rerender="allForm,message,allPanel" onComplete="unblockUI();">
|
</apex:actionFunction>
|
|
<apex:outputPanel id="message">
|
<apex:messages />
|
</apex:outputPanel>
|
|
<input type="hidden" id='linesize' value="{!datalineSize}"/>
|
|
<apex:outputPanel id="allPanel">
|
<apex:pageBlock id="allBlock">
|
|
<table border="0" style="width: 800px;">
|
<tr>
|
<td>
|
<label for="company">转借发货物流公司: </label><apex:inputField value="{!lac.Return_Track_Company__c}" id="company"></apex:inputField>
|
</td>
|
</tr>
|
<tr>
|
<td>
|
<label for="number">转借发货物流单号: </label><apex:inputField value="{!lac.Return_Track_Number__c}" id="number"></apex:inputField>
|
</td>
|
</tr>
|
<tr>
|
<td>
|
<label for="user" >转借发货物人: </label>
|
<apex:inputField value="{!lac.Return_Trake_Staff__c}" id="user"></apex:inputField>
|
</td>
|
<td>
|
<apex:commandButton onclick="saveJs();" value="发货" rerender="dummy" style="width: 70px;float: right;"/>
|
<apex:commandButton action="{!cancelBtn}" value="返回" rerender="dummy" style="width: 70px;float: right;"/>
|
</td>
|
</tr>
|
</table>
|
<br/>
|
<br/>
|
<table border="0" style="border-collapse: collapse; width:1000px; table-layout:fixed;">
|
<colgroup>
|
<col width="25"/>
|
<col width="25"/>
|
<col width="100"/>
|
<col width="150"/>
|
<col width="150"/>
|
<col width="100"/>
|
<col width="100"/>
|
<col width="150"/>
|
<col width="150"/>
|
<col width="150"/>
|
<col width="150"/>
|
</colgroup>
|
<tr>
|
<th style="text-align: center; border-bottom-style: ridge;"><input type="checkbox" id="checkall" onclick="checkAll();" /></th>
|
<th style="text-align: center; border-bottom-style: ridge;">No.</th>
|
<th style="text-align: center; border-bottom-style: ridge;">转借单号</th>
|
<th style="text-align: center; border-bottom-style: ridge;">样机名称</th>
|
<th style="text-align: center; border-bottom-style: ridge;">{!$ObjectType.loaner_application_detail__c.fields.SerialNumber__c.label}</th>
|
<th style="text-align: center; border-bottom-style: ridge;">{!$ObjectType.loaner_application_detail__c.fields.Internal_Asset_number__c.label}</th>
|
<th style="text-align: center; border-bottom-style: ridge;">{!$ObjectType.loaner_application_detail__c.fields.OTCODE__c.label}</th>
|
<th style="text-align: center; border-bottom-style: ridge;">{!$ObjectType.loaner_application_detail__c.fields.ECCode__c.label}</th>
|
<th style="text-align: center; border-bottom-style: ridge;">转借代理商</th>
|
<th style="text-align: center; border-bottom-style: ridge;">是否上传借用协议</th>
|
<th style="text-align: center; border-bottom-style: ridge;">样机备注</th>
|
</tr>
|
<apex:variable value="{!1}" var="cnt" />
|
<apex:repeat value="{!dataLines}" var="line" id="lines">
|
<tr class="dataRow {!IF(MOD(cnt, 2)==0, 'odd', 'even')} {!IF(cnt==1, 'first', '')}" 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="dataCell" style="text-align: center;">
|
<apex:inputCheckbox id="check" value="{!line.checkFlag}"/>
|
</td>
|
<td class="dataCell" style="text-align: center;">
|
<apex:outputText value="{!line.lineNo}"/>
|
</td>
|
<td class="dataCell" style="text-align: center;">
|
<apex:outputText value="{!line.num}"/>
|
</td>
|
<td class="dataCell" style="text-align: center;">
|
<apex:outputText value="{!line.lad.LOANER__r.Name}"/>
|
</td>
|
<td class="dataCell" style="text-align: center;">
|
<apex:outputText value="{!line.lad.SerialNumber__c}"/>
|
</td>
|
<td class="dataCell" style="text-align: center;">
|
<apex:outputText value="{!line.lad.Internal_Asset_number__c}"/>
|
</td>
|
<td class="dataCell" style="text-align: center;">
|
<apex:outputText value="{!line.lad.OTCODE__c}"/>
|
</td>
|
<td class="dataCell" style="text-align: center;">
|
<apex:outputText value="{!line.lad.ECCode__c}"/>
|
</td>
|
<td class="dataCell" style="text-align: center;">
|
<apex:outputText value="{!line.ltc}"/>
|
</td>
|
<td class="dataCell" style="text-align: center;">
|
<apex:outputText value="{!IF(line.PDFflag == true,'已上传','未上传')}"/>
|
</td>
|
<td class="dataCell" style="text-align: center;">
|
<apex:outputText value="{!line.lad.LOANER__r.Remarks2__c}"/>
|
</td>
|
<apex:variable value="{!cnt + 1}" var="cnt" />
|
</tr>
|
</apex:repeat>
|
</table>
|
</apex:pageBlock>
|
</apex:outputPanel>
|
</apex:form>
|
</apex:page>
|