Beispiel #1
0
 /// <summary>
 /// Bind data to ddlLandTenure drop down
 /// </summary>
 private void BindLandTenure()
 {
     objMasterBLL      = new MasterBLL();
     objTenureLandList = objMasterBLL.LoadTenureLand();
     if (objTenureLandList.Count > 0)
     {
         ddlLandTenure.DataSource     = objTenureLandList;
         ddlLandTenure.DataTextField  = "Lnd_Tenure";
         ddlLandTenure.DataValueField = "Lnd_TenureId";
         ddlLandTenure.DataBind();
     }
     ddlLandTenure.Items.Insert(0, "--Select--");
 }
Beispiel #2
0
        /// <summary>
        /// get Data and set data to Labels
        /// </summary>
        private void BindLandType()
        {
            LandInfoBLL      objLandInfoBLL = new LandInfoBLL();
            PublicLandInfoBO objLandInfo    = objLandInfoBLL.GetLandInfo(Convert.ToInt32(Session["HH_ID"]));

            if (objLandInfo != null)
            {
                objMasterBLL = new MasterBLL();

                TenureLandList TenureLands = objMasterBLL.LoadTenureLand();
                foreach (TenureLandBO objTenureLand in TenureLands)
                {
                    if (objTenureLand.Lnd_TenureId == objLandInfo.LND_TENUREID)
                    {
                        lblLandType.Text = objTenureLand.Lnd_Tenure;
                        break;
                    }
                }
            }
            else
            {
                LandInfoPrivateBLL objLFPrivateBLL = new LandInfoPrivateBLL();
                PrivateLandInfoBO  objLandInfoPriv = objLFPrivateBLL.GetLandInfoPriv(Convert.ToInt32(Session["HH_ID"]));

                if (objLandInfoPriv != null)
                {
                    objMasterBLL = new MasterBLL();

                    TenureLandList TenureLands = objMasterBLL.LoadTenureLand();
                    foreach (TenureLandBO objTenureLand in TenureLands)
                    {
                        if (objTenureLand.Lnd_TenureId == objLandInfoPriv.Lnd_TENUREIDPriv)
                        {
                            lblLandType.Text = objTenureLand.Lnd_Tenure;
                            break;
                        }
                    }
                }
            }
        }