Beispiel #1
0
        public fmWorkFlowClass(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();
            }
        }
Beispiel #2
0
 public fmAddWorkFlow(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 = "新建";
         if (nowTreeNode.NodeType == WorkConst.WORKFLOW_CLASS)//点击的是分类节点
         {
             this.tbxClassCaption.Text = nowTreeNode.Text;
             InfoId = infoId;
             
         }
         else
             if (nowTreeNode.NodeType == WorkConst.WORKFLOW_FLOW)//点击的是流程节点
             {
                 this.tbxClassCaption.Text = nowTreeNode.Parent.Text;
                 InfoId = (nowTreeNode.Parent as BaseTreeNode).NodeId;
                 
             }
         
     }
     else //肯定点的是流程节点
     {
         this.Text = "修改";
         getInfoById();
     }
     
 }