protected void btn_reconAgn_Click(object sender, EventArgs e)
    {
        string _qy = ddlQY.SelectedItem.Text.ToString();

        lbl_error.Text = "";
        HRAAdminDAL robj = new HRAAdminDAL();

        try
        {
            if (txtPrevQY.Visible)
            {
                lbl_error.Text = "Enter Quarter-Year in format 'Qd-yyyy'";
                return;
            }
            robj.ReconDelete(_qy);
            Reconcile(_qy);
            View_Result();
            Session["taskId"] = Convert.ToInt32(Session["taskId"]) + 1;
            Audit.auditUserTaskR(Session.SessionID, Session["mid"].ToString(), Session["taskId"].ToString(), "HRA", "Administrative Bill Validation", "Admin Invoice Reconciliation", _qy);
        }
        catch (Exception ex)
        {
            resultDiv.Visible = false;
            MultiView1.SetActiveView(view_main);
            robj.ReconDelete(_qy);
            lbl_error.Text = "Error in re-reconciliation.<br />" + ex.Message;
        }
    }
    void Reconcile(string _qy)
    {
        HRAAdminDAL  robj = new HRAAdminDAL();
        HRAAdminBill hobj = new HRAAdminBill();

        hobj.CheckRptsImported(_qy);
        robj.insertReconStatus(_qy);
        HRA_Results.SavePrintFiles(_class, _qy);
    }
Ejemplo n.º 3
0
    protected void ddl_ftype_onSelectedindexchanged(object sender, EventArgs e)
    {
        TextBox _descTB = grdvRates.FooterRow.FindControl("txt_fdesc") as TextBox;

        _descTB.Text = "";
        string _type = ((DropDownList)grdvRates.FooterRow.FindControl("ddl_ftype")).SelectedItem.Text;

        _descTB.Text = HRAAdminDAL.RateTypeDesc(_type);
    }
    protected void checkPastRecon()
    {
        string _qy = ddlQY.SelectedItem.Text.ToString();

        if (HRAAdminDAL.pastReconcile(_qy))
        {
            MultiView1.SetActiveView(view_reconAgn);
            lbl_reconAgn.Text = "Reconciled already for Quarter-Year: " + _qy + ".Do you want to re-reconcile?";
        }
        else
        {
            MultiView1.SetActiveView(view_main);
        }
    }
Ejemplo n.º 5
0
    protected void InsertSSN_Click(object sender, EventArgs e)
    {
        lblErrSSN.Text = "";

        string _ssn = ((TextBox)grdvSSN.FooterRow.FindControl("tbx_ssn")).Text;

        try
        {
            HRAAdminDAL.insertSSN(_ssn);
            //Audit
            Session["taskId"] = Convert.ToInt32(Session["taskId"]) + 1;
            Audit.auditUserTask(Session.SessionID, Session["mid"].ToString(), Session["taskId"].ToString(), "HRA", "Admin Bill Validation Exclude SSN", "NRC", "Insert", "ExcludeSSN", "SSN", "", "", "", _ssn);
            grdvSSN.DataBind();
        }
        catch (Exception ex)
        {
            lblErrSSN.Text = ex.Message;
        }
    }
Ejemplo n.º 6
0
    protected void Insert_Click(object sender, EventArgs e)
    {
        lblErrRate.Text = "";

        string  _yrmo = ((TextBox)grdvRates.FooterRow.FindControl("tbx_yrmo")).Text;
        string  _type = ((DropDownList)grdvRates.FooterRow.FindControl("ddl_ftype")).SelectedItem.Text;
        string  _desc = ((TextBox)grdvRates.FooterRow.FindControl("txt_fdesc")).Text;
        decimal _rate = Convert.ToDecimal(((TextBox)grdvRates.FooterRow.FindControl("tbx_frate")).Text);

        try
        {
            HRAAdminDAL.insertRates(_yrmo, _type, _desc, _rate);
            auditInsert(_yrmo, _type, _desc, _rate.ToString());
            grdvRates.DataBind();
        }
        catch (Exception ex)
        {
            lblErrRate.Text = ex.Message;
        }
    }
    void SetNoRecsMsg(string _qy)
    {
        if (HRAAdminDAL.hasAuditR_PartData_Discp(_qy))
        {
            lbl_APNR.Visible = false;
        }
        else
        {
            lbl_APNR.Visible = true;
        }

        if (HRAAdminDAL.hasPartData_AuditR_Discp(_qy))
        {
            lbl_PANR.Visible = false;
        }
        else
        {
            lbl_PANR.Visible = true;
        }

        if (HRAAdminDAL.hasPartData_WgwkInv_Discp(_qy))
        {
            lbl_PWNR.Visible = false;
        }
        else
        {
            lbl_PWNR.Visible = true;
        }

        if (HRAAdminDAL.hasWgwkInv_PartData_Discp(_qy))
        {
            lbl_WPNR.Visible = false;
        }
        else
        {
            lbl_WPNR.Visible = true;
        }

        if (HRAAdminDAL.hasWgwkInv_PartData_noBal(_qy))
        {
            lbl_WPnoBalNR.Visible = false;
        }
        else
        {
            lbl_WPnoBalNR.Visible = true;
        }

        if (HRAAdminDAL.hasPutnamPartData(_qy))
        {
            lbl_PtnmPartDataNR.Visible = false;
        }
        else
        {
            lbl_PtnmPartDataNR.Visible = true;
        }

        if (HRAAdminDAL.hasAUDITR(_qy))
        {
            lbl_AUDITRNR.Visible = false;
        }
        else
        {
            lbl_AUDITRNR.Visible = true;
        }
    }