AreaBLL _AreaBLL = new AreaBLL(); //实例化 /// <summary> /// 保存数据 /// </summary> private void SaveData() { if (!string.IsNullOrEmpty(this.txtGA03002.Text)) { string strid = _AreaBLL.CreateSystemAreaProvinceId(); //获取ID SystemArea _SystemArea = new SystemArea(); _SystemArea.GA03001 = strid; _SystemArea.GA03002 = this.txtGA03002.Text.Trim(); _SystemArea.GA03003 = "0"; _SystemArea.GA03004 = this.txtGA03004.Text.Trim(); int num = Math.Abs(_AreaBLL.InsertSystemArea(_SystemArea)); //执行保存方法 new Sinoo.Common.MessageShow().InsertMessage(this, num, "DataClear();"); } }