| | |
| | | public Boolean showEditButton{get;set;} |
| | | private String case_OR_animal_organLabel{get;set;} |
| | | private String saveType{get;set;} |
| | | public String staticResource {get; set;} |
| | | public String rowListString{set;get;} |
| | | |
| | | public ConsumTrialController(ApexPages.StandardController stdController) { |
| | | parId = System.currentPageReference().getParameters().get('Id'); |
| | |
| | | if (String.isBlank(parId)) { |
| | | parId = stdController.getId(); |
| | | } |
| | | PIHelper.PIIntegration piIntegration = PIHelper.getPIIntegrationInfo('Consum_Apply_Equipment_Set_Detail__c'); |
| | | staticResource = JSON.serialize(piIntegration); |
| | | } |
| | | |
| | | public void init() { |
| | |
| | | // , DateOfDelivery__c |
| | | // , ReceivingNoteNo__c |
| | | , Status__c |
| | | ,AWS_Data_Id__c |
| | | // , Asset_loaner_category__c |
| | | , RA_Status__c |
| | | , demo_purpose2__c |
| | |
| | | assetFieldApiList.addAll(assetFieldApiSet); |
| | | receivingNoteFieldApiList.addAll(receivingNoteFieldApiSet); |
| | | pageB = new PageBean(rnList[0], assetFieldApiList, receivingNoteFieldApiList); |
| | | rowListString = JSON.serialize(pageB.rowBList); |
| | | showEditButton = (rnList[0].Status__c != '申请中' && rnList[0].Status__c != '取消'); |
| | | } |
| | | catch (Exception 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)' |
| | |
| | | // dataConfirmation = rnd1.DataConfirmation__c; |
| | | lineNo = lineNo1 + 1; |
| | | canChangeField = 'Show_demonstration__c, Operation_Type__c, Consum_Start_Date__c'; |
| | | canChangeField += ', Case_OR_animal_organ__c, Trial_User__c, Follower_User__c, Spare__c, Comment__c, Degree_Of_Importance__c'; |
| | | canChangeField += ',AWS_Data_Id__c, Case_OR_animal_organ__c, Trial_User__c, Follower_User__c, Spare__c, Comment__c, Degree_Of_Importance__c'; |
| | | |
| | | haveAsset = String.isNotBlank(rnd1.Asset__c); |
| | | } |