public override bool execute( ) { if (base.execute() == false) { return(false); } Registry("execute fetch_codTerminal "); /// USER [ execute ] // ## Busca último terminal T_Terminal trm = new T_Terminal(this); if (!trm.selectAll()) { output_st_terminal = "1".PadLeft(6, '0'); return(true); } output_st_terminal = (trm.GetMax(TB_T_TERMINAL.nu_terminal) + 1).ToString().PadLeft(6, '0'); /// USER [ execute ] END Registry("execute done fetch_codTerminal "); return(true); }