餐饮管理系统/Frm_DengLu.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
//KO
namespace 餐饮管理系统
{
public partial class Frm_DengLu : Form
{
int i;
public Frm_DengLu()
{
InitializeComponent();
}
private void btnQuXiao_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void btnDengLu_Click(object sender, EventArgs e)
{
i++;
if (string.IsNullOrEmpty(txtLoginID.Text.Trim()))
{
MessageBox.Show("请输入用户名!", "登录", MessageBoxButtons.OK, MessageBoxIcon.Information);
txtLoginID.Focus();
txtLoginID.SelectAll();
}
else if (string.IsNullOrEmpty(txtPwd.Text.Trim()))
{
MessageBox.Show("请输入密码!", "登录", MessageBoxButtons.OK, MessageBoxIcon.Information);
txtPwd.Focus();
txtPwd.SelectAll();
}
else if (string.IsNullOrEmpty(cmbLei.Text.Trim()))
{
MessageBox.Show("请选择用户类型!", "登录", MessageBoxButtons.OK, MessageBoxIcon.Information);
cmbLei.Focus();
}
else
{
string sql = string.Format("select * from 员工表 where adminId='{0}' and adminPwd='{1}' and adminType='{2}' ", txtLoginID.Text, txtPwd.Text, cmbLei.Text);
bool b = Public_Frm.ExecScalar(sql);
if (b)
{
string id = txtLoginID.Text;//获取id
Public_Frm.id = id;//传递到公共类的id
Frm_ZhuJieMian zm = new Frm_ZhuJieMian();
zm.Show();
this.Hide();
}
else
{
if (i == 3)
{
MessageBox.Show("您的输入错误3次,系统自动关闭!", "失败", MessageBoxButtons.OK, MessageBoxIcon.Information);
后面还有 8 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
