override public string GetJavaScript() { string jsCode = ""; jsCode += SimpleAttribute.GetJavaScript(); switch (RelationalOperator) { case RelationalOperator.EQUAL: jsCode += " == " + Value; break; case RelationalOperator.NOT_EQUAL: jsCode += " != " + Value; break; case RelationalOperator.GREATER_EQUAL: jsCode += " >= " + Value; break; case RelationalOperator.LESS_EQUAL: jsCode += " <= " + Value; break; case RelationalOperator.GREATER: jsCode += " > " + Value; break; case RelationalOperator.LESS: jsCode += " < " + Value; break; case RelationalOperator.LIKE: jsCode += " like(" + Value + ")"; break; case RelationalOperator.IS: jsCode += " is " + Value; break; } return(jsCode); }
override public string GetJavaScript() { string jsCode = ""; switch (RangeOperator) { case RangeOperator.BETWEEN: jsCode += "(" + SimpleAttribute.GetJavaScript() + " > " + Values.ElementAt(0) + " && " + SimpleAttribute.GetJavaScript() + " < " + Values.ElementAt(1) + ")"; break; case RangeOperator.NOT_IN_QUERY: jsCode += "NOT_SUPPORTED"; break; case RangeOperator.NOT_IN_VALUES: jsCode += "NOT_SUPPORTED"; break; case RangeOperator.IN_QUERY: jsCode += "NOT_SUPPORTED"; break; case RangeOperator.IN_VALUES: jsCode += "NOT_SUPPORTED"; break; case RangeOperator.NOT_EXISTS_QUERY: jsCode += "NOT_SUPPORTED"; break; case RangeOperator.EXISTS_QUERY: jsCode += "NOT_SUPPORTED"; break; } return(jsCode); }