Beispiel #1
0
        public TOTransaction <List <RnCraco> > GetClasificacion(int gru_cont, int emp_codi, string ter_coda)
        {
            DAORnRadic daoRadic = new DAORnRadic();

            try
            {
                string acr_apor = "";
                acr_apor = daoRadic.isAport(ter_coda, emp_codi, "ACR_APOR");

                string acr_afil = "";
                acr_afil = daoRadic.isAport(ter_coda, emp_codi, "ACR_AFIL");

                List <RnCraco> RnCraco = daoRadic.getListRnCraco(gru_cont, emp_codi, acr_apor, acr_afil);
                return(new TOTransaction <List <RnCraco> >()
                {
                    objTransaction = RnCraco, retorno = 0, txtRetorno = ""
                });
            }
            catch (Exception ex)
            {
                return(new TOTransaction <List <RnCraco> >()
                {
                    objTransaction = null, retorno = 1, txtRetorno = ex.Message
                });
            }
        }
Beispiel #2
0
        public TOTransaction <TORnRadic> GetInitialDataRnRadic(int emp_codi, string usu_codi = "")
        {
            DAORnRadic    daoRadic   = new DAORnRadic();
            BOGnPaise     boPaise    = new BOGnPaise();
            DAOGnTipdo    daoGnTipDo = new DAOGnTipdo();
            List <string> GN_DIGFL   = new List <string>();
            BOGnItems     boItems    = new BOGnItems();

            try
            {
                TORnRadic      result  = new TORnRadic();
                List <ArTiapo> ArTiapo = daoRadic.getListArTiapo();
                List <GnPaise> GnPaise = boPaise.GetGnPaise();
                List <GnTipdo> GnTipdo = daoGnTipDo.getListGnTipdo();
                List <GnTipdo> GnTipdE = daoGnTipDo.getListGnTipdo();

                string acr_apor = "";
                acr_apor = daoRadic.isAport(usu_codi, emp_codi, "ACR_APOR");

                List <ArApovo> ArApovo = new List <ArApovo>();

                if (acr_apor == "S")
                {
                    ArApovo = daoRadic.getListArApovo(usu_codi);
                }
                else
                {
                    ArApovo = daoRadic.getListArApovo();
                }

                List <RnGrura> RnGrura     = daoRadic.getListRnGrura(emp_codi);
                List <SuMpare> SuMpare     = daoRadic.getListSumPare(emp_codi);
                List <GnItem>  gnprofe     = boItems.GetGnItems(351);
                List <GnItem>  gnconde     = boItems.GetGnItems(339);
                List <GnItem>  clastra     = boItems.GetGnItems(334);
                List <GnItem>  tipvinc     = boItems.GetGnItems(338);
                List <GnItem>  cartrab     = boItems.GetGnItems(484);
                List <ArApovo> ArApovoAfil = daoRadic.getListArApovo(usu_codi);

                result.artiapo     = ArTiapo;
                result.GnPaise     = GnPaise;
                result.GnTipdo     = GnTipdo;
                result.arapovo     = ArApovo;
                result.rngrura     = RnGrura;
                result.SuMpare     = SuMpare;
                result.gnprofe     = gnprofe;
                result.gnconde     = gnconde;
                result.clastra     = clastra;
                result.tipvinc     = tipvinc;
                result.cartrab     = cartrab;
                result.arapovoafil = ArApovoAfil;
                result.SRN000001   = daoRadic.getDigflag("SRN000001");
                result.SRN000002   = daoRadic.getDigflag("SRN000002");
                result.cen_codi    = daoRadic.getInfoFudCe(emp_codi, usu_codi);
                return(new TOTransaction <TORnRadic>()
                {
                    objTransaction = result, retorno = 0, txtRetorno = ""
                });
            }
            catch (Exception ex)
            {
                return(new TOTransaction <TORnRadic>()
                {
                    objTransaction = null, retorno = 1, txtRetorno = ex.Message
                });
            }
        }