Esempio n. 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;
                        }
                    }
                }
            }
        }
        void btv_AfterExpand(object sender, TreeViewEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            if (_sParamType == "MET" && dcValue.ContextId == Definition.DynamicCondition_Search_key.FAB)
            {
                for (int i = 0; i < e.Node.Nodes.Count; i++)
                {
                    BTreeNode btn = (BTreeNode)e.Node.Nodes[i];

                    btn.Nodes.Clear();
                    btn.IsVisibleCheckBox = true;
                    btn.IsVisibleNodeType = true;
                }
            }
            else if (_sParamType != "MET" && dcValue.ContextId == Definition.DynamicCondition_Search_key.LINE)
            {
                for (int i = 0; i < e.Node.Nodes.Count; i++)
                {
                    BTreeNode btn = (BTreeNode)e.Node.Nodes[i];

                    btn.Nodes.Clear();
                    btn.IsVisibleCheckBox = true;
                    btn.IsVisibleNodeType = true;
                }
            }
        }
Esempio n. 3
0
        public void AddRootNode(TreeNode node)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)node))
            {
                node.Nodes.Clear();
            }

            TreeNode tnCurrent = node;

            _treeNode = node;

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(node);
            string        value   = string.Empty;

            if (this.UseDefaultCondition.Equals(Definition.YES))
            {
                value = dcValue.Value;//_sProductRawid;
            }
            else
            {
                value = dcValue.Value + "_ROOT";
            }

            BTreeNode btn = TreeDCUtil.CreateBTreeNode(Definition.DynamicCondition_Search_key.RECIPE_TYPE, value, "RECIPES");

            btn.IsVisibleCheckBox = false;
            btn.IsFolder          = true;
            btn.IsVisibleNodeType = true;
            btn.Nodes.Add(BTreeView.CreateDummyNode());

            tnCurrent.Nodes.Add(btn);
        }
        void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

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

                _sParamTypeCD = dcValue.Value;
                XSPCModelContextTree spcModelTree = new XSPCModelContextTree(_btvCondition);
                spcModelTree.LineRawid      = _sLineRawid;
                spcModelTree.AreaRawid      = _sAreaRawid;
                spcModelTree.ModelRawID     = _sParamTypeCD;
                spcModelTree.IsShowCheck    = true;
                spcModelTree.RecipeTypeCode = RecipeType.NONE;
                spcModelTree.ParamTypeCode  = ParameterType.NONE;
                spcModelTree.IsLastNode     = true;
                spcModelTree.AddRootNode(e.Node);
            }
        }
Esempio n. 5
0
        void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node);

            if (dcValue == null)
            {
                return;
            }


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

                e.Node.Nodes.Clear();

                _sOperationID = dcValue.Value;

                XSPCParamTreeControl spcParamType = new XSPCParamTreeControl();
                spcParamType.SetParentValue(_llstParent);
            }
        }
Esempio n. 6
0
        //added end SPC-915

        void AddChildNodes(BTreeNode node)
        {
            DCValueOfTree dcvalue = TreeDCUtil.GetDCValue(node);

            string[] paramAlias = null;

            if (isATT)
            {
                paramAlias = ws.GetATTParamListHavingSPCModel(sLineRawID, sAreaRawID, sEQPModel, dcvalue.Value);
            }
            else
            {
                paramAlias = ws.GetParamListHavingSPCModel(sLineRawID, sAreaRawID, sEQPModel, dcvalue.Value);
            }

            if (paramAlias == null)
            {
                return;
            }

            foreach (string param in paramAlias)
            {
                node.Nodes.Add(TreeDCUtil.CreateBTreeNode(Definition.DynamicCondition_Search_key.PARAM_ALIAS, param, param));
            }
        }
Esempio n. 7
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);
            }
        }
Esempio n. 8
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);
                }
            }
        }
Esempio n. 9
0
        public void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node);

            if (dcValue == null)
            {
                return;
            }
        }
Esempio n. 10
0
        private void MakeWhereLinkedList(LinkedList llstWhere, TreeNode node)
        {
            TreeNode current = node;

            while (current != null)
            {
                ConditionLevel currentLevel = visibleLevel.Keys[current.Level];

                llstWhere.Add(GetWhereKey(currentLevel), TreeDCUtil.GetDCValue(current).Value);

                current = current.Parent;
            }
        }
