Exemplo n.º 1
0
/// USER [ custom_functions ]
/// USER [ custom_functions ] END

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

            transaction.MemoryClean();

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

            transaction.ut_abort = 0;

            string st_empresa = "";
            string st_desc    = "";

            CNetHeader header = new CNetHeader();

            #endregion

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

            #region - MAPPING TRANSACTION -

            call_ins_quiosque(st_empresa, st_desc, 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);
        }
Exemplo n.º 2
0
/// USER [ custom_functions ]
/// USER [ custom_functions ] END

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

            transaction.MemoryClean();

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

            transaction.ut_abort = 0;

            string st_cpf_cnpj = "";

            DadosProprietario dp     = new DadosProprietario();
            CNetHeader        header = new CNetHeader();

            #endregion

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

            #region - MAPPING TRANSACTION -

            call_exec_alteraProprietario(st_cpf_cnpj, ref dp, 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);
        }
Exemplo n.º 3
0
/// USER [ custom_functions ]
/// USER [ custom_functions ] END

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

            transaction.MemoryClean();

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

            transaction.ut_abort = 0;

            string fk_faturamentoDetalhe = "";

            CNetHeader header = new CNetHeader();

            #endregion

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

            #region - MAPPING TRANSACTION -

            call_exec_cancelaDespesa(fk_faturamentoDetalhe, 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);
        }
/// USER [ custom_functions ]
/// USER [ custom_functions ] END

		public bool Item1()
		{
			#region - INPUT VARS -
			
			transaction.MemoryClean();
			
			tst_unit.LogTest ( "fetch_rel_residuo_gift Item1", ref m_Log );

			transaction.ut_abort = 0;

			string st_empresa = "";
			
			CNetHeader header = new CNetHeader(); 

			#endregion
		
/// USER [ setup_test_1 ]
/// USER [ setup_test_1 ] END

			#region - MAPPING TRANSACTION -

			call_fetch_rel_residuo_gift ( st_empresa, 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_block = "";
			string st_nome_empresa = "";

			recv_fetch_rel_residuo_gift ( ref st_block, ref st_nome_empresa ); 

			transaction.sendObjections ( ref my_objections );

			#endregion

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

			return true;
		}
Exemplo n.º 5
0
        public void call_fetch_cadastros(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_CADASTROS.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
        public void call_fetch_edu_messages(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_EDU_MESSAGES.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 7
0
        public void call_fetch_extraGift(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_EXTRAGIFT.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 8
0
        public void call_fetch_agenda(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_AGENDA.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
        public void call_fetch_conveyUsuarios(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_CONVEYUSUARIOS.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 10
0
        public void call_fetch_rel_tarifas(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_REL_TARIFAS.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
        public void call_fetch_empresasGrafica(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_EMPRESASGRAFICA.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 12
0
        public void call_fetch_listaFiliais(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_LISTAFILIAIS.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 13
0
        public void call_exec_logoff(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_EXEC_LOGOFF.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 14
0
        public void call_type_base(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_TYPE_BASE.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 15
0
        public void call_fetch_codTerminal(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_CODTERMINAL.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
        public void call_fetch_user_lojista(ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_USER_LOJISTA.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 17
0
        public void recv_exec_login(ref string tg_trocaSenha, ref CNetHeader header)
        {
            DataPortable recv_dp = m_Comm.GetFirstExitPortable();

            recv_dp.GetMapValue(COMM_OUT_EXEC_LOGIN.tg_trocaSenha, ref tg_trocaSenha);

            DataPortable recv_dp_cont_header = new DataPortable();

            m_Comm.GetExitPortableAtPosition(1).GetMapContainer(COMM_OUT_EXEC_LOGIN.header, ref recv_dp_cont_header);

            header.Import(recv_dp_cont_header);
        }
Exemplo n.º 18
0
        public void call_ins_chamado(ref DadosChamado dc, 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_INS_CHAMADO.dc, dc as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_INS_CHAMADO.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
        public void call_fetch_consultaEmpresa(ref DadosConsultaEmpresa dce, 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_CONSULTAEMPRESA.dce, dce as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_FETCH_CONSULTAEMPRESA.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
Exemplo n.º 20
0
        public void call_ins_edu_msg(ref DadosEduMessage dem, 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_INS_EDU_MSG.dem, dem as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_INS_EDU_MSG.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
Exemplo n.º 21
0
        public void call_fetch_consultaTransacao(ref DadosConsultaTransacao dct, 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_CONSULTATRANSACAO.dct, dct as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_FETCH_CONSULTATRANSACAO.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
        public void call_exec_alteraCartao(ref DadosCartao dc, 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_EXEC_ALTERACARTAO.dc, dc as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_EXEC_ALTERACARTAO.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
Exemplo n.º 23
0
        public void call_fetch_consultaAuditoria(ref DadosConsultaAuditoria dca, 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_CONSULTAAUDITORIA.dca, dca as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_FETCH_CONSULTAAUDITORIA.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
Exemplo n.º 24
0
        public void call_fetch_consultaCartao(ref DadosConsultaCartoes dcc, 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_CONSULTACARTAO.dcc, dcc as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_FETCH_CONSULTACARTAO.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
Exemplo n.º 25
0
        public void call_exec_alteraEmpresa(ref DadosEmpresa de, 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_EXEC_ALTERAEMPRESA.de, de as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_EXEC_ALTERAEMPRESA.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
Exemplo n.º 26
0
        public void call_ins_extraGift(ref DadosProdutoGift prod, 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_INS_EXTRAGIFT.prod, prod as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_INS_EXTRAGIFT.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
Exemplo n.º 27
0
        public void call_exec_desbloq_loja(string st_cnpj, ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp = new DataPortable();

            send_dp.MapTagValue(COMM_IN_EXEC_DESBLOQ_LOJA.st_cnpj, st_cnpj);

            m_Comm.AddEntryPortable(ref send_dp);

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_EXEC_DESBLOQ_LOJA.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 28
0
        public void call_fetch_termLoja(string st_cod_loja, ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp = new DataPortable();

            send_dp.MapTagValue(COMM_IN_FETCH_TERMLOJA.st_cod_loja, st_cod_loja);

            m_Comm.AddEntryPortable(ref send_dp);

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_TERMLOJA.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 29
0
        public void call_fetch_quiosque(string st_empresa, ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp = new DataPortable();

            send_dp.MapTagValue(COMM_IN_FETCH_QUIOSQUE.st_empresa, st_empresa);

            m_Comm.AddEntryPortable(ref send_dp);

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_QUIOSQUE.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }
Exemplo n.º 30
0
        public void call_fetch_listaCartoes(string st_csv_cartoes, ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp = new DataPortable();

            send_dp.MapTagValue(COMM_IN_FETCH_LISTACARTOES.st_csv_cartoes, st_csv_cartoes);

            m_Comm.AddEntryPortable(ref send_dp);

            DataPortable send_dp_cont_0 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_LISTACARTOES.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
        }