예제 #1
0
    {   /// <summary>
        /// Set Page header,Call BindGrid() method
        /// Check User Permitions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            ValuationMenu1.HighlightMenu  = ValuationMenu.MenuValue.CultureProperties;
            ViewMasterCopy1.HighlightMenu = ViewMasterCopy.MenuValue.CultureProperty;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }

            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Valuation - Culture Properties";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                ViewState["CULTURALPROPID"] = 0;
                CULTURALPROPIDtxtbx.Text    = "";
                BindGrid();

                GetCulturalPropertyType();

                Linkpanel.Visible = false;

                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_VALUATION) == false)
                {
                    lnkValuationCulturProperties.Visible = false;
                    btnSave.Visible      = false;
                    btnClear.Visible     = false;
                    lnkUPloadDoc.Visible = false;
                    grdCultureProperties.Columns[grdCultureProperties.Columns.Count - 2].Visible = false;
                    grdCultureProperties.Columns[grdCultureProperties.Columns.Count - 4].Visible = false;
                }
            }

            if (Mode == "Readonly")
            {
                ValuationMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible = false;
                lnkValuationCulturProperties.Visible = false;
                btnSave.Visible      = false;
                btnClear.Visible     = false;
                lnkUPloadDoc.Visible = false;
                grdCultureProperties.Columns[grdCultureProperties.Columns.Count - 2].Visible = false;
                grdCultureProperties.Columns[grdCultureProperties.Columns.Count - 4].Visible = false;
            }
        }
예제 #2
0
        /// <summary>
        /// to set the PageHeader, call BindGrid() to bind the data from the database to the gridView
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"]   = Convert.ToInt32(Request.QueryString["ProjectID"]);
                Session["HH_ID"]        = Convert.ToInt32(Request.QueryString["HHID"]);
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            CompSocioEconomyMenu1.HighlightMenu = CompSocioEconomyMenu.MenuValue.Concern;
            ViewMasterCopy1.HighlightMenu       = ViewMasterCopy.MenuValue.ConcernDetails;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS", CreateStartupScript());
            }

            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            if (!IsPostBack)
            {
                Master.PageHeader         = "BIP - Socio-Economic - Concerns";
                ViewState["PapConcernID"] = 0;
                BindGrid();
                GetConcer(false);
                PAPConcernsIDTextBox.Text = "0";

                //PAPConcernsDropDownList.Attributes.Add("onchange", "EnableDisableOtherConcern(this);");
                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SOCIO_ECONOMIC) == false)
                {
                    btnSave.Visible  = false;
                    btnClear.Visible = false;
                    grdSocioConcerns.Columns[3].Visible = false;
                    grdSocioConcerns.Columns[4].Visible = false;
                }
            }

            if (Mode == "Readonly")
            {
                CompSocioEconomyMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible = false;
                btnSave.Visible   = false;
                btnClear.Visible  = false;
                grdSocioConcerns.Columns[3].Visible = false;
                grdSocioConcerns.Columns[4].Visible = false;
            }
        }
예제 #3
0
        /// <summary>
        /// Set Page header,Call BindGrid() to get the data from the database to fill tha gridview
        /// call GetDirection() to set the direction
        /// to set the status of the Link button lnkLogout
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            Page.Response.Cache.SetNoStore();
            CompSocioEconomyMenu1.HighlightMenu = CompSocioEconomyMenu.MenuValue.Neighbours;
            ViewMasterCopy1.HighlightMenu       = ViewMasterCopy.MenuValue.NeighbourDetails;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Socio-Economic - Neighbours";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                ViewState["PAP_NEIGHBOURID"] = 0; // ViewState ID
                BindGrid();                       //Calling the Grid Data
                GetDirection();

                rdoBoundaryDisputesYes.Attributes.Add("onclick", "ShowHideBoundaryDisputes(1);");
                rdoBoundaryDisputesNo.Attributes.Add("onclick", "ShowHideBoundaryDisputes(0);");
                txtNeibrName.Attributes.Add("Onchange", "setDirtyText();");
                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SOCIO_ECONOMIC) == false)
                {
                    btnSave.Visible  = false;
                    btnClear.Visible = false;
                    grdNeighbor.Columns[6].Visible = false;
                    grdNeighbor.Columns[7].Visible = false;
                }
            }
            if (Mode == "Readonly")
            {
                CompSocioEconomyMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible = false;
                btnSave.Visible   = false;
                btnClear.Visible  = false;
                grdNeighbor.Columns[6].Visible = false;
                grdNeighbor.Columns[7].Visible = false;
            }
        }