Esempio n. 11
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);
            }
        }
Esempio n. 12
0
        void Tree_RefreshNode(object sender, RefreshNodeEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.TargetNode);

            if (dcValue == null)
            {
                return;
            }

            if (dcValue.ContextId.Contains(Definition.DynamicCondition_Search_key.MODULE))
            {
                Tree_BeforeExpand(null, new TreeViewCancelEventArgs(e.TargetNode, false, TreeViewAction.Expand));
            }
        }
Esempio n. 13
0
        void Tree_RefreshNode(object sender, RefreshNodeEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.TargetNode);

            if (dcValue == null)
            {
                return;
            }

            if (dcValue.ContextId == Definition.DynamicCondition_Condition_key.TRACE_PARAM_TYPE)
            {
                Tree_BeforeExpand(null, new TreeViewCancelEventArgs(e.TargetNode, false, TreeViewAction.Expand));
            }
        }
        void btv_AfterExpand(object sender, TreeViewEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            if (this._sSPCModelLevel.Equals(Definition.CONDITION_KEY_EQP_MODEL))
            {
                if (dcValue.ContextId == Definition.CONDITION_SEARCH_KEY_AREA)
                {
                    for (int i = 0; i < e.Node.Nodes.Count; i++)
                    {
                        BTreeNode btn = (BTreeNode)e.Node.Nodes[i];

                        btn.Nodes.Clear();
                        btn.IsVisibleCheckBox = true;
                        btn.IsVisibleNodeType = true;
                    }
                }
                else if (this._btvCondition.CheckCountType == BTreeView.CheckCountTypes.Multi &&
                         dcValue.ContextId == Definition.CONDITION_SEARCH_KEY_LINE)
                {
                    for (int i = 0; i < e.Node.Nodes.Count; i++)
                    {
                        BTreeNode btn = (BTreeNode)e.Node.Nodes[i];

                        btn.IsVisibleCheckBox = true;
                        btn.IsVisibleNodeType = true;
                    }
                }
            }
            else
            {
                if (dcValue.ContextId == Definition.CONDITION_SEARCH_KEY_LINE)
                {
                    for (int i = 0; i < e.Node.Nodes.Count; i++)
                    {
                        BTreeNode btn = (BTreeNode)e.Node.Nodes[i];

                        btn.Nodes.Clear();
                        btn.IsVisibleCheckBox = true;
                        btn.IsVisibleNodeType = true;
                    }
                }
            }
        }
Esempio n. 15
0
        void Tree_RefreshNode(object sender, RefreshNodeEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.TargetNode);

            if (dcValue == null)
            {
                return;
            }

            if (dcValue.ContextId == Definition.CONDITION_SEARCH_KEY_EQP)
            {
                e.TargetNode.Nodes.Clear();
                Tree_BeforeExpand(null, new TreeViewCancelEventArgs(e.TargetNode, false, TreeViewAction.Expand));
            }
        }
Esempio n. 16
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);
                }
            }
        }
Esempio n. 17
0
        public void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

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

                e.Node.Nodes.Clear();
            }
        }
Esempio n. 18
0
        void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            if (this._sSPCModelLevel.Equals(Definition.CONDITION_KEY_EQP_MODEL))
            {
                DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node);
                if (dcValue == null)
                {
                    return;
                }

                XEQPModelTree eqpModelTree = new XEQPModelTree(_btvCondition);
                eqpModelTree.LineRawid      = _sLineRawid;
                eqpModelTree.AreaRawid      = _sAreaRawid;
                eqpModelTree.IsShowCheck    = false;
                eqpModelTree.IsSPCModelTree = true;

                eqpModelTree.Tree_BeforeExpand(sender, e);
            }
        }
Esempio n. 19
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);
                //}
            }
        }
