HSJC/FormBao/Update_Admin.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using HSJC.SQL;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CCWin;
using System.Data.SqlClient;
namespace HSJC.FormBao
{
public partial class Update_Admin : CCSkinMain
{
public Update_Admin()
{
InitializeComponent();
}
public UserLei lei = null;
XG_SQL xg = new XG_SQL();
GetSql get = new GetSql();
YZ_SQL yz = new YZ_SQL();
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
private void Update_Admin_Load(object sender, EventArgs e)
{
BMtype();
this.namebox.Text = lei.name;
this.userbox.Text = lei.user;
this.pwdbox.Text = lei.pwd;
this.djbox.Text = lei.DJname;
this.bmbox.Text = lei.BM;
this.zwbox.Text = lei.ZW;
this.dhbox.Text = lei.Phone;
if (Form1.QXJB!="超级管理员") {
djbox.Enabled = false;
}else if(userbox.Text=="admin"){
djbox.Enabled = false;
}
}
/// <summary>
/// 绑定部门的下拉列表
/// </summary>
public void BMtype()
{
var con = get.getsql();
try
{
con.Open();
string sql = ("SELECT bmname from bmtype");
SqlCommand com = new SqlCommand(sql, con);
/////////////////////////////sql server 绑定下拉列表
SqlDataAdapter da = new SqlDataAdapter();
da.SelectCommand = com;
后面还有 45 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
