Beispiel #1
0
        private void cboProj_EditValueChanged(object sender, EventArgs e)
        {
            DataTable dtLand = new DataTable();

            if (Convert.ToInt32(cboProj.EditValue) > 0)
            {
                dtLand = LeadBL.GetBusinessType(Convert.ToInt32(cboProj.EditValue));
                if (dtLand.Rows.Count > 0)
                {
                    m_sBussinessType = CommFun.IsNullCheck(dtLand.Rows[0]["BusinessType"], CommFun.datatypes.vartypestring).ToString();
                    m_iLandId        = Convert.ToInt32(CommFun.IsNullCheck(dtLand.Rows[0]["LandId"], CommFun.datatypes.vartypenumeric));
                    if (m_sBussinessType == "B")
                    {
                        lblProject.Caption = "Project - Apartment";
                    }
                    else
                    {
                        lblProject.Caption = "Project - Plot";
                    }
                }
                FillGridMaster();
                FillGrid();
            }
            else
            {
                lblProject.Caption = "Project"; grdPBTrans.DataSource = null; grdPBReg.DataSource = null;
            }
        }
Beispiel #2
0
        private void cboProject_EditValueChanged(object sender, EventArgs e)
        {
            DataTable dtLand = new DataTable();

            if (Convert.ToInt32(cboProject.EditValue) > 0)
            {
                m_iCCId = Convert.ToInt32(cboProject.EditValue);
                dtLand  = LeadBL.GetBusinessType(m_iCCId);
                if (dtLand.Rows.Count > 0)
                {
                    m_sBussinessType = CommFun.IsNullCheck(dtLand.Rows[0]["BusinessType"], CommFun.datatypes.vartypestring).ToString();
                    m_iLandId        = Convert.ToInt32(CommFun.IsNullCheck(dtLand.Rows[0]["LandId"], CommFun.datatypes.vartypenumeric));
                    if (m_sBussinessType == "B")
                    {
                        lblProject.Text = "Project - Apartment";
                    }
                    else if (m_sBussinessType == "L")
                    {
                        lblProject.Text = "Project - Plot";
                    }
                }
                PopulateLead();
                PopulateFlat();
            }
        }
Beispiel #3
0
        private void barEditItem1_EditValueChanged(object sender, EventArgs e)
        {
            DataTable dtLand = new DataTable();

            //if (BsfGlobal.FindPermission("Progress CheckList-View") == false)
            //{
            //    MessageBox.Show("You don't have Rights to Progress CheckList-View");
            //    return;
            //}
            if (m_bAns == false)
            {
                return;
            }
            dtLand = LeadBL.GetBusinessType(Convert.ToInt32(barcboProject.EditValue));
            if (dtLand.Rows.Count > 0)
            {
                m_sBussinessType = CommFun.IsNullCheck(dtLand.Rows[0]["BusinessType"], CommFun.datatypes.vartypestring).ToString();
                m_iLandId        = Convert.ToInt32(CommFun.IsNullCheck(dtLand.Rows[0]["LandId"], CommFun.datatypes.vartypenumeric));
            }
            PopulateFlatType();
            PopulateGrid();
        }