基本信息维护/楼盘信息/AddUserInfo.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;
namespace PropertyManagementSystem
{
public partial class AddUserInfo : Form
{
public AddUserInfo()
{
InitializeComponent();
}
private void btnSeach_Click(object sender, EventArgs e)
{
string area = this.txtArea.Text.ToString().Trim();
string tung = this.txtTung.Text.ToString().Trim();
string floor = this.txtFloor.Text.ToString().Trim();
string household = this.txtHousehold.Text.ToString().Trim();
string price = this.txtPrice.Text.ToString().Trim();
if (area!=""&&tung!=""&&floor!=""&&household!=""&&price!="")
{
try
{
string estate = this.txtEstate.Text.ToString();
string sql = "insert into Properties_For_Sale(area,tung,[floor],household,Price,estate) values('" + area + "','" + tung + "','" + floor + "','" + household + "','" + price + "','" + estate + "')";
bool result = DBHelper.GetExecuteNonQuery(sql);
if (result)
{
MessageBox.Show("添加成功!", "提示");
}
else
{
MessageBox.Show("添加失败!", "提示");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
else
{
MessageBox.Show("亲,输入框中的值不能为空!","提示");
}
}
private void AddUserInfo_Load(object sender, EventArgs e)
{
}
private void btnCanel_Click(object sender, EventArgs e)
{
后面还有 4 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