Esempio n. 20
0
        public void AddRootNode(TreeNode node)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)node))
            {
                node.Nodes.Clear();
            }

            TreeNode tnCurrent = node;

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(node);

            BTreeNode btn = TreeDCUtil.CreateBTreeNode(Definition.DynamicCondition_Search_key.SPEC_GROUP_TYPE, dcValue.Value, "SPEC GROUPS");

            btn.IsVisibleCheckBox = false;
            btn.IsFolder          = true;
            btn.IsVisibleNodeType = true;
            btn.Nodes.Add(BTreeView.CreateDummyNode());

            tnCurrent.Nodes.Add(btn);
        }
Esempio n. 21
0
        void btv_AfterExpand(object sender, TreeViewEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            if (dcValue.ContextId == Definition.CONDITION_SEARCH_KEY_LINE)
            {
                for (int i = 0; i < e.Node.Nodes.Count; i++)
                {
                    BTreeNode btn = (BTreeNode)e.Node.Nodes[i];

                    btn.Nodes.Clear();
                    btn.IsVisibleCheckBox = true;
                    btn.IsVisibleNodeType = true;
                }
            }
        }
Esempio n. 22
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);
            }
        }
Esempio n. 23
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.EQP_ID)
            {
                if (tnCurrent.Nodes.Count > 0)
                {
                    return;
                }

                XDcpTree dcpTree = new XDcpTree(this.XTreeView);

                dcpTree.EqpRawid             = dcValue.Value;
                dcpTree.IsShowCheckModule    = this.IsShowCheckModule;
                dcpTree.IsShowCheckProduct   = this.IsShowCheckProduct;
                dcpTree.IsShowCheckRecipe    = this.IsShowCheckRecipe;
                dcpTree.ParamTypeCode        = this.ParamTypeCode;
                dcpTree.IsLastNodeModule     = this.IsLastNodeModule;
                dcpTree.IsCheckParamType     = this.IsCheckParamType;
                dcpTree.IsShowRecipeWildcard = this.IsShowRecipeWildcard;

                dcpTree.AddRootNode(e.Node);
            }
        }
Esempio n. 24
0
        public void AddRootNode(TreeNode node)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)node))
            {
                node.Nodes.Clear();
            }

            TreeNode tnCurrent = node;

            _treeNode = node;

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(node);

            if (tnCurrent.Nodes.Count <= 0)
            {
                AddProductNode(tnCurrent, this.AreaRawid, this.AreaRawid);
            }

            if (tnCurrent.Nodes.Count > 0)
            {
                return;
            }
        }
Esempio n. 25
0
        public void AddSearchTypeProductsRootNode(TreeNode node, string _AreaRawid)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)node))
            {
                node.Nodes.Clear();
            }

            TreeNode tnCurrent = node;

            _treeNode = node;

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(node);

            if (tnCurrent.Nodes.Count <= 0)
            {
                AddEQPModelSearchTypeProductsNode(tnCurrent, _AreaRawid);
            }

            if (tnCurrent.Nodes.Count > 0)
            {
                return;
            }
        }
Esempio n. 26
0
        public void AddRootNode(TreeNode node)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)node))
            {
                node.Nodes.Clear();
            }

            TreeNode tnCurrent = node;

            _treeNode = node;

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(node);

            if (tnCurrent.Nodes.Count <= 0)
            {
                AddSPCModelContextNode(tnCurrent);
            }

            if (tnCurrent.Nodes.Count > 0)
            {
                return;
            }
        }
Esempio n. 27
0
        void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node);

            if (dcValue == null)
            {
                return;
            }


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

                e.Node.Nodes.Clear();


                XSPCParamNameTree paramNameTree = new XSPCParamNameTree(_btvCondition);
                paramNameTree.EqpRawid           = null;
                paramNameTree.EqpID              = null;
                paramNameTree.LineRawid          = _sLineRawid;
                paramNameTree.AreaRawid          = _sAreaRawid;
                paramNameTree.OperationID        = _sOperationID;
                paramNameTree.ParamType          = dcValue.Value;
                paramNameTree.IsShowCheck        = true;
                paramNameTree.RecipeTypeCode     = RecipeType.NONE;
                paramNameTree.ParamTypeCode      = ParameterType.NONE;
                paramNameTree.SearchTypeCode     = _sSearchTypeCode;
                paramNameTree.IsLastNode         = true;
                paramNameTree.IsShowCheckEQP     = false;
                paramNameTree.IsShowCheckProduct = false;
                paramNameTree.AddRootNode(e.Node);
            }
        }
