コード例 #1
0
        public override bool execute( )
        {
            if (base.execute() == false)
            {
                return(false);
            }

            Registry("execute ins_terminal ");

            /// USER [ execute ]

            term.Reset();

            term.set_fk_loja(loj.get_identity());
            term.set_nu_terminal(my_term.ToString().PadLeft(8, '0'));
            term.set_st_localizacao(input_cont_dt.get_st_localizacao());

            if (!term.create_T_Terminal())
            {
                return(false);
            }

            PublishNote("Terminal criado com suceesso (" + my_term.ToString() + ")");

            /// USER [ execute ] END

            Registry("execute done ins_terminal ");

            return(true);
        }