public void SetParentValue(LinkedList llParentValue)
        {
            _btvCondition.Nodes.Clear();

            _llstParent = llParentValue;

            if (_llstParent.Contains(Definition.DynamicCondition_Search_key.AREA))
            {
                DataTable dtLine = (DataTable)_llstParent[Definition.DynamicCondition_Search_key.LINE];
                _sLineRawid = DCUtil.GetValueData(dtLine);

                DataTable dtArea = (DataTable)_llstParent[Definition.DynamicCondition_Search_key.AREA];
                _sAreaRawid = DCUtil.GetValueData(dtArea);
            }
            else if (_llstParent.Contains(Definition.DynamicCondition_Search_key.OPERATION))
            {
                DataTable dtOperationID = (DataTable)_llstParent[Definition.DynamicCondition_Search_key.OPERATION];
                _sOperationID = DCUtil.GetValueData(dtOperationID);
            }
            else if (_llstParent.Contains(Definition.DynamicCondition_Search_key.PARAM_TYPE))
            {
                DataTable dtParamType = (DataTable)_llstParent[Definition.DynamicCondition_Search_key.PARAM_TYPE];
                _sParamTypeCode = DCUtil.GetValueData(dtParamType);
            }
            else if (_llstParent.Contains(Definition.DynamicCondition_Search_key.PARAM))
            {
                DataTable dtParam = (DataTable)_llstParent[Definition.DynamicCondition_Search_key.PARAM];
                _sParamName = DCUtil.GetValueData(dtParam);
            }
            else if (_llstParent.Contains(Definition.DynamicCondition_Search_key.CATEGORY))
            {
                DataTable dtCategory = (DataTable)_llstParent[Definition.DynamicCondition_Search_key.CATEGORY];
                _sSearchTypeCode = DCUtil.GetValueData(dtCategory);

                switch (_sSearchTypeCode)
                {
                case "MH":

                    XEQPTree epqTree = new XEQPTree(_btvCondition);
                    epqTree.LineRawid   = _sLineRawid;
                    epqTree.AreaRawid   = _sAreaRawid;
                    epqTree.OperationID = _sOperationID;
                    epqTree.IsShowCheck = true;
                    epqTree.IsLastNode  = false;
                    epqTree.AddRootNode();

                    break;

                case "PD":

                    XSPCProductTree productTree = new XSPCProductTree(_btvCondition);
                    productTree.LineRawid      = _sLineRawid;
                    productTree.AreaRawid      = _sAreaRawid;
                    productTree.OperationID    = _sOperationID;
                    productTree.IsShowCheck    = true;
                    productTree.IsShowCheckEQP = true;
                    productTree.SearchTypeCode = _sSearchTypeCode;
                    productTree.AddSearchTypeProductsNode();
                    break;
                }
            }


            _btvCondition.CheckCountType = BTreeView.CheckCountTypes.Single;
        }
        void Tree_BeforeExpand(object sender, TreeViewCancelEventArgs e)
        {
            DCValueOfTree dcValue = TreeDCUtil.GetDCValue(e.Node);

            if (dcValue == null)
            {
                return;
            }

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

                e.Node.Nodes.Clear();

                XEQPTree epqTree = new XEQPTree(_btvCondition);
                epqTree.LineRawid     = _sLineRawid;
                epqTree.AreaRawid     = _sAreaRawid;
                epqTree.OperationID   = _sOperationID;
                epqTree.EqpModelRawid = dcValue.Value;
                epqTree.IsShowCheck   = true;
                epqTree.IsLastNode    = false;
                epqTree.AddRootNode(e.Node);
            }
            else if (dcValue.ContextId == Definition.DynamicCondition_Search_key.EQP_ID)
            {
                if (e.Node.Nodes.Count > 0)
                {
                    return;
                }

                e.Node.Nodes.Clear();

                XSPCProductTree productTree = new XSPCProductTree(_btvCondition);
                productTree.LineRawid      = _sLineRawid;
                productTree.AreaRawid      = _sAreaRawid;
                productTree.EqpID          = dcValue.Value;
                productTree.OperationID    = _sOperationID;
                productTree.IsShowCheck    = true;
                productTree.IsShowCheckEQP = true;
                productTree.IsLastNode     = true;
                productTree.AddRootNode(e.Node);
            }
            else if (dcValue.ContextId == Definition.DynamicCondition_Search_key.PRODUCTS)
            {
                if (e.Node.Nodes.Count > 0)
                {
                    return;
                }

                e.Node.Nodes.Clear();

                XEQPTree epqTree = new XEQPTree(_btvCondition);
                epqTree.LineRawid   = _sLineRawid;
                epqTree.AreaRawid   = _sAreaRawid;
                epqTree.OperationID = _sOperationID;
                epqTree.ProductID   = dcValue.Value;
                epqTree.IsShowCheck = true;
                epqTree.IsLastNode  = true;
                epqTree.AddRootNode(e.Node);
            }
        }