private DataSet GetDataSet(ConditionLevel level, LinkedList llstData) { DataSet ds = null; switch (level) { case ConditionLevel.SITE: ds = ws.GetSiteForCondition(); break; case ConditionLevel.FAB: ds = ws.GetFabForCondition(llstData.GetSerialData()); break; case ConditionLevel.LINE: ds = ws.GetLineForCondition(llstData.GetSerialData()); break; case ConditionLevel.AREA: ds = ws.GetAreaForCondition(llstData.GetSerialData()); break; case ConditionLevel.EQPMODEL: ds = ws.GetEqpModelForCondition(llstData.GetSerialData()); break; //TODO } return(ds); }
public void AddVisibleLevel(ConditionLevel level, bool checkVisible) { if (visibleLevel.ContainsKey(level)) { visibleLevel.Remove(level); } visibleLevel.Add(level, checkVisible); }
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; } }
private void AddChildNodes(TreeNode node) { ConditionLevel currentLevel = visibleLevel.Keys[node.Level]; LinkedList llstWhere = new LinkedList(); MakeWhereLinkedList(llstWhere, node); currentLevel = GetNextLevel(currentLevel); string contextID = GetContextID(currentLevel); List <BTreeNode> childNodes = GetTreeNodeFromDataSet(contextID, GetDataSet(currentLevel, llstWhere)); while (currentLevel != visibleLevel.Keys[node.Level + 1]) { //TODO } AddChildNodesToNode(childNodes, (BTreeNode)node); }
private string GetWhereKey(ConditionLevel level) { switch (level) { case ConditionLevel.SITE: return(Definition.CONDITION_KEY_SITE); case ConditionLevel.FAB: return(Definition.CONDITION_KEY_FAB); case ConditionLevel.LINE: return(Definition.CONDITION_KEY_LINE_RAWID); case ConditionLevel.AREA: return(Definition.CONDITION_KEY_AREA_RAWID); //TODO } return(string.Empty); }
private string GetContextID(ConditionLevel level) { switch (level) { case ConditionLevel.SITE: return(Definition.DynamicCondition_Search_key.SITE); case ConditionLevel.FAB: return(Definition.DynamicCondition_Search_key.FAB); case ConditionLevel.LINE: return(Definition.DynamicCondition_Search_key.LINE); case ConditionLevel.AREA: return(Definition.DynamicCondition_Search_key.AREA); case ConditionLevel.EQPMODEL: return(Definition.DynamicCondition_Search_key.EQPMODEL); } return(Definition.DynamicCondition_Search_key.EQPMODEL); }
private ConditionLevel GetNextLevel(ConditionLevel level) { switch (level) { case ConditionLevel.SITE: return(ConditionLevel.FAB); case ConditionLevel.FAB: return(ConditionLevel.LINE); case ConditionLevel.LINE: return(ConditionLevel.AREA); case ConditionLevel.AREA: return(ConditionLevel.EQPMODEL); case ConditionLevel.EQPMODEL: return(ConditionLevel.EQPMODEL); } return(ConditionLevel.EQPMODEL); }
public static bool IsPossibleAccept(AsUserEntity _user, QuestData _questData, int _addLevel) { if (_questData.Condition.CanAccept() == false) return false; // 레벨 확인 List<ConditionLevel> listConditionLevel = _questData.Condition.GetCondition<ConditionLevel>(); ConditionLevel levelConditon = new ConditionLevel(); if (listConditionLevel.Count > 0) { int level = _user.GetProperty<int>(eComponentProperty.LEVEL) + _addLevel; levelConditon.CommonValue = level; if (!listConditionLevel[0].CheckAccept(levelConditon)) return false; } // 퀘스트 패스 확인 or bool bAcceptAnd = true; bool bAcceptOr = false; int nOrCount = 0; List<ConditionQuestPass> listQuestPass = _questData.Condition.GetCondition<ConditionQuestPass>(); if (listQuestPass.Count > 0) { foreach (ConditionQuestPass questPass in listQuestPass) { if (questPass.QuestPassType == QuestPassType.AND) bAcceptAnd &= ArkQuestmanager.instance.IsCompleteQuest(questPass.QuestID); else { bAcceptOr |= ArkQuestmanager.instance.IsCompleteQuest(questPass.QuestID); nOrCount++; } } if (nOrCount > 0) { if (bAcceptAnd == false) return false; if (bAcceptOr == false) return false; } else { if (bAcceptAnd == false) return false; } } return true; }