Exemplo n.º 1
0
        /// <summary>
        /// 绑定公式
        /// </summary>
        private void BindFormula()
        {
            ProcessRuleBLL      bll    = new ProcessRuleBLL();
            IList <FormulaInfo> flList = bll.GetFormulaByGroupName(ddlProcessType.SelectedValue, ddlGroup.SelectedValue);

            if (flList != null && flList.Count > 0)
            {
                foreach (FormulaInfo info in flList)
                {
                    txtExpression.Text = info.Formula.Replace("*", "AND").Replace("+", "OR").Replace("-", "NOT");
                    break;
                }
            }
        }