public override bool execute( ) { if (base.execute() == false) { return(false); } Registry("execute exec_bloq_loja "); /// USER [ execute ] T_Loja loj = new T_Loja(this); loj.ExclusiveAccess(); if (!loj.select_rows_cnpj(input_st_cnpj)) { PublishError("Loja não disponível"); return(false); } if (!loj.fetch()) { return(false); } if (loj.get_tg_blocked() == Context.TRUE) { PublishError("Loja previamente bloqueada"); return(false); } st_cod_loja = loj.get_st_loja(); loj.set_tg_blocked(Context.TRUE); if (!loj.synchronize_T_Loja()) { return(false); } PublishNote("Loja bloqueada com sucesso"); /// USER [ execute ] END Registry("execute done exec_bloq_loja "); return(true); }