コード例 #1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            BindControl();

            string workID = dataGridView1.CurrentRow.Cells["员工编号"].Value.ToString();

            //FormPersonnelArchiveList frm = new FormPersonnelArchiveList(
            //    m_authorityFlag, personnelChange, GetPersonnelArchiveData(), allowDate, starTime, endTime, m_queryResult);
            //frm.ShowDialog();

            //if (frm.updateFlag)
            //{
            //    RefreshControl();
            //}

            //FormPersonnelArchiveListShow frm = new FormPersonnelArchiveListShow(
            //    m_authorityFlag, personnelChange, GetPersonnelArchiveData(), allowDate, starTime, endTime, m_queryResult);
            //frm.ShowDialog();

            员工档案明细 frm = new 员工档案明细(m_authorityFlag, personnelChange, GetPersonnelArchiveData(), m_queryResult);

            frm.ShowDialog();

            if (frm.UpdateFlag)
            {
                RefreshControl();
            }

            PositioningRecord(workID);
        }
コード例 #2
0
        private void 新建toolStripButton1_Click(object sender, EventArgs e)
        {
            //FormPersonnelArchiveList frm = new FormPersonnelArchiveList(m_authorityFlag,null,null,
            //    "","","",null);
            //frm.ShowDialog();

            //if (frm.updateFlag)
            //{
            //    RefreshControl();
            //}

            //FormPersonnelArchiveListShow frm = new FormPersonnelArchiveListShow(m_authorityFlag, null, null,
            //    "", "", "", null);
            //frm.ShowDialog();

            //if (frm.UpdateFlag)
            //{
            //    RefreshControl();
            //}

            员工档案明细 frm = new 员工档案明细(m_authorityFlag, null, null, null);

            frm.ShowDialog();

            if (frm.UpdateFlag)
            {
                RefreshControl();
            }
        }