Exemplo n.º 1
0
        /// <summary>
        /// to set the status of the panel
        /// </summary>
        private void DisplayPanel()
        {
            if (Session["HH_ID"] != null)
            {
                int householdID = Convert.ToInt32(Session["HH_ID"]);
                PAP_HouseholdBLL PAP_HouseholdBLLobj = new PAP_HouseholdBLL();
                string           PDP_Present         = PAP_HouseholdBLLobj.IsPDP(householdID);

                if (PDP_Present.ToUpper() == "Y")
                {
                    pnlButtons.Visible = true;
                    lblMessage.Text    = string.Empty;
                    pnlLivingOnEffectedLand.Enabled = true;
                }
                else
                {
                    pnlButtons.Visible = false;
                    lblMessage.Text    = "These details are enabled only for PDP's";
                    pnlLivingOnEffectedLand.Enabled = false;
                }
            }
        }