NetBarManageSystem/Form_hyxj.cs
(开头部分) 6KB这里只显示每个文件的开头 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_hyxj : Form
{
//定义全局变量。用于上机成功后,刷新上机信息
public From_main xj;
public Form_hyxj()
{
InitializeComponent();
}
private void timer_sjsj_Tick(object sender, EventArgs e)
{
this.txt_xjsj.Text = DateTime.Now + "";
}
private void cbo_jqbh_SelectedIndexChanged(object sender, EventArgs e)
{
ss();
}
public void ss()
{
//没有上机的机器信息
if (this.cbo_jqbh.Text != "")
{
string sql2 = "select * from cardInfo as a, recordInfo as b where a.cardId=b.cardId and b.pcId=" + this.cbo_jqbh.Text + " and b.endTime is null";
DataTable table_xjxx = sql_zsgc.cx(sql2);
//绑定数据
this.txt_hyh.Text = table_xjxx.Rows[0]["cardNumber"] + "";
this.txt_sjsj.Text = table_xjxx.Rows[0]["beginTime"] + "";
this.txt_cardId.Text = table_xjxx.Rows[0]["cardId"] + "";
}
else
{
MessageBox.Show("没有可用的下机信息!","系统提示");
this.Close();//没有下机信息关闭窗口
}
}
private void Form_hyxj_Shown(object sender, EventArgs e)
{
//查询可下机的机器编号
后面还有 138 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
