Ejemplo n.º 1
0
 private void delWftoolStripMenuItem3_Click(object sender, EventArgs e)
 {
     if (DesignerHelper.IsPower(UserId, (sender as ToolStripMenuItem).Tag.ToString()) == false)
     {
         return;
     }
     if (MessageBoxHelper.Show("是否删除流程[" + _nowTreeNode.Text + "]? 删除后不能恢复。") == DialogResult.Yes)
     {
         WorkFlowTreeNode.DeleteSelectWorkflowNode(_nowTreeNodeId);
         _nowTreeNode.Remove();
     }
 }
Ejemplo n.º 2
0
        private void delclassToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (DesignerHelper.IsPower(UserId, (sender as ToolStripMenuItem).Tag.ToString()) == false)
            {
                return;
            }
            if (_nowTreeNode.Nodes.Count > 0)
            {
                MessageBoxHelper.ShowWarningMsg("删除失败,流程分类下面有子分类或者流程不能删除!");
                return;
            }

            if (MessageBoxHelper.Show("是否删除分类[" + _nowTreeNode.Text + "]?删除后不能恢复。") == DialogResult.Yes)
            {
                WorkFlowClassTreeNode.DeleteSelectClassNode(_nowTreeNodeId);
                _nowTreeNode.Remove();
            }
        }