Esempio n. 1
0
        public override bool setup( )
        {
            #region - SETUP TRANSACTION -
            Registry("setup ins_chamado ");

            if (var_Comm.GetEntryPortCount() == 0)
            {
                Trace("# Communication Failed!");
                return(false);
            }

            DataPortable ct_0 = new DataPortable();
            DataPortable ct_1 = new DataPortable();

            if (var_Comm.GetEntryPortableAtPosition(0).GetMapContainer(COMM_IN_INS_CHAMADO.dc, ref ct_0) == false)
            {
                Trace("# COMM_IN_INS_CHAMADO.dc missing! ");
                return(false);
            }
            if (var_Comm.GetEntryPortableAtPosition(1).GetMapContainer(COMM_IN_INS_CHAMADO.header, ref ct_1) == false)
            {
                Trace("# COMM_IN_INS_CHAMADO.header missing! ");
                return(false);
            }

            input_cont_dc.Import(ct_0);
            input_cont_header.Import(ct_1);

            Registry("setup done ins_chamado ");
            #endregion

            return(true);
        }
Esempio n. 2
0
        public void recv_fetch_chamadoHist(ref DadosChamado dc, ref ArrayList lst)
        {
            DataPortable recv_dp_cont_dc = new DataPortable();

            m_Comm.GetExitPortableAtPosition(0).GetMapContainer(COMM_OUT_FETCH_CHAMADOHIST.dc, ref recv_dp_cont_dc);

            dc.Import(recv_dp_cont_dc);

            DataPortable recv_dp_array_generic_lst = m_Comm.GetExitPortableAtPosition(1);

            recv_dp_array_generic_lst.GetMapArray(COMM_OUT_FETCH_CHAMADOHIST.lst, ref lst);
        }