private void InsertUpdateTarget(int UserLoginId)
    {
        try
        {
            TargetSetupMaster objTargetSetupMaster = new TargetSetupMaster();
            objTargetSetupMaster.TargetId        = Convert.ToInt32(hfTargetId.Value);
            objTargetSetupMaster.UserLoginId     = UserLoginId;
            objTargetSetupMaster.TargetAmount    = Convert.ToDecimal(txtTargetAmount.Text);
            objTargetSetupMaster.PendingAmount   = Convert.ToDecimal(txtTargetAmount.Text) - Convert.ToDecimal(txtCompletedAmount.Text);
            objTargetSetupMaster.CompletedAmount = Convert.ToDecimal(txtTargetAmount.Text) - objTargetSetupMaster.PendingAmount;

            objTargetSetupMaster.TargetCompletePer = _objBOUtiltiy.ClaulatePercentage(objTargetSetupMaster.CompletedAmount, objTargetSetupMaster.TargetAmount);
            objTargetSetupMaster.TargetPendingPer  = _objBOUtiltiy.ClaulatePercentage(objTargetSetupMaster.PendingAmount, objTargetSetupMaster.TargetAmount);
            objTargetSetupMaster.TargetStatus      = 1;
            objTargetSetupMaster.TargetMonth       = Convert.ToInt32(ddlMonth.SelectedValue);
            objTargetSetupMaster.TargetYear        = Convert.ToInt32(ddlYear.SelectedValue);
            int nResult = _objBALUserManager.InsertUpdateTargetSetup(objTargetSetupMaster);
            if (nResult > 0)
            {
                lblMsg.Text = _objBOUtiltiy.ShowMessage("success", "Success", "Action Completed");
                GetTargetDetailsByUserId(UserLoginId);
                ClearControls();
            }
            else if (nResult == -1)
            {
                lblMsg.Text = _objBOUtiltiy.ShowMessage("danger", "Info", "Sorry This combination alredy have a information.");
            }
            else
            {
                lblMsg.Text = _objBOUtiltiy.ShowMessage("danger", "Info", "Please try again");
            }
        }
        catch (Exception ex)
        {
            lblMsg.Text = _objBOUtiltiy.ShowMessage("danger", "Error", ex.Message);
        }
    }