ERPfor众城电脑/admin_system.cs

(开头部分) 4KB

这里只显示每个文件的开头 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;
using CARDAL;
using DevComponents.DotNetBar;
// 下载于www.51aspx.com
namespace ERPfor众城电脑
{
    public partial class admin_system : Office2007Form
    {
        public string text = "";
        public string flag = "";
        public admin_system()
        {
            InitializeComponent();
        }

        private void admin_system_Load(object sender, EventArgs e)
        {
            DataBind();
            textBoxX1.Enabled = false;
            textBoxX2.Enabled  =false;
            textBoxX3.Enabled = false;
        
        }

        public void DataBind()
        {
            string sql = "SELECT * FROM [ZCERP].[dbo].[ZH_USER_INFO]";
            dataGridViewX1.DataSource = CARDAL.DbHelp.GetDataTable(sql);
            dataGridViewX1.AutoGenerateColumns = false;      
        }

        private void buttonX5_Click(object sender, EventArgs e)
        {
         DataBind();
        }

        private void buttonX1_Click(object sender, EventArgs e)
        {     
            textBoxX1.Enabled = true;
            textBoxX2.Enabled  =true;
            textBoxX3.Enabled = true;
            textBoxX1.Text ="";
            textBoxX2.Text ="";
            textBoxX3.Text ="";
            buttonX4.Enabled = true;
            this.ActiveControl = textBoxX1;
            textBoxX1.Focus();
            flag = "editor";

        }

        private void dataGridViewX1_CellClick(object sender, DataGridViewCellEventArgs e)
        {       
后面还有 90 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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