global with sharing class NewAndEditQISController extends NewAndEditBaseController{
    public String Input_Required_Field_Msg{set;get;}
    public String qisId{set;get;}
    //zhj MEBG新方案改造 2022-11-29 start
    public String staticResourcesV2 {get; set;}
    //zhj MEBG新方案改造 2022-11-29 end

    public NewAndEditQISController(ApexPages.StandardController controller) {
        Input_Required_Field_Msg = Label.Input_Required_Field_Msg;
        List<String> fieldList = new List<String>(Schema.getGlobalDescribe().get('QIS_Report__c').getDescribe().fields.getMap().keyset());  
        if (!Test.isRunningTest()) { 
            controller.addFields(fieldList);
        }
        if(!Test.isRunningTest())
            Init(controller.getRecord());
        
        

        //Updated by Chen Yanan 20220323 Start
        String contactId = controller.getRecord().Id;
        Map<string,string> mso = ApexPages.currentPage().getParameters();
        if(contactId == null){
            system.debug('mso='+mso);
            if(mso.containsKey('CF00N10000002FHFK_lkid')){
                controller.getRecord().put('Name', '*');
            }
        }
        if(mso.containsKey('CF00N100000073PA0_lkid')){
            controller.getRecord().put('QIS_pre__c',mso.get('CF00N100000073PA0_lkid'));
        }
        system.debug('controller.getRecord()='+controller.getRecord());
        //Updated by Chen Yanan 20220323 End
        //zhj MEBG新方案改造 2022-11-29 start
        staticResourcesV2 = JSON.serialize(PIHelper.getPIIntegrationInfo('QIS_Report__cV2'));
        //zhj MEBG新方案改造 2022-11-29 end
    }

    @RemoteAction
    global static Response saveQISReport(String leadJson,String transId,Boolean isNew) {
        return save(new QIS_Report__c(),leadJson,transId,isNew);
    }

    public static void improveTestRate(){
       
    }
}