| | |
| | | private String saveType{get;set;} |
| | | public String staticResource {get; set;} |
| | | public String rowListString{set;get;} |
| | | public String EditAWSDataId{set;get;} |
| | | |
| | | public ConsumTrialController(ApexPages.StandardController stdController) { |
| | | parId = System.currentPageReference().getParameters().get('Id'); |
| | |
| | | else if (rnList[0].Status__c == '取消') { |
| | | throw new ControllerUtil.myException('取消的耗材申请书不能保存'); |
| | | } |
| | | system.debug('耗材备品明细加密信息:'+JSON.serialize(pageB.rowBList)); |
| | | List<Consum_Apply_Equipment_Set_Detail__c> rndList = new List<Consum_Apply_Equipment_Set_Detail__c>(); |
| | | for (RowBean rowB : pageB.rowBList) { |
| | | if (rowB.checked) { |
| | | rowB.rnd.InputCheck__c = true; |
| | | //rowB.rnd.AWS_Data_Id__c = EditAWSDataId; |
| | | System.debug('zhj rowB.rnd.AWS_Data_Id__c = '+ rowB.rnd.AWS_Data_Id__c); |
| | | rndList.add(rowB.rnd); |
| | | } |
| | | } |
| | |
| | | FixtureUtil.withoutUpdate(rndList, true); |
| | | PageReference pag = new PageReference('/apex/ConsumTrial?id=' + parId + '&canedit=true&saveType=1'); |
| | | pag.setRedirect(true); |
| | | return pag; |
| | | return null; |
| | | } |
| | | else{ |
| | | init(); |
| | |
| | | + String.join(assetFieldApiList, ',') |
| | | + (assetFieldApiList.size() > 0 ? ',' : '') |
| | | + String.join(receivingNoteFieldApiList, ',') |
| | | + ',AWS_Data_Id__c' |
| | | + ',AWS_Data_Id__c,Trial_User_Encrypt__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 += ',AWS_Data_Id__c, 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,Trial_User_Encrypt__c, Follower_User__c, Spare__c, Comment__c, Degree_Of_Importance__c'; |
| | | |
| | | haveAsset = String.isNotBlank(rnd1.Asset__c); |
| | | } |