Exemplo n.º 1
0
    protected void btn_reconAgn_Click(object sender, EventArgs e)
    {
        CAClaimsDAL cobj = new CAClaimsDAL();
        string      yrmo = ddlYrmo.SelectedItem.Text.ToString();

        lbl_error.Text = "";

        try
        {
            cobj.DeleteReconData(yrmo);
            if (RptsImported())
            {
                AnthRecon.CAClaimsRecon(yrmo);
                cobj.retainForcedAdj(yrmo);
                ViewResult();
                auditRecon(yrmo);
            }
        }
        catch (Exception ex)
        {
            MultiView1.SetActiveView(view_main);
            cobj.DeleteReconData(yrmo);
            lbl_error.Text = "Error in re-reconciliation.<br />" + ex.Message;
        }
    }
Exemplo n.º 2
0
    protected void btn_reconcile_Click(object sender, EventArgs e)
    {
        checkPastRecon();
        CAClaimsDAL cobj = new CAClaimsDAL();
        string      yrmo = ddlYrmo.SelectedItem.Text;

        if (Page.IsValid)
        {
            lbl_error.Text = "";
            try
            {
                string _monthList = AnthRecon.CheckReconOrder(yrmo, "CA");
                if (_monthList.Equals(""))
                {
                    if (RptsImported())
                    {
                        AnthRecon.CAClaimsRecon(yrmo);
                        ViewResult();
                        auditRecon(yrmo);
                    }
                }
                else
                {
                    lbl_error.Text = "Reconciliation for " + _monthList + " not completed!";
                }
            }
            catch (Exception ex)
            {
                MultiView1.SetActiveView(view_main);
                cobj.DeleteReconData(yrmo);
                lbl_error.Text = "Error - " + ex.Message;
            }
        }
    }