예제 #1
0
        /// <summary>
        /// 编辑树节点
        /// </summary>
        private void EditTree()
        {
            if (this.tvFolder.SelectedNode == null)
            {
                return;
            }
            string id = string.Empty;

            if (this.tvFolder.SelectedNode.Tag is DataRow)
            {
                id = (this.tvFolder.SelectedNode.Tag as DataRow)[BaseOrganizeEntity.FieldId].ToString();
            }
            else
            {
                id = this.tvFolder.SelectedNode.Tag.ToString();
            }
            FrmFolderEdit FrmFolderEdit = new FrmFolderEdit(id);

            if (FrmFolderEdit.ShowDialog(this) == DialogResult.OK)
            {
                this.Changed    = true;
                this.FormLoaded = false;
                // 绑定屏幕数据
                this.FormOnLoad();
                this.FormLoaded = true;
            }
        }
예제 #2
0
        /// <summary>
        /// 编辑模块   CheckInputSelectOne
        /// </summary>
        private void EditGrid()
        {
            //if (BaseInterfaceLogic.CheckInputSelectOne(this.DTFolderList, "colSelected"))
            //{
            string        id            = BaseInterfaceLogic.GetDataGridViewEntityId(this.grdFolder, BaseModuleEntity.FieldId);
            FrmFolderEdit FrmFolderEdit = new FrmFolderEdit(id);

            if (FrmFolderEdit.ShowDialog(this) == DialogResult.OK)
            {
                this.Changed    = true;
                this.FormLoaded = false;
                // 绑定屏幕数据
                this.FormOnLoad();
                this.FormLoaded = true;
            }
            //}
        }