HYPDM.WinUI.WorkFlow.Flow.StandardFlow.StandardFlow_Click C# (CSharp) Method

StandardFlow_Click() private method

private StandardFlow_Click ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
return void
        private void StandardFlow_Click(Object sender, EventArgs e)
        {
            WF_TEMPLATES_STEP step = (WF_TEMPLATES_STEP)((Button)sender).Tag;
            string stepID = ((Button)sender).Name.ToString();
            if (stepID == "")
            {
                return;
            }
            //  cMenu.Tag = stepID;
            cMenu.Tag = sender;
            // MessageBox.Show(cMenu.Tag.ToString());
            foreach (Control ctl in this.gpFlowDetail.Controls)
            {
                if (ctl.GetType().Name == "Button")
                {
                    ((Button)ctl).BackColor = System.Drawing.SystemColors.InactiveBorder;
                    ((Button)ctl).ContextMenuStrip = null;
                }
            }
            ((Button)sender).ContextMenuStrip = cMenu;
            ((Button)sender).BackColor = System.Drawing.Color.Red;

            //UserAndUserRoleForm frm = new UserAndUserRoleForm();
            //frm.ShowDialog();
            // WF_TEMPLATES_STEP step = WorkFlow.NewInstance.GetWFStepInfoByStepID(stepID);
            //stepID

            selUser(((Button)sender).Name.ToString());
            ((Button)sender).Text = "当前步骤:" + WorkFlow.NewInstance.GetWFStep(step.WFT_CURRENT_STEP_ID).COMBTEXT;
            //_wfService.GetWFStep(step.WFT_CURRENT_STEP_ID).COMBTEXT;
            //if (stbUser != null)
            //{

            //}
            //else
            //{
            //    stbUser = new StringBuilder();
            //}
            string strUser = getCurrentStepHandle(WfAppID, step.WFT_STEP_ID);
            ((Button)sender).Text += strUser.ToString();
        }