//以下为方法 public TemplateColumnRule ColumnRule(string columnName) { TemplateColumnRule aColumnRule = TemplateSheetDbTable.ColumnRule(columnName); if (aColumnRule == null || string.IsNullOrEmpty(aColumnRule.FsqField)) { aColumnRule = null; } return(aColumnRule); }
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); }
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); }