| | |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"></apex:stylesheet> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"></apex:includeScript> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"></apex:includeScript> |
| | | <apex:includeScript value="/soap/ajax/29.0/connection.js"></apex:includeScript> |
| | | <apex:includeScript value="/soap/ajax/29.0/apex.js"></apex:includeScript> |
| | | <apex:includeScript value="{!URLFOR($Resource.connection20)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> |
| | | <style type="text/css"></style> |
| | | <script> |
| | | function searchProductJs() { |
| | | searchAsset(); |
| | | } |
| | | function searchProductJs() { |
| | | searchAsset(); |
| | | } |
| | | |
| | | function saveJs(){ |
| | | save(); |
| | | } |
| | | function saveJs(){ |
| | | save(); |
| | | } |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 start |
| | | function checkPartSupplyFinishDateJs(){ |
| | | var today = new Date(); |
| | | var todayNew = today.toLocaleDateString(); |
| | | var check; |
| | | var num = 100000; |
| | | for (var i = 0; i < 100; i++) { |
| | | check = j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:'+i+':consumablesCountproRowCheckbox')).attr('checked'); |
| | | if (check == 'checked'){ |
| | | num = i; |
| | | } |
| | | } |
| | | if (num != 100000){ |
| | | var partSupplyFinishDate = new Date(j$(escapeVfId('allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsTable:' + num + ':partSupplyFinishDate')).value()); |
| | | if (partSupplyFinishDate != 'Invalid Date'){ |
| | | var partSupplyFinishDateNew = partSupplyFinishDate.toLocaleDateString(); |
| | | if (partSupplyFinishDateNew > todayNew){ |
| | | alert('预计'+ partSupplyFinishDateNew +'零件即将停产,请送修前与工厂及RC联络'); |
| | | } |
| | | if (partSupplyFinishDateNew <= todayNew){ |
| | | alert('该型号零件已经停产,有特殊需求,请送修前与工厂RC联络'); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 end |
| | | |
| | | function ClearJs(){ |
| | | blockme(); |
| | |
| | | </script> |
| | | <apex:form id="allForm"> |
| | | <apex:actionFunction name="searchAsset" action="{!searchAsset}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter();SumCompute()"> |
| | | </apex:actionFunction> |
| | | <apex:actionFunction name="save" action="{!save}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter();SumCompute()"> |
| | | </apex:actionFunction> |
| | | </apex:actionFunction> |
| | | <apex:actionFunction name="save" action="{!save}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter();SumCompute()"> |
| | | </apex:actionFunction> |
| | | |
| | | |
| | | <apex:outputPanel id="allPanel"> |
| | | <apex:pageBlock id="allBlock"> |
| | |
| | | |
| | | <td colspan="2"/> |
| | | <td colspan="4">机身编码: |
| | | <apex:inputText value="{!FuselageNumber}" id="FuselageNumber"/> |
| | | <apex:inputText value="{!FuselageNumber}" id="FuselageNumber"/> |
| | | </td> |
| | | |
| | | <td align="right"></td> |
| | |
| | | <!-- <td> |
| | | <apex:commandButton onclick="saveJs();" value="确定" rerender="dummy" /> |
| | | </td> --> |
| | | |
| | | |
| | | </tr> |
| | | <!-- <td> |
| | |
| | | <tr> |
| | | <td colspan="2"/> |
| | | <td colspan="4">设备型号: |
| | | <apex:inputText value="{!AssetModel}" id="AssetModel"/> |
| | | <apex:inputText value="{!AssetModel}" id="AssetModel"/> |
| | | </td> |
| | | |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2"/> |
| | | <td colspan="4">医院名称: |
| | | <apex:inputText value="{!HospitalName}" id="HospitalName"/> |
| | | </td> |
| | | |
| | | <td colspan="2"/> |
| | | <td colspan="4">医院名称: |
| | | <apex:inputText value="{!HospitalName}" id="HospitalName"/> |
| | | </td> |
| | | |
| | | </tr> |
| | | </table> |
| | | </apex:pageBlock> |
| | |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | | <apex:pageBlock title="保有设备查找" id="ConsumableorderdetailsSection"> |
| | | <table class="list" border="0" cellpadding="0" cellspacing="0"> |
| | | <table class="list" border="0" cellpadding="0" cellspacing="0"> |
| | | <tr class="headerRow"> |
| | | <!-- <apex:variable var="v" value="" rendered="{!editAble}"> --> |
| | | <!-- <th><input type='checkbox' onClick='checkAll()' id='checker'/>选择</th> --> |
| | |
| | | |
| | | <th>选择</th> |
| | | <th>保有设备名称</th> |
| | | <th>状态</th> |
| | | <!-- 20220927 ljh XLIU-CJN62G update start--> |
| | | <!-- <th>状态</th> --> |
| | | |
| | | <th>机身编码</th> |
| | | <th>设备型号</th> |
| | | <!-- <th>信息来源</th> --> |
| | | <th>集中管理库存</th> |
| | | <th>医院</th> |
| | | <th>战略科室</th> |
| | | <th>科室</th> |
| | | <th>发货日</th> |
| | | <th>多年保修期至</th> |
| | | <th>最近一期维修合同结束日</th> |
| | | <!-- <th>集中管理库存</th> --> |
| | | <!-- 20220927 ljh XLIU-CJN62G update end--> |
| | | </tr> |
| | | <apex:repeat value="{!choiceAssetInfoRecordsview}" var="records" id="ConsumableorderdetailsTable"> |
| | | <tr class="dataRow"> |
| | | <td> |
| | | <apex:inputCheckbox value="{!records.check}" onclick="CheckSize(this);" id="consumablesCountproRowCheckbox" disabled="{!!records.canSelect}"/> |
| | | </td> |
| | | <td> |
| | | <apex:inputCheckbox value="{!records.check}" onclick="CheckSize(this);" id="consumablesCountproRowCheckbox" onchange="checkPartSupplyFinishDateJs(); return false;" disabled="{!!records.canSelect}"/> |
| | | </td> |
| | | |
| | | <!-- <apex:variable var="v" value="" rendered="{!editAble}" id="variableinfo"> |
| | | <td> |
| | |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Name}"/> |
| | | </td> |
| | | <td class="dataCell"> |
| | | <!-- <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Status}"/> |
| | | </td> |
| | | </td> --> |
| | | |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.SerialNumber}"/> |
| | | </td> |
| | | <!-- <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Product2.Asset_Model_No__c}"/> |
| | | </td> --> |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Information_From__c}"/> |
| | | </td> |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Ji_Zhong_Guan_Li_Ku_Cun__c}"/> |
| | | </td> |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Hospital__r.Name}"/> |
| | |
| | | <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Account.Name}"/> |
| | | </td> |
| | | <!-- <td class="dataCell"> |
| | | <apex:outputText value="{!records.ast.Product2.Asset_Model_No__c}"/> |
| | | </td> --> |
| | | <td class="dataCell"> |
| | | <apex:outputField value="{!records.ast.Posting_Date__c}"/> |
| | | </td> |
| | | <td class="dataCell"> |
| | | <apex:outputField value="{!records.ast.Extend_Gurantee_DateTo__c}"/> |
| | | </td> |
| | | <td class="dataCell"> |
| | | <apex:outputField value="{!records.ast.CurrentContract_End_Date__c}"/> |
| | | </td> |
| | | <!--XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 start --> |
| | | <td> |
| | | <apex:inputField value="{!records.ast.PartSupplyFinishDate__c}" id="partSupplyFinishDate" style="display: none" showDatePicker="false"/> |
| | | </td> |
| | | <!--XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 end --> |
| | | |
| | | </tr> |
| | | </apex:repeat> |
| | | </table> |
| | | </apex:pageBlock> |
| | | </apex:pageBlock> |
| | | </apex:pageBlock> |
| | | </apex:outputPanel> |
| | | </apex:form> |