NetBarManageSystem/Form_xgmm.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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;

namespace NetBarManageSystem_lihang
{
    public partial class Form_xgmm : Form
    {
        public Form_xgmm()
        {
            InitializeComponent();
        }

        private void Form_xgmm_Shown(object sender, EventArgs e)
        {
            //查询所有的会员卡
            string sql2 = "select * from cardInfo";

            DataTable table = sql_zsgc.cx(sql2);

            this.cbo_hyk.DataSource = table;
            this.cbo_hyk.DisplayMember = "cardNumber";
            this.cbo_hyk.ValueMember = "cardId";

            if (this.cbo_hyk.Text == "")
            {
                this.Close();
                MessageBox.Show("没有会员卡!","系统提示");
            }
        }

        private void btn_qd_Click(object sender, EventArgs e)
        {
            if(this.txt_newpwd.Text=="")
            {
               MessageBox.Show("请输入新的密码......","系统提示");
            }
            else
            {
                string sql = "update cardInfo set cardPassword='"+this.txt_newpwd.Text+"' ";

                int result= sql_zsgc.zsg(sql);
                if (result <= 0)
                {
                    MessageBox.Show("修改密码失败!", "系统提示");
                }
                else 
                {
                    MessageBox.Show("修改密码成功!", "系统提示");
                    //修改成功刷新一下
                    Form_xgmm_Shown(null,null);
                }
            }
            
        }
后面还有 7 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。