| | |
| | | //全选功能 |
| | | function checkAll() { |
| | | var cnt = j$(escapeVfId('raCnt')).val(); |
| | | if (j$(escapeVfId('Page:allForm:allBlock:j_id56:checkAll')).attr('checked') == 'checked') { |
| | | if (j$(escapeVfId('Page:allForm:allBlock:j_id66:checkAll')).attr('checked') == 'checked') { |
| | | for (var i = 0; i < cnt; i++) { |
| | | j$(escapeVfId('Page:allForm:allBlock:j_id56:records:' + i + ':checklist')).attr('checked',true); |
| | | j$(escapeVfId('Page:allForm:allBlock:j_id66:records:' + i + ':checklist')).attr('checked',true); |
| | | } |
| | | } else { |
| | | for (var i = 0; i < cnt; i++) { |
| | | j$(escapeVfId('Page:allForm:allBlock:j_id56:records:' + i + ':checklist')).attr('checked',false); |
| | | j$(escapeVfId('Page:allForm:allBlock:j_id66:records:' + i + ':checklist')).attr('checked',false); |
| | | } |
| | | } |
| | | } |
| | | //检索功能 |
| | | // function RetrievalBtnJS() { |
| | | // var RepairName = j$(escapeVfId("Page:Form:Block:RAInfoList:0:RepairName")).value(); |
| | | // var SAPRepairNo = j$(escapeVfId("Page:Form:Block:RAInfoList:0:SAPRepairNo")).value(); |
| | | // var HospitalName = j$(escapeVfId("Page:Form:Block:RAInfoList:0:HospitalName")).value(); |
| | | // blockme(); |
| | | // RetrievalBtn(); |
| | | // } |
| | | //跳转打印PDF页面 |
| | | // function showPDFJS() { |
| | | // blockme(); |
| | | // showPDF(); |
| | | // var raIdList = j$(escapeVfId('raIdList')).val(); |
| | | // if(raIdList != null && raIdList != ''){ |
| | | // var Id = raIdList.split(); |
| | | // for(var i = 0; i < Id.size(); i++){ |
| | | // window.open('apex/MaintenanceCommissionPDF?id=' + Id[i]); |
| | | // } |
| | | // } |
| | | // } |
| | | </script> |
| | | <apex:form id="allForm" style="margin: 10px 10px;"> |
| | | <apex:actionFunction name="RetrievalBtn" action="{!RetrievalBtn}" rerender="Form, message" onComplete="unblockUI();"/> |
| | |
| | | <table> |
| | | <tr><td style="text-align: left;padding-right: 100px;"> </td></tr> |
| | | <tr> |
| | | <!-- <td style="text-align: left;padding-right: 100px;"> </td> --> |
| | | <td style="text-align: right; width:200px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="状态2"/> |
| | | <td style="text-align: right; width:100px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="状态1"/> |
| | | </td> |
| | | <td style="text-align: left;"> |
| | | <apex:inputText id="Status2" value="{!RevalInfo.Status2}"/> |
| | | <td style="text-align: left;position: relative; top: 7px;"> |
| | | <apex:selectList value="{!RevalInfo.Status1}" size="1" style="width: 150px; height: 24px;"> |
| | | <apex:selectOptions value="{!StatusItems}"/> |
| | | </apex:selectList><p/> |
| | | </td> |
| | | <td style="text-align: right; width:200px;"> |
| | | <td style="text-align: right; width:150px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="RS修理单号"/> |
| | | </td> |
| | | <td style="text-align: left;"> |
| | | <apex:inputText id="RepairName" value="{!RevalInfo.RepairName}"/> |
| | | </td> |
| | | <td style="text-align: right; width:150px;"> |
| | | <td style="text-align: right; width:130px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="SAP修理单号"/> |
| | | </td> |
| | | <td style="text-align: left;padding-right: 100px;"> |
| | | <td style="text-align: left;padding-right: 70px;"> |
| | | <apex:inputText id="SAPRepairNo" value="{!RevalInfo.SAPRepairNo}"/> |
| | | </td> |
| | | <td style="text-align: right; width:60px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="服务方式"/> |
| | | </td> |
| | | <td style="text-align: left;position: relative; top: 7px;"> |
| | | <apex:selectList value="{!RevalInfo.onSiteRepair}" size="1" style="width: 150px; height: 24px;"> |
| | | <apex:selectOptions value="{!SiteRepairItems}"/> |
| | | </apex:selectList><p/> |
| | | </td> |
| | | </tr> |
| | | <tr><td style="text-align: left;padding-right: 100px;"> </td></tr> |
| | | <tr> |
| | | <!-- <td style="text-align: left;padding-right: 100px;"> </td> --> |
| | | <td style="text-align: right; width:100px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="机身编码"/> |
| | | </td> |
| | | <td style="text-align: left;"> |
| | | <apex:inputText id="SerialNumber" value="{!RevalInfo.SerialNumber}"/> |
| | | </td> |
| | | <td style="text-align: right; width:200px;"> |
| | | <td style="text-align: right; width:150px;"> |
| | | <apex:outputLabel style="font-weight: bold; " value="修理委托者"/> |
| | | </td> |
| | | <td style="text-align: left;"> |
| | | <apex:inputField id="InchargeStaffName" value="{!RevalInfo.repair.Incharge_Staff__c}"/> |
| | | </td> |
| | | <td style="text-align: right; width:150px;"> |
| | | <td style="text-align: right; width:130px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="FSE申请日"/> |
| | | </td> |
| | | <td style="text-align: left;padding-right: 80px;"> |
| | | <apex:inputField id="FSE_ApplyForRepair_Day" value="{!RevalInfo.repair.Final_complete_day__c}"/> |
| | | <td style="text-align: left;padding-right: 50px;"> |
| | | <apex:inputField id="FSE_ApplyForRepair_Day" value="{!RevalInfo.repair.Aware_date__c}"/> |
| | | </td> |
| | | <td style="text-align: right; width:60px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="维修中心"/> |
| | | </td> |
| | | <td style="text-align: left;"> |
| | | <apex:inputText id="workLocationSelect" value="{!RevalInfo.workLocationSelect}"/> |
| | | </td> |
| | | </tr> |
| | | <tr><td style="text-align: left;padding-right: 100px;"> </td></tr> |
| | |
| | | </tr> |
| | | </table> |
| | | </apex:pageBlock> |
| | | <!-- <div style="font-size:12px;"> --> |
| | | <apex:pageBlock title="详细信息" > |
| | | <input type="hidden" id="raCnt" value="{!RACount}" /> |
| | | <apex:commandButton style="width:80px;" value="打印PDF" action="{!showPDF}" onclick="blockme();" reRender="allForm,message" onComplete="unblockUI();"/> |
| | |
| | | </table> |
| | | </div> |
| | | </apex:pageBlock> |
| | | <!-- </div> --> |
| | | </div> |
| | | </apex:pageBlock> |
| | | </apex:outputPanel> |