From be102ae06e8f986bd9d1a544cd2752e5fa94231a Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期二, 11 七月 2023 14:23:51 +0800
Subject: [PATCH] LEX Community Deploy0711
---
force-app/main/default/pages/RentalFixtureSetDetilSelect.page | 199 ++++++++++++++++++++++++++-----------------------
1 files changed, 104 insertions(+), 95 deletions(-)
diff --git a/force-app/main/default/pages/RentalFixtureSetDetilSelect.page b/force-app/main/default/pages/RentalFixtureSetDetilSelect.page
index 400de1f..ae3e7ed 100644
--- a/force-app/main/default/pages/RentalFixtureSetDetilSelect.page
+++ b/force-app/main/default/pages/RentalFixtureSetDetilSelect.page
@@ -1,95 +1,104 @@
-<!-- 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>
\ No newline at end of file
+<!-- 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)}"/>
+<!-- 20230511 ljh lightning -->
+<apex:stylesheet value="{!URLFOR($Resource.RentalFixtureSetDetilSelectCss)}"/>
+<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
+<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
+<apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/>
+<!-- 20230511 ljh lightning start -->
+<style type="text/css">
+ table.list td input[type="text"]{width:55%;}
+</style>
+<!-- 20230511 ljh lightning end -->
+<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">
+ <!-- 20230522 ljh lightning start -->
+ <!-- <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> -->
+ <!-- 20230522 ljh lightning end -->
+ <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>
+ <!-- 20230522 ljh lightning start -->
+ <div style="width:50%;float:right;">
+ <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}"/>
+ <div style="clear:both;"></div>
+ </div>
+ <!-- 20230522 ljh lightning end -->
+ </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>
\ No newline at end of file
--
Gitblit v1.9.1