| | |
| | | public with sharing class AssetMaintainController { |
| | | public static Asset StaticAssetQuertResult; |
| | | // 按钮区域 |
| | | public String assertQueryCondition {get; private set;} |
| | | public String assertQueryCondition {get;set;} |
| | | public Boolean allBlueFlag {get; private set;} // 查看全部保有设备蓝色按钮Flag |
| | | public Boolean consumableBlueFlag {get; private set;} // 查看在库的保有设备蓝色按钮Flag |
| | | public Boolean lendingBlueFlag {get; private set;} // 查看出借中保有设备蓝色按钮Flag |
| | |
| | | } |
| | | |
| | | private void fillShowList(Integer k){ |
| | | // 20231021 chenjingwu lightning改造 Start |
| | | if(!Test.isRunningTest() && allAssetInfoList.size() == 0 && assetFromSearchList.size() > 0 ){ |
| | | allAssetInfoList.addAll(assetFromSearchList); |
| | | assetFromSearchList.clear(); |
| | | } |
| | | // 20231021 chenjingwu lightning改造 End |
| | | totalNum = allAssetInfoList.size(); |
| | | totalPage = (totalNum / selctRecordNum) + (Math.mod(totalNum, selctRecordNum) > 0 ? 1 : 0); // 总页 |
| | | allAssetInfoShowList = new List<AssetInfo>(); |
| | | Integer a = (k-1)*selctRecordNum; |
| | | Integer b = Math.min(k*selctRecordNum, allAssetInfoList.size()); |
| | | System.debug('allAssetInfoList.size=>' + allAssetInfoList.size()); |
| | | System.debug('a=>' + a); |
| | | System.debug('b=>' + b); |
| | | System.debug('k=>' + k); |
| | | System.debug('totalNum=>' + totalNum); |
| | | System.debug('totalPage=>' + totalPage); |
| | | System.debug('selctRecordNum=>' + selctRecordNum); |
| | | for (Integer i = a ; i < b ; i++) { |
| | | allAssetInfoShowList.add(allAssetInfoList[i]); |
| | | } |
| | |
| | | fieldValue = ''; |
| | | } |
| | | Boolean meet = false; |
| | | System.debug(fieldValueInRecord + operator + String.valueOf(fieldValue)); |
| | | if (operator == '==' && fieldValueInRecord == String.valueOf(fieldValue)) { |
| | | meet = true; |
| | | } |