Esempio n. 1
0
        private void btnSelectFolder_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(this.OpenId))
            {
                this.OpenId = this.SelectedId;
            }
            FrmFolderSelect FrmFolderSelect;

            if (String.IsNullOrEmpty(this.OpenId))
            {
                FrmFolderSelect = new FrmFolderSelect();
            }
            else
            {
                FrmFolderSelect = new FrmFolderSelect(this.OpenId);
            }
            FrmFolderSelect.AllowNull = this.AllowNull;
            FrmFolderSelect.CheckMove = this.CheckMove;

            if (FrmFolderSelect.ShowDialog() == DialogResult.OK)
            {
                this.SelectedFullName = FrmFolderSelect.SelectedFullName;
                this.txtFolder1.Text  = FrmFolderSelect.SelectedFullName;
                this.SelectedId       = FrmFolderSelect.SelectedId;
                txtFolder1.Text       = FrmFolderSelect.SelectedFullName;

                if (this.SelectedIndexChanged != null)
                {
                    this.SelectedIndexChanged(this.SelectedId);
                }
            }
            this.SetControlState();
        }
Esempio n. 2
0
 /// <summary>
 /// 单个记录移动
 /// </summary>
 private void SingleMove(string currentEntityId)
 {
     frmFolderSelect = new FrmFolderSelect(this.parentEntityId);
     frmFolderSelect.OnButtonConfirmClick += new FrmFolderSelect.ButtonConfirmEventHandler(CheckInputMove);
     frmFolderSelect.AllowNull             = true;
     if (frmFolderSelect.ShowDialog() == DialogResult.OK)
     {
         this.Changed = true;
         // 设置鼠标繁忙状态,并保留原先的状态
         Cursor holdCursor = this.Cursor;
         this.Cursor     = Cursors.WaitCursor;
         this.FormLoaded = false;
         // 调用事件
         DotNetService.Instance.FolderService.MoveTo(UserInfo, currentEntityId, frmFolderSelect.SelectedId);
         // 绑定屏幕数据
         this.FormOnLoad();
         this.FormLoaded = true;
         // 设置鼠标默认状态,原来的光标状态
         this.Cursor = holdCursor;
     }
 }
Esempio n. 3
0
 /// <summary>
 /// 批量移动
 /// </summary>
 private void BatchMove()
 {
     frmFolderSelect = new FrmFolderSelect(this.parentEntityId);
     frmFolderSelect.OnButtonConfirmClick += new FrmFolderSelect.ButtonConfirmEventHandler(CheckInputMove);
     frmFolderSelect.AllowNull = true;
     if (frmFolderSelect.ShowDialog() == DialogResult.OK)
     {
         this.Changed = true;
         // 设置鼠标繁忙状态,并保留原先的状态
         Cursor holdCursor = this.Cursor;
         this.Cursor = Cursors.WaitCursor;
         this.FormLoaded = false;
         // 调用事件
         DotNetService.Instance.FolderService.BatchMoveTo(UserInfo, this.GetSelecteIds(), frmFolderSelect.SelectedId);
         // 绑定屏幕数据
         this.FormOnLoad();
         this.FormLoaded = true;
         // 设置鼠标默认状态,原来的光标状态
         this.Cursor = holdCursor;
     }
 }
Esempio n. 4
0
        private void btnSelectFolder_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(this.OpenId))
            {
                this.OpenId = this.SelectedId;
            }
            FrmFolderSelect FrmFolderSelect;
            if (String.IsNullOrEmpty(this.OpenId))
            {
                FrmFolderSelect = new FrmFolderSelect();
            }
            else
            {
                FrmFolderSelect = new FrmFolderSelect(this.OpenId);
            }
            FrmFolderSelect.AllowNull = this.AllowNull;
            FrmFolderSelect.CheckMove = this.CheckMove;

            if (FrmFolderSelect.ShowDialog() == DialogResult.OK)
            {

                this.SelectedFullName   = FrmFolderSelect.SelectedFullName;
                this.txtFolder1.Text     = FrmFolderSelect.SelectedFullName;
                this.SelectedId         = FrmFolderSelect.SelectedId;
                txtFolder1.Text = FrmFolderSelect.SelectedFullName;

                if (this.SelectedIndexChanged != null)
                {
                    this.SelectedIndexChanged(this.SelectedId);
                }
            }
            this.SetControlState();
        }