예제 #4
0
        /// <summary>
        /// Set Page header,Call BindTenureType() to get the data from the database and bind it to the dropdown ddlTenureType
        /// call BindUse() to get the data from the database and bind it to the dropdown DrpUse
        /// call BindDistrict() to get the District names from the database and bind it to the dropdown DrpDistrict
        /// call getMemberClaim() to get the and set the memberClaim details to the textbox's
        /// to set status of the link buttons lnkLandHoldings,lnkMCE
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            CompSocioEconomyMenu1.HighlightMenu = CompSocioEconomyMenu.MenuValue.OtherLandHoldings;
            ViewMasterCopy1.HighlightMenu       = ViewMasterCopy.MenuValue.OtherLandHoldings;
            ViewMasterCopy2.HighlightMenu       = ViewMasterCopy.MenuValue.MemberClaimsandEasements;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }

            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Socio-Economic - Other Land Holdings";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                ChkHoldings.Attributes.Add("onclick", string.Format("EnableHolding(this,'{0}');", txtenterholdings.ClientID));
                ChkEasements.Attributes.Add("onclick", string.Format("EnableEasement(this,'{0}');", txtentereaseemnts.ClientID));
                ViewState["LND_HOLDINGID"] = 0;

                BindGrid(false, false);
                BindTenureType();
                BindType();
                BindUse();
                BindDistrict();
                getMemberClaim();
                txttotal.Attributes.Add("onblur", "setDirtyText();");
                btn_SaveRes.Attributes.Add("onclick", "isDirty = 0;");
                btn_ClearRes.Attributes.Add("onclick", "isDirty = 0;");
                txttotal.Attributes.Add("onchange", "CheckDecimal(e, src);");
                //ChkHoldings.Attributes.Add("onload", string.Format("EnableHolding(this,'{0}');", txtenterholdings.ClientID));
                //ChkEasements.Attributes.Add("onload", string.Format("EnableEasement(this,'{0}');", txtentereaseemnts.ClientID));
                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SOCIO_ECONOMIC) == false)
                {
                    lnkLandHoldings.Visible = false;
                    lnkMCE.Visible          = false;
                    btn_SaveRes.Visible     = false;
                    btn_ClearRes.Visible    = false;
                    btn_Savemambers.Visible = false;
                    btnClearMembers.Visible = false;
                    grdLandInfoRespondents.Columns[12].Visible = false;
                    grdLandInfoRespondents.Columns[13].Visible = false;
                }
            }
            if (Mode == "Readonly")
            {
                CompSocioEconomyMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible       = false;
                lnkLandHoldings.Visible = false;
                lnkMCE.Visible          = false;
                btn_SaveRes.Visible     = false;
                btn_ClearRes.Visible    = false;
                btn_Savemambers.Visible = false;
                btnClearMembers.Visible = false;
                grdLandInfoRespondents.Columns[12].Visible = false;
                grdLandInfoRespondents.Columns[13].Visible = false;
            }
        }
예제 #5
0
        /// <summary>
        /// Set Page header,Call BindGrid() method
        /// Check User Permitions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            ValuationMenu1.HighlightMenu  = ValuationMenu.MenuValue.PermanentBuildings;
            ViewMasterCopy1.HighlightMenu = ViewMasterCopy.MenuValue.PermanentBuilding;
            Page.Response.Cache.SetNoStore();
            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Valuation - Permanent Buildings";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                ViewState["PERM_STRUCTUREID"] = 0; // ViewState ID
                BindGrid(false, false);            //Calling the Grid Data

                GetStructureTypeData();

                GetRoofMaterial();

                GetWallmaterial();

                GetFloorMaterial();

                GetWindowMaterial();

                GetOccupantStatus();

                GetConditionData();

                txtbxDepreciatedValue.Attributes.Add("onblur", "CalculateAmount();");
                txtbxReplacementValue.Attributes.Add("onblur", "CalculateAmount();");
                txtbxReplacementUplift.Attributes.Add("onKeyDown", "doCheck();");

                txtbxLength.Attributes.Add("onchange", "surfacearea();");
                txtbxWidth.Attributes.Add("onchange", "surfacearea();");
                txtbxSurfaceArea.Attributes.Add("onKeyDown", "doCheck();");


                txtbxDepreciatedValue.Attributes.Add("onchange", "setDirtyText();");
                txtbxReplacementValue.Attributes.Add("onchange", "setDirtyText();");


                RbtnSelf.Attributes.Add("onclick", "EnableDisableOtherOwner(0);");
                RbtnOther.Attributes.Add("onclick", "EnableDisableOtherOwner(1);");
                RdbtnSelfoccupied.Attributes.Add("onclick", "EnableDisableOtherOccupant(0);");
                RdbtnOccupantOther.Attributes.Add("onclick", "EnableDisableOtherOccupant(1);");

                ddlOccupantStatus.Attributes.Add("onchange", "EnableDisableOtherOccupantStatus(this);");

                popupData();
                //lnkViewPhoto.Visible = false;

                projectFrozen();

                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_VALUATION) == false)
                {
                    lnkPermBuild.Visible = false;
                    btnSave.Visible      = false;
                    btnClear.Visible     = false;
                    grdPermanentBuilding.Columns[grdPermanentBuilding.Columns.Count - 1].Visible = false;
                    grdPermanentBuilding.Columns[grdPermanentBuilding.Columns.Count - 2].Visible = false;
                    grdPermanentBuilding.Columns[grdPermanentBuilding.Columns.Count - 4].Visible = false;
                }
            }

            if (Mode == "Readonly")
            {
                ValuationMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible    = false;
                lnkPermBuild.Visible = false;
                btnSave.Visible      = false;
                btnClear.Visible     = false;
                grdPermanentBuilding.Columns[grdPermanentBuilding.Columns.Count - 1].Visible = false;
                grdPermanentBuilding.Columns[grdPermanentBuilding.Columns.Count - 2].Visible = false;
                grdPermanentBuilding.Columns[grdPermanentBuilding.Columns.Count - 4].Visible = false;
            }
        }
