예제 #1
0
 /// <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;
 }
예제 #2
0
        /// <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);
        }