Example #1
0
        public override bool setup( )
        {
            #region - SETUP TRANSACTION -
            Registry("setup ins_empresa ");

            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_EMPRESA.de, ref ct_0) == false)
            {
                Trace("# COMM_IN_INS_EMPRESA.de missing! ");
                return(false);
            }
            if (var_Comm.GetEntryPortableAtPosition(1).GetMapContainer(COMM_IN_INS_EMPRESA.header, ref ct_1) == false)
            {
                Trace("# COMM_IN_INS_EMPRESA.header missing! ");
                return(false);
            }

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

            Registry("setup done ins_empresa ");
            #endregion

            return(true);
        }
        public void recv_fetch_dadosEmpresa(ref DadosEmpresa de)
        {
            DataPortable recv_dp_cont_de = new DataPortable();

            m_Comm.GetExitPortableAtPosition(0).GetMapContainer(COMM_OUT_FETCH_DADOSEMPRESA.de, ref recv_dp_cont_de);

            de.Import(recv_dp_cont_de);
        }