コード例 #1
0
        public void call_ins_cartaoProprietario(string st_csv_deps, ref DadosCartao dc, ref DadosProprietario dp, ref DadosAdicionais da, ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp = new DataPortable();

            send_dp.MapTagValue(COMM_IN_INS_CARTAOPROPRIETARIO.st_csv_deps, st_csv_deps);

            m_Comm.AddEntryPortable(ref send_dp);

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

            send_dp_cont_0.MapTagContainer(COMM_IN_INS_CARTAOPROPRIETARIO.dc, dc as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_INS_CARTAOPROPRIETARIO.dp, dp as DataPortable);
            send_dp_cont_2.MapTagContainer(COMM_IN_INS_CARTAOPROPRIETARIO.da, da as DataPortable);
            send_dp_cont_3.MapTagContainer(COMM_IN_INS_CARTAOPROPRIETARIO.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
            m_Comm.AddEntryPortable(ref send_dp_cont_2);
            m_Comm.AddEntryPortable(ref send_dp_cont_3);
        }
コード例 #2
0
/// USER [ custom_functions ]
/// USER [ custom_functions ] END

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

            transaction.MemoryClean();

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

            transaction.ut_abort = 0;

            string st_csv_deps = "";

            DadosCartao       dc     = new DadosCartao();
            DadosProprietario dp     = new DadosProprietario();
            DadosAdicionais   da     = new DadosAdicionais();
            CNetHeader        header = new CNetHeader();

            #endregion

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

            #region - MAPPING TRANSACTION -

            call_ins_cartaoProprietario(st_csv_deps, ref dc, ref dp, ref da, 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);
            }

            transaction.sendObjections(ref my_objections);

            #endregion

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

            return(true);
        }