Esempio n. 1
0
 private void chkFac_CheckedChanged(object sender, EventArgs e)
 {
     RGFac.SetEditValue(null);
     if (chkFac.Checked == true)
     {
         RGFac.Enabled = true;
     }
     else
     {
         RGFac.Enabled = false;
     }
 }
Esempio n. 2
0
        private void frmFilter_Load(object sender, EventArgs e)
        {
            FillEnquiry();

            if (m_dtFilter.Rows.Count > 0)
            {
                if (m_dtFilter.Rows[0]["i_AptId"].ToString() != "")
                {
                    chkApt.Checked = true;
                    RGApt.SetEditValue(m_dtFilter.Rows[0]["i_AptId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_AptSizeId"].ToString() != "")
                {
                    chkAptSize.Checked = true;
                    RGAptSize.SetEditValue(m_dtFilter.Rows[0]["i_AptSizeId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_AptTypeId"].ToString() != "")
                {
                    chkAptType.Checked = true;
                    RGAptType.SetEditValue(m_dtFilter.Rows[0]["i_AptTypeId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_AreaId"].ToString() != "")
                {
                    chkArea.Checked = true;
                    RGArea.SetEditValue(m_dtFilter.Rows[0]["i_AreaId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_BuyerId"].ToString() != "")
                {
                    chkBuyer.Checked = true;
                    RGBuyer.SetEditValue(m_dtFilter.Rows[0]["i_BuyerId"].ToString());
                }
                if (m_dtFilter.Rows[0]["s_City"].ToString() != "")
                {
                    chkCity.Checked = true;
                    RGCity.SetEditValue(m_dtFilter.Rows[0]["s_City"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_CostPrefId"].ToString() != "")
                {
                    chkCostPre.Checked = true;
                    RGCostPre.SetEditValue(m_dtFilter.Rows[0]["i_CostPrefId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_CountryId"].ToString() != "")
                {
                    chkCountry.Checked = true;
                    RGCountry.SetEditValue(m_dtFilter.Rows[0]["i_CountryId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_EmpId"].ToString() != "")
                {
                    chkEmp.Checked = true;
                    RGEmpStatus.SetEditValue(m_dtFilter.Rows[0]["i_EmpId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_ExeId"].ToString() != "")
                {
                    chkExe.Checked = true;
                    RGExe.SetEditValue(m_dtFilter.Rows[0]["i_ExeId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_FacId"].ToString() != "")
                {
                    chkFac.Checked = true;
                    RGFac.SetEditValue(m_dtFilter.Rows[0]["i_FacId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_GuestHouId"].ToString() != "")
                {
                    chkGuestHou.Checked = true;
                    RGGuestHou.SetEditValue(m_dtFilter.Rows[0]["i_GuestHouId"].ToString());
                }
                if (m_dtFilter.Rows[0]["s_Nat"].ToString() != "")
                {
                    chkNat.Checked          = true;
                    RGNationality.EditValue = m_dtFilter.Rows[0]["s_Nat"].ToString();
                }
                if (m_dtFilter.Rows[0]["i_PossId"].ToString() != "")
                {
                    chkPoss.Checked = true;
                    RGPoss.SetEditValue(m_dtFilter.Rows[0]["i_PossId"].ToString());
                }
                if (m_dtFilter.Rows[0]["s_Prof"].ToString() != "")
                {
                    chkProfession.Checked  = true;
                    RGProfession.EditValue = m_dtFilter.Rows[0]["s_Prof"].ToString();
                }
                if (m_dtFilter.Rows[0]["i_ProjId"].ToString() != "")
                {
                    chkProj.Checked = true;
                    RGProj.SetEditValue(m_dtFilter.Rows[0]["i_ProjId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_ReligionId"].ToString() != "")
                {
                    chkReligion.Checked = true;
                    RGReligion.SetEditValue(m_dtFilter.Rows[0]["i_ReligionId"].ToString());
                }
                if (m_dtFilter.Rows[0]["s_State"].ToString() != "")
                {
                    chkState.Checked = true;
                    RGState.SetEditValue(m_dtFilter.Rows[0]["s_State"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_StayId"].ToString() != "")
                {
                    chkStay.Checked = true;
                    RGStay.SetEditValue(m_dtFilter.Rows[0]["i_StayId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_SubSourId"].ToString() != "")
                {
                    chkSubSou.Checked = true;
                    RGSubSou.SetEditValue(m_dtFilter.Rows[0]["i_SubSourId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_IncomeId"].ToString() != "")
                {
                    chkYearlyInc.Checked = true;
                    RGYearlyIncome.SetEditValue(m_dtFilter.Rows[0]["i_IncomeId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_FinId"].ToString() != "")
                {
                    chkFin.Checked = true;
                    RGFinance.SetEditValue(m_dtFilter.Rows[0]["i_FinId"].ToString());
                }
                if (m_dtFilter.Rows[0]["i_MaritalId"].ToString() != "")
                {
                    chkMaritalS.Checked = true;
                    RGMaritalSta.SetEditValue(m_dtFilter.Rows[0]["i_MaritalId"].ToString());
                }
            }
        }