HT_HY_CZ.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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 System.Data.SqlClient;
namespace XKSM
{
public partial class HT_HY_CZ : Form
{
public HT_HY_CZ()
{
InitializeComponent();
}
GetSQL get = new GetSQL();
public HYlei l = null;
private void HT_HY_CZ_Load(object sender, EventArgs e)
{
//////////////////////////////////////////
this.user.Text = l.Yuser.ToString();
this.name.Text = l.Yname.ToString();//接收传值
this.kh.Text = l.Ykh.ToString();
this.dh.Text = l.Yphoin.ToString();
this.ye.Text = l.Ymoney.ToString();
///////////////////////////////////////////
}
private void button2_Click(object sender, EventArgs e)
{
this.Close();
}
private void button1_Click(object sender, EventArgs e)
{
int yea =Convert.ToInt32( ye.Text);
int qian =Convert.ToInt32( czje.Text);
if (qian > 0)
{
qian = qian + yea;
var con = get.getsql();
try
{
con.Open();
string sql = string.Format("update YH_user set Ymoney='{0}' where Ykh='{1}'", qian, kh.Text);
SqlCommand cmd = new SqlCommand(sql, con);
if (cmd.ExecuteNonQuery() > 0)
{
MessageBox.Show("修改成功,请刷新数据!");
this.Close();
}
}
catch (Exception es)
{
MessageBox.Show("错误--" + es.Message);
后面还有 13 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
