Пример #1
0
 private void ProsView_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
 {
     if (ProsView.RowCount > 0)
     {
         txtRemarks.EditValue = ProsView.GetFocusedRowCellValue("Remarks").ToString();
     }
 }
Пример #2
0
        private void PopulateProsAndBuyer()
        {
            if (b_FormLoad == true)
            {
                return;
            }

            int iLCCId = Convert.ToInt32(CommFun.IsNullCheck(cboPCostCentre.EditValue, CommFun.datatypes.vartypenumeric));
            int iBCCId = Convert.ToInt32(CommFun.IsNullCheck(cboBCostCentre.EditValue, CommFun.datatypes.vartypenumeric));

            DataSet ds = ClientBL.GetProsAndBuyer(iLCCId, iBCCId, m_sCCTransId);

            if (ds == null)
            {
                return;
            }

            grdPros.DataSource = ds.Tables[0];
            ProsView.PopulateColumns();
            ProsView.Columns["LeadId"].Visible   = false;
            ProsView.Columns["LeadType"].Visible = false;
            ProsView.Columns["LeadId"].OptionsColumn.ShowInCustomizationForm   = false;
            ProsView.Columns["LeadType"].OptionsColumn.ShowInCustomizationForm = false;

            ProsView.Appearance.HeaderPanel.Font      = new Font(ProsView.Appearance.HeaderPanel.Font, FontStyle.Bold);
            ProsView.OptionsSelection.InvertSelection = true;
            ProsView.OptionsSelection.EnableAppearanceHideSelection = false;
            ProsView.Appearance.FocusedRow.ForeColor = Color.White;
            ProsView.Appearance.FocusedRow.BackColor = Color.Teal;
            ProsView.FocusedRowHandle = 0;
            ProsView.Focus();

            grdBuyer.DataSource = ds.Tables[1];
            BuyerView.PopulateColumns();
            BuyerView.Columns["LeadId"].Visible       = false;
            BuyerView.Columns["FlatId"].Visible       = false;
            BuyerView.Columns["LeadType"].Visible     = false;
            BuyerView.Columns["CostCentreId"].Visible = false;
            BuyerView.Columns["LeadId"].OptionsColumn.ShowInCustomizationForm   = false;
            BuyerView.Columns["FlatId"].OptionsColumn.ShowInCustomizationForm   = false;
            BuyerView.Columns["LeadType"].OptionsColumn.ShowInCustomizationForm = false;

            BuyerView.Columns["Name"].Group();
            BuyerView.ExpandAllGroups();

            BuyerView.Appearance.HeaderPanel.Font      = new Font(BuyerView.Appearance.HeaderPanel.Font, FontStyle.Bold);
            BuyerView.OptionsSelection.InvertSelection = true;
            BuyerView.OptionsSelection.EnableAppearanceHideSelection = false;
            BuyerView.Appearance.FocusedRow.BackColor = Color.Teal;
            BuyerView.Appearance.FocusedRow.ForeColor = Color.White;
            BuyerView.FocusedRowHandle = 0;
        }
Пример #3
0
        private void ProspectiveView()
        {
            panelClient.Controls.Clear();
            EnquiryId   = Convert.ToInt32(CommFun.IsNullCheck(ProsView.GetFocusedRowCellValue("LeadId"), CommFun.datatypes.vartypenumeric));
            m_sLeadName = CommFun.IsNullCheck(ProsView.GetFocusedRowCellValue("Name"), CommFun.datatypes.vartypestring).ToString();
            if (EnquiryId == 0 && m_sLeadName == "")
            {
                return;
            }
            frmProsDetails frm = new frmProsDetails()
            {
                TopLevel = false, FormBorderStyle = System.Windows.Forms.FormBorderStyle.None, Dock = DockStyle.Fill
            };

            panelClient.Controls.Add(frm);
            frm.Execute(EnquiryId, m_sLeadName);
        }