Esempio n. 28
0
        public void AddRootNode(TreeNode node)
        {
            if (BTreeView.IsOnlyDummyNode((BTreeNode)node))
            {
                node.Nodes.Clear();
            }

            TreeNode tnCurrent = node;

            _treeNode  = node;
            _TreeLevel = node.Level;

            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(node);

            if (tnCurrent.Nodes.Count <= 0)
            {
                AddModuleNode(tnCurrent, dcValue.Value);
            }

            if (tnCurrent.Nodes.Count > 0)
            {
                return;
            }
        }
Esempio n. 29
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);
            }
            //}
        }
Esempio n. 30
0
        void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node); // TreeNode에서 DCValueOfTree값을 추출.

            if (dcValue == null)
            {
                return;
            }

            if (dcValue.ContextId == Definition.DynamicCondition_Search_key.EQP_ID)
            {
                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();

                        _sEqpRawid = dcValue.Value;

                        XDcpTree dcpTree = new XDcpTree(_btvCondition);

                        dcpTree.EqpRawid           = dcValue.Value;
                        dcpTree.IsShowCheck        = false;
                        dcpTree.IsShowCheckProduct = false;
                        dcpTree.IsCheckParamType   = false;
                        dcpTree.RecipeTypeCode     = RecipeType.NONE;
                        dcpTree.ParamTypeCode      = ParameterType.TRACE;

                        dcpTree.AddRootNode(e.Node);
                    }
                }
                else
                {
                    if (e.Node.Nodes.Count > 0)
                    {
                        return;
                    }

                    e.Node.Nodes.Clear();

                    _sEqpRawid = dcValue.Value;

                    XModuleTree moduleTree = new XModuleTree(_btvCondition);

                    moduleTree.EqpRawid           = dcValue.Value;
                    moduleTree.IsShowCheck        = false;
                    moduleTree.IsShowCheckProduct = false;
                    moduleTree.IsCheckParamType   = false;
                    moduleTree.RecipeTypeCode     = RecipeType.NONE;
                    moduleTree.ParamTypeCode      = ParameterType.TRACE;

                    moduleTree.AddRootNode(e.Node);
                }
            }
            else if (dcValue.ContextId == Definition.DynamicCondition_Search_key.DCP_ID)
            {
                XDcpTree dcpTree = new XDcpTree(_btvCondition);

                _sDcpRawid = dcValue.Value;

                dcpTree.EqpRawid           = _sEqpRawid;
                dcpTree.IsShowCheck        = false;
                dcpTree.IsShowCheckProduct = false;
                dcpTree.IsCheckParamType   = false;
                dcpTree.RecipeTypeCode     = RecipeType.NONE;
                dcpTree.ParamTypeCode      = ParameterType.TRACE;

                dcpTree.Tree_BeforeExpand(sender, e);
            }
            else if (dcValue.ContextId.Contains(Definition.DynamicCondition_Search_key.MODULE))
            {
                XModuleTree moduleTree = new XModuleTree(_btvCondition);
                moduleTree.EqpRawid           = _sEqpRawid;
                moduleTree.DcpRawid           = _sDcpRawid;
                moduleTree.IsShowCheckProduct = false;
                moduleTree.IsCheckParamType   = false;
                moduleTree.RecipeTypeCode     = RecipeType.NONE;
                moduleTree.ParamTypeCode      = ParameterType.TRACE;

                moduleTree.Tree_BeforeExpand(sender, e);
            }
            else if (dcValue.ContextId == Definition.DynamicCondition_Search_key.TRACE_PARAM_TYPE || dcValue.ContextId == Definition.DynamicCondition_Search_key.PARAM)
            {
                XTraceParamTree traceTree = new XTraceParamTree(_btvCondition);

                //traceTree.ModuleRawid = dcValue.Value;
                traceTree.DcpRawid         = _sDcpRawid;
                traceTree.IsLastNode       = true;
                traceTree.IsShowCheck      = true;
                traceTree.IsCheckParamType = false;

                traceTree.Tree_BeforeExpand(sender, e);
            }
        }