<apex:page id="Page" controller="NewRepairPartsController" action="{!init}" sidebar="false" showHeader="false">
|
<!-- <apex:page standardController="RepairPart__c" id="Page" extensions="NewRepairPartsController" action="{!init}" sidebar="false" showHeader="false"> -->
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<script>
|
//var isReturn = true;
|
function returnSWOPage(){
|
var pageClose = j$(escapeVfId("pageClose")).value();
|
if(pageClose == "true" ){
|
var repairPartId = j$(escapeVfId("repairPartId")).value();
|
var swoId = j$(escapeVfId("swoId")).value();
|
window.opener.repairReturnJS(repairPartId,swoId);
|
window.close();
|
}
|
}
|
|
function saveJS(){
|
blockme();
|
save();
|
}
|
|
function closePage(){
|
window.close();
|
}
|
|
function deleteJS(){
|
if(confirm('是否删除?')==true){
|
var Id = j$(escapeVfId("id")).value();
|
if(Id == null || Id == ""){
|
closePage();
|
return;
|
}
|
blockme();
|
deleteAction();
|
|
}
|
}
|
|
</script>
|
<style type="text/css">
|
.pbSubheader {
|
background: #BFB19C!important;
|
/*background-color: #FFFFFF!important;*/
|
/*background: #BFB19C;*/
|
/*background-color: #44A3BB!important;
|
background-color: #E6E6FA!important;*/
|
/*background-color: #1797c0!important;*/
|
background-color: #DFE6F0!important;
|
/*color:#607799;*/
|
/*color:#FFFFFF!important;*/
|
/*background-color: #FFFFFF!important;*/
|
/*font-size:12pt;
|
font-family:verdana;*/
|
font-weight:bold;
|
|
}
|
</style>
|
<apex:form id="formInfo">
|
<apex:outputPanel id="message">
|
<apex:pagemessages />
|
</apex:outputPanel>
|
<apex:actionFunction name="save" action="{!save}" oncomplete="returnSWOPage();unblockUI();" reRender="formInfo,message"/>
|
<apex:actionFunction name="deleteAction" action="{!deleteAction}" oncomplete="returnSWOPage();unblockUI();" reRender="formInfo,message"/>
|
<input type="hidden" id="repairPartId" value="{!repairId}" />
|
<input type="hidden" id="pageClose" value="{!pageClose}" />
|
<input type="hidden" id="swoId" value="{!repairPart.SWO_ID__c}" />
|
<input type="hidden" id="id" value="{!repairPart.Id}" />
|
<apex:pageBlock id="RepairPartInfo" title="RepairPart">
|
<apex:pageBlockButtons location="top">
|
<apex:commandButton onclick="saveJS()" value="Save" oncomplete="returnSWOPage();" reRender="formInfo,messageInfo" style="width: 10%">
|
|
</apex:commandButton>
|
|
<apex:commandButton onclick="closePage()" value="Cancel" style="width: 10%">
|
|
</apex:commandButton>
|
<!-- onclick="deleteJS();" -->
|
<apex:commandButton onclick="deleteJS();" oncomplete="returnSWOPage();" value="Delete" style="width: 10%">
|
<!-- <apex:commandButton action="{!deleteAction}" oncomplete="returnSWOPage();" reRender="formInfo" value="删除" > -->
|
|
</apex:commandButton>
|
</apex:pageBlockButtons>
|
<apex:pageBlockSection title="RepairPart" columns="2">
|
<apex:pageBlockSectionItem >
|
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.SWO_ID__c.label}" for="SWO_ID"/>
|
<apex:outputField value="{!repairPart.SWO_ID__c}" id="SWO_ID" />
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.Product__c.label}" for="ITEM"/>
|
<apex:inputField value="{!repairPart.Product__c}" id="ITEM" required="true"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.QUANTITY__c.label}" for="QUANTITY"/>
|
<apex:inputField value="{!repairPart.QUANTITY__c}" id="QUANTITY" required="true"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.INST_SERIAL__c.label}" for="INST_SERIAL"/>
|
<apex:inputField value="{!repairPart.INST_SERIAL__c}" id="INST_SERIAL"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.DEFECT_PART_NUMBER__c.label}" for="DEFECT_PART_NUMBER"/>
|
<apex:inputField value="{!repairPart.DEFECT_PART_NUMBER__c}" id="DEFECT_PART_NUMBER"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.LOCATION__c.label}" for="LOCATION"/>
|
<apex:inputField value="{!repairPart.LOCATION__c}" id="LOCATION" required="true"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.DEFECT_SERIAL_NUMBER__c.label}" for="DEFECT_SERIAL_NUMBER"/>
|
<apex:inputField value="{!repairPart.DEFECT_SERIAL_NUMBER__c}" id="DEFECT_SERIAL_NUMBER"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.ECN__c.label}" for="ECN"/>
|
<apex:inputField value="{!repairPart.ECN__c}" id="ECN"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.ANI_DEFECT_CATEGORY__c.label}" for="ANI_DEFECT_CATEGORY"/>
|
<apex:inputField value="{!repairPart.ANI_DEFECT_CATEGORY__c}" id="ANI_DEFECT_CATEGORY"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.PICKED_BY__c.label}" for="PICKED_BY"/>
|
<apex:inputField value="{!repairPart.PICKED_BY__c}" id="PICKED_BY"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.HOURS__c.label}" for="HOURS"/>
|
<apex:inputField value="{!repairPart.HOURS__c}" id="HOURS"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.INVENTORY_AVAILABILITY__c.label}" for="INVENTORY_AVAILABILITY"/>
|
<apex:inputField value="{!repairPart.INVENTORY_AVAILABILITY__c}" id="INVENTORY_AVAILABILITY"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.BILL_AT_0_VALUE__c.label}" for="BILL_AT_0_VALUE"/>
|
<apex:inputField value="{!repairPart.BILL_AT_0_VALUE__c}" id="BILL_AT_0_VALUE"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.Webster_Loaner__c.label}" for="Webster_Loaner"/>
|
<apex:inputField value="{!repairPart.Webster_Loaner__c}" id="Webster_Loaner"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.QTY_PICKED__c.label}" for="QTY_PICKED"/>
|
<apex:inputField value="{!repairPart.QTY_PICKED__c}" id="QTY_PICKED"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.PICKED_DATE__c.label}" for="PICKED_DATE"/>
|
<apex:inputField value="{!repairPart.PICKED_DATE__c}" id="PICKED_DATE"/>
|
</apex:pageBlockSectionItem>
|
|
<apex:pageBlockSectionItem >
|
|
</apex:pageBlockSectionItem>
|
<apex:pageBlockSectionItem >
|
<apex:outputLabel value="{!$ObjectType.RepairPart__c.fields.NOTES__c.label}" for="NOTES"/>
|
<apex:inputField value="{!repairPart.NOTES__c}" id="NOTES"/>
|
</apex:pageBlockSectionItem>
|
</apex:pageBlockSection>
|
</apex:pageBlock>
|
</apex:form>
|
</apex:page>
|