예제 #6
0
        /// <summary>
        /// Check User permitions
        /// Set Page Header,set attributes to link buttons.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            calRequestDate.Format = UtilBO.DateFormat;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Package Fund Request";
                }
                else
                {
                    Master.PageHeader = "Package Fund Request";
                }
                ViewState["Valuation_Status"] = "None";
                LoadSummery();
                LoadBatches();
                //GetPaymentStatus();
                getPackageReviewStatus();
                getDisclosureStatus();
                getGrievanceStatus();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_PACKAGE_PAYMENT_REQ) == false)
                {
                    btnAddToBatch.Visible = false;
                    DisableAllCheckBox();
                }
                txtAmountRequested.Attributes.Add("readonly", "readonly");
                txtTotalAmount.Attributes.Add("readonly", "readonly");
                txtPaymentFor.Attributes.Add("readonly", "readonly");
            }

            if (Mode == "Readonly")
            {
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible     = false;
                btnAddToBatch.Visible = false;
                DisableAllCheckBox();
            }
        }
예제 #7
0
        /// <summary>
        /// Set Page header,Call getApprrequtStatusMajorSchock() to get the data of the Approvar request status major shocks
        /// call GetTypeofshock() to get the data of the type of shock
        /// call Getcopingmechanism() to get the status of the coping mechanism from the database
        /// call Gethelpedmost() to get the data from the database of helped most
        /// call BindGrid() to get the data from the data base and bind it to the gridview
        /// to set the status of the link button lnkMajorSchock,lnkLogout
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            CompSocioEconomyMenu1.HighlightMenu = CompSocioEconomyMenu.MenuValue.MajorShocks;
            ViewMasterCopy1.HighlightMenu       = ViewMasterCopy.MenuValue.ShockDetails;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            if (!Page.IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Socio-Economic - Major Shocks";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                // To get type of shock from MST_SHOCKSEXPERIENCED
                GetTypeofshock();

                //To get coping mechanism from the table MST_COPING_MECHANISM
                Getcopingmechanism();

                //To get coping mechanism from the table MST_SUPPORT
                Gethelpedmost();


                getApprrequtStatusMajorSchock(); //Added BY Ramu
                BindGrid();                      //Calling the Grid Data
                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SOCIO_ECONOMIC) == false)
                {
                    lnkMajorSchock.Visible       = false;
                    btnSave.Visible              = false;
                    btnClear.Visible             = false;
                    grdshocks.Columns[4].Visible = false;
                    grdshocks.Columns[5].Visible = false;
                }
                //Added BY Ramu
            }
            if (Mode == "Readonly")
            {
                CompSocioEconomyMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible            = false;
                lnkMajorSchock.Visible       = false;
                btnSave.Visible              = false;
                btnClear.Visible             = false;
                grdshocks.Columns[4].Visible = false;
                grdshocks.Columns[5].Visible = false;
            }
        }
예제 #8
0
        /// <summary>
        /// Set Page header,Call BindGrid() method
        /// Check User Permitions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            ValuationMenu1.HighlightMenu  = ValuationMenu.MenuValue.DamagedCrops;
            ViewMasterCopy1.HighlightMenu = ViewMasterCopy.MenuValue.DamagedCropDetails;

            calDateDamaged.Format = UtilBO.DateFormat;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }

            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Valuation - Damaged Crops";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                ViewState["DAMAGED_CROPID"] = 0;
                BindGrid();
                getProjectDtaes();
                GetCropName();
                GetCropType();
                GetCropDescription();
                GetDamagedBy();

                txtbxQuantity.Attributes.Add("onblur", "CalculateAmount();");
                txtbxCropRate.Attributes.Add("onblur", "CalculateAmount();");
                txtbxAmountPaid.Attributes.Add("onKeyDown", "doCheck();");
                //txtbxCropRate.Attributes.Add("onKeyDown", "doCheck();");

                ddlCropName.Attributes.Add("onchange", "ddlCropName_IndexChanged(this);");
                ddlCropDescription.Attributes.Add("onchange", "ddlCropName_IndexChanged(this);");
                //lnkViewPhoto.Visible = false;

                txtbxDamagedCropFormRefNo.Attributes.Add("onchange", "setDirtyText();");
                DateDamaged.Attributes.Add("onchange", "setDirtyText();");
                txtbxQuantity.Attributes.Add("onchange", "setDirtyText();");
                txtbxCropRate.Attributes.Add("onchange", "setDirtyText();");


                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_VALUATION) == false)
                {
                    lnkDamageCrops.Visible = false;
                    btnSave.Visible        = false;
                    btnClear.Visible       = false;
                    grdDamagedCrops.Columns[grdDamagedCrops.Columns.Count - 1].Visible = false;
                    grdDamagedCrops.Columns[grdDamagedCrops.Columns.Count - 2].Visible = false;
                    grdDamagedCrops.Columns[grdDamagedCrops.Columns.Count - 4].Visible = false;
                }
            }
            if (Mode == "Readonly")
            {
                ValuationMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible      = false;
                lnkDamageCrops.Visible = false;
                btnSave.Visible        = false;
                btnClear.Visible       = false;
                grdDamagedCrops.Columns[grdDamagedCrops.Columns.Count - 1].Visible = false;
                grdDamagedCrops.Columns[grdDamagedCrops.Columns.Count - 2].Visible = false;
                grdDamagedCrops.Columns[grdDamagedCrops.Columns.Count - 4].Visible = false;
            }
        }
