Esempio n. 1
0
        public void Save()
        {
            // 检查批量输入的有效性
            if (!BasePageLogic.CheckInputModifyAnyOne(this.DTUser))
            {
                return;
            }
            // 设置鼠标繁忙状态,并保留原先的状态
            var holdCursor = this.Cursor;

            this.Cursor = Cursors.WaitCursor;
            try
            {
                // 批量保存
                this.BatchSave();
                this.DTUser.AcceptChanges();
            }
            catch (Exception ex)
            {
                this.ProcessException(ex);
            }
            finally
            {
                // 设置鼠标默认状态,原来的光标状态
                this.Cursor = holdCursor;
            }
        }