| | |
| | | <!-- 20230418 <apex:page controller="RentalFixtureSetDetilSelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> --> |
| | | <apex:page controller="RentalFixtureSetDetilSelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets="true"> |
| | | <head> |
| | | <title>借出备品配套明细选择</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.RentalFixtureSetDetilSelectCss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | | |
| | | <script type="text/javascript"> |
| | | var heightAjustment = 120; |
| | | var widthAjustment = 30; |
| | | |
| | | </script> |
| | | </head> |
| | | <apex:form id="allForm"> |
| | | |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | | <apex:actionFunction name="saveAndSort" action="{!save}" rerender="allForm, checEventFrame" oncomplete="unblockUI();"> |
| | | <apex:param name="firstParam" assignTo="{!saveType}" value="" /> |
| | | <apex:param name="secondParam" assignTo="{!sortKey}" value="" /> |
| | | </apex:actionFunction> |
| | | <apex:outputPanel id="pageallPanel"> |
| | | <apex:pageBlock id="searchBlock" tabStyle="Report"> |
| | | <apex:pageBlockButtons location="bottom"> |
| | | <apex:commandButton style="float:left;" action="{!save}" value="確定" onclick="blockme();" rerender="allForm, checEventFrame" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:right;" value="返回上一级" action="{!goBack}"/> |
| | | <apex:commandButton style="float:right;" value="返回申请单" action="{!cancel}"/> |
| | | </apex:pageBlockButtons> |
| | | <div style="clear:both;"></div> |
| | | |
| | | <table> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Name.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Name}" style="width:100px"/></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Fixture_Set_Idx__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Fixture_Set_Idx__c}" style="width:100px"/></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Loaner_name_F__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Loaner_name_F__c}" style="width:100px"/></td> |
| | | </tr> |
| | | <!-- <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Loaner_code__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Loaner_code__c}" style="width:100px"/></td> |
| | | </tr> --> |
| | | <!-- <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Rental_Num__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Rental_Num__c}" style="width:100px"/></td> |
| | | </tr> --> |
| | | <!--TODO 同一附属品:レ --> |
| | | |
| | | </table> |
| | | </apex:pageBlock> |
| | | <c:RelationListPagingCmp id="cmpid" pgController="{!this}" hasCheckbox="false" noSort="true"/> |
| | | </apex:outputPanel> |
| | | </apex:form> |
| | | <apex:outputPanel id="checEventFrame"> |
| | | <script type="text/javascript"> |
| | | // 数量添加加减符号 |
| | | j$(".dataCellBorder1.col_Rental_Num__c").each(function () { |
| | | if(!this.firstElementChild.disabled){ |
| | | j$(this).append('<input type="button" style="width: auto;" class="inc btn" value="+" /><input type="button" style="width: auto;" class="dec btn" value="-" />'); |
| | | } |
| | | else{ |
| | | j$(this).append('<input type="button" style="width: auto;" class="dec btn" value="-" />'); |
| | | } |
| | | }); |
| | | j$(".dataCellBorder1.col_Rental_Num__c input[type=button]").on("click", function() { |
| | | var $button = j$(this); |
| | | var oldValue = $button.parent().find("input[type=text]").val(); |
| | | if ($button.val() == "+") { |
| | | var newVal = parseFloat(oldValue) + 1; |
| | | } else { |
| | | // Don't allow decrementing below zero |
| | | if (oldValue > 0) { |
| | | var newVal = parseFloat(oldValue) - 1; |
| | | } else { |
| | | newVal = 0; |
| | | } |
| | | } |
| | | $button.parent().find("input[type=text]").val(newVal); |
| | | }); |
| | | </script> |
| | | </apex:outputPanel> |
| | | </apex:page> |
| | | <!-- 20230418 zq <apex:page controller="RentalFixtureSetDetilSelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}"> --> |
| | | <apex:page controller="RentalFixtureSetDetilSelectController" showHeader="false" sidebar="false" id="allPage" action="{!init}" lightningStylesheets = "true"> |
| | | <head> |
| | | <title>借出备品配套明细选择</title> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.RentalFixtureSetDetilSelectCss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/> |
| | | |
| | | <script type="text/javascript"> |
| | | var heightAjustment = 120; |
| | | var widthAjustment = 30; |
| | | |
| | | </script> |
| | | </head> |
| | | <apex:form id="allForm"> |
| | | |
| | | <apex:outputPanel id="message"> |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | | <apex:actionFunction name="saveAndSort" action="{!save}" rerender="allForm, checEventFrame" oncomplete="unblockUI();"> |
| | | <apex:param name="firstParam" assignTo="{!saveType}" value="" /> |
| | | <apex:param name="secondParam" assignTo="{!sortKey}" value="" /> |
| | | </apex:actionFunction> |
| | | <apex:outputPanel id="pageallPanel"> |
| | | <apex:pageBlock id="searchBlock" tabStyle="Report"> |
| | | <apex:pageBlockButtons location="bottom"> |
| | | <!--20230425 zq lightning下修改样式 <apex:commandButton style="float:left;" action="{!save}" value="確定" onclick="blockme();" rerender="allForm, checEventFrame" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:right;" value="返回上一级" action="{!goBack}"/> |
| | | --> |
| | | |
| | | <apex:commandButton action="{!save}" value="確定" onclick="blockme();" rerender="allForm, checEventFrame" oncomplete="unblockUI();" /> |
| | | <apex:commandButton style="float:right;margin: 0 10px;" value="返回上一级" action="{!goBack}"/> |
| | | <apex:commandButton style="float:right;" value="返回申请单" action="{!cancel}"/> |
| | | </apex:pageBlockButtons> |
| | | <div style="clear:both;"></div> |
| | | |
| | | <table> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Name.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Name}" style="width:100px"/></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Fixture_Set_Idx__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Fixture_Set_Idx__c}" style="width:100px"/></td> |
| | | </tr> |
| | | <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Loaner_name_F__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Loaner_name_F__c}" style="width:100px"/></td> |
| | | </tr> |
| | | <!-- <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Loaner_code__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Loaner_code__c}" style="width:100px"/></td> |
| | | </tr> --> |
| | | <!-- <tr> |
| | | <td colspan="2">{!$ObjectType.Rental_Apply_Equipment_Set__c.fields.Rental_Num__c.label}</td> |
| | | <td colspan="3"><apex:outputText value="{!parentObj.Rental_Num__c}" style="width:100px"/></td> |
| | | </tr> --> |
| | | <!--TODO 同一附属品:レ --> |
| | | |
| | | </table> |
| | | </apex:pageBlock> |
| | | <c:RelationListPagingCmp id="cmpid" pgController="{!this}" hasCheckbox="false" noSort="true"/> |
| | | </apex:outputPanel> |
| | | </apex:form> |
| | | <apex:outputPanel id="checEventFrame"> |
| | | <script type="text/javascript"> |
| | | // 数量添加加减符号 |
| | | j$(".dataCellBorder1.col_Rental_Num__c").each(function () { |
| | | if(!this.firstElementChild.disabled){ |
| | | j$(this).append('<input type="button" style="width: auto;" class="inc btn" value="+" /><input type="button" style="width: auto;" class="dec btn" value="-" />'); |
| | | } |
| | | else{ |
| | | j$(this).append('<input type="button" style="width: auto;" class="dec btn" value="-" />'); |
| | | } |
| | | }); |
| | | j$(".dataCellBorder1.col_Rental_Num__c input[type=button]").on("click", function() { |
| | | var $button = j$(this); |
| | | var oldValue = $button.parent().find("input[type=text]").val(); |
| | | if ($button.val() == "+") { |
| | | var newVal = parseFloat(oldValue) + 1; |
| | | } else { |
| | | // Don't allow decrementing below zero |
| | | if (oldValue > 0) { |
| | | var newVal = parseFloat(oldValue) - 1; |
| | | } else { |
| | | newVal = 0; |
| | | } |
| | | } |
| | | $button.parent().find("input[type=text]").val(newVal); |
| | | }); |
| | | </script> |
| | | </apex:outputPanel> |
| | | </apex:page> |