/// <summary> /// 添加序列 /// </summary> /// <returns>主键</returns> public string Add() { string returnValue = string.Empty; FrmSequenceAdd frmSequenceAdd = new FrmSequenceAdd(); frmSequenceAdd.OnAdded+=new FrmSequenceAdd.OnAddedEventHandler(OnAdded); frmSequenceAdd.ShowDialog(this); if (frmSequenceAdd.Changed) { returnValue = frmSequenceAdd.EntityId; // 获得序列列表 this.GetList(); // 设置按钮状态 this.SetControlState(); } return returnValue; }
/// <summary> /// 添加序列 /// </summary> /// <returns>主键</returns> public string Add() { string returnValue = string.Empty; FrmSequenceAdd frmSequenceAdd = new FrmSequenceAdd(); frmSequenceAdd.OnAdded += new FrmSequenceAdd.OnAddedEventHandler(OnAdded); frmSequenceAdd.ShowDialog(this); if (frmSequenceAdd.Changed) { returnValue = frmSequenceAdd.EntityId; // 获得序列列表 this.GetList(); // 设置按钮状态 this.SetControlState(); } return(returnValue); }