简单的C#用户权限管理系统
来源:互联网 发布:电缆选型软件 编辑:程序博客网 时间:2024/06/08 11:50
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.OleDb;namespace 用户权限管理{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btnExit_Click(object sender, EventArgs e) { this.Dispose(); } private void btnLogin_Click(object sender, EventArgs e) { string strLogin = txtLogin.Text.Trim(); string strPass = txtPass.Text.Trim(); string str = "select * from Login where Login='"+strLogin+"'and Login_pwd='" +strPass+"'"; DataOperater oper = new DataOperater(); OleDbDataReader oda = oper.sql_oper(str).ExecuteReader(); oda.Read(); if (oda.HasRows) { string str1 = "select Power from Login where Login='" + strLogin + "'and Login_pwd='" + strPass + "'"; Form2 frm = new Form2(); frm.strPower=oper.sql_dataset(str1).Tables[0].Rows[0][0].ToString(); this.Hide(); frm.ShowDialog(); this.Dispose(); } else { txtLogin.Text = ""; txtPass.Text = ""; MessageBox.Show("用户名或密码错误!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } } private void txtLogin_TextChanged(object sender, EventArgs e) { } }}
0 0
- 简单的C#用户权限管理系统
- 简单的用户权限管理
- 用户权限管理系统的过滤器的优化
- C# 用户权限管理
- 统一用户权限管理系统
- 用户权限管理系统(正式版)
- 一种简单方便的用户权限管理方法--使用菜单来管理用户权限
- 一种简单方便的用户权限管理方法--使用菜单来管理用户权限(下)
- 用户权限管理系统开发启动
- 实现业务系统用户权限管理
- 第六章 电子政务系统的用户权限管理 -- RBAC(一)
- 第六章 电子政务系统的用户权限管理 -- RBAC(四)
- Oracle系统中用户权限的赋予,查看和管理
- linux用户权限的管理
- linux用户权限的管理
- linux用户权限的管理
- linux用户权限的管理
- oracle用户权限的管理
- 【剑指offer-Java版】46求 1 + 2 + 3 + ... + n
- 【剑指offer-Java版】47不用加减乘除做加法
- “Application windows are expected to have a root view controller at the end of application launch”
- 问题解决:对Slidingmenu中控件监听
- tftp环境搭建
- 简单的C#用户权限管理系统
- TCP/IP详解 卷一 ---------ARP地址解析协议
- 我的.emacs
- Android和JS交互
- 54. Spiral Matrix
- 【剑指offer-Java版】49把字符串转换为整数
- 关于android studio 更新后各种gradle project sync failed
- c++ primer 学习笔记24 复制构造函数
- oracle 11g r2 企业管理器