예제 #9
0
        /// <summary>
        /// Set Page header,Call  bindDDLDwelling() to bind the Dwelling data to the dropDown
        /// call bindDDLTenure() to bind the Tenure data to the DropDown
        /// call  bindDDLRoofs() to bind the DDlRoofs data to the dropdown
        /// call bindDDLWall() to bind the Wall data to the respective dropdown
        /// call bindDDLFloor() to bind the Floor data to the respective dropdown
        /// call BindGrid() method to Bind the data to the GridView
        /// to set the status of the Link button lnkLandInfoResOFF,lnkLogout
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        #region PageEvents
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            CompSocioEconomyMenu1.HighlightMenu = CompSocioEconomyMenu.MenuValue.OffAffectedLand;
            ViewMasterCopy1.HighlightMenu       = ViewMasterCopy.MenuValue.LivingoffAffectedLand;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            if (!Page.IsPostBack)
            {
                Master.PageHeader = "Socio-Economic - Land Information - Respondents living off Affected Plot";

                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Socio-Economic - Land Information - Respondents living off Affected Plot";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                ViewState["LIVINGOFFID"] = 0;
                bindDDLDwelling();
                bindDDLTenure();
                bindDDLRoofs();
                bindDDLWall();
                bindDDLFloor();
                BindGrid(false, false);
                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SOCIO_ECONOMIC) == false)
                {
                    lnkLandInfoResOFF.Visible = false;
                    btnSave.Visible           = false;
                    btnClear.Visible          = false;
                    grdLandInfoRespondentsOff.Columns[grdLandInfoRespondentsOff.Columns.Count - 1].Visible = false;
                    grdLandInfoRespondentsOff.Columns[grdLandInfoRespondentsOff.Columns.Count - 2].Visible = false;
                }
            }
            if (Mode == "Readonly")
            {
                CompSocioEconomyMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible         = false;
                lnkLandInfoResOFF.Visible = false;
                btnSave.Visible           = false;
                btnClear.Visible          = false;
                grdLandInfoRespondentsOff.Columns[grdLandInfoRespondentsOff.Columns.Count - 1].Visible = false;
                grdLandInfoRespondentsOff.Columns[grdLandInfoRespondentsOff.Columns.Count - 2].Visible = false;
            }
        }
예제 #10
0
        /// <summary>
        /// Set Page header,Call methods to fill the Drop Downs and Fetch the data from Database
        /// Check User Permitions
        /// Check Mode is readonly or not
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            ValuationMenu1.HighlightMenu = ValuationMenu.MenuValue.AcreageValuation;
            // CompSocioEconomyMenu1.HighlightMenu = CompSocioEconomyMenu.MenuValue.AcreageValuation;
            ViewMasterCopy1.HighlightMenu = ViewMasterCopy.MenuValue.AffectedAcreageValuation;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS", CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_CODE"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Socio-Economic - Land Information - Affected Acreage Valuation";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                AddShareOfLandValue();
                BindLandType();
                BindLocationClassification();
                BindProprietor();
                GetHouseholdDetails();
                GetAffectedAcreageValuation();


                //txtRightWay.ReadOnly = true;
                //txtWayleave.ReadOnly = true;
                //txtWayleave.Attributes.Add("onKeyDown", "doCheck();");
                //txtRightWay.Attributes.Add("onKeyDown", "doCheck();");
                txtAcreageHA.Attributes.Add("onKeyDown", "doCheck();");
                //txtAcreageAcres.Attributes.Add("onKeyDown", "doCheck();");
                checkApprovalExitOrNot();
                projectFrozen();
                getApprrequtStatusAcrValuation();
                txtLandOwner.Attributes.Add("onchange", "setDirtyText();");
                txtLandBlock.Attributes.Add("onchange", "setDirtyText();");
                txtLandPlot.Attributes.Add("onchange", "setDirtyText();");
                btnSave.Attributes.Add("onclick", "isDirty = 0;");
                btnClear.Attributes.Add("onclick", "isDirty = 0;");

                if ((new PAP_HouseholdBLL()).IsResident(Convert.ToInt32(Session["HH_ID"])) == false)
                {
                    // Whole Acreage Acres section is available only for Residents.
                    txtAcreageAcres.Enabled = false;
                    txtAcreageHA.Enabled    = false;
                }


                int HHID_ = Convert.ToInt32(Session["HH_ID"]);
                ViewDependents(HHID_);
                upnAcreageVal.Update();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SOCIO_ECONOMIC) == false)
                {
                    lnkAcrValuation.Visible = false;
                    btnSave.Visible         = false;
                    btnClear.Visible        = false;
                }
            }
            if (Mode == "Readonly")
            {
                ValuationMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible       = false;
                lnkAcrValuation.Visible = false;
                btnSave.Visible         = false;
                btnClear.Visible        = false;
            }
        }
