Exemple #1
0
        private void 登记公文ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmEditDoc frm = new FrmEditDoc();

            frm.ShowDialog();
            ShowDocs("", DgvDocument.RowCount, 0, 0);
        }
Exemple #2
0
        private void 修改内容ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (DgvDocument.SelectedRows.Count == 0)
            {
                return;
            }
            int        docID = Convert.ToInt32(DgvDocument.SelectedRows[0].Cells["colID"].Value);
            FrmEditDoc frm   = new FrmEditDoc(docID);

            frm.ShowDialog();
            ShowDocs(
                "",
                DgvDocument.SelectedRows[0].Index,
                DgvSubDoc.RowCount > 0 ? DgvSubDoc.SelectedRows[0].Index : 0,
                DgvOper.RowCount > 0 ? DgvOper.SelectedRows[0].Index : 0
                );
        }