Пример #1
0
        public void call_fetch_consultaLoja(ref DadosConsultaLoja dcl, ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();
            DataPortable send_dp_cont_1 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_CONSULTALOJA.dcl, dcl as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_FETCH_CONSULTALOJA.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
Пример #2
0
/// USER [ custom_functions ]
/// USER [ custom_functions ] END

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

            transaction.MemoryClean();

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

            transaction.ut_abort = 0;

            DadosConsultaLoja dcl    = new DadosConsultaLoja();
            CNetHeader        header = new CNetHeader();

            #endregion

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

            #region - MAPPING TRANSACTION -

            call_fetch_consultaLoja(ref dcl, 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_id = "";

            recv_fetch_consultaLoja(ref st_csv_id);

            transaction.sendObjections(ref my_objections);

            #endregion

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

            return(true);
        }