예제 #1
0
        public override bool setup( )
        {
            #region - SETUP TRANSACTION -
            Registry("setup exec_pos_desfazVendaEmpresarialSITEF ");

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

            DataPortable ct_0 = new DataPortable();

            if (var_Comm.GetEntryPortableAtPosition(0).GetMapContainer(COMM_IN_EXEC_POS_DESFAZVENDAEMPRESARIAL.pe, ref ct_0) == false)
            {
                Trace("# COMM_IN_EXEC_POS_DESFAZVENDAEMPRESARIAL.pe missing! ");
                return(false);
            }

            input_cont_pe.Import(ct_0);

            Registry("setup done exec_pos_desfazVendaEmpresarialSITEF ");
            #endregion

            return(true);
        }
예제 #2
0
        public override bool setup( )
        {
            #region - SETUP TRANSACTION -
            Registry("setup exec_pos_confirmaVendaEmpresarial ");

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

            DataPortable dp_in = var_Comm.GetFirstEntryPortable();

            if (dp_in.GetMapValue(COMM_IN_EXEC_POS_CONFIRMAVENDAEMPRESARIAL.st_nsu, ref input_st_nsu) == false)
            {
                Trace("# COMM_IN_EXEC_POS_CONFIRMAVENDAEMPRESARIAL.st_nsu missing! ");
                return(false);
            }

            DataPortable ct_1 = new DataPortable();

            if (var_Comm.GetEntryPortableAtPosition(1).GetMapContainer(COMM_IN_EXEC_POS_CONFIRMAVENDAEMPRESARIAL.pe, ref ct_1) == false)
            {
                Trace("# COMM_IN_EXEC_POS_CONFIRMAVENDAEMPRESARIAL.pe missing! ");
                return(false);
            }

            input_cont_pe.Import(ct_1);

            Registry("setup done exec_pos_confirmaVendaEmpresarial ");
            #endregion

            return(true);
        }