예제 #11
0
        /// <summary>
        /// Set Page header,call  Getcategory() to get category
        /// call  Getresolby() to get result by id
        /// call Getactionby() to get action
        /// call   BindGrid() to bind the data to the grid
        /// Set attributes to link buttons lnkGrievances,lnkUploadDoc
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            calactionDatePicker.Format     = UtilBO.DateFormat;
            calresolutionDatePicker.Format = UtilBO.DateFormat;
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS", CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }

            if (!IsPostBack)
            {
                descriptionTextBox.Attributes.Add("maxlength", descriptionTextBox.MaxLength.ToString());
                actionTextBox.Attributes.Add("maxlength", actionTextBox.MaxLength.ToString());
                ViewState["GRIEVANCEID"] = 0;
                Master.PageHeader        = Session["PROJECT_CODE"].ToString() + " - Grievances";
                int hhid   = Convert.ToInt32(Session["HH_ID"]);
                int userID = Convert.ToInt32(Session["USER_ID"]);

                ResolutionStatusChange.Visible = false;
                screenIntialization(hhid);

                Getcategory();
                Getresolby();
                Getactionby();
                BindGrid();
                lnkGrievances.Visible = false;
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_GRIEVANCES) == false)
                {
                    lnkGrievances.Visible = false;
                    btnSave.Visible       = false;
                    btnClear.Visible      = false;
                    lnkUploadDoc.Visible  = false;
                    grdgrvlist.Columns[grdgrvlist.Columns.Count - 1].Visible = false;
                    grdgrvlist.Columns[grdgrvlist.Columns.Count - 2].Visible = false;
                    grdgrvlist.Columns[grdgrvlist.Columns.Count - 3].Visible = false;
                }
            }



            // checkGrievanceApprovalExitOrNot();
            //projectFrozen();
            if (Mode == "Readonly")
            {
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible             = false;
                lnkGrievances.Visible         = false;
                btnSave.Visible               = false;
                btnClear.Visible              = false;
                lnkUploadDoc.Visible          = false;
                grdgrvlist.Columns[4].Visible = false;
                grdgrvlist.Columns[5].Visible = false;
            }
        }
예제 #12
0
        /// <summary>
        /// Set Page header,Call BindDropDownDistrict() to bind the district names to the dropdownlist
        /// call GetLandInfo() to bind the Land Info to the dropDown
        /// Call DisplayPanel() to set the status of the panel
        /// to set the status of the link button lnkLandInfoResOn
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            CompSocioEconomyMenu1.HighlightMenu = CompSocioEconomyMenu.MenuValue.OnAffectedLand;
            ViewMasterCopy1.HighlightMenu       = ViewMasterCopy.MenuValue.LivingonAffectedLand;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }

            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Socio-Economic - Land Information - Respondents living on Affected Plot";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                txtYesLandHold.Enabled = false;
                BindDropDownDistrict();
                GetLandInfo();
                DisplayPanel();
                projectFrozen();
                chkFamilyMember.Attributes.Add("onclick", string.Format("EnableBuried(this,'{0}');", txtBuried.ClientID));

                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SOCIO_ECONOMIC) == false)
                {
                    lnkLandInfoResOn.Visible = false;
                    btnSave.Visible          = false;
                    btnClear.Visible         = false;
                }
            }
            if (Mode == "Readonly")
            {
                CompSocioEconomyMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible        = false;
                lnkLandInfoResOn.Visible = false;
                btnSave.Visible          = false;
                btnClear.Visible         = false;
            }
        }
예제 #13
0
        /// <summary>
        /// Check User permitions
        /// Set Page Header
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            if (Session["PROJECT_CODE"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            Page.Response.Cache.SetNoStore();

            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Compensation Packages";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }
                checkApprovalExitOrNot();
                LoadComponestion();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_PACKAGE_DOCUMENTS) == false)
                {
                    lnkValuationPCI.Visible = false;
                    foreach (RepeaterItem item1 in rptPKGDoccatName.Items)
                    {
                        Repeater rptDOCitem = (Repeater)item1.FindControl("rptDOCitem");
                        thPrint.Visible    = false;
                        thApprover.Visible = false;
                        foreach (RepeaterItem item in rptDOCitem.Items)
                        {
                            System.Web.UI.HtmlControls.HtmlTableCell tdPrintButton    = (System.Web.UI.HtmlControls.HtmlTableCell)item.FindControl("tdPrintButton");
                            System.Web.UI.HtmlControls.HtmlTableCell tdApproverButton = (System.Web.UI.HtmlControls.HtmlTableCell)item.FindControl("tdApproverButton");
                            tdPrintButton.Visible    = false;
                            tdApproverButton.Visible = false;
                        }
                    }
                }
            }

            if (Mode == "Readonly")
            {
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible       = false;
                lnkValuationPCI.Visible = false;

                foreach (RepeaterItem item1 in rptPKGDoccatName.Items)
                {
                    Repeater rptDOCitem = (Repeater)item1.FindControl("rptDOCitem");
                    thPrint.Visible    = false;
                    thApprover.Visible = false;
                    thStatus.Visible   = true;
                    foreach (RepeaterItem item in rptDOCitem.Items)
                    {
                        System.Web.UI.HtmlControls.HtmlTableCell tdPrintButton    = (System.Web.UI.HtmlControls.HtmlTableCell)item.FindControl("tdPrintButton");
                        System.Web.UI.HtmlControls.HtmlTableCell tdApproverButton = (System.Web.UI.HtmlControls.HtmlTableCell)item.FindControl("tdApproverButton");
                        System.Web.UI.HtmlControls.HtmlTableCell tdStatusButton   = (System.Web.UI.HtmlControls.HtmlTableCell)item.FindControl("tdStatusButton");
                        tdPrintButton.Visible    = false;
                        tdApproverButton.Visible = false;
                        tdStatusButton.Visible   = true;
                    }
                }
            }
        }
