コード例 #1
0
        public void recv_fetch_dadosNSU(ref DadosNSU d_nsu)
        {
            DataPortable recv_dp_cont_d_nsu = new DataPortable();

            m_Comm.GetExitPortableAtPosition(0).GetMapContainer(COMM_OUT_FETCH_DADOSNSU.d_nsu, ref recv_dp_cont_d_nsu);

            d_nsu.Import(recv_dp_cont_d_nsu);
        }
コード例 #2
0
/// USER [ custom_functions ]
/// USER [ custom_functions ] END

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

            transaction.MemoryClean();

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

            transaction.ut_abort = 0;

            string st_nsu        = "";
            string dt_hoje       = "";
            string tg_confirmada = "";

            CNetHeader header = new CNetHeader();

            #endregion

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

            #region - MAPPING TRANSACTION -

            call_fetch_dadosNSU(st_nsu, dt_hoje, tg_confirmada, 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);
            }

            DadosNSU d_nsu = new DadosNSU();

            recv_fetch_dadosNSU(ref d_nsu);

            transaction.sendObjections(ref my_objections);

            #endregion

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

            d_nsu.Clear();

            return(true);
        }