public static string GetSQLString <TC>(TC qc, string dicomString) where TC : MappingItem, IDicomMappingItem { string str = dicomString; if (str == null) { str = ""; } if (qc == null || !DHelper.IsStringLike(qc.DPath.VR)) { return(str); } if (str.Length < 1) { return(SQLMatchChar); } if (SQLMatchChar.Length > 0) { str = str.Replace(SQLMatchChar, "[" + SQLMatchChar + "]"); } if (DicomMatchChar.Length > 0) { str = str.Replace(DicomMatchChar, SQLMatchChar); } return(str); }
public void Refresh() { if (DHelper.IsStringLike(DPath.VR)) { Operator = QueryCriteriaOperator.Like; } SourceField = DicomMappingHelper.DPath2DataColumnName(DPath); }
private void Initialize() { Type = QueryCriteriaType.And; if (DHelper.IsStringLike(DPath.VR)) { Operator = QueryCriteriaOperator.Like; } //if (DHelper.IsDateTime(DPath.VR)) RangeType = DRangeType.Range; DPath.Enable = false; }