/// USER [ custom_functions ]
/// USER [ custom_functions ] END

        public bool Item1()
        {
            #region - INPUT VARS -

            transaction.MemoryClean();

            tst_unit.LogTest("fetch_rel_dirCont Item1", ref m_Log);

            transaction.ut_abort = 0;

            string st_empresa = "";
            string dt_ini     = "";
            string dt_fim     = "";

            CNetHeader header = new CNetHeader();

            #endregion

/// USER [ setup_test_1 ]
/// USER [ setup_test_1 ] END

            #region - MAPPING TRANSACTION -

            call_fetch_rel_dirCont(st_empresa, dt_ini, dt_fim, ref header);

            if (transaction.setup() == false)
            {
                return(false);
            }

            try
            {
                #endregion

/// USER [ execute_1 ]
/// USER [ execute_1 ] END

                #region - OUTPUT VARS -
            }
            catch (System.Exception se)
            {
                if (se.Message != "ABORT")
                {
                    MessageBox.Show(se.ToString());
                }
            }

            if (transaction.finish() == false)
            {
                return(false);
            }

            string st_csv_contents     = "";
            string st_nome_empresa     = "";
            DadosSinteticoContGift dsc = new DadosSinteticoContGift();

            recv_fetch_rel_dirCont(ref st_csv_contents, ref st_nome_empresa, ref dsc);

            transaction.sendObjections(ref my_objections);

            #endregion

/// USER [ validate_1 ]
/// USER [ validate_1 ] END

            dsc.Clear();

            return(true);
        }
        public void recv_fetch_rel_dirCont(ref string st_csv_contents, ref string st_nome_empresa, ref DadosSinteticoContGift dsc)
        {
            DataPortable recv_dp = m_Comm.GetFirstExitPortable();

            recv_dp.GetMapValue(COMM_OUT_FETCH_REL_DIRCONT.st_csv_contents, ref st_csv_contents);
            recv_dp.GetMapValue(COMM_OUT_FETCH_REL_DIRCONT.st_nome_empresa, ref st_nome_empresa);

            DataPortable recv_dp_cont_dsc = new DataPortable();

            m_Comm.GetExitPortableAtPosition(1).GetMapContainer(COMM_OUT_FETCH_REL_DIRCONT.dsc, ref recv_dp_cont_dsc);

            dsc.Import(recv_dp_cont_dsc);
        }