高章伟
2022-02-18 8b5f4c6c281cfa548f92de52c8021e37aa81901e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
    }
}