Exemple #1
0
        private void cmdPWDReset_Click(object sender, EventArgs e)
        {
            if (SqlDb.IsAllow(AppVariable.CURRENT_SUB_MENU, AppVariable.CURRENT_USER_LEVEL_ID.ToString(), "IsEdit") == true)
            {
                curIndex = grdViewUser.GetDataSourceRowIndex(grdViewUser.FocusedRowHandle);

                frmResetPassword ResetPasswordForm = new frmResetPassword();

                ResetPasswordForm.txtNewPassw.Tag  = drUser.ItemArray[0].ToString();
                ResetPasswordForm.lblUserName.Text = drUser.ItemArray[1].ToString();
                ResetPasswordForm.lblLoginID.Text  = drUser.ItemArray[2].ToString();
                ResetPasswordForm.cmdSave.Tag      = "Edit";

                ResetPasswordForm.ShowDialog();

                BindingUser();
            }
            else
            {
                MessageBox.Show("Sorry, Administrator is not allow this action?", "MediPro :: Clinic System", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Exemple #2
0
        private void cmdPWDReset_Click(object sender, EventArgs e)
        {
            if (SqlDb.IsAllow(AppVariable.CURRENT_SUB_MENU, AppVariable.CURRENT_USER_LEVEL_ID.ToString(), "IsEdit") == true)
            {
                curIndex = grdViewUser.GetDataSourceRowIndex(grdViewUser.FocusedRowHandle);

                frmResetPassword ResetPasswordForm = new frmResetPassword();

                ResetPasswordForm.txtNewPassw.Tag = drUser.ItemArray[0].ToString();
                ResetPasswordForm.lblUserName.Text = drUser.ItemArray[1].ToString();
                ResetPasswordForm.lblLoginID.Text = drUser.ItemArray[2].ToString();
                ResetPasswordForm.cmdSave.Tag = "Edit";

                ResetPasswordForm.ShowDialog();

                BindingUser();
            }
            else
            {
                MessageBox.Show("Sorry, Administrator is not allow this action?", "MediPro :: Clinic System", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }