예제 #1
0
        void _btreeComboEQP_SelectionCommitted(object sender, EventArgs e)
        {
            TreeNodeCollection tnc = this._btreeComboEQP.TreeView.Nodes;

            this.FindCheckedNode(tnc);

            DCValueOfTree        dvtModel         = TreeDCUtil.GetDCValue(this._tnCheckedComboNode);
            List <DCValueOfTree> lstSelectedValue = TreeDCUtil.GetDCValueOfAllParent(this._tnCheckedComboNode);

            if (_sSPCModelLevel.Equals(BISTel.eSPC.Common.Definition.CONDITION_KEY_EQP_MODEL))
            {
                sEQPModel = dvtModel.Value;

                if (lstSelectedValue != null)
                {
                    string contextID = "";

                    for (int i = 0; i < lstSelectedValue.Count; i++)
                    {
                        contextID = lstSelectedValue[i].ContextId;

                        switch (contextID)
                        {
                        case "ESPC_AREA":
                            sAreaRawID = lstSelectedValue[i].Value;
                            break;

                        case "ESPC_LINE":
                            sLocationRawID = lstSelectedValue[i].Value;
                            break;

                        default: break;
                        }
                    }
                }
            }
            else
            {
                sAreaRawID = dvtModel.Value;

                if (lstSelectedValue != null)
                {
                    string contextID = "";

                    for (int i = 0; i < lstSelectedValue.Count; i++)
                    {
                        contextID = lstSelectedValue[i].ContextId;

                        switch (contextID)
                        {
                        case "ESPC_LINE":
                            sLocationRawID = lstSelectedValue[i].Value;
                            break;

                        default: break;
                        }
                    }
                }
            }
        }
예제 #2
0
        public void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)e.Node))
            {
                e.Node.Nodes.Clear();
            }

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            TreeNode tnCurrent = e.Node;

            System.Collections.Generic.List <DCValueOfTree> lstPathValue = TreeDCUtil.GetDCValueOfAllParent(e.Node); // 상위 노드의 선택된 값들을 가져온다.
            for (int i = 0; i < e.Node.Level; i++)
            {
                if (lstPathValue[i].ContextId.Contains(Definition.DynamicCondition_Search_key.MODULE))
                {
                    _sModuleRawid = lstPathValue[i].Value;
                    break;
                }
            }

            for (int i = 0; i < e.Node.Level; i++)
            {
                if (lstPathValue[i].ContextId.Contains(Definition.DynamicCondition_Search_key.DCP_ID))
                {
                    this.DcpID = lstPathValue[i].Value;
                    break;
                }
            }

            if (dcValue.ContextId == Definition.DynamicCondition_Search_key.TRACE_SUM_PARAM_TYPE)
            {
                if (tnCurrent.Nodes.Count > 0)
                {
                    return;
                }

                tnCurrent.Nodes.Clear();

                AddSummaryParamNode(tnCurrent, dcValue.Value, _sModuleRawid);
            }
            else if (dcValue.ContextId == Definition.DynamicCondition_Search_key.EVENT_SUM_PARAM_TYPE)
            {
                if (tnCurrent.Nodes.Count > 0)
                {
                    return;
                }

                tnCurrent.Nodes.Clear();

                AddEventParamNode(tnCurrent, dcValue.Value, _sModuleRawid);
            }
        }
예제 #3
0
        public void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)e.Node))
            {
                e.Node.Nodes.Clear();
            }

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            TreeNode tnCurrent = e.Node;

            System.Collections.Generic.List <DCValueOfTree> lstPathValue = TreeDCUtil.GetDCValueOfAllParent(e.Node); // 상위 노드의 선택된 값들을 가져온다.
            for (int i = 0; i < e.Node.Level; i++)
            {
                if (lstPathValue[i].ContextId.Contains(Definition.DynamicCondition_Search_key.MODULE))
                {
                    _sModuleRawid = lstPathValue[i].Value;
                    break;
                }
            }

            if (dcValue.ContextId == Definition.DynamicCondition_Search_key.RECIPE_TYPE)
            {
                if (e.Node.Nodes.Count > 0)
                {
                    return;
                }

                e.Node.Nodes.Clear();

                AddRecipeNode(tnCurrent, dcValue.Value, _sModuleRawid);
            }
            else if (dcValue.ContextId == Definition.DynamicCondition_Search_key.RECIPE)
            {
                if (e.Node.Nodes.Count > 0)
                {
                    return;
                }

                e.Node.Nodes.Clear();

                if (_bStepNode)
                {
                    XStepTree stepTree = new XStepTree(this.XTreeView);

                    stepTree.ModuleRawid = _sModuleRawid;
                    stepTree.RecipeRawid = dcValue.Value;
                    stepTree.IsExistAll  = _bExistAll;

                    stepTree.AddRootNode(e.Node);
                }
            }
        }
예제 #4
0
        public void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)e.Node))
            {
                e.Node.Nodes.Clear();
            }

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            TreeNode tnCurrent = e.Node;

            if (dcValue.ContextId == Definition.DynamicCondition_Search_key.DCP_ID)
            {
                if (e.Node.Nodes.Count > 0)
                {
                    return;
                }

                System.Collections.Generic.List <DCValueOfTree> lstPathValue = TreeDCUtil.GetDCValueOfAllParent(e.Node); // 상위 노드의 선택된 값들을 가져온다.
                for (int i = 0; i < e.Node.Level; i++)
                {
                    if (lstPathValue[i].ContextId == Definition.DynamicCondition_Search_key.EQP_ID)
                    {
                        this.EqpID = lstPathValue[i].Value;
                        break;
                    }
                }

                XModuleTree moduleTree = new XModuleTree(this.XTreeView);//_btvTreeView);

                moduleTree.LineRawid            = this.LineRawid;
                moduleTree.AreaRawid            = this.AreaRawid;
                moduleTree.EqpID                = this.EqpID;
                moduleTree.DcpID                = dcValue.Value;
                moduleTree.IsShowCheck          = this.IsShowCheckModule;
                moduleTree.IsShowCheckProduct   = this.IsShowCheckProduct;
                moduleTree.IsShowCheckRecipe    = this.IsShowCheckRecipe;
                moduleTree.IsCheckParamType     = this.IsCheckParamType;
                moduleTree.RecipeTypeCode       = this.RecipeTypeCode;
                moduleTree.ParamTypeCode        = this.ParamTypeCode;
                moduleTree.IsLastNode           = this.IsLastNodeModule;
                moduleTree.IsShowRecipeWildcard = this.IsShowRecipeWildcard;

                moduleTree.AddRootNode(e.Node);
            }
        }
예제 #5
0
        public void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)e.Node))
            {
                e.Node.Nodes.Clear();
            }

            //if (_treeNode.Level > e.Node.Level) return;

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            TreeNode tnCurrent = e.Node;

            System.Collections.Generic.List <DCValueOfTree> lstPathValue = TreeDCUtil.GetDCValueOfAllParent(e.Node); // 상위 노드의 선택된 값들을 가져온다.
            for (int i = 0; i < e.Node.Level; i++)
            {
                if (lstPathValue[i].ContextId.Contains(Definition.DynamicCondition_Search_key.MODULE))
                {
                    this.ModuleRawid = lstPathValue[i].Value;
                    break;
                }
            }

            if (dcValue.ContextId == Definition.DynamicCondition_Condition_key.TRACE_PARAM_TYPE)
            {
                if (tnCurrent.Nodes.Count <= 0)
                {
                    //AddGroupNode(tnCurrent, "-1", this.ModuleRawid);
                    AddParamNode(tnCurrent, "-1", this.ModuleRawid);
                }
            }
            else if (dcValue.ContextId.Contains(Definition.DynamicCondition_Condition_key.GROUP))
            {
                if (tnCurrent.Nodes.Count <= 0)
                {
                    //AddGroupNode(tnCurrent, dcValue.Value, this.ModuleRawid);
                    AddParamNode(tnCurrent, dcValue.Value, this.ModuleRawid);
                }
            }
        }
예제 #6
0
        public void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)e.Node))
            {
                e.Node.Nodes.Clear();
            }

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            TreeNode tnCurrent = e.Node;



            if (dcValue.ContextId == Definition.DynamicCondition_Search_key.SPEC_GROUP_TYPE)
            {
                System.Collections.Generic.List <DCValueOfTree> lstPathValue = TreeDCUtil.GetDCValueOfAllParent(e.Node); // 상위 노드의 선택된 값들을 가져온다.
                for (int i = 0; i < e.Node.Level; i++)
                {
                    if (lstPathValue[i].ContextId.Contains(Definition.DynamicCondition_Search_key.MODULE))
                    {
                        _sModuleRawid = lstPathValue[i].Value;
                        break;
                    }
                }

                if (tnCurrent.Nodes.Count > 0)
                {
                    return;
                }

                //if (dcValue.Value == _sRecipeRawid)
                //{
                //    tnCurrent.Nodes.Clear();
                AddSpecGroupNode(tnCurrent, dcValue.Value, _sModuleRawid);
                //}
            }
        }
예제 #7
0
        void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            if (dcValue.ContextId == Definition.CONDITION_SEARCH_KEY_AREA)
            {
                e.Node.Nodes.Clear();

                string sLineRawid = string.Empty;
                string sAreaRawid = string.Empty;

                System.Collections.Generic.List <DCValueOfTree> lstPathValue = TreeDCUtil.GetDCValueOfAllParent(e.Node); // 상위 노드의 선택된 값들을 가져온다.
                for (int i = 0; i < e.Node.Level; i++)
                {
                    if (lstPathValue[i].ContextId.Contains(Definition.CONDITION_SEARCH_KEY_LINE))
                    {
                        sLineRawid = lstPathValue[i].Value;
                    }
                }


                XSPCModelTree spcModelTree = new XSPCModelTree(_btvCondition);

                //dcpTree.EqpID = dcValue.Value;
                spcModelTree.LineRawid = sLineRawid;
                spcModelTree.AreaRawid = dcValue.Value;

                spcModelTree.IsShowCheck    = true;
                spcModelTree.RecipeTypeCode = RecipeType.NONE;
                spcModelTree.ParamTypeCode  = ParameterType.NONE;
                spcModelTree.IsLastNode     = true;

                spcModelTree.AddRootNode(e.Node);
            }
        }
예제 #8
0
        void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            //if (this._sUseDefaultCondition.Equals(Definition.VARIABLE_Y))
            //{
            if (dcValue.ContextId == Definition.DynamicCondition_Search_key.EQP_ID)
            {
                if (e.Node.Nodes.Count > 0)
                {
                    return;
                }

                e.Node.Nodes.Clear();

                string sLineRawid = string.Empty;
                string sAreaRawid = string.Empty;
                string sEqpID     = string.Empty;

                System.Collections.Generic.List <DCValueOfTree> lstPathValue = TreeDCUtil.GetDCValueOfAllParent(e.Node); // 상위 노드의 선택된 값들을 가져온다.
                for (int i = 0; i < e.Node.Level; i++)
                {
                    if (lstPathValue[i].ContextId.Contains(Definition.DynamicCondition_Search_key.LINE))
                    {
                        sLineRawid = lstPathValue[i].Value;
                    }
                    else if (lstPathValue[i].ContextId.Contains(Definition.DynamicCondition_Search_key.AREA))
                    {
                        sAreaRawid = lstPathValue[i].Value;
                    }
                    else if (lstPathValue[i].ContextId.Contains(Definition.DynamicCondition_Search_key.EQP_ID))
                    {
                        sEqpID = lstPathValue[i].Value;
                    }
                }

                XDcpTree dcpTree = new XDcpTree(_btvCondition);
                dcpTree.EqpRawid  = dcValue.Value;
                dcpTree.EqpID     = dcValue.Value;
                dcpTree.LineRawid = sLineRawid;
                dcpTree.AreaRawid = sAreaRawid;

                dcpTree.IsShowCheck    = true;
                dcpTree.RecipeTypeCode = RecipeType.NONE;
                dcpTree.ParamTypeCode  = ParameterType.NONE;
                dcpTree.IsLastNode     = true;

                dcpTree.AddRootNode(e.Node);
            }

            if (dcValue.ContextId == Definition.DynamicCondition_Search_key.DCP_ID)
            {
                XDcpTree dcpTree = new XDcpTree(_btvCondition);

                dcpTree.EqpRawid = dcValue.Value;

                dcpTree.IsShowCheck    = true;
                dcpTree.RecipeTypeCode = RecipeType.NONE;
                dcpTree.ParamTypeCode  = ParameterType.NONE;
                dcpTree.IsLastNode     = true;

                dcpTree.Tree_BeforeExpand(sender, e);
            }
            //}
        }
예제 #9
0
        public void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)e.Node))
            {
                e.Node.Nodes.Clear();
            }

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            TreeNode tnCurrent = e.Node;

            System.Collections.Generic.List <DCValueOfTree> lstPathValue = TreeDCUtil.GetDCValueOfAllParent(e.Node); // 상위 노드의 선택된 값들을 가져온다.
            for (int i = 0; i < e.Node.Level; i++)
            {
                if (lstPathValue[i].ContextId.Contains(Definition.DynamicCondition_Search_key.MODULE))
                {
                    _sModuleRawid = lstPathValue[i].Value;
                    break;
                }
            }

            if (dcValue.ContextId == Definition.DynamicCondition_Search_key.PRODUCT_TYPE)
            {
                if (e.Node.Nodes.Count > 0)
                {
                    return;
                }

                e.Node.Nodes.Clear();

                AddProductNode(tnCurrent, dcValue.Value, _sModuleRawid);
            }
            else if (dcValue.ContextId == Definition.DynamicCondition_Search_key.PRODUCT)
            {
                if (e.Node.Nodes.Count > 0)
                {
                    return;
                }

                e.Node.Nodes.Clear();

                XRecipeTree recipeTree = new XRecipeTree(this.XTreeView);

                recipeTree.ModuleRawid = _sModuleRawid;
                recipeTree.IsExistAll  = _bExistAll;
                recipeTree.IsShowCheck = this.IsShowCheckRecipe;

                if (this.RecipeTypeCode == RecipeType.STEP)
                {
                    recipeTree.IsStepNode      = true;
                    recipeTree.IsMvaModelNode  = false;
                    recipeTree.IsSpecGroupNode = false;
                }
                else if (this.RecipeTypeCode == RecipeType.SPEC_GROUP)
                {
                    recipeTree.IsStepNode      = false;
                    recipeTree.IsMvaModelNode  = false;
                    recipeTree.IsSpecGroupNode = true;
                }
                else if (this.RecipeTypeCode == RecipeType.MVA_MODEL)
                {
                    recipeTree.IsStepNode      = true;
                    recipeTree.IsMvaModelNode  = true;
                    recipeTree.IsSpecGroupNode = false;
                }
                else if (this.RecipeTypeCode == RecipeType.ALL)
                {
                    recipeTree.IsStepNode      = true;
                    recipeTree.IsMvaModelNode  = false;
                    recipeTree.IsSpecGroupNode = true;
                }
                else //RECIPE인 경우
                {
                    recipeTree.IsStepNode      = false;
                    recipeTree.IsMvaModelNode  = false;
                    recipeTree.IsSpecGroupNode = false;
                }

                recipeTree.AddRootNode(e.Node);
            }
        }