NetBarManageSystem/Form_scjsj.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_scjsj : Form
{
public Form_scjsj()
{
InitializeComponent();
}
private void Form_scjsj_Shown(object sender, EventArgs e)
{
//查询所有计算机并绑定
string sql1 = "select * from pcInfo";
DataTable table = sql_zsgc.cx(sql1);
this.cbo_jsjbh.DataSource = table;
this.cbo_jsjbh.DisplayMember = "pcId";
this.cbo_jsjbh.ValueMember = "pcId";
}
private void btn_qx_Click(object sender, EventArgs e)
{
if (this.cbo_jsjbh.Text == "")
{
this.Close();
MessageBox.Show("没有计算机!");
}
else
{
//删除计算机的sql语句
string sql= "delete from pcInfo where pcId="+this.cbo_jsjbh.Text+"";
int result = sql_zsgc.zsg(sql);
if(result<=0)
{
MessageBox.Show("删除失败!","系统提示");
}
else
{
MessageBox.Show("删除成功!","系统提示");
//删除成功刷新
Form_scjsj_Shown(null,null);
}
}
}
private void btn_qx_Click_1(object sender, EventArgs e)
{
this.Close();
}
}
后面还有 1 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
