示例#1
0
        private void gvwBase_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
        {
            try
            {
                if (e.Column.ColumnHandle < 2 || e.Clicks <= 1)
                {
                    return;
                }
                DataTable dtF   = new DataTable();
                string    DateF = string.Concat(UC_MONTH.GetValue(), dtf.Columns[e.Column.ColumnHandle].ColumnName.ToString().Replace("'", ""));
                string    DateT = string.Concat(UC_MONTH.GetValue(), dtf.Columns[e.Column.ColumnHandle].ColumnName.ToString().Replace("'", ""));
                if (e.RowHandle == gvwBase.RowCount - 2 && e.Column.ColumnHandle != 2)
                {
                    dtF = MGL_I_QSD_DATA_SELECT("POPUP1", DateF, DateT);
                    Popup.FRM_SMT_INTERNAL_POPUP_1 POPUP_1 = new Popup.FRM_SMT_INTERNAL_POPUP_1(dtF);
                    POPUP_1.ShowDialog();
                }

                if (e.RowHandle == gvwBase.RowCount - 1 && e.Column.ColumnHandle != 2)
                {
                    dtF = MGL_I_QSD_DATA_SELECT("POPUP2", DateF, DateT);
                    Popup.FRM_SMT_INTERNAL_POPUP_2 POPUP_2 = new Popup.FRM_SMT_INTERNAL_POPUP_2(dtF);
                    POPUP_2.ShowDialog();
                }
            }
            catch { }
        }
示例#2
0
        private void gvwBase_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
        {
            if (e.Column.ColumnHandle < 2 || e.Clicks <= 1)
            {
                return;
            }
            DataTable dtF = new DataTable();

            if (e.RowHandle == gvwBase.RowCount - 2 && e.Column.ColumnHandle != 2)
            {
                dtF = SEL_DATA_OSD_POP1("Q1" + Mline, dtf.Columns[e.Column.ColumnHandle].ColumnName.ToString());
                Popup.FRM_SMT_INTERNAL_POPUP_1 POPUP_1 = new Popup.FRM_SMT_INTERNAL_POPUP_1(dtF);
                POPUP_1.ShowDialog();
            }

            if (e.RowHandle == gvwBase.RowCount - 1 && e.Column.ColumnHandle != 2)
            {
                dtF = SEL_DATA_OSD_POP1("Q2" + Mline, dtf.Columns[e.Column.ColumnHandle].ColumnName.ToString());
                Popup.FRM_SMT_INTERNAL_POPUP_2 POPUP_2 = new Popup.FRM_SMT_INTERNAL_POPUP_2(dtF);
                POPUP_2.ShowDialog();
            }
        }