Esempio n. 1
0
        private void btn_append_Click(object sender, EventArgs e)
        {
            Form_PlaceInfo_appendModify form_PlaceInfo_appendModify = new Form_PlaceInfo_appendModify();

            form_PlaceInfo_appendModify.isAppend = true;
            form_PlaceInfo_appendModify.Text     = "场地信息添加";

            if (form_PlaceInfo_appendModify.ShowDialog() == DialogResult.OK)
            {
                dataGridView_place.DataSource = mDBM.Select(placeViewSQL).Tables[0];
            }
        }
Esempio n. 2
0
        private void dataGridView_place_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                Form_PlaceInfo_appendModify form_PlaceInfo_appendModify = new Form_PlaceInfo_appendModify();
                form_PlaceInfo_appendModify.isAppend = false;
                form_PlaceInfo_appendModify.Text     = "场地信息修改";

                form_PlaceInfo_appendModify.code                 = dataGridView_place.Rows[e.RowIndex].Cells["考场代码"].Value.ToString();
                form_PlaceInfo_appendModify.name                 = dataGridView_place.Rows[e.RowIndex].Cells["考场名称"].Value.ToString();
                form_PlaceInfo_appendModify.subject              = dataGridView_place.Rows[e.RowIndex].Cells["考试科目"].Value.ToString();
                form_PlaceInfo_appendModify.issuingAuthority     = dataGridView_place.Rows[e.RowIndex].Cells["发证机关"].Value.ToString();
                form_PlaceInfo_appendModify.branchAdministration = dataGridView_place.Rows[e.RowIndex].Cells["管理部门"].Value.ToString();
                form_PlaceInfo_appendModify.acceptanceDate       = dataGridView_place.Rows[e.RowIndex].Cells["总队验收日期"].Value.ToString();
                form_PlaceInfo_appendModify.accepter             = dataGridView_place.Rows[e.RowIndex].Cells["验收人"].Value.ToString();

                if (form_PlaceInfo_appendModify.ShowDialog() == DialogResult.OK)
                {
                    dataGridView_place.DataSource = mDBM.Select(placeViewSQL).Tables[0];
                }
            }
        }