Exemplo n.º 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;
            }
        }
Exemplo n.º 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;
            }
            //}
        }
Exemplo n.º 3
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;
     }
     //}
 }
Exemplo n.º 4
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;
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// 编辑树节点
 /// </summary>
 private void EditTree()
 {
     if (this.tvFolder.SelectedNode == null)
     {
         return;
     }
     string id = (this.tvFolder.SelectedNode.Tag as DataRow)[BaseModuleEntity.FieldId].ToString();
     FrmFolderEdit frmFolderEdit = new FrmFolderEdit(id);
     if (frmFolderEdit.ShowDialog(this) == DialogResult.OK)
     {
         this.FormLoaded = false;
         // 绑定屏幕数据
         this.FormOnLoad();
         this.FormLoaded = true;
     }
 }