예제 #14
0
        /// <summary>
        /// to set the PAge Header,Call  FillBanks() to fill the bank names from the database
        /// call  GetLivelihoodItems() to get the the livlihood Items  from the database
        /// call  BindLivelihoodItems() to Bind the the livlihood Items  from the database
        ///  call  GetBankDetails() to get the the Bank Details  from the database

        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"]   = Convert.ToInt32(Request.QueryString["ProjectID"]);
                Session["HH_ID"]        = Convert.ToInt32(Request.QueryString["HHID"]);
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            CompSocioEconomyMenu1.HighlightMenu = CompSocioEconomyMenu.MenuValue.Livelihood;
            ViewMasterCopy1.HighlightMenu       = ViewMasterCopy.MenuValue.LivelihoodDetails;

            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Socio-Economic - Livelihood";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                FillBanks();
                GetLivelihoodItems();
                BindLivelihoodItems();
                GetBankDetails();
                txtAccountNo.Attributes.Add("onchange", "setDirtyText();");
                txtAccountName.Attributes.Add("onchange", "setDirtyText();");
                btnSave.Attributes.Add("onclick", " isDirty = 0;");
                btnClear.Attributes.Add("onclick", " isDirty = 0;");
                btnSaveBank.Attributes.Add("onclick", " isDirty = 0;");
                btnClearBank.Attributes.Add("onclick", " isDirty = 0;");
                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SOCIO_ECONOMIC) == false)
                {
                    chkHasBankAccount.Enabled = false;
                    btnSaveBank.Visible       = false;
                    btnClearBank.Visible      = false;
                    btnSave.Visible           = false;
                    btnClear.Visible          = false;
                }
            }
            if (Mode == "Readonly")
            {
                CompSocioEconomyMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible         = false;
                chkHasBankAccount.Enabled = false;
                btnSaveBank.Visible       = false;
                btnClearBank.Visible      = false;
                btnSave.Visible           = false;
                btnClear.Visible          = false;
            }
            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
        }
예제 #15
0
        /// <summary>
        /// Set Page header,call  GetHouseHoldDtlData() to get the household details from the database
        /// call   BindRelations() to bind the Relations from the database
        /// call  GetPAPStatus() to get the PAPStatus data from the dtaabase
        /// call  BindServiceMaster() to bind the ServiceMaster from the database
        /// call GetPAPServices() to get the PAPService data from the database
        /// call BindAffectedLandUsers() to bind the Affected Land User data from the database
        /// set the status of the link lnkChangeRequest,lnkLogout
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            CompSocioEconomyMenu1.HighlightMenu = CompSocioEconomyMenu.MenuValue.HouseholdRelations;
            ViewMasterCopy1.HighlightMenu       = ViewMasterCopy.MenuValue.HouseholderDetails;
            ViewMasterCopy2.HighlightMenu       = ViewMasterCopy.MenuValue.ServicesonAffectedPlot;
            ViewMasterCopy3.HighlightMenu       = ViewMasterCopy.MenuValue.AffectedLandusersontheAffectedPlotofLand;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_CODE"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }

            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Socio-Economic - Household Relations";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                ViewState["AFFECLANDUSER_ID"] = 0;
                ViewState["ChkMaritalStatus"] = "None";
                GetHouseHoldDtlData();
                BindRelations();
                GetPAPStatus();
                BindServiceMaster();
                GetPAPServices();
                BindAffectedLandUsers();
                txtAffecLandUserName.Attributes.Add("Onchange", "setDirtyText();");

                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SOCIO_ECONOMIC) == false)
                {
                    btnSaveLandUser.Visible  = false;
                    btnClearLandUser.Visible = false;
                    btnSaveService.Visible   = false;
                    btnClearService.Visible  = false;
                    grdAffectedLandUsers.Columns[grdAffectedLandUsers.Columns.Count - 1].Visible = false;
                    grdAffectedLandUsers.Columns[grdAffectedLandUsers.Columns.Count - 2].Visible = false;
                }
            }
            if (Mode == "Readonly")
            {
                CompSocioEconomyMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible        = false;
                lnkChangeRequest.Visible = false;
                btnSaveLandUser.Visible  = false;
                btnClearLandUser.Visible = false;
                btnSaveService.Visible   = false;
                btnClearService.Visible  = false;
                grdAffectedLandUsers.Columns[grdAffectedLandUsers.Columns.Count - 1].Visible = false;
                grdAffectedLandUsers.Columns[grdAffectedLandUsers.Columns.Count - 2].Visible = false;
            }
        }
