| | |
| | | public PageBean pageB {get; set;} |
| | | public Boolean showSelectRnsButton{get;set;} |
| | | private String case_OR_animal_organLabel{get;set;} |
| | | public String staticResource {get; set;} |
| | | public String rowListString{set;get;} |
| | | |
| | | public ConsumTrialUpdateController() { |
| | | parId = System.currentPageReference().getParameters().get('parId'); |
| | | canEdit = System.currentPageReference().getParameters().get('canedit') == 'true'; |
| | | PIHelper.PIIntegration piIntegration = PIHelper.getPIIntegrationInfo('Consum_Apply_Equipment_Set_Detail__c'); |
| | | staticResource = JSON.serialize(piIntegration); |
| | | } |
| | | |
| | | public void init() { |
| | |
| | | List<Consum_Apply__c> rnList = [SELECT Id |
| | | // , DateOfDelivery__c |
| | | // , ReceivingNoteNo__c |
| | | , Status__c |
| | | , AWS_Data_Id__c,Status__c |
| | | // , Asset_loaner_category__c |
| | | , RA_Status__c |
| | | , HP_received_sign_rich__c |
| | |
| | | receivingNoteFieldApiList.addAll(receivingNoteFieldApiSet); |
| | | setEditable(); |
| | | pageB = new PageBean(rnList[0], assetFieldApiList, receivingNoteFieldApiList, isCenter); |
| | | system.debug('pageB.rowBList = ' + pageB.rowBList); |
| | | List<rowListStr> r1 = new List<rowListStr>(); |
| | | for (RowBean rowB : pageB.rowBList) { |
| | | rowListStr r2 = new rowListStr(rowB.rnd.AWS_Data_Id__c,rowB.rnd.Id); |
| | | r1.add(r2); |
| | | } |
| | | rowListString = JSON.serialize(r1); |
| | | } |
| | | catch (Exception e) { |
| | | ApexPages.addMessages(e); |
| | |
| | | + String.join(assetFieldApiList, ',') |
| | | + (assetFieldApiList.size() > 0 ? ',' : '') |
| | | + String.join(receivingNoteFieldApiList, ',') |
| | | + ',AWS_Data_Id__c' |
| | | + ' FROM Consum_Apply_Equipment_Set_Detail__c ' |
| | | + ' WHERE Consum_Apply_Equipment_Set__r.Consum_Apply__c = \'' + rn.Id + '\'' + wher |
| | | + ' AND (Cancel_Select__c = false OR NG_Select_Again__c = true)' |
| | |
| | | } |
| | | } |
| | | |
| | | public class rowListStr{ |
| | | public String AWSDataId {get; set;} |
| | | public String Id {get; set;} |
| | | public rowListStr() { |
| | | AWSDataId = ''; |
| | | Id = ''; |
| | | } |
| | | |
| | | public rowListStr(String l, String v) { |
| | | AWSDataId = l; |
| | | Id = v; |
| | | } |
| | | } |
| | | |
| | | } |