public with sharing class AccountQualifyAlertController {
|
|
public String idl { get; set;}
|
public boolean is_Alert_Qualify {get; set;}
|
|
public AccountQualifyAlertController() {
|
idl = ApexPages.currentPage().getParameters().get('id');
|
}
|
|
public AccountQualifyAlertController(ApexPages.StandardController controller) {
|
idl = ApexPages.currentPage().getParameters().get('id');
|
}
|
|
public void init() {
|
list<Account> accList = [select id,
|
Quolified_Approve_Status__c,
|
If_Need_Quolified__c
|
from Account
|
where id =:idl];
|
is_Alert_Qualify = false;
|
|
if (accList != null && accList.size() > 0) {
|
//¿ÕÖ¸Õ뱨´íÐÞ¸Ä thh 20220411 start
|
if ('Draft'.equals(accList[0].Quolified_Approve_Status__c)
|
&& accList[0].If_Need_Quolified__c == true) {
|
is_Alert_Qualify = true;
|
}
|
//¿ÕÖ¸Õ뱨´íÐÞ¸Ä thh 20220411 end
|
}
|
}
|
}
|