예제 #16
0
        /// <summary>
        /// Set Page header,Call BindGrid() method
        /// Check User Permitions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            //ValuationMenu1.HighlightMenu = ValuationMenu.MenuValue.NonPermanentBuildings;
            ViewMasterCopy1.HighlightMenu = ViewMasterCopy.MenuValue.NonPermanentStructureDetails;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }

            if (!Page.IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Valuation - Non-Permanent Buildings";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                if (RadioButton2.Checked == true)
                {
                    otherTextBox.Enabled = true;
                }


                if (RadioButton4.Checked == true)
                {
                    otherselfoccupantTextBox.Enabled = true;
                }

                GetBuildingType();
                GetCategory();
                GetCondition();
                GetOccupantstatus();

                BindGrid();

                RadioButton1.Attributes.Add("onclick", "EnableDisableOtherOwner(0);");
                RadioButton2.Attributes.Add("onclick", "EnableDisableOtherOwner(1);");
                RadioButton3.Attributes.Add("onclick", "EnableDisableOtherOccupant(0);");
                RadioButton4.Attributes.Add("onclick", "EnableDisableOtherOccupant(1);");
                occupantstatusDropDownList.Attributes.Add("onchange", "EnableDisableOccupantStatus(this)");

                lengthTextBox.Attributes.Add("onchange", "surfacearea();");
                widthTextBox.Attributes.Add("onchange", "surfacearea();");
                surfaceareaTextBox.Attributes.Add("onKeyDown", "doCheck();");

                popupData();
                //lnkViewPhoto.Visible = false;

                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_VALUATION) == false)
                {
                    btnSave.Visible           = false;
                    btnClear.Visible          = false;
                    grdNPS.Columns[4].Visible = false;
                    grdNPS.Columns[5].Visible = false;
                }

                projectFrozen();
            }

            if (Mode == "Readonly")
            {
                ValuationMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible         = false;
                lnkNonPermStr.Visible     = false;
                btnSave.Visible           = false;
                btnClear.Visible          = false;
                grdNPS.Columns[4].Visible = false;
                grdNPS.Columns[5].Visible = false;
            }
        }
예제 #17
0
        /// <summary>
        /// Set Page header
        /// Check User Permitions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            ViewMasterCopy1.HighlightMenu = ViewMasterCopy.MenuValue.LandInfo;
            ViewMasterCopy2.HighlightMenu = ViewMasterCopy.MenuValue.LandInfoPriv;
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Survey - Land Information";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }

                BindLandTenure();
                BindReceivedFromWhom();
                GetLandInfo();

                txtwhenbeginfarm.Attributes.Add("onblur", "CheckYear();");
                txtyearmoved.Attributes.Add("onblur", "CheckYearForAll(this);");
                txtyear.Attributes.Add("onblur", "CheckYearForAll(this);");
                chkLivedSinceBirth.Attributes.Add("onclick", "chkLivedSinceBirth_onclick(this);");
                ChkMortagelies.Attributes.Add("onclick", "chkMortgage_onclick(this);");
                ddlReceivedFromWhom.Attributes.Add("onchange", "EnableDisableOtherOccupantStatus(this);");
                txtlandlord.Attributes.Add("onchange", "setDirtyText();");
                txtwhenbeginfarm.Attributes.Add("onchange", "setDirtyText();");
                txtagrrement.Attributes.Add("onchange", "setDirtyText();");
                txtwhoclaims.Attributes.Add("onchange", "setDirtyText();");
                txtwheredidfarm.Attributes.Add("onchange", "setDirtyText();");
                txtprodutive.Attributes.Add("onchange", "setDirtyText();");
                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SURVEY) == false)
                {
                    lnkILOP.Visible         = false;
                    lnkITML.Visible         = false;
                    btn_SavePub.Visible     = false;
                    btn_ClearPublic.Visible = false;
                    btn_SavePrivate.Visible = false;
                    btn_Clear.Visible       = false;
                }
            }

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Mode == "Readonly")
            {
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible       = false;
                lnkILOP.Visible         = false;
                lnkITML.Visible         = false;
                btn_SavePub.Visible     = false;
                btn_ClearPublic.Visible = false;
                btn_SavePrivate.Visible = false;
                btn_Clear.Visible       = false;
            }
        }
예제 #18
0
        /// <summary>
        /// Set Page header,Call BindGrid() method
        /// Check User Permitions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            ValuationMenu1.HighlightMenu     = ValuationMenu.MenuValue.OtherFixtures;
            OtherFixturesMenu1.HighlightMenu = OtherFixturesMenu.MenuValue.Fence;
            ViewMasterCopy1.HighlightMenu    = ViewMasterCopy.MenuValue.Fence;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }

            if (!IsPostBack)
            {
                if (Session["PROJECT_CODE"] != null)
                {
                    Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Valuation - Other Fixtures";
                }
                else
                {
                    Response.Redirect("~/UI/Project/ViewProjects.aspx");
                }
                //Master.PageHeader = "Other Fixtures";
                ViewState["PAP_FENCEID"] = 0;

                // To get type of Grave from MST_FENCE
                GetFenceDescription();

                BindGrid(); //Calling the Grid Data
                lengthTextBox.Attributes.Add("onchange", "surfacearea();");
                heightTextBox.Attributes.Add("onchange", "surfacearea();");
                surfaceareaTextBox.Attributes.Add("onKeyDown", "doCheck();");

                popupData();
                // lnkViewPhoto.Visible = false;

                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_VALUATION) == false)
                {
                    lnkFence.Visible = false;
                    btnSave.Visible  = false;
                    btnClear.Visible = false;
                    grdFence.Columns[grdFence.Columns.Count - 1].Visible = false;
                    grdFence.Columns[grdFence.Columns.Count - 2].Visible = false;
                    grdFence.Columns[grdFence.Columns.Count - 4].Visible = false;
                }
            }
            if (Mode == "Readonly")
            {
                ValuationMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible = false;
                lnkFence.Visible  = false;
                btnSave.Visible   = false;
                btnClear.Visible  = false;
                grdFence.Columns[grdFence.Columns.Count - 1].Visible = false;
                grdFence.Columns[grdFence.Columns.Count - 2].Visible = false;
                grdFence.Columns[grdFence.Columns.Count - 4].Visible = false;
            }
        }
