| | |
| | | <apex:page id="Page" showHeader="false" sidebar="false" controller="BatchSelectRepairPageController" applyBodyTag="false" applyHtmlTag="false" action="{!init}"> |
| | | <head> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <!-- <apex:stylesheet value="{!URLFOR($Resource.jquerysuggestcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquerysuggestjs)}"/> --> |
| | | <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> |
| | | <title>批量选择修理功能</title> |
| | | <style type="text/css"> |
| | | .pure-table { |
| | |
| | | border: 1px solid #cbcbcb; |
| | | width: 100%; |
| | | } |
| | | |
| | | |
| | | .pure-table caption { |
| | | color: #000; |
| | | font: italic 85%/1 arial,sans-serif; |
| | |
| | | //全选功能 |
| | | function checkAll() { |
| | | var cnt = j$(escapeVfId('raCnt')).val(); |
| | | if (j$(escapeVfId('Page:Form:Block:j_id47:checkAll')).attr('checked') == 'checked') { |
| | | if (j$(escapeVfId('Page:Form:Block:j_id53:checkAll')).attr('checked') == 'checked') { |
| | | for (var i = 0; i < cnt; i++) { |
| | | j$(escapeVfId('Page:Form:Block:j_id47:records:' + i + ':checklist')).attr('checked',true); |
| | | j$(escapeVfId('Page:Form:Block:j_id53:records:' + i + ':checklist')).attr('checked',true); |
| | | } |
| | | } else { |
| | | } else { |
| | | for (var i = 0; i < cnt; i++) { |
| | | j$(escapeVfId('Page:Form:Block:j_id47:records:' + i + ':checklist')).attr('checked',false); |
| | | j$(escapeVfId('Page:Form:Block:j_id53:records:' + i + ':checklist')).attr('checked',false); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //检索功能 |
| | | // function RetrievalBtnJS() { |
| | |
| | | // } |
| | | // } |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <apex:form id="Form" style="margin:10px 10px;"> |
| | | <apex:form id="allForm" style="margin: 10px 10px;"> |
| | | <apex:actionFunction name="RetrievalBtn" action="{!RetrievalBtn}" rerender="Form, message" onComplete="unblockUI();"/> |
| | | <!-- <apex:actionFunction name="showPDF" action="{!showPDF}" rerender="Form, message" onComplete="unblockUI();" /> --> |
| | | <!-- 后台报错信息显示的关键 --> |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages ></apex:pageMessages> |
| | | </apex:outputPanel> |
| | | <apex:pageBlock mode="maindetail" Id="Block"> |
| | | <div style="position: relative;top:0;width:100%;"> |
| | | <table> |
| | | <tr> |
| | | <td><apex:outputLabel value="检索部" style="font-size:18px;font-weight:bold;padding-right: 5px;"/></td> |
| | | </tr> |
| | | <apex:repeat value="{!RevalInfoList}" var="reval" id="RevalInfoList"> |
| | | <tr> |
| | | <td style="text-align: center;padding-right: 100px;"> </td> |
| | | <td style="text-align: center;padding-right: 100px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="修理单号"/> |
| | | <apex:inputText id="RepairName" value="{!reval.RepairName}"/> |
| | | </td> |
| | | <td style="text-align: center;padding-right: 100px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="SAP单号"/> |
| | | <apex:inputText id="SAPRepairNo" value="{!reval.SAPRepairNo}"/> |
| | | </td> |
| | | <td style="text-align: center;padding-right: 100px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="医院/科室"/> |
| | | <apex:inputText id="HospitalName" value="{!reval.HospitalName}"/> |
| | | </td> |
| | | <td style="text-align: center;padding-right: 100px;"> |
| | | <apex:commandButton style="width:80px;" value="检索" action="{!RetrievalBtn}" onclick="blockme();" reRender="Form,message" onComplete="unblockUI();"/> |
| | | </td> |
| | | </tr> |
| | | </apex:repeat> |
| | | </table> |
| | | <div style="font-size:12px; margin-top:10px"> |
| | | <apex:pageBlockSection title="详细信息" columns="1"> |
| | | <apex:outputPanel id="allPanel"> |
| | | <apex:pageBlock mode="maindetail" Id="allBlock"> |
| | | <div style="position: relative; width:100%; "> |
| | | <apex:pageBlock title="检索列" id="Editable"> |
| | | <table> |
| | | <tr><td style="text-align: left;padding-right: 100px;"> </td></tr> |
| | | <apex:repeat value="{!RevalInfoList}" var="reval" id="RevalInfoList"> |
| | | <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> |
| | | <td style="text-align: left;"> |
| | | <apex:inputText id="Status2" value="{!reval.Status2}"/> |
| | | </td> |
| | | <td style="text-align: right; width:200px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="RS修理单号"/> |
| | | </td> |
| | | <td style="text-align: left;"> |
| | | <apex:inputText id="RepairName" value="{!reval.RepairName}"/> |
| | | </td> |
| | | <td style="text-align: right; width:150px;"> |
| | | <apex:outputLabel style="font-weight: bold; padding-right: 5px;" value="SAP修理单号"/> |
| | | </td> |
| | | <td style="text-align: left;padding-right: 100px;"> |
| | | <apex:inputText id="SAPRepairNo" value="{!reval.SAPRepairNo}"/> |
| | | </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="{!reval.SerialNumber}"/> |
| | | </td> |
| | | <td style="text-align: right; width:200px;"> |
| | | <apex:outputLabel style="font-weight: bold; " value="修理委托者"/> |
| | | </td> |
| | | <td style="text-align: left;"> |
| | | <apex:inputField id="InchargeStaffName" value="{!reval.repair.Incharge_Staff__c}"/> |
| | | </td> |
| | | <td style="text-align: right; width:150px;"> |
| | | <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="{!reval.repair.Final_complete_day__c}"/> |
| | | </td> |
| | | </tr> |
| | | </apex:repeat> |
| | | <tr><td style="text-align: left;padding-right: 100px;"> </td></tr> |
| | | <tr> |
| | | <td style="text-align: center;" colspan="6"> |
| | | <apex:commandButton style="width:80px;" value="检索" action="{!RetrievalBtn}" onclick="blockme();" reRender="allForm,message" onComplete="unblockUI();"/> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </apex:pageBlock> |
| | | <!-- <div style="font-size:12px;"> --> |
| | | <apex:pageBlock title="详细信息" > |
| | | <input type="hidden" id="raCnt" value="{!RACount}" /> |
| | | <!-- <input type="hidden" id="raIdList" value="{!repairIdList}" /> --> |
| | | <apex:outputPanel > |
| | | <div style="text-align: center;"><apex:commandButton style="width:80px;" value="打印PDF" action="{!showPDF}" onclick="blockme();" reRender="Form,message" onComplete="unblockUI();"/></div> |
| | | <div style="width:700px; height:700px; margin-left:100px; margin-top:10px;"> |
| | | <table class="pure-table pure-table-horizontal" id="theTable_header"> |
| | | <tr style="background-color:#f2f3f3;"> |
| | | <th style="align:left; width:10%"><apex:inputCheckbox id="checkAll" onclick="checkAll();" style="text-align:left;"/></th> |
| | | <th style="text-align:left; width:30%">修理单号</th> |
| | | <th style="text-align:left; width:30%">科室</th> |
| | | <th style="text-align:left; width:30%">医院</th> |
| | | </tr> |
| | | </table> |
| | | <div style="height:500px; overflow:auto;"> |
| | | <table class="pure-table pure-table-horizontal" id="theTable_header" style="width: 100%"> |
| | | <apex:repeat value="{!RAInfoList}" var="ra" id="records"> |
| | | <tr> |
| | | <td align="left" width="10%"> |
| | | <apex:inputCheckbox style="text-align:left;" id="checklist" value="{!ra.IFCheck}" /> |
| | | </td> |
| | | <td align="left" width="30%"> |
| | | <apex:outputField id="OTCode" value="{!ra.repair.Name}"/> |
| | | </td> |
| | | <td align="left" width="30%"> |
| | | <apex:outputField id="Samplename" value="{!ra.repair.HP_Name__c}"/> |
| | | </td> |
| | | <td align="left" width="30%"> |
| | | <apex:outputField id="Specs" value="{!ra.repair.Department_Name__c}"/> |
| | | </td> |
| | | </tr> |
| | | </apex:repeat> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | </apex:outputPanel> |
| | | </apex:pageBlockSection> |
| | | <apex:commandButton style="width:80px;" value="打印PDF" action="{!showPDF}" onclick="blockme();" reRender="allForm,message" onComplete="unblockUI();"/> |
| | | <div style="width:100%;height:385px;overflow:auto;"> |
| | | <table class="pure-table pure-table-horizontal" id="theTable_header" style="width:99%; margin-top:10px;border-collapse: collapse;table-layout:fixed;"> |
| | | <tr style="background-color:#f2f3f3;"> |
| | | <th style="align:left; width:2%"><apex:inputCheckbox id="checkAll" onclick="checkAll();" style="text-align:left;"/></th> |
| | | <th style="text-align:left; width:6%">状态1</th> |
| | | <th style="text-align:left; width:6%">状态2</th> |
| | | <th style="text-align:left; width:7%">RS修理单号</th> |
| | | <th style="text-align:left; width:10%">SAP修理单号</th> |
| | | <th style="text-align:left; width:10%">型号</th> |
| | | <th style="text-align:left; width:5%">机身编号</th> |
| | | <th style="text-align:left; width:8%">医院名称</th> |
| | | <th style="text-align:left; width:5%">省份</th> |
| | | <th style="text-align:left; width:5%">修理委托者</th> |
| | | <th style="text-align:left; width:8%">FSE申请日期</th> |
| | | <th style="text-align:left; width:5%">维修中心</th> |
| | | <th style="text-align:left; width:5%">服务方式</th> |
| | | <th style="text-align:left; width:8%">有无维修合同对象</th> |
| | | <th style="text-align:left; width:8%">无偿区别标志</th> |
| | | </tr> |
| | | </table> |
| | | <table class="pure-table pure-table-horizontal" id="theTable_header" style="width:99%; border-collapse: collapse;table-layout:fixed;"> |
| | | <apex:repeat value="{!RAInfoList}" var="ra" id="records"> |
| | | <tr> |
| | | <td align="left" width="2%"> |
| | | <apex:inputCheckbox style="text-align:left;" id="checklist" value="{!ra.IFCheck}" /> |
| | | </td> |
| | | <td align="left" width="6%"> |
| | | <apex:outputField id="Status1" value="{!ra.repair.Status1__c}"/> |
| | | </td> |
| | | <td align="left" width="6%"> |
| | | <apex:outputField id="Status2" value="{!ra.repair.Status2__c}"/> |
| | | </td> |
| | | <td align="left" width="7%"> |
| | | <apex:outputField id="OTCode" value="{!ra.repair.Name}"/> |
| | | </td> |
| | | <td align="left" width="10%"> |
| | | <apex:outputField id="SAP_Service_Repair_No" value="{!ra.repair.SAP_Service_Repair_No__c}"/> |
| | | </td> |
| | | <td align="left" width="10%"> |
| | | <apex:outputField id="Delivered_Product" value="{!ra.repair.Delivered_Product__c}"/> |
| | | </td> |
| | | <td align="left" width="5%"> |
| | | <apex:outputField id="SerialNumber" value="{!ra.repair.SerialNumber__c}"/> |
| | | </td> |
| | | <td align="left" width="8%"> |
| | | <apex:outputField id="HP_Name" value="{!ra.repair.HP_Name__c}"/> |
| | | </td> |
| | | <td align="left" width="5%"> |
| | | <apex:outputField id="State_Hospital" value="{!ra.repair.State_Hospital__c}"/> |
| | | </td> |
| | | <td align="left" width="5%"> |
| | | <apex:outputField id="Incharge_Staff" value="{!ra.repair.Incharge_Staff__c}"/> |
| | | </td> |
| | | <td align="left" width="8%"> |
| | | <apex:outputField id="FSE_ApplyForRepair_Day" value="{!ra.repair.FSE_ApplyForRepair_Day__c}"/> |
| | | </td> |
| | | <td align="left" width="5%"> |
| | | <apex:outputField id="work_location_select" value="{!ra.repair.work_location_select__c}"/> |
| | | </td> |
| | | <td align="left" width="5%"> |
| | | <apex:outputField id="On_site_repair" value="{!ra.repair.On_site_repair__c}"/> |
| | | </td> |
| | | <td align="center" width="8%"> |
| | | <apex:outputField id="Number_of_EffectiveContract" value="{!ra.repair.Number_of_EffectiveContract__c}"/> |
| | | </td> |
| | | <td align="left" width="8%"> |
| | | <apex:outputField id="NewProductGuaranteeObject" value="{!ra.repair.NewProductGuaranteeObject__c}"/> |
| | | </td> |
| | | </tr> |
| | | </apex:repeat> |
| | | </table> |
| | | </div> |
| | | </apex:pageBlock> |
| | | <!-- </div> --> |
| | | </div> |
| | | </div> |
| | | </apex:pageBlock> |
| | | </apex:pageBlock> |
| | | </apex:outputPanel> |
| | | </apex:form> |
| | | </body> |
| | | </apex:page> |