public with sharing class Solution_ProgrammeDeleteController {

    public String ids {get;set;}
    public boolean is_Alert_Delete {get; set;}

    public Solution_ProgrammeDeleteController(ApexPages.StandardController controller)
    {
        ids = ApexPages.currentPage().getParameters().get('id');
    }
    public void init(){
        Solution_Programme__c solutionProgrames =[select id , Status__c from Solution_Programme__c where id = :ids];
        if (solutionProgrames.Status__c.contains('草案中')){
            delete solutionProgrames;
            is_Alert_Delete = true;
        }else {
            is_Alert_Delete = false;    
        }
     
    }
}