/// <summary> /// 新增界面确定添加按钮单击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnbc_Click(object sender, EventArgs e) { TbSpeciality special = new TbSpeciality(); special.ZyName = this.ZyName.Text; special.Remark = this.Remark.Text; if (hidSpecID.Value != "") { special.ZyID = int.Parse(this.hidSpecID.Value); TbSpecialityManager.EditSpecByID(special); this.hidSpecID.Value = ""; } else { TbSpecialityManager.addSpeciality(special.ZyName, special.Remark); } this.ZyName.Text = ""; this.Remark.Text = ""; GetAllSpenIntoCount();//重新调用方法实现数据加载 }