Пример #1
0
 public void QJGridViewRefreshRow()
 {
     for (int i = 0; i < m_pSectionObjList.Count; i++)
     {
         QJGridView.RefreshRow(i);
     }
 }
Пример #2
0
        void QJGridView_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
        {
            if (frmLift.getInstance().Visible || frmAlarm.getInstance().Visible)
            {
                return;
            }
            int    i   = this.QJGridView.FocusedRowHandle;
            string str = (string)e.CellValue;

            if (string.IsNullOrEmpty(str))
            {
                return;
            }
            if (str.Equals("查看"))
            {
                if (i >= 0)
                {
                    object needAlert   = QJGridView.GetRowCellValue(this.QJGridView.FocusedRowHandle, QJGridView.Columns["ID"]);
                    string id          = (string)needAlert;
                    object secName     = QJGridView.GetRowCellValue(this.QJGridView.FocusedRowHandle, QJGridView.Columns["SectionName"]);
                    string sectionName = (string)secName;
                    frmConfigDlg.InstanceObject().SetID(id).Fill(sectionName).Show();
                }
            }
            else
            {
                if (i >= 0)
                {
                    object needAlert = QJGridView.GetRowCellValue(this.QJGridView.FocusedRowHandle, QJGridView.Columns["ID"]);
                    string id        = (string)needAlert;
                    foreach (ASectionObj obj in m_pSectionObjList)
                    {
                        if (obj.ID.Equals(id))
                        {
                            if (obj.SectionAlarmLevel >= 1)
                            {
                                if (obj.ManualLiftComputer())
                                {
                                    m_pLiftControlDictionary[id].SetLogInfo(obj.LiftLevelInfo);
                                    m_pLiftControlDictionary[id].Shown = true;
                                    m_pLiftControlDictionary[id].Show();
                                    frmLift.getInstance().WhoIsShow();
                                    frmLift.getInstance().RefreshLocation();
                                    frmLift.getInstance().Show();
                                }
                                else
                                {
                                    // MessageBox.Show(string.Format("当前降雨情况没有达到警戒解除标准,请稍候再试!"), "解除提示", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                                    m_pErrorDlg = frmErrorMsg.getInstance();
                                    m_pErrorDlg.SetErrorMessage("当前降雨情况没有达到警戒解除标准,请稍候再试!");
                                    m_pErrorDlg.ShowDialog();
                                }
                            }
                        }
                    }
                }
            }
        }
Пример #3
0
        void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            int i = this.QJGridView.FocusedRowHandle;

            if (i >= 0)
            {
                object needAlert = QJGridView.GetRowCellValue(this.QJGridView.FocusedRowHandle, QJGridView.Columns["SiteSection"]);
                string section   = (string)needAlert;
                System.Diagnostics.Debug.WriteLine(section + ":Click", DateTime.Now.ToString());

                // MessageBox.Show(section);
            }
        }