예제 #1
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            GridHitInfo _info;
            Point       _pt = gridView1.GridControl.PointToClient(Control.MousePosition);

            _info = gridView1.CalcHitInfo(_pt);
            if (_info.HitTest != GridHitTest.RowCell)
            {
                return;
            }


            string s_bitDesc = gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gridView1.FocusedColumn).ToString();
            string s_rowerId = rower_arry[gridView1.FocusedRowHandle]["RG001"].ToString();
            string s_status  = MiscAction.GetTombStatus(s_rowerId, s_bitDesc);

            if (s_status == "2" || s_status == "3")
            {
                Tools.msg(MessageBoxIcon.Warning, "提示", "该墓位已经被占用!");
                return;
            }
            else if (s_status == "4")
            {
                return;
            }
            else if (s_status == "1")
            {
                string s_bitId = MiscAction.GetTombId(s_rowerId, s_bitDesc);
                this.swapdata["bi001"] = s_bitId;
                this.DialogResult      = DialogResult.OK;
                this.Close();
            }
        }