Пример #1
0
        private void btnCreateUser_Click(object sender, EventArgs e)
        {
            ChangeUserForm changeForm = new ChangeUserForm();

            changeForm.m_ChangerID = m_ProgramUserIdx;

            changeForm.ShowDialog();

            //помечаем заявку обработанной
             //  if (changeForm.ShowDialog() == DialogResult.OK)

               // m_ITOSQLCommand.ExecuteSQLNotQuery("update NewUser set State = 1 where DocID='" + m_NewUser.Rows[e.RowIndex]["DocID"].ToString() + "'");

               // m_TableAdapterManager.NewUserTableAdapter.Fill(m_NewUser);
        }
Пример #2
0
        private void btnNewUser_Click(object sender, EventArgs e)
        {
            ChangeUserForm changeForm = new ChangeUserForm();

            changeForm.m_ChangerID = m_ProgramUserIdx;

            //помечаем заявку обработанной
            if (changeForm.ShowDialog() == DialogResult.OK)
            {
            }
        }
Пример #3
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            ChangeUserForm changeForm = new ChangeUserForm();

            changeForm.m_ChangerID = m_ProgramUserIdx;
            changeForm.PrepareData(m_NewUser.Rows[e.RowIndex]["FullName"].ToString(),
                                    m_NewUser.Rows[e.RowIndex]["Department"].ToString(),
                                    m_NewUser.Rows[e.RowIndex]["Birthday"].ToString(),
                                    m_NewUser.Rows[e.RowIndex]["login"].ToString(),
                                    m_NewUser.Rows[e.RowIndex]["phone"].ToString(),
                                    m_NewUser.Rows[e.RowIndex]["workplace"].ToString(),
                                    m_NewUser.Rows[e.RowIndex]["Position"].ToString());

            //помечаем заявку обработанной
            if (changeForm.ShowDialog() == DialogResult.OK)

                m_ITOSQLCommand.ExecuteSQLNotQuery("update NewUser set State = 1 where DocID='" + m_NewUser.Rows[e.RowIndex]["DocID"].ToString() + "'");

            m_TableAdapterManager.NewUserTableAdapter.Fill(m_NewUser);
        }