fyadd.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class fyadd : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        string strErr = "";
        if (this.txtxq.Text.Trim().Length == 0)
        {
            strErr += "小区不能为空!\\n";
        }
        if (this.txtlc.Text.Trim().Length == 0)
        {
            strErr += "楼层不能为空!\\n";
        }
        if (this.txthxmj.Text.Trim().Length == 0)
        {
            strErr += "户型面积不能为空!\\n";
        }
        if (this.txtfwgk.Text.Trim().Length == 0)
        {
            strErr += "房屋概况不能为空!\\n";
        }
        if (this.txtfyzt.Text.Trim().Length == 0)
        {
            strErr += "房源状态不能为空!\\n";
        }

        if (strErr != "")
        {
            ResponseMessage(this, strErr);
            return;
        }
        string xq = this.txtxq.Text;
        string lc = this.txtlc.Text;
        string hxmj = this.txthxmj.Text;
        string fwgk = this.txtfwgk.Text;
        string fyzt = this.txtfyzt.Text;

        ZF.fyxx model = new ZF.fyxx();
        model.xq = xq;
        model.lc = lc;
        model.hxmj = hxmj;
        model.fwgk = fwgk;
        model.fyzt = fyzt;
        model.Add();
        ResponseMessageToUrl(this, "保存成功!", "fygl.aspx");
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。