Esempio n. 1
0
    Boolean RptsImported()
    {
        string yrmo = ddlYrmo.SelectedItem.Text;

        string[]     source          = { "Putnam", "Wageworks" };
        string[]     rpts            = { "Putnam Report", "Wageworks Report" };
        string       rptsNotImported = "";
        HRAImportDAL iobj            = new HRAImportDAL();

        for (int i = 0; i < source.Length; i++)
        {
            if (!iobj.PastImport(source[i], yrmo))
            {
                rptsNotImported += rpts[i];
                if (i != (source.Length - 1))
                {
                    rptsNotImported += ", ";
                }
            }
        }

        if (rptsNotImported != "")
        {
            lbl_error.Text = rptsNotImported + " for yrmo - " + yrmo + " not imported";
            return(false);
        }
        return(true);
    }
Esempio n. 2
0
    protected void checkPastImport()
    {
        string       _qy  = ddlQY.SelectedItem.Text.ToString();
        HRAImportDAL iobj = new HRAImportDAL();

        if (iobj.PastImport(source, _qy))
        {
            lbl_notice.Text    = "Imported already for Quarter-Year: " + _qy + "!";
            lbl_notice.Visible = true;
        }
        else
        {
            lbl_notice.Visible = false;
        }
    }
Esempio n. 3
0
    protected void checkPastImport()
    {
        string       _yrmo = ddlYrmo.SelectedItem.Text.ToString();
        HRAImportDAL iobj  = new HRAImportDAL();

        if (iobj.PastImport(source, _yrmo))
        {
            MultiView1.SetActiveView(view_reimport);
            lbl_reimport.Text = "Imported already for year-month (YRMO): " + _yrmo + ".<br />Do you want to re-import the file?";
        }
        else
        {
            MultiView1.SetActiveView(view_main);
            autoImport();
        }
    }
    protected void checkPastImport()
    {
        string       _qy  = ddlQY.SelectedItem.Text.ToString();
        HRAImportDAL iobj = new HRAImportDAL();

        if (iobj.PastImport(source, _qy))
        {
            MultiView1.SetActiveView(view_reimport);
            lbl_reimport.Text = "Imported already for Quarter-Year: " + _qy + ". Do you want to re-import the file?";
        }
        else
        {
            MultiView1.SetActiveView(view_main);
            autoImport();
        }
    }