| | |
| | | if (beipinCunFangDi=='广州 备品中心' || beipinCunFangDi=='北京 备品中心' || beipinCunFangDi=='上海 备品中心') { |
| | | angecylookrole =true; |
| | | } |
| | | System.debug('angecylookrole===' + angecylookrole); |
| | | setAssetFieldSetInfo();//20210628 1650 you 挪个位置 |
| | | if (UserInfo.getProfileId() == System.Label.ProfileId_SystemAdmin || System.Label.ProfileId_EquCenAdmin.contains(UserInfo.getProfileId())) { |
| | | internalAssetLocationLogin = FixtureUtil.bieCunFangDiOpsMap.get('备品管理中心')[0].getValue(); // SelectOption('All', '--全部--') |
| | |
| | | } |
| | | System.debug('oldAssetInfoList===' + oldAssetInfoList); |
| | | checkedAssetInfoNum = oldAssetInfoList.size(); |
| | | System.debug('oldAssetInfoListSize===' + oldAssetInfoList.size()); |
| | | allAssetInfoList.clear(); |
| | | |
| | | totalFixDataNum = oldAssetInfoList.size(); // 打勾固定数据数量 |
| | |
| | | } |
| | | System.debug('currPage===' + currPage); |
| | | System.debug('totalPage===' + totalPage); |
| | | System.debug('selctRecordNum===' + selctRecordNum); |
| | | if (selRecordOption != NONE) { |
| | | // selRecordOption = String.valueOf(Integer.valueOf(selRecordOption) + checkedAssetInfoNum); |
| | | if (currPage == 1) { |
| | |
| | | soqlAsset += ' limit ' + selRecordOption + ' offset ' + String.valueOf((currPage - 1) * selctRecordNum - checkedAssetInfoNum); |
| | | System.debug('Last page;'); |
| | | } else { |
| | | soqlAsset += ' limit ' + selRecordOption + ' offset ' + String.valueOf((currPage - 1) * selctRecordNum - checkedAssetInfoNum); |
| | | if(oldAssetInfoList.size() > 10 && currPage == 2){ |
| | | soqlAsset += ' limit ' + selRecordOption + ' offset ' + String.valueOf((currPage) * selctRecordNum - checkedAssetInfoNum); |
| | | }else{ |
| | | soqlAsset += ' limit ' + selRecordOption + ' offset ' + String.valueOf((currPage - 1) * selctRecordNum - checkedAssetInfoNum); |
| | | } |
| | | |
| | | } |
| | | } |
| | | // 最终检索结果 |