Beispiel #1
0
        public void CheckRptsImported(string _qy)
        {
            string[] YRMOs  = HRA.GetYRMOs(_qy);
            string   errmsg = "";

            string[]     source = { "ptnm_invoice", "ptnm_partdata", "wgwk_invoice" };
            HRAImportDAL iobj   = new HRAImportDAL();

            if (!HRAAdminDAL.AUDITRInserted(_qy))
            {
                errmsg = "HRAAUDITR data is not present for Quarter/Year - " + _qy + ". Run HRA Operations process!<br/>";
            }

            if (!iobj.PastImport(source[0], _qy))
            {
                errmsg += "Putnam Invoice report not imported for Quarter/Year - " + _qy + "<br />";
            }

            if (!iobj.PastImport(source[1], _qy))
            {
                errmsg += "Putnam's Participant Data report not imported<br />";
            }

            string temp = "";

            for (int i = 0; i < 3; i++)
            {
                if (!iobj.PastImport(source[2], YRMOs[i]))
                {
                    temp += YRMOs[i] + ", ";
                }
            }
            if (temp != "")
            {
                errmsg += "Wageworks Invoice report not imported for YRMO(s) - " + temp.Remove(temp.Length - 2) + "<br />";
            }


            if (errmsg != "")
            {
                throw new Exception(errmsg);
            }
        }