Exemple #1
0
        public override bool execute( )
        {
            if (base.execute() == false)
            {
                return(false);
            }

            Registry("execute fetch_extraGift ");

            /// USER [ execute ]

            T_Empresa emp = new T_Empresa(this);

            if (!emp.select_rows_empresa(input_cont_header.get_st_empresa()))
            {
                return(false);
            }

            if (!emp.fetch())
            {
                return(false);
            }

            T_ExtraGift gift = new T_ExtraGift(this);

            if (gift.select_fk_emp(emp.get_identity()))
            {
                while (gift.fetch())
                {
                    DadosProdutoGift dpg = new DadosProdutoGift();

                    dpg.set_id_produto(gift.get_identity());
                    dpg.set_st_nome(gift.get_st_nome());
                    dpg.set_vr_valor(gift.get_vr_valor());

                    output_array_generic_lst.Add(dpg);
                }
            }

            /// USER [ execute ] END

            Registry("execute done fetch_extraGift ");

            return(true);
        }