Пример #1
0
        /// <summary>
        /// 初始化时限规则数据集
        /// by xlb 2013-01-05
        /// </summary>
        private void InitDataRule()
        {
            try
            {
                Dictionary <string, QCCondition>  dictQCCondition  = QCCondition.GetAllQCCondition();
                Dictionary <string, RuleCategory> dictRuleCategory = RuleCategory.GetAllRuleCategory();
                IList <QCRule> listRule = QCRule.GetRuleList(dictQCCondition, dictRuleCategory);

                gridControlRule.DataSource = listRule;
                gridViewRule.ExpandAllGroups();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #2
0
 /// <summary>
 /// 初始化数据
 /// </summary>
 private void InitData()
 {
     try
     {
         m_DictQCCondition = QCCondition.GetAllQCCondition();
         m_DictQCCategory  = RuleCategory.GetAllRuleCategory();
         //获得所有QCRule,包括有效和无效
         m_DictQCRuleAll = QCRule.GetAllQCRule(m_DictQCCondition, m_DictQCCategory);
         m_ListQCRecord  = QCRecord.GetAllQCRecord(m_DictQCRuleAll, m_DictQCCondition, m_DictQCCategory);
         //获得所有有效的QCRule
         m_DictQCRuleValid = QCRule.GetAllQCRuleValid(m_DictQCCondition, m_DictQCCategory);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }