private void InitializeComboTree() { this.conditionComboTree1.CheckCountType = BTreeView.CheckCountTypes.Single; LinkedList llstCondition = new LinkedList(); if (this.GetType().FullName == "BISTel.eSPC.Condition.Tool.SPCDataExportCondition") { llstCondition.Add(Definition.CONDITION_KEY_CATEGORY, "SPC_MODEL_LEVEL"); this.spcDataExportConditionTree1.ISMET = false; } else if (this.GetType().FullName == "BISTel.eSPC.Condition.Tool.MET.SPCDataExportCondition") { llstCondition.Add(Definition.CONDITION_KEY_CATEGORY, "SPC_MET_MODEL_LEVEL"); this.spcDataExportConditionTree1.ISMET = true; } else if (this.GetType().FullName == "BISTel.eSPC.Condition.ATT.Tool.SPCDataExportCondition") { llstCondition.Add(Definition.CONDITION_KEY_CATEGORY, "SPC_ATT_MODEL_LEVEL"); this.spcDataExportConditionTree1.ISATT = true; } llstCondition.Add(Definition.CONDITION_KEY_USE_YN, "Y"); //llstCondition.Add(Definition.CONDITION_KEY_DEFAULT_COL, "Y"); DataSet ds = ws.GetCodeData(llstCondition.GetSerialData()); this.conditionComboTree1.AddVisibleLevel(ConditionLevel.SITE, false); this.conditionComboTree1.AddVisibleLevel(ConditionLevel.FAB, false); this.conditionComboTree1.AddVisibleLevel(ConditionLevel.LINE, false); if (ds != null && ds.Tables[0].Rows[0]["CODE"].ToString().ToUpper() == "AREA") { this.conditionComboTree1.Title = "AREA"; this.conditionComboTree1.AddVisibleLevel(ConditionLevel.AREA, true); } else { this.conditionComboTree1.Title = "EQP MODEL"; this.conditionComboTree1.AddVisibleLevel(ConditionLevel.AREA, false); this.conditionComboTree1.AddVisibleLevel(ConditionLevel.EQPMODEL, true); } }
private void InitializeTreeView() { this.spcDataExportConditionTree1.CheckCountType = BTreeView.CheckCountTypes.Multi; this.spcDataExportConditionTree1.Title = "SPC MODEL"; }