예제 #1
0
        //以下为方法
        public TemplateColumnRule ColumnRule(string columnName)
        {
            TemplateColumnRule aColumnRule = TemplateSheetDbTable.ColumnRule(columnName);

            if (aColumnRule == null ||
                string.IsNullOrEmpty(aColumnRule.FsqField))
            {
                aColumnRule = null;
            }
            return(aColumnRule);
        }
예제 #2
0
        public TemplateColumnRule FsqFieldRule(string fsqField)
        {
            TemplateColumnRule aColumnRule = null;

            if (ColumnRuleList != null && ColumnRuleList.Count > 0)
            {
                if (ColumnRuleList.Any(c => c.FsqField.ToLower() == fsqField.ToLower()))
                {
                    aColumnRule = ColumnRuleList.Single(c => c.FsqField.ToLower() == fsqField.ToLower());
                }
            }
            return(aColumnRule);
        }
예제 #3
0
        public TemplateColumnRule ColumnRule(string columnName)
        {
            TemplateColumnRule aColumnRule = null;

            if (ColumnRuleList != null && ColumnRuleList.Count > 0)
            {
                if (ColumnRuleList.Any(c => c.ColumnName.ToLower() == columnName.ToLower()))
                {
                    aColumnRule = ColumnRuleList.Single(c => c.ColumnName.ToLower() == columnName.ToLower());
                }
            }
            return(aColumnRule);
        }