global without sharing class SolutionProjectUtil { // WebService static String Solution_Copy_Func(id solID){ // Solution_Programme__c solPro = [select id,CDS_Machine_Wash__c,CDS_Total_Planning_Area__c,ERCP_Room__c,SolutionProjectRequirements__c,Gastroscopy_Room__c,Respiratory_Endoscopy_Room__c,Ent_Room__c,Double_Mirror_Combined_Endoscopy_Room__c,Choledochoscope_Room__c,Total_Planning_Area_Endoscopy_Center__c,Scheme_Type__c,Cystoscope_Room__c,Confirmation_Result__c,Remarks__c,Hysteroscopy_Room__c from Solution_Programme__c where id = :solID]; // solPro.id = null; // insert solPro; // return solPro.id; // // return ''; // } WebService static String getName(String header,String usrname){ System.debug(header+'======'+usrname); String result = ''; if(header.contains(usrname.replaceAll(' ', ''))){ result = 'Y'; }else{ result = 'N'; } return result; } }