/// 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); }
public void recv_fetch_proprietario(ref DadosProprietario dp) { DataPortable recv_dp_cont_dp = new DataPortable(); m_Comm.GetExitPortableAtPosition(0).GetMapContainer(COMM_OUT_FETCH_PROPRIETARIO.dp, ref recv_dp_cont_dp); dp.Import(recv_dp_cont_dp); }
public void call_exec_alteraProprietario(string st_cpf_cnpj, ref DadosProprietario dp, ref CNetHeader header) { m_Comm.Clear(); DataPortable send_dp = new DataPortable(); send_dp.MapTagValue(COMM_IN_EXEC_ALTERAPROPRIETARIO.st_cpf_cnpj, st_cpf_cnpj); m_Comm.AddEntryPortable(ref send_dp); DataPortable send_dp_cont_0 = new DataPortable(); DataPortable send_dp_cont_1 = new DataPortable(); send_dp_cont_0.MapTagContainer(COMM_IN_EXEC_ALTERAPROPRIETARIO.dp, dp as DataPortable); send_dp_cont_1.MapTagContainer(COMM_IN_EXEC_ALTERAPROPRIETARIO.header, header as DataPortable); m_Comm.AddEntryPortable(ref send_dp_cont_0); m_Comm.AddEntryPortable(ref send_dp_cont_1); }
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); }