Пример #1
0
    private bool UpdateWorkQueueFlag()
    {
        bool blnIsChecked = false;

        if (hdnWrkQ.Value == "true")
        {
            blnIsChecked = true;
        }
        else if (hdnWrkQ.Value == "false")
        {
            blnIsChecked = false;
        }

        //Check if the Amount value is changed, if yes then update the same
        if (chkRemoveFrmWrkQ.Checked != blnIsChecked)
        {
            string strReason = txtReason.Text.Trim();
            string strFJCID  = (string)Session["FJCID"];
            int    iUserId   = Convert.ToInt32(Session["UsrID"]);

            if (strReason == string.Empty)
            {
                lblErr.Font.Bold = true;
                lblErr.Text      = "Please enter Reason(s) for change";
                return(false);
            }
            else
            {
                lblErr.Text = "";
                _objCamperApp.UpdateWorkQueueFlag(strFJCID, chkRemoveFrmWrkQ.Checked);
                return(true);
            }
        }
        else
        {
            return(false);
        }
    }