예제 #19
0
        /// <summary>
        /// to Set Page header,Call BindDiseases() to get the all diease data from the database
        /// call BindDisabilities() to bind the disability data from the database to the dropdown
        /// call BindDisabilityGrid to bind the Disability data from the database by HHId
        /// call GetHealthCenter() to get the HealthCenter Data from the database
        /// call BindHIVContracted() to get the HIV Contracted Data from the database
        /// call GetHealthInfo() to get the health info records from the database
        /// set the status of the Link Button lnkPAPHealthDisability,lnkPAPHealthInfo
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            string Mode = string.Empty;

            if (Request.QueryString["ProjectID"] != null)
            {
                Session["PROJECT_ID"] = Convert.ToInt32(Request.QueryString["ProjectID"]);
                if (Request.QueryString["HHID"] != null)
                {
                    Session["HH_ID"] = Convert.ToInt32(Request.QueryString["HHID"]);
                }
                else
                {
                    Session["HH_ID"] = null;
                }
                Session["PROJECT_CODE"] = Request.QueryString["ProjectCode"].ToString();
                Mode = Request.QueryString["Mode"].ToString();
            }
            CompSocioEconomyMenu1.HighlightMenu = CompSocioEconomyMenu.MenuValue.Health;
            ViewMasterCopy1.HighlightMenu       = ViewMasterCopy.MenuValue.HealthCareDetails;
            ViewMasterCopy2.HighlightMenu       = ViewMasterCopy.MenuValue.DisabilityDetails;

            if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "MasterJS"))
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MasterJS",
                                                            CreateStartupScript());
            }
            if (Session["USER_ID"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            if (Session["PROJECT_ID"] == null)
            {
                Response.Redirect("~/UI/Project/ViewProjects.aspx");
            }
            if (Session["HH_ID"] == null)
            {
                Response.Redirect("~/UI/Compensation/PAPList.aspx");
            }
            if (!IsPostBack)
            {
                chkUsedByFamily.Attributes.Add("onclick", string.Format("EnableBuried(this,'{0}');", txtNonUseReason.ClientID));
                Master.PageHeader = Session["PROJECT_CODE"].ToString() + " - Socio-Economic - Health Information";

                ViewState["HEALTH_ID"] = 0;

                BindDiseases();
                BindDisabilities();
                BindDisabilityGrid();
                GetHealthCenter();
                BindHIVContracted();
                GetHealthInfo();
                projectFrozen();
                if (CheckAuthorization.HasUpdatePrivilege(UtilBO.PrivilegeCode.PRIV_SOCIO_ECONOMIC) == false)
                {
                    lnkPAPHealthDisability.Visible = false;
                    lnkPAPHealthInfo.Visible       = false;
                    btnSaveDisability.Visible      = false;
                    btnClearDisability.Visible     = false;
                    btnSaveHealthInfo.Visible      = false;
                    btnClearHealthInfo.Visible     = false;
                    grdDisabilities.Columns[grdDisabilities.Columns.Count - 1].Visible = false;
                    grdDisabilities.Columns[grdDisabilities.Columns.Count - 2].Visible = false;
                    grdDisabilities.Columns[grdDisabilities.Columns.Count - 3].Visible = false;
                }
            }
            if (Mode == "Readonly")
            {
                CompSocioEconomyMenu1.Visible = false;
                Label userNameLabel = (Label)Master.FindControl("userNameLabel");
                userNameLabel.Visible = false;
                LinkButton lnkLogout = (LinkButton)Master.FindControl("lnkLogout");
                lnkLogout.Visible = false;
                Menu NavigationMenu = (Menu)Master.FindControl("NavigationMenu");
                NavigationMenu.Visible = false;
                ImageButton imgSearch = (ImageButton)HouseholdSummary1.FindControl("imgSearch");
                imgSearch.Visible = false;
                lnkPAPHealthDisability.Visible     = false;
                lnkPAPHealthInfo.Visible           = false;
                btnSaveDisability.Visible          = false;
                btnClearDisability.Visible         = false;
                btnSaveHealthInfo.Visible          = false;
                btnClearHealthInfo.Visible         = false;
                grdDisabilities.Columns[3].Visible = false;
                grdDisabilities.Columns[4].Visible = false;
                grdDisabilities.Columns[5].Visible = false;
            }
        }