Example #1
0
        private void 查看ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            frmPatDetails frm = new frmPatDetails(strDbType, (DataTable)dgvListData.DataSource, dgvListData.SelectedRows[0].Index + 1, ztid);

            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }
Example #2
0
        private void dgvListData_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            frmPatDetails frm = new frmPatDetails(strDbType, (DataTable)dgvListData.DataSource, e.RowIndex + 1, ztid);

            frm.ShowDialog();
        }
Example #3
0
        private void 查看ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            DataGridViewCell cell   = (DataGridViewCell)dgvListData.SelectedRows[0].Cells["Idx"];
            string           strPID = cell.Value.ToString();

            //frmPatDetails frm = new frmPatDetails(strPID,strDbType);
            frmPatDetails frm = new frmPatDetails(strDbType, (DataTable)dgvListData.DataSource, dgvListData.SelectedRows[0].Index + 1, strZtID);

            //frm.MdiParent = this;
            frm.ShowDialog();

            this.Cursor = Cursors.Default;
        }
Example #4
0
        private void dgvListData_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }

            //DataGridViewCell cell = (DataGridViewCell)dgvListData.Rows[e.RowIndex].Cells["Idx"];
            //string strPID = cell.Value.ToString();
            //frmPatDetails frm = new frmPatDetails(strPID,strDbType);

            frmPatDetails frm = new frmPatDetails(strDbType, (DataTable)dgvListData.DataSource, e.RowIndex + 1, strZtID);

            //frm.MdiParent = this;
            frm.ShowDialog();
        }
Example #5
0
        private void 查看ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            DataGridViewCell cell = (DataGridViewCell)dgvListData.SelectedRows[0].Cells["Idx"];
            string strPID = cell.Value.ToString();

            //frmPatDetails frm = new frmPatDetails(strPID,strDbType);
            frmPatDetails frm = new frmPatDetails(strDbType, (DataTable)dgvListData.DataSource, dgvListData.SelectedRows[0].Index + 1, strZtID);
            //frm.MdiParent = this;
            frm.ShowDialog();

            this.Cursor = Cursors.Default;
        }
Example #6
0
        private void dgvListData_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1) return;

            //DataGridViewCell cell = (DataGridViewCell)dgvListData.Rows[e.RowIndex].Cells["Idx"];
            //string strPID = cell.Value.ToString();
            //frmPatDetails frm = new frmPatDetails(strPID,strDbType);

            frmPatDetails frm = new frmPatDetails(strDbType, (DataTable)dgvListData.DataSource, e.RowIndex + 1, strZtID);
            //frm.MdiParent = this;
            frm.ShowDialog();
        }
Example #7
0
 private void 查看ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     frmPatDetails frm = new frmPatDetails(strDbType, (DataTable)dgvListData.DataSource, dgvListData.SelectedRows[0].Index + 1, ztid);
     frm.ShowDialog();
     this.Cursor = Cursors.Default;
 }
Example #8
0
 private void dgvListData_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex == -1) return;
     frmPatDetails frm = new frmPatDetails(strDbType, (DataTable)dgvListData.DataSource, e.RowIndex + 1, ztid);
     frm.ShowDialog();
 }