diff --git a/core/OpenClinica-core.iml b/core/OpenClinica-core.iml new file mode 100644 index 0000000000..4b01ad3eb5 --- /dev/null +++ b/core/OpenClinica-core.iml @@ -0,0 +1,167 @@ + + + + + + + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-core-db.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-core-spring.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-core-timer.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-core-email.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-core-service.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-core-scheduler.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/ws/client/client-config.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-core-security.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-core-hibernate.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/core/src/main/java/org/akaza/openclinica/dao/hibernate/ViewRuleAssignmentFilter.java b/core/src/main/java/org/akaza/openclinica/dao/hibernate/ViewRuleAssignmentFilter.java index cbb315745a..dacd84bc95 100644 --- a/core/src/main/java/org/akaza/openclinica/dao/hibernate/ViewRuleAssignmentFilter.java +++ b/core/src/main/java/org/akaza/openclinica/dao/hibernate/ViewRuleAssignmentFilter.java @@ -29,7 +29,8 @@ public ViewRuleAssignmentFilter() { columnMapping.put("actionExecuteOn", "ra.expression_evaluates_to"); columnMapping.put("actionType", "ra.action_type"); columnMapping.put("actionSummary", "ra.message"); - + columnMapping.put("ruleSetRunSchedule", "rs.run_schedule"); + columnMapping.put("ruleSetRunTime", "rs.run_time"); } public List getFilters() { @@ -68,10 +69,15 @@ public String execute(String criteria) { private String buildCriteria(String criteria, String property, Object value) { value = StringEscapeUtils.escapeSql(value.toString()); if (value != null) { - if (property.equals("studyId") || property.equals("actionType") || property.equals("actionExecuteOn") || property.equals("ruleSetRuleStatus")) { + if (property.equals("studyId") || property.equals("ruleSetRunSchedule") || property.equals("actionType") || property.equals("actionExecuteOn") || property.equals("ruleSetRuleStatus")) { criteria = criteria + " " + columnMapping.get(property) + " = " + value.toString() + " "; - } else { - criteria += " UPPER(" + columnMapping.get(property) + ") like UPPER('%" + value.toString() + "%')" + " "; + } + else if (property.equals("ruleSetRunTime") ){ + criteria = criteria + " " + columnMapping.get(property) + " = '" + value.toString() + "' "; + + } + else { + criteria = " UPPER(" + columnMapping.get(property) + ") like UPPER('%" + value.toString() + "%')" + " "; } } return criteria; diff --git a/core/src/main/java/org/akaza/openclinica/service/rule/expression/ExpressionService.java b/core/src/main/java/org/akaza/openclinica/service/rule/expression/ExpressionService.java index 6e2fd7f99e..327ffd6ba2 100644 --- a/core/src/main/java/org/akaza/openclinica/service/rule/expression/ExpressionService.java +++ b/core/src/main/java/org/akaza/openclinica/service/rule/expression/ExpressionService.java @@ -841,7 +841,8 @@ private String getOidFromExpression(String expression, int patternIndex, int exp // int patternIndex = ?; if (!match(splitExpression[splitExpression.length - 1 - expressionIndex], pattern[patternIndex])) { if (!match(splitExpression[splitExpression.length - 1 - expressionIndex], ruleActionPattern[patternIndex])) { - throw new OpenClinicaSystemException("OCRER'R_0019", new String[] { expression }); + //throw new OpenClinicaSystemException("OCRER'R_0019", new String[] { expression }); + return expression; } } return splitExpression[splitExpression.length - 1 - expressionIndex]; diff --git a/web/OpenClinica-web.iml b/web/OpenClinica-web.iml new file mode 100644 index 0000000000..5c40118331 --- /dev/null +++ b/web/OpenClinica-web.iml @@ -0,0 +1,211 @@ + + + + + + + + + + + + + + + + + + + + + file://$MODULE_DIR$/src/main/webapp/WEB-INF/createSubject-servlet-config.xml + file://$MODULE_DIR$/src/main/webapp/WEB-INF/security-config.xml + file://$MODULE_DIR$/src/main/webapp/WEB-INF/ws-servlet-config.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-web-beans.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/application-context-web-beans.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-security.xml + file://$MODULE_DIR$/src/main/webapp/WEB-INF/pages-servlet.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/src/main/java/org/akaza/openclinica/control/submit/ViewRuleAssignmentServlet.java b/web/src/main/java/org/akaza/openclinica/control/submit/ViewRuleAssignmentServlet.java index 9a05a788fa..c6d62ae96a 100644 --- a/web/src/main/java/org/akaza/openclinica/control/submit/ViewRuleAssignmentServlet.java +++ b/web/src/main/java/org/akaza/openclinica/control/submit/ViewRuleAssignmentServlet.java @@ -56,7 +56,7 @@ public void processRequest() throws Exception { String[] columns = { resword.getString("rule_study_event_definition"), resword.getString("CRF_name"), resword.getString("rule_group_label"), - resword.getString("rule_item_name"), resword.getString("rule_rules"), resword.getString("rule_ref_oid"), resword.getString("rule_action_type"), resword.getString("actions") }; + resword.getString("rule_item_name"), resword.getString("rule_rules"), resword.getString("rule_ref_oid"), resword.getString("rule_action_type"), resword.getString("actions")}; table.setColumns(new ArrayList(Arrays.asList(columns))); table.hideColumnLink(4); diff --git a/ws/OpenClinica-ws.iml b/ws/OpenClinica-ws.iml new file mode 100644 index 0000000000..6d41930460 --- /dev/null +++ b/ws/OpenClinica-ws.iml @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + file://$MODULE_DIR$/src/main/webapp/WEB-INF/pages-servlet.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-web-beans.xml + file://$MODULE_DIR$/src/main/resources/org/akaza/openclinica/applicationContext-security.xml + file://$MODULE_DIR$/src/main/webapp/WEB-INF/createSubject-servlet-config.xml + file://$MODULE_DIR$/src/main/webapp/WEB-INF/security-config.xml + file://$MODULE_DIR$/src/main/webapp/WEB-INF/ws-servlet-config.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file