这算不算一个真正的三层结构?
*.aspx.cs 代码:
using GongChengGuanLiXiTong.BLL;
protected void Button3_Click(object sender, EventArgs e)//新增合同信息
{
GongChengGuanLiHeTongXinXi glht = new GongChengGuanLiHeTongXinXi();
glht.HeTongBianHao = TextBox4.Text.ToString().Trim();
glht.GongChengMingCheng = TextBox5.Text.ToString().Trim();
glht.JiaFang = TextBox6.Text.ToString().Trim();
glht.JiaFangID = Session["GLXM_Id"].ToString();
glht.JiaFangID = "1/2";
glht.YiFang = TextBox7.Text.ToString().Trim();
glht.GongChengZaoJia = float.Parse(TextBox9.Text.ToString().Trim());
glht.GuanLiChouJin = float.Parse(TextBox15.Text.ToString());
//glht.QianYueRiQi = DateTime.Parse(TextBox8.Text.ToString());
glht.QianYueRiQi = DateTime.Parse("2007-7-7");
glht.FuKuanFangShi = TextBox1.Text.ToString().Trim();
glht.BeiZhu = TextBox2.Text.ToString().Trim();
GongChengGuanLiHeTongXinXi.Insert(glht);
//关闭子窗口并返回父窗口并模拟单击父窗口的Button13按扭引发其click事件,实现子窗口提交数据后即时异步刷新父窗口中的GridView控件
Page.ClientScript.RegisterStartupScript(this.GetType(), "Test1", "<script>close();opener.document.all('Button13').click();</script>");
}