Ejemplo n.º 1
0
        public FrmWorkFlowClass(string userId, string userName, string state, string infoId, BaseTreeNode node)
        {
            InitializeComponent();
            formState   = state;
            UserId      = userId;
            InfoId      = infoId;
            UserName    = userName;
            nowTreeNode = node;

            if (formState == WorkConst.STATE_ADD)
            {
                this.Text = "新建";
                if (nowTreeNode.NodeType == WorkConst.WORKFLOW_CLASS)//肯定点的是分类节点
                {
                    this.tbxFatherClassCaption.Text = nowTreeNode.Text;
                    this.tbxCllevel.Text            = Convert.ToString(nowTreeNode.Level + 1);
                }
            }
            else //肯定点的是流程节点
            {
                this.Text = "修改";
                getInfoById();
            }
        }
Ejemplo n.º 2
0
        public FrmAddWorkFlow(string userId, string userName, string state, string infoId, BaseTreeNode node)
        {
            InitializeComponent();
            formState   = state;
            UserId      = userId;
            UserName    = userName;
            nowTreeNode = node;
            if (formState == WorkConst.STATE_ADD)
            {
                this.Text = "新建";
                switch (nowTreeNode.NodeType)
                {
                case WorkConst.WORKFLOW_CLASS:
                    this.tbxClassCaption.Text = nowTreeNode.Text;
                    InfoId = infoId;
                    break;

                case WorkConst.WORKFLOW_FLOW:
                    this.tbxClassCaption.Text = nowTreeNode.Parent.Text;
                    InfoId = (nowTreeNode.Parent as BaseTreeNode).NodeId;
                    break;
                }
            }
            else //肯定点的是流程节点
            {
                this.Text = "修改";
                GetInfoById();
            }
        }