The following document contains the results of PMD's CPD 5.3.5.
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 258 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 266 |
text.append(addendum.getAddendumText()); if (text.length() > 0) { setLeftStarting(getLeftPageMargin()); setRightStarting(getLeftPageMargin()); addContent("", text.toString(), theStyle); addContent(" \n", " \n"); text = new StringBuffer(); } } } } } /** TODO: DOCUMENT ME! */ public void addAttendanceNotes() { String notes = getNotNullString(getAgendaView().getAgendaHeader() .getMeetingAttendanceNotes(), "" ); if (!notes.equals("")) { addContent(" \n", " \n"); addBoldLabelPlainText("Attendance Notes", notes); } } /** * TODO: DOCUMENT ME! * * @param agendaHeaderOid TODO: DOCUMENT ME! * @param label TODO: DOCUMENT ME! * @param businessAttached TODO: DOCUMENT ME! * @param businessType TODO: DOCUMENT ME! */ public void addBusinessAttached(long agendaHeaderOid, String label, Vector businessAttached, String businessType ) { int size = businessAttached.size(); if (size > 0) { addContent(" ", " ", theStyle); addSectionTitle(label); setDataSheetFeature(); // setHeight(getHeight()-getPDFPage().getStyle().getFontLeading()); float xyPosition[] = new float[] {}; int tableSize = 4; Vector vLabel = new Vector(tableSize); vLabel.add(0, "Protocol Number"); vLabel.add(1, "Event"); vLabel.add(2, "PI"); vLabel.add(3, "Title/Keyword"); xyPosition = new float[] { unitXy * 15, unitXy * 10, unitXy * 20, unitXy * 55 }; IrbAgendaEvent currentRow = null; Vector vContent = new Vector(tableSize); String strEUIRB = ""; for (int i = 0; i < size; i++) { addUnderLinedLabel(vLabel, xyPosition, theStyle, 10, 12); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); currentRow = (IrbAgendaEvent) businessAttached.elementAt(i); IrbProtocolHeader protHeader = null; String protocolNumber = ""; String eventName = currentRow.getEventName(); long eventOid = currentRow.getEventOid(); String title = ""; if (eventName.startsWith("Protocol") || eventName.startsWith("Modification") || eventName.startsWith("Renewal") ) { eventName = "ProtocolHeader"; protHeader = ServiceLocator.getIrbProtocolHeaderService().findById(eventOid); protocolNumber = protHeader.getProtocolNumber(); title = protHeader.getTitle(); } else { // adverseEvent, closure, expendedAccess, unanticipate IrbTraceableBusinessObject object = ServiceLocator.getIrbProtocolService() .getParentObject(eventName, eventOid + "", getRascalUser()); if (object != null) { protocolNumber = object.getProtocolNumber(); protHeader = ServiceLocator.getIrbProtocolService() .getLastApprovedProtocolHeader(object.getIrbProtocol()); if (protHeader == null) protHeader = ServiceLocator.getIrbProtocolService() .getLastExpiredProtocolHeader(object.getIrbProtocol()); } if (eventName.equals("AdverseEvent")) { title = ""; Long keyWord = ((IrbAdverseEvent) object).getKeywordCode(); if (keyWord != null) title = ServiceLocator.getRascalAdverseEventService().findById(keyWord) .getDescription(); } else if (eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { title = ""; Long keyWord = ((IrbUnanticipatedProblem) object).getKeywordCode(); if (keyWord != null) title = ServiceLocator.getRascalAdverseEventService().findById(keyWord) .getDescription(); } else title = protHeader.getTitle(); } strEUIRB = "IRB-" + protocolNumber; vContent.add(0, strEUIRB); // protocolNumber vContent.add(1, getNotNullString(currentRow.getEventName(), "")); // event vContent.add(2, getNotNullString( ServiceLocator.getRascalUserService().findById( protHeader.getPI().getRid() ).getUserFirstLastNameUni(), "" ) ); // pi vContent.add(3, getNotNullString(title, "")); // title addVectorContent(vContent, xyPosition, theStyle); vContent.removeAllElements(); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); IrbMeetingAttributes attribute = currentRow.getIrbMeetingAttributes(); addBoldLabelPlainText("Recommendation", getNotNullString( ((attribute == null) ? "" : attribute.getRecommendationText()), "" ), theStyle ); addBoldLabelPlainText("Follow Up", getNotNullString(((attribute == null) ? "" : attribute.getFollowUp()), "" ), theStyle ); if (i != (size - 1)) { addContent(getSpaceWithSpots(0, spotsNumber), ""); } } } } /** * TODO: DOCUMENT ME! * * @param label TODO: DOCUMENT ME! * @param exEventAttached TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addExEventAttached(String label, Vector exEventAttached, String eventName) { if (eventName.equals(IrbNameConstants.EXEMPT) || eventName.equals(IrbNameConstants.EXPEDITED) || eventName.equals(PENDING)) { int size = exEventAttached.size(); if (size > 0) { addContent(" \n", " \n", theStyle); addSectionTitle(label); setDataSheetFeature(); int tableSize = 4; Vector vLabel = new Vector(tableSize); vLabel.add(0, "Protocol Number"); vLabel.add(1, "PI"); vLabel.add(2, "Title"); vLabel.add(3, "Reviewer"); vLabel.add(4, "IRB Approval Date"); vLabel.add(5, "Expiration Date"); vLabel.add(6, "Board Notification Date"); float xyPosition[] = new float[] { unitXy * 15, unitXy * 10, unitXy * 25, unitXy * 10, unitXy * 10, unitXy * 10, unitXy * 20 }; Vector currentRow = null; Vector vContent = new Vector(tableSize); for (int i = 0; i < size; i++) { addUnderLinedLabel(vLabel, xyPosition, theStyle, 10, 12); currentRow = (Vector) exEventAttached.elementAt(i); vContent.add(0, getNotNullString("IRB-" + currentRow.elementAt(2), "")); // protocolnumber vContent.add(1, getNotNullString((String) currentRow.elementAt(4), "")); // PI vContent.add(2, getNotNullString((String) currentRow.elementAt(5), "")); // title vContent.add(3, getNotNullString((String) currentRow.elementAt(6), "")); // approver Object dateObj = currentRow.elementAt(8); if (dateObj instanceof java.sql.Date) { vContent.add(4, getNotNullString(CalendarTransformer.formatMMDDYYYY((Date) dateObj), "") ); } else { vContent.add(4, getNotNullString("", "")); } dateObj = currentRow.elementAt(9); if (dateObj instanceof java.sql.Date) { vContent.add(5, getNotNullString(CalendarTransformer.formatMMDDYYYY((Date) dateObj), "") ); } else { vContent.add(5, getNotNullString("", "")); } dateObj = currentRow.elementAt(10); if (dateObj instanceof java.sql.Date) { vContent.add(6, getNotNullString(CalendarTransformer.formatMMDDYYYY((Date) dateObj), "") ); } else { vContent.add(6, getNotNullString("", "")); } addVectorContent(vContent, xyPosition, theStyle); vContent.removeAllElements(); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); addBoldLabelPlainText("Follow Up", getNotNullString((String) currentRow.elementAt(7), ""), theStyle ); if (i != (size - 1)) { addContent(getSpaceWithSpots(0, spotsNumber), ""); } } } } } /** * TODO: DOCUMENT ME! * * @param meetingAttendants TODO: DOCUMENT ME! */ public void addMeetingAttendants(Vector meetingAttendants) { if (meetingAttendants.size() > 0) { setLeftStarting(getDefaultLeftStarting()); setRightStarting(getDefaultLeftStarting() + 10); addContent(" \n", " \n", theStyle); IrbMeetingAttendant attendant = null; theStyle.setFont(fontTimesB, fontSize12); theStyle.setTextUnderline(true); addContent("Attendant", "Meeting Role", theStyle); theStyle.setFont(fontTimes, fontSize12); theStyle.setTextUnderline(false); for (int i = 0; i < meetingAttendants.size(); i++) { attendant = (IrbMeetingAttendant) meetingAttendants.elementAt(i); addContent(ServiceLocator.getRascalUserService().findById(attendant.getRid()) .getUserFirstLastNameUni(), attendant.getMeetingRole(), theStyle ); } } } /** TODO: DOCUMENT ME! */ public void addMeetingNotes() { IrbAgendaHeader agendaHeader = getAgendaView().getAgendaHeader(); String notes = ""; if (agendaHeader != null) { notes = getNotNullString(agendaHeader.getMeetingNotes(), ""); if (!notes.equals("")) { addContent(" \n", " \n"); addBoldLabelPlainText("Meeting Notes", notes, theStyle); } } } /** * TODO: DOCUMENT ME! * * @param label TODO: DOCUMENT ME! * @param nrProtocolAttached TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addNRAttached(String label, Vector nrProtocolAttached, String eventName) { int size = nrProtocolAttached.size(); if (size > 0) { addContent(" \n", " \n", theStyle); addSectionTitle(IrbNameConstants.NON_RASCAL + " " + label); setDataSheetFeature(); Vector vLabel = new Vector(3); String firstLabel = "Title"; if (eventName.equals("AdverseEvent") || eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { firstLabel = "Keyword"; } vLabel.add(0, firstLabel); vLabel.add(1, "Paper Protocol Number"); if (!eventName.endsWith(IrbNameConstants.EXEMPT) && !eventName.endsWith(IrbNameConstants.EXPEDITED) && !eventName.endsWith(PENDING) ) { vLabel.add(2, "Recommendation"); vLabel.add(3, "Recommended Status"); } Vector currentRow = null; Vector vContent = new Vector(3); float xyPosition[] = new float[] { unitXy * 20, unitXy * 15, unitXy * 50, unitXy * 15 }; for (int i = 0; i < size; i++) { addUnderLinedLabel(vLabel, xyPosition, theStyle, 10, 12); currentRow = (Vector) nrProtocolAttached.elementAt(i); vContent.add(0, getNotNullString((String) currentRow.elementAt(0), "")); // title vContent.add(1, getNotNullString((String) currentRow.elementAt(4), "")); // paperProtocolNumber if (!eventName.endsWith(IrbNameConstants.EXEMPT) && !eventName.endsWith(IrbNameConstants.EXPEDITED) && !eventName.endsWith(PENDING) ) { vContent.add(2, getNotNullString((String) currentRow.elementAt(1), "")); // recommendation vContent.add(3, getNotNullString((String) currentRow.elementAt(2), "")); // recommendation status } addVectorContent(vContent, xyPosition, theStyle); vContent.removeAllElements(); addBoldLabelPlainText("Follow Up", getNotNullString((String) currentRow.elementAt(3), ""), theStyle ); if (i != (size - 1)) { addContent(getSpaceWithSpots(0, spotsNumber), ""); } } } } /** * TODO: DOCUMENT ME! * * @param label TODO: DOCUMENT ME! * @param otherEventAttached TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addOtherEventAttached(String label, Vector otherEventAttached, String eventName) { if (eventName.equalsIgnoreCase("other")) { int size = otherEventAttached.size(); if (size > 0) { addContent(" \n", " \n", theStyle); addSectionTitle(label); setDataSheetFeature(); int tableSize = 3; Vector currentRow = null; for (int i = 0; i < size; i++) { currentRow = (Vector) otherEventAttached.elementAt(i); addBoldLabelPlainText("Topic", getNotNullString((String) currentRow.elementAt(2), "") ); addBoldLabelPlainText("Recommendation", getNotNullString((String) currentRow.elementAt(6), "") ); addBoldLabelPlainText("Follow Up", getNotNullString((String) currentRow.elementAt(8), "") ); if (i != (size - 1)) { addContent(getSpaceWithSpots(0, spotsNumber), ""); } } } } } /** * Insert the method's description here. Creation date: (11/18/2002 12:23:46 PM) * * @param saving TODO: DOCUMENT ME! */ @Override public void addPageFooter(boolean saving) { if (getPDFObject() != null) { int totalPageNum = getPDFObject().getNumberOfPages(); for (int i = 0; i < totalPageNum; i++) { PDFStyle style = new PDFStyle(); style.setLineColor(java.awt.Color.gray); style.setFillColor(java.awt.Color.black); style.setFont(fontCourier, 8); getPDFObject().getPage(i).setStyle(style); if (saving) getPDFObject().getPage(i).drawText("Saved On: " + edu.columbia.rascal.common.CalendarTransformer.toDateTimeString( getDocTimeStamp() ) + " " + "page " + (i + 1) + " of " + totalPageNum, getLeftPageMargin(), 10 ); else getPDFObject().getPage(i).drawText("Printed On: " + edu.columbia.rascal.common.CalendarTransformer.toDateTimeString( getDocTimeStamp() ) + " " + "page " + (i + 1) + " of " + totalPageNum, getLeftPageMargin(), 10 ); } } } /** * TODO: DOCUMENT ME! * * @param label TODO: DOCUMENT ME! * @param protocolAttached TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addProtocolAttached(String label, Vector protocolAttached, String eventName) { int size = protocolAttached.size(); if (size > 0) { addContent(" ", " ", theStyle); addSectionTitle(label); setDataSheetFeature(); // setHeight(getHeight()-getPDFPage().getStyle().getFontLeading()); String firstLabel = "Protocol Number"; String thirdLabel = "Title"; float xyPosition[] = new float[] {}; if (eventName.equals(IrbNameConstants.ADVERSE_EVENT) || eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { thirdLabel = "Keyword"; } int tableSize = 4; if (getAgendaView().isProtocol(eventName)) { tableSize = 6; } Vector vLabel = new Vector(tableSize); vLabel.add(0, firstLabel); vLabel.add(1, "PI"); vLabel.add(2, thirdLabel); vLabel.add(3, "Primary Reviewer"); vLabel.add(4, "Recommended Status"); if (getAgendaView().isProtocol(eventName)) { xyPosition = new float[] { unitXy * 15, unitXy * 10, unitXy * 17, unitXy * 13, unitXy * 15, unitXy * 10, unitXy * 10 }; vLabel.add(5, "IRB Approval Date"); vLabel.add(6, "Expiration Date"); } else { xyPosition = new float[] { unitXy * 15, unitXy * 10, unitXy * 17, unitXy * 13, unitXy * 45 }; } Vector currentRow = null; Vector vContent = new Vector(tableSize); String strEUIRB = ""; for (int i = 0; i < size; i++) { addUnderLinedLabel(vLabel, xyPosition, theStyle, 10, 12); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); currentRow = (Vector) protocolAttached.elementAt(i); strEUIRB = getNotNullString((String) currentRow.elementAt(2), ""); strEUIRB = "IRB-" + strEUIRB; vContent.add(0, strEUIRB); vContent.add(1, getNotNullString((String) currentRow.elementAt(4), "")); // pi vContent.add(2, getNotNullString((String) currentRow.elementAt(5), "")); // title // reviewer StringBuilder revString = new StringBuilder(""); if (getAgendaView().getEventObject((String) currentRow.elementAt(0), eventName) != null ) { Vector reviewers = IrbAgendaProtocolQuery.getPreMinuteApprovalEventReviewersFor( getAgendaView().getEventObject((String) currentRow.elementAt(0), eventName ) ); for (int j = 0; j < reviewers.size(); j++) { if (j > 0) { revString.append(", "); } revString.append(ServiceLocator.getRascalUserService().findById( (Integer) reviewers.elementAt(j) ).getUserFirstLastNameUni() ); } } vContent.add(3, revString.toString()); // status vContent.add(4, getNotNullString((String) currentRow.elementAt(7), "")); // the two dates only shown in protocol, midification, renewal, etc. if (getAgendaView().isProtocol(eventName)) { // effective date IrbProtocolHeader header = ServiceLocator.getIrbProtocolHeaderService() .getProtocolHeaderByOid((String) currentRow.firstElement(), getAgendaView().getRascalUser() ); Date cal = null; // String effectiveDate =""; String approvalDate = ""; String expirationDate = ""; if (header != null) { // cal = header.getEffectiveDate(); // effectiveDate = CalendarTransformer.toString(cal); cal = header.getIrbApprovalDate(); approvalDate = CalendarTransformer.formatMMDDYYYY(cal); cal = header.getExpirationDate(); expirationDate = CalendarTransformer.formatMMDDYYYY(cal); } // vContent.add(5, effectiveDate); vContent.add(5, approvalDate); // expriation date vContent.add(6, expirationDate); } addVectorContent(vContent, xyPosition, theStyle); vContent.removeAllElements(); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); addBoldLabelPlainText("Recommendation", getNotNullString((String) currentRow.elementAt(6), ""), theStyle ); addBoldLabelPlainText("Follow Up", getNotNullString((String) currentRow.elementAt(8), ""), theStyle ); if (i != (size - 1)) { addContent(getSpaceWithSpots(0, spotsNumber), ""); } } } } /** * TODO: DOCUMENT ME! * * @param agendaHeaderOid TODO: DOCUMENT ME! * @param label TODO: DOCUMENT ME! * @param protocolAttached TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addProtocolAttached(long agendaHeaderOid, String label, Vector protocolAttached, String eventName ) { int size = protocolAttached.size(); if (size > 0) { addContent(" ", " ", theStyle); addSectionTitle(label); setDataSheetFeature(); // setHeight(getHeight()-getPDFPage().getStyle().getFontLeading()); String firstLabel = "Protocol Number"; String thirdLabel = "Title"; float xyPosition[] = new float[] {}; if (eventName.equals(IrbNameConstants.ADVERSE_EVENT) || eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { thirdLabel = "Keyword"; } int tableSize = 4; if (getAgendaView().isProtocol(eventName)) { tableSize = 6; } Vector vLabel = new Vector(tableSize); vLabel.add(0, firstLabel); vLabel.add(1, "PI"); vLabel.add(2, thirdLabel); vLabel.add(3, "Primary Reviewer"); vLabel.add(4, "Recommended Status"); if (getAgendaView().isProtocol(eventName)) { xyPosition = new float[] { unitXy * 15, unitXy * 10, unitXy * 17, unitXy * 13, unitXy * 15, unitXy * 10, unitXy * 10 }; vLabel.add(5, "IRB Approval Date"); vLabel.add(6, "Expiration Date"); } else { xyPosition = new float[] { unitXy * 15, unitXy * 10, unitXy * 17, unitXy * 13, unitXy * 45 }; } Vector currentRow = null; Vector vContent = new Vector(tableSize); String strEUIRB = ""; for (int i = 0; i < size; i++) { addUnderLinedLabel(vLabel, xyPosition, theStyle, 10, 12); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); currentRow = (Vector) protocolAttached.elementAt(i); strEUIRB = getNotNullString((String) currentRow.elementAt(2), ""); strEUIRB = "IRB-" + strEUIRB; vContent.add(0, strEUIRB); vContent.add(1, getNotNullString((String) currentRow.elementAt(4), "")); // pi vContent.add(2, getNotNullString((String) currentRow.elementAt(5), "")); // title // reviewer StringBuilder revString = new StringBuilder(""); if (getAgendaView().getEventObject((String) currentRow.elementAt(0), eventName) != null ) { Vector reviewers = IrbAgendaProtocolQuery.getPreMinuteApprovalEventReviewersFor( agendaHeaderOid, getAgendaView().getEventObject((String) currentRow.elementAt(0), eventName ) ); for (int j = 0; j < reviewers.size(); j++) { if (j > 0) { revString.append(", "); } revString.append(ServiceLocator.getRascalUserService().findById( Integer.parseInt((String) reviewers.elementAt(j)) ).getUserFirstLastNameUni() ); } } vContent.add(3, revString.toString()); // status vContent.add(4, getNotNullString((String) currentRow.elementAt(7), "")); // the two dates only shown in protocol, midification, renewal, etc. if (getAgendaView().isProtocol(eventName)) { // effective date IrbProtocolHeader header = ServiceLocator.getIrbProtocolHeaderService() .getProtocolHeaderByOid((String) currentRow.firstElement(), getAgendaView().getRascalUser() ); Date cal = null; // String effectiveDate =""; String approvalDate = ""; String expirationDate = ""; if (header != null) { // cal = header.getEffectiveDate(); // effectiveDate = CalendarTransformer.toString(cal); cal = header.getIrbApprovalDate(); approvalDate = CalendarTransformer.formatMMDDYYYY(cal); cal = header.getExpirationDate(); expirationDate = CalendarTransformer.formatMMDDYYYY(cal); } // vContent.add(5, effectiveDate); vContent.add(5, approvalDate); // expriation date vContent.add(6, expirationDate); } addVectorContent(vContent, xyPosition, theStyle); vContent.removeAllElements(); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); addBoldLabelPlainText("Recommendation", getNotNullString((String) currentRow.elementAt(6), ""), theStyle ); addBoldLabelPlainText("Follow Up", getNotNullString((String) currentRow.elementAt(8), ""), theStyle ); if (i != (size - 1)) { addContent(getSpaceWithSpots(0, spotsNumber), ""); } } } } /** TODO: DOCUMENT ME! */ public void constructPDF() { setPoint(getLeftPageMargin(), getPageHeight() - getTopPageMargin()); setDataSheetFeature(); StringBuilder title = new StringBuilder(); title.append("Columbia University "); if (getAgendaView().getProtocolHeader() != null) { if (getAgendaView().getProtocolHeader().getIrbProtocol() != null) { title.append(getNotNullString( ServiceLocator.getIrbProtocolService().getSubmittingTo( getAgendaView().getProtocolHeader().getIrbProtocol() ), "" ) ); } } if (!title.toString().endsWith(" ")) { title.append(' '); } title.append("Human Subjects Committee Meeting Minutes"); addTitle(title.toString()); title.setLength(0); setDataSheetFeature(); addHeader(getAgendaView()); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 338 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 339 |
CalendarTransformer.toDateTimeString(getAgendaHeader().getCreationDate()), getFontSize() + 1, true ) ); t.addRowFor(elements); for (int i = 0; i < 4; i++) { t.getCell(i, 0).setWidth("25%"); t.getCell(i, 1).setWidth("25%"); t.getCell(i, 2).setWidth("25%"); t.getCell(i, 3).setWidth("25%"); t.getCell(i, 0).setAlign("right"); t.getCell(i, 1).setAlign("left"); t.getCell(i, 2).setAlign("right"); t.getCell(i, 3).setAlign("left"); } aForm.add(t); aForm.add("<br>"); // form.add(getRuler()); } /** * This method was created in VisualAge. * * @param tableTitle TODO: DOCUMENT ME! * @param ps TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addEvents(String tableTitle, Vector ps, String eventName) { aForm.add("<br>"); aForm.add(getTableViewTitle(tableTitle)); aForm.add(buildAttachEventRows(ps, eventName)); } /** * This method was created in VisualAge. * * @param meetingAttendants TODO: DOCUMENT ME! */ public void addMeetingAttendants(Vector meetingAttendants) { CUHtmlTable t = new CUHtmlTable(); t.setWidth("300"); t.setAlign("left"); t.setBorderWidth(0); t.setCellPading(0); t.setCellSpacing(0); Vector elements; elements = new Vector(2); elements.addElement(getHeadingLabelFor("Attendant")); elements.addElement(getHeadingLabelFor("Meeting Role")); t.addRowFor(elements); for (int i = 0; i < meetingAttendants.size(); i++) { IrbMeetingAttendant attendant = (IrbMeetingAttendant) meetingAttendants.elementAt(i); elements = new Vector(2); elements.addElement(getWidgetFor( ServiceLocator.getRascalUserService().findById(attendant.getRid()) .getUserFirstLastNameUni() ) ); elements.addElement(getWidgetFor(attendant.getMeetingRole())); t.addRowFor(elements); } aForm.add("<div align=\"center\">"); aForm.add(t); aForm.add("<br></div>"); // form.add(getRuler()); } /** This method was created in VisualAge. */ public void addMeetingNotes() { if (!getAgendaHeader().getMeetingNotes().equals("")) { CUHtmlTable t = new CUHtmlTable(); // t.setWidth("300"); t.setAlign("left"); t.setBorderWidth(0); t.setCellPading(0); t.setCellSpacing(0); Vector elements; elements = new Vector(2); elements.addElement(getHeadingLabelFor("Meeting Notes")); elements.addElement(""); t.addRowFor(elements); elements = new Vector(2); elements.addElement(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls( getAgendaHeader().getMeetingNotes() ) ) ); t.addRowFor(elements); t.getCell(1, 0).setColumnsToSpan(2); aForm.add(t); aForm.add("<br>"); } } /** * This method was created in VisualAge. * * @param tableTitle TODO: DOCUMENT ME! * @param ps TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addNREvents(String tableTitle, Vector ps, String eventName) { aForm.add("<br>"); aForm.add(getTableViewTitle(IrbNameConstants.NON_RASCAL + tableTitle)); aForm.add(buildNREventRows(ps, eventName)); } /** * This method was created in VisualAge. * * @param ps TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! * * @return java.util.Vector */ public CUHtmlTable buildAttachEventRows(Vector ps, String eventName) { CUHtmlTable aTable = new CUHtmlTable(); if (eventName.equals("Other")) { aTable = getTable(1, getColumns().size() - 6); } else if (eventName.equals(IrbNameConstants.EXEMPT) || eventName.equals(IrbNameConstants.EXPEDITED)) { aTable = getTable(1, getColumns().size() - 4); } else if (isProtocol(eventName)) { aTable = getTable(1, getColumns().size()); } else { aTable = getTable(1, getColumns().size() - 2); } aTable.setBorderWidth(1); aTable.setWidth("700"); aTable.setAlign("left"); setAttachEventHead(aTable, eventName); if (eventName.equals("Other")) { for (int i = 0; i < ps.size(); i++) { Vector currentRow = (Vector) ps.elementAt(i); try { setAttachOtherEventTableDataRow(aTable, currentRow, eventName); } catch (Exception e) { } aTable.getCell(i, 0).setWidth("40%"); aTable.getCell(i, 1).setWidth("25%"); aTable.getCell(i, 2).setWidth("25%"); } } else if (eventName.equals(IrbNameConstants.EXEMPT) || eventName.equals(IrbNameConstants.EXPEDITED)) { for (int i = 0; i < ps.size(); i++) { Vector currentRow = (Vector) ps.elementAt(i); try { setAttachExEventTableDataRow(aTable, currentRow); } catch (Exception e) { } aTable.getCell(i, 0).setWidth("10%"); aTable.getCell(i, 1).setWidth("10%"); aTable.getCell(i, 2).setWidth("10%"); aTable.getCell(i, 3).setWidth("25%"); aTable.getCell(i, 4).setWidth("45%"); } } else { for (int i = 0; i < ps.size(); i++) { Vector currentRow = (Vector) ps.elementAt(i); try { if (isProtocol(eventName)) { setAttachProtocolEventTableDataRow(aTable, currentRow, eventName); } else { setAttachEventTableDataRow(aTable, currentRow, eventName); } } catch (Exception e) { } aTable.getCell(i, 0).setWidth("40"); aTable.getCell(i, 1).setWidth("40"); aTable.getCell(i, 2).setWidth("250"); aTable.getCell(i, 3).setWidth("100"); aTable.getCell(i, 4).setWidth("300"); aTable.getCell(i, 5).setWidth("60"); aTable.getCell(i, 6).setWidth("250"); if (isProtocol(eventName)) { aTable.getCell(i, 7).setWidth("100"); aTable.getCell(i, 8).setWidth("100"); } } } return aTable; } /** * This method was created in VisualAge. * * @param ps TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! * * @return java.util.Vector */ public CUHtmlTable buildNREventRows(Vector ps, String eventName) { CUHtmlTable aTable = new CUHtmlTable(); aTable = getTable(1, 4); setNREventHead(aTable, eventName); for (int i = 0; i < ps.size(); i++) { Vector currentRow = (Vector) ps.elementAt(i); setNREventTableDataRow(aTable, currentRow, eventName); } return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public Vector getColumns() { String titles[] = { "Number", "PI", "Title", "Reviewer", "Recommendation", "Recommended Status", "Follow Up", "IRB Approval Date", "Expiration Date" }; Vector columns = new Vector(); for (String title : titles) { columns.add(getHeadingLabelFor(title)); } return columns; } /** * Insert the method's description here. Creation date: (2/14/2002 5:32:29 PM) * * @return int */ public String getFontName() { return fontName; } /** * Insert the method's description here. Creation date: (2/15/2002 10:05:24 AM) * * @return int */ public int getFontSize() { return fontSize; } /** * This method was created in VisualAge. * * @param aTitle String * * @return CUHtmlText */ @Override public CUHtmlText getTableViewTitle(String aTitle) { CUHtmlText aText = null; if (aTitle instanceof String) { aText = new CUHtmlText(aTitle); aText.setIsBold(true); // aText.setFontSize("+1"); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); } return aText; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param eventName TODO: DOCUMENT ME! */ public void setAttachEventHead(CUHtmlTable aTable, String eventName) { CUHtmlText aTitle; CUHtmlTableCell header; String header1 = ""; String header2 = ""; if (eventName.equals("Other")) { String titlesOther[] = { "Topic", "Recommendation", "Follow Up" }; for (int i = 0; i < titlesOther.length; i++) { aTitle = new CUHtmlText(titlesOther[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("left"); } } else if (eventName.equals(IrbNameConstants.EXEMPT) || eventName.equals(IrbNameConstants.EXPEDITED)) { String titlesE[] = { "Protocol Number", "PI", "Approved By", "Title", "Follow Up" }; for (int i = 0; i < titlesE.length; i++) { aTitle = new CUHtmlText(titlesE[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("left"); } } else { header1 = "Protocol Number"; if (eventName.equals("AdverseEvent") || eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { header2 = "Keyword"; } else { header2 = "Title"; } if (isProtocol(eventName)) { String titles[] = { "Protocol Number", "PI", "Title", "Reviewer", "Recommendation", "Recommended Status", "Follow Up", "IRB Approcval Date", "Expiration Date" }; for (int i = 0; i < titles.length; i++) { aTitle = new CUHtmlText(titles[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("left"); } } else { String titles[] = { header1, "PI", header2, "Reviewer", "Recommendation", "Recommended Status", "Follow Up" }; for (int i = 0; i < titles.length; i++) { aTitle = new CUHtmlText(titles[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("left"); } } } } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param anEvent TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void setAttachEventTableDataRow(CUHtmlTable aTable, Vector anEvent, String eventName) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // protocol Number CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getRowLabelLeftFor("IRB-" + anEvent.elementAt(2))); cell0.setAlign("left"); cell0.setVAlign("top"); cell0.setWidth("200"); aRow.add(cell0); // PI CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getWidgetFor((String) anEvent.elementAt(4))); cell1.setAlign("left"); cell1.setVAlign("top"); cell1.setWidth("100"); aRow.add(cell1); // Title CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(5)) ) ); cell2.setAlign("left"); cell2.setVAlign("top"); cell2.setWidth("450"); aRow.add(cell2); // reviewer CUHtmlTableCell cell3 = new CUHtmlTableCell(); Vector reviewers; if (eventName.equals(PENDING)) reviewers = IrbAgendaProtocolQuery.getPreMinuteApprovalEventReviewersFor(getEventObject( (String) anEvent.elementAt(0), eventName ) ); else reviewers = IrbAgendaProtocolQuery.getPreMinuteApprovalEventReviewersFor( getAgendaHeader().getId(), getEventObject((String) anEvent.elementAt(0), eventName) ); StringBuilder revString = new StringBuilder(""); for (int i = 0; i < reviewers.size(); i++) { if (i > 0) revString.append(", "); revString.append(ServiceLocator.getRascalUserService().findById( (Integer) reviewers.elementAt(i) ).getUserLastFirstNameUni() ); } cell3.add(getWidgetFor(revString.toString())); cell3.setAlign("left"); cell3.setVAlign("top"); cell3.setWidth("100"); aRow.add(cell3); // recommendation CUHtmlTableCell cell4 = new CUHtmlTableCell(); cell4.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(6)) ) ); cell4.setAlign("left"); cell4.setVAlign("top"); cell4.setWidth("600"); aRow.add(cell4); // recommendedStatus CUHtmlTableCell cell5 = new CUHtmlTableCell(); cell5.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(7)) ) ); cell5.setAlign("left"); cell5.setVAlign("top"); cell5.setWidth("60"); aRow.add(cell5); // followUp CUHtmlTableCell cell6 = new CUHtmlTableCell(); cell6.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(8)) ) ); cell6.setAlign("left"); cell6.setVAlign("top"); cell6.setWidth("250"); aRow.add(cell6); aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param anEvent TODO: DOCUMENT ME! */ public void setAttachExEventTableDataRow(CUHtmlTable aTable, Vector anEvent) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // protocol number CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getWidgetFor("IRB-" + anEvent.elementAt(2))); cell1.setAlign("left"); cell1.setVAlign("top"); aRow.add(cell1); // PI CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(getWidgetFor((String) anEvent.elementAt(4))); cell2.setAlign("left"); cell2.setVAlign("top"); aRow.add(cell2); // Approver CUHtmlTableCell cell3 = new CUHtmlTableCell(); cell3.add(getWidgetFor( ServiceLocator.getRascalUserService().findById( Integer.parseInt((String) anEvent.elementAt(6)) ).getUserFirstLastNameUni() ) ); cell3.setAlign("left"); cell3.setVAlign("top"); aRow.add(cell3); // title CUHtmlTableCell cell4 = new CUHtmlTableCell(); cell4.add(getWidgetFor((String) anEvent.elementAt(5))); cell4.setAlign("left"); cell4.setVAlign("top"); aRow.add(cell4); // followUp CUHtmlTableCell cell5 = new CUHtmlTableCell(); cell5.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(7)) ) ); cell5.setAlign("left"); cell5.setVAlign("top"); cell5.setWidth("250"); aRow.add(cell5); aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param anEvent TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void setAttachOtherEventTableDataRow(CUHtmlTable aTable, Vector anEvent, String eventName ) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // topic CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(2)) ) ); cell1.setAlign("left"); cell1.setVAlign("top"); aRow.add(cell1); // recommendation CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(6)) ) ); cell2.setAlign("left"); cell2.setVAlign("top"); aRow.add(cell2); // followUp CUHtmlTableCell cell3 = new CUHtmlTableCell(); cell3.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(8)) ) ); cell3.setAlign("left"); cell3.setVAlign("top"); aRow.add(cell3); aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param anEvent TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void setAttachProtocolEventTableDataRow(CUHtmlTable aTable, Vector anEvent, String eventName ) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // protocol Number CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getRowLabelLeftFor("IRB-" + anEvent.elementAt(2))); cell0.setAlign("left"); cell0.setVAlign("top"); cell0.setWidth("200"); aRow.add(cell0); // PI CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getWidgetFor((String) anEvent.elementAt(4))); cell1.setAlign("left"); cell1.setVAlign("top"); cell1.setWidth("100"); aRow.add(cell1); // Title CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(5)) ) ); cell2.setAlign("left"); cell2.setVAlign("top"); cell2.setWidth("450"); aRow.add(cell2); // reviewer CUHtmlTableCell cell3 = new CUHtmlTableCell(); Vector reviewers = IrbAgendaProtocolQuery.getPreMinuteApprovalEventReviewersFor( getAgendaHeader().getId(), getEventObject((String) anEvent.elementAt(0), eventName) ); StringBuilder revString = new StringBuilder(""); for (int i = 0; i < reviewers.size(); i++) { if (i > 0) revString.append(", "); revString.append(ServiceLocator.getRascalUserService().findById( Integer.parseInt((String) reviewers.elementAt(i)) ).getUserFirstLastNameUni() ); } cell3.add(getWidgetFor(revString.toString())); cell3.setAlign("left"); cell3.setVAlign("top"); cell3.setWidth("100"); aRow.add(cell3); // recommendation CUHtmlTableCell cell4 = new CUHtmlTableCell(); cell4.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(6)) ) ); cell4.setAlign("left"); cell4.setVAlign("top"); cell4.setWidth("600"); aRow.add(cell4); // recommendedStatus CUHtmlTableCell cell5 = new CUHtmlTableCell(); cell5.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(7)) ) ); cell5.setAlign("left"); cell5.setVAlign("top"); cell5.setWidth("60"); aRow.add(cell5); // followUp CUHtmlTableCell cell6 = new CUHtmlTableCell(); cell6.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(8)) ) ); cell6.setAlign("left"); cell6.setVAlign("top"); cell6.setWidth("250"); aRow.add(cell6); // effective date /*CUHtmlTableCell cell7 = new CUHtmlTableCell(); * * cell7.add(getWidgetFor(CalendarTransformer.toString((IrbProtocolHeader.getProtocolHeaderByOid((String)anEvent.firstElement(), * getRascalUser())).getEffectiveDate()))); cell7.setAlign("left"); cell7.setVAlign("top"); * cell7.setWidth("100"); aRow.add(cell7); */ // irbapprovaldate CUHtmlTableCell cell7 = new CUHtmlTableCell(); cell7.add(getWidgetFor( CalendarTransformer.formatMMDDYYYY( (ServiceLocator.getIrbProtocolHeaderService().getProtocolHeaderByOid( (String) anEvent.firstElement(), getRascalUser() )).getIrbApprovalDate() ) ) ); cell7.setAlign("left"); cell7.setVAlign("top"); cell7.setWidth("100"); aRow.add(cell7); // expiration date CUHtmlTableCell cell8 = new CUHtmlTableCell(); cell8.add(getWidgetFor( CalendarTransformer.formatMMDDYYYY( (ServiceLocator.getIrbProtocolHeaderService().getProtocolHeaderByOid( (String) anEvent.firstElement(), getRascalUser() )).getExpirationDate() ) ) ); cell8.setAlign("left"); cell8.setVAlign("top"); cell8.setWidth("100"); aRow.add(cell8); aTable.add(aRow); } /** * Insert the method's description here. Creation date: (2/14/2002 5:32:29 PM) * * @param newFontName int */ public void setFontName(String newFontName) { fontName = newFontName; } /** * Insert the method's description here. Creation date: (2/15/2002 10:05:24 AM) * * @param newFontSize int */ public void setFontSize(int newFontSize) { fontSize = newFontSize; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param eventName TODO: DOCUMENT ME! */ public void setNREventHead(CUHtmlTable aTable, String eventName) { CUHtmlText aTitle; CUHtmlTableCell header; String header1 = "Title"; if (eventName.equals("AdverseEvent") || eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { header1 = "Keyword"; } String titles[] = { header1, "Recommendation", "Recommended Status", "Follow Up" }; int count = titles.length; for (int i = 0; i < count; i++) { aTitle = new CUHtmlText(titles[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("left"); } } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param anEvent TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void setNREventTableDataRow(CUHtmlTable aTable, Vector anEvent, String eventName) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // Title CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(0)) ) ); cell2.setAlign("left"); cell2.setVAlign("top"); cell2.setWidth("450"); aRow.add(cell2); // recommendation CUHtmlTableCell cell4 = new CUHtmlTableCell(); cell4.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(1)) ) ); cell4.setAlign("left"); cell4.setVAlign("top"); cell4.setWidth("600"); aRow.add(cell4); // recommendedStatus CUHtmlTableCell cell5 = new CUHtmlTableCell(); cell5.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(2)) ) ); cell5.setAlign("left"); cell5.setVAlign("top"); cell5.setWidth("60"); aRow.add(cell5); // followUp CUHtmlTableCell cell6 = new CUHtmlTableCell(); cell6.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(3)) ) ); cell6.setAlign("left"); cell6.setVAlign("top"); cell6.setWidth("250"); aRow.add(cell6); aTable.add(aRow); } /** * Transform a date to a string. * * @param date TODO: DOCUMENT ME! * * @return String */ public String toDateString(Date date) { String dateStr = null; if (date != null) { dateStr = CalendarTransformer.formatMMDDYYYY(date); } return dateStr; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixGIsotopeEntryView.java | 92 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIsotopeEntryView.java | 92 |
setAppendixObject((AppendixG) bo); setIsotope(aIsotope); setParmTable(aTable); add(bo); render(); } //~ Methods ------------------------------------------------------------------------------------ /** This method was created in VisualAge. */ @Override public void addAppendixHeader() { setSubTitle("Radioactive Isotopes<br>" + "<font size=\"-2\" color=red> *All fields required</font>" ); add(getSubTitle()); addFields(); } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellSpacing(2); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); getForm().add(aTable); getForm().add(getActionButtons()); add(getForm()); } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. Build the drug entry form, using picklists as appropriate. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; Object aWidget1; String isotope = ""; String comp = ""; String halfLife = ""; String halfLifeUnit = ""; String halfLifeInSubject = ""; String halfLifeInSubjectUnit = ""; String initActivity = ""; String initActivityUnit = ""; String routeOfAdmin = ""; String otherRouteValue = ""; String routeLabel = "Route of administration<font color=red>* "; if (getParmTable() != null) { isotope = (String) getParmTable().get(KEY_PARM_RADIO_NAME); comp = (String) getParmTable().get(KEY_PARM_RADIO_COMPOUND); halfLife = (String) getParmTable().get(KEY_PARM_RADIO_HALFLIFE); halfLifeUnit = (String) getParmTable().get(KEY_PARM_RADIO_HALFLIFE_UNIT); initActivity = (String) getParmTable().get(KEY_PARM_RADIO_INI_ACTIVE); initActivityUnit = (String) getParmTable().get(KEY_PARM_RADIO_INI_ACTIVE_UNIT); routeOfAdmin = (String) getParmTable().get(KEY_PARM_RADIO_ROUTE_OF_ADMIN); otherRouteValue = (String) getParmTable().get(KEY_PARM_RADIO_OTHER_ROUTE); } else if (getIsotope() != null) { isotope = getIsotope().getName(); comp = getIsotope().getCompound(); halfLife = (getIsotope().getHalfLife()).toString(); halfLifeUnit = getIsotope().getHalfLifeUnit(); initActivity = (getIsotope().getInitialActivity()).toString(); initActivityUnit = getIsotope().getInitialActivityUnit(); routeOfAdmin = getIsotope().getRouteOfAdministration(); } // isotope name aWidget = getMultilineTextWidgetFor("isotope", "2", "50", isotope); // aWidget = getEditWidgetFor("isotope", isotope, "5", "5"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Isotope Name<font color=red>* ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // Compound aWidget = getMultilineTextWidgetFor("compound", "2", "50", comp); // aWidget = getEditWidgetFor("compound", comp, "30", "30"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Compound<font color=red>* ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // half life aWidget = getEditWidgetFor("halfLife", halfLife, "10", "30"); ((CUHtmlEntryField) aWidget).setOnKeyPress("return restrictFieldToNumbersOrDecimal(event)"); columns.setElementAt(aWidget, 1); aWidget1 = getHalfLifeUnitValue(halfLifeUnit); columns.setElementAt(aWidget1, 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Physical Half Life<font color=red>* ")); aTable.getCell(row, 2).add(getRowLabelFor("Unit<font color=red>* ")); row++; columns.setElementAt("", 3); /* * // half life in subject if (halfLifeInSubject == null || * halfLifeInSubject.trim().length() < 1 || !(Float.parseFloat(halfLifeInSubject) > 0)) { * halfLifeInSubject = ""; } aWidget = getEditWidgetFor("halfLifeInSubject", halfLifeInSubject, * "10", "30"); ((CUHtmlEntryField)aWidget).setOnKeyPress("return * restrictFieldToNumbersOrDecimal(event)"); columns.setElementAt(aWidget, 1); aWidget1 = * getHalfLifeInSubjectUnitValue(); columns.setElementAt(aWidget1, 3); * aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Estimated * Effective<br>Half Life in animal ")); aTable.getCell(row, 2).add(getRowLabelFor("Unit * ")); row++; columns.setElementAt("", 3); */ // initial activity aWidget = getEditWidgetFor("initialActivity", initActivity, "10", "30"); ((CUHtmlEntryField) aWidget).setOnKeyPress("return restrictFieldToNumbersOrDecimal(event)"); columns.setElementAt(aWidget, 1); aWidget1 = getInitialActivityUnitValue(initActivityUnit); columns.setElementAt(aWidget1, 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor( "Initial Activity Level<br>Per Animal<font color=red>* " ) ); aTable.getCell(row, 2).add(getRowLabelFor("Unit<font color=red>* ")); row++; columns.setElementAt("", 3); // route of admin aWidget = getRouteOfAdminValue(routeOfAdmin); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor(routeLabel)); aTable.getCell(row, 1).setColumnsToSpan(2); row++; // other route -- route not on list. Comment out if not // appropriate if (getOtherRoute() && (getParmTable() == null)) { otherRouteValue = routeOfAdmin; } aWidget = getEditWidgetFor("otherRoute", otherRouteValue, "30", "30"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Route (if not listed above )")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Save"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); aCell.setAlign("center"); } return aTable; } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param overrideUnit TODO: DOCUMENT ME! * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public Object getHalfLifeInSubjectlUnitValue(String overrideUnit) { Vector<String> list = new Vector<String>(11); list.addElement("~Select time~"); list.addElement("minutes"); list.addElement("hours"); list.addElement("days"); list.addElement("years"); getLabel("halfLifeInSubjectUnit"); String unit = null; if ((overrideUnit == null) || (overrideUnit.trim().length() < 1)) { AppendixIsotope myIsotope = getIsotope(); if (myIsotope != null) { unit = myIsotope.getHalfLifeInSubjectUnit(); } } else { unit = overrideUnit; } if ((unit == null) || (unit.length() == 0)) { unit = ""; } return getSingleSelectWidgetFor(list, unit); } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public Object getHalfLifeInSubjectUnitValue() { Vector<String> list = new Vector<String>(11); list.addElement("~Select time~"); list.addElement("minutes"); list.addElement("hours"); list.addElement("days"); list.addElement("years"); getLabel("halfLifeInSubjectUnit"); AppendixIsotope myIsotope = getIsotope(); String unit = null; if (myIsotope != null) { unit = myIsotope.getHalfLifeInSubjectUnit(); } if ((unit == null) || (unit.length() == 0)) { unit = ""; } return getSingleSelectWidgetFor(list, unit); } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public Object getHalfLifeUnitValue() { Vector<String> list = new Vector<String>(11); list.addElement("~Select Time~"); list.addElement("minutes"); list.addElement("hours"); list.addElement("days"); list.addElement("years"); getLabel("halfLifeUnit"); AppendixIsotope myIsotope = getIsotope(); String unit = null; if (myIsotope != null) { unit = myIsotope.getHalfLifeUnit(); } if ((unit == null) || (unit.length() == 0)) { unit = ""; } return getSingleSelectWidgetFor(list, unit); } /** * This method was created in VisualAge. @2002 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param overrideUnit TODO: DOCUMENT ME! * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public Object getHalfLifeUnitValue(String overrideUnit) { Vector<String> list = new Vector<String>(11); list.addElement("~Select Time~"); list.addElement("minutes"); list.addElement("hours"); list.addElement("days"); list.addElement("years"); getLabel("halfLifeUnit"); String unit = null; if ((overrideUnit == null) || (overrideUnit.trim().length() < 1)) { AppendixIsotope myIsotope = getIsotope(); if (myIsotope != null) { unit = myIsotope.getHalfLifeUnit(); } } else { unit = overrideUnit; } if ((unit == null) || (unit.length() == 0)) { unit = ""; } return getSingleSelectWidgetFor(list, unit); } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param overrideUnit TODO: DOCUMENT ME! * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public Object getInitialActivityUnitValue(String overrideUnit) { Vector<String> list = new Vector<String>(11); list.addElement("~Select Value~"); // CPM 20120310 - Per Bug 26905, now using total microcuries, millicuries, or Bq // and not including weight (g,kg) list.addElement("microcuries"); list.addElement("millicuries"); list.addElement("Bq"); getLabel("initialActivityUnit"); String unit = ""; // CPM 20120310 - Per at2582 re: Bug 26905 - Force selection of new units AppendixIsotope myIsotope = getIsotope(); if (myIsotope != null) { unit = myIsotope.getInitialActivityUnit(); // If we do not have the unit in the list, do not allow it if ( StringUtils.isBlank(unit) || (StringUtils.isNotBlank(unit) && !list.contains(unit)) ) { unit = ""; } } return getSingleSelectWidgetFor(list, unit); } /** * This method was created in VisualAge. * * @return AppendixIsotope */ public AppendixIsotope getIsotope() { return isotope; } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public boolean getOtherRoute() { return this.otherRoute; } /** * This method was created in VisualAge. * * @return Hashtable */ public Hashtable getParmTable() { return parmTable; } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param routeOfAdmin TODO: DOCUMENT ME! * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public Object getRouteOfAdminValue(String routeOfAdmin) { Vector<String> list = new Vector<String>(11); list.addElement("~Select Route~"); list.addElement("Intravenous"); list.addElement("Oral"); // list.addElement("Other"); if (list.indexOf(routeOfAdmin) == -1) setOtherRoute(true); else setOtherRoute(false); getLabel("routeOfAdmin"); return getSingleSelectWidgetFor(list, routeOfAdmin); } /** * This method was created in VisualAge. * * @param aIsotope AppendixIsotope */ public void setIsotope(AppendixIsotope aIsotope) { this.isotope = aIsotope; } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param b TODO: DOCUMENT ME! */ public void setOtherRoute(boolean b) { this.otherRoute = b; } /** * This method was created in VisualAge. * * @param aTable TODO: DOCUMENT ME! */ public void setParmTable(Hashtable aTable) { parmTable = aTable; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override protected Vector getDefaultMainFooter() { return new Vector(); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 76 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 78 |
public IrbAgendaMinutesDataSheetUtilityView(Object bo, RascalUser aUser, Vector protocolAttached, Vector modificationAttached, Vector renewalAttached, Vector adverseEventAttached, Vector closureAttached, Vector exemptAttached, Vector expeditableAttached, Vector pendingAttached, Vector NRprotocolAttached, Vector NRmodificationAttached, Vector NRrenewalAttached, Vector NRadverseEventAttached, Vector NRclosureAttached, Vector NRexemptAttached, Vector NRexpeditableAttached, Vector NRpendingAttached, Vector otherTopics, Vector meetingAttendants, Vector unanticipateAttached, Vector NRunanticipateAttached, boolean inFrames ) { super(); setMainTitle("Human Subjects"); setPageTitle("RASCAL Human Subjects - Data Sheet "); setAgendaHeader((IrbAgendaHeader) bo); setRascalUser(aUser); if (inFrames) { setOnLoad( "parent.frames[1].location='edu.columbia.rascal.presentation.agenda.servlets.IrbAgendaLinkFrameServlet?agendaHeaderOid=" + getAgendaHeader().getId().toString() + "'" ); } add(bo); setSubTitle("Columbia University Human Subjects Committee Meeting Minutes"); CUHtmlForm aForm = getAForm(); aForm.add(getSubTitle()); aForm.add(getRuler()); setFontName("MS Comic Sans"); setFontSize(1); addDataAgendaHeader(); if (meetingAttendants.size() > 0) { addMeetingAttendants(meetingAttendants); } addAttendanceNotes(); // aForm.add(getRuler()); int numCells = 4; add("<br>"); // add attached events if (protocolAttached.size() > 0) { addEvents("New Protocols", protocolAttached, IrbNameConstants.PROTOCOL_HEADER); } if (NRprotocolAttached.size() > 0) { addNREvents("New Protocols", NRprotocolAttached, IrbNameConstants.PROTOCOL_HEADER); } if (modificationAttached.size() > 0) { addEvents("Modifications", modificationAttached, IrbNameConstants.MODIFICATION); } if (NRmodificationAttached.size() > 0) { addNREvents("Modifications", NRmodificationAttached, IrbNameConstants.MODIFICATION); } if (renewalAttached.size() > 0) { addEvents("Renewals", renewalAttached, IrbNameConstants.RENEWAL); } if (NRrenewalAttached.size() > 0) { addNREvents("Renewals", NRrenewalAttached, IrbNameConstants.RENEWAL); } if (adverseEventAttached.size() > 0) { addEvents("Advese Event Reports", adverseEventAttached, IrbNameConstants.ADVERSE_EVENT); } if (NRadverseEventAttached.size() > 0) { addNREvents("Advese Event Reports", NRadverseEventAttached, IrbNameConstants.ADVERSE_EVENT); } if (closureAttached.size() > 0) { addEvents("Closure Reports", closureAttached, IrbNameConstants.CLOSURE); } if (NRclosureAttached.size() > 0) { addNREvents("Closure Reports", NRclosureAttached, IrbNameConstants.CLOSURE); } if (unanticipateAttached.size() > 0) { addEvents("Unanticipated Problems", unanticipateAttached, IrbNameConstants.UNANTICIPATED_PROBLEM); } if (NRunanticipateAttached.size() > 0) { addNREvents("Unanticipated Problems", NRunanticipateAttached, IrbNameConstants.UNANTICIPATED_PROBLEM); } if (otherTopics.size() > 0) { addEvents("Other Topics", otherTopics, "Other"); } if (exemptAttached.size() > 0) { addEvents("Previously Approved Exempt Protocols", exemptAttached, IrbNameConstants.EXEMPT); } if (NRexemptAttached.size() > 0) { addNREvents("Previously Approved Exempt Protocols", NRexemptAttached, IrbNameConstants.EXEMPT); } if (expeditableAttached.size() > 0) { addEvents("Previously Approved Expedited Protocols", expeditableAttached, IrbNameConstants.EXPEDITED); } if (NRexpeditableAttached.size() > 0) { addNREvents("Previously Approved Expedited Protocols", NRexpeditableAttached, IrbNameConstants.EXPEDITED); } if (expeditableAttached.size() > 0) { addEvents("Previously Approved Pending", pendingAttached, PENDING); } if (NRexpeditableAttached.size() > 0) { addNREvents("Previously Approved Pending", NRpendingAttached, PENDING); } addMeetingNotes(); aForm.add("<br>"); add(aForm); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param date TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static String toTimeString(Date date) { String dateStr = null; if (date != null) { dateStr = CalendarTransformer.toTimeString(date); } return dateStr; } /** This method was created in VisualAge. */ public void addAttendanceNotes() { if (!getAgendaHeader().getMeetingAttendanceNotes().equals("")) { CUHtmlTable t = new CUHtmlTable(); // t.setWidth("300"); t.setAlign("left"); t.setBorderWidth(0); t.setCellPading(0); t.setCellSpacing(0); Vector elements; elements = new Vector(2); elements.addElement(getHeadingLabelFor("Attendance Notes")); elements.addElement(""); t.addRowFor(elements); elements = new Vector(2); elements.addElement(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls( getAgendaHeader().getMeetingAttendanceNotes() ) ) ); t.addRowFor(elements); t.getCell(1, 0).setColumnsToSpan(2); aForm.add(t); aForm.add("<br>"); } } /** This method was created in VisualAge. */ public void addDataAgendaHeader() { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(1); t.setCellPading(0); t.setCellSpacing(0); t.setBgColor("gray1"); Vector elements; String agendaNumber = getPrefix() + ((getAgendaHeader().getAgendaNumber() == null) ? "" : getAgendaHeader().getAgendaNumber()); elements = new Vector(5); elements.addElement(getTextWidgetFor("Agenda Number: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(agendaNumber, getFontSize() + 1, true)); elements.addElement(getTextWidgetFor("Agenda Status: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor( ((ServiceLocator.getIrbAgendaHeaderService().getCurrentStatus(getAgendaHeader()) == null) ? "" : ServiceLocator.getIrbAgendaHeaderService().getCurrentStatus(getAgendaHeader()) .getStatusName()), getFontSize() + 1, true ) ); t.addRowFor(elements); elements = new Vector(5); elements.addElement(getTextWidgetFor("Date Created: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(toDateString(getAgendaHeader().getCreationDate()), getFontSize() + 1, true ) ); elements.addElement(getTextWidgetFor("Meeting Date: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(toDateString(getAgendaHeader().getMeetingDate()), getFontSize() + 1, true ) ); t.addRowFor(elements); elements = new Vector(5); String meetingBeg = ((getAgendaHeader().getMeetingBeginTime() == null) ? "00:00" : getTimeString(getAgendaHeader().getMeetingBeginTime())); String meetingEnd = ((getAgendaHeader().getMeetingEndTime() == null) ? "00:00" : getTimeString(getAgendaHeader().getMeetingEndTime())); elements.addElement(getTextWidgetFor("Meeting Begin Time: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(meetingBeg, getFontSize() + 1, true)); elements.addElement(getTextWidgetFor("Meeting End Time: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(meetingEnd, getFontSize() + 1, true)); t.addRowFor(elements); elements = new Vector(5); IrbCommittee aCommittee = ServiceLocator.getIrbCommitteeService().findById(getAgendaHeader() .getCommitteeId() ); String aName = aCommittee.getCommitteeName(); elements.addElement(getTextWidgetFor("Committee: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(aName, getFontSize() + 1, true)); elements.addElement(getTextWidgetFor("Timestamp: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor( //CalendarTransformer.toDateTimeString(Calendar.getInstance()), getFontSize() + 1, CalendarTransformer.toDateTimeString(getAgendaHeader().getCreationDate()), getFontSize() + 1, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 71 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 70 |
setSubTitle("Appendix B - Safety Officer Approval"); setOnLoad(getOnLoadForOwnerType(anOwnerSurrogate.getOwnerType())); if (anOwnerSurrogate.getOwnerType().equals(IRB_OWNER)) { addJavaScriptElement(new CUHtmlText(getJSCodeFrom("irbSafetyOfficerReturnConfirm.js"))); } addJavaScriptElement(CURascalHmJavascript.getJavascriptCheckRecipient()); setAppendixObject(anAppendixObject); setOwnerSurrogate(anOwnerSurrogate); setTracker(aTracker); setRascalUser(aUser); add(anAppendixObject); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields() throws Exception { CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 4); CUHtmlTableRow aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_1_ReviewAndApproveText(), "40%", getTitleAlign()); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); addSpacerRows(aTable, 2, 1, "10"); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(REC_ANIMAL_HOUSING, defaultFontSize, true, false ), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_HOUSE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_2_RecommendedHousing("2"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } String ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(ppeLabel, defaultFontSize, true, false), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_PPE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_3_RecommendedPpe("3"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVER_NOTES + "</b>"), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_7_ApproverNotes("7"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval number aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_NUMBER + "</b>"), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_6_EHSNumber("6"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { String recipientsLabel = "Send Approval Notice to:</b><br>(UNIs and/or email addresses separated by commas)"; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(recipientsLabel, defaultFontSize, true, false ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_NoticeRecipients("recipients"), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } // set up safety officer approval information AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + APPROVAL_SAFETY_OFFICER + "</b>" ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + name + "</b>", "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_DATE + "</b>"), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + (CalendarTransformer.formatMMDDYYYY(approvalDate)) + "</b>", "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Owner's Number (Protocol Number, Proposal TrakId) String ownerNumberLabel = (getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) ? PROPOSAL_TRAK_ID : PROTOCOL_NUMBER; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(ownerNumberLabel), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(getOwnerSurrogate().getOwnerNumber(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { // set up // Veterinarian // approval // information AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); if (vetApproval != null) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // spacer addSpacerRows(aTable, 1, 2, "10"); // Veterinarian Name aRow = new CUHtmlTableRow(); name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(VETERINARIAN_NAME), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(name, "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Veterinarian approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(CalendarTransformer.formatMMDDYYYY(approvalDate), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } } getForm().add(aTable); getForm().add(getHiddenWidgetFor("action")); } /** * This method was created in VisualAge. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlItem * * @throws Exception TODO: DOCUMENT ME! */ @Override protected CUHtmlItem fieldGet_1_ReviewAndApproveText() throws Exception { String bioSafeLevel = ((AppendixB) getAppendixObject()).getBiosafetyLevel(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 71 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 70 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 73 |
setSubTitle("Appendix B - Safety Officer Approval"); setOnLoad(getOnLoadForOwnerType(anOwnerSurrogate.getOwnerType())); if (anOwnerSurrogate.getOwnerType().equals(IRB_OWNER)) { addJavaScriptElement(new CUHtmlText(getJSCodeFrom("irbSafetyOfficerReturnConfirm.js"))); } addJavaScriptElement(CURascalHmJavascript.getJavascriptCheckRecipient()); setAppendixObject(anAppendixObject); setOwnerSurrogate(anOwnerSurrogate); setTracker(aTracker); setRascalUser(aUser); add(anAppendixObject); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields() throws Exception { CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 4); CUHtmlTableRow aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_1_ReviewAndApproveText(), "40%", getTitleAlign()); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); addSpacerRows(aTable, 2, 1, "10"); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(REC_ANIMAL_HOUSING, defaultFontSize, true, false ), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_HOUSE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_2_RecommendedHousing("2"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } String ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(ppeLabel, defaultFontSize, true, false), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_PPE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_3_RecommendedPpe("3"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVER_NOTES + "</b>"), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_7_ApproverNotes("7"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval number aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_NUMBER + "</b>"), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_6_EHSNumber("6"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { String recipientsLabel = "Send Approval Notice to:</b><br>(UNIs and/or email addresses separated by commas)"; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(recipientsLabel, defaultFontSize, true, false ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_NoticeRecipients("recipients"), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } // set up safety officer approval information AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + APPROVAL_SAFETY_OFFICER + "</b>" ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + name + "</b>", "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_DATE + "</b>"), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + (CalendarTransformer.formatMMDDYYYY(approvalDate)) + "</b>", "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Owner's Number (Protocol Number, Proposal TrakId) String ownerNumberLabel = (getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) ? PROPOSAL_TRAK_ID : PROTOCOL_NUMBER; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(ownerNumberLabel), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(getOwnerSurrogate().getOwnerNumber(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { // set up // Veterinarian // approval // information AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); if (vetApproval != null) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // spacer addSpacerRows(aTable, 1, 2, "10"); // Veterinarian Name aRow = new CUHtmlTableRow(); name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(VETERINARIAN_NAME), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(name, "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Veterinarian approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(CalendarTransformer.formatMMDDYYYY(approvalDate), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } } getForm().add(aTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 94 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 170 |
getAForm().add(buildSearchFields()); getAForm().add(getButtons()); add(getAForm()); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable buildSearchFields() { // set main table for page: Vector columns = new Vector(2); columns.addElement(""); columns.addElement(""); int row = 0; CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPading(0); aTable.setCellSpacing(0); columns.setElementAt(new CUHtmlEntryField("RascalUserUni", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Uni ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getRowLabelLeftFor("OR"), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("RascalUser", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Last Name ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getRowLabelFor("  "), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("  ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("paperProtocolNumber", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Paper Protocol Number ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("previousProtocolNumber", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Previous Protocol Number ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("OriginatingDepartment", "5", "3", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Originating Department Code ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("OriginatingDepartmentName", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Originating Department Name ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("DrugDeviceBiologic", "30", "30", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Drug, Device, or Biologic ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("HumanSpecimen", "30", "30", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Human Specimen ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("Title", "50", "50", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Title ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getBooleanWidgetFor(INVALID, false), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Exclude Invalid Requests ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getBooleanWidgetFor(EXPIRED, false), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Exclude Expired Protocols ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getBooleanWidgetFor(CLOSURED, false), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Exclude Closured Protocols ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getBooleanWidgetFor(CREATING, false), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Exclude Created Protocols ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("60%"); return aTable; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ protected CUHtmlForm getAForm() { if (aForm == null) { aForm = new CUHtmlForm("Form1", HzAttestationSearchServlet.class.getName(), "POST"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 72 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 72 |
setSubTitle("Appendix F - Safety Officer Approval"); setOnLoad(getOnLoadForOwnerType(anOwnerSurrogate.getOwnerType())); if (anOwnerSurrogate.getOwnerType().equals(IRB_OWNER)) { addJavaScriptElement(new CUHtmlText(getJSCodeFrom("irbSafetyOfficerReturnConfirm.js"))); } addJavaScriptElement(CURascalHmJavascript.getJavascriptCheckRecipient()); setAppendixObject(anAppendixObject); setOwnerSurrogate(anOwnerSurrogate); setTracker(aTracker); setRascalUser(aUser); add(anAppendixObject); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields() throws Exception { CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 4); CUHtmlTableRow aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_1_ReviewAndApproveText(), "40%", getTitleAlign()); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); addSpacerRows(aTable, 2, 1, "10"); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(REC_ANIMAL_HOUSING, defaultFontSize, true, false ), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_HOUSE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_2_RecommendedHousing("2"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } String ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(ppeLabel, defaultFontSize, true, false), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_PPE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_3_RecommendedPpe("3"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + RADIATION_APPROVER_NOTES + "</b>" ), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_7_ApproverNotes("7"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { String recipientsLabel = "Send Approval Notice to:</b><br>(UNIs and/or email addresses separated by commas)"; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(recipientsLabel, defaultFontSize, true, false ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_NoticeRecipients("recipients"), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } // set up safety officer approval information AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + APPROVAL_RADIATION_SAFETY_OFFICER + "</b>" ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + name + "</b>", "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_DATE + "</b>"), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + (CalendarTransformer.formatMMDDYYYY(approvalDate)) + "</b>", "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Owner's Number (Protocol Number, Proposal TrakId) String ownerNumberLabel = (getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) ? PROPOSAL_TRAK_ID : PROTOCOL_NUMBER; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(ownerNumberLabel), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(getOwnerSurrogate().getOwnerNumber(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { // set up // Veterinarian // approval // information AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); if (vetApproval != null) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // spacer addSpacerRows(aTable, 1, 2, "10"); // Veterinarian Name aRow = new CUHtmlTableRow(); name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(VETERINARIAN_NAME), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(name, "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Veterinarian approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(CalendarTransformer.formatMMDDYYYY(approvalDate), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } } getForm().add(aTable); } /** * NOTE: method name is not desciptive of its function in this view * * <p>This method was created in VisualAge.</p> * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlItem * * @throws Exception TODO: DOCUMENT ME! */ @Override protected CUHtmlItem fieldGet_1_ReviewAndApproveText() throws Exception { StringBuffer aIsotBuffer = new StringBuffer(500); Set<AppendixIsotope> isots = ((AppendixF) getAppendixObject()).getAppendixIsotopes(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 189 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyView.java | 188 |
description.setIsBold(false); description.setAlignment("center"); description.setFontName(getDefaultFontName()); aForm.add(description); aForm.add("<br>"); } if ((format != null) && format.equalsIgnoreCase("normal")) { CUHtmlTable table = new CUHtmlTable(); Vector moreButtons = new Vector(); table.setBorderWidth(0); // Sorting is complicated by one-to-many relationships, sorting defaulted to Protocol // Number. Developing a *useful* means to sort data will consume time. Will develop if // sorting becomes a demand. moreButtons.add(getSortHeaderForColumnNames(columns, "", // "")); CUHtmlText text = new CUHtmlText("Sorted by Protocol Number"); text.setFontSize("1"); moreButtons.add(text); table.add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(" ")); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(getReportHelpFor("").getHtml())); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "print", "Printable Form", "return openNew('" + getServletName() + "?format=print','','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=750,height=550');" ); moreButtons.add(new CUHtmlTableCell(pb.getHtml())); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(" ")); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); pb = new CUHtmlPushButton("BUTTON", "download", "Downloadable Form", "return openNew('" + getServletName() + "?format=download','','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=750,height=550');" ); moreButtons.add(new CUHtmlTableCell(pb.getHtml())); table.getRowAt(0).add(moreButtons); table.getRowAt(0).getCell(2).setWidth("90%"); table.getRowAt(0).getCell(5).setAlign("right"); aForm.add(table); aForm.add("<br>"); } } /** * TODO: DOCUMENT ME! * * @param aPackage TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String createFlatTable(CUSortVector aPackage) { String nbsp = " "; String var = null; String key = ""; boolean newRow = false; Hashtable hash = null; String objectKey = ""; int size = aPackage.size(); int counter = 0; Vector used = new Vector(); removeAllJavaScript(); Vector headerList = (Vector) aPackage.elementAt(0); // lists all used OIDs CUSortVector keyList = (CUSortVector) aPackage.elementAt(1); // lists hashTablekeys int keySize = keyList.size(); Vector subSubtables = (Vector) aPackage.elementAt(2); // contains all subtable // objects that have a one to // many relationship int subs = subSubtables.size(); Vector columns = keyList.getColumnNames(); int cols = columns.size(); StringBuilder html = new StringBuilder(0); html.append("<style>.special{font-family: 'Arial';}</style>\n"); html.append("<table border=\"1\" cellspacing=\"0\">\n<tbody>\n<tr>"); for (int i = 0; i < cols; i++) { var = (String) columns.elementAt(i); if ((var == null) || (var.length() < 2)) var = " "; html.append("<th bgcolor=\"#cccccc\" class=\"special\">"); html.append(var); html.append("</th>"); } for (int i = 0; i < subs; i++) { Vector subSubtable = (Vector) subSubtables.elementAt(i); CUSortVector objectKeys = (CUSortVector) subSubtable.elementAt(1); Vector objCols = objectKeys.getColumnNames(); int oCols = objCols.size(); for (int x = 0; x < oCols; x++) { var = (String) objCols.elementAt(x); if ((var == null) || (var.length() < 2)) var = " "; html.append("<th bgcolor=\"#cccccc\" class=\"special\">"); html.append(var); html.append("</th>"); } } html.append("</tr>\n"); for (int i = 3; i < size; i++) { hash = (Hashtable) aPackage.elementAt(i); html.append("<tr>"); for (int j = 2; j < keySize; j++) { var = (String) hash.get(keyList.elementAt(j)); if ((var == null) || (var.length() < 2)) var = " "; html.append("<td bgcolor=\"#ffffff\" class=\"special\">"); html.append(var); html.append("</td>"); } for (int j = 0; j < subs; j++) { Vector subSubtable = (Vector) subSubtables.elementAt(j); CUSortVector objectKeys = (CUSortVector) subSubtable.elementAt(1); int oCols = objectKeys.size(); int num = -1 + i; hash = (Hashtable) subSubtable.elementAt(num); for (int y = 2; y < oCols; y++) { var = (String) hash.get(objectKeys.elementAt(y)); if ((var == null) || (var.length() < 2)) var = " "; html.append("<td width=\"64\" bgcolor=\"#ffffff\" class=\"special\">"); html.append(var); html.append("</td>"); } } html.append("</tr>\n"); } html.append("</tbody>\n</table>\n"); return html.toString(); } /** * TODO: DOCUMENT ME! * * @param aPackage TODO: DOCUMENT ME! * @param phOID TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String createNestedChildTable(Vector aPackage, String phOID) { int size = aPackage.size(); boolean newRow = false; String key = ""; int num = 0; String var = ""; String nbsp = " "; Vector objectList = (Vector) aPackage.elementAt(0); // lists all used OIDs int obs = objectList.size(); CUSortVector keyList = (CUSortVector) aPackage.elementAt(1); // lists hashTablekeys Vector used = new Vector(); StringBuilder html = new StringBuilder(0); Vector columns = keyList.getColumnNames(); int cols = columns.size(); Hashtable hash = null; html.append("<table bgcolor=\"#aaaaaa\" cellspacing=\"1\" width=\"100%\">\n<thead>\n<tr>"); for (int i = 0; i < cols; i++) { html.append("<th bgcolor=\"#dfdfdf\"><font face=\"Verdana\" size=\"1\">"); html.append(columns.elementAt(i)); html.append("</font></th>"); } html.append("</tr>\n</thead>\n<tbody>\n"); for (int i = 2; i < obs; i++) { newRow = false; hash = (Hashtable) aPackage.elementAt(i); if (!used.contains(hash.get(keyList.elementAt(1)))) { if (phOID.equalsIgnoreCase((String) hash.get("hid"))) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 52 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 51 |
public HzAttestationSearchView(String aMode) { super(); setMainTitle("Protocol Search"); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("srchHelp.js"))); addItems(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** IrbSearchMenuView constructor comment. */ public void addItems() { setTitle("RASCAL Human Subjects Protocol Search"); CUHtmlText txtSpaces = new CUHtmlText(""); txtSpaces.addSpaces(10); getAForm().add(txtSpaces); CUHtmlText txt1 = new CUHtmlText( "To retrieve all protocols that you have access to, simply press" ); txt1.setFontName(getDefaultFontName()); txt1.setIsBold(true); txt1.setFontSize("2"); getAForm().add(txt1); CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", " Search "); getAForm().add(pb1); CUHtmlText txt2 = new CUHtmlText( "                OR to narrow down your results, include any of the fields below:" ); txt2.setFontName(getDefaultFontName()); txt2.setFontSize("-2"); txt2.addBreaks(2); getAForm().add(txt2); getAForm().add("<BR> <BR>"); getAForm().add(buildSearchFields()); getAForm().add(getButtons()); add(getAForm()); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable buildSearchFields() { // set main table for page: Vector columns = new Vector(2); columns.addElement(""); columns.addElement(""); int row = 0; CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPading(0); aTable.setCellSpacing(0); columns.setElementAt(new CUHtmlEntryField("RascalUserUni", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Uni ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getRowLabelLeftFor("OR"), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("RascalUser", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Last Name ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getRowLabelFor("  "), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("  ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("paperProtocolNumber", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Paper Protocol Number ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("previousProtocolNumber", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Previous Protocol Number ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("OriginatingDepartment", "5", "3", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Originating Department Code ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("OriginatingDepartmentName", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Originating Department Name ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("DrugDeviceBiologic", "30", "30", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Drug, Device, or Biologic ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("HumanSpecimen", "30", "30", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Human Specimen ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("Title", "50", "50", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Title ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getBooleanWidgetFor(INVALID, false), 1); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 170 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 93 |
getAForm().add(buildSearchFields()); getAForm().add(getButtons()); add(getAForm()); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable buildSearchFields() { // set main table for page: Vector columns = new Vector(2); columns.addElement(""); columns.addElement(""); int row = 0; CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPading(0); aTable.setCellSpacing(0); columns.setElementAt(new CUHtmlEntryField("RascalUserUni", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Uni ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getRowLabelLeftFor("OR"), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("RascalUser", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Last Name ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getRowLabelFor("  "), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("  ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("paperProtocolNumber", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Paper Protocol Number ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("previousProtocolNumber", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Previous Protocol Number ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("OriginatingDepartment", "5", "3", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Originating Department Code ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("OriginatingDepartmentName", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Originating Department Name ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("DrugDeviceBiologic", "30", "30", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Drug, Device, or Biologic ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("HumanSpecimen", "30", "30", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Human Specimen ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("Title", "50", "50", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Title ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getBooleanWidgetFor(INVALID, false), 1); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFUtilityView.java | 212 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFView.java | 203 |
timeStamp, styleLeft, theStyle ); } /** * TODO: DOCUMENT ME! * * @param secTitle TODO: DOCUMENT ME! */ public void addSectionTitle(String secTitle) { if (needNextPage(getHeight(), theStyle)) { setHeight(getPageHeight() - getTopPageMargin()); newPage(getPageLayout()); } drawFrame(); addSectionTitleLabel(secTitle); setHeight(getHeight()); } /** * TODO: DOCUMENT ME! * * @param secTitle TODO: DOCUMENT ME! */ public void addSectionTitleLabel(String secTitle) { secTitle = getPDFPage().getStyle().getFont().requote(secTitle, Locale.getDefault()); theStyle.setFont(fontTimes.versionBold(), fontSize12); theStyle.setTextAlign(PDFStyle.TEXTALIGN_CENTER); theStyle.setFillColor(java.awt.Color.black); theStyle.setTextUnderline(false); int numPage = getPDFObject().getNumberOfPages(); setLeftStarting(getPageWidth() - getRightPageMargin()); setRightStarting(getLeftStarting()); addContent(secTitle, "", theStyle); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); } /** @see edu.columbia.rascal.presentation.common.pdf.CURascalPDFFormConstruction#addSpecialOnNewPage() */ @Override public void addSpecialOnNewPage() { if (getPDFPage() != null) { /*PDFStyle style = new PDFStyle(); * style.setLineColor(java.awt.Color.gray); * style.setFillColor(java.awt.Color.black); * style.setFont(fontCourier, 8); getPDFPage().setStyle(style); * getPDFPage().drawText("Agenda Number: " + * getAgendaNumberForDataSheet() + " Committee: " + * IrbCommittee.getByOid(getAgendaView().getAgendaHeader().getCommitteeId()).getCommitteeName() * ,getLeftPageMargin(), 19);style = null;*/ } } /** * @see edu.columbia.rascal.presentation.common.pdf.CURascalPDFFormConstruction#addTitle(java.lang.String) */ @Override public void addTitle(String title) { theStyle.setFont(fontTimes.versionBold(), fontSize18); addTitle(title, theStyle); } /** * TODO: DOCUMENT ME! * * @param vLabel TODO: DOCUMENT ME! * @param xy TODO: DOCUMENT ME! * @param theStyle TODO: DOCUMENT ME! */ public void addUnderLinedLabel(Vector vLabel, float xy[], PDFStyle theStyle) { theStyle.setTextUnderline(true); theStyle.setFont(ttfFontTimesB, fontDefaultSize); addVectorContent(vLabel, xy, theStyle); theStyle.setTextUnderline(false); theStyle.setFont(fontDefault, fontDefaultSize); } /** * TODO: DOCUMENT ME! * * @param vLabel TODO: DOCUMENT ME! * @param xy TODO: DOCUMENT ME! * @param theStyle TODO: DOCUMENT ME! * @param labelFontSize TODO: DOCUMENT ME! * @param textFontSize TODO: DOCUMENT ME! */ public void addUnderLinedLabel(Vector vLabel, float xy[], PDFStyle theStyle, int labelFontSize, int textFontSize ) { theStyle.setTextUnderline(true); theStyle.setFont(ttfFontTimesB, labelFontSize); addVectorContent(vLabel, xy, theStyle); theStyle.setTextUnderline(false); theStyle.setFont(fontDefault, textFontSize); setHeight(getHeight() - 10); } /** * @see edu.columbia.rascal.presentation.common.pdf.CURascalPDFFormConstruction#addVectorContentWithCellPadding(java.util.Vector, * float[], org.faceless.pdf2.PDFStyle, int) */ @Override public void addVectorContentWithCellPadding(Vector v, float p[], PDFStyle style, int cellPad ) { super.addVectorContentWithCellPadding(v, p, style, cellPad); setHeight(getHeight() + (PDFPage.UNITS_POINTS / 2)); } /** TODO: DOCUMENT ME! */ public void drawFrame() { setFrameStyle(Color.lightGray, Color.black); getPDFPage().setStyle(theStyle); getPDFPage().drawRectangle(getLeftPageMargin(), getHeight() + theStyle.getFontSize(), getPageWidth() - getRightPageMargin(), getHeight() - (theStyle.getFontSize() / 4) ); } /** * Insert the method's description here. Creation date: (8/25/2005 1:32:14 PM) * * @return edu.columbia.rascal.presentation.agenda.models.IrbAgendaHeader */ public IrbAgendaHeader getAgendaHeader() { return agendaHeader; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getAgendaNumberForDataSheet() { return agendaNumber; } /** * Insert the method's description here. Creation date: (5/22/2003 11:25:00 AM) * * @return edu.columbia.rascal.presentation.agenda.pages.IrbAgendaHtmlView * * @author Frances Wang */ public IrbAgendaHtmlView getAgendaView() { return agendaView; } /** * Insert the method's description here. Creation date: (2/12/2004 2:09:52 PM) * * @param eventName TODO: DOCUMENT ME! * * @return java.lang.String */ public String getDisplayStringFor(String eventName) { String displayString = ""; boolean nr = false; if (eventName.startsWith(IrbNameConstants.NON_RASCAL)) { nr = true; eventName = eventName.substring(11); } if (eventName.equals(IrbNameConstants.PROTOCOL_HEADER)) displayString = "New Protocol"; else if (eventName.equals(IrbNameConstants.ADVERSE_EVENT)) displayString = "Adverse Event"; else if (eventName.equals(IrbNameConstants.EXEMPT) || eventName.equals(IrbNameConstants.EXPEDITED)) displayString = eventName + " Protocol"; else if (eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) displayString = "Unanticipated Problem"; else displayString = eventName; if (nr) displayString = IrbNameConstants.NON_RASCAL + displayString; return displayString; } /** * Insert the method's description here. Creation date: (9/19/2005 12:33:07 PM) * * @return boolean */ public boolean isDatabase() { return database; } /** * Insert the method's description here. Creation date: (11/4/2002 1:42:31 PM) * * @param eventName TODO: DOCUMENT ME! * * @return boolean */ public boolean isProtocol(String eventName) { return eventName.equals(IrbNameConstants.PROTOCOL_HEADER) || eventName.equals(IrbNameConstants.EXPEDITED) || eventName.equals(IrbNameConstants.EXEMPT) || eventName.equals(IrbNameConstants.RENEWAL) || eventName.equals(IrbNameConstants.MODIFICATION) || eventName.equals(PENDING); } /** * Insert the method's description here. Creation date: (8/25/2005 1:32:14 PM) * * @param newAgendaHeader edu.columbia.rascal.presentation.agenda.models.IrbAgendaHeader */ public void setAgendaHeader(IrbAgendaHeader newAgendaHeader) { agendaHeader = newAgendaHeader; } /** * TODO: DOCUMENT ME! * * @param agendaNumber TODO: DOCUMENT ME! */ public void setAgendaNumberForDataSheet(String agendaNumber) { this.agendaNumber = agendaNumber; } /** * Insert the method's description here. Creation date: (5/22/2003 11:25:00 AM) * * @param newAgendaView edu.columbia.rascal.presentation.agenda.pages.IrbAgendaHtmlView * * @author Frances Wang */ public void setAgendaView(IrbAgendaHtmlView newAgendaView) { agendaView = newAgendaView; } /** * Insert the method's description here. Creation date: (9/19/2005 12:33:07 PM) * * @param newDatabase boolean */ public void setDatabase(boolean newDatabase) { database = newDatabase; } /** * Insert the method's description here. Creation date: (05/21/2003 12:43:37 PM) * * @author Frances Wang */ public void setDataSheetFeature() { fontDefault = ttfFontTimes; fontDefaultSize = fontSize12; theStyle.setFont(ttfFontTimes, fontSize12); theStyle.setFillColor(java.awt.Color.black); theStyle.setTextAlign(PDFStyle.TEXTALIGN_LEFT); setPageFeature(theStyle); } /** * TODO: DOCUMENT ME! * * @param fillColor TODO: DOCUMENT ME! * @param lineColor TODO: DOCUMENT ME! */ public void setFrameStyle(Color fillColor, Color lineColor) { theStyle.setFillColor(fillColor); theStyle.setLineColor(lineColor); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 494 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 226 |
toString((Date) queueItem.get(KEY_RELEASE_FOR_VIEW_DATE)) ) ); aCell.setAlign("center"); colNum++; // P.I. aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData((String) queueItem.get(KEY_NAME_UNI))); aCell.setAlign("left"); colNum++; // Species aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData((String) queueItem.get(KEY_SPECIES))); aCell.setAlign("left"); colNum++; // Primary Site aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData( decodeAnimalCarePrimarySite((String) queueItem.get(KEY_PRIMARY_SITE)) ) ); aCell.setAlign("left"); colNum++; // Current Status aCell = aTable.getCell(rowCount, colNum); String param1 = (String) queueItem.get(KEY_CURRENT_STATUS); String convert1 = getAnimalCareStatusDisplayValue(param1.trim()); if (convert1 == null) convert1 = "Still Creating..."; aCell.add(getTableCellData(convert1)); aCell.setAlign("left"); colNum++; // Highest Pain Level aCell = aTable.getCell(rowCount, colNum); String level = "n/a"; if (((String) queueItem.get(KEY_PAIN_LEVEL4)).equalsIgnoreCase("y")) { level = "4"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL3)).equalsIgnoreCase( "y" )) { level = "3"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL2)).equalsIgnoreCase( "y" )) { level = "2"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL1)).equalsIgnoreCase( "y" )) { level = "1"; } aCell.add(getTableCellData(level, "center")); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix B aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_INFECTIOUS_REQ) != null) && (queueItem.get(KEY_INFECTIOUS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix C aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_HUMAN_MATERIAL_REQ) != null) && (queueItem.get(KEY_HUMAN_MATERIAL_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix D aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_LASER_REQ) != null) && (queueItem.get(KEY_LASER_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix E aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_CHEMICALS_REQ) != null) && (queueItem.get(KEY_CHEMICALS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix F aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_ISO_REQ) != null) && (queueItem.get(KEY_RADIO_ISO_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // Strong Radio Frequencies aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_FREQ_REQ) != null) && (queueItem.get(KEY_RADIO_FREQ_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // XRay aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_XRAY_REQ) != null) && (queueItem.get(KEY_XRAY_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 232 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 288 |
aCell2 = utilGetHtmlTableCell("", "500", "left"); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); String textValue; if (getTracker() != null) { if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { // Recommended animal housing aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(REC_ANIMAL_HOUSING + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedHousing() == null) ? "" : getTracker().getRecommendedHousing(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); } // Recommended PPE & SOP String ppeLabel = ""; if (getOwnerSurrogate().getSubject() != null) { ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; ppeLabel = ppeLabel + ":"; } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(ppeLabel, defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedPpe() == null) ? "" : getTracker().getRecommendedPpe(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // Safety Officer's General Comments aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // gather safety officer approval data AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = approvalDate.toString(); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } // spacer addSpacerRows(aTable, 1, 2, "8"); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_SAFETY_OFFICER), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(name), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(approvalDateStr), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval number aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_NUMBER), "300", getTitleAlign() ); textValue = (getTracker().getEhsNumber() == null) ? "" : getTracker().getEhsNumber(); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 239 |
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 416 |
Vector columns = new Vector(3); columns.addElement(formatLabel("Available")); columns.addElement(formatLabel("Move")); columns.addElement(formatLabel("Selected (maximum " + maxSelect + ")")); getTable().addRowFor(columns); int listSize = available.size() + selected.size(); int maxLength = 30; String dummy = "X"; String spaceString = ""; StringBuffer cellBuffer = new StringBuffer(200); // set up cell 0: cellBuffer.append("<SELECT SIZE=\""); cellBuffer.append(listSize); cellBuffer.append("\" MULTIPLE NAME=\""); cellBuffer.append(availableName); cellBuffer.append("\">\n"); if (available.size() == 0) { // construct a "stretcher" record to // make the list box wide enough in // Netscape for (int x = 0; x < (maxLength * 2); x++) { spaceString += " "; } cellBuffer.append("<OPTION value=\""); cellBuffer.append(DUMMYKEY); cellBuffer.append("\">"); cellBuffer.append(spaceString); cellBuffer.append("</OPTION>\n"); } else { for (int i = 0; i < available.size(); i++) { String availableString = (String) available.elementAt(i); int index = availableString.indexOf(";"); String key = availableString.substring(0, index); String value = availableString.substring(index + 1); if (value.length() > maxLength) maxLength = value.length(); cellBuffer.append("<option value=\""); cellBuffer.append(key); cellBuffer.append("\">"); cellBuffer.append(value); cellBuffer.append("</option>\n"); } } cellBuffer.append("</SELECT>\n"); columns.setElementAt(cellBuffer.toString(), 0); // set up cell 1: cellBuffer = new StringBuffer(200); cellBuffer.append( "<INPUT VALUE=\">>\" TYPE=\"BUTTON\" NAME=\"availableToSelected\" onClick=\"moveToSelected('" ); cellBuffer.append(availableName); cellBuffer.append("','"); cellBuffer.append(selectedName); cellBuffer.append("','"); cellBuffer.append(formName); cellBuffer.append("','"); cellBuffer.append(maxSelect); cellBuffer.append("')\">"); cellBuffer.append("\n<br>\n"); cellBuffer.append( "<INPUT VALUE=\"<<\" TYPE=\"BUTTON\" NAME=\"selectedToAvailable\" onClick=\"moveFromTo('" ); cellBuffer.append(selectedName); cellBuffer.append("','"); cellBuffer.append(availableName); cellBuffer.append("','"); cellBuffer.append(formName); cellBuffer.append("')\">\n"); columns.setElementAt(cellBuffer.toString(), 1); // set up cell 2: cellBuffer = new StringBuffer(200); cellBuffer.append("<SELECT SIZE=\""); cellBuffer.append(listSize); cellBuffer.append("\" MULTIPLE NAME=\""); cellBuffer.append(selectedName); cellBuffer.append("\">\n"); if (selected.size() == 0) { // construct a "stretcher" record to make // the list box wide enough in Netscape for (int x = 0; x < (maxLength * 2); x++) { spaceString += " "; } cellBuffer.append("<OPTION value=\""); cellBuffer.append(DUMMYKEY); cellBuffer.append("\">"); cellBuffer.append(spaceString); cellBuffer.append("</OPTION>\n"); } else { for (int i = 0; i < selected.size(); i++) { String selectedString = (String) selected.elementAt(i); int index = selectedString.indexOf(";"); String key = selectedString.substring(0, index); String value = selectedString.substring(index + 1); cellBuffer.append("<OPTION value=\""); cellBuffer.append(key); cellBuffer.append("\">"); cellBuffer.append(value); cellBuffer.append("</OPTION>\n"); } } cellBuffer.append("</SELECT>\n"); columns.setElementAt(cellBuffer.toString(), 2); getTable().addRowFor(columns); for (int i = 0; i < 2; i++) { getTable().getCell(i, 0).setAlign("CENTER"); getTable().getCell(i, 0).setWidth("45%"); getTable().getCell(i, 1).setAlign("CENTER"); getTable().getCell(i, 1).setWidth("10%"); getTable().getCell(i, 2).setAlign("CENTER"); getTable().getCell(i, 2).setWidth("45%"); } } /** * Creates a new $class.name$ object. * * @param availableName TODO: DOCUMENT ME! * @param available TODO: DOCUMENT ME! * @param selectedName TODO: DOCUMENT ME! * @param selected TODO: DOCUMENT ME! * @param fontName TODO: DOCUMENT ME! * @param formName TODO: DOCUMENT ME! * @param maxSelect TODO: DOCUMENT ME! * @param tableWidth TODO: DOCUMENT ME! */ public CUHtmlMoveToSelectList(String availableName, // unique name for // available items // list Vector available, // available items // list String selectedName, // unique name for // selected items // list Vector selected, // selected items // list String fontName, // name of font for // labels String formName, // name of form in |
File | Line |
---|---|
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 242 |
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 419 |
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 594 |
columns.addElement(formatLabel("Selected (maximum " + maxSelect + ")")); getTable().addRowFor(columns); int listSize = available.size() + selected.size(); int maxLength = 30; String dummy = "X"; String spaceString = ""; StringBuffer cellBuffer = new StringBuffer(200); // set up cell 0: cellBuffer.append("<SELECT SIZE=\""); cellBuffer.append(listSize); cellBuffer.append("\" MULTIPLE NAME=\""); cellBuffer.append(availableName); cellBuffer.append("\">\n"); if (available.size() == 0) { // construct a "stretcher" record to // make the list box wide enough in // Netscape for (int x = 0; x < (maxLength * 2); x++) { spaceString += " "; } cellBuffer.append("<OPTION value=\""); cellBuffer.append(DUMMYKEY); cellBuffer.append("\">"); cellBuffer.append(spaceString); cellBuffer.append("</OPTION>\n"); } else { for (int i = 0; i < available.size(); i++) { String availableString = (String) available.elementAt(i); int index = availableString.indexOf(";"); String key = availableString.substring(0, index); String value = availableString.substring(index + 1); if (value.length() > maxLength) maxLength = value.length(); cellBuffer.append("<option value=\""); cellBuffer.append(key); cellBuffer.append("\">"); cellBuffer.append(value); cellBuffer.append("</option>\n"); } } cellBuffer.append("</SELECT>\n"); columns.setElementAt(cellBuffer.toString(), 0); // set up cell 1: cellBuffer = new StringBuffer(200); cellBuffer.append( "<INPUT VALUE=\">>\" TYPE=\"BUTTON\" NAME=\"availableToSelected\" onClick=\"moveToSelected('" ); cellBuffer.append(availableName); cellBuffer.append("','"); cellBuffer.append(selectedName); cellBuffer.append("','"); cellBuffer.append(formName); cellBuffer.append("','"); cellBuffer.append(maxSelect); cellBuffer.append("')\">"); cellBuffer.append("\n<br>\n"); cellBuffer.append( "<INPUT VALUE=\"<<\" TYPE=\"BUTTON\" NAME=\"selectedToAvailable\" onClick=\"moveFromTo('" ); cellBuffer.append(selectedName); cellBuffer.append("','"); cellBuffer.append(availableName); cellBuffer.append("','"); cellBuffer.append(formName); cellBuffer.append("')\">\n"); columns.setElementAt(cellBuffer.toString(), 1); // set up cell 2: cellBuffer = new StringBuffer(200); cellBuffer.append("<SELECT SIZE=\""); cellBuffer.append(listSize); cellBuffer.append("\" MULTIPLE NAME=\""); cellBuffer.append(selectedName); cellBuffer.append("\">\n"); if (selected.size() == 0) { // construct a "stretcher" record to make // the list box wide enough in Netscape for (int x = 0; x < (maxLength * 2); x++) { spaceString += " "; } cellBuffer.append("<OPTION value=\""); cellBuffer.append(DUMMYKEY); cellBuffer.append("\">"); cellBuffer.append(spaceString); cellBuffer.append("</OPTION>\n"); } else { for (int i = 0; i < selected.size(); i++) { String selectedString = (String) selected.elementAt(i); int index = selectedString.indexOf(";"); String key = selectedString.substring(0, index); String value = selectedString.substring(index + 1); cellBuffer.append("<OPTION value=\""); cellBuffer.append(key); cellBuffer.append("\">"); cellBuffer.append(value); cellBuffer.append("</OPTION>\n"); } } cellBuffer.append("</SELECT>\n"); columns.setElementAt(cellBuffer.toString(), 2); getTable().addRowFor(columns); for (int i = 0; i < 2; i++) { getTable().getCell(i, 0).setAlign("CENTER"); getTable().getCell(i, 0).setWidth("45%"); getTable().getCell(i, 1).setAlign("CENTER"); getTable().getCell(i, 1).setWidth("10%"); getTable().getCell(i, 2).setAlign("CENTER"); getTable().getCell(i, 2).setWidth("45%"); } } /** * Creates a new $class.name$ object. * * @param availableName TODO: DOCUMENT ME! * @param available TODO: DOCUMENT ME! * @param selectedName TODO: DOCUMENT ME! * @param selected TODO: DOCUMENT ME! * @param fontName TODO: DOCUMENT ME! * @param formName TODO: DOCUMENT ME! * @param maxSelect TODO: DOCUMENT ME! * @param tableWidth TODO: DOCUMENT ME! */ public CUHtmlMoveToSelectList(String availableName, // unique name for |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingHistoryView.java | 183 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 1242 |
aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // budget end date var = "00/00/0000"; Date end = ptBudget.getProjectBudgetEndDate(); if (end != null) { cal = Calendar.getInstance(); cal.setTime(end); var = CalendarTransformer.toString(cal); } aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Project End Date")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // direct Cost aWidget = getWidgetFor(getLongToDollarStringFor(ptBudget.getProjectBudgetDirectCost())); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Total Direct Cost")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // total MTDC amount aWidget = getWidgetFor(getLongToDollarStringFor(ptBudget.getProjectBudgetMtdcamount())); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Modified Total Direct Costs (the amount on which the F&A rate can be applied.)")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // indirect Cost aWidget = getWidgetFor(getLongToDollarStringFor(ptBudget.getProjectBudgetIndirectCost())); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Total Indirect Cost")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // total amount aWidget = getWidgetFor(getLongToDollarStringFor(ptBudget.getProjectBudgetTotalAmount())); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Total Project Amount (Direct + Indirect)")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // if cost share match aWidget = getWidgetFor(ptBudget.getCostShareMatch()); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Agency Cost Share/Match Required")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // cost share / match amount aWidget = getWidgetFor(getLongToDollarStringFor(ptBudget.getProjectBudgetTotalCostShare())); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Agency Cost Share/Match Amount")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // Anticipated Award type var = ""; temp = ptBudget.getExpenseType(); if (temp != null) var = temp; aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Anticipated Award Type")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // current Account var = ""; temp = ptBudget.getCurrentAccount(); if (temp != null) var = temp; aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Current Account # (9-99999)")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 146 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 145 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDSafetyOfficerApprovalView.java | 103 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 148 |
String ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(ppeLabel, defaultFontSize, true, false), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_PPE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_3_RecommendedPpe("3"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVER_NOTES + "</b>"), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_7_ApproverNotes("7"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval number aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_NUMBER + "</b>"), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_6_EHSNumber("6"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { String recipientsLabel = "Send Approval Notice to:</b><br>(UNIs and/or email addresses separated by commas)"; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(recipientsLabel, defaultFontSize, true, false ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_NoticeRecipients("recipients"), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } // set up safety officer approval information AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + APPROVAL_SAFETY_OFFICER + "</b>" ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + name + "</b>", "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_DATE + "</b>"), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + (CalendarTransformer.formatMMDDYYYY(approvalDate)) + "</b>", "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Owner's Number (Protocol Number, Proposal TrakId) String ownerNumberLabel = (getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) ? PROPOSAL_TRAK_ID : PROTOCOL_NUMBER; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(ownerNumberLabel), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(getOwnerSurrogate().getOwnerNumber(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCancerCenterCorrespondenceView.java | 240 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairCorrespondenceView.java | 303 |
} /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVector(java.util.Vector newResultVector) { resultVector = newResultVector; } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVectorAE(java.util.Vector newResultVector) { resultVectorAE = newResultVector; } /** * TODO: DOCUMENT ME! * * @param row TODO: DOCUMENT ME! * @param rowColor TODO: DOCUMENT ME! */ public void setTableDataRow(Vector row, String rowColor) { StringBuffer parmString = new StringBuffer(); StringBuffer buff = new StringBuffer(); String element0 = (String) row.elementAt(0); String element1 = (String) row.elementAt(1); String element2 = (String) row.elementAt(2); String protocolNumber = element1.substring(0, 8); getAForm().add("<TR BGCOLOR=\"" + rowColor + "\" >"); // 1 protocol link getAForm().add("<TD ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\"><A "); buff.append("HREF="); buff.append(getProtocolLinkStringFor(element1)); buff.append('>'); buff.append(getPrefix()); buff.append(element1); buff.append("</FONT></A></TD>"); getAForm().add(buff.toString()); // 2 event Name -- data sheet Link String eventName = element2; if (element2.equals(IrbNameConstants.PROTOCOL_HEADER)) { eventName = IrbNameConstants.PROTOCOL; } buff = new StringBuffer(); buff.append("<TD ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\"><A "); buff.append("HREF="); buff.append(getObjectLinkStringFor(eventName, (String) row.elementAt(5), element2, element0) ); buff.append("</FONT></A></TD>"); getAForm().add(buff.toString()); // 3 a link to the pop up window for view all correspondence CUHtmlImage i = new CUHtmlImage("/images/popup.gif"); i.setBorderWidth(0); i.setAlt("Review All"); i.setLink("''"); i.setOnClick("return openNew('" + IrbTreeMainServlet.class.getName() + "?parentOid=" + row.elementAt(5) + "&&parentName=" + element2 + "', 'ReviewAllCorrespondence', 'toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=yes,resizable=yes,copyhistory=no,width=700,height=500')" ); getAForm().add("<TD ALIGN=\"center\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">"); getAForm().add(i); getAForm().add("</FONT></A></TD>"); // Disposition Action cell 4 getAForm().add("<TD ALIGN=\"center\"><A "); parmString = new StringBuffer(); parmString.append("Javascript:onClick=parent.frames[1].location='"); parmString.append(IrbLinkFrameServlet.class.getName()); parmString.append("';parent.frames[2].location='"); parmString.append(IrbCorrespondenceDispositionServlet.class.getName()); parmString.append("?correspondenceOid="); parmString.append((String) row.elementAt(7)); parmString.append("&&recipientOid="); parmString.append((String) row.elementAt(8)); parmString.append('\''); buff = new StringBuffer(); buff.append("HREF="); buff.append(parmString.toString()); buff.append('>'); buff.append("<IMG BORDER=\"0\" ALT=\"Action\" SRC=\"/images/popup.gif\"></A></IMG></TD>"); getAForm().add(buff.toString()); // 5 title String title = (String) row.elementAt(3); String aTitle = ""; if (title != null) { aTitle = title; aTitle = ((aTitle.length() > 30) ? aTitle.substring(0, 30) : aTitle); } buff = new StringBuffer(); buff.append("<TD ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">"); buff.append(aTitle); buff.append("</FONT></TD>"); // 6 PI/Initiator buff.append("<TD ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">"); buff.append((String) row.elementAt(4)); buff.append("</FONT></TD>"); // 7 Correspondence Author buff.append("<TD ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">"); buff.append((String) row.elementAt(9)); buff.append("</FONT></TD>"); // 8 notify date buff.append("<TD ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">"); buff.append(CalendarTransformer.toDateTimeString((String) row.elementAt(6))); buff.append("</FONT></TD>"); buff.append("</TR>"); getAForm().add(buff.toString()); } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @return java.util.Vector */ protected java.util.Vector getResultVector() { return resultVector; } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @return java.util.Vector */ protected java.util.Vector getResultVectorAE() { return resultVectorAE; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 872 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 1002 |
i.setOnClick("return agencyOpenSearchWindow('agencyName','agencyCode','none')"); i.setLink("RascalAgencyLookup"); i.setBorderWidth(0); columns.setElementAt(i, 3); columns.setElementAt(t, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select a Sponsor ", "pt27.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; columns.setElementAt("", 2); // clear these cells columns.setElementAt("", 3); // agency code aWidget = getHiddenWidgetFor("agencyCode", ""); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // agency address line 1 var = ""; temp = ptBudget.getAddressLine1(); if (temp != null) var = temp; aWidget = getEditWidgetFor("agencyAddress1", var, "40", "60"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Mailing Address 1", "pt38.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // agency address line 2 var = ""; temp = ptBudget.getAddressLine2(); if (temp != null) var = temp; aWidget = getEditWidgetFor("agencyAddress2", var, "40", "60"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Mailing Address 2", "pt39.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // agency address line 3 var = ""; temp = ptBudget.getAddressLine3(); if (temp != null) var = temp; aWidget = getEditWidgetFor("agencyAddress3", var, "40", "60"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Mailing Address 3", "pt40.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // agency city var = ""; temp = ptBudget.getCity(); if (temp != null) var = temp; aWidget = getEditWidgetFor("agencyCity", var, "40", "60"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("City", "pt41.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // agency state var = ""; temp = ptBudget.getState(); if (temp != null) var = temp; aWidget = getEditWidgetFor("agencyState", var, "2", "2"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("State", "pt42.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // agency zip var = ""; temp = ptBudget.getZip(); if (temp != null) var = temp; aWidget = getEditWidgetFor("agencyZip", var, "10", "10"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Postal Code", "pt43.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // agency country var = ""; temp = ptBudget.getCountry(); if (temp != null) var = temp; aWidget = getEditWidgetFor("agencyCountry", var, "40", "60"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Country", "pt44.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; } else { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFUtilityView.java | 71 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFView.java | 70 |
public IrbAgendaPDFUtilityView(String layout, boolean database) { super(layout, database); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param label TODO: DOCUMENT ME! * @param text TODO: DOCUMENT ME! */ public void addBoldLabelPlainText(String label, String text) { theStyle.setFont(ttfFontTimesB, fontSize12); addBoldLabelPlainText(label, text, theStyle); } /** * TODO: DOCUMENT ME! * * @param label TODO: DOCUMENT ME! * @param text TODO: DOCUMENT ME! * @param style TODO: DOCUMENT ME! */ public void addBoldLabelPlainText(String label, String text, PDFStyle style) { setLeftStarting(getPageWidth() - getRightPageMargin()); setRightStarting(getPageWidth() - getRightPageMargin()); if (!label.equalsIgnoreCase("")) { theStyle.setFont(ttfFontTimesB, theStyle.getFontSize()); addContent(label, "", theStyle); } theStyle.setFont(fontDefault, theStyle.getFontSize()); if (!text.equals("")) { addContent(text, "", theStyle); } } /** * TODO: DOCUMENT ME! * * @param agendaView TODO: DOCUMENT ME! */ public void addHeader(IrbAgendaHtmlView agendaView) { setFrameStyle(Color.lightGray, Color.lightGray); getPDFPage().setStyle(theStyle); float oriHeight = getHeight(); addContent(".", ".", theStyle); if (!getClass().getName().contains("IrbAgendaPDFDataSheetView")) { getPDFPage().drawRectangle(getLeftPageMargin(), getHeight() + 11, getPageWidth() - getRightPageMargin(), getHeight() + 11 - (theStyle.getFontLeading() * 4) ); } else { getPDFPage().drawRectangle(getLeftPageMargin(), getHeight() + 11, getPageWidth() - getRightPageMargin(), getHeight() + 11 - (theStyle.getFontLeading() * 3) ); } theStyle.setFont(fontTimesB, fontSize12); theStyle.setFillColor(java.awt.Color.black); theStyle.setLineColor(java.awt.Color.black); theStyle.setTextAlign(PDFStyle.TEXTALIGN_LEFT); PDFStyle styleLeft = (PDFStyle) theStyle.clone(); styleLeft.setTextAlign(PDFStyle.TEXTALIGN_RIGHT); oriHeight = getHeight(); setLeftStarting(getPageWidth() / 4); setRightStarting(getLeftStarting() + 10); String agendaNum = getNotNullString(agendaView.getAgendaHeader().getAgendaNumber(), ""); setAgendaNumberForDataSheet("AG-" + agendaNum); addContent("Agenda Number: ", "AG-" + agendaNum, styleLeft, theStyle); String createdDate = getNotNullString(CalendarTransformer.formatMMDDYYYY( agendaView.getAgendaHeader().getCreationDate() ), "" ); addContent("Date Created: ", createdDate, styleLeft, theStyle); if (!getClass().getName().contains("IrbAgendaPDFDataSheetView")) { String beginTime = getNotNullString(CalendarTransformer.toTimeString( agendaView.getAgendaHeader().getMeetingBeginTime() ), "" ); addContent("Meeting Begin Time: ", beginTime, styleLeft, theStyle); } addContent("Committee: ", ServiceLocator.getIrbCommitteeService().findById( agendaView.getAgendaHeader().getCommitteeId() ).getCommitteeName(), styleLeft, theStyle ); // right part setLeftStarting(getPageWidth() * 2 / 3); setRightStarting(getLeftStarting() + 10); setHeight(oriHeight); String status = getNotNullString(ServiceLocator.getIrbAgendaHeaderService() .getCurrentStatus(agendaView.getAgendaHeader()).getStatusName(), "" ); if (!getClass().getName().contains("IrbAgendaPDFDataSheetView")) { addContent("Minutes Status: ", status, styleLeft, theStyle); } else { addContent("Agenda Status: ", status, styleLeft, theStyle); } String meetingDate = getNotNullString(CalendarTransformer.formatMMDDYYYY( agendaView.getAgendaHeader().getMeetingDate() ), "" ); addContent("Meeting Date: ", meetingDate, styleLeft, theStyle); if (!getClass().getName().contains("IrbAgendaPDFDataSheetView")) { String endTime = getNotNullString(CalendarTransformer.toTimeString( agendaView.getAgendaHeader().getMeetingEndTime() ), "" ); addContent("Meeting End Time: ", endTime, styleLeft, theStyle); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 59 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 57 |
render(); } //~ Methods ------------------------------------------------------------------------------------ /** Insert the method's description here. Creation date: (1/2/2003 11:34:23 AM) */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); // aRow.addElement("<font face = \"Comic Sans MS\" size = \"1\">*Hold down the Command key // (MAC) or Control key (Windows) to select multiple fields.</font>"); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); getAForm().add(getHiddenWidgetFor("dateValid", "true")); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Calendar start = Calendar.getInstance(); start.add(Calendar.MONTH, -6); // Go back 6 months String startDate = CalendarTransformer.toString(start); String endDate = CalendarTransformer.toString(Calendar.getInstance()); Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; aTable.setCellSpacing(15); aWidget = getWidgetFor("You may select a date range of up to 6 months in length."); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; columns.setElementAt(getDateTable(startDate, "startDate", "startDateMonth", "startDateDay", "startDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Submitted Between ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; columns.setElementAt(getDateTable(endDate, "endDate", "endDateMonth", "endDateDay", "endDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("And ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // affiliated institution- multi select list aWidget = getFieldMultiSelectWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Fields *")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; aWidget = getWidgetFor( "*Hold down the Command key (MAC) or Control key (Windows) to select multiple fields." ); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; } /** * Insert the method's description here. Creation date: (1/2/2003 11:43:27 AM) * * @return java.lang.String */ public String getAction() { return action; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit", "checkDateForSubmit(startDate);checkDateForSubmit(endDate);return isDateValid()" ); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * Insert the method's description here. Creation date: (1/2/2003 11:41:52 AM) * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return CUHtmlList */ public Object getFieldMultiSelectWidget() { EVector list = new EVector(); list.addElement("ProtocolNumber"); list.addElement("ProductType"); list.addElement("ProductName"); list.addElement("Manufacturer"); list.addElement("PI"); // list.addElement("Committee"); list.addElement("Submitted"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 219 |
edu/columbia/rascal/presentation/appendix/pages/AppendixISafetyOfficerApprovalView.java | 140 |
AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + APPROVAL_SAFETY_OFFICER + "</b>" ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + name + "</b>", "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_DATE + "</b>"), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + (CalendarTransformer.formatMMDDYYYY(approvalDate)) + "</b>", "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Owner's Number (Protocol Number, Proposal TrakId) String ownerNumberLabel = (getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) ? PROPOSAL_TRAK_ID : PROTOCOL_NUMBER; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(ownerNumberLabel), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(getOwnerSurrogate().getOwnerNumber(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { // set up // Veterinarian // approval // information AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); if (vetApproval != null) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // spacer addSpacerRows(aTable, 1, 2, "10"); // Veterinarian Name aRow = new CUHtmlTableRow(); name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(VETERINARIAN_NAME), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(name, "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Veterinarian approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(CalendarTransformer.formatMMDDYYYY(approvalDate), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } } getForm().add(aTable); } /** * NOTE: method name is not desciptive of its function in this view * * <p>This method was created in VisualAge.</p> * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlItem * * @throws Exception TODO: DOCUMENT ME! */ @Override protected CUHtmlItem fieldGet_1_ReviewAndApproveText() throws Exception { StringBuffer aChemBuffer = new StringBuffer(500); Set<AppendixChemical> chems = ((AppendixE) getAppendixObject()).getAppendixChemicals(); int siz = chems.size(); int i = 0; Iterator it = chems.iterator(); while (it.hasNext()) { AppendixChemical chem = (AppendixChemical) it.next(); aChemBuffer.append((String) chem.getName()); if ((i + 1) < siz) { aChemBuffer.append(", "); } i++; } if (siz < 1) aChemBuffer.append(" n/a "); return new CUHtmlText("<font face=\"" + getDefaultFontName() + "\" size=\"2\"color=black>" + APPROVAL_TEXT1 + " <b><u>" + aChemBuffer.toString() + "</u>.</b>"); } /** * This method was created in VisualAge. * * @return String value of the Appendix letter, e.g. "A", "C", etc. This letter appears in the * Appendix title - "APPENDIX A". */ @Override protected String infoGetAppendixLetter() { return APPENDIX_LETTER; |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 1060 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 1187 |
public static Vector getProtocolChildrenFor(String protocolNumber) { Vector results = new Vector(0); Vector row = new Vector(2); try { // protocols java.sql.ResultSet res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( getNewProtocolsForProtNumberSql(protocolNumber, "N", "not in") ); while (res.next()) { row.addElement(IrbNameConstants.PROTOCOL_HEADER); row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); results.addElement(row); row = new Vector(2); } // expedited res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( getExProtForProtNumberSql(protocolNumber, "N", "in") ); while (res.next()) { row.addElement(IrbNameConstants.EXPEDITED); row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); results.addElement(row); row = new Vector(2); } // exempt res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( getExProtForProtNumberSql(protocolNumber, "Y", "not in") ); while (res.next()) { row.addElement(IrbNameConstants.EXEMPT); row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); results.addElement(row); row = new Vector(2); } // renewals res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( getRenewalsForProtNumberSql(protocolNumber) ); while (res.next()) { row.addElement(IrbNameConstants.RENEWAL); row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); results.addElement(row); row = new Vector(2); } // modifications res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( getModificationsForProtNumberSql(protocolNumber) ); while (res.next()) { row.addElement(IrbNameConstants.MODIFICATION); row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); results.addElement(row); row = new Vector(2); } // adverse events res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( getAdverseEventsForProtNumberSql(protocolNumber) ); while (res.next()) { row.addElement(IrbNameConstants.ADVERSE_EVENT); row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); results.addElement(row); row = new Vector(2); } // unanticipate res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( getUnanticipateForProtNumberSql(protocolNumber) ); while (res.next()) { row.addElement(IrbNameConstants.UNANTICIPATED_PROBLEM); row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); results.addElement(row); row = new Vector(2); } // closure res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( getClosureForProtNumberSql(protocolNumber) ); while (res.next()) { row.addElement(IrbNameConstants.CLOSURE); row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); results.addElement(row); row = new Vector(2); } } catch (Exception e) { log.error(e); } return results; } /** * TODO: DOCUMENT ME! * * @param protocolNumber TODO: DOCUMENT ME! * @param acc TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static Vector getProtocolChildrenFor(String protocolNumber, CURascalJdbcAccessor acc) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingHistoryView.java | 342 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 1393 |
var = ""; temp = ptBudget.getAgencyName(); if (temp != null) var = temp; aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Agency Name")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // agency address line 1 var = ""; temp = ptBudget.getAddressLine1(); if (temp != null) var = temp; aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Address Line 1")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // agency address line 2 var = ""; temp = ptBudget.getAddressLine2(); if (temp != null) var = temp; aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Address Line 2")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // agency address line 3 var = ""; temp = ptBudget.getAddressLine3(); if (temp != null) var = temp; aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Address Line 3")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // agency city var = ""; temp = ptBudget.getCity(); if (temp != null) var = temp; aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("City")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // agency state var = ""; temp = ptBudget.getState(); if (temp != null) var = temp; aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("State")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // agency zip var = ""; temp = ptBudget.getZip(); if (temp != null) var = temp; aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Zip")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // agency country var = ""; temp = ptBudget.getCountry(); if (temp != null) var = temp; aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Country")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovedCountView.java | 334 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionCountView.java | 331 |
aTable.getCell(0, 6).setWidth("10%"); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param results TODO: DOCUMENT ME! * @param aTable TODO: DOCUMENT ME! */ public void getReportWidget(Vector results, CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); String aTitle; CUHtmlTableCell header; String avgValue = null; Vector columns = getColumns(); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(aTitle, 2, false)); aCell.setAlign("right"); aRow.add(aCell); } aTable.add(aRow); aRow = new CUHtmlTableRow(); columns = getSecondRows(); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor("", 1, false)); aCell.setAlign("right"); aRow.add(aCell); for (int i = 1; i < 4; i++) { aTitle = ((String) columns.elementAt(i)); aCell = new CUHtmlTableCell(); aCell.add(getThreeElementsTable("FB", "EXE", "EXP")); aCell.setAlign("right"); aRow.add(aCell); } for (int i = 4; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(aTitle, 1, false)); aCell.setAlign("right"); aRow.add(aCell); } aTable.add(aRow); Vector committeIds = ServiceLocator.getIrbCommitteeService().getCommitteeNames(); int rows = results.size(); for (int i = 0; i < rows; i++) { aRow = new CUHtmlTableRow(); Vector currentRow = (Vector) results.elementAt(i); // committeeId aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) committeIds.elementAt(i), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // new protocols aCell = new CUHtmlTableCell(); aCell.add(getThreeElementsTable(currentRow.elementAt(0) + "", currentRow.elementAt(1) + "", currentRow.elementAt(2) + "" ) ); aCell.setAlign("right"); aRow.add(aCell); // renewals aCell = new CUHtmlTableCell(); aCell.add(getThreeElementsTable(currentRow.elementAt(3) + "", currentRow.elementAt(4) + "", currentRow.elementAt(5) + "" ) ); aCell.setAlign("right"); aRow.add(aCell); // mods aCell = new CUHtmlTableCell(); aCell.add(getThreeElementsTable(currentRow.elementAt(6) + "", currentRow.elementAt(7) + "", currentRow.elementAt(8) + "" ) ); aCell.setAlign("right"); aRow.add(aCell); // AE aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(9), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // Term aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(10), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // UP aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(11), 2, false)); aCell.setAlign("right"); aRow.add(aCell); aTable.add(aRow); } aTable.getCell(0, 0).setWidth("9%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 83 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 84 |
setAgendaView(new IrbAgendaMinutesDataSheetUtilityView()); getAgendaView().setAgendaHeader((IrbAgendaHeader) bo); getAgendaView().setRascalUser(aUser); unitXy = (getPageWidth() - getLeftPageMargin() - getRightPageMargin()) / 100; try { constructPDF(); addMeetingAttendants(meetingAttendants); addAttendanceNotes(); long agendaHeaderOid = ((IrbAgendaHeader) bo).getId(); // add protocol if (protocolAttached.size() > 0) { addProtocolAttached(agendaHeaderOid, "New Protocols", protocolAttached, IrbNameConstants.PROTOCOL_HEADER ); } if (NRprotocolAttached.size() > 0) { addNRAttached("New Protocols", NRprotocolAttached, IrbNameConstants.PROTOCOL_HEADER); } // add modification if (modificationAttached.size() > 0) { addProtocolAttached(agendaHeaderOid, "Modifications", modificationAttached, IrbNameConstants.MODIFICATION ); } if (NRmodificationAttached.size() > 0) { addNRAttached("Modifications", NRmodificationAttached, IrbNameConstants.MODIFICATION); } // add renewal if (renewalAttached.size() > 0) { addProtocolAttached(agendaHeaderOid, "Renewals", renewalAttached, IrbNameConstants.RENEWAL); } if (NRrenewalAttached.size() > 0) { addNRAttached("Renewals", NRrenewalAttached, IrbNameConstants.RENEWAL); } // add adverseEvent if (adverseEventAttached.size() > 0) { addProtocolAttached(agendaHeaderOid, "Adverse Event Reports", adverseEventAttached, IrbNameConstants.ADVERSE_EVENT ); } if (NRadverseEventAttached.size() > 0) { addNRAttached("Adverse Event Reports", NRadverseEventAttached, IrbNameConstants.ADVERSE_EVENT); } // add closure if (closureAttached.size() > 0) { addProtocolAttached(agendaHeaderOid, "Closure Reports", closureAttached, IrbNameConstants.CLOSURE ); } if (NRclosureAttached.size() > 0) { addNRAttached("Closure Reports", NRclosureAttached, IrbNameConstants.CLOSURE); } // add unanticipate if (unanticipateAttached.size() > 0) { addProtocolAttached(agendaHeaderOid, "Unanticipated Problems", unanticipateAttached, IrbNameConstants.UNANTICIPATED_PROBLEM ); } if (NRunanticipateAttached.size() > 0) { addNRAttached("Unanticipated Problems", NRunanticipateAttached, IrbNameConstants.UNANTICIPATED_PROBLEM ); } // add other topics if (otherTopics.size() > 0) { addOtherEventAttached("Other Topics", otherTopics, "Other"); } Vector oldBusinessAttached = ((IrbAgendaHeader) bo).getAllAgendaEventsByType( "OldBusiness" ); // add Old Business if (oldBusinessAttached.size() > 0) { addBusinessAttached(agendaHeaderOid, "Old Business", oldBusinessAttached, "OldBusiness" ); } Vector newBusinessAttached = ((IrbAgendaHeader) bo).getAllAgendaEventsByType( "NewBusiness" ); // add New Business if (newBusinessAttached.size() > 0) { addBusinessAttached(agendaHeaderOid, "New Business", newBusinessAttached, "NewBusiness" ); } String pa = "Previously " + APPROVED + " "; // add exemptions if (exemptAttached.size() > 0) { addExEventAttached(pa + "Exempt Protocols", exemptAttached, IrbNameConstants.EXEMPT); } if (NRexemptAttached.size() > 0) { addNRAttached(pa + "Exempt Protocols", NRexemptAttached, IrbNameConstants.EXEMPT); } // add expeditable if (expeditableAttached.size() > 0) { addExEventAttached(pa + "Expedited Protocols", expeditableAttached, IrbNameConstants.EXPEDITED); } if (NRexpeditableAttached.size() > 0) { addNRAttached(pa + "Expedited Protocols", NRexpeditableAttached, IrbNameConstants.EXPEDITED); } // add pending if (pendingAttached.size() > 0) { addExEventAttached(pa + "Pending", pendingAttached, PENDING); } if (NRpendingAttached.size() > 0) { addNRAttached(pa + "Pending", NRpendingAttached, PENDING); } addMeetingNotes(); addAddendums(); } catch (Exception ne) { throw new NullPointerException("constructPDF() " + ne.getMessage()); } } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addAddendums() { IrbAgendaHeader agendaHeader = getAgendaView().getAgendaHeader(); StringBuffer text = new StringBuffer(); if (agendaHeader != null) { List<IrbAgendaAddendum> addendums = agendaHeader.getIrbAgendaAddendums(); if (addendums != null) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 618 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 713 |
public static Vector buildStipulatedApprovalResults(java.sql.ResultSet res, String name, Vector v ) { Hashtable row = new Hashtable(); int modify = 0; try { if (isProtocol(name)) { while (res.next()) { row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString() ); // protocol oid modify = res.getInt(4); row.put("ProtocolNumber", res.getString(2) + " (Y" + res.getInt(3) + " M" + ((modify < 10) ? ("0" + (Integer.valueOf(modify)).toString()) : (Integer.valueOf(modify)).toString()) + ")" ); // protocol number row.put("EventName", name); row.put("Title", res.getString(6)); // title row.put("PI", res.getString(5)); // PI row.put("EventOid", Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString() ); // event oid row.put("StatusName", res.getString(8)); row.put("ApprovalOid", Integer.valueOf((new Float(res.getFloat(9))).intValue()).toString() ); // approvalOid row.put("ApprovalCode", res.getString(10)); // approval code if (res.getDate(11) == null) { row.put("StatusDate", ""); } else { row.put("StatusDate", CalendarTransformer.formatMMDDYYYY(res.getDate(11))); } row.put("WesternIRB", res.getString(12)); // Western IRB v.addElement(row); row = new Hashtable(); } // end while } else { while (res.next()) { row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString() ); // protocol oid row.put("ProtocolNumber", res.getString(2)); row.put("EventName", name); row.put("Title", (res.getString(4) == null) ? "" : res.getString(4)); // title row.put("PI", res.getString(3)); // PI row.put("EventOid", Integer.valueOf((new Float(res.getFloat(5))).intValue()).toString() ); // event oid row.put("StatusName", res.getString(6)); row.put("ApprovalOid", Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString() ); // ApprovalOid row.put("ApprovalCode", res.getString(8)); // approval code if (res.getDate(9) == null) { row.put("StatusDate", ""); } else { if (name.equals("AdverseEvent")) row.put("StatusDate", res.getString(9)); else row.put("StatusDate", CalendarTransformer.formatMMDDYYYY(res.getDate(9)) ); } v.addElement(row); row = new Hashtable(); } // end while } } catch (Exception e) { log.error("Exception while Running query", e); } return v; } /** * TODO: DOCUMENT ME! * * @param res TODO: DOCUMENT ME! * @param name TODO: DOCUMENT ME! * @param v TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static Vector buildStipulatedApprovedResults(java.sql.ResultSet res, String name, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 275 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 697 |
aBuffer.append("</b></u>."); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(aBuffer.toString(), "100%", getTitleAlign()); aCell2 = utilGetHtmlTableCell("", "500", "left"); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); String textValue; if (getTracker() != null) { if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { // Recommended animal housing aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(REC_ANIMAL_HOUSING + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedHousing() == null) ? "" : getTracker().getRecommendedHousing(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); } // Recommended PPE & SOP String ppeLabel = ""; if (getOwnerSurrogate().getSubject() != null) { ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; ppeLabel = ppeLabel + ":"; } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(ppeLabel, defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedPpe() == null) ? "" : getTracker().getRecommendedPpe(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // Safety Officer's General Comments aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = CalendarTransformer.toString(approvalDate); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } // spacer addSpacerRows(aTable, 1, 2, "8"); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 436 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 527 |
public static Vector buildCTSAApprovalResults(java.sql.ResultSet res, String name, Vector v) { Hashtable row = new Hashtable(); int modify = 0; try { if (isProtocol(name)) { while (res.next()) { row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString() ); // protocol oid modify = res.getInt(4); row.put("ProtocolNumber", res.getString(2) + " (Y" + res.getInt(3) + " M" + ((modify < 10) ? ("0" + (Integer.valueOf(modify)).toString()) : (Integer.valueOf(modify)).toString()) + ")" ); // protocol number row.put("EventName", name); row.put("Title", res.getString(6)); // title row.put("PI", res.getString(5)); // PI row.put("EventOid", Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString() ); // event oid row.put("StatusName", res.getString(8)); row.put("ApprovalOid", Integer.valueOf((new Float(res.getFloat(9))).intValue()).toString() ); // approvalOid row.put("ApprovalCode", res.getString(10)); // approval code if (res.getDate(11) == null) { row.put("StatusDate", ""); } else { row.put("StatusDate", CalendarTransformer.formatMMDDYYYY(res.getDate(11))); } v.addElement(row); row = new Hashtable(); } // end while } else { while (res.next()) { row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString() ); // protocol oid row.put("ProtocolNumber", res.getString(2)); row.put("EventName", name); row.put("Title", (res.getString(4) == null) ? "" : res.getString(4)); // title row.put("PI", res.getString(3)); // PI row.put("EventOid", Integer.valueOf((new Float(res.getFloat(5))).intValue()).toString() ); // event oid row.put("StatusName", res.getString(6)); row.put("ApprovalOid", Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString() ); // ApprovalOid row.put("ApprovalCode", res.getString(8)); // approval code if (res.getDate(9) == null) { row.put("StatusDate", ""); } else { if (name.equals("AdverseEvent")) row.put("StatusDate", res.getString(9)); else row.put("StatusDate", CalendarTransformer.formatMMDDYYYY(res.getDate(9)) ); } v.addElement(row); row = new Hashtable(); } // end while } } catch (Exception e) { log.error("Exception while Running query", e); } return v; } /** * TODO: DOCUMENT ME! * * @param res TODO: DOCUMENT ME! * @param name TODO: DOCUMENT ME! * @param v TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static Vector buildCTSAApprovedResults(java.sql.ResultSet res, String name, Vector v) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentInternalView.java | 248 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentView.java | 242 |
} /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param aLocation TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getLinkWidgetFor(String aString, String aLocation) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } CUHtmlText text = new CUHtmlText(aString); text.setLink("'" + aLocation + "'"); text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** @see edu.columbia.rascal.presentation.irb.pages.IrbHtmlView#getProtocolGeneralHeaderHtml() */ @Override public String getProtocolGeneralHeaderHtml() { String s = ""; String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; IrbProtocolHeader ph = getProtocol().getLastProtocolHeader(); setProtocolHeader(ph); // String department = (getProtocolHeader().getOriginatingDepartment().trim().equals("") ? blank : // getProtocolHeader().getOriginatingDepartment()); String departmentCode = (getProtocolHeader().getOriginatingDepartment().trim().equals("") ? blank : getProtocolHeader().getOriginatingDepartment()); String department = ""; if (!departmentCode.equals(blank)) department = ServiceLocator.getRascalDepartmentService().findById(departmentCode) .getName() + " " + "(" + departmentCode + ")"; else department = blank; add(getSubTitle()); s += "<table width=\"100%\" border=\"1\" bgcolor=\"#CCCCCC\">"; s += "<tr> "; s += "<td colspan=\"2\"> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Protocol Number</font> </div>"; s += "</td> <td colspan=\"2\"> <font face=\"Comic Sans MS\" size=\"1\"> "; s += getPrefix() + ((getProtocolHeader().getIrbProtocol().getProtocolNumber() == null) ? "" : getProtocolHeader().getIrbProtocol().getProtocolNumber()); s += "</font></td> </tr> <tr> <td width=\"25%\"> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">You are</font></div>"; s += "</td> <td><font face=\"Comic Sans MS\" size=\"1\">"; s += getRascalUser().getUserFirstLastNameUni(); s += "</font></td> <td width=\"25%\"> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Department</font></div>"; s += "</td> <td width=\"25%\"> <font face=\"Comic Sans MS\" size=\"1\"> "; s += department + "</font></td> </tr> <tr> <td> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Principal Investigator</font></div></td><td>"; s += (((CUHtmlItem) getWidgetFor( ServiceLocator.getIrbProtocolHeaderService().getParticipantString( "Principal Investigator", getProtocolHeader() ) )).getHtml()); s += "</td> <td> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Initiator</font></div>"; s += "</td> <td>"; if ((getUnanticipate() != null) && (getUnanticipate().getCreatedBy() != 0)) { s += (((CUHtmlItem) getWidgetFor( ServiceLocator.getRascalUserService().findById( getUnanticipate().getCreatedBy() ).getUserFirstLastNameUni() )).getHtml()); } else s += (((CUHtmlItem) getWidgetFor( getRascalUser().getNameFirst() + " " + getRascalUser().getNameLast() + "(" + getRascalUser().getUserId() + ")" ))).getHtml(); s += "</font></td> </tr> <tr> <td> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Date Created</font></div>"; s += "</td> <td> "; if (getUnanticipate() != null) s += (((CUHtmlItem) getWidgetFor( CalendarTransformer.toDateTimeString(getUnanticipate() .getCreationDate() ) )).getHtml()); else s += blank; s += "</td><td colspan=\"2\"> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\"> " + blank + "</font> </div>"; s += "</table> <br>"; return s; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public IrbUnanticipatedProblem getUnanticipate() { return unanticipatedProblem; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setAttachmentHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableCell header; String statusName = ServiceLocator.getIrbStatusService().getCurrentStatus(getUnanticipate() .getId(), getUnanticipate().classNameWithoutPrefix() ).getStatusName(); String titles[] = { "View Document", "File Name", "Date Attached", "Edit" }; int titleLen = titles.length; for (int i = 0; i < titleLen; i++) { aTitle = new CUHtmlText(titles[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("center"); } if (CURascalGuardian.hasIrbRascal()) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/auxilliary/objects/IrbSearchParametersParser.java | 62 |
edu/columbia/rascal/presentation/irb/auxilliary/objects/IrbSearchParametersParser.java | 274 |
public IrbSearchParameters parseIrbSearchParameters(IrbProtocolAdminChairSearchServlet servlet) throws CURascalParseException { IrbSearchParameters srchParams; String rascalUser = servlet.getRequestParameter("RascalUser"); String rascalUserUni = servlet.getRequestParameter("RascalUserUni"); String originatingDepartment = servlet.getRequestParameter("OriginatingDepartment"); String originatingDepartmentName = servlet.getRequestParameter("OriginatingDepartmentName"); String product = servlet.getRequestParameter("DrugDeviceBiologic"); String humanSpecimen = servlet.getRequestParameter("HumanSpecimen"); String previousProtocolNumber = servlet.getRequestParameter("previousProtocolNumber"); String paperProtocolNumber = servlet.getRequestParameter("paperProtocolNumber"); String title = servlet.getRequestParameter("Title"); String excludeExpired = servlet.getRequestParameter(IrbStatusConstants.EXPIRED); String excludeInvalid = servlet.getRequestParameter(IrbStatusConstants.INVALID); String excludeClosured = servlet.getRequestParameter(IrbStatusConstants.CLOSURED); String excludeCreated = servlet.getRequestParameter(IrbStatusConstants.CREATING); String userId = servlet.getUser().getUserId(); boolean emptySearch = true; srchParams = new IrbSearchParameters(); String searchType = servlet.getRequestParameter("anyAll"); srchParams.setSearchType(searchType); try { CURascalBasicSearchParser parser = CURascalBasicSearchParser.getInstance(); if (!isEmpty(rascalUserUni)) { parser.initParser(rascalUserUni); srchParams.setRascalUserUni(parser.parse()); emptySearch = false; } if (!isEmpty(rascalUser)) { parser.initParser(rascalUser); srchParams.setRascalUser(parser.parse()); emptySearch = false; } if (!isEmpty(userId)) { parser.initParser(userId); srchParams.setUserId(parser.parse()); emptySearch = false; } if (!isEmpty(paperProtocolNumber)) { parser.initParser(paperProtocolNumber); srchParams.setPaperProtocolNumber(parser.parse()); emptySearch = false; } if (!isEmpty(previousProtocolNumber)) { parser.initParser(previousProtocolNumber); srchParams.setPreviousProtocolNumber(parser.parse()); emptySearch = false; } if (!isEmpty(originatingDepartment)) { parser.initParser(originatingDepartment); srchParams.setOriginatingDepartment(parser.parse()); emptySearch = false; } if (!isEmpty(originatingDepartmentName)) { parser.initParser(originatingDepartmentName); srchParams.setOriginatingDepartmentName(parser.parse()); emptySearch = false; } if (!isEmpty(product)) { parser.initParser(product); srchParams.setDrugDeviceBiologic(parser.parse()); emptySearch = false; } if (!isEmpty(humanSpecimen)) { parser.initParser(humanSpecimen); srchParams.setHumanSpecimen(parser.parse()); emptySearch = false; } if (!isEmpty(title)) { parser.initParser(title); srchParams.setTitle(parser.parse()); emptySearch = false; } if (!isEmpty(excludeExpired)) { parser.initParser(excludeExpired); srchParams.setExcludeExpired(parser.parse()); emptySearch = false; } if (!isEmpty(excludeInvalid)) { parser.initParser(excludeInvalid); srchParams.setExcludeInvalid(parser.parse()); emptySearch = false; } if (!isEmpty(excludeClosured)) { parser.initParser(excludeClosured); srchParams.setExcludeClosured(parser.parse()); emptySearch = false; } if (!isEmpty(excludeCreated)) { parser.initParser(excludeCreated); srchParams.setExcludeCreated(parser.parse()); emptySearch = false; } } catch (CURascalParseException e) { srchParams = null; throw e; } return (!(emptySearch)) ? srchParams : null; } /** * Parses search parameters such as agency name, title, category, fromDate and toDate into a * FoasSearchParameters. * * @param servlet a FoasDocumentSearchServlet * * @return TODO: DOCUMENT ME! * * @exception CURascalParseException if any one of search parameters cannot be parsed. */ public IrbSearchParameters parseIrbSearchParameters(IrbProtocolRascalSearchServlet servlet) |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionChildEntryView.java | 87 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionEntryView.java | 96 |
getForm().add(getHiddenWidgetFor("parentQuestionOid", String.valueOf(questionOid))); getForm().add(aTable); getForm().add("<br>"); getForm().add(getActionButtons()); add(getForm()); } /** * This method was created in VisualAge. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! * @param aQuestion TODO: DOCUMENT ME! */ public void addFormatTypeWidget(CUHtmlTable aTable, int numCells, HipaaHeaderFormQuestion aQuestion ) { int row = aTable.elements.size(); Object aWidget; Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } addSpacerRows(aTable, numCells, 1, "10"); row++; // format types String radioLabels[] = new String[] { "0 - No Answer", "1 - Short String (60 characters or less)", "2 - Multi-line String (unlimited length)", "3 - Date (mm/dd/yyyy)", "4 - Yes/No", "5 - Number" }; Vector radioGroup = utilGetRadioButtonVector(radioLabels, "formatType"); int formatType = 0; if (aQuestion != null) { formatType = aQuestion.getAnswerFormat(); } switch (formatType) { case 0: { ((CUHtmlRadioButton) (radioGroup.elementAt(0))).setChecked(true); break; } case 1: { ((CUHtmlRadioButton) (radioGroup.elementAt(1))).setChecked(true); break; } case 2: { ((CUHtmlRadioButton) (radioGroup.elementAt(2))).setChecked(true); break; } case 3: { ((CUHtmlRadioButton) (radioGroup.elementAt(3))).setChecked(true); break; } case 4: { ((CUHtmlRadioButton) (radioGroup.elementAt(4))).setChecked(true); break; } case 5: { ((CUHtmlRadioButton) (radioGroup.elementAt(5))).setChecked(true); break; } default: { break; } } // radio button group label columns.setElementAt(radioGroup.elementAt(0), 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Format of the intended answer ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } /* * // No Answer (default) * columns.setElementAt((CUHtmlRadioButton)radioGroup.elementAt(1),1); * aTable.addRowFor(columns); aTable.getCell(row,1).setColumnsToSpan(3); row++; */ // Short String columns.setElementAt(radioGroup.elementAt(1), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // Multi-line String columns.setElementAt(radioGroup.elementAt(2), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // Date columns.setElementAt(radioGroup.elementAt(3), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // boolean columns.setElementAt(radioGroup.elementAt(4), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // Number columns.setElementAt(radioGroup.elementAt(5), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; addSpacerRows(aTable, numCells, 1, "10"); row++; columns.setElementAt("", 0); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { HipaaHeaderFormQuestion aQuestion = null; boolean answerable = false; boolean answerRequired = false; boolean notQuestion = false; String text = ""; String helpFileName = ""; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/auxilliary/objects/IrbSearchParametersParser.java | 62 |
edu/columbia/rascal/presentation/irb/auxilliary/objects/IrbSearchParametersParser.java | 274 |
edu/columbia/rascal/presentation/irb/auxilliary/objects/IrbSearchParametersParser.java | 406 |
public IrbSearchParameters parseIrbSearchParameters(IrbProtocolAdminChairSearchServlet servlet) throws CURascalParseException { IrbSearchParameters srchParams; String rascalUser = servlet.getRequestParameter("RascalUser"); String rascalUserUni = servlet.getRequestParameter("RascalUserUni"); String originatingDepartment = servlet.getRequestParameter("OriginatingDepartment"); String originatingDepartmentName = servlet.getRequestParameter("OriginatingDepartmentName"); String product = servlet.getRequestParameter("DrugDeviceBiologic"); String humanSpecimen = servlet.getRequestParameter("HumanSpecimen"); String previousProtocolNumber = servlet.getRequestParameter("previousProtocolNumber"); String paperProtocolNumber = servlet.getRequestParameter("paperProtocolNumber"); String title = servlet.getRequestParameter("Title"); String excludeExpired = servlet.getRequestParameter(IrbStatusConstants.EXPIRED); String excludeInvalid = servlet.getRequestParameter(IrbStatusConstants.INVALID); String excludeClosured = servlet.getRequestParameter(IrbStatusConstants.CLOSURED); String excludeCreated = servlet.getRequestParameter(IrbStatusConstants.CREATING); String userId = servlet.getUser().getUserId(); boolean emptySearch = true; srchParams = new IrbSearchParameters(); String searchType = servlet.getRequestParameter("anyAll"); srchParams.setSearchType(searchType); try { CURascalBasicSearchParser parser = CURascalBasicSearchParser.getInstance(); if (!isEmpty(rascalUserUni)) { parser.initParser(rascalUserUni); srchParams.setRascalUserUni(parser.parse()); emptySearch = false; } if (!isEmpty(rascalUser)) { parser.initParser(rascalUser); srchParams.setRascalUser(parser.parse()); emptySearch = false; } if (!isEmpty(userId)) { parser.initParser(userId); srchParams.setUserId(parser.parse()); emptySearch = false; } if (!isEmpty(paperProtocolNumber)) { parser.initParser(paperProtocolNumber); srchParams.setPaperProtocolNumber(parser.parse()); emptySearch = false; } if (!isEmpty(previousProtocolNumber)) { parser.initParser(previousProtocolNumber); srchParams.setPreviousProtocolNumber(parser.parse()); emptySearch = false; } if (!isEmpty(originatingDepartment)) { parser.initParser(originatingDepartment); srchParams.setOriginatingDepartment(parser.parse()); emptySearch = false; } if (!isEmpty(originatingDepartmentName)) { parser.initParser(originatingDepartmentName); srchParams.setOriginatingDepartmentName(parser.parse()); emptySearch = false; } if (!isEmpty(product)) { parser.initParser(product); srchParams.setDrugDeviceBiologic(parser.parse()); emptySearch = false; } if (!isEmpty(humanSpecimen)) { parser.initParser(humanSpecimen); srchParams.setHumanSpecimen(parser.parse()); emptySearch = false; } if (!isEmpty(title)) { parser.initParser(title); srchParams.setTitle(parser.parse()); emptySearch = false; } if (!isEmpty(excludeExpired)) { parser.initParser(excludeExpired); srchParams.setExcludeExpired(parser.parse()); emptySearch = false; } if (!isEmpty(excludeInvalid)) { parser.initParser(excludeInvalid); srchParams.setExcludeInvalid(parser.parse()); emptySearch = false; } if (!isEmpty(excludeClosured)) { parser.initParser(excludeClosured); srchParams.setExcludeClosured(parser.parse()); emptySearch = false; } if (!isEmpty(excludeCreated)) { parser.initParser(excludeCreated); srchParams.setExcludeCreated(parser.parse()); emptySearch = false; } } catch (CURascalParseException e) { srchParams = null; throw e; } return (!(emptySearch)) ? srchParams : null; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 530 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 262 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 412 |
aCell.setAlign("left"); colNum++; // Highest Pain Level aCell = aTable.getCell(rowCount, colNum); String level = "n/a"; if (((String) queueItem.get(KEY_PAIN_LEVEL4)).equalsIgnoreCase("y")) { level = "4"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL3)).equalsIgnoreCase( "y" )) { level = "3"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL2)).equalsIgnoreCase( "y" )) { level = "2"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL1)).equalsIgnoreCase( "y" )) { level = "1"; } aCell.add(getTableCellData(level, "center")); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix B aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_INFECTIOUS_REQ) != null) && (queueItem.get(KEY_INFECTIOUS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix C aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_HUMAN_MATERIAL_REQ) != null) && (queueItem.get(KEY_HUMAN_MATERIAL_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix D aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_LASER_REQ) != null) && (queueItem.get(KEY_LASER_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix E aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_CHEMICALS_REQ) != null) && (queueItem.get(KEY_CHEMICALS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix F aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_ISO_REQ) != null) && (queueItem.get(KEY_RADIO_ISO_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // Strong Radio Frequencies aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_FREQ_REQ) != null) && (queueItem.get(KEY_RADIO_FREQ_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // XRay aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_XRAY_REQ) != null) && (queueItem.get(KEY_XRAY_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 267 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 451 |
aCell2 = utilGetHtmlTableCell(fieldGet_0d_NumberOfSubjects(), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // spacer addSpacerRows(aTable, 1, 2, "8"); getForm().add(aTable); } /** * TODO: DOCUMENT ME! * * @param isotopeList TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable buildIsotopeRows(Set<AppendixIsotope> isotopeList) { CUHtmlTable aTable = getTable(0, getNumberOfCells()); aTable.setBorderWidth(1); aTable.setWidth("95%"); aTable.setAlign("center"); setIsotopeTableHead(aTable); Iterator it = isotopeList.iterator(); while (it.hasNext()) { AppendixIsotope anIsotope = null; try { anIsotope = (AppendixIsotope) it.next(); if (anIsotope != null) { setIsotopeTableDataRow(aTable, anIsotope); } } catch (Exception e) { log.error("Exception building table.", e); } } return aTable; } /** @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDefaultFontName() */ @Override public String getDefaultFontName() { return "Times New Roman"; } /** * TODO: DOCUMENT ME! * * @param aLocationType TODO: DOCUMENT ME! * @param ownerOid TODO: DOCUMENT ME! * @param ownerType TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public AppendixLocation getLocationEntry(String aLocationType, Long ownerOid, String ownerType) { AppendixLocation locus = null; Vector entries = ServiceLocator.getAppendixLocationService().getAllByOwnerOidAndType( ownerOid, ownerType ); int siz = entries.size(); for (int i = 0; i < siz; i++) { locus = (AppendixLocation) entries.elementAt(i); if (locus.getLocationType().equals(aLocationType)) { return locus; } } return null; } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param isot TODO: DOCUMENT ME! */ public void setIsotopeTableDataRow(CUHtmlTable aTable, AppendixIsotope isot) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String textValue; CUHtmlTableCell cell; String stringVal2 = Float.toString(isot.getHalfLife()); String stringVal2a = isot.getHalfLifeUnit(); /* * String stringVal3 = Float.toString(isot.getHalfLifeInSubject()); if * (!(isot.getHalfLifeInSubject() > 0)) { stringVal3 = ""; } String stringVal3a = * isot.getHalfLifeInSubjectUnit(); */ String stringVal4 = Float.toString(isot.getInitialActivity()); String stringVal4a = isot.getInitialActivityUnit(); // Isotope name textValue = isot.getName(); if ((textValue != null) && (textValue.trim().length() > 0)) { textValue = APPENDIX_HTML_SPACE + textValue; } cell = new CUHtmlTableCell(); cell.add(getTableCellData(textValue)); cell.setAlign("left"); aRow.add(cell); // Compound textValue = isot.getCompound(); if ((textValue != null) && (textValue.trim().length() > 0)) { textValue = APPENDIX_HTML_SPACE + textValue; } cell = new CUHtmlTableCell(); cell.add(getTableCellData(textValue)); cell.setAlign("left"); aRow.add(cell); // Half Life & Unit cell = new CUHtmlTableCell(); cell.add(getTableCellData( APPENDIX_HTML_SPACE + stringVal2 + APPENDIX_HTML_SPACE + stringVal2a ) ); cell.setAlign("left"); aRow.add(cell); // Initial Activity & Unit cell = new CUHtmlTableCell(); cell.add(getTableCellData( APPENDIX_HTML_SPACE + stringVal4 + APPENDIX_HTML_SPACE + stringVal4a ) ); cell.setAlign("left"); aRow.add(cell); // route of admin cell = new CUHtmlTableCell(); cell.add(getTableCellData( APPENDIX_HTML_SPACE + isot.getRouteOfAdministration() ) ); cell.setAlign("left"); aRow.add(cell); aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! */ public void setIsotopeTableHead(CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlText aTitle; CUHtmlTableCell header; String titles[] = { "Isotope", "Compound", "Physical<br>Half Life", |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 708 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 480 |
String textValue; if (getTracker() != null) { if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { // Recommended animal housing aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(REC_ANIMAL_HOUSING + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedHousing() == null) ? "" : getTracker().getRecommendedHousing(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); } // Recommended PPE & SOP String ppeLabel = ""; if (getOwnerSurrogate().getSubject() != null) { ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; ppeLabel = ppeLabel + ":"; } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(ppeLabel, defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedPpe() == null) ? "" : getTracker().getRecommendedPpe(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // Safety Officer's General Comments aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = CalendarTransformer.toString(approvalDate); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } // spacer addSpacerRows(aTable, 1, 2, "8"); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_SAFETY_OFFICER), "300", |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixOwnerAbstractSummaryView.java | 255 |
edu/columbia/rascal/presentation/lab/pages/HzHistoryView.java | 521 |
} /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param rowCount int * @param approvalKind String * @param appendixLetter String * @param approvalStatus String * @param approvals TODO: DOCUMENT ME! */ public void setHazardTableDataRow(CUHtmlTable aTable, int rowCount, String approvalKind, String appendixLetter, String approvalStatus, Vector approvals ) { CUHtmlTableRow aRow = new CUHtmlTableRow(); // Hazard CUHtmlTableCell cell0 = new CUHtmlTableCell(getWidgetFor(approvalKind)); cell0.setVAlign("top"); cell0.setAlign("left"); cell0.setWidth("35%"); aRow.add(cell0); // Requirement CUHtmlTableCell cell1 = new CUHtmlTableCell(getWidgetFor(appendixLetter)); if (appendixLetter.equals("n/a")) { cell1.setVAlign("center"); cell1.setAlign("center"); } else { cell1.setVAlign("top"); cell1.setAlign("left"); } aRow.add(cell1); // Status CUHtmlTableCell cell2; if ((approvalStatus != null) && !approvalStatus.trim().equals("")) { CUHtmlText aText = (CUHtmlText) getWidgetFor(approvalStatus); if (approvalStatus.equals(NOT_APPROVED) || approvalStatus.equals(HOLD) || approvalStatus.equals(NO_ACTION) ) { aText.setFgColor("red"); } cell2 = new CUHtmlTableCell(aText); } else { cell2 = new CUHtmlTableCell(getWidgetFor(approvalStatus)); } cell2.setVAlign("top"); cell2.setAlign("left"); aRow.add(cell2); // Approvals StringBuffer aBuffer = new StringBuffer(100); for (int i = 0; i < approvals.size(); i++) { String aString = (String) approvals.elementAt(i); aBuffer.append(aString); aBuffer.append("<br>"); } CUHtmlTableCell cell3 = new CUHtmlTableCell(getWidgetFor(aBuffer.toString())); cell3.setVAlign("top"); cell3.setAlign("left"); cell3.setWidth("45%"); aRow.add(cell3); aTable.add(aRow); } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setHazardTableHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableRow aRow = new CUHtmlTableRow(); aTitle = new CUHtmlText("Hazardous Materials"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); CUHtmlTableCell header = new CUHtmlTableCell(aTitle); header.setIsHeader(true); header.setColumnsToSpan(getColumnSizeForHazardTable()); header.setAlign("center"); aRow.add(header); aTable.add(aRow); aRow = new CUHtmlTableRow(); // Hazardous Agent aTitle = new CUHtmlText("Hazard"); aTitle.setFontSize("-2"); aTitle.setFontName(getDefaultFontName()); CUHtmlTableCell header0 = new CUHtmlTableCell(aTitle); header0.setIsHeader(true); aRow.add(header0); // Requirement aTitle = new CUHtmlText("Appendix"); aTitle.setFontSize("-2"); aTitle.setFontName(getDefaultFontName()); CUHtmlTableCell header1 = new CUHtmlTableCell(aTitle); header1.setIsHeader(true); aRow.add(header1); // Status aTitle = new CUHtmlText("Status"); aTitle.setFontSize("-2"); aTitle.setFontName(getDefaultFontName()); CUHtmlTableCell header2 = new CUHtmlTableCell(aTitle); header2.setIsHeader(true); aRow.add(header2); // Approval History aTitle = new CUHtmlText("Approval History"); aTitle.setFontSize("-2"); aTitle.setFontName(getDefaultFontName()); CUHtmlTableCell header3 = new CUHtmlTableCell(aTitle); header3.setIsHeader(true); aRow.add(header3); aTable.add(aRow); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 285 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 480 |
String textValue; if (getTracker() != null) { if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { // Recommended animal housing aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(REC_ANIMAL_HOUSING + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedHousing() == null) ? "" : getTracker().getRecommendedHousing(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); } // Recommended PPE & SOP String ppeLabel = ""; if (getOwnerSurrogate().getSubject() != null) { ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; ppeLabel = ppeLabel + ":"; } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(ppeLabel, defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedPpe() == null) ? "" : getTracker().getRecommendedPpe(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // Safety Officer's General Comments aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = CalendarTransformer.toString(approvalDate); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } // spacer addSpacerRows(aTable, 1, 2, "8"); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell( |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 353 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 237 |
aTitle = getTableColumnName("Release"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); aTitle1 = getTableColumnName("Date"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // P.I. aTitle = getTableColumnName("Principal Investigator", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle); colNum++; // Species aTitle = getTableColumnName("Species", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle); colNum++; // Primary Site aTitle1 = getTableColumnName("Primary Site", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Current Status aTitle1 = getTableColumnName("Current Status", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Highest Pain Level aTitle = getTableColumnName("Maximum"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); aTitle1 = getTableColumnName("Pain"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendices aTitle = getTableColumnName("Appendices"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); header.setColumnsToSpan(6); // Appendix A aTitle1 = getTableColumnName("A"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix B aTitle1 = getTableColumnName("B"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix C aTitle1 = getTableColumnName("C"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix D aTitle1 = getTableColumnName("D"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix E aTitle1 = getTableColumnName("E"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix F aTitle1 = getTableColumnName("F"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Strong Radio Frequency aTitle1 = getTableColumnName("SRF"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // XRay aTitle1 = getTableColumnName("XRay"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param rowCount int * @param queueItem Hashtable */ public void setAnimalCareQueueViewTableDataRow(CUHtmlTable aTable, int rowCount, Hashtable queueItem ) { int colNum = 0; CUHtmlTableCell aCell; // Protocol Number aCell = aTable.getCell(rowCount, colNum); String protocolNumb = (String) queueItem.get(KEY_PROTOCOL_NO); String protocolOid = (String) queueItem.get(KEY_PROTOCOL_OID); CUHtmlText protocolNumbTxt = getLinkToReviewIacucProtocol("AC-" + protocolNumb, protocolOid); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptFilterByJobCodeServlet.java | 101 |
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptServlet.java | 113 |
row = new Vector<Object>(5); } // end while } catch (Exception e) { log.error("Exception constructing vector.", e); } finally { } /// set results by user courses.sort(); Vector<Object> resultsByUser = new Vector<Object>(); int counter = 0; userNumber = allUser.size(); int recordSize = results.size(); int coursesize = courses.size(); Vector<Object> tempRow = new Vector<Object>(); Vector<Object> currentRow = new Vector<Object>(); String currentUser = null; for (int i = 0; i < userNumber; i++) { currentUser = (String) allUser.elementAt(i); if (counter < recordSize) currentRow = (Vector) results.elementAt(counter); allUser.addElement(currentRow.elementAt(0)); // add user // name tempRow.addElement(String.valueOf(currentRow.elementAt(1)) + ' ' + currentRow.elementAt(2) + '(' + currentRow.elementAt(0) + ')'); for (int j = 0; j < coursesize; j++) // build couses columns { if (counter < recordSize) currentRow = (Vector) results.elementAt(counter); else currentRow.setElementAt(null, 3); if ((counter < recordSize) && currentRow.elementAt(0).equals(currentUser) && currentRow.elementAt(3).equals(courses.elementAt(j)) ) // build this column { tempRow.addElement(currentRow.elementAt(4)); counter++; } else tempRow.addElement(null); } resultsByUser.addElement(tempRow); tempRow = new Vector<Object>(); } resultsByUser.add(0, courses); return resultsByUser; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ @Override public TCHtmlView getPage() { TCHtmlView view = null; Vector<Object> allCourses = null; List<String> selectedDeparments = (List<String>) getSession().getAttribute(TCAbstractServlet.DEPT_CODE); Vector<Object> allData = getAllData(selectedDeparments); allCourses = (Vector) allData.elementAt(0); allData.removeElementAt(0); CUSortVector rows = new CUSortVector(allData); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { String sortColumns[] = new String[allCourses.size() + 1]; sortColumns[0] = "name"; for (int i = 0; i < allCourses.size(); i++) sortColumns[i + 1] = ((String) allCourses.elementAt(i)).substring(0, 6); rows.setColumnNames(sortColumns); rows.sortByColumn(sortBy.replace('+', ' ')); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); String downloadableString = getLineParameter("downloadable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } view = new TCReportByDeptFilterByJobCodeView(rows, printable, sortBy, downloadable, selectedDeparments, allCourses); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 275 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 228 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 697 |
aBuffer.append("</b></u>."); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(aBuffer.toString(), "100%", getTitleAlign()); aCell2 = utilGetHtmlTableCell("", "500", "left"); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); String textValue; if (getTracker() != null) { if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { // Recommended animal housing aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(REC_ANIMAL_HOUSING + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedHousing() == null) ? "" : getTracker().getRecommendedHousing(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); } // Recommended PPE & SOP String ppeLabel = ""; if (getOwnerSurrogate().getSubject() != null) { ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; ppeLabel = ppeLabel + ":"; } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(ppeLabel, defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedPpe() == null) ? "" : getTracker().getRecommendedPpe(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // Safety Officer's General Comments aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = CalendarTransformer.toString(approvalDate); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 334 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 376 |
} /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDateTable(java.lang.String,java.lang.String, * java.lang.String, java.lang.String, java.lang.String) */ @Override public CUHtmlTable getDateTable(String currentDate, String dateFieldName, String monthFieldName, String dayFieldName, String yearFieldName ) { int monthIndex = new Long(currentDate.substring(0, 2)).intValue(); int dayIndex = new Long(currentDate.substring(3, 5)).intValue(); int year = new Long(currentDate.substring(6)).intValue(); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { EVector list = new EVector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** TODO: DOCUMENT ME! */ public void getDefaultMainHeader() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 71 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 70 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 73 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 72 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 72 |
setSubTitle("Appendix B - Safety Officer Approval"); setOnLoad(getOnLoadForOwnerType(anOwnerSurrogate.getOwnerType())); if (anOwnerSurrogate.getOwnerType().equals(IRB_OWNER)) { addJavaScriptElement(new CUHtmlText(getJSCodeFrom("irbSafetyOfficerReturnConfirm.js"))); } addJavaScriptElement(CURascalHmJavascript.getJavascriptCheckRecipient()); setAppendixObject(anAppendixObject); setOwnerSurrogate(anOwnerSurrogate); setTracker(aTracker); setRascalUser(aUser); add(anAppendixObject); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields() throws Exception { CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 4); CUHtmlTableRow aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_1_ReviewAndApproveText(), "40%", getTitleAlign()); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); addSpacerRows(aTable, 2, 1, "10"); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(REC_ANIMAL_HOUSING, defaultFontSize, true, false ), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_HOUSE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_2_RecommendedHousing("2"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } String ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(ppeLabel, defaultFontSize, true, false), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_PPE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_3_RecommendedPpe("3"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVER_NOTES + "</b>"), |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 334 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 376 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 309 |
} /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDateTable(java.lang.String,java.lang.String, * java.lang.String, java.lang.String, java.lang.String) */ @Override public CUHtmlTable getDateTable(String currentDate, String dateFieldName, String monthFieldName, String dayFieldName, String yearFieldName ) { int monthIndex = new Long(currentDate.substring(0, 2)).intValue(); int dayIndex = new Long(currentDate.substring(3, 5)).intValue(); int year = new Long(currentDate.substring(6)).intValue(); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { EVector list = new EVector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** TODO: DOCUMENT ME! */ public void getDefaultMainHeader() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 279 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 288 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 701 |
aCell2 = utilGetHtmlTableCell("", "500", "left"); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); String textValue; if (getTracker() != null) { if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { // Recommended animal housing aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(REC_ANIMAL_HOUSING + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedHousing() == null) ? "" : getTracker().getRecommendedHousing(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); } // Recommended PPE & SOP String ppeLabel = ""; if (getOwnerSurrogate().getSubject() != null) { ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; ppeLabel = ppeLabel + ":"; } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(ppeLabel, defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedPpe() == null) ? "" : getTracker().getRecommendedPpe(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // Safety Officer's General Comments aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = CalendarTransformer.toString(approvalDate); |
File | Line |
---|---|
edu/columbia/rascal/presentation/myRascal/views/MyRascalMainMenuView.java | 56 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalMainMenuView.java | 240 |
@Override public void addFields() { CUHtmlForm form = new CUHtmlForm("form1", MyRascalMainMenuServlet.class.getName(), "POST"); setPageTitle("MyRASCAL Main Menu"); Vector<Object> menuItems = new Vector<Object>(); CUHtmlText t; // ANIMAL CARE=================================================================== t = new CUHtmlText("Animal Care"); t.setIsBold(true); t.setFontName("Verdana"); form.add(t); t = new CUHtmlText("My Protocols"); t.setLink( // "Javascript:onClick=parent.frames[2].document.forms[0].reportNameHF.value='myAnimalCareProtocols';parent.frames[2].document.forms[0].submit();" "Javascript:onClick=window.parent.location='/iacuc/search/myProtocols';" ); t.setIsBold(true); t.setFontName(getDefaultFontName()); menuItems.addElement(t); form.add(new CUHtmlBulletList(menuItems, "BULLET")); menuItems = new Vector<Object>(); // CONFLICT OF INTEREST=================================================================== t = new CUHtmlText("Conflict Of Interest"); t.setIsBold(true); t.setFontName("Verdana"); form.add(t); t = new CUHtmlText("My Disclosures"); t.setLink( //"Javascript:onClick=parent.frames[2].document.forms[0].reportNameHF.value='myCoiDisclosures';parent.frames[2].document.forms[0].submit();" "Javascript:onClick=window.parent.location='/coi/filingHistory';" ); //t.setLinkTarget("top"); t.setIsBold(true); t.setFontName(getDefaultFontName()); menuItems.addElement(t); form.add(new CUHtmlBulletList(menuItems, "BULLET")); menuItems = new Vector<Object>(); // CONSENT FORMS =================================================================== t = new CUHtmlText("Consent Forms"); t.setIsBold(true); t.setFontName("Verdana"); form.add(t); t = new CUHtmlText("My Consent Forms"); t.setLink( "Javascript:onClick=parent.frames[2].document.forms[0].reportNameHF.value='myConsentForms';parent.frames[1].location='" + ConsentLinkFrameServlet.class.getName() + "?consentNumber=XXXX9999';parent.frames[2].document.forms[0].submit();" ); t.setIsBold(true); t.setFontName(getDefaultFontName()); menuItems.addElement(t); form.add(new CUHtmlBulletList(menuItems, "BULLET")); menuItems = new Vector<Object>(); // CONTRACTS AND GRANTS =================================================================== t = new CUHtmlText("Contracts and Grants"); t.setIsBold(true); t.setFontName("Verdana"); form.add(t); t = new CUHtmlText("My Contracts and Grants"); t.setLink( "Javascript:onClick=parent.frames[2].document.forms[0].reportNameHF.value='myContractsGrants';parent.frames[1].location='" + PtLinkFrameServlet.class.getName() + "?trakId=XXXX9999';parent.frames[2].document.forms[0].submit();" ); t.setIsBold(true); t.setFontName(getDefaultFontName()); menuItems.addElement(t); form.add(new CUHtmlBulletList(menuItems, "BULLET")); menuItems = new Vector<Object>(); t = new CUHtmlText("My Approvals"); t.setLink( "Javascript:onClick=parent.frames[2].document.forms[0].reportNameHF.value='myContractGrantApprovals';parent.frames[1].location='" + PtLinkFrameServlet.class.getName() + "?trakId=XXXX9999';parent.frames[2].document.forms[0].submit();" ); t.setIsBold(true); t.setFontName(getDefaultFontName()); menuItems.addElement(t); form.add(new CUHtmlBulletList(menuItems, "BULLET")); menuItems = new Vector<Object>(); // CV BUILDER =================================================================== /* TODO Remove references to CV Builder * t = new CUHtmlText("CV Builder"); t.setIsBold(true); t.setFontName("Verdana"); * form.add(t); * * t = new CUHtmlText("My CVs"); * t.setLink("Javascript:onClick=parent.frames[2].document.forms[0].reportNameHF.value='myCVs';parent.frames[1].location='" * + CvLinkFrameServlet.class.getName() + "';parent.frames[2].document.forms[0].submit();"); * t.setIsBold(true); t.setFontName(getDefaultFontName()); menuItems = new Vector(); * menuItems.addElement(t); form.add(new CUHtmlBulletList(menuItems, "BULLET")); */ // HAZARDOUS MATERIALS =================================================================== t = new CUHtmlText("Hazardous Materials"); t.setIsBold(true); t.setFontName("Verdana"); form.add(t); t = new CUHtmlText("My Appendices"); t.setLink( "Javascript:onClick=parent.frames[2].document.forms[0].reportNameHF.value='myHazMatAppendices';parent.frames[2].document.forms[0].submit();" ); t.setIsBold(true); t.setFontName(getDefaultFontName()); menuItems.addElement(t); form.add(new CUHtmlBulletList(menuItems, "BULLET")); menuItems = new Vector<Object>(); // HUMAN SUBJECTS =================================================================== t = new CUHtmlText("Human Subjects"); t.setIsBold(true); t.setFontName("Verdana"); form.add(t); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 116 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionChildEntryView.java | 105 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionEntryView.java | 114 |
public void addFormatTypeWidget(CUHtmlTable aTable, int numCells, HipaaQuestionLookup aQuestion) { int row = aTable.elements.size(); Object aWidget; Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } addSpacerRows(aTable, numCells, 1, "10"); row++; // format types String radioLabels[] = new String[] { "0 - No Answer", "1 - Short String (60 characters or less)", "2 - Multi-line String (unlimited length)", "3 - Date (mm/dd/yyyy)", "4 - Yes/No", "5 - Number" }; Vector radioGroup = utilGetRadioButtonVector(radioLabels, "formatType"); int formatType = 0; if (aQuestion != null) { formatType = aQuestion.getAnswerFormat(); } switch (formatType) { case 0: { ((CUHtmlRadioButton) (radioGroup.elementAt(0))).setChecked(true); break; } case 1: { ((CUHtmlRadioButton) (radioGroup.elementAt(1))).setChecked(true); break; } case 2: { ((CUHtmlRadioButton) (radioGroup.elementAt(2))).setChecked(true); break; } case 3: { ((CUHtmlRadioButton) (radioGroup.elementAt(3))).setChecked(true); break; } case 4: { ((CUHtmlRadioButton) (radioGroup.elementAt(4))).setChecked(true); break; } case 5: { ((CUHtmlRadioButton) (radioGroup.elementAt(5))).setChecked(true); break; } default: { break; } } // radio button group label columns.setElementAt(radioGroup.elementAt(0), 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Format of the intended answer ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } /* * // No Answer (default) * columns.setElementAt((CUHtmlRadioButton)radioGroup.elementAt(1),1); * aTable.addRowFor(columns); aTable.getCell(row,1).setColumnsToSpan(3); row++; */ // Short String columns.setElementAt(radioGroup.elementAt(1), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // Multi-line String columns.setElementAt(radioGroup.elementAt(2), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // Date columns.setElementAt(radioGroup.elementAt(3), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // boolean columns.setElementAt(radioGroup.elementAt(4), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // Number columns.setElementAt(radioGroup.elementAt(5), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; addSpacerRows(aTable, numCells, 1, "10"); row++; columns.setElementAt("", 0); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovedCountView.java | 241 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionCountView.java | 237 |
aCell.add(getTextWidgetFor("", 2, false)); aCell.setAlign("right"); aRow.add(aCell); // Term aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor("", 2, false)); aCell.setAlign("right"); aRow.add(aCell); // UP aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor("", 2, false)); aCell.setAlign("right"); aRow.add(aCell); aTable.add(aRow); // total aRow = new CUHtmlTableRow(); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor("Totals", 2, false)); aCell.setAlign("right"); aRow.add(aCell); // new protocols sum = 0; for (int i = 0; i < 3; i++) { aNumber = Integer.valueOf((String) (total.elementAt(i))); sum += aNumber; } aCell = new CUHtmlTableCell(); aCell.add(getThreeElementsTable("", sum + "", "")); aCell.setAlign("right"); aRow.add(aCell); // renewals sum = 0; for (int i = 0; i < 3; i++) { aNumber = Integer.valueOf((String) (total.elementAt(i + 3))); sum += aNumber; } aCell = new CUHtmlTableCell(); aCell.add(getThreeElementsTable("", sum + "", "")); aCell.setAlign("right"); aRow.add(aCell); // mods sum = 0; for (int i = 0; i < 3; i++) { aNumber = Integer.valueOf((String) (total.elementAt(i + 6))); sum += aNumber; } aCell = new CUHtmlTableCell(); aCell.add(getThreeElementsTable("", sum + "", "")); aCell.setAlign("right"); aRow.add(aCell); // AE aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) total.elementAt(9), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // Term aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) total.elementAt(10), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // UP aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) total.elementAt(11), 2, false)); aCell.setAlign("right"); aRow.add(aCell); aTable.add(aRow); aTable.getCell(0, 0).setWidth("8%"); aTable.getCell(0, 1).setWidth("15%"); aTable.getCell(0, 2).setWidth("15%"); aTable.getCell(0, 3).setWidth("15%"); aTable.getCell(0, 4).setWidth("10%"); aTable.getCell(0, 5).setWidth("10%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbClosureSubjectsController.java | 60 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolSubjectsController.java | 61 |
@Resource private IrbProtocolSubjectsService irbProtocolSubjectsService; @Resource private RascalSubjectPopulationService rascalSubjectPopulationService; @Resource private Validator irbProtocolSubjectsValidator; @Resource private ClearValueProcessor<IrbProtocolSubjects> clearValueProcessor; @PostConstruct void init() { Map<AbstractMap.SimpleImmutableEntry<String, Serializable>, String[]> clearValueMap = clearValueProcessor.getClearValueMap(); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("studyInvolveScreening", "Y"), new String[] {"targetAccrual", "accruedToDate", "accruedSinceRenewal", "anticipatedAccrued"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("anyWithdrawn", "Y"), new String[] {"numberWithdrawn", "explainWithdrawn"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("removedByPi", "Y"), new String[] {"howManyRemovedByPi", "explainRemovedByPi"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("lostToFollowup", "Y"), new String[] {"howManyLostToFollowup", "explainLostToFollowup"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("diedOnStudy", "Y"), new String[] {"howManyDiedOnStudy", "explainDiedOnStudy"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("anySubjectComplaints", "Y"), new String[] {"howManyComplaints", "explainComplaints"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("pregnantEnrolled", "Y"), new String[] {"riskPregnantWoman", "riskFetus", "riskNeonate", "benefitPregnantWoman", "benefitFetus", "benefitNeonate", "noProspectOfBenefit"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("lackingCapacity", "Y"), new String[] {"proceduresMinimalRisk", "prospectDirectBenefit"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("proceduresMinimalRisk", "N"), new String[] {"prospectDirectBenefit"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("prisonersEnrolled", "Y"), new String[] {"prisonerPossibleCause","prisonerInstStructure","prisonerResearchOnConditions","prisonerResearchOnPractises"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("otherVulnerablePopulations", "Y"), new String[] {"descOtherVulnerablePopulations"}); clearValueMap.put(new AbstractMap.SimpleImmutableEntry<String, Serializable>("involveCompensation", "Y"), new String[] {"compensationJustification","eligibleCompensation600"}); } @InitBinder(FORM_COMMAND) void initBinder(WebDataBinder binder){ binder.setDisallowedFields("id", "version"); binder.addValidators(irbProtocolSubjectsValidator); } @ModelAttribute void updateModel(Model model) { model.addAttribute("radioYNMap", radioYNMap); Map<String, String> radioMGNMap = new LinkedHashMap<String, String>(); radioMGNMap.put("Minimal Risk", "Minimal Risk"); radioMGNMap.put("Greater than Minimal Risk", "Greater than Minimal Risk"); radioMGNMap.put("N/A", "N/A"); model.addAttribute("radioMGNMap", radioMGNMap); } @RequestMapping(method = RequestMethod.GET) public String loadPage(@PathVariable Long closureId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 112 |
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 281 |
cellBuffer.append("<option value=\""); cellBuffer.append(key); cellBuffer.append("\">"); cellBuffer.append(value); cellBuffer.append("</option>\n"); } } cellBuffer.append("</SELECT>\n"); columns.setElementAt(cellBuffer.toString(), 0); // set up cell 1: cellBuffer = new StringBuffer(200); cellBuffer.append( "<INPUT VALUE=\">>\" TYPE=\"BUTTON\" NAME=\"availableToSelected\" onClick=\"moveToSelected('" ); cellBuffer.append(availableName); cellBuffer.append("','"); cellBuffer.append(selectedName); cellBuffer.append("','"); cellBuffer.append(formName); cellBuffer.append("','"); cellBuffer.append(maxSelect); cellBuffer.append("')\">"); cellBuffer.append("\n<br>\n"); cellBuffer.append( "<INPUT VALUE=\"<<\" TYPE=\"BUTTON\" NAME=\"selectedToAvailable\" onClick=\"moveFromTo('" ); cellBuffer.append(selectedName); cellBuffer.append("','"); cellBuffer.append(availableName); cellBuffer.append("','"); cellBuffer.append(formName); cellBuffer.append("')\">\n"); columns.setElementAt(cellBuffer.toString(), 1); // set up cell 2: cellBuffer = new StringBuffer(200); cellBuffer.append("<SELECT SIZE=\""); cellBuffer.append(listSize); cellBuffer.append("\" MULTIPLE NAME=\""); cellBuffer.append(selectedName); cellBuffer.append("\">\n"); if (selected.size() == 0) { // construct a "stretcher" record to make // the list box wide enough in Netscape for (int x = 0; x < (maxLength * 2); x++) { spaceString += " "; } cellBuffer.append("<OPTION value=\""); cellBuffer.append(DUMMYKEY); cellBuffer.append("\">"); cellBuffer.append(spaceString); cellBuffer.append("</OPTION>\n"); } else { for (int i = 0; i < selected.size(); i++) { String selectedString = (String) selected.elementAt(i); int index = selectedString.indexOf(";"); String key = selectedString.substring(0, index); String value = selectedString.substring(index + 1); cellBuffer.append("<OPTION value=\""); cellBuffer.append(key); cellBuffer.append("\">"); cellBuffer.append(value); cellBuffer.append("</OPTION>\n"); } } cellBuffer.append("</SELECT>\n"); columns.setElementAt(cellBuffer.toString(), 2); getTable().addRowFor(columns); for (int i = 0; i < 2; i++) { getTable().getCell(i, 0).setAlign("CENTER"); getTable().getCell(i, 0).setWidth("45%"); getTable().getCell(i, 1).setAlign("CENTER"); getTable().getCell(i, 1).setWidth("10%"); getTable().getCell(i, 2).setAlign("CENTER"); getTable().getCell(i, 2).setWidth("45%"); } } /** * Creates a new $class.name$ object. * * @param availableName TODO: DOCUMENT ME! * @param available TODO: DOCUMENT ME! * @param selectedName TODO: DOCUMENT ME! * @param selected TODO: DOCUMENT ME! * @param fontName TODO: DOCUMENT ME! * @param formName TODO: DOCUMENT ME! * @param maxSelect TODO: DOCUMENT ME! */ public CUHtmlMoveToSelectList(String availableName, // unique name for // available items // list Vector available, // available items // list String selectedName, // unique name for // selected items // list Vector selected, // selected items // list String fontName, // name of font for // labels String formName, // name of form in // which widget is // embedded int maxSelect |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportSignoffServlet.java | 78 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportSignoffServlet.java | 157 |
List<Object[]> resultList = acc.executeNoParmPreparedQuery("select DISTINCT PTP.oid, PTP.trakId, PTAA.agencyName, RU.name_last, " + "PTB.projectBudgetBeginDate, PTB.projectBudgetEndDate, " + "PTAA.agencyFlowthrough, PTB.projectBudgetTotalAmount, PTP.spogCUId, " + "PTP.title, RUPO.name_last name_last2, PTP.originatingOffice, PT.dateTimeIn " + "from PtProposalHeader PTP, PtAgencyAddress PTAA, PtAccessControl PTA, " + "PtBudget PTB, RASCAL_USER RU, PtTracking PT, RASCAL_USER RUPO" + " where PTP.projectOfficer = RUPO.user_id and PTP.oid = PTAA.pt_header_id and RU.rid=PTA.rid " + "and PTA.sequenceNumber = 1 and PTP.oid = PTA.pt_header_id " + "and PTP.oid = PTB.pt_header_id and " + "PTB.sequenceNumber = (select count(*) from PtBudget PB where PTP.oid = PB.pt_header_id) " + "and PTP.oid = PT.pt_header_id and PT.trackingLocation = 'Signed Off'" + " AND (PT.dateTimeIn >= '" + from + "' AND PT.dateTimeIn <= '" + to + "') "); for(Object[] res: resultList){ row.addElement(res[0].toString()); if(columns.contains("TrakId")){row.addElement(res[1]);i++;} if(columns.contains("Title")){row.addElement(res[9]);i++;} if(columns.contains("Dept")){row.addElement(res[11]);i++;} if(columns.contains("PIName")){row.addElement(res[3]);i++;} if(columns.contains("Agency")){row.addElement(res[2]);i++;} if(columns.contains("Duration")){ if ((res[4] == null) || (res[5] == null)) { row.addElement(""); i++; } else { Calendar end = CalendarTransformer.toCalendar(CalendarTransformer.toString( (Date)res[5] ) ); Calendar beg = CalendarTransformer.toCalendar(CalendarTransformer.toString( (Date)res[4] ) ); int months = end.get(Calendar.YEAR) - beg.get(Calendar.YEAR); months = months * 12; months = months + (end.get(Calendar.MONTH) - beg.get(Calendar.MONTH)); String duration = (Integer.valueOf(months)).toString(); row.addElement(duration); i++; } } if(columns.contains("ProjectBeginDate")){row.addElement((res[4] == null)?"":(Date)res[4]);i++;} if(columns.contains("ProjectEndDate")){row.addElement((res[5] == null)?"":(Date)res[5]);i++;} if(columns.contains("TotalMoneyReq.")){ row.addElement((res[7] == null)?"":res[7]);i++; } if(columns.contains("FlowThroughAgency")){row.addElement(res[6]);i++;} if(columns.contains("PO")){row.addElement(res[10]);i++;} if(columns.contains("CUID")){row.addElement(res[8]);i++;} if(columns.contains("SignOffDate")){row.addElement((res[12] == null)?"":(Date)res[12]);i++;} results.addElement(row.clone()); row = new Vector(i); } return results; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 112 |
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 458 |
cellBuffer.append("<option value=\""); cellBuffer.append(key); cellBuffer.append("\">"); cellBuffer.append(value); cellBuffer.append("</option>\n"); } } cellBuffer.append("</SELECT>\n"); columns.setElementAt(cellBuffer.toString(), 0); // set up cell 1: cellBuffer = new StringBuffer(200); cellBuffer.append( "<INPUT VALUE=\">>\" TYPE=\"BUTTON\" NAME=\"availableToSelected\" onClick=\"moveToSelected('" ); cellBuffer.append(availableName); cellBuffer.append("','"); cellBuffer.append(selectedName); cellBuffer.append("','"); cellBuffer.append(formName); cellBuffer.append("','"); cellBuffer.append(maxSelect); cellBuffer.append("')\">"); cellBuffer.append("\n<br>\n"); cellBuffer.append( "<INPUT VALUE=\"<<\" TYPE=\"BUTTON\" NAME=\"selectedToAvailable\" onClick=\"moveFromTo('" ); cellBuffer.append(selectedName); cellBuffer.append("','"); cellBuffer.append(availableName); cellBuffer.append("','"); cellBuffer.append(formName); cellBuffer.append("')\">\n"); columns.setElementAt(cellBuffer.toString(), 1); // set up cell 2: cellBuffer = new StringBuffer(200); cellBuffer.append("<SELECT SIZE=\""); cellBuffer.append(listSize); cellBuffer.append("\" MULTIPLE NAME=\""); cellBuffer.append(selectedName); cellBuffer.append("\">\n"); if (selected.size() == 0) { // construct a "stretcher" record to make // the list box wide enough in Netscape for (int x = 0; x < (maxLength * 2); x++) { spaceString += " "; } cellBuffer.append("<OPTION value=\""); cellBuffer.append(DUMMYKEY); cellBuffer.append("\">"); cellBuffer.append(spaceString); cellBuffer.append("</OPTION>\n"); } else { for (int i = 0; i < selected.size(); i++) { String selectedString = (String) selected.elementAt(i); int index = selectedString.indexOf(";"); String key = selectedString.substring(0, index); String value = selectedString.substring(index + 1); cellBuffer.append("<OPTION value=\""); cellBuffer.append(key); cellBuffer.append("\">"); cellBuffer.append(value); cellBuffer.append("</OPTION>\n"); } } cellBuffer.append("</SELECT>\n"); columns.setElementAt(cellBuffer.toString(), 2); getTable().addRowFor(columns); for (int i = 0; i < 2; i++) { getTable().getCell(i, 0).setAlign("CENTER"); getTable().getCell(i, 0).setWidth("45%"); getTable().getCell(i, 1).setAlign("CENTER"); getTable().getCell(i, 1).setWidth("10%"); getTable().getCell(i, 2).setAlign("CENTER"); getTable().getCell(i, 2).setWidth("45%"); } } /** * Creates a new $class.name$ object. * * @param availableName TODO: DOCUMENT ME! * @param available TODO: DOCUMENT ME! * @param selectedName TODO: DOCUMENT ME! * @param selected TODO: DOCUMENT ME! * @param fontName TODO: DOCUMENT ME! * @param formName TODO: DOCUMENT ME! * @param maxSelect TODO: DOCUMENT ME! */ public CUHtmlMoveToSelectList(String availableName, // unique name for // available items // list Vector available, // available items // list String selectedName, // unique name for // selected items // list Vector selected, // selected items // list String fontName, // name of font for // labels String formName, // name of form in |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 430 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovedQueueView.java | 217 |
} else if (((String) queueItem.get(KEY_PAIN_LEVEL1)).equalsIgnoreCase( "y" )) { level = "1"; } aCell.add(getTableCellData(level, "center")); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix B aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_INFECTIOUS_REQ) != null) && (queueItem.get(KEY_INFECTIOUS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix C aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_HUMAN_MATERIAL_REQ) != null) && (queueItem.get(KEY_HUMAN_MATERIAL_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix D aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_LASER_REQ) != null) && (queueItem.get(KEY_LASER_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix E aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_CHEMICALS_REQ) != null) && (queueItem.get(KEY_CHEMICALS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix F aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_ISO_REQ) != null) && (queueItem.get(KEY_RADIO_ISO_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // Strong Radio Frequencies aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_FREQ_REQ) != null) && (queueItem.get(KEY_RADIO_FREQ_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // XRay aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_XRAY_REQ) != null) && (queueItem.get(KEY_XRAY_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 548 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 276 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovedQueueView.java | 217 |
} else if (((String) queueItem.get(KEY_PAIN_LEVEL1)).equalsIgnoreCase( "y" )) { level = "1"; } aCell.add(getTableCellData(level, "center")); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix B aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_INFECTIOUS_REQ) != null) && (queueItem.get(KEY_INFECTIOUS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix C aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_HUMAN_MATERIAL_REQ) != null) && (queueItem.get(KEY_HUMAN_MATERIAL_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix D aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_LASER_REQ) != null) && (queueItem.get(KEY_LASER_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix E aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_CHEMICALS_REQ) != null) && (queueItem.get(KEY_CHEMICALS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix F aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_ISO_REQ) != null) && (queueItem.get(KEY_RADIO_ISO_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // Strong Radio Frequencies aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_FREQ_REQ) != null) && (queueItem.get(KEY_RADIO_FREQ_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // XRay aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_XRAY_REQ) != null) && (queueItem.get(KEY_XRAY_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 239 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 294 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 480 |
String textValue; if (getTracker() != null) { if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { // Recommended animal housing aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(REC_ANIMAL_HOUSING + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedHousing() == null) ? "" : getTracker().getRecommendedHousing(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); } // Recommended PPE & SOP String ppeLabel = ""; if (getOwnerSurrogate().getSubject() != null) { ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; ppeLabel = ppeLabel + ":"; } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(ppeLabel, defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedPpe() == null) ? "" : getTracker().getRecommendedPpe(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // Safety Officer's General Comments aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // gather safety officer approval data AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = approvalDate.toString(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 217 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 216 |
edu/columbia/rascal/presentation/appendix/pages/AppendixISafetyOfficerApprovalView.java | 140 |
AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + APPROVAL_SAFETY_OFFICER + "</b>" ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + name + "</b>", "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_DATE + "</b>"), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + (CalendarTransformer.formatMMDDYYYY(approvalDate)) + "</b>", "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Owner's Number (Protocol Number, Proposal TrakId) String ownerNumberLabel = (getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) ? PROPOSAL_TRAK_ID : PROTOCOL_NUMBER; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(ownerNumberLabel), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(getOwnerSurrogate().getOwnerNumber(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { // set up // Veterinarian // approval // information AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); if (vetApproval != null) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // spacer addSpacerRows(aTable, 1, 2, "10"); // Veterinarian Name aRow = new CUHtmlTableRow(); name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(VETERINARIAN_NAME), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(name, "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Veterinarian approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(CalendarTransformer.formatMMDDYYYY(approvalDate), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } } getForm().add(aTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolSearchView.java | 53 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolSearchView.java | 48 |
); addFields(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** Insert the method's description here. Creation date: (1/2/2003 11:34:23 AM) */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // Uni aWidget = getEditWidgetFor("uni", "", "15", "15"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI (do not enter a name):")); row++; columns.setElementAt(null, 1); // clear the element columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element aTable.addRowFor(columns); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element aWidget = getEditWidgetFor("department", "", "15", "15"); columns.setElementAt(aWidget, 1); CUHtmlImage i = new CUHtmlImage("/images/popup.gif"); i.setAlt("Department Lookup"); i.setLink("RascalDepartmentLookup"); i.setOnClick("return departmentOpenSearchWindow('','department','','')"); i.setBorderWidth(0); columns.setElementAt(getWidgetFor("Department lookup"), 2); columns.setElementAt(i, 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Department Code:")); } /** * Insert the method's description here. Creation date: (1/2/2003 11:43:27 AM) * * @return java.lang.String */ public String getAction() { return action; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * Insert the method's description here. Creation date: (1/2/2003 11:41:52 AM) * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 163 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportSignoffServlet.java | 221 |
try { columns.addElement(""); // space holder for column sort String column0 = (String) getSession().getAttribute("column0"); if (!column0.equals(null) || !column0.equals("")) { columns.addElement(column0); } String column1 = (String) getSession().getAttribute("column1"); if (!column1.equals(null) || !column1.equals("")) { columns.addElement(column1); } String column2 = (String) getSession().getAttribute("column2"); if (!column2.equals(null) || !column2.equals("")) { columns.addElement(column2); } String column3 = (String) getSession().getAttribute("column3"); if (!column3.equals(null) || !column3.equals("")) { columns.addElement(column3); } String column4 = (String) getSession().getAttribute("column4"); if (!column4.equals(null) || !column4.equals("")) { columns.addElement(column4); } String column5 = (String) getSession().getAttribute("column5"); if (!column5.equals(null) || !column5.equals("")) { columns.addElement(column5); } String column6 = (String) getSession().getAttribute("column6"); if (!column6.equals(null) || !column6.equals("")) { columns.addElement(column6); } String column7 = (String) getSession().getAttribute("column7"); if (!column7.equals(null) || !column7.equals("")) { columns.addElement(column7); } String column8 = (String) getSession().getAttribute("column8"); if (!column8.equals(null) || !column8.equals("")) { columns.addElement(column8); } String column9 = (String) getSession().getAttribute("column9"); if (!column9.equals(null) || !column9.equals("")) { columns.addElement(column9); } String column10 = (String) getSession().getAttribute("column10"); if (!column10.equals(null) || !column10.equals("")) { columns.addElement(column10); } String column11 = (String) getSession().getAttribute("column11"); if (!column11.equals(null) || !column11.equals("")) { columns.addElement(column11); } String column12 = (String) getSession().getAttribute("column12"); if (!column11.equals(null) || !column11.equals("")) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 112 |
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 633 |
cellBuffer.append("<option value=\""); cellBuffer.append(key); cellBuffer.append("\">"); cellBuffer.append(value); cellBuffer.append("</option>\n"); } } cellBuffer.append("</SELECT>\n"); columns.setElementAt(cellBuffer.toString(), 0); // set up cell 1: cellBuffer = new StringBuffer(200); cellBuffer.append( "<INPUT VALUE=\">>\" TYPE=\"BUTTON\" NAME=\"availableToSelected\" onClick=\"moveToSelected('" ); cellBuffer.append(availableName); cellBuffer.append("','"); cellBuffer.append(selectedName); cellBuffer.append("','"); cellBuffer.append(formName); cellBuffer.append("','"); cellBuffer.append(maxSelect); cellBuffer.append("')\">"); cellBuffer.append("\n<br>\n"); cellBuffer.append( "<INPUT VALUE=\"<<\" TYPE=\"BUTTON\" NAME=\"selectedToAvailable\" onClick=\"moveFromTo('" ); cellBuffer.append(selectedName); cellBuffer.append("','"); cellBuffer.append(availableName); cellBuffer.append("','"); cellBuffer.append(formName); cellBuffer.append("')\">\n"); columns.setElementAt(cellBuffer.toString(), 1); // set up cell 2: cellBuffer = new StringBuffer(200); cellBuffer.append("<SELECT SIZE=\""); cellBuffer.append(listSize); cellBuffer.append("\" MULTIPLE NAME=\""); cellBuffer.append(selectedName); cellBuffer.append("\">\n"); if (selected.size() == 0) { // construct a "stretcher" record to make // the list box wide enough in Netscape for (int x = 0; x < (maxLength * 2); x++) { spaceString += " "; } cellBuffer.append("<OPTION value=\""); cellBuffer.append(DUMMYKEY); cellBuffer.append("\">"); cellBuffer.append(spaceString); cellBuffer.append("</OPTION>\n"); } else { for (int i = 0; i < selected.size(); i++) { String selectedString = (String) selected.elementAt(i); int index = selectedString.indexOf(";"); String key = selectedString.substring(0, index); String value = selectedString.substring(index + 1); cellBuffer.append("<OPTION value=\""); cellBuffer.append(key); cellBuffer.append("\">"); cellBuffer.append(value); cellBuffer.append("</OPTION>\n"); } } cellBuffer.append("</SELECT>\n"); columns.setElementAt(cellBuffer.toString(), 2); getTable().addRowFor(columns); for (int i = 0; i < 2; i++) { getTable().getCell(i, 0).setAlign("CENTER"); getTable().getCell(i, 0).setWidth("45%"); getTable().getCell(i, 1).setAlign("CENTER"); getTable().getCell(i, 1).setWidth("10%"); getTable().getCell(i, 2).setAlign("CENTER"); getTable().getCell(i, 2).setWidth("45%"); } } /** * Creates a new $class.name$ object. * * @param availableName TODO: DOCUMENT ME! * @param available TODO: DOCUMENT ME! * @param selectedName TODO: DOCUMENT ME! * @param selected TODO: DOCUMENT ME! * @param fontName TODO: DOCUMENT ME! * @param formName TODO: DOCUMENT ME! * @param maxSelect TODO: DOCUMENT ME! */ public CUHtmlMoveToSelectList(String availableName, // unique name for |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportApprovalHistoryServlet.java | 115 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 161 |
Vector columns = new Vector(); try { columns.addElement(""); // space holder for column sort String column0 = (String) getSession().getAttribute("column0"); if (!column0.equals(null) || !column0.equals("")) { columns.addElement(column0); } String column1 = (String) getSession().getAttribute("column1"); if (!column1.equals(null) || !column1.equals("")) { columns.addElement(column1); } String column2 = (String) getSession().getAttribute("column2"); if (!column2.equals(null) || !column2.equals("")) { columns.addElement(column2); } String column3 = (String) getSession().getAttribute("column3"); if (!column3.equals(null) || !column3.equals("")) { columns.addElement(column3); } String column4 = (String) getSession().getAttribute("column4"); if (!column4.equals(null) || !column4.equals("")) { columns.addElement(column4); } String column5 = (String) getSession().getAttribute("column5"); if (!column5.equals(null) || !column5.equals("")) { columns.addElement(column5); } String column6 = (String) getSession().getAttribute("column6"); if (!column6.equals(null) || !column6.equals("")) { columns.addElement(column6); } String column7 = (String) getSession().getAttribute("column7"); if (!column7.equals(null) || !column7.equals("")) { columns.addElement(column7); } String column8 = (String) getSession().getAttribute("column8"); if (!column8.equals(null) || !column8.equals("")) { columns.addElement(column8); } String column9 = (String) getSession().getAttribute("column9"); if (!column9.equals(null) || !column9.equals("")) { columns.addElement(column9); } String column10 = (String) getSession().getAttribute("column10"); if (!column10.equals(null) || !column10.equals("")) { columns.addElement(column10); } String column11 = (String) getSession().getAttribute("column11"); if (!column11.equals(null) || !column11.equals("")) { columns.addElement(column11); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixIContrSubsView.java | 107 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIReportView.java | 521 |
if(StringUtils.isNotBlank(subs.getDrugName())) cols.add(getTextWidgetFor(subs.getDrugName() , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); if(subs.getSchedule() != null) cols.add(getTextWidgetFor(Integer.toString( subs.getSchedule() ) , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); if(StringUtils.isNotBlank(subs.getNationalDrugCode())) cols.add(getTextWidgetFor(subs.getNationalDrugCode() , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); if(subs.getMaxQuantity() != null) cols.add(getTextWidgetFor(Integer.toString( subs.getMaxQuantity() ) , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); if(StringUtils.isNotBlank(subs.getStoredUnit())) cols.add(getTextWidgetFor(subs.getStoredUnit() , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); if(StringUtils.isNotBlank(subs.getStorPhysicalForm())) cols.add(getTextWidgetFor(subs.getStorPhysicalForm() , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); if(StringUtils.isNotBlank(subs.getStorConcentration())) cols.add(getTextWidgetFor(subs.getStorConcentration() , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); if(subs.getMaxUsed() != null) cols.add(getTextWidgetFor(Double.toString( subs.getMaxUsed() ) , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); if(StringUtils.isNotBlank(subs.getUseUnit())) cols.add(getTextWidgetFor(subs.getUseUnit() , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); if(StringUtils.isNotBlank(subs.getLabPhysicalForm())) cols.add(getTextWidgetFor(subs.getLabPhysicalForm() , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); if(StringUtils.isNotBlank(subs.getLabConcentration())) cols.add(getTextWidgetFor(subs.getLabConcentration() , 1, false)); else cols.add(getTextWidgetFor("", 1, false)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportApprovalHistoryServlet.java | 118 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportSignoffServlet.java | 221 |
try { columns.addElement(""); // space holder for column sort String column0 = (String) getSession().getAttribute("column0"); if (!column0.equals(null) || !column0.equals("")) { columns.addElement(column0); } String column1 = (String) getSession().getAttribute("column1"); if (!column1.equals(null) || !column1.equals("")) { columns.addElement(column1); } String column2 = (String) getSession().getAttribute("column2"); if (!column2.equals(null) || !column2.equals("")) { columns.addElement(column2); } String column3 = (String) getSession().getAttribute("column3"); if (!column3.equals(null) || !column3.equals("")) { columns.addElement(column3); } String column4 = (String) getSession().getAttribute("column4"); if (!column4.equals(null) || !column4.equals("")) { columns.addElement(column4); } String column5 = (String) getSession().getAttribute("column5"); if (!column5.equals(null) || !column5.equals("")) { columns.addElement(column5); } String column6 = (String) getSession().getAttribute("column6"); if (!column6.equals(null) || !column6.equals("")) { columns.addElement(column6); } String column7 = (String) getSession().getAttribute("column7"); if (!column7.equals(null) || !column7.equals("")) { columns.addElement(column7); } String column8 = (String) getSession().getAttribute("column8"); if (!column8.equals(null) || !column8.equals("")) { columns.addElement(column8); } String column9 = (String) getSession().getAttribute("column9"); if (!column9.equals(null) || !column9.equals("")) { columns.addElement(column9); } String column10 = (String) getSession().getAttribute("column10"); if (!column10.equals(null) || !column10.equals("")) { columns.addElement(column10); } String column11 = (String) getSession().getAttribute("column11"); if (!column11.equals(null) || !column11.equals("")) { columns.addElement(column11); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportProtocolHazMatView.java | 242 |
edu/columbia/rascal/presentation/appendix/pages/AppendixReportPtHazMatView.java | 229 |
getForm().add("<div align=\"center\">"); getForm().add( "<p><font face=\"" + getDefaultFontName() + "\" size=\"4\"> RASCAL Reporting <br>" ); getForm().add("Columbia University</font><br> </p> "); getForm().add( "<p><font face=\"" + getDefaultFontName() + "\"><b>Hazardous Materials Report</b><br>" ); getForm().add(anApplication); getForm().add(" Records<br>"); getForm().add(aLocation); getForm().add("<br>"); getForm().add(" from "); getForm().add(aFromDate); getForm().add(" to "); getForm().add(aToDate); getForm().add("</font></p> "); getForm().add("</div>"); } /** TODO: DOCUMENT ME! */ public void addKey() { getForm().add("<div align=\"center\">"); getForm().add("<p><font face=\"" + getDefaultFontName() + "\" size=\"1\"> Hazardous Materials Key <br>" ); getForm().add("</div>"); CUHtmlTable aTable = new CUHtmlTable(); aTable.setWidth("45%"); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setCellSpacing(0); aTable.setCellPading(0); Vector columns = new Vector(2); columns.addElement(getWidgetFor("Recombinant DNA")); columns.addElement(getWidgetFor("A")); aTable.addRowFor(columns); columns = new Vector(2); columns.addElement(getWidgetFor("Infectious Agents")); columns.addElement(getWidgetFor("B")); aTable.addRowFor(columns); columns = new Vector(2); columns.addElement(getWidgetFor("Human Blood, Human Cell Lines, or OPIM")); columns.addElement(getWidgetFor("C")); aTable.addRowFor(columns); columns = new Vector(2); columns.addElement(getWidgetFor("Strong Light Sources")); columns.addElement(getWidgetFor("D")); aTable.addRowFor(columns); columns = new Vector(2); columns.addElement(getWidgetFor("Hazardous Chemicals or Toxins")); columns.addElement(getWidgetFor("E")); aTable.addRowFor(columns); columns = new Vector(2); columns.addElement(getWidgetFor("Radiation")); columns.addElement(getWidgetFor("F")); aTable.addRowFor(columns); columns = new Vector(2); columns.addElement(getWidgetFor("Strong Radio Frequency sources")); columns.addElement(getWidgetFor("R")); aTable.addRowFor(columns); columns = new Vector(2); columns.addElement(getWidgetFor("X-Ray")); columns.addElement(getWidgetFor("O")); aTable.addRowFor(columns); columns = new Vector(2); // aTable.getCell(0,0).setWidth("50%"); aTable.getCell(0, 1).setWidth("30"); getForm().add(aTable); } /** @see edu.columbia.rascal.presentation.appendix.pages.AppendixQueueView#addSubTitle() */ @Override public void addSubTitle() { setSubTitle("Approved Protocols with Hazardous Materials"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 55 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 131 |
public static Vector buildApprovalResults(java.sql.ResultSet res, String name, Vector v) { Vector row = new Vector(9); String modify = ""; try { if (name.equals(IrbNameConstants.PROTOCOL_HEADER)) { while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()) .toString() ); // protocol oid modify = res.getInt(4) + ""; if (res.getInt(4) < 10) modify = "0" + modify; row.addElement(res.getString(2) + " (Y" + res.getInt(3) + " M" + modify + ")"); // protocol number row.addElement(name); row.addElement(res.getString(6)); // title row.addElement(res.getString(5)); // PI row.addElement(Integer.valueOf((new Float(res.getFloat(7))).intValue()) .toString() ); // event oid row.addElement(res.getString(8)); row.addElement(Integer.valueOf((new Float(res.getFloat(9))).intValue()) .toString() ); // approvalOid row.addElement(res.getString(10)); // approval code v.addElement(row.clone()); row = new Vector(9); } // end while } else { while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()) .toString() ); // protocol oid row.addElement(res.getString(2)); row.addElement(name); if (res.getString(4) == null) row.addElement(""); else row.addElement(res.getString(4)); // title row.addElement(res.getString(3)); // PI row.addElement(Integer.valueOf((new Float(res.getFloat(5))).intValue()) .toString() ); // event oid row.addElement(res.getString(6)); row.addElement(Integer.valueOf((new Float(res.getFloat(7))).intValue()) .toString() ); // ApprovalOid row.addElement(res.getString(8)); // approval code v.addElement(row.clone()); row = new Vector(9); } } } catch (Exception e) { log.error("Exception while Running query", e); } return v; } /** * TODO: DOCUMENT ME! * * @param res TODO: DOCUMENT ME! * @param name TODO: DOCUMENT ME! * @param v TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static Vector buildApprovedResults(java.sql.ResultSet res, String name, Vector v) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 403 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 436 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovedQueueView.java | 222 |
aCell.setAlign("left"); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix B aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_INFECTIOUS_REQ) != null) && (queueItem.get(KEY_INFECTIOUS_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix C aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_HUMAN_MATERIAL_REQ) != null) && (queueItem.get(KEY_HUMAN_MATERIAL_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix D aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_LASER_REQ) != null) && (queueItem.get(KEY_LASER_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix E aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_CHEMICALS_REQ) != null) && (queueItem.get(KEY_CHEMICALS_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix F aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_ISO_REQ) != null) && (queueItem.get(KEY_RADIO_ISO_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // Strong Radio Frequencies aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_FREQ_REQ) != null) && (queueItem.get(KEY_RADIO_FREQ_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // XRay aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_XRAY_REQ) != null) && (queueItem.get(KEY_XRAY_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 554 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 280 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 403 |
aCell.add(getTableCellData(level, "center")); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix B aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_INFECTIOUS_REQ) != null) && (queueItem.get(KEY_INFECTIOUS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix C aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_HUMAN_MATERIAL_REQ) != null) && (queueItem.get(KEY_HUMAN_MATERIAL_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix D aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_LASER_REQ) != null) && (queueItem.get(KEY_LASER_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix E aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_CHEMICALS_REQ) != null) && (queueItem.get(KEY_CHEMICALS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // appendix F aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_ISO_REQ) != null) && (queueItem.get(KEY_RADIO_ISO_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // Strong Radio Frequencies aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_FREQ_REQ) != null) && (queueItem.get(KEY_RADIO_FREQ_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; // XRay aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_XRAY_REQ) != null) && (queueItem.get(KEY_XRAY_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); colNum++; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 260 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 172 |
int year = Integer.parseInt(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param dayIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getDayWidget(String fieldName, int dayIndex) { EVector list = new EVector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 228 |
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 113 |
int year = Integer.valueOf(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { Vector<String> list = new Vector<String>(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 260 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 347 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 388 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 321 |
int year = Integer.parseInt(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param dayIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getDayWidget(String fieldName, int dayIndex) { EVector list = new EVector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** * Insert the method's description here. Creation date: (2/20/2002 2:09:52 PM) * * @param eventName TODO: DOCUMENT ME! * * @return java.lang.String */ public String getDisplayStringFor(String eventName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 347 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 388 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 321 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 172 |
int year = new Long(currentDate.substring(6)).intValue(); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { EVector list = new EVector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaSearchYearlyView.java | 89 |
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchYearlyView.java | 89 |
CUHtmlText aText = new CUHtmlText("Select " + getReportType() + " to View"); aText.setFontSize("3"); aText.setFontName(getDefaultFontName()); aText.setAlignment("center"); aText.setIsBold(true); add(aText); CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); getSection(getMinutes(), aTable, getReportType()); getForm().add(aTable); add(getForm()); } /** * Insert the method's description here. Creation date: (12/6/2002 2:21:36 PM) * * @return java.util.Vector */ public java.util.Vector getMinutes() { return minutes; } /** * Insert the method's description here. Creation date: (11/18/2002 2:19:01 PM) * * @return java.lang.String */ public java.lang.String getReportType() { return reportType; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param results TODO: DOCUMENT ME! * @param aTable TODO: DOCUMENT ME! * @param type TODO: DOCUMENT ME! */ public void getSection(Vector results, CUHtmlTable aTable, String type) { Vector row = new Vector(3); row.addElement(getHeadingLabelFor(type + " Number")); row.addElement(getHeadingLabelFor("Short Agenda")); row.addElement(getHeadingLabelFor("Committee")); row.addElement(getHeadingLabelFor("Status")); row.addElement(getHeadingLabelFor("Meeting Date")); aTable.addRowFor(row); row = new Vector(5); for (int i = 0; i < results.size(); i++) { Vector currentRow = (Vector) results.elementAt(i); if (hasEditAccess( ServiceLocator.getIrbAgendaHeaderService().getHeaderByOid( (String) currentRow.elementAt(0) ), type ) ) row.addElement(getLinkWidgetFor(((String) currentRow.elementAt(1)).trim(), "IrbAgendaRetrieveServlet?anOid=" + currentRow.elementAt(0) ) ); // agendaId else { if (type.equals("Agendas")) row.addElement(getDataSheetLinkWidgetFor( ((String) currentRow.elementAt(1)).trim(), (String) currentRow.elementAt(0) ) ); // agendaId else row.addElement(getLinkWidgetFor(((String) currentRow.elementAt(1)).trim(), "IrbAgendaRetrieveServlet?anOid=" + currentRow.elementAt(0) ) ); // agendaId } row.addElement(getShortAgendaLinkWidgetFor(((String) currentRow.elementAt(1)).trim(), (String) currentRow.elementAt(0) ) ); // agendaId row.addElement(getWidgetFor( ServiceLocator.getIrbCommitteeService().findById( Long.valueOf((String) currentRow.elementAt(2)) ).getCommitteeName() ) ); row.addElement(getWidgetFor((String) currentRow.elementAt(3))); Object dateObj = currentRow.elementAt(4); if (dateObj instanceof java.sql.Date) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 353 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 512 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 237 |
aTitle = getTableColumnName("Release"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); aTitle1 = getTableColumnName("Date"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // P.I. aTitle = getTableColumnName("Principal Investigator", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle); colNum++; // Species aTitle = getTableColumnName("Species", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle); colNum++; // Primary Site aTitle1 = getTableColumnName("Primary Site", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Current Status aTitle1 = getTableColumnName("Current Status", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Highest Pain Level aTitle = getTableColumnName("Maximum"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); aTitle1 = getTableColumnName("Pain"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendices aTitle = getTableColumnName("Appendices"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); header.setColumnsToSpan(6); // Appendix A aTitle1 = getTableColumnName("A"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix B aTitle1 = getTableColumnName("B"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix C aTitle1 = getTableColumnName("C"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix D aTitle1 = getTableColumnName("D"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix E aTitle1 = getTableColumnName("E"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix F aTitle1 = getTableColumnName("F"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Strong Radio Frequency aTitle1 = getTableColumnName("SRF"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/pages/HzAppendixCreatedView.java | 191 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixCreationView.java | 92 |
public void addDefaultRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; HzAppendixHeader hah = getProtocol(); // Animal housing location aWidget = getSiteLocationWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Being Submitted to  ", "ihelp2.html" ) ); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // title aWidget = getMultilineTextWidgetFor("headerTitle", "2", "30", hah.getTitle() ); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor( "Title  <br>(maximum 255 characters)  ", "ihelp3.html" ) ); aTable.getCell(row, 0).setVAlign("top"); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // sponsoring department String deptNumber = hah.getDeptNumber(); aWidget = getEditWidgetFor("originatingDepartment", deptNumber, "3", "3"); // ((CUHtmlEntryField) aWidget).setOnKeyPress("return // restrictFieldToNumbers(event)"); columns.setElementAt(aWidget, 1); CUHtmlImage i = new CUHtmlImage("/images/popup.gif"); i.setAlt("Department Lookup"); i.setLink("RascalDepartmentLookup"); i.setOnClick( "return departmentOpenSearchWindow('','originatingDepartment','originatingSubDepartment','originatingSubSubDepartment')" ); i.setBorderWidth(0); String name = hah.getDeptName(); // Note that each subclass may // invoke different getDeptName columns.setElementAt(getWidgetFor(name), 2); columns.setElementAt(i, 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor( "Originating Department  ", "ihelp63.html" ) ); aTable.getCell(row, 3).setAlign("LEFT"); row++; columns.setElementAt("", 2); columns.setElementAt("", 3); // sponsorSubDeptNum aWidget = getEditWidgetFor("originatingSubDepartment", hah.getSubDeptNumber(), "2", "2" ); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Sub-Department  ", "ihelp64.html" ) ); row++; // sub sub department aWidget = getEditWidgetFor("originatingSubSubDepartment", hah.getSubSubDeptNumber(), "2", "2" ); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Sub sub department  ", "ihelp65.html" ) ); aTable.getCell(row, 1).setColumnsToSpan(3); row++; addSpacerRows(aTable, numCells, 1, "10"); row++; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStats2View.java | 156 |
edu/columbia/rascal/presentation/irb/pages/IrbReportOverallCommStatsAfterLogInView.java | 193 |
}; Vector columns = new Vector(); int titleLen = titles.length; for (String title : titles) { columns.add(title); } return columns; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! */ public void getReportExplanationKeyWidget(CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); String keyName; String keyText; CUHtmlTableCell header; keyText = "Key:"; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyText, 2, false)); aCell.setAlign("center"); aCell.setVAlign("bottom"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aRow.add(aCell); aTable.add(aRow); aRow = new CUHtmlTableRow(); keyName = "1"; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyName, -2, false)); aCell.setAlign("center"); aCell.setVAlign("top"); aRow.add(aCell); keyText = "The number events approved within specified date range."; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyText, -2, false)); aCell.setAlign("left"); aCell.setVAlign("top"); aRow.add(aCell); aTable.add(aRow); aRow = new CUHtmlTableRow(); keyName = "2"; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyName, -2, false)); aCell.setAlign("center"); aCell.setVAlign("top"); aRow.add(aCell); keyText = "The number of return actions for events approved within specified date range."; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyText, -2, false)); aCell.setAlign("left"); aCell.setVAlign("top"); aRow.add(aCell); aTable.add(aRow); aRow = new CUHtmlTableRow(); keyName = "3"; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyName, -2, false)); aCell.setAlign("center"); aCell.setVAlign("top"); aRow.add(aCell); keyText = "The ratio of number of returns to number of events approved within specified date range."; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyText, -2, false)); aCell.setAlign("left"); aCell.setVAlign("top"); aRow.add(aCell); aTable.add(aRow); aRow = new CUHtmlTableRow(); keyName = "4"; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyName, -2, false)); aCell.setAlign("center"); aCell.setVAlign("top"); aRow.add(aCell); keyText = |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 714 |
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 866 |
public void addVectorContentWithCellPadding(Vector v, float p[], PDFStyle style, int cellPad) { if (style == null) style = getStyle(); if (cellPad == 0) cellPad = 10; String content = ""; String label = ""; int originalPageNum = getPDFObject().getNumberOfPages(); int startPageNum = originalPageNum; int prevPageNum = startPageNum; int currPageNum = startPageNum; float prevOverflow = 0; float currOverflow = 0; PDFPage originalPage = getPDFObject().getPage(originalPageNum - 1); float left = getLeftPageMargin(); float right = 0; float oriHeight = getHeight(); // fw 03/24/2003 float lineSpace = 0; float overflow = 0; if (v != null) { if (v.size() != 0) { float textSize = (getPageWidth() - getLeftPageMargin() - getRightPageMargin() - (getPDFPage().UNITS_POINTS * v.size())) / (v.size()); if (p == null) { p = new float[v.size()]; for (int pcount = 0; pcount < p.length; pcount++) { p[pcount] = textSize; } } } for (int i = 0; i < v.size(); i++) { content = v.get(i).toString(); originalPage = getPDFObject().getPage(originalPageNum - 1); setPDFPage(originalPage); setPageFeature(); prevPageNum = currPageNum; prevOverflow = currOverflow; currOverflow = 0; if (i == 0) { left = getLeftPageMargin(); right = left + p[i]; } else if (i == (v.size() - 1)) { left = right + (getPDFPage().UNITS_POINTS / cellPad); right = getPageWidth() - getRightPageMargin(); } else { left = right + (getPDFPage().UNITS_POINTS / cellPad); right = left + p[i]; } // added fw 03/24/2003 StringTokenizer contentToken = new StringTokenizer(content, "\n", true); lineSpace = style.getFontLeading(); overflow = 0; int previousPageNum = getPDFPage().getPageNumber(); String nextTokenValue = ""; setPDFPage(originalPage); setHeight(oriHeight); // fw 03/24/2003 while (contentToken.hasMoreElements()) { nextTokenValue = contentToken.nextElement().toString(); try { overflow = addContentItem(getPDFPage(), nextTokenValue, left, right, style); } catch (Exception e) { } if (overflow == 0) { // overflow = lineSpace; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixChemicalView.java | 277 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIContrSubsView.java | 238 |
); for (int i = 0; i < locations.size(); i++) { AppendixLocation aLocation = (AppendixLocation) locations.elementAt(i); columns = new Vector(6); if (aLocation.getLocationType() == null || aLocation.getLocationType().trim().equals("")) { columns.add(image); } else { columns.add( "<font face=\"" + getDefaultFontName() + "\" size =\"1\">" + " " + aLocation.getLocationType() + "</font>" ); } if (aLocation.getBuilding() == null || aLocation.getBuilding().trim().equals("")) { columns.add(image); } else { columns.add( "<font face=\"" + getDefaultFontName() + "\" size =\"1\">" + " " + aLocation.getBuilding() + "</font>" ); } if (aLocation.getFloor() == null || aLocation.getFloor().trim().equals("")) { columns.add(image); } else { columns.add( "<font face=\"" + getDefaultFontName() + "\" size =\"1\">" + " " + aLocation.getFloor() + "</font>" ); } if (aLocation.getRoom() == null || aLocation.getRoom().trim().equals("")) { columns.add(image); } else { columns.add( "<font face=\"" + getDefaultFontName() + "\" size =\"1\">" + " " + aLocation.getRoom() + "</font>" ); } // Modify Location CUHtmlImage modify = getWidgetPopUpWindowButton( AppendixLocationEntryServlet.class.getName() + "?" + KEY_PARM_LOCATION_OID + "=" + aLocation.getId().toString(), "Modify", "EditLocation", "350", "600" ); columns.add(modify); // Delete Location CUHtmlImage trash = getWidgetImageTrashCanButton( AppendixLocationRemoveServlet.class.getName() + "?" + KEY_PARM_LOCATION_OID + "=" + aLocation.getId().toString(), "Delete" ); columns.add(trash); aTable.addRowFor(columns); aTable.getCell(row, 0).setAlign("left"); aTable.getCell(row, 1).setAlign("left"); aTable.getCell(row, 2).setAlign("left"); aTable.getCell(row, 3).setAlign("left"); aTable.getCell(row, 4).setAlign("Center"); aTable.getCell(row, 5).setAlign("Center"); row++; } return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 74 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 205 |
columns.addElement("PI"); columns.addElement("DepartmentName"); columns.addElement("Committee"); columns.addElement("Approved"); columns.addElement("Expiration"); if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); getForm().add(addDateRange()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + IrbReportCancerCenterDateRangeServlet.class.getName() + "'" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); add(getForm()); render(); } /** * This method was created in VisualAge. * * @param rows TODO: DOCUMENT ME! * @param print TODO: DOCUMENT ME! * @param sortColumn TODO: DOCUMENT ME! * @param beginDate TODO: DOCUMENT ME! * @param endDate TODO: DOCUMENT ME! * @param downloadable TODO: DOCUMENT ME! * @param showTitle TODO: DOCUMENT ME! * * @author Halayn Hescock */ public IrbReportCancerCenterStatusView(Vector rows, boolean print, String sortColumn, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 264 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 272 |
); getForm().add("<font face=\"Comic Sans MS\" size=\"3\"> Protocols Submitted "); getForm().add("</font><br><font face=\"Comic Sans MS\" size=\"2\"> From "); getForm().add(aFromDate); getForm().add(" to "); getForm().add(aToDate); getForm().add("</font></p> "); getForm().add("</div>"); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getBeginDate() { return beginDate; } /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getEndDate() { return endDate; } /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); for (int i = 0; i < columns.size(); i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * TODO: DOCUMENT ME! * * @param queueName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbClinicalTrialsReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * TODO: DOCUMENT ME! * * @param queueName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getUrlToViewReportForDownload(String queueName) { return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbClinicalTrialsReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { this.endDate = newValue; } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setPrintable(boolean aValue) { printable = aValue; } /** * setSortBy. * * @param aValue TODO: DOCUMENT ME! */ public void setSortBy(String aValue) { sortBy = aValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHazardousMaterialView.java | 636 |
edu/columbia/rascal/presentation/lab/pages/HzHazardousMaterialView.java | 471 |
KEY_PARM_HAZMAT_REDIRECT + "=" + IrbHazardousMaterialServlet.class.getName() ); cell.add(trash); cell.setAlign("center"); } cellNum++; // modify staff covered by appendix cell = aTable.getCell(rowCount, cellNum); if (appendixNumber == null) { cell.add("<img src=\"/images/blank.gif\" border=\"0\">"); } else { CUHtmlImage im = getWidgetPopUpWindowButton( AppendixStaffHandlesHazmatServlet.class.getName() + '?' + KEY_PARM_APPENDIX_TYPE + '=' + appendixType + "&&" + KEY_PARM_ATTACHED + "=Y", "Staff List", "StaffList" ); cell = aTable.getCell(rowCount, cellNum); cell.add(im); cell.setAlign("center"); cell.setVAlign("center"); } cellNum++; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setHazardsListTableHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableCell header; int cellNum = 0; // Hazard aTitle = new CUHtmlText("Hazardous Agents"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // selection list link aTitle = new CUHtmlText(" Attach"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // view/print link aTitle = new CUHtmlText(" Appendix"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // detach appendix aTitle = new CUHtmlText(" Detach"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Check-off staff covered by appendix aTitle = new CUHtmlText(" Staff"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; } /** * This method was created in VisualAge. Sets the subtitle of this page. If aSubTitle is a * String, use the default subtitle settings. if aSubTitle is CUHtmlText, override the default * title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ @Override public void setSubTitle(Object aSubTitle) { if (!(aSubTitle instanceof CUHtmlText)) { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); aSubTitle = aText; } } super.setSubTitle(aSubTitle); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 705 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 853 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 713 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 861 |
public void addProtocolAttached(String label, Vector protocolAttached, String eventName) { int size = protocolAttached.size(); if (size > 0) { addContent(" ", " ", theStyle); addSectionTitle(label); setDataSheetFeature(); // setHeight(getHeight()-getPDFPage().getStyle().getFontLeading()); String firstLabel = "Protocol Number"; String thirdLabel = "Title"; float xyPosition[] = new float[] {}; if (eventName.equals(IrbNameConstants.ADVERSE_EVENT) || eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { thirdLabel = "Keyword"; } int tableSize = 4; if (getAgendaView().isProtocol(eventName)) { tableSize = 6; } Vector vLabel = new Vector(tableSize); vLabel.add(0, firstLabel); vLabel.add(1, "PI"); vLabel.add(2, thirdLabel); vLabel.add(3, "Primary Reviewer"); vLabel.add(4, "Recommended Status"); if (getAgendaView().isProtocol(eventName)) { xyPosition = new float[] { unitXy * 15, unitXy * 10, unitXy * 17, unitXy * 13, unitXy * 15, unitXy * 10, unitXy * 10 }; vLabel.add(5, "IRB Approval Date"); vLabel.add(6, "Expiration Date"); } else { xyPosition = new float[] { unitXy * 15, unitXy * 10, unitXy * 17, unitXy * 13, unitXy * 45 }; } Vector currentRow = null; Vector vContent = new Vector(tableSize); String strEUIRB = ""; for (int i = 0; i < size; i++) { addUnderLinedLabel(vLabel, xyPosition, theStyle, 10, 12); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); currentRow = (Vector) protocolAttached.elementAt(i); strEUIRB = getNotNullString((String) currentRow.elementAt(2), ""); strEUIRB = "IRB-" + strEUIRB; vContent.add(0, strEUIRB); vContent.add(1, getNotNullString((String) currentRow.elementAt(4), "")); // pi vContent.add(2, getNotNullString((String) currentRow.elementAt(5), "")); // title // reviewer StringBuilder revString = new StringBuilder(""); if (getAgendaView().getEventObject((String) currentRow.elementAt(0), eventName) != null ) { Vector reviewers = IrbAgendaProtocolQuery.getPreMinuteApprovalEventReviewersFor( |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 434 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 275 |
elements.addElement(getWidgetFor((String) currentRow.get("Notification"))); formtable.addRowFor(elements); elements = new Vector(); } } } /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } CUHtmlText text = new CUHtmlText(aString); text.setLink("Javascript:onClick=parent.frames[2].location='" //+ //FIXME link IrbProtocolRetrieveServlet.class.getName() + "?anOid=" + anOid + "'" ); text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { String aString = "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; return aString; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToViewReportForDownload(String queueName) { String aString = "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; return aString; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setPrintable(boolean aValue) { printable = aValue; } /** * setSortBy. * * @param aValue TODO: DOCUMENT ME! */ public void setSortBy(String aValue) { sortBy = aValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixGIsotopeEntryServlet.java | 153 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeEntryServlet.java | 153 |
isot = new AppendixIsotope((AppendixG) getAppendix()); ServiceLocator.getAppendixIsotopeService().save(isot); } isot.setName(getRequestParameter("isotope")); isot.setCompound(getRequestParameter("compound")); halfLifeUnit = getRequestParameter("halfLifeUnit"); if (halfLifeUnit.contains("~")) { halfLifeUnit = ""; } isot.setHalfLifeUnit(halfLifeUnit); float hlFloat = 0; String hl = getRequestParameter("halfLife"); if (!isEmpty(hl)) { hlFloat = Float.parseFloat(hl); } isot.setHalfLife(hlFloat); /* * float hlsFloat= 0; String hls = getRequestParameter("halfLifeInSubject"); if * (!isEmpty(hls)) { hlsFloat = Float.parseFloat(hls); } * isot.setHalfLifeInSubject(hlsFloat); halfLifeInSubjectUnit = * getRequestParameter("halfLifeInSubjectUnit"); if (halfLifeInSubjectUnit.indexOf("~") > -1) { * halfLifeInSubjectUnit = ""; } * isot.setHalfLifeInSubjectUnit(halfLifeInSubjectUnit); */ float iaFloat = 0; String ia = getRequestParameter("initialActivity"); if (!isEmpty(ia)) { iaFloat = Float.parseFloat(ia); } isot.setInitialActivity(iaFloat); initialActivityUnit = getRequestParameter("initialActivityUnit"); if (initialActivityUnit.contains("~")) { initialActivityUnit = ""; } isot.setInitialActivityUnit(initialActivityUnit); routeOfAdmin = getRequestParameter("routeOfAdmin"); otherRouteOfAdmin = getRequestParameter("otherRoute"); if ((otherRouteOfAdmin != null) && (otherRouteOfAdmin.length() > 0)) { isot.setRouteOfAdministration(otherRouteOfAdmin); } else { isot.setRouteOfAdministration(routeOfAdmin); } ServiceLocator.getAppendixIsotopeService().save(isot); } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void submit() { String errorMsg = "The following fields must be specified:<p>"; Vector errorList = new Vector(); String isotope = getRequestParameter("isotope"); if (isEmpty(isotope)) { errorList.addElement("name of the isotope"); } String compound = getRequestParameter("compound"); if (isEmpty(compound)) { errorList.addElement("compound"); } String halfLife = getRequestParameter("halfLife"); if (isEmpty(halfLife)) { errorList.addElement("physical half-life"); } String halfLifeUnit = getRequestParameter("halfLifeUnit"); if (halfLifeUnit.contains("~")) { errorList.addElement("physical half-life unit of measure"); } /* * String halfLifeInSubject = getRequestParameter("halfLifeInSubject"); * * String halfLifeInSubjectUnit = getRequestParameter("halfLifeInSubjectUnit"); if * (halfLifeInSubject != null && halfLifeInSubject.trim().length() > 0 && * Float.parseFloat(halfLifeInSubject) > 0 && halfLifeInSubjectUnit.indexOf("~") > -1) * { errorList.addElement("half-life in subject unit of measure"); } */ String initialActivity = getRequestParameter("initialActivity"); if (isEmpty(initialActivity)) { errorList.addElement("initial activity"); } String initialActivityUnit = getRequestParameter("initialActivityUnit"); if (initialActivityUnit.contains("~")) { errorList.addElement("initial activity level unit of measure"); } String routeOfAdmin = getRequestParameter("routeOfAdmin"); String otherRoute = getRequestParameter("otherRoute"); if ((routeOfAdmin.contains("~")) && ((otherRoute == null) || (otherRoute.length() == 0)) ) { errorList.addElement("route of administration"); } if (!(errorList.isEmpty())) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 77 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 75 |
setSubTitle("IRB Approval Status Report"); setPrintable(print); setDownloadable(downloadable); setSortBy(sortColumn); String instruction = ""; Vector columns = new Vector(); columns.addElement("ProtocolNumber"); columns.addElement("PI"); if (event.equals("Protocol") || event.equals("Renewal") || event.equals("Modification")) columns.addElement("COI"); columns.addElement("Committee"); columns.addElement("StatusDate"); if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); getForm().add(addDateRange()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptFilterByJobCodeView.java | 48 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 71 |
setDeptName(createSelectedDepartmentString(selectedDepartments)); String instruction = ""; if ((rows == null) || (rows.isEmpty())) { add("<br>"); // put a space CUHtmlText msgTxt = new CUHtmlText( "There is no data to review. Please select new criteria and try again." ); msgTxt.setFontName(getDefaultFontName()); msgTxt.setIsBold(true); msgTxt.setFgColor("BLUE5"); getForm().add(msgTxt); } else { if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(allCourses), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } getForm().add(getReportTable(rows, allCourses)); } if (!(getPrintable())) { getForm().add("<BR>"); CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", " Return ", "parent.frames[2].location='" + TCReportDeptSelectionServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 132 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 134 |
IrbReportClinicalTrialsFirstSubmissionDateRangeServlet.class.getName() + "'" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! * @param columns TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows, Vector columns) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setWidth("95%"); t.setAlign("center"); t.setCellPadding(2); Object dateObj = null; Vector smallfont = new Vector(); // to make thesame font of header and rows for (Enumeration e = columns.elements(); e.hasMoreElements();) { smallfont.addElement(getWidgetFor(e.nextElement().toString())); } t.addRowFor(smallfont); elements = new Vector(); String name = null; int rowSize = rows.size(); for (int n = 0; n < rowSize; n++) { Hashtable currentRow = (Hashtable) rows.elementAt(n); if (currentRow.containsKey("ProtocolNumber")) { name = (String) currentRow.get("ProtocolNumber"); if (!(getPrintable())) { elements.addElement(getWidgetFor((String) currentRow.get("ProtocolNumber"))); // temporarily remove link here,HH276 will work on authorization } else { elements.addElement(getWidgetFor((String) currentRow.get("ProtocolNumber"))); } } if (currentRow.containsKey("ProductType")) elements.addElement(getWidgetFor((String) currentRow.get("ProductType"))); if (currentRow.containsKey("ProductName")) elements.addElement(getWidgetFor((String) currentRow.get("ProductName"))); if (currentRow.containsKey("Manufacturer")) elements.addElement(getWidgetFor((String) currentRow.get("Manufacturer"))); if (currentRow.containsKey("PI")) elements.addElement(getWidgetFor((String) currentRow.get("PI"))); // PI if (currentRow.containsKey("Title")) |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovedCountView.java | 169 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionCountView.java | 172 |
return columns; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param results TODO: DOCUMENT ME! * @param aTable TODO: DOCUMENT ME! */ public void getReportTotalWidget(Vector results, CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); Vector total = new Vector(14); for (int i = 0; i < 14; i++) // initialize total to zeros total.addElement("0"); Vector currentRow = new Vector(); int aNumber = 0; int sum = 0; for (int i = 0; i < results.size(); i++) { currentRow = (Vector) results.elementAt(i); for (int j = 0; j < currentRow.size(); j++) { aNumber = Integer.valueOf((String) (currentRow.elementAt(j))); sum = Integer.valueOf((String) (total.elementAt(j))); sum = sum + aNumber; total.setElementAt(sum + "", j); } } // subTotal aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor("Sub Totals", 2, false)); aCell.setAlign("right"); aRow.add(aCell); // new protocols aCell = new CUHtmlTableCell(); aCell.add(getThreeElementsTable(total.elementAt(0) + "", total.elementAt(1) + "", total.elementAt(2) + "" ) ); aCell.setAlign("right"); aRow.add(aCell); // renewals aCell = new CUHtmlTableCell(); aCell.add(getThreeElementsTable(total.elementAt(3) + "", total.elementAt(4) + "", total.elementAt(5) + "" ) ); aCell.setAlign("right"); aRow.add(aCell); // mods aCell = new CUHtmlTableCell(); aCell.add(getThreeElementsTable(total.elementAt(6) + "", total.elementAt(7) + "", total.elementAt(8) + "" ) ); aCell.setAlign("right"); aRow.add(aCell); // AE aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor("", 2, false)); aCell.setAlign("right"); aRow.add(aCell); // Term aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor("", 2, false)); aCell.setAlign("right"); aRow.add(aCell); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 159 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportStatusServlet.java | 186 |
if (reportType == null) reportType = (String) getSession().getAttribute("reportType"); Vector columns = new Vector(); try { columns.addElement(""); // space holder for column sort String column0 = (String) getSession().getAttribute("column0"); if (!column0.equals(null) || !column0.equals("")) { columns.addElement(column0); } String column1 = (String) getSession().getAttribute("column1"); if (!column1.equals(null) || !column1.equals("")) { columns.addElement(column1); } String column2 = (String) getSession().getAttribute("column2"); if (!column2.equals(null) || !column2.equals("")) { columns.addElement(column2); } String column3 = (String) getSession().getAttribute("column3"); if (!column3.equals(null) || !column3.equals("")) { columns.addElement(column3); } String column4 = (String) getSession().getAttribute("column4"); if (!column4.equals(null) || !column4.equals("")) { columns.addElement(column4); } String column5 = (String) getSession().getAttribute("column5"); if (!column5.equals(null) || !column5.equals("")) { columns.addElement(column5); } String column6 = (String) getSession().getAttribute("column6"); if (!column6.equals(null) || !column6.equals("")) { columns.addElement(column6); } String column7 = (String) getSession().getAttribute("column7"); if (!column7.equals(null) || !column7.equals("")) { columns.addElement(column7); } String column8 = (String) getSession().getAttribute("column8"); if (!column8.equals(null) || !column8.equals("")) { columns.addElement(column8); } String column9 = (String) getSession().getAttribute("column9"); if (!column9.equals(null) || !column9.equals("")) { columns.addElement(column9); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportApprovalHistoryServlet.java | 115 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportStatusServlet.java | 187 |
Vector columns = new Vector(); try { columns.addElement(""); // space holder for column sort String column0 = (String) getSession().getAttribute("column0"); if (!column0.equals(null) || !column0.equals("")) { columns.addElement(column0); } String column1 = (String) getSession().getAttribute("column1"); if (!column1.equals(null) || !column1.equals("")) { columns.addElement(column1); } String column2 = (String) getSession().getAttribute("column2"); if (!column2.equals(null) || !column2.equals("")) { columns.addElement(column2); } String column3 = (String) getSession().getAttribute("column3"); if (!column3.equals(null) || !column3.equals("")) { columns.addElement(column3); } String column4 = (String) getSession().getAttribute("column4"); if (!column4.equals(null) || !column4.equals("")) { columns.addElement(column4); } String column5 = (String) getSession().getAttribute("column5"); if (!column5.equals(null) || !column5.equals("")) { columns.addElement(column5); } String column6 = (String) getSession().getAttribute("column6"); if (!column6.equals(null) || !column6.equals("")) { columns.addElement(column6); } String column7 = (String) getSession().getAttribute("column7"); if (!column7.equals(null) || !column7.equals("")) { columns.addElement(column7); } String column8 = (String) getSession().getAttribute("column8"); if (!column8.equals(null) || !column8.equals("")) { columns.addElement(column8); } String column9 = (String) getSession().getAttribute("column9"); if (!column9.equals(null) || !column9.equals("")) { columns.addElement(column9); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1002 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1120 |
pNumber = "LS-" + hah.getAppendixHeaderNumber(); HzStaff piStaff = getPI(hah); piString = (piStaff != null) ? ServiceLocator.getRascalUserService().findById(piStaff.getRid()) .getUserFirstLastName() : blank; initiatorString = ServiceLocator.getRascalUserService().findById(hah.getCreatedBy()) .getUserFirstLastName(); // creationDate = CalendarTransformer.toDateTimeString(hah.getCreationDate()); creationDate = CalendarTransformer.formatMMDDYYYY(hah.getCreationDate()); String departmentName = (isEmpty(hah.getDeptName()) ? blank : hah.getDeptName()); String departmentCode = (isEmpty(hah.getDeptNumber()) ? blank : hah.getDeptNumber()); if (!departmentName.equals(blank)) { department = departmentName + " " + "(" + departmentCode + ")"; } department = (isEmpty(department) ? blank : department); } else { pTitle = blank; pNumber = blank; piString = blank; initiatorString = blank; creationDate = blank; department = blank; } add(getSubTitle()); s.append("<p><table width=\"100%\" border=\"1\" bgcolor=\"#CCCCCC\">"); s.append("<tr> "); s.append("<td align= \"right\"> "); s.append("<font face=\"Comic Sans MS\" size=\"1\">Title</font>"); s.append("</td>"); // title s.append("<td> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(pTitle).append("</font></td> "); // protocol number s.append("<td > "); s.append( "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">In-Vitro Number</font> </div>" ); s.append("</td> <td> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(pNumber); s.append("</font></td> </tr>"); // creation date s.append( "<tr> <td><div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Date Created</font></div></td> <td> " ); s.append("<font face=\"Comic Sans MS\" size=\"1\"> "); s.append(creationDate); s.append("</font></td> "); // creation date s.append( "<td><div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Initiator</font></div>" ); s.append("</td> <td> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(initiatorString).append("</font></td> </tr> "); // pi s.append("</font></td></tr> "); s.append( " <tr> <td> <div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Principal Investigator</font></div>" ); s.append("</td> <td><font face=\"Comic Sans MS\" size=\"1\">"); s.append(piString); // user s.append("</font></td> "); s.append( " <td> <div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">You are</font></div>" ); s.append("</td> <td><font face=\"Comic Sans MS\" size=\"1\">"); s.append(getRascalUser().getNameFirst()).append(" ").append(getRascalUser().getNameLast()).append(" (").append(getRascalUser().getUserId()).append(")"); s.append("</font></td></tr> "); s.append("</table> <br>"); return s.toString(); } /** * This method was created in VisualAge. * * @param hah TODO: DOCUMENT ME! * * @return a string with html code to produce navigation bar */ public String getProtocolHeaderHtml(HzAppendixHeader hah) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 75 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptFilterByJobCodeView.java | 48 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 71 |
setTestLocation(testLocation); String instruction = ""; if ((rows == null) || (rows.isEmpty())) { add("<br>"); // put a space CUHtmlText msgTxt = new CUHtmlText( "There is no data to review. Please select new criteria and try again." ); msgTxt.setFontName(getDefaultFontName()); msgTxt.setIsBold(true); msgTxt.setFgColor("BLUE5"); getForm().add(msgTxt); } else { if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(allCourses), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } getForm().add(getReportTable(rows, allCourses)); } if (!(getPrintable())) { getForm().add("<BR>"); CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", " Return ", "parent.frames[2].location='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixInvitroView.java | 61 |
edu/columbia/rascal/presentation/appendix/pages/AppendixLabAbstractView.java | 187 |
pNumber = hah.getAppendixHeaderNumber(); HzStaff piStaff = getHzPI(hah); piString = (piStaff != null) ? ServiceLocator.getRascalUserService().findById(piStaff.getRid()) .getUserFirstLastName() : blank; initiatorString = ServiceLocator.getRascalUserService().findById(hah.getCreatedBy()) .getUserFirstLastName(); creationDate = hah.getCreationDate().toString(); String departmentName = (isEmpty(hah.getDeptName()) ? blank : hah.getDeptName()); String departmentCode = (isEmpty(hah.getDeptNumber()) ? blank : hah.getDeptNumber()); if (!departmentName.equals(blank)) { department = departmentName + " " + "(" + departmentCode + ")"; } department = (isEmpty(department) ? blank : department); } else { pTitle = blank; pNumber = blank; piString = blank; initiatorString = blank; creationDate = blank; department = blank; } add(getSubTitle()); s.append("<p><table width=\"100%\" border=\"1\" bgcolor=\"#CCCCCC\">"); s.append("<tr> "); s.append("<td align= \"right\"> "); s.append("<font face=\"Comic Sans MS\" size=\"1\">Title</font>"); s.append("</td>"); // title s.append("<td> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(pTitle).append("</font></td> "); // protocol number s.append("<td > "); s.append( "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">In-Vitro Number</font> </div>" ); s.append("</td> <td> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(pNumber); s.append("</font></td> </tr>"); // creation date s.append( "<tr> <td><div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Date Created</font></div></td> <td> " ); s.append("<font face=\"Comic Sans MS\" size=\"1\"> "); s.append(creationDate); s.append("</font></td> "); // creation date s.append( "<td><div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Initiator</font></div>" ); s.append("</td> <td> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(initiatorString).append("</font></td> </tr> "); // pi s.append("</font></td></tr> "); s.append( " <tr> <td> <div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Principal Investigator</font></div>" ); s.append("</td> <td><font face=\"Comic Sans MS\" size=\"1\">"); s.append(piString); // user s.append("</font></td> "); s.append( " <td> <div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">You are</font></div>" ); s.append("</td> <td><font face=\"Comic Sans MS\" size=\"1\">"); s.append(getRascalUser().getNameFirst()).append(" ").append(getRascalUser().getNameLast()).append(" (").append(getRascalUser().getUserId()).append(")"); s.append("</font></td></tr> "); s.append("</table> <br>"); return s.toString(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 91 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 268 |
Vector oldBusinessAttached, Vector newBusinessAttached, Vector unanticipateAttached, Vector NRunanticipateAttached, boolean inFrames ) { super(); setMainTitle("Human Subjects"); setPageTitle("RASCAL Human Subjects - Data Sheet "); setAgendaHeader((IrbAgendaHeader) bo); setRascalUser(aUser); if (inFrames) { setOnLoad( "parent.frames[1].location='edu.columbia.rascal.presentation.agenda.servlets.IrbAgendaLinkFrameServlet?agendaHeaderOid=" + getAgendaHeader().getId().toString() + "'" ); } add(bo); setSubTitle("Columbia University Human Subjects Agenda Data Sheet"); CUHtmlForm aForm = getAForm(); aForm.add(getSubTitle()); aForm.add(getRuler()); setFontName("MS Comic Sans"); setFontSize(1); addDataAgendaHeader(); // aForm.add(getRuler()); int numCells = 4; add("<br>"); // add attached protocolHeader if (protocolAttached.size() > 0) { addEvents("New Protocols", protocolAttached, IrbNameConstants.PROTOCOL_HEADER); } if (NRprotocolAttached.size() > 0) { addEvents("New Protocols", NRprotocolAttached, IrbNameConstants.PROTOCOL_HEADER); } // add attached modification if (modificationAttached.size() > 0) { addEvents("Modifications", modificationAttached, IrbNameConstants.MODIFICATION); } if (NRmodificationAttached.size() > 0) { addNREvents("Modifications", NRmodificationAttached, IrbNameConstants.MODIFICATION); } // add attached renewal if (renewalAttached.size() > 0) { addEvents("Renewals", renewalAttached, IrbNameConstants.RENEWAL); } if (NRrenewalAttached.size() > 0) { addNREvents("Renewals", NRrenewalAttached, IrbNameConstants.RENEWAL); } // add attached adverseEvent if (adverseEventAttached.size() > 0) { addEvents("Adverse Event Reports", adverseEventAttached, IrbNameConstants.ADVERSE_EVENT); } if (NRadverseEventAttached.size() > 0) { addNREvents("Adverse Event Reports", NRadverseEventAttached, IrbNameConstants.ADVERSE_EVENT); } // add attached closureAttached if (closureAttached.size() > 0) { addEvents("Closure Reports", closureAttached, IrbNameConstants.CLOSURE); } if (NRclosureAttached.size() > 0) { addNREvents("Closure Reports", NRclosureAttached, IrbNameConstants.CLOSURE); } // add attached unanticipate if (unanticipateAttached.size() > 0) { addEvents("Unanticipated Problems", unanticipateAttached, IrbNameConstants.UNANTICIPATED_PROBLEM); } if (NRunanticipateAttached.size() > 0) { addNREvents("Unanticipated Problems", NRunanticipateAttached, IrbNameConstants.UNANTICIPATED_PROBLEM); } // add Other topics if (otherTopicsAttached.size() > 0) { aForm.add("<br>"); aForm.add(getTableViewTitle("Other Topics")); aForm.add(buildOtherTopicRows(otherTopicsAttached)); } // add old business if (oldBusinessAttached.size() > 0) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportSignoffServlet.java | 221 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportStatusServlet.java | 190 |
try { columns.addElement(""); // space holder for column sort String column0 = (String) getSession().getAttribute("column0"); if (!column0.equals(null) || !column0.equals("")) { columns.addElement(column0); } String column1 = (String) getSession().getAttribute("column1"); if (!column1.equals(null) || !column1.equals("")) { columns.addElement(column1); } String column2 = (String) getSession().getAttribute("column2"); if (!column2.equals(null) || !column2.equals("")) { columns.addElement(column2); } String column3 = (String) getSession().getAttribute("column3"); if (!column3.equals(null) || !column3.equals("")) { columns.addElement(column3); } String column4 = (String) getSession().getAttribute("column4"); if (!column4.equals(null) || !column4.equals("")) { columns.addElement(column4); } String column5 = (String) getSession().getAttribute("column5"); if (!column5.equals(null) || !column5.equals("")) { columns.addElement(column5); } String column6 = (String) getSession().getAttribute("column6"); if (!column6.equals(null) || !column6.equals("")) { columns.addElement(column6); } String column7 = (String) getSession().getAttribute("column7"); if (!column7.equals(null) || !column7.equals("")) { columns.addElement(column7); } String column8 = (String) getSession().getAttribute("column8"); if (!column8.equals(null) || !column8.equals("")) { columns.addElement(column8); } String column9 = (String) getSession().getAttribute("column9"); if (!column9.equals(null) || !column9.equals("")) { columns.addElement(column9); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentLinkFrameView.java | 91 |
edu/columbia/rascal/presentation/consent/pages/ConsentLinkFrameView.java | 342 |
add("<font face=\"Comic Sans MS\" size=\"1\"> "); add( "<a href=\"Javascript:onClick=parent.frames[1].cfConfirmWindow('Are you sure you want to Copy this Consent Form?','" + ConsentCopyServlet.class.getName() + "?consentNumber=" + consentNum + "', '" + consentNum + "')" ); add("\" target=\"Main\">Copy Consent Form</a><br>"); } add("<br>"); // put a space in CUHtmlTable tb = new CUHtmlTable(); tb.setWidth("100%"); tb.setBorderWidth(0); tb.setCellSpacing(0); tb.setCellPading(0); Vector columns = new Vector(3); columns.addElement(getWidgetFor("  ")); columns.addElement(getWidgetFor( "<a href=\"\" onClick=\"return parent.frames[1].openNew( '" + ConsentFormServlet.class.getName() + "?consentNumber=" + consentNum + "&&dateTime=N', 'ds', 'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=900,height=600')\">Printable Version</a><br>" ) ); columns.addElement(getHelpFor("consent15.html")); tb.addRowFor(columns); tb.getCell(0, 0).setWidth("5%"); tb.getCell(0, 1).setWidth("85%"); tb.getCell(0, 2).setWidth("10%"); add(tb); Vector col = new Vector(3); col.addElement(getWidgetFor("  ")); col.addElement(getWidgetFor( "<a href=\"\" onClick=\"return parent.frames[1].openNew( '" + ConsentFormServlet.class.getName() + "?consentNumber=" + consentNum + "&&dateTime=Y', 'ds', 'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=900,height=600')\">Printable Version Date/Time</a><br>" ) ); col.addElement(getHelpFor("consent15.html")); tb.addRowFor(col); tb.getCell(0, 0).setWidth("5%"); tb.getCell(0, 1).setWidth("85%"); tb.getCell(0, 2).setWidth("10%"); add(tb); if ((origin != null) && !origin.trim().equals("")) { // Link back to previous list or queue add("<br>"); // put two spaces in add("<font face=\"Comic Sans MS\" size=\"1\"> "); add("<a href=\"Javascript:onClick=parent.frames[1].location='" + ConsentLinkFrameServlet.class.getName() + "?consentNumber=XXXX9999';parent.frames[2].location='" + origin + "?DisplayPage=CurrentPage';" ); add("\" >[Previous List]</a><br>"); } // Link back to previous list or queue add("<br>"); // put two spaces in add("<font face=\"Comic Sans MS\" size=\"1\"> "); add("<a href=\"Javascript:onClick=parent.frames[1].location='" + ConsentLinkFrameServlet.class.getName() + "?consentNumber=XXXX9999';parent.frames[2].location='edu.columbia.rascal.presentation.consent.servlets.ConsentMainMenuServlet'" ); add("\" >[Consent Menu]</a><br>"); if ((isOriginMyRascal != null) && isOriginMyRascal) { // Link back to My Rascal page add("<br>"); // put two spaces in add("<font face=\"Comic Sans MS\" size=\"1\"> "); add("<a href=\"Javascript:onClick=parent.frames[0].location='" + MyRascalLogoFrameServlet.class.getName() + "';" + "parent.frames[1].location='" + MyRascalLinkFrameServlet.class.getName() + "';" + "parent.frames[2].location='" + MyRascalMainMenuServlet.class.getName() + "'" ); add("\" >[My RASCAL Menu]</a><br>"); } // Link back to My Rascal page } /** * CURascalLogoFrameView constructor comment. @2002 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>if you don't have an application specific logo to pass in you can use this default * constructor yy</p> * * @param ch TODO: DOCUMENT ME! * @param aUser TODO: DOCUMENT ME! * @param origin TODO: DOCUMENT ME! * @param isEditable TODO: DOCUMENT ME! * @param isOriginMyRascal TODO: DOCUMENT ME! */ public ConsentLinkFrameView(ConsentHeader ch, RascalUser aUser, String origin, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCancerCenterCorrespondenceView.java | 108 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairCorrespondenceView.java | 153 |
setBgColor("WHITE"); add(getAForm()); } /** * This method was created in VisualAge. * * @param v TODO: DOCUMENT ME! */ public void buildRows(Vector v) { int i = v.size(); if (i > 0) { getAForm().add("<BR><CENTER>"); getAForm().add("<TABLE BORDER=\"0\" WIDTH=\"95%\" CELLPADDING=\"2\" CELLSPACING=\"0\">"); getAForm().add( "<TR><TD WIDTH=\"15%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Protocol</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"12%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Event</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"8%\" ALIGN=\"center\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">View Correspondence</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"8%\" ALIGN=\"center\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Action</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"23%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Title</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"9%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">PI</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"9%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">From</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"15%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Notify Date</FONT></TD>" ); getAForm().add("</TR>"); int counter = 0; String rowColor; String lastEvent = ""; Vector info = null; String event = null; while (i-- > 0) { rowColor = getQueueHTMLRowColor(counter++); info = (Vector) v.elementAt(i); event = (String) info.elementAt(2); if (!event.equals(lastEvent)) { getAForm().add("<TR VALIGN=\"TOP\"><TD><HR WIDTH=\"100%\"></TD></TR>"); } setTableDataRow(info, rowColor); lastEvent = event; } getAForm().add("</TABLE></CENTER>"); } } /** * This method was created in VisualAge. * * @param v TODO: DOCUMENT ME! */ public void buildRowsAE(Vector v) { int i = v.size(); if (i > 0) { getAForm().add("<BR><CENTER>"); getAForm().add("<TABLE BORDER=\"0\" WIDTH=\"95%\" CELLPADDING=\"2\" CELLSPACING=\"0\">"); getAForm().add( "<TR><TD WIDTH=\"15%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Protocol</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"12%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Event</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"8%\" ALIGN=\"center\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">View Correspondence</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"8%\" ALIGN=\"center\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Action</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"23%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">AE Keyword</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"9%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Initiator</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"9%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">From</FONT></TD>" ); getAForm().add( "<TD WIDTH=\"15%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Notify Date</FONT></TD>" ); getAForm().add("</TR>"); int counter = 0; String rowColor; Vector info = null; while (i-- > 0) { rowColor = getQueueHTMLRowColor(counter++); info = (Vector) v.elementAt(i); setTableDataRow(info, rowColor); } getAForm().add("<TR VALIGN=\"TOP\"><TD><HR WIDTH=\"100%\"></TD></TR>"); getAForm().add("</TABLE></CENTER>"); } } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVector(java.util.Vector newResultVector) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/pt/PtChangeProjectOfficerController.java | 126 |
edu/columbia/rascal/presentation/controller/pt/PtComplianceController.java | 574 |
edu/columbia/rascal/presentation/controller/pt/PtHazMatsController.java | 551 |
edu/columbia/rascal/presentation/controller/pt/PtSponsorController.java | 127 |
binder.setAllowedFields("projectOfficer","projectOfficerAssistant"); } private Map<String, Object> recordHeading(PtProposalHeader proposal, RascalUser currentUser) { Map<String, Object> recordHeading = new HashMap<String, Object>(); //You are recordHeading.put("currentUser", currentUser.getUserFirstLastNameUni()); if (proposal != null && proposal.getId() != null) { //Proposal TrakId recordHeading.put("trakId", "PT-" + proposal.getTrakId()); //Deadline recordHeading.put("deadlineDate", proposal.getDeadlineDate()); //Deadline Type recordHeading.put("deadlineType", proposal.getDeadlineType()); //Date Created recordHeading.put("createDate", proposal.getCreationDate()); //Sponsor PtAgencyAddress ptAgencyAddress = ptAgencyAddressService.getLastAgencyAddressForPtProposalHeader(proposal); if (ptAgencyAddress != null) recordHeading.put("sponsor", ptAgencyAddress.getAgencyName()); //Logged in by SPA List<PtTracking> statuses = ptTrackingService.findByPtProposalHeaderAndTrackingLocation(proposal, "Logged In"); if (statuses != null && statuses.size() > 0) recordHeading.put("loginDate", statuses.get(0).getDateTimeIn()); RascalUser ru; //Initiator PtAccessControl init = ptAccessControlService.getInitiatorForProposal(proposal); if (init != null) { ru = init.getRascalUser(); if (ru != null) recordHeading.put("initiator", ru.getUserFirstLastNameUni()); } //Principal Investigator PtAccessControl pi = proposal.getLeadPerson(); if (pi != null) { ru = pi.getRascalUser(); if (ru != null) recordHeading.put("leadInvestigator", ru.getUserFirstLastNameUni()); } } else { recordHeading.put("createDate", new Date()); recordHeading.put("trakId", "PT-XXXX9999"); recordHeading.put("initiator", currentUser.getUserFirstLastNameUni()); } return recordHeading; } private String checkApprovers(PtProposalHeader proposal) { int count = 0; int size = 0; if (proposal != null && proposal.getId() != null) { Set<PtApproval> ptApprovals = proposal.getPtApprovals(); for (PtApproval ptApproval : ptApprovals) { if (ptApproval != null && ptApproval.getApprovedOn() != null) count++; } size = ptApprovals.size(); } if (count > 0 && count == size) return "All Approvers Have Signed<br/>"; else return ""; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/pt/PtAttachmentsController.java | 293 |
edu/columbia/rascal/presentation/controller/pt/PtChangeProjectOfficerController.java | 127 |
edu/columbia/rascal/presentation/controller/pt/PtComplianceController.java | 575 |
edu/columbia/rascal/presentation/controller/pt/PtHazMatsController.java | 552 |
edu/columbia/rascal/presentation/controller/pt/PtNotesController.java | 126 |
edu/columbia/rascal/presentation/controller/pt/PtPrintMenuController.java | 84 |
edu/columbia/rascal/presentation/controller/pt/PtSponsorController.java | 129 |
} private Map<String, Object> recordHeading(PtProposalHeader proposal, RascalUser currentUser) { Map<String, Object> recordHeading = new HashMap<String, Object>(); //You are recordHeading.put("currentUser", currentUser.getUserFirstLastNameUni()); if (proposal != null && proposal.getId() != null) { //Proposal TrakId recordHeading.put("trakId", "PT-" + proposal.getTrakId()); //Deadline recordHeading.put("deadlineDate", proposal.getDeadlineDate()); //Deadline Type recordHeading.put("deadlineType", proposal.getDeadlineType()); //Date Created recordHeading.put("createDate", proposal.getCreationDate()); //Sponsor PtAgencyAddress ptAgencyAddress = ptAgencyAddressService.getLastAgencyAddressForPtProposalHeader(proposal); if (ptAgencyAddress != null) recordHeading.put("sponsor", ptAgencyAddress.getAgencyName()); //Logged in by SPA List<PtTracking> statuses = ptTrackingService.findByPtProposalHeaderAndTrackingLocation(proposal, "Logged In"); if (statuses != null && statuses.size() > 0) recordHeading.put("loginDate", statuses.get(0).getDateTimeIn()); RascalUser ru; //Initiator PtAccessControl init = ptAccessControlService.getInitiatorForProposal(proposal); if (init != null) { ru = init.getRascalUser(); if (ru != null) recordHeading.put("initiator", ru.getUserFirstLastNameUni()); } //Principal Investigator PtAccessControl pi = proposal.getLeadPerson(); if (pi != null) { ru = pi.getRascalUser(); if (ru != null) recordHeading.put("leadInvestigator", ru.getUserFirstLastNameUni()); } } else { recordHeading.put("createDate", new Date()); recordHeading.put("trakId", "PT-XXXX9999"); recordHeading.put("initiator", currentUser.getUserFirstLastNameUni()); } return recordHeading; } private String checkApprovers(PtProposalHeader proposal) { int count = 0; int size = 0; if (proposal != null && proposal.getId() != null) { Set<PtApproval> ptApprovals = proposal.getPtApprovals(); for (PtApproval ptApproval : ptApprovals) { if (ptApproval != null && ptApproval.getApprovedOn() != null) count++; } size = ptApprovals.size(); } if (count > 0 && count == size) return "All Approvers Have Signed<br/>"; else return ""; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesDataSheetServlet.java | 50 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesDataSheetServlet.java | 136 |
@Override public CURascalHtmlView getPage() { IrbAgendaHeader ah = null; try { ah = ServiceLocator.getIrbAgendaHeaderService().getHeaderByOid(getLineParameter("anOid") ); } catch (Exception e) { ah = getAgendaHeader(); } if (ah == null) { return new IrbAgendaMessageView("Invalid Agenda Number", "window.close()"); } boolean inFrames = ((getLineParameter("inFrames") != null)); Vector protocolAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector modificationAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector renewalAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.RENEWAL); Vector adverseEventAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector closureAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector unanticipateAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector meetingAttendants = ah.getAllMeetingAttendants(); Vector expeditableAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector exemptAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector pendingAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), PENDING ); Vector otherTopicAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), "Other"); return new IrbAgendaMinutesDataSheetView(ah, getUser(), protocolAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDataSheetServlet.java | 50 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDataSheetServlet.java | 140 |
@Override public CURascalHtmlView getPage() { IrbAgendaHeader ah = null; try { ah = ServiceLocator.getIrbAgendaHeaderService().getHeaderByOid(getLineParameter("anOid") ); } catch (Exception e) { ah = getAgendaHeader(); } if (ah == null) { return new IrbAgendaMessageView("Invalid Agenda Number", "window.close()"); } long committeeId = ah.getCommitteeId(); Vector protocolAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector modificationAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector renewalAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.RENEWAL); Vector adverseEventAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector closureAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector unanticipateAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector expeditableAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector exemptAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector pendingAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), PENDING ); Vector otherTopicAttached = ah.getAllAgendaEventsByType("Other"); Vector oldBusinessAttached = ah.getAllAgendaEventsByType("OldBusiness"); Vector newBusinessAttached = ah.getAllAgendaEventsByType("NewBusiness"); return new IrbAgendaDataSheetView(ah, getUser(), protocolAttached, modificationAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 243 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 232 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 232 |
edu/columbia/rascal/presentation/appendix/pages/AppendixISafetyOfficerApprovalView.java | 164 |
"<b>" + APPROVAL_SAFETY_OFFICER + "</b>" ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + name + "</b>", "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_DATE + "</b>"), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + (CalendarTransformer.formatMMDDYYYY(approvalDate)) + "</b>", "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Owner's Number (Protocol Number, Proposal TrakId) String ownerNumberLabel = (getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) ? PROPOSAL_TRAK_ID : PROTOCOL_NUMBER; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(ownerNumberLabel), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(getOwnerSurrogate().getOwnerNumber(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { // set up // Veterinarian // approval // information AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); if (vetApproval != null) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // spacer addSpacerRows(aTable, 1, 2, "10"); // Veterinarian Name aRow = new CUHtmlTableRow(); name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(VETERINARIAN_NAME), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(name, "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Veterinarian approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(CalendarTransformer.formatMMDDYYYY(approvalDate), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } } getForm().add(aTable); } /** * NOTE: method name is not desciptive of its function in this view * * <p>This method was created in VisualAge.</p> * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlItem * * @throws Exception TODO: DOCUMENT ME! */ @Override protected CUHtmlItem fieldGet_1_ReviewAndApproveText() throws Exception { StringBuffer aChemBuffer = new StringBuffer(500); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramAdminView.java | 71 |
edu/columbia/rascal/presentation/user/views/RuRadiationSafetyBadgeAdminView.java | 70 |
RuOccupationalHealthProgramAdminServlet.class.getName(), "POST" ) ); render(); } } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numbCells TODO: DOCUMENT ME! */ public void addAdminControlRows(CUHtmlTable aTable, int numbCells) { Vector<Object> columns = new Vector<Object>(numbCells); for (int c = 0; c < numbCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); CUHtmlEntryField aWidget; // rascal UNI if (getModify() != null) aWidget = new CUHtmlEntryField(KEY_RASCAL_UNI, "15", "15", getModify().getUserId()); else aWidget = new CUHtmlEntryField(KEY_RASCAL_UNI, "15", "15", ""); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI")); aTable.getCell(row, 0).setColumnsToSpan(2); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // a link to the pop up window for UNI Lookup columns.setElementAt(getUniLookup(), 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Lookup UNI")); aTable.getCell(row, 0).setColumnsToSpan(2); row++; // a button to the search servlet CUHtmlInput i2 = new CUHtmlInput(); i2.setName("Find Certification"); i2.setInputType("image"); i2.setImageSource("/images/popup.gif"); columns.setElementAt(i2.getHtmlTagLine(), 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Find Certification")); aTable.getCell(row, 0).setColumnsToSpan(2); row++; // a link to the pop up window for data entry CUHtmlImage i3 = new CUHtmlImage("/images/popup.gif"); i3.setAlt("Add Certification"); i3.setLink(RuOccupationalHealthProgramAdminServlet.class.getName()); i3.setOnClick(getOnClickForAddCertification()); i3.setBorderWidth(0); columns.setElementAt(i3, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Add Certification")); aTable.getCell(row, 0).setColumnsToSpan(2); row++; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable addDataTable() { List<RuOccHealthProgEnrollment> ruOccHealthProgEnrollments = ServiceLocator |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 203 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 344 |
String t = "Approvals for: " + getBeginDate() + " to " + getEndDate(); CUHtmlText dateRange = new CUHtmlText(t); dateRange.setFontSize("-1"); dateRange.setIsBold(false); dateRange.setAlignment("center"); dateRange.setFontName(getDefaultFontName()); return dateRange; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! * @param columns TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows, Vector columns) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Object dateObj = null; t.addRowFor(getColumnTitles(columns)); elements = new Vector(); for (int n = 0; n < rows.size(); n++) { Vector currentRow = (Vector) rows.elementAt(n); if (getIndexOfTrakId() > 0) { if (!(getPrintable())) { elements.addElement(getProposalDataSheetLinkWidgetFor( (String) currentRow.elementAt(getIndexOfTrakId()) ) ); // trackId } else { elements.addElement(getWidgetFor( (String) currentRow.elementAt(getIndexOfTrakId()) ) ); } } if (getIndexOfPIName() > 0) { elements.addElement(getWidgetFor((String) currentRow.elementAt(getIndexOfPIName()))); // PI } if (getIndexOfAgencyName() > 0) { elements.addElement(getWidgetFor( (String) currentRow.elementAt(getIndexOfAgencyName()) ) ); // agencyName } if (getIndexOfProposalType() > 0) { elements.addElement(getWidgetFor( (String) currentRow.elementAt(getIndexOfProposalType()) ) ); // prop type } if (getIndexOfProjBegDate() > 0) { dateObj = currentRow.elementAt(getIndexOfProjBegDate()); // startDate if (dateObj instanceof Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } } if (getIndexOfProjEndDate() > 0) { dateObj = currentRow.elementAt(getIndexOfProjEndDate()); // endDate if (dateObj instanceof Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } } if (getIndexOfTotalMoney() > 0) { // |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 371 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceReturnOrApproveCreateServlet.java | 1359 |
for (AppendixTracking tracker : trackers) { type = tracker.getAppendixType(); if (rDNASize>0 && type.equals("A")) hazMatsRDNA = true; if (viralSize>0 && type.equals("B")) hazMatsViral = true; if (formXySize>0 && type.equals("E")) hazMatsFormXy= true; if ((type.equals("A") || type.equals("B") || type.equals("C")) && (bbpoSize>0 || lschpSize>0)) { hazMatsBBPO = true; hazMatsLSCHP = true; } if (lschpSize>0 && type.equals("E")) { hazMatsLSCHP = true; } } List<IrbStaff> allStaff = iph.getIrbStaffs(); List<TcuserHeader> tcObjs = null; RascalUser rUser = null; String nameString = ""; String eMail; try { rUser = iph.getPI().getRascalUser(); if (rUser != null) { nameString = rUser.getUserFirstLastNameUni(); } } catch (Exception e) { log.error(e); } StringBuilder buffer = new StringBuilder(); String dbLocation = RascalProperties.getProperty("DbUserId"); if (!dbLocation.equals("was_rascal")) buffer.append(IrbEmailConstants.TEST_MESSAGE_TEXT); buffer.append( "You have been included as \"Personnel Staff\" in the following Protocol:\n\nIRB-" ); buffer.append(iph.getProtocolNumber()); buffer.append("\n\nTitle: "); buffer.append(iph.getTitle()); buffer.append("\nPrincipal Investigator: "); buffer.append(nameString); buffer.append("\nHazardous Materials Appendix: "); buffer.append(hazMatsStr); buffer.append("\n\n"); buffer.append(EMAIL_HAZMATS_ATTACHED_TRAINING_REQUIRED); for (IrbStaff staff : allStaff) { try { // only send e-mails to appendix staff if (!staff.getProtocolRole().equals("Initiator") && ((staff.getAppendixABool() || staff.getAppendixBBool() || staff.getAppendixCBool() || staff.getAppendixEBool())) ) { rUser = null; tcObjs = null; eMail = ""; nameString = ""; if (staff != null) rUser = staff.getRascalUser(); if (rUser != null) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramAdminView.java | 71 |
edu/columbia/rascal/presentation/user/views/RuRadiationSafetyBadgeAdminView.java | 70 |
edu/columbia/rascal/presentation/user/views/RuSimpleTrainingEnrollmentAdminView.java | 80 |
RuOccupationalHealthProgramAdminServlet.class.getName(), "POST" ) ); render(); } } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numbCells TODO: DOCUMENT ME! */ public void addAdminControlRows(CUHtmlTable aTable, int numbCells) { Vector<Object> columns = new Vector<Object>(numbCells); for (int c = 0; c < numbCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); CUHtmlEntryField aWidget; // rascal UNI if (getModify() != null) aWidget = new CUHtmlEntryField(KEY_RASCAL_UNI, "15", "15", getModify().getUserId()); else aWidget = new CUHtmlEntryField(KEY_RASCAL_UNI, "15", "15", ""); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI")); aTable.getCell(row, 0).setColumnsToSpan(2); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // a link to the pop up window for UNI Lookup columns.setElementAt(getUniLookup(), 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Lookup UNI")); aTable.getCell(row, 0).setColumnsToSpan(2); row++; // a button to the search servlet CUHtmlInput i2 = new CUHtmlInput(); i2.setName("Find Certification"); i2.setInputType("image"); i2.setImageSource("/images/popup.gif"); columns.setElementAt(i2.getHtmlTagLine(), 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Find Certification")); aTable.getCell(row, 0).setColumnsToSpan(2); row++; // a link to the pop up window for data entry CUHtmlImage i3 = new CUHtmlImage("/images/popup.gif"); i3.setAlt("Add Certification"); i3.setLink(RuOccupationalHealthProgramAdminServlet.class.getName()); i3.setOnClick(getOnClickForAddCertification()); i3.setBorderWidth(0); columns.setElementAt(i3, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Add Certification")); aTable.getCell(row, 0).setColumnsToSpan(2); row++; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable addDataTable() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatsView.java | 198 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeStatsView.java | 238 |
aCell.add(getTextWidgetFor((String) currentRow.elementAt(2), 2, false)); aCell.setAlign("right"); aRow.add(aCell); aTable.add(aRow); } // total int total = 0; int totalApp = 0; int totalCounter = 0; float counter = 0; int temp = 0; float averageValue = 0; aRow = new CUHtmlTableRow(); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor("total", 2, false)); aCell.setAlign("right"); aRow.add(aCell); // sumbitted protocols aCell = new CUHtmlTableCell(); for (int i = 0; i < resultSize; i++) { Vector currentRow = (Vector) results.elementAt(i); temp = Integer.parseInt((String) currentRow.elementAt(0)); if (temp != 0) { total += temp; totalCounter++; } } aCell.add(getTextWidgetFor(total + "", 2, false)); aCell.setAlign("right"); aRow.add(aCell); // approved protocols aCell = new CUHtmlTableCell(); for (int i = 0; i < resultSize; i++) { Vector currentRow = (Vector) results.elementAt(i); temp = Integer.parseInt((String) currentRow.elementAt(1)); if (temp != 0) { totalApp += temp; counter++; } } aCell.add(getTextWidgetFor(totalApp + "", 2, false)); aCell.setAlign("right"); aRow.add(aCell); // average days from submission to approval aCell = new CUHtmlTableCell(); totalApp = 0; for (int i = 0; i < resultSize; i++) { Vector currentRow = (Vector) results.elementAt(i); totalApp += Integer.parseInt((String) currentRow.elementAt(2)); } if (counter != 0) averageValue = totalApp / counter; else averageValue = 0; avgValue = Float.toString(averageValue); avgValue = avgValue.substring(0, avgValue.indexOf(".") + 2); aCell.add(getTextWidgetFor(avgValue, 2, false)); aCell.setAlign("right"); aRow.add(aCell); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 241 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 240 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 232 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 232 |
"<b>" + APPROVAL_SAFETY_OFFICER + "</b>" ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + name + "</b>", "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_DATE + "</b>"), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + (CalendarTransformer.formatMMDDYYYY(approvalDate)) + "</b>", "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Owner's Number (Protocol Number, Proposal TrakId) String ownerNumberLabel = (getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) ? PROPOSAL_TRAK_ID : PROTOCOL_NUMBER; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(ownerNumberLabel), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(getOwnerSurrogate().getOwnerNumber(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { // set up // Veterinarian // approval // information AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); if (vetApproval != null) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // spacer addSpacerRows(aTable, 1, 2, "10"); // Veterinarian Name aRow = new CUHtmlTableRow(); name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(VETERINARIAN_NAME), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(name, "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Veterinarian approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(CalendarTransformer.formatMMDDYYYY(approvalDate), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } } getForm().add(aTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDatabaseStoreUtilityServlet.java | 288 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesDataSheetServlet.java | 156 |
Vector protocolAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector modificationAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector renewalAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.RENEWAL); Vector adverseEventAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector closureAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector unanticipateAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector meetingAttendants = ah.getAllMeetingAttendants(); Vector expeditableAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector exemptAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector pendingAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), PENDING ); Vector otherTopicAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), "Other"); return new IrbAgendaMinutesDataSheetPDFView(ah, getUser(), protocolAttached, modificationAttached, renewalAttached, adverseEventAttached, closureAttached, exemptAttached, expeditableAttached, pendingAttached, NRprotocolAttached, NRmodificationAttached, NRrenewalAttached, NRadverseEventAttached, NRclosureAttached, NRexemptAttached, NRexpeditableAttached, NRpendingAttached, otherTopicAttached, meetingAttendants, unanticipateAttached, NRunanticipateAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaSearchServlet.java | 103 |
edu/columbia/rascal/presentation/agenda/servlets/IrbMinuteSearchServlet.java | 103 |
); } else { view = new IrbAgendaResultsDisplayView(new java.util.Vector(), getUser()); } return view; } /** * Prepare all text data for saving to the database. * * <p>sybase requires an apostrophe to be accompanied by another one. use this method whenever * saving text tot he database.</p> * * @param aString String * * <p>Mulligan - this should be moved to a common package</p> * * @return prepare all text data for saving to the database. */ public String prepareText(String aString) { java.text.StringCharacterIterator sci = new java.text.StringCharacterIterator(aString); String newString = ""; int i = 0; for (i = 0; i < sci.getEndIndex(); i++) { newString = newString + sci.current(); if (sci.current() == '\'') newString = newString + '\''; sci.next(); } return newString; } /** * Handle the GET and HEAD methods by building a simple web page. HEAD is just like GET, except * that the server returns only the headers (including content length) not the body we write. * * <p>Note - [HP 01/14/00] This is a new search method that uses the PtSearchParametersParser * and PtSearchQueryFormat. This search method supports the following search features: (1) * simple search, (2) required search, (3) implied or search, and (4) phrase search.</p> */ @Override public void submit() { IrbAgendaSearchParameters srchParams = null; CURascalDisplayPageJdbcController pageController = null; IrbAgendaDocumentSearchJdbcAccessor jdbcAccessor = null; CURascalDisplayPageInfo pageInfo = null; IrbAgendaResultsDisplayView view = null; String query; String pageInfoKeyword = (String) keywords.get("IrbAgendaSearchDisplayPageInfo"); String pagesCacheKeyword = (String) keywords.get("IrbAgendaSearchDisplayPagesCached"); try { srchParams = buildSearchParams(this); getSession().setAttribute("searchParameters", srchParams); } catch (edu.columbia.rascal.presentation.common.parser.CURascalParseException e) { handleException(e); return; } if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbAgendaDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new IrbAgendaResultsDisplayView(pageInfo.getDisplayPage(), pageInfo.getPageBeginPos(), pageInfo.getPageSize(), pageInfo.getTotalMatch(), pageInfo.getMaxPageSize(), getUser(), "Agenda" |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 1121 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5917 |
aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("') and f.whoRid ="); aBuffer.append(whoAmI.getId()); aBuffer.append(" and f.type = '"); aBuffer.append(reviewerType); aBuffer.append("' order by a.protocolNumber"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); // protocol number row.addElement(res.getString(3)); // identifier if (res.getDate(4) == null) // status date { row.addElement(""); } else { row.addElement(res.getDate(4)); } row.addElement(Integer.valueOf((new Float(res.getFloat(5))).intValue()).toString()); // protocolOid if (res.getDate(6) == null) // reviewed date { row.addElement(""); } else { row.addElement(res.getDate(6)); } row.addElement(Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString()); // reviwedOid row.addElement(res.getString(8)); // status Name row.addElement(""); // meetingdate results.addElement(row.clone()); row = new Vector(9); } // end while int len = results.size(); int oid = 0; java.sql.ResultSet res3 = null; Vector vec = null; for (int i = 0; i < len; i++) { vec = (Vector) results.elementAt(i); if (vec.elementAt(7).equals(ASSIGNED_TO_MEETING)) { oid = Integer.valueOf((String) vec.elementAt(0)); res3 = acc.executeQuery( "select max(meetingDate) from IrbAgendaHeader t1, IrbAgendaEvent t2 where t1.oid = t2.agendaHeaderId and t2.eventType = '" + IrbNameConstants.ADVERSE_EVENT + "' and t2.eventOid= " + oid |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 374 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 442 |
textValue = (getTracker().getEhsNumber() == null) ? "" : getTracker().getEhsNumber(); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // gather veterinarian approval data if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); approver = 0; approvalDate = null; approvalDateStr = ""; if ((vetApproval != null) && (vetApproval.getApprovalType() != null) && (vetApproval.getApprovalType().equals(APPROVE) || vetApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // approvalDateStr = CalendarTransformer.toString(approvalDate); approvalDateStr = approvalDate.toString(); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } addSpacerRows(aTable, 1, 2, "8"); // Veterinarian Name aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(VETERINARIAN_NAME), "300", getTitleAlign() ); name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(name), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Veterinarian approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(approvalDateStr), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } } getForm().add(aTable); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTableRow aRow; CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 2); aTable.setCellPadding(4); addSpacerRows(aTable, 1, 2, "8"); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPENDIX_NUMBER), "300", |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerForChairView.java | 553 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerView.java | 710 |
aTable.getCell(0, 8).setVAlign("top"); // aTable.getCell(0,9).setVAlign("top"); return aTable; } /** * TODO: DOCUMENT ME! * * @param parentOid TODO: DOCUMENT ME! * @param parentName TODO: DOCUMENT ME! * @param reviewerId TODO: DOCUMENT ME! * @param onAgenda TODO: DOCUMENT ME! * @param returnType TODO: DOCUMENT ME! * @param protNumber TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getReturnWidgetFor(String parentOid, String parentName, String reviewerId, boolean onAgenda, String returnType, String protNumber ) { CUHtmlImage lookupImage = new CUHtmlImage("/images/redball.gif"); lookupImage.setBorderWidth(0); lookupImage.setAlt("Return"); lookupImage.setLink("Javascript:onClick=irbReviewerReturnConfirm('" + parentName + "','" + parentOid + "','" + reviewerId + "','" + onAgenda + "','" + returnType + "','" + protNumber + "');"); return lookupImage; } /** * TODO: DOCUMENT ME! * * @param protocolNumber TODO: DOCUMENT ME! * @param objectOid TODO: DOCUMENT ME! * @param objectName TODO: DOCUMENT ME! * @param protocolOid TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getServletLinkFor(String protocolNumber, String objectOid, String objectName, String protocolOid ) { String servletLink = null; if ((protocolNumber == null) || protocolNumber.equals("")) { return servletLink; } StringBuilder buffy = new StringBuilder(); CUHtmlText text = new CUHtmlText(protocolNumber); String aToolbar = "toolbar=yes,location=no,directories=no,status=no,menubar=yes,resizable=yes,copyhistory=no,width=800,height=600,scrollbars=yes"; if (objectName.equals(IrbNameConstants.PROTOCOL_HEADER)) { buffy.append("return openNew('"); buffy.append("/irb/protocol/"+protocolNumber+"/"+objectOid+"/datasheet"); buffy.append("','ds','"); buffy.append(aToolbar); buffy.append("')"); } else if (objectName.equals(IrbNameConstants.ADVERSE_EVENT)) { buffy.append("return openNew('"); //FIXME link buffy.append(IrbAdverseEventDataSheetServlet.class.getName()); buffy.append("?aeOid="); buffy.append(objectOid); buffy.append("&&parentProtocolOid="); buffy.append(protocolOid); buffy.append("', 'ds', '"); buffy.append(aToolbar); buffy.append("')"); } else if (objectName.equals(IrbNameConstants.CLOSURE)) { buffy.append("return openNew('"); buffy.append("/irb/closure/"+protocolNumber+"/"+objectOid+"/datasheet"); buffy.append("', 'ds', '"); buffy.append(aToolbar); buffy.append("')"); } else if (objectName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { buffy.append("return openNew('"); //buffy.append(IrbUnanticipatedDataSheetServlet.class.getName()); buffy.append("/irb/unanticipatedProblem/"+protocolNumber+"/"+objectOid+"/datasheet"); //buffy.append("?aeOid="); //buffy.append(objectOid); //buffy.append("&&parentProtocolOid="); //buffy.append(protocolOid); buffy.append("', 'ds', '"); buffy.append(aToolbar); buffy.append("')"); } return buffy.toString(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 136 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 138 |
Vector selected = new Vector(); aWidget = getMultiSelectWidgetFor(getStatusList(), "StatusList", selected); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Current Status :")); row++; // add committee list Vector committeeNames = new Vector(); if (CURascalGuardian.hasIrbRascal() || CURascalGuardian.hasIrbHighLevelAdminReports() || CURascalGuardian.hasIrbCentralIrbReview() ) { committeeNames.addElement("All Committees"); committeeNames.addAll(ServiceLocator.getIrbCommitteeService().getCommitteeNames()); } else if (CURascalGuardian.hasIrbAdmin()) committeeNames.addAll(IrbReportQuery.getIrbCommitteeNameFor(getRascalUser(), "IrbAdminMember" ) ); else // is Chair committeeNames.addAll(IrbReportQuery.getIrbCommitteeNameFor(getRascalUser(), "IrbCommitteeMember" ) ); CUHtmlList list = new CUHtmlList(committeeNames, "committeeList", "All Committees"); columns.setElementAt(list, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Committee :")); row++; aWidget = getReportRangeWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Range:")); row++; columns.setElementAt(getDateTable(endDate, "endDate", "endDateMonth", "endDateDay", "endDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Ending On:")); row++; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit", "checkDateForSubmit(endDate);return isDateValid()" ); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Vector getEventList() { Vector eventList = new Vector(); eventList.add("Protocol"); eventList.add("Renewal"); eventList.add("Modification"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingHistoryView.java | 121 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 1179 |
Calendar cal = Calendar.getInstance(); Vector<Object> columns = new Vector<Object>(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // title var = ""; if (getProposal() != null) { temp = getProposal().getTitle(); if (temp != null) var = temp; } aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Proposal Title")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 1).setWidth("20"); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // Abbreviated title var = ""; if (getProposal() != null) { temp = getProposal().getTitleAbbreviated(); if (temp != null) var = temp; } aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Proposal Abbreviated Title")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 1).setWidth("20"); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // budget begin date var = "00/00/0000"; Date begin = ptBudget.getProjectBudgetBeginDate(); if (begin != null) { cal = Calendar.getInstance(); cal.setTime(begin); var = CalendarTransformer.toString(cal); } aWidget = getWidgetFor(var); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Project Begin Date")); aTable.getCell(row, 1).add(""); aTable.getCell(row, 2).setColumnsToSpan(2); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 162 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 160 |
IrbReportApprovalStatusDateRangeServlet.class.getName() + "'" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); // date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText addDateRange() { String t = null; if (getBeginDate().equals("00/00/0000") || getEndDate().equals("00/00/0000")) { t = "All Proposals"; } else { t = "Between: " + getBeginDate() + " And " + getEndDate(); } CUHtmlText dateRange = new CUHtmlText(t); dateRange.setFontSize("-1"); dateRange.setIsBold(false); dateRange.setAlignment("center"); dateRange.setFontName(getDefaultFontName()); return dateRange; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setWidth("95%"); t.setAlign("center"); Object dateObj = null; Vector columns = new Vector(); columns.addElement(getWidgetFor("Event")); columns.addElement(getWidgetFor("Protocol Number")); columns.addElement(getWidgetFor("Committee")); columns.addElement(getWidgetFor("PI")); if (event.equals("Protocol") || event.equals("Renewal") || event.equals("Modification")) columns.addElement(getWidgetFor("COI")); columns.addElement(getWidgetFor("Status Date")); columns.addElement(getWidgetFor("Current Status")); if (event.equals("Protocol") || event.equals("Renewal") || event.equals("Modification")) { columns.addElement(getWidgetFor("Category A")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 494 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 679 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 226 |
toString((Date) queueItem.get(KEY_RELEASE_FOR_VIEW_DATE)) ) ); aCell.setAlign("center"); colNum++; // P.I. aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData((String) queueItem.get(KEY_NAME_UNI))); aCell.setAlign("left"); colNum++; // Species aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData((String) queueItem.get(KEY_SPECIES))); aCell.setAlign("left"); colNum++; // Primary Site aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData( decodeAnimalCarePrimarySite((String) queueItem.get(KEY_PRIMARY_SITE)) ) ); aCell.setAlign("left"); colNum++; // Current Status aCell = aTable.getCell(rowCount, colNum); String param1 = (String) queueItem.get(KEY_CURRENT_STATUS); String convert1 = getAnimalCareStatusDisplayValue(param1.trim()); if (convert1 == null) convert1 = "Still Creating..."; aCell.add(getTableCellData(convert1)); aCell.setAlign("left"); colNum++; // Highest Pain Level aCell = aTable.getCell(rowCount, colNum); String level = "n/a"; if (((String) queueItem.get(KEY_PAIN_LEVEL4)).equalsIgnoreCase("y")) { level = "4"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL3)).equalsIgnoreCase( "y" )) { level = "3"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL2)).equalsIgnoreCase( "y" )) { level = "2"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL1)).equalsIgnoreCase( "y" )) { level = "1"; } aCell.add(getTableCellData(level, "center")); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 734 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 896 |
)).getStatusName().equals(APPROVED))) ) { cell3a.add("<font size=\"1\"><b>Discussion</b></font>"); String eventName = event.getEventType(); if (eventName.equals(IrbNameConstants.EXEMPT) || eventName.equals(IrbNameConstants.EXPEDITED) || eventName.equals(PENDING) ) cell3b.add(getWidgetFor("Board Notification")); else cell3b.add(getWidgetFor( (attribute == null) ? event.getEventAbstract() : attribute.getRecommendationText() ) ); } else cell3a.add("<font size=\"1\"><b>Discussion</b></font>"); cell3b.add(getWidgetFor("")); cell3a.setAlign("center"); cell3a.setVAlign("top"); cell3b.setAlign("left"); cell3b.setVAlign("top"); b01Row.add(cell3a); b01Row.add(cell3b); // follow up CUHtmlTableCell cell4a = new CUHtmlTableCell(); CUHtmlTableCell cell4b = new CUHtmlTableCell(); cell4a.setWidth("10%"); cell4b.setWidth("75%"); if (CURascalGuardian.hasIrbRascal() || (canViewNotes() && (ServiceLocator.getIrbAgendaHeaderService().getCurrentStatus( event.getIrbAgendaHeader() ).getStatusName().equals(APPROVED))) ) { cell4a.add("<font size=\"1\"><b>Follow Up to Researcher/Correspondence</b></font>"); cell4b.add(getWidgetFor((attribute == null) ? "" : attribute.getFollowUp())); } else cell4a.add("<font size=\"1\"><b>Follow Up to Researcher/Correspondence</b></font>"); cell4b.add(getWidgetFor("")); cell4a.setAlign("center"); cell4a.setVAlign("top"); cell4b.setAlign("left"); cell4b.setVAlign("top"); b02Row.add(cell4a); b02Row.add(cell4b); CUHtmlTable bTable = new CUHtmlTable(); bTable.setCellSpacing(0); bTable.setCellPading(0); bTable.add(b01Row); bTable.add(b02Row); CUHtmlTableCell cellz = new CUHtmlTableCell(); cellz.setColumnsToSpan(5); cellz.add(bTable); a02Row.add(cellz); aTable.add(a01Row); aTable.add(a02Row); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param event TODO: DOCUMENT ME! * @param attribute TODO: DOCUMENT ME! * @param type TODO: DOCUMENT ME! */ public void setMeetingTableDataRow(CUHtmlTable aTable, IrbAgendaEvent event, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3161 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3649 |
aBuffer.append("and c.sequenceNumber = 1) and b.modificationNumber > 0 "); aBuffer.append("and (b.oid = e.parentObjectOid and e.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') and e.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("','"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append( "') and e.oid = (select max(oid) from IrbStatus x where b.oid = x.parentObjectOid and x.parentObjectName = '" ); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') AND f.parentObjectOid = a.oid and f.parentObjectName = 'Protocol' "); aBuffer.append("and g.oid = f.committeeId and f.committeeId "); aBuffer.append(committeeSqlString); aBuffer.append(" order by a.protocolNumber"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { // this row: /* (1)oid, * (2)protocolNumber(AAAA1234), (3)title, (4)PI last name (?), * (5)submit date, (6)protocol parent, (7)committee name, (8)status, * (9)exempt/expeditable */ row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); row.addElement(res.getString(4)); // protocol title row.addElement(res.getString(5)); if (res.getDate(7) == null) // date submitted { row.addElement(""); } else { row.addElement(res.getDate(7)); } row.addElement(Integer.valueOf((new Float(res.getFloat(8))).intValue()).toString()); // protocol parent row.addElement(res.getString(9)); // committee name row.addElement(res.getString(10)); // submit times in String exp = res.getString(11); row.addElement(((exp == null) || exp.equals("")) ? (((res.getString(3) != null) && res.getString(3).equals("Y")) ? "Exe" : "") : "Exp" ); // exempt marker results.addElement(row.clone()); row = new Vector(9); } // end while } catch (Exception e) { log.error("Exception while Running query", e); } return results; } /** * RASCAL (halayn) Creation date: (4/24/2002 12:53:52 PM) * * @param whoAmI TODO: DOCUMENT ME! * * @return Vector of results */ public static Vector getModificationsToLogIn(RascalUser whoAmI) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentExternalServlet.java | 95 |
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentServlet.java | 99 |
return IrbUnanticipatedAttachmentExternalServlet.class.getName(); } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#submit() */ @Override public void submit() { String aeOid = (String) getSession().getAttribute("aeOid"); IrbUnanticipatedProblem ae = ServiceLocator.getIrbUnanticipatedProblemService().findById( Long.parseLong(aeOid) ); String statusName = ServiceLocator.getIrbStatusService().getCurrentStatus(ae.getId(), ae.classNameWithoutPrefix() ).getStatusName(); if (statusName.equals(RETURNED) || statusName.equals(PENDING)) { clearArchiveValues(getNonSelectedDocIds()); Enumeration someList = getRequest().getParameterNames(); while (someList.hasMoreElements()) { String s = (String) someList.nextElement(); if (s.startsWith("id")) { String id = s.substring(2); IrbUnanticipatedAttachment attachment = ServiceLocator .getIrbUnanticipatedAttachmentService().findById(Long.parseLong(id)); attachment.setArchive("Y"); } } } } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private ArrayList getNonSelectedDocIds() { IrbUnanticipatedProblem ae = null; String aeOid = (String) getSession().getAttribute("aeOid"); ae = ServiceLocator.getIrbUnanticipatedProblemService().findById(Long.parseLong(aeOid)); Vector<IrbUnanticipatedAttachment> allAttachments = ServiceLocator .getIrbUnanticipatedProblemService().getAllAttachments(ae); int attachmentSize = allAttachments.size(); Vector allDocs = new Vector(attachmentSize); for (int i = 0; i < attachmentSize; i++) { IrbUnanticipatedAttachment anAttachment = allAttachments.elementAt(i); allDocs.addElement(Long.toString(anAttachment.getId())); } ArrayList pageDocs = new ArrayList(allDocs); ArrayList selected = getSelectedDocIds(); ArrayList nonSelected = new ArrayList(); int len = pageDocs.size(); for (int i = 0; i < len; i++) { if (!selected.contains(pageDocs.get(i))) { nonSelected.add(pageDocs.get(i)); } } return nonSelected; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private ArrayList getSelectedDocIds() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 843 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 624 |
aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // gather veterinarian approval data if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); approver = 0; approvalDate = null; approvalDateStr = ""; if ((vetApproval != null) && (vetApproval.getApprovalType() != null) && (vetApproval.getApprovalType().equals(APPROVE) || vetApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); approvalDateStr = CalendarTransformer.toString(approvalDate); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } addSpacerRows(aTable, 1, 2, "8"); // Veterinarian Name aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(VETERINARIAN_NAME), "300", getTitleAlign() ); name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(name), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Veterinarian approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(approvalDateStr), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } } getForm().add(aTable); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTableRow aRow; CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 2); aTable.setCellPadding(4); addSpacerRows(aTable, 1, 2, "8"); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE2), "100%", getTitleAlign()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 82 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 82 |
RascalLookupHtmlView page = (RascalLookupHtmlView) getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.common.CURascalVapServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, there is // some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getPrefix() */ @Override public String getPrefix() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 2582 |
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 2728 |
tacMoreWhere4.append("')))"); // Appendix B dynTable.append("SELECT DISTINCT "); dynTable.append(" iph.oid"); // dynTable.append(" INTO " + tempTableName); dynTable.append(tacFromWhere1.toString()); dynTable.append(" AND lower(iph.infectiousAgentsRequired) = 'y'"); dynTable.append(tacMoreWhere2.toString()); dynTable.append(" AND 'B'"); dynTable.append(tacMoreWhere3.toString()); dynTable.append(" AND 'B'"); dynTable.append(tacMoreWhere4.toString()); // Appendix C dynTable.append(" UNION SELECT DISTINCT "); dynTable.append(" iph.oid"); dynTable.append(tacFromWhere1.toString()); dynTable.append(" AND lower(iph.humanBloodRequired) = 'y'"); dynTable.append(tacMoreWhere2.toString()); dynTable.append(" AND 'C'"); dynTable.append(tacMoreWhere3.toString()); dynTable.append(" AND 'C'"); dynTable.append(tacMoreWhere4.toString()); // Appendix E dynTable.append(" UNION SELECT DISTINCT "); dynTable.append(" iph.oid"); dynTable.append(tacFromWhere1.toString()); dynTable.append(" AND lower(iph.chemicalsRequired) = 'y'"); dynTable.append(tacMoreWhere2.toString()); dynTable.append(" AND 'E'"); dynTable.append(tacMoreWhere3.toString()); dynTable.append(" AND 'E'"); dynTable.append(tacMoreWhere4.toString()); // Appendix F dynTable.append(" UNION SELECT DISTINCT "); dynTable.append(" iph.oid"); dynTable.append(tacFromWhere1.toString()); dynTable.append(" AND lower(iph.radioIsotopesRequired) = 'y'"); dynTable.append(tacMoreWhere2.toString()); dynTable.append(" AND 'F'"); dynTable.append(tacMoreWhere3.toString()); dynTable.append(" AND 'F'"); dynTable.append(tacMoreWhere4.toString()); // construct selection list for the main query // required // main query // query.append(" DROP TABLE " + tempTableName); return " SELECT DISTINCT" + " iph.oid," + " iph.protocolNumber," + " iph.protocolYear," + " iph.modificationNumber," + " iph.submitDate," + " usr.name_first," + " usr.name_last," + " usr.user_id," + " iph.speciesName," + " iph.protocolType," + " iph.primarySite," + " iph.currentStatus," + " iph.painCategory1," + " iph.painCategory2," + " iph.painCategory3," + " iph.painCategory4," + " iph.dnaRequired," + " iph.infectiousAgentsRequired," + " iph.humanBloodRequired," + " iph.laserRequired," + " iph.chemicalsRequired," + " iph.radioIsotopesRequired," + " iph.humanCellLinesRequired," + " iph.xrayRequired" + " FROM IacucProtocolHeader iph," + " IacucStaff staff," + " RASCAL_USER usr" + " WHERE iph.currentStatus NOT in('" + KEY_ACTION_CREATE + "','" + KEY_ACTION_RETURN + "','" + KEY_ACTION_TERMINATE + "','" + KEY_ACTION_SUSPEND + "')" + " AND (lower(iph.infectiousAgentsRequired) = 'y'" + " OR lower(iph.humanBloodRequired) = 'y'" + " OR lower(iph.chemicalsRequired) = 'y'" + " OR lower(iph.radioIsotopesRequired) = 'y')" + " AND NOT EXISTS" + " (SELECT * FROM (" + dynTable + ") vet1 WHERE oid = iph.oid)" + " AND (staff.IacucProtocolHeaderPer_oid = iph.oid" + " AND staff.protocolRole = 'PI'" + " AND staff.rid = usr.rid)" + " ORDER BY iph.protocolNumber DESC"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 251 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 251 |
columns.addElement(getWidgetFor("Category A")); columns.addElement(getWidgetFor("Category B")); } t.addRowFor(columns); elements = new Vector(); int rowSize = rows.size(); for (int n = 0; n < rowSize; n++) { Hashtable currentRow = (Hashtable) rows.elementAt(n); String name = (String) currentRow.get("EventName"); if (name.equals("Protocol") || name.equals("Modification") || name.equals("Renewal") || name.equals("AdverseEvent") || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM) || name.equals("Closure") ) { if (!(getPrintable())) { if (name.equals("Protocol") || name.equals("Modification") || name.equals("Renewal") ) { elements.addElement(getObjectLinkWidgetFor(name, (String) currentRow.get("EventOid"), "ProtocolHeader", (String) currentRow.get("ProtocolOid") ) ); // Event } else { elements.addElement(getObjectLinkWidgetFor(name, (String) currentRow.get("EventOid"), name, (String) currentRow.get("ProtocolOid") ) ); } elements.addElement(getProtocolLinkWidgetFor( (String) currentRow.get("ProtocolNumber"), (String) currentRow.get("ProtocolOid") ) ); // Protocol Number } else { elements.addElement(getWidgetFor((String) currentRow.get("EventName"))); elements.addElement(getWidgetFor((String) currentRow.get("ProtocolNumber"))); } } elements.addElement(getWidgetFor((String) currentRow.get("Committee"))); // Committee elements.addElement(getWidgetFor((String) currentRow.get("PI"))); // PI if (name.equals("Protocol") || name.equals("Modification") || name.equals("Renewal")) { elements.addElement(getWidgetFor(StringUtils.isEmpty(currentRow.get("COI"))?"": |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredView.java | 144 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHarlemHospitalView.java | 119 |
); description.setFontSize("-1"); description.setIsBold(false); description.setAlignment("center"); description.setFontName(getDefaultFontName()); aForm.add(description); aForm.add("<br>"); } if ((format != null) && format.equalsIgnoreCase("normal")) { CUHtmlTable table = new CUHtmlTable(); Vector moreButtons = new Vector(); table.setBorderWidth(0); CUHtmlText text = new CUHtmlText("Sorted by Protocol Number"); text.setFontSize("1"); moreButtons.add(text); table.add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(" ")); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(getReportHelpFor("").getHtml())); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "print", "Printable Form", "return openNew('" + getServletName() + "?format=print','','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=750,height=550');" ); moreButtons.add(new CUHtmlTableCell(pb.getHtml())); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(" ")); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); pb = new CUHtmlPushButton("BUTTON", "download", "Downloadable Form", "return openNew('" + getServletName() + "?format=download','','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=750,height=550');" ); moreButtons.add(new CUHtmlTableCell(pb.getHtml())); table.getRowAt(0).add(moreButtons); table.getRowAt(0).getCell(2).setWidth("90%"); table.getRowAt(0).getCell(5).setAlign("right"); aForm.add(table); aForm.add("<br>"); } } /** * TODO: DOCUMENT ME! * * @param results TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String createSubTable(CUSortVector results) { StringBuilder html = new StringBuilder(0); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDatabaseStoreUtilityServlet.java | 278 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalUtilityServlet.java | 123 |
public Object getMinutesPDFPage(IrbAgendaHeader ah) { if (ah == null) { return new IrbAgendaMessageView("Invalid Agenda Number", "window.close()"); } Vector protocolAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector modificationAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector renewalAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.RENEWAL); Vector adverseEventAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector closureAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector unanticipateAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector meetingAttendants = ah.getAllMeetingAttendants(); Vector expeditableAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector exemptAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector pendingAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), PENDING ); Vector otherTopicAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), "Other"); return new IrbAgendaMinutesDataSheetPDFView(ah, getUser(), protocolAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 1854 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 709 |
public CUHtmlTable getCheckBoxesInTwoColumns(List<RascalAppendixPPE> rascalAppendixPPEList, List<AppendixBPPE> appendixPPEList, String checkBoxRelatedTo, String onClick ) { int collectionSize = rascalAppendixPPEList.size(); int firstColumnSize = (collectionSize / 2) + (collectionSize % 2); int secondColumnSize = collectionSize - firstColumnSize; Vector firstColumn = new Vector(firstColumnSize); for (int i = 0; i < firstColumnSize; i++) { firstColumn.addElement(rascalAppendixPPEList.get(i).getEquipment()); } Vector secondColumn = new Vector(secondColumnSize); for (int i = firstColumnSize; i < collectionSize; i++) { secondColumn.addElement(rascalAppendixPPEList.get(i).getEquipment()); } CUHtmlTable table = new CUHtmlTable(); table.setWidth("100%"); table.setBorderWidth(0); Vector columns = new Vector(); columns.addElement(""); columns.addElement(""); table.addRowFor(columns); columns = new Vector(); Object aWidget; String elementName; for (int i = 0; i < firstColumnSize; i++) { columns.addElement(""); try { elementName = (String) firstColumn.elementAt(i); aWidget = getCheckBoxWidgetFor( elementName, elementSelected(elementName, appendixPPEList), onClick, checkBoxRelatedTo ); columns.addElement(aWidget); if (i < secondColumnSize) { elementName = (String) secondColumn.elementAt(i); aWidget = getCheckBoxWidgetFor( elementName, elementSelected(elementName, appendixPPEList), onClick, checkBoxRelatedTo ); columns.addElement(aWidget); } else { columns.addElement(""); } } catch (Exception e) { columns.addElement(""); } table.addRowFor(columns); columns = new Vector(); } table.setCellPadding(0); table.getCell(0, 0).setWidth("60"); table.getCell(0, 1).setWidth("50%"); // table.getCell(0, 2).setWidth("*"); table.getCell(0, 1).setAlign("top"); return table; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 273 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 375 |
columns.addElement(getWidgetFor("Original Log In Date")); columns.addElement(getWidgetFor("Current Status")); columns.addElement(getWidgetFor("Status Date")); t.addRowFor(columns); elements = new Vector(); int rowSize = rows.size(); for (int n = 0; n < rowSize; n++) { Hashtable currentRow = (Hashtable) rows.elementAt(n); String name = (String) currentRow.get("EventName"); if (name.equals("Protocol") || name.equals("Modification") || name.equals("Renewal") || name.equals("AdverseEvent") || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM) || name.equals("Closure") ) { if (!(getPrintable())) { if (name.equals("Protocol") || name.equals("Modification") || name.equals("Renewal") ) { elements.addElement(getObjectLinkWidgetFor(name, (String) currentRow.get("EventOid"), "ProtocolHeader", (String) currentRow.get("ProtocolOid") ) ); // Event } else { elements.addElement(getObjectLinkWidgetFor(name, (String) currentRow.get("EventOid"), name, (String) currentRow.get("ProtocolOid") ) ); } elements.addElement(getProtocolLinkWidgetFor( (String) currentRow.get("ProtocolNumber"), (String) currentRow.get("ProtocolOid") ) ); // Protocol Number } else { elements.addElement(getWidgetFor((String) currentRow.get("EventName"))); elements.addElement(getWidgetFor((String) currentRow.get("ProtocolNumber"))); } } elements.addElement(getWidgetFor((String) currentRow.get("PI"))); // PI elements.addElement(getWidgetFor((String) currentRow.get("Initiator"))); // Initiator elements.addElement(getWidgetFor((String) currentRow.get("Committee"))); // Committee dateObj = currentRow.get("OriginalLogInDate"); // Date Assigned |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 93 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 91 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 78 |
columns.addElement("StatusDate"); if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); getForm().add(addDateRange()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 635 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 765 |
public void addProtocolAttached(String label, Vector protocolAttached, String eventName) { int size = protocolAttached.size(); if (size > 0) { addContent(" ", " ", theStyle); addSectionTitle(label); setDataSheetFeature(); String firstLabel = "Protocol Number"; String secondLabel = "Title"; float xyPosition[] = new float[] {}; if (eventName.equals("AdverseEvent") || eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { secondLabel = "Keyword"; } int tableSize = 5; Vector vLabel = new Vector(tableSize); vLabel.add(0, firstLabel); vLabel.add(1, secondLabel); vLabel.add(2, "Reviewer"); vLabel.add(3, "Comments"); vLabel.add(4, "PI"); if (eventName.equals(PENDING) || eventName.equals(IrbNameConstants.EXEMPT) || eventName.equals(IrbNameConstants.EXPEDITED) ) { vLabel.add(5, "Approval Date"); } xyPosition = new float[] { unitXy * 14, unitXy * 16, unitXy * 10, unitXy * 40, unitXy * 10, unitXy * 10 }; Vector currentRow = null; Vector vContent = new Vector(tableSize); String strEUIRB = ""; for (int i = 0; i < size; i++) { if (i == 0) { addUnderLinedLabel(vLabel, xyPosition, theStyle, 10, 12); } // setHeight(getHeight()-getPDFPage().getStyle().getFontLeading()); currentRow = (Vector) protocolAttached.elementAt(i); strEUIRB = getNotNullString((String) currentRow.elementAt(1), ""); strEUIRB = "IRB-" + strEUIRB; vContent.add(0, strEUIRB); vContent.add(1, getNotNullString((String) currentRow.elementAt(3), "")); // title // reviewer StringBuilder revString = new StringBuilder(""); if (getAgendaView().getEventObject((String) currentRow.elementAt(0), eventName) != null ) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentExternalView.java | 241 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentInternalView.java | 238 |
String titles[] = { "View Document", "File Name", "Date Attached", "Edit", "Archive" }; Vector columns = new Vector(); int titleLen = titles.length; for (String title : titles) { columns.add(getHeadingLabelFor(title)); } return columns; } } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param aLocation TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getLinkWidgetFor(String aString, String aLocation) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } CUHtmlText text = new CUHtmlText(aString); text.setLink("'" + aLocation + "'"); text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** @see edu.columbia.rascal.presentation.irb.pages.IrbHtmlView#getProtocolGeneralHeaderHtml() */ @Override public String getProtocolGeneralHeaderHtml() { String s = ""; String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; IrbProtocolHeader ph = getProtocol().getLastProtocolHeader(); setProtocolHeader(ph); // String department = (getProtocolHeader().getOriginatingDepartment().trim().equals("") ? blank : // getProtocolHeader().getOriginatingDepartment()); String departmentCode = (getProtocolHeader().getOriginatingDepartment().trim().equals("") ? blank : getProtocolHeader().getOriginatingDepartment()); String department = ""; if (!departmentCode.equals(blank)) department = ServiceLocator.getRascalDepartmentService().findById(departmentCode) .getName() + " " + "(" + departmentCode + ")"; else department = blank; add(getSubTitle()); s += "<table width=\"100%\" border=\"1\" bgcolor=\"#CCCCCC\">"; s += "<tr> "; s += "<td colspan=\"2\"> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Protocol Number</font> </div>"; s += "</td> <td colspan=\"2\"> <font face=\"Comic Sans MS\" size=\"1\"> "; s += getPrefix() + ((getProtocolHeader().getIrbProtocol().getProtocolNumber() == null) ? "" : getProtocolHeader().getIrbProtocol().getProtocolNumber()); s += "</font></td> </tr> <tr> <td width=\"25%\"> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">You are</font></div>"; s += "</td> <td><font face=\"Comic Sans MS\" size=\"1\">"; s += getRascalUser().getUserFirstLastNameUni(); s += "</font></td> <td width=\"25%\"> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Department</font></div>"; s += "</td> <td width=\"25%\"> <font face=\"Comic Sans MS\" size=\"1\"> "; s += department + "</font></td> </tr> <tr> <td> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Principal Investigator</font></div></td><td>"; s += (((CUHtmlItem) getWidgetFor( ServiceLocator.getIrbProtocolHeaderService().getParticipantString( "Principal Investigator", getProtocolHeader() ) )).getHtml()); s += "</td> <td> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Initiator</font></div>"; s += "</td> <td>"; if ((getUnanticipatedProblem() != null) && (getUnanticipatedProblem().getCreatedBy() != 0) |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAView.java | 222 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIView.java | 728 |
public Vector stringtoVector(String s, String sep) { // convert a String s to Vector, the elements // are delimited by sep if (s.trim().length() > 0) s = s.substring(1, s.length() - 1); StringBuffer buf = new StringBuffer(s); int arraysize = 1; for (int i = 0; i < buf.length(); i++) { if (sep.indexOf(buf.charAt(i)) != -1) arraysize++; } Vector elements = new Vector(arraysize); int y; int z = 0; if (buf.toString().contains(sep)) { while (buf.length() > 0) { if (buf.toString().contains(sep)) { y = buf.toString().indexOf(sep); if (y != buf.toString().lastIndexOf(sep)) { elements.add(z, buf.toString().substring(0, y).trim()); z++; buf.delete(0, y + 1); } else if (buf.toString().lastIndexOf(sep) == y) { elements.add(z, (buf.toString().substring(0, buf.toString().indexOf(sep))).trim() ); z++; buf.delete(0, buf.toString().indexOf(sep) + 1); elements.add(z, buf.toString().trim()); z++; buf.delete(0, buf.length()); } } } } else { elements.add(0, buf.toString()); } buf = null; int t = elements.size(); return elements; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixInvitroView.java | 69 |
edu/columbia/rascal/presentation/appendix/pages/AppendixLabAbstractView.java | 195 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1012 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1129 |
creationDate = hah.getCreationDate().toString(); String departmentName = (isEmpty(hah.getDeptName()) ? blank : hah.getDeptName()); String departmentCode = (isEmpty(hah.getDeptNumber()) ? blank : hah.getDeptNumber()); if (!departmentName.equals(blank)) { department = departmentName + " " + "(" + departmentCode + ")"; } department = (isEmpty(department) ? blank : department); } else { pTitle = blank; pNumber = blank; piString = blank; initiatorString = blank; creationDate = blank; department = blank; } add(getSubTitle()); s.append("<p><table width=\"100%\" border=\"1\" bgcolor=\"#CCCCCC\">"); s.append("<tr> "); s.append("<td align= \"right\"> "); s.append("<font face=\"Comic Sans MS\" size=\"1\">Title</font>"); s.append("</td>"); // title s.append("<td> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(pTitle).append("</font></td> "); // protocol number s.append("<td > "); s.append( "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">In-Vitro Number</font> </div>" ); s.append("</td> <td> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(pNumber); s.append("</font></td> </tr>"); // creation date s.append( "<tr> <td><div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Date Created</font></div></td> <td> " ); s.append("<font face=\"Comic Sans MS\" size=\"1\"> "); s.append(creationDate); s.append("</font></td> "); // creation date s.append( "<td><div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Initiator</font></div>" ); s.append("</td> <td> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(initiatorString).append("</font></td> </tr> "); // pi s.append("</font></td></tr> "); s.append( " <tr> <td> <div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Principal Investigator</font></div>" ); s.append("</td> <td><font face=\"Comic Sans MS\" size=\"1\">"); s.append(piString); // user s.append("</font></td> "); s.append( " <td> <div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">You are</font></div>" ); s.append("</td> <td><font face=\"Comic Sans MS\" size=\"1\">"); s.append(getRascalUser().getNameFirst()).append(" ").append(getRascalUser().getNameLast()).append(" (").append(getRascalUser().getUserId()).append(")"); s.append("</font></td></tr> "); s.append("</table> <br>"); return s.toString(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 187 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredView.java | 144 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHarlemHospitalView.java | 119 |
); description.setFontSize("-1"); description.setIsBold(false); description.setAlignment("center"); description.setFontName(getDefaultFontName()); aForm.add(description); aForm.add("<br>"); } if ((format != null) && format.equalsIgnoreCase("normal")) { CUHtmlTable table = new CUHtmlTable(); Vector moreButtons = new Vector(); table.setBorderWidth(0); // Sorting is complicated by one-to-many relationships, sorting defaulted to Protocol // Number. Developing a *useful* means to sort data will consume time. Will develop if // sorting becomes a demand. moreButtons.add(getSortHeaderForColumnNames(columns, "", // "")); CUHtmlText text = new CUHtmlText("Sorted by Protocol Number"); text.setFontSize("1"); moreButtons.add(text); table.add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(" ")); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(getReportHelpFor("").getHtml())); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "print", "Printable Form", "return openNew('" + getServletName() + "?format=print','','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=750,height=550');" ); moreButtons.add(new CUHtmlTableCell(pb.getHtml())); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(" ")); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); pb = new CUHtmlPushButton("BUTTON", "download", "Downloadable Form", "return openNew('" + getServletName() + "?format=download','','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=750,height=550');" ); moreButtons.add(new CUHtmlTableCell(pb.getHtml())); table.getRowAt(0).add(moreButtons); table.getRowAt(0).getCell(2).setWidth("90%"); table.getRowAt(0).getCell(5).setAlign("right"); aForm.add(table); aForm.add("<br>"); } } /** * TODO: DOCUMENT ME! * * @param aPackage TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String createFlatTable(CUSortVector aPackage) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1239 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 359 |
} /** @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#setLabelName(java.lang.String) */ @Override public void setLabelName(String newValue) { int index = newValue.indexOf(":"); if (index > 0) { this.labelName = newValue.substring(0, index); } else { this.labelName = newValue; } } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#setLineParameters(java.util.Hashtable) */ @Override public void setLineParameters(Hashtable params) { // Save parameters passed through URL in hidden fields of the form. Names of all // parameters are lowercase Enumeration e = params.keys(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * Sets the mainTitle of this page. If aMainTitle is a String, use the default mainTitle * settings. if aMainTitle is CUHtmlText, override the default mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * TODO: DOCUMENT ME! * * @param newValue TODO: DOCUMENT ME! */ public void setRascalUser(RascalUser newValue) { this.rascalUser = newValue; } /** * Sets the subtitle of this page. If aSubTitle is a String, use the default subtitle settings. * if aSubTitle is CUHtmlText, override the default title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { // FIXME XSS // String result = req.getParameter(parName); String result = HtmlUtils.htmlEscape(req.getParameter(parName)); return (result.equals("")) ? null : result; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private EVector getDefaultMainFooter() { EVector result = new EVector(); result.add(getRuler()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDataSheetServlet.java | 159 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDatabaseStoreUtilityServlet.java | 205 |
long committeeId = ah.getCommitteeId(); Vector protocolAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector modificationAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector renewalAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.RENEWAL); Vector adverseEventAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector closureAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector unanticipateAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector expeditableAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector exemptAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector pendingAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), PENDING ); Vector otherTopicAttached = ah.getAllAgendaEventsByType("Other"); Vector oldBusinessAttached = ah.getAllAgendaEventsByType("OldBusiness"); Vector newBusinessAttached = ah.getAllAgendaEventsByType("NewBusiness"); return new IrbAgendaPDFDataSheetView(ah, getUser(), protocolAttached, modificationAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 332 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 800 |
approvalDateStr = approvalDate.toString(); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } // spacer addSpacerRows(aTable, 1, 2, "8"); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_SAFETY_OFFICER), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(name), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(approvalDateStr), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval number aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_NUMBER), "300", getTitleAlign() ); textValue = (getTracker().getEhsNumber() == null) ? "" : getTracker().getEhsNumber(); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // gather veterinarian approval data if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); approver = 0; approvalDate = null; approvalDateStr = ""; if ((vetApproval != null) && (vetApproval.getApprovalType() != null) && (vetApproval.getApprovalType().equals(APPROVE) || vetApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // approvalDateStr = CalendarTransformer.toString(approvalDate); approvalDateStr = approvalDate.toString(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 381 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 306 |
CUHtmlCheckBox cb = new CUHtmlCheckBox(aName, aValue, checked, aLabel); return cb; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param currentDate TODO: DOCUMENT ME! * @param dateFieldName TODO: DOCUMENT ME! * @param monthFieldName TODO: DOCUMENT ME! * @param dayFieldName TODO: DOCUMENT ME! * @param yearFieldName TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public CUHtmlTable getDateTable(String currentDate, String dateFieldName, String monthFieldName, String dayFieldName, String yearFieldName ) { int monthIndex = new Long(currentDate.substring(0, 2)).intValue(); int dayIndex = new Long(currentDate.substring(3, 5)).intValue(); int year = new Long(currentDate.substring(6)).intValue(); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param dayIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getDayWidget(String fieldName, int dayIndex) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 100 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 384 |
} /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDateTable(java.lang.String,java.lang.String, * java.lang.String, java.lang.String, java.lang.String) */ @Override public CUHtmlTable getDateTable(String currentDate, String dateFieldName, String monthFieldName, String dayFieldName, String yearFieldName ) { int monthIndex = new Long(currentDate.substring(0, 2)).intValue(); int dayIndex = new Long(currentDate.substring(3, 5)).intValue(); int year = new Long(currentDate.substring(6)).intValue(); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex ); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { Vector<String> list = new Vector<String>(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 74 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 71 |
columns.addElement("Abbreviated_Title"); if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 334 |
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 100 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 376 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 384 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 309 |
} /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDateTable(java.lang.String,java.lang.String, * java.lang.String, java.lang.String, java.lang.String) */ @Override public CUHtmlTable getDateTable(String currentDate, String dateFieldName, String monthFieldName, String dayFieldName, String yearFieldName ) { int monthIndex = new Long(currentDate.substring(0, 2)).intValue(); int dayIndex = new Long(currentDate.substring(3, 5)).intValue(); int year = new Long(currentDate.substring(6)).intValue(); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDataSheetServlet.java | 69 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDatabaseStoreUtilityServlet.java | 205 |
long committeeId = ah.getCommitteeId(); Vector protocolAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector modificationAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector renewalAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.RENEWAL); Vector adverseEventAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector closureAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector unanticipateAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector expeditableAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector exemptAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector pendingAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), PENDING ); Vector otherTopicAttached = ah.getAllAgendaEventsByType("Other"); Vector oldBusinessAttached = ah.getAllAgendaEventsByType("OldBusiness"); Vector newBusinessAttached = ah.getAllAgendaEventsByType("NewBusiness"); return new IrbAgendaDataSheetView(ah, getUser(), protocolAttached, modificationAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/pt/PtApprovalsController.java | 228 |
edu/columbia/rascal/presentation/controller/pt/PtProjectOfficerDataController.java | 144 |
} private Map<String, Object> recordHeading(PtProposalHeader proposal, RascalUser currentUser) { final Map<String, Object> recordHeading = new HashMap<String, Object>(); // You are recordHeading.put("currentUser", currentUser.getUserFirstLastNameUni()); if (proposal != null && proposal.getId() != null) { // Proposal TrakId recordHeading.put("trakId", "PT-" + proposal.getTrakId()); // Deadline recordHeading.put("deadlineDate", proposal.getDeadlineDate()); // Deadline Type recordHeading.put("deadlineType", proposal.getDeadlineType()); // Date Created recordHeading.put("createDate", proposal.getCreationDate()); // Sponsor final PtAgencyAddress ptAgencyAddress = ptAgencyAddressService.getLastAgencyAddressForPtProposalHeader(proposal); if (ptAgencyAddress != null) { recordHeading.put("sponsor", ptAgencyAddress.getAgencyName()); } // Logged in by SPA final List<PtTracking> statuses = ptTrackingService.findByPtProposalHeaderAndTrackingLocation(proposal, "Logged In"); if (statuses != null && statuses.size() > 0) { recordHeading.put("loginDate", statuses.get(0).getDateTimeIn()); } RascalUser ru; // Initiator final PtAccessControl init = ptAccessControlService.getInitiatorForProposal(proposal); if (init != null) { ru = init.getRascalUser(); if (ru != null) { recordHeading.put("initiator", ru.getUserFirstLastNameUni()); } } // Principal Investigator final PtAccessControl pi = proposal.getLeadPerson(); if (pi != null) { ru = pi.getRascalUser(); if (ru != null) { recordHeading.put("leadInvestigator", ru.getUserFirstLastNameUni()); } } } else { recordHeading.put("createDate", new Date()); recordHeading.put("trakId", "PT-XXXX9999"); recordHeading.put("initiator", currentUser.getUserFirstLastNameUni()); } return recordHeading; } /** * TODO: DOCUMENT ME! * * @param ptAccessControlService TODO: DOCUMENT ME! */ protected void setPtAccessControlService(PtAccessControlService ptAccessControlService) { this.ptAccessControlService = ptAccessControlService; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2983 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3468 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4158 |
aBuffer.append("' and stat.parentObjectOid = header.oid and header.modificationNumber > 0 "); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid row.addElement(res.getString(5)); // reviewer last name results.addElement(row.clone()); row = new Vector(5); } } catch (Exception e) { log.error("Exception while Running query", e); } return results; } /** * RASCAL (halayn) Creation date: (7/26/2002 14:53:52 PM) * * @param aUser TODO: DOCUMENT ME! * @param reviewerType TODO: DOCUMENT ME! * * @return Vector of results */ public static Vector getModificationEventsForReviewerQueue(RascalUser aUser, String reviewerType |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 734 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 1044 |
aCell.add(getTableCellData(level, "center")); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); aCell.setAlign("center"); colNum++; // appendix B aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_INFECTIOUS_REQ) != null) && (queueItem.get(KEY_INFECTIOUS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); aCell.setAlign("center"); colNum++; // appendix C aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_HUMAN_MATERIAL_REQ) != null) && (queueItem.get(KEY_HUMAN_MATERIAL_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); aCell.setAlign("center"); colNum++; // appendix D aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_LASER_REQ) != null) && (queueItem.get(KEY_LASER_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); aCell.setAlign("center"); colNum++; // appendix E aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_CHEMICALS_REQ) != null) && (queueItem.get(KEY_CHEMICALS_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); aCell.setAlign("center"); colNum++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceCreateServlet.java | 223 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceRespondServlet.java | 397 |
if (leadPerson != eventInitiatorRid) { // PI recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(leadPerson); // PI recipient.setProtocolRole("Principal Investigator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(leadPerson, correspondence); } // study coordinator Vector<IrbStaff> studyCoordis = header.getStudyCoordinators(); int studyCoorSize = studyCoordis.size(); for (int i = 0; i < studyCoorSize; i++) { IrbStaff aStudyCor = studyCoordis.elementAt(i); if (!aStudyCor.getRid().equals(header.getCreatedBy()) && !aStudyCor.getRid().equals(Integer.valueOf(leadPerson)) ) { recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(aStudyCor.getRid()); // PI recipient.setProtocolRole("Study Coordinator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(aStudyCor.getRid(), correspondence); } } // Regulatory Coordinator Vector<IrbStaff> rcCoordis = header.getRegulatoryCoordinators(); int rcCoorSize = rcCoordis.size(); for (int i = 0; i < rcCoorSize; i++) { IrbStaff aRcCor = rcCoordis.elementAt(i); if ((!aRcCor.getRid().equals(header.getCreatedBy())) && (!aRcCor.getRid().equals(leadPerson)) ) { recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(aRcCor.getRid()); // PI recipient.setProtocolRole("Regulatory Coordinator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(aRcCor.getRid(), correspondence); } } } else { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDatabaseStoreUtilityServlet.java | 288 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalUtilityServlet.java | 133 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesDataSheetServlet.java | 70 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesDataSheetServlet.java | 156 |
Vector protocolAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector modificationAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector renewalAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.RENEWAL); Vector adverseEventAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector closureAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector unanticipateAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector meetingAttendants = ah.getAllMeetingAttendants(); Vector expeditableAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector exemptAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector pendingAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), PENDING ); Vector otherTopicAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), "Other"); return new IrbAgendaMinutesDataSheetPDFView(ah, getUser(), protocolAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 216 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 201 |
} /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getDateTable(java.lang.String,java.lang.String, * java.lang.String, java.lang.String, java.lang.String) */ @Override public CUHtmlTable getDateTable(String currentDate, String dateFieldName, String monthFieldName, String dayFieldName, String yearFieldName ) { int monthIndex = Integer.valueOf(currentDate.substring(0, 2)); int dayIndex = Integer.valueOf(currentDate.substring(3, 5)); int year = Integer.valueOf(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { Vector<String> list = new Vector<String>(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 60 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 62 |
IrbReportClinicalTrialsFirstSubmissionStatusServlet.class.getName(), "GET" ) ); setPageTitle("RASCAL Human Subject"); setSubTitle("Clinical Trials Report"); setPrintable(print); setDownloadable(downloadable); setSortBy(sortColumn); String instruction = ""; if (!(getDownloadable())) { addHeader(getBeginDate(), getEndDate()); getForm().add(addDate()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows, columns); if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyView.java | 188 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredView.java | 146 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHarlemHospitalView.java | 121 |
CUHtmlText description = new CUHtmlText(temp.toString()); description.setAlignment("center"); description.setFontName(getDefaultFontName()); aForm.add(description); aForm.add("<br>"); } if ((format != null) && format.equalsIgnoreCase("normal")) { CUHtmlTable table = new CUHtmlTable(); Vector moreButtons = new Vector(); table.setBorderWidth(0); // Sorting is complicated by one-to-many relationships, sorting defaulted to Protocol // Number. Developing a *useful* means to sort data will consume time. Will develop if // sorting becomes a demand. moreButtons.add(getSortHeaderForColumnNames(columns, "", // "")); CUHtmlText text = new CUHtmlText("Sorted by Protocol Number"); text.setFontSize("1"); moreButtons.add(text); table.add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(" ")); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(getReportHelpFor("").getHtml())); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "print", "Printable Form", "return openNew('" + getServletName() + "?format=print','','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=750,height=550');" ); moreButtons.add(new CUHtmlTableCell(pb.getHtml())); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); moreButtons.add(new CUHtmlTableCell(" ")); table.getRowAt(0).add(moreButtons); moreButtons = new Vector(); pb = new CUHtmlPushButton("BUTTON", "download", "Downloadable Form", "return openNew('" + getServletName() + "?format=download','','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=750,height=550');" ); moreButtons.add(new CUHtmlTableCell(pb.getHtml())); table.getRowAt(0).add(moreButtons); table.getRowAt(0).getCell(2).setWidth("90%"); table.getRowAt(0).getCell(5).setAlign("right"); aForm.add(table); aForm.add("<br>"); } } /** * TODO: DOCUMENT ME! * * @param aPackage TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String createFlatTable(CUSortVector aPackage) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 275 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGView.java | 301 |
aCell2 = utilGetHtmlTableCell(fieldGet_0d_NumberOfAnimals("0d", defaultValue), "500", "left" ); aCell2.setVAlign("bottom"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); addSpacerRows(aTable, 1, 2, "6"); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLENOTE1), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_Spacer("10"), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE1_GENERAL), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE2), "300", "left"); aCell2 = utilGetHtmlTableCell(fieldGet_2_SurvivalTime("2", defaultValue), "500", "left"); aCell2.setVAlign("bottom"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE2_TITLE_GENERAL), "100%", getTitleAlign() ); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE3), "300", "left"); aCell2 = utilGetHtmlTableCell(fieldGet_3_IsotopeExcreted("3rb", defaultValue), "500", "left" ); aCell2.setVAlign("bottom"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor("If yes,explain. "), "300", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 361 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 289 |
setBgColor("#FFFFFF"); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ @Override public void setForm(CUHtmlForm newValue) { this.form = newValue; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#setLineParameters(java.util.Hashtable) */ @Override public void setLineParameters(Hashtable params) { // Save parameters passed through URL in hidden fields of the form. Names of all // parameters are lowercase Enumeration e = params.keys(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * This method was created in VisualAge. Sets the mainTitle of this page. If aMainTitle is a * String, use the default mainTitle settings. if aMainTitle is CUHtmlText, override the default * mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aMode TODO: DOCUMENT ME! */ public void setMode(String aMode) { mode = aMode; } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { if (aNote instanceof CUHtmlText) { note = (CUHtmlText) aNote; } else { if (aNote instanceof String) { CUHtmlMultiLineText aText = new CUHtmlMultiLineText((String) aNote); aText.setFontName(getDefaultFontName()); aText.setMaxChar(600); aText.setIsBold(false); aText.setIsItalic(true); aText.addBreaks(3); note = aText; } } } /** * This method was created in VisualAge. Sets the subtitle of this page. If aSubTitle is a * String, use the default subtitle settings. if aSubTitle is CUHtmlText, override the default * title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 216 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 201 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 160 |
} /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getDateTable(java.lang.String,java.lang.String, * java.lang.String, java.lang.String, java.lang.String) */ @Override public CUHtmlTable getDateTable(String currentDate, String dateFieldName, String monthFieldName, String dayFieldName, String yearFieldName ) { int monthIndex = Integer.valueOf(currentDate.substring(0, 2)); int dayIndex = Integer.valueOf(currentDate.substring(3, 5)); int year = Integer.valueOf(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationCertifiedDataSheetView.java | 152 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationPDFTranslationView.java | 168 |
} /** TODO: DOCUMENT ME! */ public void translateText() { addContent(" ", " ", theStyle); addContent(getFormObjectValue("line1"), "", theStyle); addContent(" ", " ", theStyle); addContent(getFormObjectValue("line2"), " ", theStyle); addContent(getFormObjectValue("line3"), " ", theStyle); addContent(" ", " ", theStyle); addContent(getFormObjectValue("line4"), " ", theStyle); addContent(getFormObjectValue("line5"), " ", theStyle); addContent(getFormObjectValue("line6"), " ", theStyle); addContent(getFormObjectValue("line7"), " ", theStyle); addContent(getFormObjectValue("line8"), " ", theStyle); addContent(" ", " ", theStyle); addContent(getFormObjectValue("line9"), " ", theStyle); addContent(getFormObjectValue("line10"), " ", theStyle); addContent(getFormObjectValue("line11"), " ", theStyle); addContent(getFormObjectValue("line12"), " ", theStyle); addContent(" ", " ", theStyle); addContent(getFormObjectValue("line13"), " ", theStyle); addContent(" ", " ", theStyle); addContent(getFormObjectValue("line14"), " ", theStyle); addContent(" ", " ", theStyle); addContent(getFormObjectValue("line15"), " ", theStyle); addContent(" ", " ", theStyle); addContent(getFormObjectValue("line16"), " ", theStyle); addContent(" ", " ", theStyle); addContent(getFormObjectValue("line17"), " ", theStyle); addContent(getFormObjectValue("line18"), " ", theStyle); addContent(" ", " ", theStyle); addContent(" ", " ", theStyle); addContent(getFormObjectValue("line19"), " ", theStyle); addContent(" ", " ", theStyle); addContent(getFormObjectValue("SignedLine"), " ", theStyle); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportApprovalStatusDateRangeServlet.java | 46 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportEventStatusDateRangeServlet.java | 46 |
return new IrbReportApprovalStatusDateRangeView(getUser()); } catch (Exception e) { return new IrbMessageView("You are not authorized to view any proposals by department."); } } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void submit() { // pasting method String endDate = null; if (((endDate = getRequestParameter("endDate")) != null) && !endDate.trim().equals("")) { String range = getRequestParameter("range"); Calendar startDay = CalendarTransformer.toCalendar(endDate); if (range.startsWith("Quarter")) { startDay.add(Calendar.MONTH, -3); } else if (range.startsWith("Month")) { startDay.add(Calendar.MONTH, -1); } else if (range.startsWith("Week")) { startDay.add(Calendar.DATE, -7); } else if (range.startsWith("Day")) { startDay.add(Calendar.DATE, -1); } startDay.setLenient(true); // fix for problem with 12/31/2000 (hh 7/10) String beginDate = CalendarTransformer.toString(startDay); Calendar oneMoreDay = CalendarTransformer.toCalendar(endDate); oneMoreDay.add(Calendar.DATE, 1); // add one more day to handle sybase date String endingDate = CalendarTransformer.toString(oneMoreDay); getSession().setAttribute("beginDate", beginDate); getSession().setAttribute("endDate", endingDate); } if (getRequestParameter("committeeList") != null) { String selectedCommittee = getRequestParameter("committeeList"); getSession().setAttribute("selectedCommittee", selectedCommittee); } if (getRequestParameter("EventList") != null) { String EventList = getRequestParameter("EventList"); getSession().setAttribute("EventList", EventList); } if (getRequest().getParameterValues("StatusList") != null) { getSession().setAttribute("StatusList", getListParms(getRequest().getParameterValues("StatusList")) ); } redirectTo(IrbReportApprovalStatusServlet.class.getName()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportProtocolHazMatView.java | 724 |
edu/columbia/rascal/presentation/appendix/pages/AppendixReportPtHazMatView.java | 696 |
aTitle = getTableColumnName("Approval Date"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix A aTitle = getTableColumnName("A"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix B aTitle = getTableColumnName("B"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix C aTitle = getTableColumnName("C"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix D aTitle = getTableColumnName("D"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix E aTitle = getTableColumnName("E"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix F aTitle = getTableColumnName("F"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Strong Radio Frequencies aTitle = getTableColumnName("R"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // X-Ray aTitle = getTableColumnName("O"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; } /** * TODO: DOCUMENT ME! * * @param newLocation TODO: DOCUMENT ME! */ public void setLocation(java.lang.String newLocation) { location = newLocation; } /** * TODO: DOCUMENT ME! * * @param newPrintable TODO: DOCUMENT ME! */ public void setPrintable(boolean newPrintable) { printable = newPrintable; } /** * setSortBy. * * @param aValue TODO: DOCUMENT ME! */ public void setSortBy(String aValue) { sortBy = aValue; } /** * TODO: DOCUMENT ME! * * @param newToDate TODO: DOCUMENT ME! */ public void setToDate(java.lang.String newToDate) { toDate = newToDate; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 56 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 57 |
setSubTitle("IRB Approval Status Report"); add(getSubTitle()); setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); add(getHiddenWidgetFor("dateValid", "true")); addFields(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { int numCells = 4; // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); aForm.add(getHiddenWidgetFor("dateValid", "true")); add(aForm); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { String endDate = CalendarTransformer.toString(Calendar.getInstance()); Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; aTable.setCellSpacing(15); aTable.addRowFor(columns); // event list aTable.getCell(row, 0).add(getRowLabelFor("Event :")); CUHtmlList eventList = new CUHtmlList(getEventList(), "EventList", "Protocol"); aTable.getCell(row, 1).add(eventList); row++; // status list Vector selected = new Vector(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListJdbcAccessor.java | 43 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaJdbcAccessor.java | 43 |
super(); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param lastName TODO: DOCUMENT ME! * @param firstName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static String getFirstLastName(String lastName, String firstName) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName) + " " + (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName); } return nameString; } /** * TODO: DOCUMENT ME! * * @param lastName TODO: DOCUMENT ME! * @param firstName TODO: DOCUMENT ME! * @param userId TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static String getFirstLastNameUni(String lastName, String firstName, String userId) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) && ((userId == null) || (userId.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName) + " " + (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName) + " (" + (((userId == null) || (userId.trim().length() == 0)) ? "-" : userId) + ")"; } return nameString; } /** * The getInstance method comment. * * @return AppendixWorkListJdbcAccessor */ public static synchronized AppendixWorkListJdbcAccessor getInstance() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListJdbcAccessor.java | 108 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaJdbcAccessor.java | 99 |
} /** * TODO: DOCUMENT ME! * * @param lastName TODO: DOCUMENT ME! * @param firstName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static String getLastFirstName(String lastName, String firstName) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName) + ", " + (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName); } return nameString; } /** * TODO: DOCUMENT ME! * * @param lastName TODO: DOCUMENT ME! * @param firstName TODO: DOCUMENT ME! * @param userId TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static String getLastFirstNameUni(String lastName, String firstName, String userId) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) && ((userId == null) || (userId.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName) + ", " + (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName) + " (" + (((userId == null) || (userId.trim().length() == 0)) ? "-" : userId) + ")"; } return nameString; } /** * Builds a row Hashtable with the SybResultSet. * * @param resSet com.sybase.jdbc.SybResultSet * * @return java.util.Hashtable a row Hashtable */ public java.util.Vector buildRowTableWithAccessSelectionListResultSet(java.sql.ResultSet resSet) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/pt/PtApprovalsController.java | 228 |
edu/columbia/rascal/presentation/controller/pt/PtBudgetController.java | 271 |
edu/columbia/rascal/presentation/controller/pt/PtGeneralInformationController.java | 247 |
edu/columbia/rascal/presentation/controller/pt/PtProjectOfficerDataController.java | 144 |
} private Map<String, Object> recordHeading(PtProposalHeader proposal, RascalUser currentUser) { final Map<String, Object> recordHeading = new HashMap<String, Object>(); // You are recordHeading.put("currentUser", currentUser.getUserFirstLastNameUni()); if (proposal != null && proposal.getId() != null) { // Proposal TrakId recordHeading.put("trakId", "PT-" + proposal.getTrakId()); // Deadline recordHeading.put("deadlineDate", proposal.getDeadlineDate()); // Deadline Type recordHeading.put("deadlineType", proposal.getDeadlineType()); // Date Created recordHeading.put("createDate", proposal.getCreationDate()); // Sponsor final PtAgencyAddress ptAgencyAddress = ptAgencyAddressService.getLastAgencyAddressForPtProposalHeader(proposal); if (ptAgencyAddress != null) { recordHeading.put("sponsor", ptAgencyAddress.getAgencyName()); } // Logged in by SPA final List<PtTracking> statuses = ptTrackingService.findByPtProposalHeaderAndTrackingLocation(proposal, "Logged In"); if (statuses != null && statuses.size() > 0) { recordHeading.put("loginDate", statuses.get(0).getDateTimeIn()); } RascalUser ru; // Initiator final PtAccessControl init = ptAccessControlService.getInitiatorForProposal(proposal); if (init != null) { ru = init.getRascalUser(); if (ru != null) { recordHeading.put("initiator", ru.getUserFirstLastNameUni()); } } // Principal Investigator final PtAccessControl pi = proposal.getLeadPerson(); if (pi != null) { ru = pi.getRascalUser(); if (ru != null) { recordHeading.put("leadInvestigator", ru.getUserFirstLastNameUni()); } } } else { recordHeading.put("createDate", new Date()); recordHeading.put("trakId", "PT-XXXX9999"); recordHeading.put("initiator", currentUser.getUserFirstLastNameUni()); } return recordHeading; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3074 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4250 |
aBuffer.append("' and stat.parentObjectOid = header.oid and header.modificationNumber > 0 "); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid results.addElement(row.clone()); row = new Vector(4); } } catch (Exception e) { log.error("Exception while Running query", e); } return results; } /** * RASCAL (halayn) Creation date: (4/26/2002 12:53:52 PM) * * @param committeeSqlString TODO: DOCUMENT ME! * * @return Vector of results */ public static Vector getModificationsForChairQueue(String committeeSqlString) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 283 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaProtocolEventBusinessView.java | 199 |
if (businessSize > 0) { getForm().add("<br>"); getForm().add(getTableViewTitle(" Old Business")); CUHtmlTable bTable = getTable(1, getColumns().size()); bTable.setBorderWidth(1); bTable.setWidth("95%"); bTable.setAlign("center"); setBusinessMeetingHead(bTable); for (int k = 0; k < businessSize; k++) { IrbAgendaEvent anEvent = ServiceLocator.getIrbAgendaEventService().findById(Long .parseLong((String) ((Vector) oldBusiness.elementAt(k)).elementAt(0)) ); IrbMeetingAttributes anAttribute = anEvent.getIrbMeetingAttributes(); setBusinessMeetingTableDataRow(bTable, anEvent, anAttribute); } getForm().add(bTable); } if (newBusinessSize > 0) { getForm().add("<br>"); getForm().add(getTableViewTitle(" New Business")); CUHtmlTable cTable = getTable(1, getColumns().size()); cTable.setBorderWidth(1); cTable.setWidth("95%"); cTable.setAlign("center"); setBusinessMeetingHead(cTable); for (int k = 0; k < newBusinessSize; k++) { IrbAgendaEvent anEvent = ServiceLocator.getIrbAgendaEventService().findById(Long .parseLong((String) ((Vector) newBusiness.elementAt(k)).elementAt(0)) ); IrbMeetingAttributes anAttribute = anEvent.getIrbMeetingAttributes(); setBusinessMeetingTableDataRow(cTable, anEvent, anAttribute); } getForm().add(cTable); } } } /** * Insert the method's description here. Creation date: (2/10/2003 12:07:30 PM) * * @return java.util.Vector */ public boolean canViewNotes() { return CURascalGuardian.hasIrbRascal() || CURascalGuardian.hasIrbCommitteeMember() || CURascalGuardian.hasIrbAdmin(); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public Vector getColumns() { String titles[] = { "Agenda Number", "Meeting Date", "Follow Up", "Notes", "Outcome" }; |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 83 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 226 |
Vector animalProtocolsYearlySummary = new Vector(); // row - [academicYear, yearlyTotalNumberOfProposals] Vector row = new Vector(2); int curYearTotalNumberOfProtocols = 0; String trakId = ""; Date dateTimeInForApproved = null; String curAcademicYearBeginMonthDayYear = "07/01/1900"; String curAcademicYearEndMonthDayYear = "06/30/1901"; String curYearEndMonthDayYear = "12/31/1900"; String academicYearBeginMonthDay = "07/01"; String academicYearEndMonthDay = "06/30"; String yearEndMonthDay = "12/31"; String strDateTimeInForApproved = "00/00/0000"; Calendar calDateTimeInForApproved = null; int firstSemesterYear = 0; int secondSemesterYear = 0; int curMonth = 0; Enumeration protocolsEnum = protocolsHistory.elements(); Vector protocolData = null; boolean isFirstProtocolData = true; while (protocolsEnum.hasMoreElements()) { // protocolData is a protocolsHistory row of the form: // [ protocolNumberYrMod, oid, approvalDate, effectiveDate, expiryDate, P.I. ] protocolData = (Vector) protocolsEnum.nextElement(); // dateTimeIn for "Approved" dateTimeInForApproved = (Date) protocolData.elementAt(2); // curMonthDayYearStr - "MM/DD/YYYY" strDateTimeInForApproved = CalendarTransformer.toString(dateTimeInForApproved); calDateTimeInForApproved = CalendarTransformer.toCalendar(strDateTimeInForApproved); if (isFirstProtocolData) { // get(Calendar.MONTH) returns the month represented by // this date (between 0 and 11) - with the value 0 // representing January curMonth = calDateTimeInForApproved.get(Calendar.MONTH) + 1; if (curMonth > 6) { firstSemesterYear = calDateTimeInForApproved.get(Calendar.YEAR); secondSemesterYear = firstSemesterYear + 1; } else { secondSemesterYear = calDateTimeInForApproved.get(Calendar.YEAR); firstSemesterYear = secondSemesterYear - 1; } // Initialize curAcademicYearBeginMonthDayYear and curAcademicYearEndMonthDayYear curAcademicYearBeginMonthDayYear = academicYearBeginMonthDay + "/" + firstSemesterYear; curAcademicYearEndMonthDayYear = academicYearEndMonthDay + "/" + secondSemesterYear; isFirstProtocolData = false; } // if the result is sorted by dateTimeIn asc, then use the following condition: // if (isBefore(strDateTimeInForLoggedOut, curAcademicYearEndMonthDayYear)) // if the result is sorted by dateTimeIn desc, then use the following condition: if (!isBefore(strDateTimeInForApproved, curAcademicYearBeginMonthDayYear)) { // The academic year of a proposal is same as the previous one. // Update curYearTotalAmountOfProposals and curYearTotalNumberOfProposals curYearTotalNumberOfProtocols = curYearTotalNumberOfProtocols + 1; } else { // The academic year of a proposal is not same as the previous one. // Update row row.addElement(firstSemesterYear + " - " + secondSemesterYear); row.addElement(Integer.toString(curYearTotalNumberOfProtocols)); // Re-initialize curAcademicYearBeginMonthDayYear and curAcademicYearEndMonthDayYear // get(Calendar.MONTH) returns the month represented by this date (between 0 and 11) // - with the value 0 representing January curMonth = calDateTimeInForApproved.get(Calendar.MONTH) + 1; if (curMonth > 6) { firstSemesterYear = calDateTimeInForApproved.get(Calendar.YEAR); secondSemesterYear = firstSemesterYear + 1; } else { secondSemesterYear = calDateTimeInForApproved.get(Calendar.YEAR); firstSemesterYear = secondSemesterYear - 1; } curAcademicYearBeginMonthDayYear = academicYearBeginMonthDay + "/" + firstSemesterYear; curAcademicYearEndMonthDayYear = academicYearEndMonthDay + "/" + secondSemesterYear; // Re-initialize curYearTotalNumberOfProtocols curYearTotalNumberOfProtocols = 1; |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 361 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 349 |
next.setLink(ConsentProtocolSearchPageServlet.class.getName() + "?DisplayPage=NextPage" ); next.setIsBold(true); next.setFontSize("1"); next.setFontName("Comic Sans MS"); next.setFgColor("black"); // next.setAlignment("RIGHT"); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } else { // Add the empty control to display the previous page next = new CUHtmlText(""); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } // Add the space in the right end pageControlRow.addElement(""); // Add the pageControlRow to aTable aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } /** * @see edu.columbia.rascal.presentation.consent.pages.ConsentHtmlView#getBooleanWidgetFor(java.lang.String, boolean) */ @Override public Object getBooleanWidgetFor(String aName, boolean aValue) { CUHtmlCheckBox cb = new CUHtmlCheckBox(aName, aName, aValue); return cb; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/pt/PtHistoryController.java | 170 |
edu/columbia/rascal/presentation/controller/pt/PtTrackingStatusController.java | 131 |
} /** * TODO: DOCUMENT ME! * * @param proposal TODO: DOCUMENT ME! * @param currentUser TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private Map<String, Object> recordHeading(PtProposalHeader proposal, RascalUser currentUser) { Map<String, Object> recordHeading = new HashMap<String, Object>(); // You are recordHeading.put("currentUser", currentUser.getUserFirstLastNameUni()); if ((proposal != null) && (proposal.getId() != null)) { // Proposal TrakId recordHeading.put("trakId", "PT-" + proposal.getTrakId()); // Deadline recordHeading.put("deadlineDate", proposal.getDeadlineDate()); // Deadline Type recordHeading.put("deadlineType", proposal.getDeadlineType()); // Date Created recordHeading.put("createDate", proposal.getCreationDate()); // Sponsor PtAgencyAddress ptAgencyAddress = ptAgencyAddressService.getLastAgencyAddressForPtProposalHeader(proposal); if (ptAgencyAddress != null) recordHeading.put("sponsor", ptAgencyAddress.getAgencyName()); // Logged in by SPA List<PtTracking> statuses = ptTrackingService.findByPtProposalHeaderAndTrackingLocation( proposal, "Logged In" ); if ((statuses != null) && (statuses.size() > 0)) recordHeading.put("loginDate", statuses.get(0).getDateTimeIn()); RascalUser ru; // Initiator PtAccessControl init = ptAccessControlService.getInitiatorForProposal(proposal); if (init != null) { ru = init.getRascalUser(); if (ru != null) recordHeading.put("initiator", ru.getUserFirstLastNameUni()); } // Principal Investigator PtAccessControl pi = proposal.getLeadPerson(); if (pi != null) { ru = pi.getRascalUser(); if (ru != null) recordHeading.put("leadInvestigator", ru.getUserFirstLastNameUni()); } } else { recordHeading.put("createDate", new Date()); recordHeading.put("trakId", "PT-XXXX9999"); recordHeading.put("initiator", currentUser.getUserFirstLastNameUni()); } return recordHeading; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 436 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 527 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 618 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 713 |
public static Vector buildCTSAApprovalResults(java.sql.ResultSet res, String name, Vector v) { Hashtable row = new Hashtable(); int modify = 0; try { if (isProtocol(name)) { while (res.next()) { row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString() ); // protocol oid modify = res.getInt(4); row.put("ProtocolNumber", res.getString(2) + " (Y" + res.getInt(3) + " M" + ((modify < 10) ? ("0" + (Integer.valueOf(modify)).toString()) : (Integer.valueOf(modify)).toString()) + ")" ); // protocol number row.put("EventName", name); row.put("Title", res.getString(6)); // title row.put("PI", res.getString(5)); // PI row.put("EventOid", Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString() ); // event oid row.put("StatusName", res.getString(8)); row.put("ApprovalOid", Integer.valueOf((new Float(res.getFloat(9))).intValue()).toString() ); // approvalOid row.put("ApprovalCode", res.getString(10)); // approval code if (res.getDate(11) == null) { row.put("StatusDate", ""); } else { row.put("StatusDate", CalendarTransformer.formatMMDDYYYY(res.getDate(11))); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/pt/PtHistoryController.java | 170 |
edu/columbia/rascal/presentation/controller/pt/PtSpaceController.java | 419 |
edu/columbia/rascal/presentation/controller/pt/PtTrackingStatusController.java | 131 |
} /** * TODO: DOCUMENT ME! * * @param proposal TODO: DOCUMENT ME! * @param currentUser TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private Map<String, Object> recordHeading(PtProposalHeader proposal, RascalUser currentUser) { Map<String, Object> recordHeading = new HashMap<String, Object>(); // You are recordHeading.put("currentUser", currentUser.getUserFirstLastNameUni()); if ((proposal != null) && (proposal.getId() != null)) { // Proposal TrakId recordHeading.put("trakId", "PT-" + proposal.getTrakId()); // Deadline recordHeading.put("deadlineDate", proposal.getDeadlineDate()); // Deadline Type recordHeading.put("deadlineType", proposal.getDeadlineType()); // Date Created recordHeading.put("createDate", proposal.getCreationDate()); // Sponsor PtAgencyAddress ptAgencyAddress = ptAgencyAddressService.getLastAgencyAddressForPtProposalHeader(proposal); if (ptAgencyAddress != null) recordHeading.put("sponsor", ptAgencyAddress.getAgencyName()); // Logged in by SPA List<PtTracking> statuses = ptTrackingService.findByPtProposalHeaderAndTrackingLocation( proposal, "Logged In" ); if ((statuses != null) && (statuses.size() > 0)) recordHeading.put("loginDate", statuses.get(0).getDateTimeIn()); RascalUser ru; // Initiator PtAccessControl init = ptAccessControlService.getInitiatorForProposal(proposal); if (init != null) { ru = init.getRascalUser(); if (ru != null) recordHeading.put("initiator", ru.getUserFirstLastNameUni()); } // Principal Investigator PtAccessControl pi = proposal.getLeadPerson(); if (pi != null) { ru = pi.getRascalUser(); if (ru != null) recordHeading.put("leadInvestigator", ru.getUserFirstLastNameUni()); } } else { recordHeading.put("createDate", new Date()); recordHeading.put("trakId", "PT-XXXX9999"); recordHeading.put("initiator", currentUser.getUserFirstLastNameUni()); } return recordHeading; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDSafetyOfficerApprovalView.java | 174 |
edu/columbia/rascal/presentation/appendix/pages/AppendixISafetyOfficerApprovalView.java | 140 |
AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + APPROVAL_SAFETY_OFFICER + "</b>" ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + name + "</b>", "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_DATE + "</b>"), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + (CalendarTransformer.formatMMDDYYYY(approvalDate)) + "</b>", "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Owner's Number (Protocol Number, Proposal TrakId) String ownerNumberLabel = (getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) ? PROPOSAL_TRAK_ID : PROTOCOL_NUMBER; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(ownerNumberLabel), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(getOwnerSurrogate().getOwnerNumber(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 216 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 201 |
edu/columbia/rascal/presentation/tc/views/TCReportSelectFieldsView.java | 291 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 160 |
} /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getDateTable(java.lang.String,java.lang.String, * java.lang.String, java.lang.String, java.lang.String) */ @Override public CUHtmlTable getDateTable(String currentDate, String dateFieldName, String monthFieldName, String dayFieldName, String yearFieldName ) { int monthIndex = Integer.valueOf(currentDate.substring(0, 2)); int dayIndex = Integer.valueOf(currentDate.substring(3, 5)); int year = Integer.valueOf(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 479 |
edu/columbia/rascal/presentation/tc/views/TCReportSelectFieldsView.java | 297 |
public CUHtmlTable getDateTable(String currentDate, String dateFieldName, String monthFieldName, String dayFieldName, String yearFieldName ) { int monthIndex = Integer.valueOf(currentDate.substring(0, 2)); int dayIndex = Integer.valueOf(currentDate.substring(3, 5)); int year = Integer.valueOf(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex ); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * TODO: DOCUMENT ME! * * @param fieldName TODO: DOCUMENT ME! * @param dayIndex TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getDayWidget(String fieldName, int dayIndex) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 1704 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 1789 |
ResultSet res = acc.executeQuery(getQueryHumanProtocolHistoryByDept(deptCode, from, to)); while (res.next()) { // protocolNumber protocolNumber = res.getString(1); // returns int or 0 if SQL NULL // protocolYear protYear = res.getString(2); if ((protYear == null) || protYear.trim().equals("")) protYear = "1"; // modificationNumber modNum = res.getString(3); if ((modNum == null) || modNum.trim().equals("")) { modNum = "00"; } else if (modNum.trim().length() == 1) { modNum = "0" + modNum; } // protocolNumberYrMod = "IRB-" + protocolNumber+"(Y"+protYear+" M"+modNum+")"; protocolNumberYrMod = protocolNumber + "(Y" + protYear + " M" + modNum + ")"; row.addElement(protocolNumberYrMod); // oid of a IrbProtocolHeader row.addElement(Long.toString(res.getLong(4))); // dateApproved if (res.getDate(5) == null) { row.addElement(""); } else { row.addElement(res.getDate(5)); } // effectiveDate if (res.getDate(6) == null) { row.addElement(""); } else { row.addElement(res.getDate(6)); } // expirationDate // Add a Date instead of a String to be sorted. if (res.getDate(7) == null) { row.addElement(""); } else { row.addElement(res.getDate(7)); } // P.I. - lastName, firstName (uni) row.addElement(buildLastFirstName(res.getString(8), res.getString(9)) + " (" + res.getString(10) + ")" ); results.addElement(row.clone()); row = new Vector(6); } // end while } catch (Exception e) { log.error(e); } return results; } /** * getSelectedDataHumanProtocolsHistoryByUni. * * @param uni String * @param from String * @param to String * * @return Vector */ public Vector getSelectedDataHumanProtocolsHistoryByUni(String uni, String from, String to) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingAdminView.java | 73 |
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramAdminView.java | 71 |
edu/columbia/rascal/presentation/user/views/RuRadiationSafetyBadgeAdminView.java | 70 |
RuICMExperimentalSurgeryTrainingAdminServlet.class.getName(), "POST" ) ); render(); } } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numbCells TODO: DOCUMENT ME! */ public void addAdminControlRows(CUHtmlTable aTable, int numbCells) { Vector<Object> columns = new Vector<Object>(numbCells); for (int c = 0; c < numbCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); CUHtmlEntryField aWidget; // rascal UNI if (getModify() != null) aWidget = new CUHtmlEntryField(KEY_RASCAL_UNI, "15", "15", getModify().getUserId()); else aWidget = new CUHtmlEntryField(KEY_RASCAL_UNI, "15", "15", ""); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI")); aTable.getCell(row, 0).setColumnsToSpan(2); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // a link to the pop up window for UNI Lookup columns.setElementAt(getUniLookup(), 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Lookup UNI")); aTable.getCell(row, 0).setColumnsToSpan(2); row++; // a button to the search servlet CUHtmlInput i2 = new CUHtmlInput(); i2.setName("Find Certification"); i2.setInputType("image"); i2.setImageSource("/images/popup.gif"); columns.setElementAt(i2.getHtmlTagLine(), 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Find Certification")); aTable.getCell(row, 0).setColumnsToSpan(2); row++; // a link to the pop up window for data entry CUHtmlImage i3 = new CUHtmlImage("/images/popup.gif"); i3.setAlt("Add Certification"); i3.setLink(RuICMExperimentalSurgeryTrainingAdminServlet.class.getName()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 222 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 479 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 207 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 166 |
@Override public CUHtmlTable getDateTable(String currentDate, String dateFieldName, String monthFieldName, String dayFieldName, String yearFieldName ) { int monthIndex = Integer.valueOf(currentDate.substring(0, 2)); int dayIndex = Integer.valueOf(currentDate.substring(3, 5)); int year = Integer.valueOf(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbClosureFileUploadController.java | 209 |
edu/columbia/rascal/presentation/controller/irb/IrbClosureFileUploadInternalController.java | 211 |
public ModelAndView handleRequest(@RequestParam long anOid, HttpServletRequest request, HttpServletResponse response ) throws Exception { IrbClosureAttachment attachment = ServiceLocator.getIrbClosureAttachmentService() .findById(anOid); if (attachment != null) { IrbClosure currentIph = attachment.getIrbClosure(); if (CURascalGuardian.hasIrbRascal() || ServiceLocator.getIrbClosureService().getAccessibleByUser( getRascalUser(), currentIph ) ) { InputStream content = attachment.getBlob().getBinaryStream(); response.setContentType(attachment.getContentType()); response.setHeader("Content-Disposition", "attachment; filename=\"" + attachment.getFileName() + "\"" ); FileCopyUtils.copy(content, response.getOutputStream()); response.getOutputStream().flush(); response.getOutputStream().close(); return null; } } return new ModelAndView("uploadFailure"); } /** * TODO: DOCUMENT ME! * * @param dataBinder TODO: DOCUMENT ME! */ @InitBinder("attachment") public void initBinder(ServletRequestDataBinder dataBinder) { dataBinder.setAllowedFields( "oid", "documentIdentifier", "dateCreated", "fileName"); } /** * TODO: DOCUMENT ME! * * @param t TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ @ExceptionHandler(ResourceNotFoundException.class) public String notFoundException(Throwable t) { return "updateFailed"; } /** * TODO: DOCUMENT ME! * * @param attachment TODO: DOCUMENT ME! * @param result TODO: DOCUMENT ME! * @param model TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws IOException TODO: DOCUMENT ME! */ @RequestMapping( value = "edit", method = RequestMethod.PUT ) public String update(@ModelAttribute("attachment") @Valid IrbClosureAttachment attachment, BindingResult result, ModelMap model,@RequestParam("id") Long id ) { if (result.hasErrors()) { model.addAttribute("attachment", attachment); return "irb/closure/attachment/update"; } if (log.isDebugEnabled()) log.debug("get post here!" + attachment.getDocumentIdentifier()); IrbClosureAttachment att = ServiceLocator.getIrbClosureAttachmentService().findById(id); att.setDocumentIdentifier(attachment.getDocumentIdentifier()); ServiceLocator.getIrbClosureAttachmentService().save(att); model.addAttribute("attachment", att); return "windowCloser"; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 472 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 563 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 658 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 752 |
v.addElement(row); row = new Hashtable(); } // end while } else { while (res.next()) { row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString() ); // protocol oid row.put("ProtocolNumber", res.getString(2)); row.put("EventName", name); row.put("Title", (res.getString(4) == null) ? "" : res.getString(4)); // title row.put("PI", res.getString(3)); // PI row.put("EventOid", Integer.valueOf((new Float(res.getFloat(5))).intValue()).toString() ); // event oid row.put("StatusName", res.getString(6)); row.put("ApprovalOid", Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString() ); // ApprovalOid row.put("ApprovalCode", res.getString(8)); // approval code if (res.getDate(9) == null) { row.put("StatusDate", ""); } else { if (name.equals("AdverseEvent")) row.put("StatusDate", res.getString(9)); else row.put("StatusDate", CalendarTransformer.formatMMDDYYYY(res.getDate(9)) ); } v.addElement(row); row = new Hashtable(); } // end while } } catch (Exception e) { log.error("Exception while Running query", e); } return v; } /** * TODO: DOCUMENT ME! * * @param res TODO: DOCUMENT ME! * @param name TODO: DOCUMENT ME! * @param v TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static Vector buildCTSAApprovedResults(java.sql.ResultSet res, String name, Vector v) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentExternalView.java | 251 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentView.java | 242 |
} /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param aLocation TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getLinkWidgetFor(String aString, String aLocation) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } CUHtmlText text = new CUHtmlText(aString); text.setLink("'" + aLocation + "'"); text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** @see edu.columbia.rascal.presentation.irb.pages.IrbHtmlView#getProtocolGeneralHeaderHtml() */ @Override public String getProtocolGeneralHeaderHtml() { String s = ""; String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; IrbProtocolHeader ph = getProtocol().getLastProtocolHeader(); setProtocolHeader(ph); // String department = (getProtocolHeader().getOriginatingDepartment().trim().equals("") ? blank : // getProtocolHeader().getOriginatingDepartment()); String departmentCode = (getProtocolHeader().getOriginatingDepartment().trim().equals("") ? blank : getProtocolHeader().getOriginatingDepartment()); String department = ""; if (!departmentCode.equals(blank)) department = ServiceLocator.getRascalDepartmentService().findById(departmentCode) .getName() + " " + "(" + departmentCode + ")"; else department = blank; add(getSubTitle()); s += "<table width=\"100%\" border=\"1\" bgcolor=\"#CCCCCC\">"; s += "<tr> "; s += "<td colspan=\"2\"> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Protocol Number</font> </div>"; s += "</td> <td colspan=\"2\"> <font face=\"Comic Sans MS\" size=\"1\"> "; s += getPrefix() + ((getProtocolHeader().getIrbProtocol().getProtocolNumber() == null) ? "" : getProtocolHeader().getIrbProtocol().getProtocolNumber()); s += "</font></td> </tr> <tr> <td width=\"25%\"> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">You are</font></div>"; s += "</td> <td><font face=\"Comic Sans MS\" size=\"1\">"; s += getRascalUser().getUserFirstLastNameUni(); s += "</font></td> <td width=\"25%\"> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Department</font></div>"; s += "</td> <td width=\"25%\"> <font face=\"Comic Sans MS\" size=\"1\"> "; s += department + "</font></td> </tr> <tr> <td> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Principal Investigator</font></div></td><td>"; s += (((CUHtmlItem) getWidgetFor( ServiceLocator.getIrbProtocolHeaderService().getParticipantString( "Principal Investigator", getProtocolHeader() ) )).getHtml()); s += "</td> <td> "; s += "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Initiator</font></div>"; s += "</td> <td>"; if ((getUnanticipatedProblem() != null) && (getUnanticipatedProblem().getCreatedBy() != 0) |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS2590Servlet.java | 74 |
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS398Servlet.java | 75 |
public PtPHS2590Servlet() { bigFacelessLicenceKey(); java.lang.System.setProperty( "org.faceless.pdf.warning.UnknownCharacter", "OFF" ); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void bigFacelessLicenceKey() { // set the LicenseKey for the Big Faceless API PDF.setLicenseKey(CURascalPDFConstants.RASCALPDFKEY); } /** * used by PHS398 and PHS2590 the ending new line character will not be displayed change them to * be the " " * * @param aString todo: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @author Frances Wang */ public String changeEndingNewLineCharToSpace(String aString) { if (aString != null) { char charArray[] = aString.toCharArray(); int intCharArrayLength = charArray.length; int intCharCode = 0; for (int i = intCharArrayLength - 1; i >= 0; i--) { intCharCode = charArray[i]; if ((intCharCode == 13) || (intCharCode == 10)) { charArray[i] = 32; } else { break; } } return new String(charArray); } else { return ""; } } /** * @see edu.columbia.rascal.presentation.propTrak.servlets.PtAbstractServlet#doGet(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { try { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); nullify(); initializeObjects(); constructPDFForm(); renderPDF(); } catch (Exception e) { log.error(e); (new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw( getResponse() ); } } /** @see edu.columbia.rascal.presentation.propTrak.servlets.PtAbstractServlet#getPage() */ @Override public PtHtmlView getPage() { return null; } /** * TODO: DOCUMENT ME! * * @param value TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private String checkFieldLimit(String value) { if (value.length() > 55) { String newValue = value.substring(0, 50); return newValue; } return value; } /** * TODO: DOCUMENT ME! * * @throws IOException TODO: DOCUMENT ME! */ private void constructPDFForm() throws IOException { try { PDFStyle fontStyle = new PDFStyle(); fontStyle.setFont(new StandardFont(StandardFont.HELVETICA), 8); localPDFObject.getPage(0).setStyle(fontStyle); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 247 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 329 |
java.sql.ResultSet res = ServiceLocator.getCURascalJdbcAccessorService() .executeQuery(getAgendaInfoForSql(event)); while (res.next()) { row.put("AgendaOid", (((Integer.valueOf((new Float(res.getFloat(1))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(1))).intValue()) .toString()) ); // agendaoid row.put("AgendaNumber", (res.getString(2) == null) ? "" : res.getString(2)); if (res.getDate(3) == null) // date { row.put("MeetingDate", ""); } else { row.put("MeetingDate", res.getDate(3)); } row.put("EventType", (res.getString(4) == null) ? "" : res.getString(4)); row.put("EventTitle", (res.getString(5) == null) ? "" : res.getString(5)); row.put("EventAbstract", (res.getString(6) == null) ? "" : res.getString(6)); row.put("RecommendedStatus", (res.getString(7) == null) ? "" : res.getString(7) ); row.put("RecommendationText", (res.getString(8) == null) ? "" : res.getString(8) ); row.put("FollowUp", (res.getString(9) == null) ? "" : res.getString(9)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/pt/PtAttachmentsController.java | 293 |
edu/columbia/rascal/presentation/controller/pt/PtChangeProjectOfficerController.java | 127 |
edu/columbia/rascal/presentation/controller/pt/PtComplianceController.java | 575 |
edu/columbia/rascal/presentation/controller/pt/PtHazMatsController.java | 552 |
edu/columbia/rascal/presentation/controller/pt/PtNotesController.java | 126 |
edu/columbia/rascal/presentation/controller/pt/PtPersonnelController.java | 494 |
edu/columbia/rascal/presentation/controller/pt/PtPrintMenuController.java | 84 |
edu/columbia/rascal/presentation/controller/pt/PtSponsorController.java | 129 |
} private Map<String, Object> recordHeading(PtProposalHeader proposal, RascalUser currentUser) { Map<String, Object> recordHeading = new HashMap<String, Object>(); //You are recordHeading.put("currentUser", currentUser.getUserFirstLastNameUni()); if (proposal != null && proposal.getId() != null) { //Proposal TrakId recordHeading.put("trakId", "PT-" + proposal.getTrakId()); //Deadline recordHeading.put("deadlineDate", proposal.getDeadlineDate()); //Deadline Type recordHeading.put("deadlineType", proposal.getDeadlineType()); //Date Created recordHeading.put("createDate", proposal.getCreationDate()); //Sponsor PtAgencyAddress ptAgencyAddress = ptAgencyAddressService.getLastAgencyAddressForPtProposalHeader(proposal); if (ptAgencyAddress != null) recordHeading.put("sponsor", ptAgencyAddress.getAgencyName()); //Logged in by SPA List<PtTracking> statuses = ptTrackingService.findByPtProposalHeaderAndTrackingLocation(proposal, "Logged In"); if (statuses != null && statuses.size() > 0) recordHeading.put("loginDate", statuses.get(0).getDateTimeIn()); RascalUser ru; //Initiator PtAccessControl init = ptAccessControlService.getInitiatorForProposal(proposal); if (init != null) { ru = init.getRascalUser(); if (ru != null) recordHeading.put("initiator", ru.getUserFirstLastNameUni()); } //Principal Investigator PtAccessControl pi = proposal.getLeadPerson(); if (pi != null) { ru = pi.getRascalUser(); if (ru != null) recordHeading.put("leadInvestigator", ru.getUserFirstLastNameUni()); } } else { recordHeading.put("createDate", new Date()); recordHeading.put("trakId", "PT-XXXX9999"); recordHeading.put("initiator", currentUser.getUserFirstLastNameUni()); } return recordHeading; } private String checkApprovers(PtProposalHeader proposal) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 155 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 162 |
super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doPost in CURascalVAPServlet and CURascalServlet.</p> * * <p>hh 5/19/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * Insert the method's description here. Creation date: (6/30/2003 10:26:12 AM) * * @return insert the method's description here. */ public HipaaForm getHipaaForm() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingAdminView.java | 73 |
edu/columbia/rascal/presentation/user/views/RuSimpleTrainingEnrollmentAdminView.java | 80 |
RuICMExperimentalSurgeryTrainingAdminServlet.class.getName(), "POST" ) ); render(); } } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numbCells TODO: DOCUMENT ME! */ public void addAdminControlRows(CUHtmlTable aTable, int numbCells) { Vector<Object> columns = new Vector<Object>(numbCells); for (int c = 0; c < numbCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); CUHtmlEntryField aWidget; // rascal UNI if (getModify() != null) aWidget = new CUHtmlEntryField(KEY_RASCAL_UNI, "15", "15", getModify().getUserId()); else aWidget = new CUHtmlEntryField(KEY_RASCAL_UNI, "15", "15", ""); columns.setElementAt(aWidget, 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI")); aTable.getCell(row, 0).setColumnsToSpan(2); aTable.getCell(row, 2).setColumnsToSpan(2); row++; // a link to the pop up window for UNI Lookup columns.setElementAt(getUniLookup(), 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Lookup UNI")); aTable.getCell(row, 0).setColumnsToSpan(2); row++; // a button to the search servlet CUHtmlInput i2 = new CUHtmlInput(); i2.setName("Find Certification"); i2.setInputType("image"); i2.setImageSource("/images/popup.gif"); columns.setElementAt(i2.getHtmlTagLine(), 2); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Find Certification")); aTable.getCell(row, 0).setColumnsToSpan(2); row++; // a link to the pop up window for data entry CUHtmlImage i3 = new CUHtmlImage("/images/popup.gif"); i3.setAlt("Add Certification"); i3.setLink(RuICMExperimentalSurgeryTrainingAdminServlet.class.getName()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 1121 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5249 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5917 |
aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("') and f.whoRid ="); aBuffer.append(whoAmI.getId()); aBuffer.append(" and f.type = '"); aBuffer.append(reviewerType); aBuffer.append("' order by a.protocolNumber"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); // protocol number row.addElement(res.getString(3)); // identifier if (res.getDate(4) == null) // status date { row.addElement(""); } else { row.addElement(res.getDate(4)); } row.addElement(Integer.valueOf((new Float(res.getFloat(5))).intValue()).toString()); // protocolOid if (res.getDate(6) == null) // reviewed date { row.addElement(""); } else { row.addElement(res.getDate(6)); } row.addElement(Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString()); // reviwedOid row.addElement(res.getString(8)); // status Name row.addElement(""); // meetingdate results.addElement(row.clone()); row = new Vector(9); } // end while int len = results.size(); int oid = 0; java.sql.ResultSet res3 = null; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 79 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 99 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 97 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 84 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 76 |
getForm().add("<br>"); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 335 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIReportView.java | 642 |
); for (int i = 0; i < locations.size(); i++) { AppendixLocation aLocation = (AppendixLocation) locations.elementAt(i); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell cell; String textValue; textValue = aLocation.getLocationType(); if ((textValue != null) && (textValue.trim().length() > 0)) { textValue = APPENDIX_HTML_SPACE + textValue; } cell = new CUHtmlTableCell(); cell.add(getTableCellData(textValue)); cell.setAlign("left"); aRow.add(cell); textValue = aLocation.getBuilding(); if ((textValue != null) && (textValue.trim().length() > 0)) { textValue = APPENDIX_HTML_SPACE + textValue; } cell = new CUHtmlTableCell(); cell.add(getTableCellData(textValue)); cell.setAlign("left"); aRow.add(cell); textValue = aLocation.getFloor(); if ((textValue != null) && (textValue.trim().length() > 0)) { textValue = APPENDIX_HTML_SPACE + textValue; } cell = new CUHtmlTableCell(); cell.add(getTableCellData(textValue)); cell.setAlign("left"); aRow.add(cell); textValue = aLocation.getRoom(); if ((textValue != null) && (textValue.trim().length() > 0)) { textValue = APPENDIX_HTML_SPACE + textValue; } cell = new CUHtmlTableCell(); cell.add(getTableCellData(textValue)); cell.setAlign("left"); aRow.add(cell); aTable.add(aRow); } return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 396 |
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 678 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 280 |
aTitle1 = getTableColumnName("Pain"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendices aTitle = getTableColumnName("Appendices"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); header.setColumnsToSpan(6); // Appendix A aTitle1 = getTableColumnName("A"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix B aTitle1 = getTableColumnName("B"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix C aTitle1 = getTableColumnName("C"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix D aTitle1 = getTableColumnName("D"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix E aTitle1 = getTableColumnName("E"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix F aTitle1 = getTableColumnName("F"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Strong Radio Frequency aTitle1 = getTableColumnName("SRF"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // XRay aTitle1 = getTableColumnName("XRay"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param rowCount int * @param queueItem Hashtable */ public void setAnimalCareQueueViewTableDataRow(CUHtmlTable aTable, int rowCount, |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 105 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 240 |
setSortBy(sortColumn); String instruction = ""; if (!getDownloadable()) { addHeader(getBeginDate(), getEndDate(), deptCodeName); getForm().add(addDate()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), "PtDeptCenter") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Downloadable Form", getUrlToViewForDownload("A", getServletName(), "PtDeptCenter") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows, columns); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 92 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 91 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderSearchView.java | 75 |
getAForm().add("<BR> <BR>"); getAForm().add(buildSearchFields()); getAForm().add(getButtons()); add(getAForm()); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable buildSearchFields() { // set main table for page: Vector columns = new Vector(2); columns.addElement(""); columns.addElement(""); int row = 0; CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPading(0); aTable.setCellSpacing(0); columns.setElementAt(new CUHtmlEntryField("RascalUserUni", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Uni ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getRowLabelLeftFor("OR"), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("RascalUser", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Last Name ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 170 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderSearchView.java | 77 |
getAForm().add(buildSearchFields()); getAForm().add(getButtons()); add(getAForm()); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable buildSearchFields() { // set main table for page: Vector columns = new Vector(2); columns.addElement(""); columns.addElement(""); int row = 0; CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPading(0); aTable.setCellSpacing(0); columns.setElementAt(new CUHtmlEntryField("RascalUserUni", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Uni ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getRowLabelLeftFor("OR"), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("RascalUser", "20", "20", ""), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Last Name ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalRascalResultsDisplayView.java | 240 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalResultsDisplayView.java | 297 |
next.setLink(PtProposalRascalSearchPageServlet.class.getName() + "?startAt=" + startPos + "&&pageSize=" + pageSize ); next.setIsBold(true); next.setFontSize("+1"); next.setFontName(getDefaultFontName()); next.setFgColor("black"); // next.setAlignment("RIGHT"); pageControlRow.addElement(next); // Will be changed to add a button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } else { // Add the empty control to display the previous page next = new CUHtmlText(""); pageControlRow.addElement(next); // Will be changed to add a button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } // Add the space in the right end pageControlRow.addElement(""); // Add the pageControlRow to aTable aTable.addRowFor((Vector<Object>) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3264 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4445 |
aBuffer.append(") Order by e.statusDate "); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { // this row /* (1) protocol header oid * (2) protocolNumber (3) title (4) PI last name (5) statud date * (6) protocol oid (7) committee name (8) times in count (9) * originating department (10) exempt flag */ row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); // protocol number row.addElement(res.getString(3)); // protocol title row.addElement(res.getString(4)); // PI name last if (res.getDate(5) == null) // date submitted { row.addElement(""); } else { row.addElement(res.getDate(5)); } row.addElement(Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString()); // protocol parent row.addElement(res.getString(7)); // committee name row.addElement(res.getString(8)); // times in count row.addElement(res.getString(9)); // original dept code String exp = res.getString(11); row.addElement(((exp == null) || exp.equals("")) ? (((res.getString(10) != null) && res.getString(10).equals("Y")) ? "Exe" : "") : "Exp" ); // exempt marker results.addElement(row.clone()); row = new Vector(10); } // end while } catch (Exception e) { log.error("Exception while Running query", e); } return results; } /** * RASCAL (maggie) Creation date: (4/1/2003 11:13:52 PM) * * @return Vector of results */ public static Vector getPaperProtocolsForValidationQueue() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 89 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 86 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 218 |
getForm().add("<br><br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + IrbAgendaMainMenuServlet.class.getName() + "'" |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerForChairView.java | 112 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerView.java | 194 |
add(getForm()); // render(); protocolResults.clear(); adverseEventResults.clear(); closureResults.clear(); unanticipateResults.clear(); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param aName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getActionButtons(String aName) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("left"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", aName, "Reviewed"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); aCell.setVAlign("center"); } return aTable; } /** * TODO: DOCUMENT ME! * * @param isExpedited TODO: DOCUMENT ME! * @param isPending TODO: DOCUMENT ME! * @param aReviwerOid TODO: DOCUMENT ME! * @param parentObjectOid TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getActionButtons(boolean isExpedited, boolean isPending, String aReviwerOid, String parentObjectOid ) { CUHtmlTable aTable = getTable(1, 2); aTable.setBorderWidth(0); aTable.setAlign("left"); aTable.setWidth("30%"); if (getAllowEdit()) { if (isExpedited || isPending) { CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "Id" + aReviwerOid, "Approval", "irbReviewerApproveConfirm('ProtocolHeader','" + parentObjectOid + "','" + aReviwerOid + "')" ); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); if (isExpedited) { String message = "Are you sure you want to send this to Full Committee Review? Any expeditable declarations will be removed."; CUHtmlPushButton pb = new CUHtmlPushButton("SUBMIT", "Irb" + parentObjectOid, "Full Committee Review", "return(irbReviewerConfirm('" + message + "'));" ); aCell = aTable.getCell(0, 1); aCell.add(pb); } } else { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "Id" + parentObjectOid, "Reviewed" ); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); aCell.setVAlign("center"); } } return aTable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param aLocation TODO: DOCUMENT ME! * @param euOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getEuLinkWidgetFor(String aString, String aLocation, String euOid) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 284 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolPDFApprovalLetterView.java | 246 |
setHeight(oriHeight); setPDFPage(originalPage); lineSpace = style2.getFontLeading(); while (contentToken.hasMoreElements()) { nextTokenValue = contentToken.nextElement().toString(); overflow = addContentItem(getPDFPage(), nextTokenValue, getRightStarting(), getPageWidth() - getLeftPageMargin(), style2 ); if (overflow == 0) { // overflow = lineSpace; } if (previousPageNum == getPDFPage().getPageNumber()) { lastLineOverflow += overflow; setHeight(getHeight() - overflow); } else { lastLineOverflow = overflow; previousPageNum = getPDFPage().getPageNumber(); setPDFPage(getPDFObject().getPage(previousPageNum - 1)); setHeight(getPageHeight() - getTopPageMargin() - overflow); } } setHeight(oriHeight); // the last page setPDFPage(getPDFObject().getPage(getPDFObject().getNumberOfPages() - 1)); if (originalPage.equals(getPDFPage())) { // no overflow, label and content on the save page; lastLineOverflow = (lastLineOverflow < lastLabelOverflow) ? lastLabelOverflow : lastLineOverflow; // setHeight(getHeight() - lastLineOverflow-getPDFPage().POINTS/2); setHeight(getHeight() - lastLineOverflow - lineSpace); } else { if (labelPage.getPageNumber() == getPDFPage().getPageNumber()) { // labeloverflow fall on same page with lineoverflow lastLineOverflow = (lastLineOverflow < lastLabelOverflow) ? lastLabelOverflow : lastLineOverflow; } else if (labelPage.getPageNumber() < getPDFPage().getPageNumber()) { // lineoverflow more pages than label(labeloverflow) // lastLineOverflow=lastLineOverflow; } else if (labelPage.getPageNumber() > getPDFPage().getPageNumber()) { // labeloverflow more pages than content(lineoverflow) lastLineOverflow = lastLabelOverflow; } /* * int difference = getPDFPage().getPageNumber() - originalPage.getPageNumber(); * if(oriHeight <= getBottomPageMargin() + style.getFontLeading()){//just enough * difference = 0; }else{ difference = difference % 2 + 1; } * setHeight(getPageHeight()- getTopPageMargin()-lastLineOverflow - difference * * lineSpace - getPDFPage().POINTS/2); */ setHeight(getPageHeight() - getTopPageMargin() - lastLineOverflow - Math.max(style.getFontLeading(), style2.getFontLeading()) ); } // setPageFeature(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 841 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 932 |
aBuffer.append(" and stat.parentObjectName = '"); aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("' and stat.parentObjectOid = header.oid "); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); // current status Name if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2981 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3072 |
aBuffer.append(" and stat.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and stat.parentObjectOid = header.oid and header.modificationNumber > 0 "); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4154 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4246 |
aBuffer.append(" and stat.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append( "' and stat.parentObjectOid = header.oid and (header.protocolYear > 1 and header.modificationNumber = 0) " ); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5062 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5151 |
aBuffer.append(" and stat.parentObjectName = '"); aBuffer.append(IrbNameConstants.CLOSURE); aBuffer.append("' and stat.parentObjectOid = header.oid "); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.CLOSURE); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.CLOSURE); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.CLOSURE); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // eventOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5531 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5623 |
aBuffer.append(" and stat.parentObjectName = '"); aBuffer.append(IrbNameConstants.UNANTICIPATED_PROBLEM); aBuffer.append("' and stat.parentObjectOid = header.oid "); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.UNANTICIPATED_PROBLEM); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.UNANTICIPATED_PROBLEM); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.UNANTICIPATED_PROBLEM); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); // current status Name if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAcknowledgementServlet.java | 127 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixReleaseServlet.java | 120 |
) { return false; } } } return true; case 'F': return !((AppendixF) getAppendix()).getAppendixIsotopes().isEmpty() && !ServiceLocator.getAppendixLocationService().getAllByOwnerOidAndType( ((AppendixF) getAppendix()).getId(), "AppendixF" ).isEmpty(); case 'G': AppendixG apxG = (AppendixG) getAppendix(); // Isotopes if ( apxG.getAppendixIsotopes().isEmpty() ) return false; // Locations if ( ServiceLocator.getAppendixLocationService().getAllByOwnerOidAndType( apxG.getId(), "AppendixG" ).isEmpty()) return false; // If either irradiator is in use, check we have at least one exposure value if ( StringUtils.equalsIgnoreCase("Y", apxG.getIcrc()) || StringUtils.equalsIgnoreCase("Y", apxG.getVc11()) ) { boolean hasExposure = false; if ( apxG.getExposure1() != null && apxG.getExposure1() > 0 ) hasExposure = true; if ( !hasExposure && apxG.getExposure2() != null && apxG.getExposure2() > 0 ) hasExposure = true; if ( !hasExposure && apxG.getExposure3() != null && apxG.getExposure3() > 0 ) hasExposure = true; if ( !hasExposure && apxG.getExposure4() != null && apxG.getExposure4() > 0 ) hasExposure = true; if ( !hasExposure && apxG.getExposure5() != null && apxG.getExposure5() > 0 ) hasExposure = true; if ( !hasExposure && apxG.getExposure6() != null && apxG.getExposure6() > 0 ) hasExposure = true; if ( !hasExposure ) return false; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerForChairView.java | 72 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerView.java | 154 |
CUHtmlText txt1 = new CUHtmlText("Manage Reviewer Queue for " + reviewer); txt1.setIsBold(true); txt1.setFontSize("+1"); txt1.setFontName("Comic Sans MS"); txt1.setAlignment("CENTER"); getForm().add(txt1); getForm().add("<BR>"); getForm().add(getGenHelpFor("GENERAL INSTRUCTIONS ", "irb261.html")); getForm().add(getGenHelpFor("DISPLAY EXEMPT & EXPEDITABLE CATEGORIES ", "irb262.html")); getForm().add(getGenHelpFor("REVIEWER FORMS ", "irb264.html")); getForm().add("<BR>"); if (protocolResults.size() > 0) addQueueSection(protocolResults, IrbNameConstants.PROTOCOL); if (modificationResults.size() > 0) addQueueSection(modificationResults, IrbNameConstants.MODIFICATION); if (renewalResults.size() > 0) addQueueSection(renewalResults, IrbNameConstants.RENEWAL); if (adverseEventResults.size() > 0) addQueueSection(adverseEventResults, IrbNameConstants.ADVERSE_EVENT); if (closureResults.size() > 0) addQueueSection(closureResults, IrbNameConstants.CLOSURE); if (unanticipateResults.size() > 0) addQueueSection(unanticipateResults, IrbNameConstants.UNANTICIPATED_PROBLEM); getForm().add("<BR>"); getForm().add(getHiddenWidgetFor("action")); getForm().add(getHiddenWidgetFor("itemName")); getForm().add(getHiddenWidgetFor("itemOid")); getForm().add(getHiddenWidgetFor("reviewerOid")); getForm().add(getHiddenWidgetFor("onAgenda")); getForm().add(getHiddenWidgetFor("reviewedEventOid")); getForm().add(getHiddenWidgetFor("reviewedEventName")); getForm().add(getHiddenWidgetFor("reviewedProtNumber")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixOwnerHistoryDisplayView.java | 339 |
edu/columbia/rascal/presentation/appendix/pages/AppendixOwnerHistoryDisplayView.java | 416 |
public void setOwnerHistoryDisplayViewTableDataRow(CUHtmlTable aTable, Hashtable queueItem) { String aText; CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell; // ownerType aText = getOwnerTypeDisplay((String) queueItem.get(KEY_PARM_OWNER_TYPE)); aCell = new CUHtmlTableCell(getTableCellData(aText)); aCell.setVAlign("top"); aRow.add(aCell); // ownerNumber String ownerNumb = (String) queueItem.get(KEY_PARM_OWNER_NUMBER); String protocolOid = (String) queueItem.get(KEY_PARM_OWNER_OID); CUHtmlText protocolNumbTxt = getTableCellData(ownerNumb); String type = (String) queueItem.get(KEY_PARM_OWNER_TYPE); if (type.equals(ANIMAL_CARE_OWNER)) { protocolNumbTxt = getLinkToReviewAnimalCareProtocolDataSheet( ownerNumb, protocolOid ); } else if (type.equals(IRB_OWNER)) { protocolNumbTxt = getLinkToReviewIrbProtocolDataSheet(ownerNumb, protocolOid ); } else if (type.equals(PROPOSAL_TRACKING_OWNER)) { protocolNumbTxt = getLinkToReviewPtProposalCoverSheet(ownerNumb, ownerNumb.substring(3, 11) ); } aCell = new CUHtmlTableCell(); aCell.add(protocolNumbTxt); aCell.setAlign("top"); aCell.setWidth("25%"); aRow.add(aCell); // P.I. aText = (String) queueItem.get(KEY_PARM_OWNER_PI_NAME); aCell = new CUHtmlTableCell(getTableCellData(aText)); aCell.setVAlign("top"); aRow.add(aCell); // ehsNumber aText = (String) queueItem.get(KEY_PARM_TRACKING_EHS); if ((aText == null) || (aText.trim().length() < 1)) { aText = "not assigned"; } aCell = new CUHtmlTableCell(getTableCellData(aText)); aCell.setVAlign("top"); aRow.add(aCell); // blank space aCell = new CUHtmlTableCell(); aCell.add(""); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 214 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 297 |
Vector row = new Vector(colSize); for (int i = 0; i < colSize; i++) { row.addElement(""); } try { if (name.equals(IrbNameConstants.PROTOCOL_HEADER)) { while (res.next()) { row.setElementAt(String.valueOf(res.getInt(1)), 0); // protocol oid row.setElementAt(res.getString(2), 1); // protocol number // // REMOVED THE (Y1 M00) hh // 1//18/2003 if (res.getInt(4) > 0) row.setElementAt(IrbNameConstants.MODIFICATION, 2); else if ((res.getInt(3) > 1) && (res.getInt(4) == 0)) row.setElementAt(IrbNameConstants.RENEWAL, 2); else row.setElementAt(name, 2); row.setElementAt(res.getString(6), 3); // title row.setElementAt(res.getString(5), 4); // PI row.setElementAt(String.valueOf(res.getLong(7)), 5); // event oid if (res.getString(8) == null) { row.setElementAt("", 6); } else { row.setElementAt(res.getString(8), 6); } row.setElementAt(String.valueOf(res.getLong(9)), 7); // correspondence oid row.setElementAt(String.valueOf(res.getLong(10)), 8); // recipient oid row.setElementAt(res.getString(11), 9); // correspondence Author row.setElementAt(res.getString(12), 10); // current statusName |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 108 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 114 |
public void addHipaaObjectHeader() { } /** * This method was created in VisualAge. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! * @param addRows TODO: DOCUMENT ME! * @param height TODO: DOCUMENT ME! */ public void addSpacerRows(CUHtmlTable aTable, int numCells, int addRows, String height) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); for (int i = 0; i < addRows; i++) { aTable.addRowFor(columns); aTable.getCell(row, 0).setHeight(height); row++; } } /** * This method was created in VisualAge. * * @param aTable TODO: DOCUMENT ME! * @param rowCount TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! * @param addRows TODO: DOCUMENT ME! * @param height TODO: DOCUMENT ME! */ public void addSpacerRows(CUHtmlTable aTable, int rowCount, int numCells, int addRows, String height ) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } for (int i = 0; i < addRows; i++) { aTable.addRowFor(columns); aTable.getCell(rowCount, 0).setHeight(height); rowCount++; } } /** * This method was created in VisualAge. * * @param parmString protocolOid String * * @return String */ public String encodeUrlParam(String parmString) { String aString = ""; if (parmString != null) { aString = parmString.replace(' ', '+'); } return aString; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 2); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Save"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); aCell.setAlign("center"); } return aTable; } /** * This method was created in VisualAge. * * @param aValue TODO: DOCUMENT ME! * @param inputName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getBiggerMultilineTextWidgetFor(String aValue, String inputName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 373 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 490 |
next.setLink(IrbProtocolRascalSearchPageServlet.class.getName() + "?DisplayPage=NextPage" ); next.setIsBold(true); next.setFontSize("+1"); next.setFontName("Comic Sans MS"); next.setFgColor("black"); // next.setAlignment("RIGHT"); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } else { // Add the empty control to display the previous page next = new CUHtmlText(""); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } // Add the space in the right end pageControlRow.addElement(""); // Add the pageControlRow to aTable aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } private static final SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportApprovalStatusServlet.java | 59 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportEventStatusServlet.java | 59 |
results = IrbReportQuery.getIrbReportApprovalStatus(dateRangeWhere, selectedComm, eventList, statusList ); return results; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ @Override public CURascalHtmlView getPage() { String selectedCommittee = (String) getSession().getAttribute("selectedCommittee"); String beginDate = (String) getSession().getAttribute("beginDate"); String endDate = (String) getSession().getAttribute("endDate"); String eventList = (String) getSession().getAttribute("EventList"); Vector statusList = (Vector) getSession().getAttribute("StatusList"); Vector columns = new Vector(); // columns.addElement("EventName"); columns.addElement("ProtocolNumber"); columns.addElement("PI"); if (eventList.equals("Protocol") || eventList.equals("Renewal") || eventList.equals("Modification") ) columns.addElement("COI"); columns.addElement("Committee"); columns.addElement("StatusDate"); // columns.addElement("CurrentStatus"); CURascalHtmlView view = null; CUSortVector rows = new CUSortVector(getSelectedData(beginDate, endDate, selectedCommittee, eventList, statusList ) ); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); // sortBy = sortBy.replace('-',' ').trim(); rows.sortByColumn(sortBy); // view = new IrbMessageView("you selected Committee:"+selectedCommittee+ // "<BR>"+"Begin date "+beginDate+"<BR>"+"end date"+endDate); } else { sortBy = new String(); } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && !printableString.equals("")) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && !downloadableString.equals("")) { downloadable = downloadableString.equalsIgnoreCase("true"); } // if ((rows == null) || (rows.isEmpty())) { String link= // "parent.frames[1].location='edu.columbia.rascal.presentation.propTrak.servlets.PtLinkFrameServlet?trakId=XXXX9999'"; // String main= // "parent.frames[2].location='edu.columbia.rascal.presentation.propTrak.servlets.PtReportStatusDateRangeServlet'"; // view = new IrbMessageView("There are no proposals to view that fit your criteria.", // link, main); } if (getSession().getAttribute("column0") == null || // getSession().getAttribute("column0").equals("")) { view = new IrbMessageView("You // have not selected any criteria for this report."); } else { view = new IrbReportApprovalStatusView(rows, printable, sortBy, selectedCommittee, |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 361 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 349 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 364 |
next.setLink(ConsentProtocolSearchPageServlet.class.getName() + "?DisplayPage=NextPage" ); next.setIsBold(true); next.setFontSize("1"); next.setFontName("Comic Sans MS"); next.setFgColor("black"); // next.setAlignment("RIGHT"); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } else { // Add the empty control to display the previous page next = new CUHtmlText(""); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } // Add the space in the right end pageControlRow.addElement(""); // Add the pageControlRow to aTable aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaReportQueryFormat.java | 174 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaReportQueryFormat.java | 277 |
String status3 = ""; StringBuilder whereStatus = new StringBuilder(200); whereStatus.append(" AND ch.oid = status.hipaaHeader_Oid"); whereStatus.append(" AND status.oid = ("); whereStatus.append("SELECT max(oid)"); whereStatus.append(" FROM HipaaStatus"); whereStatus.append(" WHERE ch.oid = hipaaHeader_Oid"); String whereHipaaTitle = ""; String whereAccessorName = ""; String whereAccessorId = ""; StringBuilder dateBuffer = new StringBuilder(100); // select based on formType (as indicated by form title) CURascalBasicSearchParameter hipaaTitle = params.getHipaaTitle(); if (isNotEmpty(hipaaTitle)) { whereHipaaTitle = " AND hForm.templateName LIKE '" + hipaaTitle.getKeyword() + "%'"; } // select by current status CURascalBasicSearchParameter statusParm = params.getStatusParm(); if (isNotEmpty(statusParm) && !statusParm.getKeyword().equals("All")) { whereStatus.append(" AND '"); whereStatus.append(statusParm.getKeyword()); whereStatus.append("' = statusName"); // status3 = " HipaaStatus status3"; } whereStatus.append(')'); // select by name of a person with access CURascalBasicSearchParameter accessorName = params.getAccessControlUser(); if (isNotEmpty(accessorName)) { whereAccessorName = " AND (ch.oid = cac2.hipaaHeader_Oid AND cac2.rid IN (SELECT rid FROM RASCAL_USER WHERE rid = rid"; whereAccessorName = whereAccessorName + buildWhereClauseForSelection(accessorName, "name_last") + "))"; fromAccessControl2 = ", HipaaAccessControl cac2"; } // select by Uni of a person with access CURascalBasicSearchParameter accessorId = params.getAccessControlUserId(); if (isNotEmpty(accessorId)) { whereAccessorId = " AND (ch.oid = cac2.hipaaHeader_Oid AND cac2.rid = (SELECT rid FROM RASCAL_USER WHERE rid = rid"; whereAccessorId = whereAccessorId + buildWhereClauseForSelectionByExactCaseMatch(accessorId, "user_id") + "))"; fromAccessControl2 = ", HipaaAccessControl cac2"; } // select by submit date (match or date range) String fromDate = params.getFromDate(); String toDate = params.getToDate(); if (!isEmpty(fromDate) && !isEmpty(toDate)) { dateBuffer.append(" AND status2.oid = "); dateBuffer.append("(SELECT max(oid)"); dateBuffer.append(" FROM HipaaStatus"); dateBuffer.append(" WHERE ch.oid = hipaaHeader_Oid"); dateBuffer.append(" AND 'Submit' = statusName"); dateBuffer.append(" AND statusDate BETWEEN '"); dateBuffer.append(fromDate); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3175 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3663 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4350 |
aBuffer.append(" order by a.protocolNumber"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { // this row: /* (1)oid, * (2)protocolNumber(AAAA1234), (3)title, (4)PI last name (?), * (5)submit date, (6)protocol parent, (7)committee name, (8)status, * (9)exempt/expeditable */ row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); row.addElement(res.getString(4)); // protocol title row.addElement(res.getString(5)); if (res.getDate(7) == null) // date submitted { row.addElement(""); } else { row.addElement(res.getDate(7)); } row.addElement(Integer.valueOf((new Float(res.getFloat(8))).intValue()).toString()); // protocol parent row.addElement(res.getString(9)); // committee name row.addElement(res.getString(10)); // submit times in String exp = res.getString(11); row.addElement(((exp == null) || exp.equals("")) ? (((res.getString(3) != null) && res.getString(3).equals("Y")) ? "Exe" : "") : "Exp" ); // exempt marker results.addElement(row.clone()); row = new Vector(9); } // end while } catch (Exception e) { log.error("Exception while Running query", e); } return results; } /** * RASCAL (halayn) Creation date: (4/24/2002 12:53:52 PM) * * @param whoAmI TODO: DOCUMENT ME! * * @return Vector of results */ public static Vector getModificationsToLogIn(RascalUser whoAmI) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 374 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 373 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 490 |
next.setLink(HzAttestationSearchPageServlet.class.getName() + "?DisplayPage=NextPage"); next.setIsBold(true); next.setFontSize("+1"); next.setFontName("Comic Sans MS"); next.setFgColor("black"); // next.setAlignment("RIGHT"); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } else { // Add the empty control to display the previous page next = new CUHtmlText(""); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } // Add the space in the right end pageControlRow.addElement(""); // Add the pageControlRow to aTable aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 1287 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 1372 |
ResultSet res = acc.executeQuery(getQueryAnimalProtocolHistoryByDept(deptCode, from, to) ); while (res.next()) { // protocolNumber protocolNumber = res.getString(1); // returns int or 0 if SQL NULL // protocolYear protYear = res.getString(2); if ((protYear == null) || protYear.trim().equals("")) protYear = "1"; // modificationNumber modNum = res.getString(3); if ((modNum == null) || modNum.trim().equals("")) modNum = "00"; // protocolNumberYrMod = "AC-" + protocolNumber+"(Y"+protYear+" M"+modNum+")"; protocolNumberYrMod = protocolNumber + "(Y" + protYear + " M" + modNum + ")"; row.addElement(protocolNumberYrMod); // oid of a IacucProtocolHeader row.addElement(Long.toString(res.getLong(4))); // dateApproved if (res.getDate(5) == null) { row.addElement(""); } else { row.addElement(res.getDate(5)); } // effectiveDate if (res.getDate(6) == null) { row.addElement(""); } else { row.addElement(res.getDate(6)); } // expirationDate // Add a Date instead of a String to be sorted. if (res.getDate(7) == null) { row.addElement(""); } else { row.addElement(res.getDate(7)); } // P.I. - lastName, firstName (uni) row.addElement(buildLastFirstName(res.getString(8), res.getString(9)) + " (" + res.getString(10) + ")" ); results.addElement(row.clone()); row = new Vector(6); } // end while } catch (Exception e) { log.error(e); } return results; } /** * getSelectedDataHumanProtocolsHistoryByUni. * * @param uni String * @param from String * @param to String * * @return Vector */ public Vector getSelectedDataAnimalProtocolsHistoryByUni(String uni, String from, String to) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 514 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalServlet.java | 327 |
if (parentObjectName.equals(IrbNameConstants.PROTOCOL_HEADER)) { ph = ServiceLocator.getIrbProtocolService().getByProtocolNumber(corr .getProtocolNumber(), getUser() ).getLastProtocolHeader(); pi = ServiceLocator.getRascalUserService().findById(ph.getPI().getRid()); title = "\n\nTitle: " + ph.getTitle(); abbrebiatedTitle = ph.getAbbreviatedTitle(); piName = "\nPI: " + pi.getNameFirst() + " " + pi.getNameLast(); } else { IrbProtocol prot = ServiceLocator.getIrbProtocolService().getByProtocolNumber( corr.getProtocolNumber(), getUser() ); ph = ((ServiceLocator.getIrbProtocolService().getLastApprovedProtocolHeader(prot) == null) ? ServiceLocator.getIrbProtocolService().getLastExpiredProtocolHeader(prot) : ServiceLocator.getIrbProtocolService().getLastApprovedProtocolHeader(prot)); pi = ServiceLocator.getRascalUserService().findById(ph.getPI().getRid()); title = "\n\nTitle: " + ph.getTitle(); abbrebiatedTitle = ph == null? "" : ph.getAbbreviatedTitle(); piName = "\nPI: " + pi.getNameFirst() + " " + pi.getNameLast(); } IrbStatusEmailMessage email = null; // sent email //Only APPROVED Emails are sent now. See https://bugzilla.cc.columbia.edu/show_bug.cgi?id=13509 if (statusName.equalsIgnoreCase(IrbStatusConstants.APPROVE) && !(parentObjectName.startsWith(IrbNameConstants.CLOSURE))) { email = new IrbStatusEmailMessage(parentObjectName, protNum, abbrebiatedTitle, statusName, toName, toAddress, RascalProperties.getProperty("DbUserId"), title, piName ); try { sender.openConnection(); sender.sendEmail(email); } catch (IOException e2) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 74 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 71 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 78 |
columns.addElement("Abbreviated_Title"); if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1029 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1256 |
} /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * <p>This method was created in VisualAge.</p> * * @param aLabel TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getRowLabelFor(String aLabel) { String preparedString = aLabel.trim(); if (!preparedString.endsWith(" ") && !preparedString.endsWith(" ")) { preparedString = preparedString + " "; } CUHtmlText txt = new CUHtmlText(preparedString); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); String preparedString = aLabel.trim(); if (!preparedString.endsWith(" ") && !preparedString.endsWith(" ")) { preparedString = preparedString + " "; } CUHtmlText txt = new CUHtmlText(preparedString); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelLeftFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName("Comic Sans MS"); txt.setFontSize("1"); txt.setIsBold(true); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 255 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 255 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 278 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 380 |
t.addRowFor(columns); elements = new Vector(); int rowSize = rows.size(); for (int n = 0; n < rowSize; n++) { Hashtable currentRow = (Hashtable) rows.elementAt(n); String name = (String) currentRow.get("EventName"); if (name.equals("Protocol") || name.equals("Modification") || name.equals("Renewal") || name.equals("AdverseEvent") || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM) || name.equals("Closure") ) { if (!(getPrintable())) { if (name.equals("Protocol") || name.equals("Modification") || name.equals("Renewal") ) { elements.addElement(getObjectLinkWidgetFor(name, (String) currentRow.get("EventOid"), "ProtocolHeader", (String) currentRow.get("ProtocolOid") ) ); // Event } else { elements.addElement(getObjectLinkWidgetFor(name, (String) currentRow.get("EventOid"), name, (String) currentRow.get("ProtocolOid") ) ); } elements.addElement(getProtocolLinkWidgetFor( (String) currentRow.get("ProtocolNumber"), (String) currentRow.get("ProtocolOid") ) ); // Protocol Number } else { elements.addElement(getWidgetFor((String) currentRow.get("EventName"))); elements.addElement(getWidgetFor((String) currentRow.get("ProtocolNumber"))); } } elements.addElement(getWidgetFor((String) currentRow.get("Committee"))); // Committee |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceCreateServlet.java | 145 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceCreateServlet.java | 229 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceRespondServlet.java | 403 |
correspondence.getIrbCorrespondenceRecipients().add(recipient2); sentEmail(leadPerson, correspondence); } //Send to Study Coordinator Vector<IrbStaff> studyCoordis = header.getStudyCoordinators(); int studyCoorSize = studyCoordis.size(); for (int i = 0; i < studyCoorSize; i++) { IrbStaff aStudyCor = studyCoordis.elementAt(i); if (!aStudyCor.getRid().equals(header.getCreatedBy()) && !aStudyCor.getRid().equals(Integer.valueOf(leadPerson)) ) { recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(aStudyCor.getRid()); recipient.setProtocolRole("Study Coordinator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(aStudyCor.getRid(), correspondence); } } //Send to Regulatory Coordinator Vector<IrbStaff> rcCoordis = header.getRegulatoryCoordinators(); int rcCoorSize = rcCoordis.size(); for (int i = 0; i < rcCoorSize; i++) { IrbStaff aRcCor = rcCoordis.elementAt(i); if ((!aRcCor.getRid().equals(header.getCreatedBy())) && (!aRcCor.getRid().equals(leadPerson)) ) { recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(aRcCor.getRid()); recipient.setProtocolRole("Regulatory Coordinator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(aRcCor.getRid(), correspondence); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueAssignedToMeetingView.java | 259 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueSubmittedView.java | 315 |
} /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setQueueTableHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableCell aCell; int cellNum = 0; // headerNumber aTitle = getTableColumnName("HIPAA<br>Number", "left"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; // HIPAA Title aTitle = getTableColumnName("Form Template", "left"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; /* * // Form Type aTitle= getTableColumnName("Form<br>Type", "left"); aCell = * aTable.getCell(0,cellNum); aCell.setIsHeader(true); aCell.add(aTitle); * aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; */ // IRB Protocol Number aTitle = getTableColumnName("IRB Protocol<br>Number", "left"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; // HIPAA history aTitle = getTableColumnName("History", "Center"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; // View HIPAA Notes aTitle = getTableColumnName("View<br>HIPAA<br>Notes", "center"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; // Add HIPAA Notes aTitle = getTableColumnName("Add<br>HIPAA<br>Notes", "center"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 74 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 76 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 84 |
addHeader(getBeginDate(), getEndDate()); getForm().add(addDate()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows, columns); if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/pages/HzAppendixCreatedView.java | 286 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixNewView.java | 271 |
} /** @see edu.columbia.rascal.presentation.lab.pages.HzHtmlView#addHzAppendixHeader() */ @Override public void addHzAppendixHeader() { setSubTitle("General Information"); addFields(); getForm().add(getHiddenWidgetFor(KEY_PARM_PROTOCOL_ID, getProtocol().getId().toString() ) ); } /** * TODO: DOCUMENT ME! * * @param aCell TODO: DOCUMENT ME! */ public void formatCell(CUHtmlTableCell aCell) { aCell.setVAlign("TOP"); aCell.setAlign("RIGHT"); } /** * TODO: DOCUMENT ME! * * @param aCell TODO: DOCUMENT ME! */ public void formatDataCell(CUHtmlTableCell aCell) { aCell.setVAlign("TOP"); aCell.setAlign("LEFT"); } /** * TODO: DOCUMENT ME! * * @param aType TODO: DOCUMENT ME! * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getButtonWidgetFor(String aType, String aName, String aValue) { CUHtmlPushButton pb = new CUHtmlPushButton(aType, aName, aValue); return pb; } /** * TODO: DOCUMENT ME! * * @param aType TODO: DOCUMENT ME! * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * @param onClickValue TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getButtonWidgetFor(String aType, String aName, String aValue, String onClickValue) { CUHtmlPushButton pb = new CUHtmlPushButton(aType, aName, aValue, onClickValue ); return pb; } /** * getDeptName. * * @return String */ /** @see edu.columbia.rascal.presentation.lab.pages.HzAppendixCreationView#getDeptName() */ @Override public String getDeptName() { String name = "Department Not Specified"; try { name = ServiceLocator.getRascalDepartmentService().getRascalDepartmentByCode( getDeptNum() ).getName(); } catch (Exception e) { name = "Department Lookup:"; } return name; } /** @see edu.columbia.rascal.presentation.lab.pages.HzAppendixCreationView#getDeptNum() */ @Override public String getDeptNum() { return deptNumber; } /** * TODO: DOCUMENT ME! * * @param someText TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getTextWidgetFor(String someText) { CUHtmlText t = new CUHtmlText(someText); t.setFontSize("1"); t.setFontName("Comic Sans MS"); return t; } /** * TODO: DOCUMENT ME! * * @param aString TODO: DOCUMENT ME! * @param size TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getWidgetFor(String aString, String size) { CUHtmlText text = new CUHtmlText(aString); if (aString.lastIndexOf("http://") >= 0) { text.setLink(aString); } text.setFontSize(size); return text; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaResultsDisplayView.java | 359 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 374 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 373 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 490 |
next.setLink(location + "?DisplayPage=NextPage"); next.setIsBold(true); next.setFontSize("+1"); next.setFontName("Comic Sans MS"); next.setFgColor("black"); // next.setAlignment("RIGHT"); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } else { // Add the empty control to display the previous page next = new CUHtmlText(""); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } // Add the space in the right end pageControlRow.addElement(""); // Add the pageControlRow to aTable aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinuteHistoryDateRangeServlet.java | 49 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportHistoryDateRangeServlet.java | 59 |
return new IrbAgendaMessageView("You are not authorized to view minutes history."); } } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void submit() { String endDate = null; if (((endDate = getRequestParameter("endDate")) != null) && !endDate.trim().equals("")) { String range = getRequestParameter("range"); Calendar startDay = CalendarTransformer.toCalendar(endDate); Calendar oneMoreDay = CalendarTransformer.toCalendar(endDate); oneMoreDay.add(Calendar.DATE, 1); if (range.startsWith("Year")) { startDay.add(Calendar.MONTH, -12); } else if (range.startsWith("Quarter")) { startDay.add(Calendar.MONTH, -3); } else if (range.startsWith("Month")) { startDay.add(Calendar.MONTH, -1); } else if (range.startsWith("Week")) { startDay.add(Calendar.DATE, -7); } else if (range.startsWith("Day")) { startDay.add(Calendar.DATE, -1); } startDay.setLenient(true); String beginDate = CalendarTransformer.toString(startDay); String endingDate = CalendarTransformer.toString(oneMoreDay); if (range.startsWith("to Date")) { getSession().setAttribute("beginDate", ""); getSession().setAttribute("endDate", CalendarTransformer.toString(Calendar.getInstance()) ); } else { getSession().setAttribute("beginDate", beginDate); getSession().setAttribute("endDate", endingDate); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixASafetyOfficerApprovalView.java | 110 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 111 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 110 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 113 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 112 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 112 |
addSpacerRows(aTable, 1, 2, "8"); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(REC_ANIMAL_HOUSING, defaultFontSize, true, false ), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_HOUSE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_2_RecommendedHousing("2"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } String ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(ppeLabel, defaultFontSize, true, false), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_PPE_REF_ID).iterator(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormLayoutView.java | 400 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormLayoutView.java | 403 |
HipaaQuestionLookup formElement ) { long questionOid = formElement.getId(); long parentOid = formElement.getParentQuestionOid(); CUHtmlTableCell cell; Object aWidget; // Parent Question or Question with no parent aWidget = getEditWidgetFor("sigSequenceNum" + rowCount, formElement.getSequenceNo() + "", "2", "2" ); ((CUHtmlEntryField) aWidget).setOnKeyPress("return restrictFieldToNumbers(event)"); cell = aTable.getCell(rowCount, 0); cell.add(aWidget); cell.setAlign("center"); // Child Question aWidget = "<img src=\"/images/blank.gif\" border=\"0\">"; cell = aTable.getCell(rowCount, 1); cell.add(aWidget); cell.setAlign("center"); // Question Text String questionText = formElement.getQuestionText(); if (questionText.length() > 200) { questionText = questionText.substring(0, 199); } cell = aTable.getCell(rowCount, 2); cell.add(getRowLabelLeftFor(questionText)); cell.setAlign("left"); // Question Oid String aFormOid = formElement.getId() + ""; getForm().add(getHiddenWidgetFor("sigHiddenOid" + rowCount, aFormOid)); } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setSignatureTableHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableCell header; String titles[] = { "Sequence", "<img src=\"/images/blank.gif\" border=\"0\">", "Signature Text" }; int len = titles.length; for (int i = 0; i < len; i++) { aTitle = new CUHtmlText(titles[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("center"); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceCreateServlet.java | 230 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceRespondServlet.java | 285 |
sentEmail(leadPerson, correspondence); } // study coordinator Vector<IrbStaff> studyCoordis = header.getStudyCoordinators(); int studyCoorSize = studyCoordis.size(); for (int i = 0; i < studyCoorSize; i++) { IrbStaff aStudyCor = studyCoordis.elementAt(i); if (!aStudyCor.getRid().equals(header.getCreatedBy()) && !aStudyCor.getRid().equals(Integer.valueOf(leadPerson)) ) { recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(aStudyCor.getRid()); // PI recipient.setProtocolRole("Study Coordinator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(aStudyCor.getRid(), correspondence); } } // Regulatory Coordinator Vector<IrbStaff> rcCoordis = header.getRegulatoryCoordinators(); int rcCoorSize = rcCoordis.size(); for (int i = 0; i < rcCoorSize; i++) { IrbStaff aRcCor = rcCoordis.elementAt(i); if ((!aRcCor.getRid().equals(header.getCreatedBy())) && (!aRcCor.getRid().equals(leadPerson)) ) { recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(aRcCor.getRid()); // PI recipient.setProtocolRole("Regulatory Coordinator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(aRcCor.getRid(), correspondence); } } } else { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 79 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 131 |
if(columns.contains("FinalizedDate")){row.addElement((res[8] == null)?"":(Date)res[8]);i++;} if(columns.contains("POSignOffDate")){row.addElement((res[9] == null)?"":(Date)res[9]);i++;} if(columns.contains("Title")){row.addElement(res[14]);i++;} if(columns.contains("AbbreviatedTitle")){row.addElement(res[10]);i++;} if(columns.contains("IndirectCost")){row.addElement((res[15] == null)?"":((BigDecimal)res[15]).intValue());i++;} if(columns.contains("DirectCost")){row.addElement((res[16] == null)?"":((BigDecimal)res[16]).intValue());i++;} if(columns.contains("TotalMoneyReq.")){row.addElement((res[12] == null)?"":((BigDecimal)res[12]).intValue());i++;} if(columns.contains("ExpenseType")){row.addElement(res[17]);i++;} if(columns.contains("ForeignInvolvementCountry")){row.addElement(res[18]);i++;} results.addElement(row.clone()); row = new Vector(i); } return results; } /** * TODO: DOCUMENT ME! * * @param from TODO: DOCUMENT ME! * @param to TODO: DOCUMENT ME! * @param deptNumber TODO: DOCUMENT ME! * @param columns TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ @SuppressWarnings({ "unchecked", "rawtypes", "deprecation" }) |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionForTestLocationView.java | 150 |
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionView.java | 220 |
} /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public final CUHtmlForm getAForm() { return aForm; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlList getDeptNameWidget() { Vector<Object> list = new Vector<Object>(); RascalUser aUser = getRascalUser(); RascalDepartment dept = null; String deptString; list.addElement(" "); if (CURascalGuardian.hasTcAdministration() || CURascalGuardian.isAuthorized(CURascalGuardianConstants.TC_ACCESS_ALL_DEPT)) { Vector<RascalDepartment> allDepts = new Vector<RascalDepartment>( ServiceLocator.getRascalDepartmentService().getListOfAllPossibleDepartments() ); int allDeptsLen = allDepts.size(); for (int k = 0; k < allDeptsLen; k++) { deptString = ""; dept = allDepts.elementAt(k); if (dept != null) deptString = dept.getId() + " - " + dept.getName(); list.addElement(deptString); } } else { Vector<RuAuthorizedDepartment> authDepts = aUser.getAuthorizedDepartmentsFor( getRascalUser().getId(), "Tc" ); RuAuthorizedDepartment authDept; String code = null; int authDeptsLen = authDepts.size(); for (int k = 0; k < authDeptsLen; k++) { deptString = ""; authDept = authDepts.elementAt(k); if (authDept != null) code = authDept.getDeptCode(); if (code != null) dept = ServiceLocator.getRascalDepartmentService().getRascalDepartmentByCode( code ); if (dept != null) deptString = dept.getId() + " - " + dept.getName(); list.addElement(deptString); } } return getMultiSelectWidgetFor(list, " ", "deptCode"); } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getTestLocationWidget() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 849 |
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 940 |
public CUHtmlText getLinkToEditAppendix(String text, String appendixOid, String appendixType) { String servletName = null; switch (appendixType.charAt(0)) { case 'A': servletName = AppendixAServlet.class.getName(); break; case 'B': servletName = AppendixBServlet.class.getName(); break; case 'C': servletName = AppendixCServlet.class.getName(); break; case 'D': servletName = AppendixDServlet.class.getName(); break; case 'E': servletName = AppendixEServlet.class.getName(); break; case 'F': servletName = AppendixFServlet.class.getName(); break; case 'G': servletName = AppendixGServlet.class.getName(); break; case 'H': break; case 'I': servletName = AppendixIServlet.class.getName(); break; default: return null; } StringBuffer aBuffer = new StringBuffer(200); if ( StringUtils.equals(appendixType, "H") ) { aBuffer.append("/hazMats/radiationSafety/"); aBuffer.append(appendixOid); aBuffer.append("/study/general"); CUHtmlText htmlText; htmlText = new CUHtmlText(text); htmlText.setLink("Javascript:parent.location='" + aBuffer.toString() + "';"); htmlText.setFontSize("-2"); htmlText.setIsBold(false); htmlText.setFontName(getDefaultFontName()); return htmlText; } else { aBuffer.append(CURascalStoreParmsToSessionAndRedirectServlet.class.getName()); aBuffer.append("?p1Nm="); aBuffer.append(KEY_PARM_APPENDIX_OID); aBuffer.append("&&p1Val="); aBuffer.append(appendixOid); aBuffer.append("&&p2Nm="); aBuffer.append(KEY_PARM_APPENDIX_TYPE); aBuffer.append("&&p2Val="); aBuffer.append(appendixType); aBuffer.append("&&targetServlet="); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2983 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4250 |
aBuffer.append("' and stat.parentObjectOid = header.oid and header.modificationNumber > 0 "); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3074 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3468 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4158 |
aBuffer.append("' and stat.parentObjectOid = header.oid and header.modificationNumber > 0 "); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 247 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 241 |
); getForm().add("</div>"); } /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToViewReportForDownload(String queueName) { return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setPrintable(boolean aValue) { printable = aValue; } /** * setSortBy. * * @param aValue TODO: DOCUMENT ME! */ public void setSortBy(String aValue) { sortBy = aValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceRespondServlet.java | 285 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceRespondServlet.java | 404 |
sentEmail(initiator, correspondence); } //Send to Study Coordinator Vector<IrbStaff> studyCoordis = header.getStudyCoordinators(); int studyCoorSize = studyCoordis.size(); for (int i = 0; i < studyCoorSize; i++) { IrbStaff aStudyCor = studyCoordis.elementAt(i); if (!aStudyCor.getRid().equals(header.getCreatedBy()) && !aStudyCor.getRid().equals(Integer.valueOf(leadPerson)) ) { recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(aStudyCor.getRid()); recipient.setProtocolRole("Study Coordinator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(aStudyCor.getRid(), correspondence); } } //Send to Regulatory Coordinator Vector<IrbStaff> rcCoordis = header.getRegulatoryCoordinators(); int rcCoorSize = rcCoordis.size(); for (int i = 0; i < rcCoorSize; i++) { IrbStaff aRcCor = rcCoordis.elementAt(i); if ((!aRcCor.getRid().equals(header.getCreatedBy())) && (!aRcCor.getRid().equals(leadPerson)) ) { recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(aRcCor.getRid()); recipient.setProtocolRole("Regulatory Coordinator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(aRcCor.getRid(), correspondence); } } } else { |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 366 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalProposalResultsDisplayView.java | 319 |
); next.setIsBold(true); next.setFontSize("1"); next.setFontName("Comic Sans MS"); next.setFgColor("black"); // next.setAlignment("RIGHT"); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } else { // Add the empty control to display the previous page next = new CUHtmlText(""); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } // Add the space in the right end pageControlRow.addElement(""); // Add the pageControlRow to aTable aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptView.java | 94 |
edu/columbia/rascal/presentation/tc/views/TCReportTestRequirementExceptionView.java | 87 |
if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); } if (!(getPrintable())) { aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames( getKeywordListForColumns(new Vector<Object>()), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 363 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 349 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalProposalResultsDisplayView.java | 319 |
); next.setIsBold(true); next.setFontSize("1"); next.setFontName("Comic Sans MS"); next.setFgColor("black"); // next.setAlignment("RIGHT"); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } else { // Add the empty control to display the previous page next = new CUHtmlText(""); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } // Add the space in the right end pageControlRow.addElement(""); // Add the pageControlRow to aTable aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceCreateServlet.java | 146 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceRespondServlet.java | 285 |
sentEmail(leadPerson, correspondence); } //Send to Study Coordinator Vector<IrbStaff> studyCoordis = header.getStudyCoordinators(); int studyCoorSize = studyCoordis.size(); for (int i = 0; i < studyCoorSize; i++) { IrbStaff aStudyCor = studyCoordis.elementAt(i); if (!aStudyCor.getRid().equals(header.getCreatedBy()) && !aStudyCor.getRid().equals(Integer.valueOf(leadPerson)) ) { recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(aStudyCor.getRid()); recipient.setProtocolRole("Study Coordinator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(aStudyCor.getRid(), correspondence); } } //Send to Regulatory Coordinator Vector<IrbStaff> rcCoordis = header.getRegulatoryCoordinators(); int rcCoorSize = rcCoordis.size(); for (int i = 0; i < rcCoorSize; i++) { IrbStaff aRcCor = rcCoordis.elementAt(i); if ((!aRcCor.getRid().equals(header.getCreatedBy())) && (!aRcCor.getRid().equals(leadPerson)) ) { recipient = new IrbCorrespondenceRecipient(); recipient.setIrbCorrespondence(correspondence); recipient.setRecipientRid(aRcCor.getRid()); recipient.setProtocolRole("Regulatory Coordinator"); ServiceLocator.getIrbCorrespondenceRecipientService().save(recipient); correspondence.getIrbCorrespondenceRecipients().add(recipient); sentEmail(aRcCor.getRid(), correspondence); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAServlet.java | 147 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIServlet.java | 122 |
anAppendix = (AppendixA) getAppendix(); } // the logic to handle the creation of invitro header. see // getRedirectUrl() for the deletion of invitro header if (isInvitroChecked()) { /* Retreives if Tracking object exists * else a new one is created and linked * here itself */ AppendixTracking aTracker = getInvitroAppendixTrackingOidFor(anAppendix); } saveAppendixValues(anAppendix); boolean hasAccessForCreator = false; Vector res = ServiceLocator.getAppendixAccessControlService().getAllByAppendixIdAndType( anAppendix.getId(), anAppendix.getAppendixType() ); int siz = res.size(); for (int i = 0; i < siz; i++) { AppendixAccessControl ac = (AppendixAccessControl) res.elementAt(i); if ((ac.getRid() != null) && (ac.getRid().intValue() == anAppendix.getCreatedBy().intValue()) ) { hasAccessForCreator = true; break; } } // make sure there is an 'edit' access control for creator if (!hasAccessForCreator) { AppendixAccessControl newAc = new AppendixAccessControl(anAppendix.getId(), anAppendix.getAppendixType() ); ServiceLocator.getAppendixAccessControlService().save(newAc); newAc.setRid(anAppendix.getCreatedBy()); newAc.setEditView(ACCESS_EDIT); ServiceLocator.getAppendixAccessControlService().save(newAc); // anAppendix.getAllAccessControlEntries().addElement(newAc); } } catch (Exception e) { log.error("Exception creating appendix.", e); } } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override protected String getRedirectUrl() { // if the check box for invitro is unchecked, show warning message // about deleting the invitro header if (!isInvitroChecked()) { String invitroAppendixTrackerOid = null; invitroAppendixTrackerOid = retreiveInvitroAppendixTrackingOidFor( getAppendix() ); if (!isEmpty(invitroAppendixTrackerOid)) { return AppendixMessageServlet.class.getName() + "?" + KEY_PARM_INVITRO_DELETE_REQUEST + "=true&&" + KEY_PARM_INVITRO_APPDX_TRACKER_OID + "=" + invitroAppendixTrackerOid + "&&" + KEY_PARM_INVITRO_APPDX_TYPE + "=" + getAppendix().getAppendixType(); } } return AppendixAServlet.class.getName(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixIContrSubsEntryServlet.java | 66 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixLocationEntryServlet.java | 94 |
} /** * This method was created in VisualAge. @2002 Copyright Columbia University - RASCAL. All * Rights Reserved. */ public void saveLocationValues() { String building = ""; String floor = null; String room = null; String type = null; String ownerOid = getRequestParameter("OwnerOid"); String ownerType = getRequestParameter("OwnerType"); floor = getRequestParameter("floor"); room = getRequestParameter("room"); type = getRequestParameter("locationType"); // translate 2 display values to their stored values if (type.equals(LOCATION_TYPE_LAB_USE_DISPLAY)) { type = LOCATION_TYPE_LAB_USE; } else if (type.equals(LOCATION_TYPE_SUBJECT_USE_DISPLAY)) { type = LOCATION_TYPE_SUBJECT_USE; } building = getRequestParameter("otherBuilding"); if ((building == null) || isEmpty(building)) { building = getRequestParameter("appendixBuilding"); if (building.contains("~")) { building = ""; } } try { AppendixLocation locus = getCurrentLocation(); if (locus == null) { if ((ownerOid != null) && (ownerType != null)) { locus = new AppendixLocation(Long.parseLong(ownerOid), ownerType); ServiceLocator.getAppendixLocationService().save(locus); } else { AppendixMessageView aPage = new AppendixMessageView( "Location owner not specified." ); aPage.draw(getResponse()); return; } } locus = ServiceLocator.getAppendixLocationService().save(locus); locus.setLocationType(type); locus.setBuilding(building); locus.setFloor(floor); locus.setRoom(room); ServiceLocator.getAppendixLocationService().save(locus); } catch (Exception e) { log.error("Exception updating appendix location.", e); } } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void submit() { setIsEdit(true); String ownerId = getRequestParameter("ownerId"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 834 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 1311 |
String key = (String) e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * This method was created in VisualAge. Sets the mainTitle of this page. If aMainTitle is a * String, use the default mainTitle settings. if aMainTitle is CUHtmlText, override the default * mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { if (aNote instanceof CUHtmlText) { note = (CUHtmlText) aNote; } else { if (aNote instanceof String) { CUHtmlMultiLineText aText = new CUHtmlMultiLineText((String) aNote); aText.setFontName(getDefaultFontName()); aText.setMaxChar(600); aText.setIsBold(false); aText.setIsItalic(true); aText.addBreaks(3); note = aText; } } } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue edu.columbia.rascal.presentation.user.business.objects.RascalUser */ public void setRascalUser(RascalUser newValue) { this.rascalUser = newValue; } /** * This method was created in VisualAge. Sets the subtitle of this page. If aSubTitle is a * String, use the default subtitle settings. if aSubTitle is CUHtmlText, override the default * title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaEventSearchServlet.java | 126 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaSearchServlet.java | 158 |
String query; String pageInfoKeyword = (String) keywords.get("IrbAgendaSearchDisplayPageInfo"); String pagesCacheKeyword = (String) keywords.get("IrbAgendaSearchDisplayPagesCached"); try { srchParams = buildSearchParams(this); getSession().setAttribute("searchParameters", srchParams); } catch (edu.columbia.rascal.presentation.common.parser.CURascalParseException e) { handleException(e); return; } if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbAgendaDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new IrbAgendaResultsDisplayView(pageInfo.getDisplayPage(), pageInfo.getPageBeginPos(), pageInfo.getPageSize(), pageInfo.getTotalMatch(), pageInfo.getMaxPageSize(), getUser(), "Agenda" ); } else { view = new IrbAgendaResultsDisplayView(new java.util.Vector(), getUser()); } view.draw(getResponse()); } /** * Builds the PtDocSearchParameters. * * @param servlet edu.columbia.rascal.presentation.fo.alertService.servlets.FoasDocumentSearchServlet * * @return edu.columbia.rascal.presentation.fo.alertService.auxiliary.objects.FoasDocSearchParameters * * @throws edu.columbia.rascal.presentation.common.parser.CURascalParseException TODO: DOCUMENT ME! */ protected IrbAgendaSearchParameters buildSearchParams(IrbAgendaEventSearchServlet servlet) |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinuteHistoryDateRangeView.java | 95 |
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchDateRangeView.java | 102 |
getAForm().add(getHiddenWidgetFor("dateValid", "true")); add(aForm); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { String endDate = CalendarTransformer.toString(Calendar.getInstance()); Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } aTable.setCellSpacing(15); aTable.addRowFor(columns); int row = aTable.elements.size(); Object aWidget; aWidget = getReportRangeWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Range:")); row++; columns.setElementAt(getDateTable(endDate, "endDate", "endDateMonth", "endDateDay", "endDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Ending On:")); row++; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getAction() { return action; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit", "checkDateForSubmit(endDate);return isDateValid()" ); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public final CUHtmlForm getAForm() { return aForm; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getReportRangeWidget() { EVector list = new EVector(); list.addElement("Day"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 2074 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 1268 |
} /** * Insert the method's description here. Creation date: (1/26/2006 5:19:02 PM) * * @param anAppendix java.lang.Object * * @return java.lang.String */ public String retreiveInvitroAppendixTrackingOidFor(AbstractAppendix anAppendix) { String appendixTrackerOid = null; AppendixA appendixA = null; AppendixB appendixB = null; AppendixC appendixC = null; AppendixE appendixE = null; AppendixI appendixI = null; try { if (anAppendix.getAppendixType().equalsIgnoreCase(APPENDIX_LETTER_A)) { // gets the tracker object if any appendix headers are associated with this appendix appendixA = (AppendixA) anAppendix; appendixTrackerOid = ServiceLocator.getAppendixService() .getInvitroAppendixTrackingOid(appendixA.getId(), appendixA.getAppendixType(), HAZMAT_HEADER_OWNER ); } else if (anAppendix.getAppendixType().equalsIgnoreCase(APPENDIX_LETTER_B)) { appendixB = (AppendixB) anAppendix; appendixTrackerOid = ServiceLocator.getAppendixService() .getInvitroAppendixTrackingOid(appendixB.getId(), appendixB.getAppendixType(), HAZMAT_HEADER_OWNER ); } else if (anAppendix.getAppendixType().equalsIgnoreCase(APPENDIX_LETTER_C)) { appendixC = (AppendixC) anAppendix; appendixTrackerOid = ServiceLocator.getAppendixService() .getInvitroAppendixTrackingOid(appendixC.getId(), appendixC.getAppendixType(), HAZMAT_HEADER_OWNER ); } else if (anAppendix.getAppendixType().equalsIgnoreCase(APPENDIX_LETTER_E)) { appendixE = (AppendixE) anAppendix; appendixTrackerOid = ServiceLocator.getAppendixService() .getInvitroAppendixTrackingOid(appendixE.getId(), appendixE.getAppendixType(), HAZMAT_HEADER_OWNER ); } else if (anAppendix.getAppendixType().equalsIgnoreCase(APPENDIX_LETTER_I)) { appendixI = (AppendixI) anAppendix; appendixTrackerOid = ServiceLocator.getAppendixService() .getInvitroAppendixTrackingOid(appendixI.getId(), appendixI.getAppendixType(), HAZMAT_HEADER_OWNER ); } } catch (Exception e) { log.error("Problem Retreiving Invitro Appendix Tracking Object for Appendix: " + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3801 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3935 |
Vector row = new Vector(7); String modify = ""; CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid modify = res.getInt(4) + ""; if (res.getInt(4) < 10) modify = "0" + modify; row.addElement(res.getString(2) + " (Y" + res.getInt(3) + " M" + modify + ")"); // protocol number row.addElement(res.getString(5)); // protocol title if (res.getDate(6) == null) // date submitted { row.addElement(""); } else { row.addElement(res.getDate(6)); } row.addElement(Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString()); // protocol parent if (res.getDate(8) == null) // date Reviewed { row.addElement(""); } else { row.addElement(res.getDate(8)); } row.addElement(Integer.valueOf((new Float(res.getFloat(9))).intValue()).toString()); // reviewed Oid row.addElement(res.getString(10)); row.addElement(res.getString(11)); // PIName |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbApprovalEntryView.java | 63 |
edu/columbia/rascal/presentation/irb/pages/IrbDepartmentApprovalEntryView.java | 39 |
public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); if (anOid == null) addEdit = "Add"; else addEdit = "Edit"; aForm.add(getHiddenWidgetFor("hiddenAddEdit", addEdit)); aForm.add(getHiddenWidgetFor("hiddenOid", anOid)); aTable.getCell(0, 0).setWidth("40%"); aForm.add(aTable); aForm.add(performMethod("getActionButtons", null)); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // Uni aWidget = getEditWidgetFor("rascalUni", "", "15", "15"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI")); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element // Participant type aWidget = getApprovalRoleWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("What is this person's role")); row++; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 122 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 288 |
addHeader(uni, reportType, statusList); getForm().add(addDate()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("left"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows, true); getForm().add("<br>"); if (!(getPrintable())) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStats2View.java | 293 |
edu/columbia/rascal/presentation/irb/pages/IrbReportOverallCommStatsAfterLogInView.java | 349 |
aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyName, -2, false)); aCell.setAlign("center"); aCell.setVAlign("top"); aRow.add(aCell); keyText = "The average number of days the PI has custody of the event from first " + "submission (regardless of date) to approval within specified date range."; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyText, -2, false)); aCell.setAlign("left"); aCell.setVAlign("top"); aRow.add(aCell); aTable.add(aRow); aTable.getCell(0, 0).setWidth("5%"); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param results TODO: DOCUMENT ME! * @param aTable TODO: DOCUMENT ME! */ public void getReportPart1Widget(Vector results, CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); String aTitle; CUHtmlTableCell header; String avgValue = null; CUHtmlText blank = new CUHtmlText("<img src=\"/images/blank.gif\" border=\"0\">"); int counter = 0; Vector columns = getColumns(); int colSize = columns.size(); // add super column labels aCell = new CUHtmlTableCell(); aCell.add(blank); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(blank); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(blank); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(blank); aRow.add(aCell); aTitle = ("Average Elapsed Days"); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(aTitle, 1, false)); aCell.setAlign("center"); aCell.setVAlign("bottom"); aCell.setColumnsToSpan(3); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 348 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 469 |
public static Vector buildCurrentActivityReportResult(java.sql.ResultSet res, String name) { Vector results = new Vector(); Hashtable row = new Hashtable(); int protocalyear = 0; int modificationNumber = 0; try { if (name.equals(IrbNameConstants.PROTOCOL_HEADER)) { while (res.next()) { protocalyear = res.getInt(4); modificationNumber = res.getInt(5); if ((protocalyear == 1) && (modificationNumber == 0)) { row.put("EventName", "Protocol"); } else if (modificationNumber > 0) { row.put("EventName", "Modification"); } else if ((protocalyear > 1) && (modificationNumber == 0)) { row.put("EventName", "Renewal"); } row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolNumber", "IRB-" + res.getString(3)); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString() ); row.put("PI", res.getString(7)); row.put("Committee", res.getString(8)); row.put("DateAssigned", res.getDate(9)); row.put("CurrentStatus", res.getString(10)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 1038 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5834 |
aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("') AND (b.parentObjectOid = a.oid and b.parentObjectName = 'Protocol') "); aBuffer.append("and b.committeeId = h.oid and a.administrativeLocationId "); aBuffer.append(getLogInAdminLocationStringFor(whoAmI)); aBuffer.append(" Order by e.statusDate "); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); // protocol number row.addElement(res.getString(4)); // subjectIdentifier row.addElement(res.getString(3)); // responsible person if (res.getDate(5) == null) // date submitted { row.addElement(""); } else { row.addElement(res.getDate(5)); } row.addElement(Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString()); // protocol parent oid row.addElement(res.getString(7)); // committee name row.addElement(res.getString(8)); // times in row.addElement(res.getString(9)); // original Dept code row.addElement(""); results.addElement(row.clone()); row = new Vector(10); } } catch (Exception e) { log.error("Exception while Running query", e); } return results; } /** * RASCAL (halayn) Creation date: (7/26/2002 14:53:52 PM) * * @param whoAmI TODO: DOCUMENT ME! * @param reviewerType TODO: DOCUMENT ME! * * @return Vector of results */ public static Vector getAdverseEventForReviewerQueue(RascalUser whoAmI, String reviewerType) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 2823 |
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 2931 |
StringBuilder selectionList = new StringBuilder(300); selectionList.append(" iph.oid,"); // 1 selectionList.append(" iph.protocolNumber,"); // 2 selectionList.append(" iph.protocolYear,"); // 3 selectionList.append(" iph.modificationNumber,"); // 4 selectionList.append(" iph.submitDate,"); // 5 selectionList.append(" usr.name_first,"); // 6 selectionList.append(" usr.name_last,"); // 7 selectionList.append(" usr.user_id,"); // 8 selectionList.append(" iph.speciesName,"); // 9 selectionList.append(" iph.protocolType,"); // 10 selectionList.append(" iph.primarySite,"); // 11 selectionList.append(" iph.currentStatus,"); // 12 selectionList.append(" iph.painCategory1,"); // 13 selectionList.append(" iph.painCategory2,"); // 14 selectionList.append(" iph.painCategory3,"); // 15 selectionList.append(" iph.painCategory4,"); // 16 selectionList.append(" iph.dnaRequired,"); // 17 appendix A selectionList.append(" iph.infectiousAgentsRequired,"); // 18 appendix B selectionList.append(" iph.humanBloodRequired,"); // 19 appendix C selectionList.append(" iph.laserRequired,"); // 20 appendix D selectionList.append(" iph.chemicalsRequired,"); // 21 appendix E selectionList.append(" iph.radioIsotopesRequired,"); // 22 appendix F selectionList.append(" iph.humanCellLinesRequired,"); // 23 strong radio frequency // required selectionList.append(" iph.xrayRequired"); // 24 // construct the FROM statement and begin the WHERE statement StringBuilder fromWhere1 = new StringBuilder(300); fromWhere1.append(" FROM IacucProtocolHeader iph,"); fromWhere1.append(" IacucStaff staff,"); fromWhere1.append(" RASCAL_USER usr"); fromWhere1.append(" WHERE"); fromWhere1.append(" iph.currentStatus in('Hold', '" + KEY_ACTION_DISTRIBUTE + "','" + KEY_ACTION_REQ_FULL_REVIEW + "','" + KEY_ACTION_REJECT + "','" + KEY_ACTION_PREAPPROVE + "')" ); // construct WHERE statement after the first variable StringBuilder fromWhere2 = new StringBuilder(300); fromWhere2.append(" AND exists (Select tracker.oid"); fromWhere2.append(" FROM AppendixTracking tracker"); fromWhere2.append(" WHERE iph.oid = tracker.ownerOid"); fromWhere2.append(" AND '"); fromWhere2.append(ANIMAL_CARE_OWNER); fromWhere2.append("' = tracker.ownerType"); // construct the remainder of the WHERE statement after the second variable StringBuilder moreWhere = new StringBuilder(300); moreWhere.append(" = tracker.appendixType"); moreWhere.append(" AND NOT EXISTS (SELECT * "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 87 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 80 |
addHeader("IRB-" + protocolNumber.toUpperCase()); getForm().add(addDate()); getForm().add("<br><br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaResultsDisplayView.java | 363 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 368 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalProposalResultsDisplayView.java | 321 |
next.setFontSize("+1"); next.setFontName("Comic Sans MS"); next.setFgColor("black"); // next.setAlignment("RIGHT"); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } else { // Add the empty control to display the previous page next = new CUHtmlText(""); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } // Add the space in the right end pageControlRow.addElement(""); // Add the pageControlRow to aTable aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaResultsDisplayView.java | 363 |
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 365 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 351 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 376 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 377 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 492 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 368 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalProposalResultsDisplayView.java | 321 |
next.setFontSize("+1"); next.setFontName("Comic Sans MS"); next.setFgColor("black"); // next.setAlignment("RIGHT"); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } else { // Add the empty control to display the previous page next = new CUHtmlText(""); pageControlRow.addElement(next); // Will be changed to add a hobo button with the right arrow String rightButton = ""; pageControlRow.addElement(rightButton); } // Add the space in the right end pageControlRow.addElement(""); // Add the pageControlRow to aTable aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucFileUploadController.java | 146 |
edu/columbia/rascal/presentation/controller/iacuc/IacucFileUploadInternalController.java | 139 |
return new ModelAndView("iacuc/attachment/update", "attachment", attachment); } /** * This method is used to download the IacucExternal Attachment document * * @param anOid Attachment document primary id * @param request of type HttpServletRequest * @param response of type HttpServletResponse * @return ModelAndView * @throws Exception */ @RequestMapping(value = "retrieve", method = RequestMethod.GET) public ModelAndView handleRequest(@RequestParam long anOid, HttpServletRequest request, HttpServletResponse response) throws Exception { final IacucAttachment attachment = iacucAttachmentService.findById(anOid); try { if (attachment != null) { final String filename = attachment.getFileName(); final InputStream content = attachment.getBlob().getBinaryStream(); response.setContentType(attachment.getContentType()); response.setHeader("Content-Disposition", "attachment; filename=\"" + filename + "\""); FileCopyUtils.copy(content, response.getOutputStream()); response.getOutputStream().flush(); response.getOutputStream().close(); return null; } } catch (final Exception e) { log.error("Exception while retrieving attachment.", e); } return new ModelAndView("updateFailed"); } /** * This is spring specific initBinder method to set allowedFields on IacucAttachment document page. * * @param dataBinder of type ServletRequestBinder */ @InitBinder("attachment") public void initBinder(ServletRequestDataBinder dataBinder) { dataBinder.setAllowedFields(new String[] { "oid", "documentIdentifier", "dateCreated", "fileName" }); } /** * Page specific exception handler for resource not found scenario * * @param t of type Throwable * @return String */ @ExceptionHandler(ResourceNotFoundException.class) public String notFoundException(Throwable t) { return "updateFailed"; } /** * This method updates the IacucAttachment document. * * @param attachment of type IacucAttachment * @param result of type BindingResult * @param model of type ModelMap * @param anOid IacucAttachment primary id * @return String * @throws IOException */ @RequestMapping(value = "edit", method = RequestMethod.PUT) public String update(@RequestParam long anOid, @ModelAttribute("attachment") @Valid IacucAttachment attachment, BindingResult result, ModelMap model) throws IOException { if (result.hasErrors()) { model.addAttribute("attachment", attachment); return "iacuc/attachment/update"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 427 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 361 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 255 |
Vector list = new Vector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** * This method was created in VisualAge. * * @param aInputName java.lang.String * @param aValue java.lang.String * @param size TODO: DOCUMENT ME! * * @return CUHtmlTextEntry */ public Object getEditWidgetFor(String aInputName, String aValue, String size) { return new CUHtmlEntryField(aInputName, size, "60", aValue); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aInputName java.lang.String * @param aValue java.lang.String * @param aSize TODO: DOCUMENT ME! * @param aMax TODO: DOCUMENT ME! * * @return CUHtmlTextEntry */ @Override public Object getEditWidgetFor(String aInputName, String aValue, String aSize, String aMax ) { return new CUHtmlEntryField(aInputName, aSize, aMax, aValue); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aValue TODO: DOCUMENT ME! * * @return CUHtmlRadioButton */ public String getFloatToDollarStringFor(float aValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 146 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 148 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 130 |
Vector committeeNames = new Vector(); if (CURascalGuardian.hasIrbRascal() || CURascalGuardian.hasIrbHighLevelAdminReports() || CURascalGuardian.hasIrbCentralIrbReview() ) { committeeNames.addElement("All Committees"); committeeNames.addAll(ServiceLocator.getIrbCommitteeService().getCommitteeNames()); } else if (CURascalGuardian.hasIrbAdmin()) committeeNames.addAll(IrbReportQuery.getIrbCommitteeNameFor(getRascalUser(), "IrbAdminMember" ) ); else // is Chair committeeNames.addAll(IrbReportQuery.getIrbCommitteeNameFor(getRascalUser(), "IrbCommitteeMember" ) ); CUHtmlList list = new CUHtmlList(committeeNames, "committeeList", "All Committees"); columns.setElementAt(list, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Committee :")); row++; aWidget = getReportRangeWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Range:")); row++; columns.setElementAt(getDateTable(endDate, "endDate", "endDateMonth", "endDateDay", "endDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Ending On:")); row++; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit", |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStats2View.java | 50 |
edu/columbia/rascal/presentation/irb/pages/IrbReportOverallCommStatsAfterLogInView.java | 87 |
"?type=OverallCommittee2" + "'" ); getForm().add("<BR>"); getForm().add("<BR>"); getForm().add(pb1); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param result1 TODO: DOCUMENT ME! * @param dateRange TODO: DOCUMENT ME! * @param selectedCommittee TODO: DOCUMENT ME! */ public void addFields(Vector result1, String dateRange, String selectedCommittee) { CUHtmlForm aForm = getForm(); addHeader(dateRange, selectedCommittee); aForm.add(addDate()); aForm.add("<BR>"); CUHtmlTable aTable; aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellSpacing(0); aTable.setCellPadding(1); aTable.setWidth("95%"); getReportPart1Widget(result1, aTable); aForm.add(aTable); aForm.add("<BR> <BR>"); aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellSpacing(1); aTable.setCellPadding(1); aTable.setWidth("90%"); aTable.setAlign("center"); getReportExplanationKeyWidget(aTable); aForm.add(aTable); setBgColor("WHITE"); add(aForm); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param dateRange TODO: DOCUMENT ME! * @param selectedCommittee TODO: DOCUMENT ME! */ public void addHeader(String dateRange, String selectedCommittee) { CUHtmlForm form = getForm(); form.add("<div align=\"center\">"); form.add("<p><font face=\"Comic Sans MS\" size=\"4\"> RASCAL Reporting <br>"); form.add("Columbia University</font><br> </p> "); form.add("<p><font face=\"Comic Sans MS\"><b>" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2667 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4727 |
); aBuffer.append("and (b.oid = e.parentObjectOid and e.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') and e.statusName != '"); aBuffer.append(RETURNED); aBuffer.append("' and e.statusName != '"); aBuffer.append(WITHDRAWN); aBuffer.append( "' and e.oid = (select max(oid) from IrbStatus x where b.oid = x.parentObjectOid and x.parentObjectName = '" ); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') and f.parentObjectOid = b.oid and f.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and f.approvedOn is null "); aBuffer.append("and f.approvalCode = "); aBuffer.append(approvalCode); aBuffer.append(" order by e.statusDate DESC"); } else { if (name.equals(IrbNameConstants.CLOSURE)) { title = "''"; } aBuffer.append("select distinct a.oid AS oid1, a.protocolNumber, c.name_last, "); aBuffer.append(title); aBuffer.append(", b.oid AS oid2, e.statusName, f.oid AS oid3, f.approvalCode, e.statusDate "); aBuffer.append("from IrbProtocol a, "); aBuffer.append(table); aBuffer.append(" b, RASCAL_USER c, IrbStatus e, IrbApproval f "); aBuffer.append("where a.oid = b.parentProtocolOid and b.createdBy = c.rid "); aBuffer.append("and (b.oid = e.parentObjectOid and e.parentObjectName = '"); aBuffer.append(name); aBuffer.append("') and e.statusName != '"); aBuffer.append(WITHDRAWN); if (!(name.equals(IrbNameConstants.ADVERSE_EVENT) || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM))) { aBuffer.append("' and e.statusName != '"); aBuffer.append(RETURNED); } aBuffer.append( "' and e.oid = (select max(oid) from IrbStatus x where b.oid = x.parentObjectOid and x.parentObjectName = '" ); aBuffer.append(name); aBuffer.append("') and f.parentObjectOid = b.oid and f.parentObjectName = '"); aBuffer.append(name); aBuffer.append("' and f.approvedOn is null and f.approvalCode = "); aBuffer.append(approvalCode); aBuffer.append(" order by e.statusDate DESC"); } return aBuffer.toString(); } /** * TODO: DOCUMENT ME! * * @param table TODO: DOCUMENT ME! * @param name TODO: DOCUMENT ME! * @param approvalCode TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static String getCTSAApprovedSqlStringFor(String table, String name, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 260 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 228 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 213 |
int year = Integer.parseInt(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param dayIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getDayWidget(String fieldName, int dayIndex) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportPtHazMatView.java | 119 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportHazMatView.java | 93 |
} /** * TODO: DOCUMENT ME! * * @param dataTableVector TODO: DOCUMENT ME! */ public void addFields(Vector dataTableVector) { if ((dataTableVector == null) || dataTableVector.isEmpty()) { CUHtmlText msgTxt = new CUHtmlText( "No Proposals were selected for these parameters." ); msgTxt.setFontName(getDefaultFontName()); msgTxt.setIsBold(true); msgTxt.setFgColor("BLUE5"); getForm().add(msgTxt); } else { if (!getDownloadable()) { addHeader(getFromDate(), getToDate(), getLocation(), getApplication() ); getForm().add(addDate()); addKey(); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction("")); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames(getKeywordListForColumns(), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/jdbc/PtQueueQuery.java | 270 |
edu/columbia/rascal/presentation/propTrak/jdbc/PtQueueQuery.java | 333 |
); for(Object[] obj: res){ row.addElement(obj[0].toString()); row.addElement(obj[1]); if (obj[3] == null) { row.addElement(""); } else { row.addElement(obj[2] + "-" + obj[3]); } row.addElement((obj[4]!=null)?(Date)obj[4]:null); row.addElement(obj[5]); row.addElement(obj[6]); // PI name results.addElement(row.clone()); row = new Vector<Object>(7); } StringBuffer b = null; for (int i = 0; i < results.size(); i++) { Vector<Object> v = (Vector<Object>) results.elementAt(i); if (v.elementAt(5) == null) { b = new StringBuffer(50); b.append( "SELECT T1.name_last from RASCAL_USER T1, PtAccessControl T2 where T1.rid = T2.rid AND T2.pt_header_id = " ); b.append((String) v.elementAt(0)); b.append(" AND sequenceNumber = 1"); List<String> res2 = ServiceLocator.getCURascalJdbcAccessorService() .executeNoParmPreparedQuery(b.toString()); for(String obj2:res2){ v.setElementAt(obj2, 5); break; // i just want the first one... } } } return results; } /** * TODO: DOCUMENT ME! * * @param aUserId TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static Vector<Object> getProposalsToApprove(String aUserId) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2831 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 7984 |
aSql.append(" ORDER BY a.protocolNumber desc"); } else // adverseEvent,Closure { aSql.append("SELECT DISTINCT"); aSql.append(" e2.parentObjectName,"); aSql.append(" g.oid AS oid1,"); aSql.append(" a.protocolNumber,"); aSql.append(" a.oid AS oid2,"); aSql.append(" d.name_last,"); aSql.append(" d2.name_last,"); aSql.append(" f.committeeName,"); aSql.append(" e1.statusDate,"); aSql.append(" e2.statusName,"); aSql.append(" e2.statusDate"); aSql.append(" FROM"); aSql.append( " IrbProtocol a, IrbEventCommittee b,IrbStaff c, RASCAL_USER d,RASCAL_USER d2, IrbStatus e1, IrbStatus e2, IrbCommittee f,IrbProtocolHeader h," ); aSql.append("Irb"); aSql.append(name); aSql.append(" g"); aSql.append(" WHERE"); aSql.append(" a.oid = g.parentProtocolOid and g.createdBy = d2.rid"); aSql.append(" AND g.parentProtocolOid = h.parentProtocolOid"); aSql.append(" AND (h.oid = c.irbProtocolHeaderId AND c.sequenceNumber = 1)"); aSql.append(" AND c.rid = d.rid"); aSql.append(" and h.oid=(select max(ph1.oid) from "); aSql.append(" IrbStatus e3,IrbProtocolHeader ph1 "); aSql.append(" where a.oid = ph1.parentProtocolOid "); aSql.append(" and ph1.oid= e3.parentObjectOid "); aSql.append(" and e3.parentObjectName = '"); aSql.append(IrbNameConstants.PROTOCOL_HEADER); aSql.append("' AND e3.statusName = '"); aSql.append(APPROVED); aSql.append("') AND (g.oid = e2.parentObjectOid AND e2.parentObjectName = '"); aSql.append(name); aSql.append("' AND e2.statusName <> '"); aSql.append(CREATING); aSql.append( "' AND e2.oid = (SELECT max(oid) FROM IrbStatus x WHERE g.oid = x.parentObjectOid AND x.parentObjectName = '" ); aSql.append(name); aSql.append( "')) AND (b.parentObjectOid = g.parentProtocolOid AND b.parentObjectName = 'Protocol')" ); aSql.append( " AND e1.oid = (SELECT min(oid) FROM IrbStatus x WHERE g.oid = x.parentObjectOid AND x.parentObjectName = '" ); aSql.append(name); aSql.append("' AND x.statusName = '"); aSql.append(LOGGED_IN); aSql.append("')"); aSql.append(" and b.committeeId=f.oid "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 659 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 723 |
List<Map<String, Object>> nonRespondersRequiredToFileWithOverdueAmount(@PathVariable(DEPT_CODE) String deptCode, @PathVariable(ENABLE_FILTER) Boolean enableFilter) { Set<String> deptCodes = getDeptCodes(deptCode); Map<String, Object> dataMap; List<Map<String, Object>> data = new ArrayList<Map<String, Object>>(); Map<Integer, Boolean> processedUsers = new HashMap<Integer, Boolean>(); List<RascalUser> users = new ArrayList<RascalUser>(); if ( enableFilter ) { users = coiDisclosureService.findRequiredUsersWithMissingCOIByDepartments(deptCodes); } else { users = coiDisclosureService.findUsersWithMissingCOIByDepartments(deptCodes); } Map<String, String> departmentNames = rascalDepartmentService.getDeptNameByDeptNumbers(deptCodes); for (RascalUser user : users) { if (!processedUsers.containsKey(user.getId())) { dataMap = new HashMap<String, Object>(); dataMap.put("userid", user.getId()); dataMap.put("username", user.getUserFirstLastNameUni()); dataMap.put("firstname", user.getNameFirst()); dataMap.put("lastname", user.getNameLast()); dataMap.put("uni", user.getUserId()); String userEmail = user.getEmailPreferred(); dataMap.put("email", userEmail); String deptHome = user.getDeptHome(); dataMap.put("department", deptHome + "-" + departmentNames.get(deptHome)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 441 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 480 |
} /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getEndDate() { return endDate; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param aLocation TODO: DOCUMENT ME! * @param euOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getEuLinkWidgetFor(String aString, String aLocation, String euOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } CUHtmlText text = new CUHtmlText(aString); text.setLink( "Javascript:onClick=parent.frames[2].location='edu.columbia.rascal.presentation.eu.servlets." + aLocation + "?euOid=" + euOid + "'" ); text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } String number = aString.substring(4, 12); return getLinkForProtocolOverview(aString, number); } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2011 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2099 |
public static Vector buildHistoryQueueReportResult(java.sql.ResultSet res, String name) { Vector results = new Vector(); Hashtable row = new Hashtable(); int protocalyear = 0; int modificationNumber = 0; try { if (name.equals(IrbNameConstants.PROTOCOL_HEADER)) { while (res.next()) { protocalyear = res.getInt(4); modificationNumber = res.getInt(5); if ((protocalyear == 1) && (modificationNumber == 0)) { row.put("EventName", "Protocol"); } else if (modificationNumber > 0) { row.put("EventName", "Modification"); } else if ((protocalyear > 1) && (modificationNumber == 0)) { row.put("EventName", "Renewal"); } row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolNumber", "IRB-" + res.getString(3)); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString() ); row.put("PI", res.getString(7)); row.put("Initiator", res.getString(8)); row.put("Committee", res.getString(9)); row.put("OriginalLogInDate", res.getDate(10)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseExpireTask.java | 120 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseNotifyTask.java | 115 |
} /** * TODO: DOCUMENT ME! * * @param deptCode TODO: DOCUMENT ME! * @param message TODO: DOCUMENT ME! * @param subject TODO: DOCUMENT ME! */ public void generateDAEmail(String deptCode, String message, String subject) { List<List<Object>> deptAdmins = ServiceLocator.getRuAuthorizedDepartmentService() .getDeptAdminsByDeptCodeApplyId(deptCode, "Tc"); for(List<Object> currentRow: deptAdmins){ String aUserEmail = (String) currentRow.get(3); if ((aUserEmail == null) || aUserEmail.equals("") || (!aUserEmail.contains("@"))) aUserEmail = currentRow.get(0) + "@columbia.edu "; StringBuilder buff = new StringBuilder(200); buff.append("Attempting to email: DA- ("); buff.append(currentRow.get(1)); buff.append(' '); buff.append(currentRow.get(2)); buff.append(" ("); buff.append(currentRow.get(0)); buff.append(") Address to be sent to: "); buff.append(aUserEmail); CURascalEmailMessage email = null; // sent email email = new TCGeneralEmailMessage(currentRow.get(1) + " " + currentRow.get(2), aUserEmail, subject, message, RascalProperties.getProperty("DbUserId") ); CURascalEmailSender sender = new CURascalEmailSender(); try { sender.openConnection(); log.info(buff.toString()); sender.sendEmail(email); } catch (Exception e) { log.error("Exception sending email.", e); } finally { sender.closeConnection(); } } } /** * TODO: DOCUMENT ME! * * @param emailList TODO: DOCUMENT ME! */ public void generateExpireEmails(List<Map<String, Object>> emailList, int days) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 113 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 213 |
int year = new Long(currentDate.substring(6)).intValue(); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex ); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { Vector<String> list = new Vector<String>(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtParticipantEntryView.java | 173 |
edu/columbia/rascal/presentation/propTrak/pages/PtPiEntryView.java | 140 |
Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // Uni if (theOid == null) { // add a new person aWidget = getEditWidgetFor("rascalUni", "", "15", "15"); } else { // edit PtAccessControl ac = ServiceLocator.getPtAccessControlService().findById(new Long(theOid ) ); aWidget = getRascalUniWidget(ac.getUserId()); // hidden field to hold rascal userId getForm().add(getHiddenWidgetFor("rascalUni", ac.getUserId())); } columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI (do not enter a name)")); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element // Participant type aWidget = getParticipantTypeWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("What is this person's role")); row++; // edit/view columns.setElementAt("", 2); columns.setElementAt(getEditViewWidget(), 1); columns.setElementAt("", 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Edit/View")); row++; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 228 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 404 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 213 |
int year = Integer.valueOf(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { Vector<String> list = new Vector<String>(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2521 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 1171 |
} /** * TODO: DOCUMENT ME! * * @param aString TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getWidgetFor(String aString) { if ((aString == null) || aString.trim().equals("")) { CUHtmlImage i = new CUHtmlImage("/images/blank.gif"); i.setBorderWidth(0); return i; } CUHtmlText text = new CUHtmlText(aString); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } text.setFontSize("1"); text.setFontName("Verdana"); return text; } /** * TODO: DOCUMENT ME! * * @param aBoolean TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getWidgetFor(boolean aBoolean) { CUHtmlText text = new CUHtmlText(aBoolean ? "Yes" : "No"); text.setFontSize("1"); text.setFontName("Verdana"); return text; } /** * TODO: DOCUMENT ME! * * @param aString TODO: DOCUMENT ME! * @param color TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getWidgetFor(String aString, String color) { CUHtmlText text = new CUHtmlText(aString); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Verdana"); } else { text.setFontSize("1"); text.setFontName("Verdana"); text.setBgColor(color); } return text; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getYearWidget(java.lang.String, int) */ @Override public Object getYearWidget(String fieldName, int year) { int startYear = year - 10; String selectedYear = ""; if (year == 0) { Calendar now = Calendar.getInstance(); now.add(Calendar.YEAR, -10); startYear = now.get(Calendar.YEAR); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 260 |
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 113 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 404 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 172 |
int year = Integer.parseInt(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param dayIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getDayWidget(String fieldName, int dayIndex) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 228 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 347 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 388 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 321 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 213 |
int year = Integer.valueOf(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getDayWidget(java.lang.String, int) */ @Override public Object getDayWidget(String fieldName, int dayIndex) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 536 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 376 |
} /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToViewReportForDownload(String queueName) { return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 512 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 574 |
} /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToViewReportForDownload(String queueName) { return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbPiEntryServlet.java | 208 |
edu/columbia/rascal/presentation/irb/servlets/IrbPiEntryServlet.java | 321 |
staff.setEditView(editView); if (hasInformedConsent != null) { if (hasInformedConsent.equals("Yes")) staff.setHasInformedConsent("Y"); else staff.setHasInformedConsent("N"); } // HazMats (for PI default to true for attached appendices, all others according to // checkboxes) staff.setAppendixA( getProtocolHeader().getHazMatRecombinantDna().equals("Y") ? (role.equals("Principal Investigator") ? "Y" : ((getRequestParameter("appendixA") != null) ? "Y" : "N")) : "N" ); staff.setAppendixB( getProtocolHeader().getHazMatInfectiousAgents().equals("Y") ? (role.equals("Principal Investigator") ? "Y" : ((getRequestParameter("appendixB") != null) ? "Y" : "N")) : "N" ); staff.setAppendixC( getProtocolHeader().getHazMatHumanBloodOrCell().equals("Y") ? (role.equals("Principal Investigator") ? "Y" : ((getRequestParameter("appendixC") != null) ? "Y" : "N")) : "N" ); staff.setAppendixD( getProtocolHeader().getHazMatLaser().equals("Y") ? (role.equals("Principal Investigator") ? "Y" : ((getRequestParameter("appendixD") != null) ? "Y" : "N")) : "N" ); staff.setAppendixE( getProtocolHeader().getHazMatChemicalOrToxin().equals("Y") ? (role.equals("Principal Investigator") ? "Y" : ((getRequestParameter("appendixE") != null) ? "Y" : "N")) : "N" ); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 398 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 347 |
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 113 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 388 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 404 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 321 |
int year = Integer.valueOf(currentDate.substring(6)).intValue(); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 120 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseExpireTask.java | 109 |
message.append("\n\nIf you have any questions about the course(s) listed above, please contact your Departmental Administrator or the Contact Person listed in the Rascal Course Overview. "); message.append("\n\nIf you have any technical questions, please contact the Rascal Help Line at 212.851.0213 or rascal@columbia.edu. "); message.append("\n\nPlease do not “reply” to this email. "); message.append("\n\nrascal@columbia.edu "); message.append("\nResearch Administration System "); message.append("\nColumbia University "); return message.toString(); } /** * TODO: DOCUMENT ME! * * @param deptCode TODO: DOCUMENT ME! * @param message TODO: DOCUMENT ME! * @param subject TODO: DOCUMENT ME! */ public void generateDAEmail(String deptCode, String message, String subject) { List<List<Object>> deptAdmins = ServiceLocator.getRuAuthorizedDepartmentService() .getDeptAdminsByDeptCodeApplyId(deptCode, "Tc"); for(List<Object> currentRow: deptAdmins){ String aUserEmail = (String) currentRow.get(3); if ((aUserEmail == null) || aUserEmail.equals("") || (!aUserEmail.contains("@"))) aUserEmail = currentRow.get(0) + "@columbia.edu "; StringBuilder buff = new StringBuilder(200); buff.append("Attempting to email: DA- ("); buff.append(currentRow.get(1)); buff.append(' '); buff.append(currentRow.get(2)); buff.append(" ("); buff.append(currentRow.get(0)); buff.append(") Address to be sent to: "); buff.append(aUserEmail); CURascalEmailMessage email = null; // sent email email = new TCGeneralEmailMessage(currentRow.get(1) + " " + currentRow.get(2), aUserEmail, subject, message, RascalProperties.getProperty("DbUserId") ); CURascalEmailSender sender = new CURascalEmailSender(); try { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 99 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 97 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 84 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 84 |
getForm().add(addDateRange()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 770 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 552 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 738 |
utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = CalendarTransformer.toString(approvalDate); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } // spacer addSpacerRows(aTable, 1, 2, "8"); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_SAFETY_OFFICER), "300", |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 260 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 485 |
edu/columbia/rascal/presentation/tc/views/TCReportSelectFieldsView.java | 303 |
int year = Integer.parseInt(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixChemicalView.java | 234 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIContrSubsView.java | 196 |
public CUHtmlTable getChemicalLocationsTable(AppendixChemical chem) { CUHtmlTable aTable = new CUHtmlTable(); aTable.setWidth("100%"); aTable.setBorderWidth(1); aTable.setCellPadding(0); aTable.setCellSpacing(0); int row = 0; Vector columns = new Vector(6); CUHtmlText aTitle; CUHtmlImage image = new CUHtmlImage("/images/blank.gif"); image.setBorderWidth(0); String titles[] = { "Location Type", "Building", "Floor", "Room", "Modify", "Delete" }; for (int i = 0; i < titles.length; i++) { if (((String) titles[i]).length() == 0) { columns.add(image); } else { aTitle = new CUHtmlText(titles[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("2"); columns.add(aTitle); } } aTable.addRowFor(columns); aTable.getCell(row, 0).setAlign("Center"); aTable.getCell(row, 1).setAlign("Center"); aTable.getCell(row, 2).setAlign("Center"); aTable.getCell(row, 3).setAlign("Center"); aTable.getCell(row, 4).setAlign("Center"); aTable.getCell(row, 5).setAlign("Center"); row++; // Vector locations = chem.getAllLocationEntries(); Vector locations = ServiceLocator.getAppendixLocationService().getAllByOwnerOidAndType( |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse30DaysWarningTask.java | 155 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseExpireTask.java | 117 |
message.append("\nColumbia University"); return message.toString(); } /** * TODO: DOCUMENT ME! * * @param deptCode TODO: DOCUMENT ME! * @param message TODO: DOCUMENT ME! * @param subject TODO: DOCUMENT ME! */ public void generateDAEmail(String deptCode, String message, String subject) { List<List<Object>> deptAdmins = ServiceLocator.getRuAuthorizedDepartmentService() .getDeptAdminsByDeptCodeApplyId(deptCode, "Tc"); for(List<Object> currentRow: deptAdmins){ String aUserEmail = (String) currentRow.get(3); if ((aUserEmail == null) || aUserEmail.equals("") || (!aUserEmail.contains("@"))) aUserEmail = currentRow.get(0) + "@columbia.edu "; StringBuilder buff = new StringBuilder(200); buff.append("Attempting to email: DA- ("); buff.append(currentRow.get(1)); buff.append(' '); buff.append(currentRow.get(2)); buff.append(" ("); buff.append(currentRow.get(0)); buff.append(") Address to be sent to: "); buff.append(aUserEmail); CURascalEmailMessage email = null; // sent email email = new TCGeneralEmailMessage(currentRow.get(1) + " " + currentRow.get(2), aUserEmail, subject, message, RascalProperties.getProperty("DbUserId") ); CURascalEmailSender sender = new CURascalEmailSender(); try { sender.openConnection(); log.info(buff.toString()); sender.sendEmail(email); } catch (Exception e) { log.error("Exception while sending department authorization email.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 786 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 937 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 794 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 945 |
(Integer) reviewers.elementAt(j) ).getUserFirstLastNameUni() ); } } vContent.add(3, revString.toString()); // status vContent.add(4, getNotNullString((String) currentRow.elementAt(7), "")); // the two dates only shown in protocol, midification, renewal, etc. if (getAgendaView().isProtocol(eventName)) { // effective date IrbProtocolHeader header = ServiceLocator.getIrbProtocolHeaderService() .getProtocolHeaderByOid((String) currentRow.firstElement(), getAgendaView().getRascalUser() ); Date cal = null; // String effectiveDate =""; String approvalDate = ""; String expirationDate = ""; if (header != null) { // cal = header.getEffectiveDate(); // effectiveDate = CalendarTransformer.toString(cal); cal = header.getIrbApprovalDate(); approvalDate = CalendarTransformer.formatMMDDYYYY(cal); cal = header.getExpirationDate(); expirationDate = CalendarTransformer.formatMMDDYYYY(cal); } // vContent.add(5, effectiveDate); vContent.add(5, approvalDate); // expriation date vContent.add(6, expirationDate); } addVectorContent(vContent, xyPosition, theStyle); vContent.removeAllElements(); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); addBoldLabelPlainText("Recommendation", getNotNullString((String) currentRow.elementAt(6), ""), theStyle ); addBoldLabelPlainText("Follow Up", getNotNullString((String) currentRow.elementAt(8), ""), theStyle ); if (i != (size - 1)) { addContent(getSpaceWithSpots(0, spotsNumber), ""); } } } } /** * TODO: DOCUMENT ME! * * @param agendaHeaderOid TODO: DOCUMENT ME! * @param label TODO: DOCUMENT ME! * @param protocolAttached TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addProtocolAttached(long agendaHeaderOid, String label, Vector protocolAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 347 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 738 |
utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = CalendarTransformer.toString(approvalDate); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } // spacer addSpacerRows(aTable, 1, 2, "8"); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell( |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbProtocolFileUploadExternalController.java | 269 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolFileUploadInternalController.java | 268 |
} if (log.isDebugEnabled()) log.debug("get post here!" + attachment.getDocumentIdentifier()); IrbAttachment att = ServiceLocator.getIrbAttachmentService().findById(id); IrbProtocolHeader currentIph = att.getIrbProtocolHeader(); if (CURascalGuardian.hasIrbRascal() || ServiceLocator.getIrbProtocolHeaderService().getAccessibleByUser( getRascalUser(), currentIph ) ) { att.setDocumentIdentifier(attachment.getDocumentIdentifier()); String activeFlag = (active.equals("Y,Y") || active.equals("A,N")) ? "Y" : "N"; if(!activeFlag.equals(att.getActive())){ IrbAttachmentHistory history = new IrbAttachmentHistory(); att.setActive(activeFlag); att.setAttachmentTypeCode(attachment.getAttachmentTypeCode()); ServiceLocator.getIrbAttachmentService().save(att); history.setIrbAttachment(att); String action = (activeFlag.equals("Y")?"Active":"Inactive"); history.setAction(action); history.setActionDate(new Date()); history.setWhoRid(getRascalUser().getId()); ServiceLocator.getIrbAttachmentHistoryService().save(history); }else{ att.setActive(activeFlag); att.setAttachmentTypeCode(attachment.getAttachmentTypeCode()); ServiceLocator.getIrbAttachmentService().save(att); } model.addAttribute("attachment", att); return "windowCloser"; } else return "updateFailed"; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 85 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 217 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 118 |
getForm().add(addDateRange()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportClinicalTrialsFirstSubmissionStatusServlet.java | 54 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportClinicalTrialsStatusServlet.java | 55 |
results = IrbReportQuery.getClinicalTrialsFirstSubmissionReport(dateRangeWhere, columns); return results; } /** * This method was created in VisualAge. * * <p>@2000 Copyright Columbia University - RASCAL. All Rights Reserved.</p> * * @return java.lang.String */ @Override public CURascalHtmlView getPage() { String beginDate = (String) getSession().getAttribute("beginDate"); String endDate = (String) getSession().getAttribute("endDate"); Vector columns = new Vector(); columns = (Vector) getSession().getAttribute("reportFields"); CURascalHtmlView view = null; if ((columns == null) || (columns.size() == 0)) { view = new IrbMessageView("You have not selected any criteria for this report."); } else { // space holder for column sort CUSortVector rows = new CUSortVector(getSelectedData(beginDate, endDate, columns)); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); rows.sortByColumn(sortBy); } else { sortBy = new String(); } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } if ((rows == null) || (rows.isEmpty())) { String link = "parent.frames[1].location='edu.columbia.rascal.presentation.irb.servlets.IrbReportLinkFrameServlet'"; String main = |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 763 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 955 |
aCell = utilGetHtmlTableCell(labelText, "25%", "center"); aRow.add(aCell); labelText = new CUHtmlText("Included"); labelText.setFontName(getDefaultFontName()); labelText.setFontSize("-2"); aCell = utilGetHtmlTableCell(labelText, "10%", "center"); aRow.add(aCell); aTable.add(aRow); // add data to the table // create list of formatted staff selected for appendix Enumeration staffTable = getOwnerSurrogate().getStaffTable().elements(); while (staffTable.hasMoreElements()) { AppendixOwnerStaffSurrogate aPerson = (AppendixOwnerStaffSurrogate) staffTable.nextElement(); if (aPerson != null) { aRow = new CUHtmlTableRow(); String aText = aPerson.getStaffName(); if ((aText == null) || (aText.trim().length() < 1)) { aText = "<img src=\"/images/blank.gif\" border=\"0\">"; } else { aText = APPENDIX_HTML_SPACE + aText; } CUHtmlText displayText = new CUHtmlText(aText); displayText.setFontName(getDefaultFontName()); displayText.setFontSize("-1"); aCell = utilGetHtmlTableCell(displayText, "35%", "left"); aRow.add(aCell); aText = aPerson.getStaffRole(); if ((aText == null) || (aText.trim().length() < 1)) { aText = "<img src=\"/images/blank.gif\" border=\"0\">"; } else { aText = APPENDIX_HTML_SPACE + aText; } displayText = new CUHtmlText(aText); displayText.setFontName(getDefaultFontName()); displayText.setFontSize("-1"); aCell = utilGetHtmlTableCell(displayText, "30%", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovedCountView.java | 52 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionCountView.java | 52 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionTimeView.java | 52 |
"?type=ApprovedCounts" + "'" ); aForm.add("<BR>"); aForm.add("<BR>"); bTable.add(pb1); aForm.add(bTable); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param result TODO: DOCUMENT ME! * @param dateRange TODO: DOCUMENT ME! */ public void addFields(Vector result, String dateRange) { CUHtmlForm aForm = getAForm(); addHeader(dateRange); aForm.add(addDate()); aForm.add("<BR>"); CUHtmlTable aTable; aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellSpacing(2); aTable.setWidth("95%"); getReportWidget(result, aTable); aForm.add(aTable); setBgColor("WHITE"); aForm.add("<TR VALIGN=\"TOP\"><TD><HR WIDTH=\"100%\"></TD></TR>"); aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellSpacing(2); aTable.setWidth("95%"); getReportTotalWidget(result, aTable); aForm.add(aTable); aForm.add("<BR> <BR>"); add(aForm); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param dateRange TODO: DOCUMENT ME! */ public void addHeader(String dateRange) { CUHtmlForm form = getAForm(); form.add("<div align=\"center\">"); form.add("<p><font face=\"Comic Sans MS\" size=\"4\"> RASCAL Reporting <br>"); form.add("Columbia University</font><br> </p> "); form.add("<p><font face=\"Comic Sans MS\"><b>" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 649 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 418 |
Vector keyList = new Vector(14); keyList.addElement(""); for (int i = 0; i < columns.size(); i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName(getDefaultFontName()); } else { text.setFontSize("1"); text.setFontName(getDefaultFontName()); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName(getDefaultFontName()); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { this.endDate = newValue; } /** * This method was created in VisualAge. * * @param newValue int */ public void setIndexOfAgency(int newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 66 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 118 |
List<Object[]> resultList = ServiceLocator.getCURascalJdbcAccessorService().executeNoParmPreparedQuery("select DISTINCT PTP.oid, PTP.trakId, PTAA.agencyName, RU.name_last, " + "RU.name_first, PTA.userId, PTB.projectBudgetBeginDate, PTB.projectBudgetEndDate, " + "PTP.finalizedOn, PT.dateTimeIn, PTP.titleAbbreviated, PTP.proposalType, " + "PTB.projectBudgetTotalAmount, PTP.deadlineDate, PTP.title, PTB.projectBudgetIndirectCost, PTB.projectBudgetDirectCost, PTB.expenseType, PTP.foreignInvolvementCountry " + "from PtProposalHeader PTP, PtAgencyAddress PTAA, PtAccessControl PTA, " + "PtBudget PTB, RASCAL_USER RU, PtTracking PT " + "where PTP.oid = PTAA.pt_header_id and RU.rid=PTA.rid and PTA.sequenceNumber = 1 " + "and PTP.oid = PTA.pt_header_id and PTP.oid = PTB.pt_header_id and " + "PTB.sequenceNumber = (select count(*) from PtBudget PB where PTP.oid = PB.pt_header_id) " + "and (PTP.oid = PT.pt_header_id(+) and PT.trackingLocation IN ('Signed Off','Logged Out','Logged In')) " + "and PTP.originatingOffice='" + deptNumber + '\'' + dateRangeWhere); for(Object[] res: resultList){ row.addElement(res[0].toString()); if(columns.contains("TrakId")){row.addElement(res[1]);i++;} if (columns.contains("PI")) { row.addElement(String.valueOf(res[3]) + ", " + res[4] + '(' + res[5] + ')'); i++; } if(columns.contains("AgencyName")){row.addElement(res[2]);i++;} if(columns.contains("ProposalType")){row.addElement(res[11]);i++;} if(columns.contains("ProjectBeginDate")){row.addElement((res[6] == null)?"":(Date)res[6]);i++;} if(columns.contains("ProjectEndDate")){row.addElement((res[7] == null)?"":(Date)res[7]);i++;} if(columns.contains("DeadlineDate")){row.addElement((res[13] == null)?"":(Date)res[13]);i++;} if(columns.contains("FinalizedDate")){row.addElement((res[8] == null)?"":(Date)res[8]);i++;} |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 398 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 485 |
edu/columbia/rascal/presentation/tc/views/TCReportSelectFieldsView.java | 303 |
int year = Integer.valueOf(currentDate.substring(6)).intValue(); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } /** * This method was created in VisualAge. * * @param aDate TODO: DOCUMENT ME! * * @return this method was created in VisualAge. */ public Object getDateText(Calendar aDate) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbPiEntryView.java | 71 |
edu/columbia/rascal/presentation/lab/pages/HzStaffEntryView.java | 79 |
setProtocolHeader((IrbProtocolHeader) bo); setOid(aOid); add(bo); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @param aTable TODO: DOCUMENT ME! * @param numbCells TODO: DOCUMENT ME! * @param appendixList TODO: DOCUMENT ME! */ public void addAppendixRows(CUHtmlTable aTable, int numbCells, ArrayList appendixList) { Vector columns = new Vector(numbCells); for (int c = 0; c < numbCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // a message CUHtmlText msg = new CUHtmlText("Check appendices in which Staff Member is to be included:"); msg.setFontName(getDefaultFontName()); msg.setFontSize("2"); msg.setAlignment("center"); aWidget = msg; columns.setElementAt(aWidget, 0); aTable.addRowFor(columns); aTable.getCell(row, 0).setColumnsToSpan(4); row++; Iterator anIterator = appendixList.iterator(); String appendixType; while (anIterator.hasNext()) { appendixType = (String) anIterator.next(); aWidget = getBooleanWidgetFor("appendix" + appendixType, true); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor( AppendixMap.toAppendixShortTitle(appendixType) ) ); aTable.getCell(row, 0).setColumnsToSpan(1); aTable.getCell(row, 2).setColumnsToSpan(2); row++; } } /** * This method was created in VisualAge. * * @param aTable TODO: DOCUMENT ME! * @param numbCells TODO: DOCUMENT ME! * @param appendixList TODO: DOCUMENT ME! * @param aStaff TODO: DOCUMENT ME! */ public void addAppendixRows(CUHtmlTable aTable, int numbCells, ArrayList appendixList, |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/auxiliary/objects/PtSearchParametersParser.java | 152 |
edu/columbia/rascal/presentation/propTrak/jdbc/PtSearchQuery.java | 193 |
try { CURascalBasicSearchParser parser = CURascalBasicSearchParser.getInstance(); if (!isEmpty(name)) { parser.initParser(quotedString(name)); srchParams.setAgencyName(parser.parse()); emptySearch = false; } if (!isEmpty(office)) { parser.initParser(quotedString(office)); srchParams.setOriginatingOffice(parser.parse()); emptySearch = false; } if (!isEmpty(originatingOfficeName)) { parser.initParser(quotedString(originatingOfficeName)); srchParams.setOriginatingOfficeName(parser.parse()); emptySearch = false; } if (!isEmpty(agencyCode)) { parser.initParser(quotedString(agencyCode)); srchParams.setAgencyCode(parser.parse()); emptySearch = false; } if (!isEmpty(flowThruAgency)) { parser.initParser(quotedString(flowThruAgency)); srchParams.setFlowThruAgency(parser.parse()); emptySearch = false; } if (!isEmpty(deadlineDate) && !(deadlineDate.trim().equals("00/00/0000"))) { parser.initParser(deadlineDate); srchParams.setDeadlineDate(parseRascalDate(deadlineDate)); emptySearch = false; } if (!isEmpty(rascalUser)) { parser.initParser(rascalUser); srchParams.setRascalUser(parser.parse()); emptySearch = false; } if (!isEmpty(rid)) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 82 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 86 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 218 |
getForm().add("<br><br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbDocSearchQueryFormat.java | 293 |
edu/columbia/rascal/presentation/irb/jdbc/IrbDocSearchQueryFormat.java | 479 |
String whereRascalUser = ""; String whereParticipantNameLast = ""; String whereOriginatingOffice = ""; String whereOriginatingOfficeName = ""; String whereDrugDeviceBiologic = ""; String whereHumanSpecimen = ""; String wherePreviousProtocolNumber = ""; String wherePaperProtocolNumber = ""; String whereTitle = ""; // Variables for joining tables String whereHEADERxDEPT = ""; String whereHEADERxPRODUCT = ""; String whereHEADERxHUMANSPECIMEN = ""; CURascalBasicSearchParameter rascalUserUni = params.getRascalUserUni(); CURascalBasicSearchParameter rascalUser = params.getRascalUser(); if (isNotEmpty(rascalUser) || isNotEmpty(rascalUserUni)) { if (isNotEmpty(rascalUserUni)) whereRascalUser = buildWhereClauseForSelection(rascalUserUni, "ru.user_id"); else whereRascalUser = buildWhereClauseForSelection(rascalUser, "ru.name_last"); whereParticipantNameLast = " AND t2.oid IN (SELECT DISTINCT staff.irbProtocolHeaderId FROM IrbStaff staff, RASCAL_USER ru WHERE staff.rid = ru.rid" + whereRascalUser + ")"; } CURascalBasicSearchParameter originatingDepartment = params.getOriginatingDepartment(); if (isNotEmpty(originatingDepartment)) { whereOriginatingOffice = buildWhereClauseForSelection(originatingDepartment, "t2.originatingDepartment" ); } CURascalBasicSearchParameter originatingDepartmentName = params.getOriginatingDepartmentName(); if (isNotEmpty(originatingDepartmentName)) { fromDEPARTMENT = ", RascalDepartment t6"; whereHEADERxDEPT = " AND t2.originatingDepartment = t6.code"; whereOriginatingOfficeName = buildWhereClauseForSelection(originatingDepartmentName, "t6.name" ); } CURascalBasicSearchParameter drugDeviceBiologic = params.getDrugDeviceBiologic(); if (isNotEmpty(drugDeviceBiologic)) { fromINVESTIGATIONALPRODUCT = ", IrbInvestigationalProduct tIp"; whereDrugDeviceBiologic = buildWhereClauseForSelection(drugDeviceBiologic, "tIp.name"); whereHEADERxPRODUCT = " AND tIp.irbProtocolHeaderId = t2.oid"; } CURascalBasicSearchParameter humanSpecimen = params.getHumanSpecimen(); if (isNotEmpty(humanSpecimen)) { fromHUMANSPECIMEN = " , IrbHumanSpecimen t7"; whereHumanSpecimen = buildWhereClauseForSelection(humanSpecimen, "t7.description"); whereHEADERxHUMANSPECIMEN = " AND t7.irbProtocolHeaderId = t2.oid"; } CURascalBasicSearchParameter title = params.getTitle(); if (isNotEmpty(title)) { whereTitle = buildWhereClauseForSelectionTitle(title, "t2.title"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 5086 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 5212 |
int fundingSize = funding.size(); for (int i = 0; i < fundingSize; i++) { if (i > 0) aSql.append(" or "); aSql.append("f.type = '"); aSql.append((String) funding.elementAt(i)); aSql.append('\''); } aSql.append(") "); aSql.append("and ("); for (int i = 0; i < event.size(); i++) { if (i > 0) aSql.append(" or "); String eventType = (String) event.elementAt(i); if (eventType.equals("Protocol")) { aSql.append(" ( protocolYear = 1 and modificationNumber = 0 ) "); } else if (eventType.equals("Renewal")) { aSql.append(" ( protocolYear != 1 and modificationNumber = 0 ) "); } else if (eventType.equals("Modification")) { aSql.append(" ( modificationNumber != 0 ) "); } } aSql.append(") "); aSql.append("and c.protocolRole = 'Principal Investigator' "); aSql.append( "and d.oid = (select max(z.oid) from IrbStatus z where z.parentObjectName = 'ProtocolHeader' and z.parentObjectOid = b.oid and z.statusName = '" ); aSql.append(status); aSql.append("' and (z.statusDate > '"); aSql.append(CalendarTransformer.formatOraDate(start)); aSql.append("') and (z.statusDate < '"); aSql.append(CalendarTransformer.formatOraDate(end)); aSql.append("')) "); if (unterm && status.equalsIgnoreCase("Expired")) aSql.append("and i.oid > 0 "); /*********************************************************************************************************************************************/ /*********************************************************************************************************************************************/ aSql.append(" UNION "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 260 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 228 |
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 398 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 213 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 172 |
int year = Integer.parseInt(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixASafetyOfficerApprovalView.java | 189 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 191 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 190 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDSafetyOfficerApprovalView.java | 148 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 193 |
aCell1 = utilGetHtmlTableCell(utilGetHtmlText(APPROVAL_NUMBER, defaultFontSize, true, false), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_6_EHSNumber("6"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { String recipientsLabel = "Send Approval Notice to:</b><br>(UNIs and/or email addresses separated by commas)"; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(recipientsLabel, defaultFontSize, true, false ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_NoticeRecipients("recipients"), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } // set up safety officer approval information AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(APPROVAL_SAFETY_OFFICER, defaultFontSize, |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 485 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 347 |
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 113 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 388 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 404 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 321 |
edu/columbia/rascal/presentation/tc/views/TCReportSelectFieldsView.java | 303 |
int year = Integer.valueOf(currentDate.substring(6)); CUHtmlTable table = getTable(1, 4); CUHtmlList monthWidget = (CUHtmlList) getMonthWidget(monthFieldName, monthIndex ); monthWidget.setOnChange("setMonth(" + dateFieldName + "," + monthFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 0).add(monthWidget); CUHtmlList dayWidget = (CUHtmlList) getDayWidget(dayFieldName, dayIndex); dayWidget.setOnChange("setDay(" + dateFieldName + "," + dayFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 1).add(dayWidget); CUHtmlList yearWidget = (CUHtmlList) getYearWidget(yearFieldName, year); yearWidget.setOnChange("setYear(" + dateFieldName + "," + yearFieldName + ");setDate(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + "," + yearFieldName + ");checkDayMonth(" + dateFieldName + "," + monthFieldName + "," + dayFieldName + ");" ); table.getCell(0, 2).add(yearWidget); table.getCell(0, 3).add(getHiddenWidgetFor(dateFieldName, currentDate)); table.setBorderWidth(0); table.setWidth("80"); return table; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 832 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 910 |
disclosures = coiDisclosureService.findByDepartmentsAndTypeNotLikeAndStatusAndAnomalyBetweenDates(deptCodes,CoiConstants.IRB, CoiConstants.SUBMITTED, true, start, end); } Map<String, String> departmentNames = rascalDepartmentService.getDeptNameByDeptNumbers(deptCodes); for (CoiDisclosure disclosure : disclosures) { dataMap = new HashMap<String, Object>(); dataMap.put("submitteddate", disclosure.getSubmissionDate().toDate().getTime()); dataMap.put("disclosuredepartment", disclosure.getDeptCode() + "-" + disclosure.getDeptName()); dataMap.put("status", disclosure.getStatus()); dataMap.put("hasanomalies", disclosure.getHasAnomaly()); dataMap.put("id", disclosure.getId()); tmpUser = disclosure.getCreatedBy(); dataMap.put("userid", tmpUser.getId()); dataMap.put("username", tmpUser.getUserLastFirstNameUni()); dataMap.put("firstname", tmpUser.getNameFirst()); dataMap.put("lastname", tmpUser.getNameLast()); dataMap.put("uni", tmpUser.getUserId()); String userEmail = tmpUser.getEmailPreferred(); dataMap.put("email", userEmail); String deptHome = tmpUser.getDeptHome(); dataMap.put("department", deptHome + "-" + departmentNames.get(deptHome)); data.add(dataMap); } sortDisclosureListFilingStatus(data); return data; } @RequestMapping(value = "/{deptCode}/from/{startDate}/to/{endDate}/{enableFilter}/clearedByDepartmentReport.xls", method = RequestMethod.GET) |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse30DaysWarningTask.java | 158 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseNotifyTask.java | 115 |
} /** * TODO: DOCUMENT ME! * * @param deptCode TODO: DOCUMENT ME! * @param message TODO: DOCUMENT ME! * @param subject TODO: DOCUMENT ME! */ public void generateDAEmail(String deptCode, String message, String subject) { List<List<Object>> deptAdmins = ServiceLocator.getRuAuthorizedDepartmentService() .getDeptAdminsByDeptCodeApplyId(deptCode, "Tc"); for(List<Object> currentRow: deptAdmins){ String aUserEmail = (String) currentRow.get(3); if ((aUserEmail == null) || aUserEmail.equals("") || (!aUserEmail.contains("@"))) aUserEmail = currentRow.get(0) + "@columbia.edu "; StringBuilder buff = new StringBuilder(200); buff.append("Attempting to email: DA- ("); buff.append(currentRow.get(1)); buff.append(' '); buff.append(currentRow.get(2)); buff.append(" ("); buff.append(currentRow.get(0)); buff.append(") Address to be sent to: "); buff.append(aUserEmail); CURascalEmailMessage email = null; // sent email email = new TCGeneralEmailMessage(currentRow.get(1) + " " + currentRow.get(2), aUserEmail, subject, message, RascalProperties.getProperty("DbUserId") ); CURascalEmailSender sender = new CURascalEmailSender(); try { sender.openConnection(); log.info(buff.toString()); sender.sendEmail(email); } catch (Exception e) { log.error("Exception while sending department authorization email.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 678 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 556 |
aTitle1 = getTableColumnName("Status"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendices aTitle = getTableColumnName("Appendices"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); header.setColumnsToSpan(6); // Appendix A aTitle1 = getTableColumnName("A"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix B aTitle1 = getTableColumnName("B"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix C aTitle1 = getTableColumnName("C"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix D aTitle1 = getTableColumnName("D"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix E aTitle1 = getTableColumnName("E"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix F aTitle1 = getTableColumnName("F"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Strong Radio Frequency aTitle1 = getTableColumnName("SRF"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaOldBusinessView.java | 300 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaOldBusinessView.java | 378 |
public void setOldBusinessTableDataRow(CUHtmlTable aTable, IrbAgendaEvent aTopic) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; String topic = aTopic.getEventAbstract(); String protocolNumber = blank; String eventName = aTopic.getEventName(); if (eventName.startsWith("Protocol") || eventName.startsWith("Modification") || eventName.startsWith("Renewal") ) eventName = "ProtocolHeader"; if ((topic == null) || topic.trim().equals("")) topic = blank; IrbTraceableBusinessObject object = ServiceLocator.getIrbProtocolService().getParentObject( eventName, aTopic.getEventOid() + "", getRascalUser() ); if (object != null) protocolNumber = object.getProtocolNumber(); // protocol Number CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getWidgetFor(protocolNumber)); cell0.setAlign("left"); aRow.add(cell0); // event name CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(getWidgetFor(aTopic.getEventName())); cell2.setAlign("left"); aRow.add(cell2); // Comments CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getWidgetFor(PersistentTextFormatter.insertHtmlTagsForControls(topic))); cell1.setAlign("left"); aRow.add(cell1); // Modify CUHtmlImage modify = new CUHtmlImage("/images/popup.gif"); modify.setBorderWidth(0); modify.setAlt("Modify"); modify.setLink("''"); modify.setOnClick( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHazardousMaterialView.java | 518 |
edu/columbia/rascal/presentation/lab/pages/HzHazardousMaterialView.java | 371 |
log.error(e); } } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param rowCount int * @param hazardKind String * @param helpName String * @param isRequired boolean * @param aTracker AppendixTracking * @param appendixType String * @param appendixNumber String */ public void setHazardsListTableDataRow(CUHtmlTable aTable, int rowCount, String hazardKind, String helpName, boolean isRequired, AppendixTracking aTracker, String appendixType, String appendixNumber ) { int cellNum = 0; // Hazard CUHtmlTableCell cell = aTable.getCell(rowCount, cellNum); cell.add(getRowLabelFor(hazardKind, helpName)); cell.setAlign("left"); cellNum++; // default attach button // or check box for RadioIsotope, Strong Radio Frequency & X-ray if (hazardKind.equals(KEY_HAZZARD_KIND11) || hazardKind.equals(KEY_HAZZARD_KIND8) || hazardKind.equals(KEY_HAZZARD_KIND6) ) { cell = aTable.getCell(rowCount, cellNum); cell.add(getBooleanWidgetFor(hazardKind, isRequired)); cell.setAlign("center"); } else { String servlet; CUHtmlImage im = new CUHtmlImage("/images/popup.gif"); im.setAlt("Input"); servlet = AppendixDisplaySelectionListServlet.class.getName() + "?" + KEY_PARM_APPENDIX_TYPE + "=" + appendixType; im.setLink("''"); im.setOnClick( "return openNew('" + servlet + "','AttachAppendix'," + "'toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=400')\"" ); im.setBorderWidth(0); cell = aTable.getCell(rowCount, cellNum); cell.add(im); cell.setAlign("center"); cell.setVAlign("center"); } cellNum++; // view/print link cell = aTable.getCell(rowCount, cellNum); if ((appendixNumber != null) && (appendixNumber.trim().length() > 1)) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtParticipantEntryServlet.java | 85 |
edu/columbia/rascal/presentation/propTrak/servlets/PtPiEntryServlet.java | 87 |
} catch (Exception e) { } Long oid = null; try { if (oidStr != null) oid = Long.valueOf(oidStr); } catch (Exception e) { } if ((aUser == null) || (aUser.getUserId() == null) || (aUser.getUserId().length() < 1) || !aUser.getUserId().equals(s) ) { PtMessageView mv = new PtMessageView( "The ID you have entered is an invalid Columbia University UNI or an invalid Rascal ID or the user may have never logged in to Rascal. Please check to make sure that you have entered the UNI/ID correctly." ); mv.draw(getResponse()); // DO NOT // create a new user // Based on the new framework, we don't do this anymore /* * RascalUser newUser = new RascalUser(s); newUser.setNameLast("Name Unknown"); * getSession().setAttribute("rascalUni", s); * getSession().setAttribute("participantType",getRequestParameter("participantType")); * saveParticipantValues(newUser); PtMessageView mv = new PtMessageView("This user is * unknown to Rascal. Please make sure that they log on and enter their personal * information.", "Close Window"); mv.draw(getResponse()); */ } else { try { PtProposalHeader ph = getProposal(); PtAccessControl editedStaff = null; getSession().setAttribute("rascalUni", s.trim()); getSession().setAttribute("participantType", role); List<PtAccessControl> currentStaffList = new Vector<PtAccessControl>(ServiceLocator .getPtAccessControlService().findByPtProposalHeader(ph) ); List<PtApproval> currentApproveList = ServiceLocator.getPtApprovalService() .findByPtProposalHeader(ph); if (oid != null) editedStaff = ServiceLocator.getPtAccessControlService().findById(oid); if (checkConflicts(aUser, ph, role, editView, editedStaff, currentStaffList)) saveParticipantValues(aUser, ph, role, editView, editedStaff, currentStaffList, currentApproveList ); PrintWriter out = getResponse().getWriter(); out.println( "<html><body onLoad=\"opener.location.href=opener.location.href;window.close();\"></body></html>" ); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 608 |
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 1595 |
buff.append("order by U.rid "); String email = null; // this is to get the headers by Rid of the User try { @SuppressWarnings("unchecked") List<Object[]> resultList = ServiceLocator.getCURascalJdbcAccessorService().executeNoParmPreparedQuery(buff.toString()); for(Object[] res: resultList){ row = new HashMap<String, Object>(); row.put("anRid", ((BigDecimal) res[3]).intValue()); row.put("nameString", ((res[2] == null) ? "" : res[2]) + " " + ((res[1] == null) ? "" : res[1]) ); row.put("userId", (res[1] == null) ? "" : res[0]); email = (String)res[4]; if (email == null) row.put("emailPreferred", res[0] + "@columbia.edu"); else row.put("emailPreferred", email); row.put("userDept", (res[5] == null) ? "" : res[5]); row.put("datePassed", res[9]); row.put("numberDaysOverdue", String.valueOf(((BigDecimal)(res[10])).intValue())); row.put("courseOid", (res[6] == null) ? "" : res[6]); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 89 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 82 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 119 |
getForm().add("<br><br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 162 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 160 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 147 |
IrbReportApprovalStatusDateRangeServlet.class.getName() + "'" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); // date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText addDateRange() { String t = null; if (getBeginDate().equals("00/00/0000") || getEndDate().equals("00/00/0000")) { t = "All Proposals"; } else { t = "Between: " + getBeginDate() + " And " + getEndDate(); } CUHtmlText dateRange = new CUHtmlText(t); dateRange.setFontSize("-1"); dateRange.setIsBold(false); dateRange.setAlignment("center"); dateRange.setFontName(getDefaultFontName()); return dateRange; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setWidth("95%"); t.setAlign("center"); Object dateObj = null; |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 1002 |
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 1102 |
query.append(" order by U.user_id,TC.COURSENUMBER "); /* select distinct U.user_id, U.name_last, U.name_first, U.rid, U.email_preferred, U.dept_home, TC.COURSENUMBER,TC.TITLE ,TR.TC_COURSEHEADER_ID from RASCAL_USER U, TCCourseHeader TC, TCUserHeader UH , TCUSERREQUIREDCOURSE TR where U.rid = UH.rid AND TC.oid = UH.tc_courseheader_id and TC.expiresAfter > 0 //and TC.ISRELEASED='Y' and to_char((add_months(UH.datePassed, 12*TC.expiresAfter)- 30),'MM-DD-YYYY')= to_char(sysdate,'MM-DD-YYYY') and U.RID=14454 and UH.TC_COURSEHEADER_ID = TR.TC_COURSEHEADER_ID(+) */ try { @SuppressWarnings("unchecked") List<Object[]> resultList = ServiceLocator.getCURascalJdbcAccessorService().executeNoParmPreparedQuery(query.toString()); for(Object[] res: resultList){ row = new HashMap<String, Object>(); if (res[0] != null) { row.put("uni", res[0]); } else { row.put("uni", ""); } if (res[1] != null) { row.put("nameLast", res[1]); } else { row.put("nameLast", ""); } if (res[2] != null) { row.put("nameFirst", res[2]); } else { row.put("nameFirst", ""); } row.put("rid", res[3]); if (res[4] != null) { row.put("emailPreferred", res[4]); } else { row.put("emailPreferred", ""); } if (res[5] != null) { row.put("deptCode", res[5]); } else { row.put("deptCode", ""); } if (res[6] != null) { row.put("courseNumber", res[6]); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinuteHistoryDateRangeServlet.java | 63 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaReportDateRangeServlet.java | 73 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportHistoryDateRangeServlet.java | 73 |
if (((endDate = getRequestParameter("endDate")) != null) && !endDate.trim().equals("")) { String range = getRequestParameter("range"); Calendar startDay = CalendarTransformer.toCalendar(endDate); Calendar oneMoreDay = CalendarTransformer.toCalendar(endDate); oneMoreDay.add(Calendar.DATE, 1); if (range.startsWith("Year")) { startDay.add(Calendar.MONTH, -12); } else if (range.startsWith("Quarter")) { startDay.add(Calendar.MONTH, -3); } else if (range.startsWith("Month")) { startDay.add(Calendar.MONTH, -1); } else if (range.startsWith("Week")) { startDay.add(Calendar.DATE, -7); } else if (range.startsWith("Day")) { startDay.add(Calendar.DATE, -1); } startDay.setLenient(true); String beginDate = CalendarTransformer.toString(startDay); String endingDate = CalendarTransformer.toString(oneMoreDay); if (range.startsWith("to Date")) { getSession().setAttribute("beginDate", ""); getSession().setAttribute("endDate", CalendarTransformer.toString(Calendar.getInstance()) ); } else { getSession().setAttribute("beginDate", beginDate); getSession().setAttribute("endDate", endingDate); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaEventSearchServlet.java | 126 |
edu/columbia/rascal/presentation/agenda/servlets/IrbMinuteSearchServlet.java | 158 |
String query; String pageInfoKeyword = (String) keywords.get("IrbAgendaSearchDisplayPageInfo"); String pagesCacheKeyword = (String) keywords.get("IrbAgendaSearchDisplayPagesCached"); try { srchParams = buildSearchParams(this); getSession().setAttribute("searchParameters", srchParams); } catch (edu.columbia.rascal.presentation.common.parser.CURascalParseException e) { handleException(e); return; } if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbAgendaDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new IrbAgendaResultsDisplayView(pageInfo.getDisplayPage(), pageInfo.getPageBeginPos(), pageInfo.getPageSize(), pageInfo.getTotalMatch(), pageInfo.getMaxPageSize(), getUser(), "Agenda" |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbUnanticipatedFileUploadController.java | 212 |
edu/columbia/rascal/presentation/controller/irb/IrbUnanticipatedFileUploadInternalController.java | 208 |
) throws SQLException, IOException { IrbUnanticipatedAttachment attachment = ServiceLocator .getIrbUnanticipatedAttachmentService().findById(unanticipatedOid); if (attachment != null) { IrbUnanticipatedProblem currentIph = attachment.getIrbUnanticipatedProblem(); if (CURascalGuardian.hasIrbRascal() || ServiceLocator.getIrbUnanticipatedProblemService().getAccessibleByUser( getRascalUser(), currentIph ) ) { InputStream content = attachment.getBlob().getBinaryStream(); response.setContentType(attachment.getContentType()); response.setHeader("Content-Disposition", "attachment; filename=\"" + attachment.getFileName() + "\"" ); FileCopyUtils.copy(content, response.getOutputStream()); response.getOutputStream().flush(); response.getOutputStream().close(); return null; } } return new ModelAndView("uploadFailure"); } /** * TODO: DOCUMENT ME! * * @param dataBinder TODO: DOCUMENT ME! */ @InitBinder("attachment") public void initBinder(ServletRequestDataBinder dataBinder) { dataBinder.setAllowedFields( "oid", "documentIdentifier", "dateCreated", "fileName"); } /** * TODO: DOCUMENT ME! * * @param t TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ @ExceptionHandler(ResourceNotFoundException.class) public String notFoundException(Throwable t) { return "updateFailed"; } /** * TODO: DOCUMENT ME! * * @param attachment TODO: DOCUMENT ME! * @param result TODO: DOCUMENT ME! * @param model TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws IOException TODO: DOCUMENT ME! */ @RequestMapping( value = "edit", method = RequestMethod.PUT ) public String update(HttpServletRequest request, @ModelAttribute("attachment") @Valid IrbUnanticipatedAttachment attachment, BindingResult result, ModelMap model, @RequestParam("id") Long id ) { if (result.hasErrors()) { model.addAttribute("attachment", attachment); return "irb/unanticipated/attachment/update"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 445 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 1191 |
whereSql.append(" and b.keywordCode = c.code(+)"); } } sql.append(selectSql); sql.append(fromSql); sql.append(whereSql); try { java.sql.ResultSet res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( sql.toString() ); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventoid if (isProtocol(eventName)) row.addElement(res.getString(3) + "(Y" + res.getString(10) + "M" + res.getString(11) + ")" ); // protocol number else row.addElement(res.getString(3)); // protocol number row.addElement(res.getString(4)); row.addElement(res.getString(5)); // title row.addElement(res.getString(6)); // PI row.addElement(Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString()); // protocol parent row.addElement(Integer.valueOf((new Float(res.getFloat(8))).intValue()).toString()); // agenda eventOid row.addElement(res.getString(9)); // event abstract/meeting notes |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportProtocolHazMatView.java | 333 |
edu/columbia/rascal/presentation/appendix/pages/AppendixReportPtHazMatView.java | 320 |
setSubTitle("Approved Protocols with Hazardous Materials"); add(getSubTitle()); } /** * TODO: DOCUMENT ME! * * @param queue TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable buildHazMatReportTable(Vector queue) { int rowCount = 0; Hashtable queueItem = null; CUHtmlTable aTable = getTable(getRowSizeForQueueView(queue), getColumnSizeForQueueView() ); aTable.setBorderWidth(0); aTable.setWidth("100%"); aTable.setAlign("left"); setHazMatReportTableHead(aTable); rowCount++; Enumeration hazMatQueue = queue.elements(); while (hazMatQueue.hasMoreElements()) { queueItem = (Hashtable) hazMatQueue.nextElement(); if ((queueItem != null) && !queueItem.isEmpty()) { setHazMatReportTableDataRow(aTable, rowCount++, queueItem); } } return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public java.lang.String getApplication() { return application; } /** @see edu.columbia.rascal.presentation.appendix.pages.AppendixQueueView#getColumnSizeForQueueView() */ @Override public int getColumnSizeForQueueView() { return 12; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public boolean getDownloadable() { return downloadable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public java.lang.String getFromDate() { return fromDate; } /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixQueueView#getInstruction(java.lang.String) */ @Override public CUHtmlText getInstruction(String instruction) { CUHtmlText aText = null; if (instruction instanceof String) { aText = new CUHtmlText(instruction); aText.setIsBold(true); aText.setFontSize("+1"); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); } return aText; } /** @see edu.columbia.rascal.presentation.appendix.pages.AppendixQueueView#getKeywordListForColumns() */ @Override public Vector getKeywordListForColumns() { Vector keyList = new Vector(12); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 832 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 910 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 989 |
disclosures = coiDisclosureService.findByDepartmentsAndTypeNotLikeAndStatusAndAnomalyBetweenDates(deptCodes,CoiConstants.IRB, CoiConstants.SUBMITTED, true, start, end); } Map<String, String> departmentNames = rascalDepartmentService.getDeptNameByDeptNumbers(deptCodes); for (CoiDisclosure disclosure : disclosures) { dataMap = new HashMap<String, Object>(); dataMap.put("submitteddate", disclosure.getSubmissionDate().toDate().getTime()); dataMap.put("disclosuredepartment", disclosure.getDeptCode() + "-" + disclosure.getDeptName()); dataMap.put("status", disclosure.getStatus()); dataMap.put("hasanomalies", disclosure.getHasAnomaly()); dataMap.put("id", disclosure.getId()); tmpUser = disclosure.getCreatedBy(); dataMap.put("userid", tmpUser.getId()); dataMap.put("username", tmpUser.getUserLastFirstNameUni()); dataMap.put("firstname", tmpUser.getNameFirst()); dataMap.put("lastname", tmpUser.getNameLast()); dataMap.put("uni", tmpUser.getUserId()); String userEmail = tmpUser.getEmailPreferred(); dataMap.put("email", userEmail); String deptHome = tmpUser.getDeptHome(); dataMap.put("department", deptHome + "-" + departmentNames.get(deptHome)); data.add(dataMap); } sortDisclosureListFilingStatus(data); return data; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 182 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 163 |
txt.setAlignment("left"); return txt; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText getSubTitle() { return subTitle; } /** * This method was created in VisualAge. * * @param rows int - the number of required rows * @param cells int - the number of cell within each row * * @return edu.columbia.rascal.presentation.fo.alertService.html.CUHtmlTable */ @Override public CUHtmlTable getTable(int rows, int cells) { int rowsCounter; Vector v = new Vector(); for (rowsCounter = 1; rowsCounter <= rows; rowsCounter++) { CUHtmlTableRow aRow = new CUHtmlTableRow(); int cellCounter; for (cellCounter = 1; cellCounter <= cells; cellCounter++) { aRow.add(new CUHtmlTableCell()); } v.addElement(aRow); } return (new CUHtmlTable(v)); } /** * This method was created in VisualAge. * * @param label TODO: DOCUMENT ME! * * @return Object */ public Object getTextWidgetFor(String label) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 114 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 118 |
getUrlToViewForDownload("A", getServletName(), "PtReportLoggedIn") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!getPrintable()) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton( "BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + PtReportAdministrativeMenuServlet.class.getName() + "';" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector elements = new Vector(8); elements.addElement(getWidgetFor("TrakId")); elements.addElement(getWidgetFor("")); elements.addElement(getWidgetFor("Originating Office")); elements.addElement(getWidgetFor("PI")); elements.addElement(getWidgetFor("Agency Name")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 97 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 92 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 85 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 89 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 221 |
if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 146 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 228 |
); add(getSubTitle()); } /** * This method was created in VisualAge. * * @param queue Vector * * @return CUHtmlTable */ public CUHtmlTable buildAnimalCareQueueView(Vector queue) { int rowCount = 0; Hashtable queueItem = null; CUHtmlTable aTable = getTable(getRowSizeForQueueView(queue), getColumnSizeForAnimalCareQueueView() ); aTable.setBorderWidth(0); // aTable.setCellPading(5); // aTable.setCellSpacing(0); aTable.setWidth("100%"); aTable.setAlign("left"); setAnimalCareQueueTableHead(aTable); rowCount++; rowCount++; Enumeration animalCareQueue = queue.elements(); while (animalCareQueue.hasMoreElements()) { queueItem = (Hashtable) animalCareQueue.nextElement(); if ((queueItem != null) && !queueItem.isEmpty()) { setAnimalCareQueueViewTableDataRow(aTable, rowCount++, queueItem ); } } return aTable; } /** * This method was created in VisualAge. * * @param queue Vector * * @return CUHtmlTable */ public CUHtmlTable buildIrbQueueView(Vector queue) { int rowCount = 0; Hashtable queueItem = null; CUHtmlTable aTable = getTable(getRowSizeForQueueView(queue), getColumnSizeForIrbQueueView() ); aTable.setBorderWidth(0); // aTable.setCellPading(5); // aTable.setCellSpacing(0); aTable.setWidth("100%"); aTable.setAlign("left"); setIrbQueueTableHead(aTable); rowCount++; rowCount++; Enumeration irbQueue = queue.elements(); while (irbQueue.hasMoreElements()) { queueItem = (Hashtable) irbQueue.nextElement(); if ((queueItem != null) && !queueItem.isEmpty()) { setIrbQueueViewTableDataRow(aTable, rowCount++, queueItem); } } return aTable; } /** * This method was created in VisualAge. * * @param queue Vector * * @return CUHtmlTable */ public CUHtmlTable buildQueueView(Vector queue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 230 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolPDFApprovalLetterView.java | 193 |
float lastLineOverflow = 0; float lastLabelOverflow = 0; float overflow = 0; float oriHeight = getHeight(); if (style == null) style = getStyle(); if (style2 == null) style2 = getStyle(); PDFPage originalPage = getPDFObject().getPage(originalPageNum - 1); // oldPage; setPDFPage(originalPage); // setPageFeature(); getPDFPage().setStyle(style); // this variable is determined which one between label and content overflowed more pages. PDFPage labelPage = null; StringTokenizer labelToken = new StringTokenizer(label, "\n", true); String nextTokenValue = ""; float lineSpace = style.getFontLeading(); while (labelToken.hasMoreElements()) { nextTokenValue = labelToken.nextElement().toString(); overflow = addContentItem(getPDFPage(), nextTokenValue, getLeftPageMargin(), getLeftStarting(), style ); if (overflow == 0) { // overflow = lineSpace; } if (previousPageNum == getPDFPage().getPageNumber()) { lastLabelOverflow += overflow; setHeight(getHeight() - overflow); } else { // new page created. lastLabelOverflow = overflow; previousPageNum = getPDFPage().getPageNumber(); setPDFPage(getPDFObject().getPage(previousPageNum - 1)); setHeight(getPageHeight() - getTopPageMargin() - overflow); // need a extra for // the new page } } // after drawing label, the stop of the label page labelPage = getPDFPage(); // reset the original page, just in case originalPage = getPDFObject().getPage(originalPageNum - 1); StringTokenizer contentToken = new StringTokenizer(content, "\n", true); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucApprovedProtocolRptController.java | 51 |
edu/columbia/rascal/presentation/controller/iacuc/IacucApprovedProtocolWithPainRptController.java | 49 |
@RequestMapping(method=RequestMethod.GET) public String loadNewDocument(Model model) { if(!model.containsAttribute("command")){ ReportCommand command = new ReportCommand(); Date endDate = new Date(); command.setEndDate(endDate); Date startDate = DateUtils.addMonths(endDate, -6); command.setStartDate(startDate); command.setNew(true); model.addAttribute("command", command); } return JSP_VIEW; } @RequestMapping(method=RequestMethod.POST) public String saveNewDocument(@Valid @ModelAttribute ReportCommand command, Model model) { Date sDate = command.getStartDate(); sDate = DateUtils.addMonths(sDate, 6); Date endDate = command.getEndDate(); if (endDate.after(sDate) ) model.addAttribute("errMessage", "You may only select a date range of up to 6 months in length. "); command.setNew(false); model.addAttribute("command", command); model.addAttribute("searchTime", (new Date()).toString()); return loadNewDocument(model); } @RequestMapping(method=RequestMethod.GET, value="/list") public @ResponseBody List<Map<String, Object>> ptotocols(@ModelAttribute("command") ReportCommand command, Model model) throws ParseException { return getApprovedProtocolData(command); } private String convertDateToString(Date someDate){ |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/pt/PtGeneralInformationController.java | 323 |
edu/columbia/rascal/presentation/controller/pt/PtGeneralInformationController.java | 367 |
public ModelAndView saveNewProposal(@ModelAttribute("proposal") @Valid PtProposalHeader proposal, BindingResult proposalBindingResult) { rascalDepartmentValidator.validate(proposal.getOriginatingOffice(), proposalBindingResult); if (proposalBindingResult.hasErrors()) { final RascalUser currentUser = rascalUserService.findByUserId(SecurityContextHolder.getContext() .getAuthentication().getName()); final ModelAndView mav = new ModelAndView("pt.proposalGeneral"); // A non-null id implies the object has already been persisted if (proposal.getId() != null) { mav.addAllObjects(proposalBindingResult.getModel()); } final RascalDepartment dept = rascalDepartmentService.getRascalDepartmentByCode(proposal.getOriginatingOffice()); if (dept != null) { mav.addObject("deptName", dept.getName()); } mav.addObject("approversSigned", checkApprovers(proposal)); mav.addObject("recordHeading", recordHeading(proposal, currentUser)); mav.addObject("affiliations", rascalAffiliatedInstitutionService.findAll(new Sort("name"))); mav.addObject("countries", rascalCountryService.findAll(new Sort("country"))); mav.addObject("ptDeadlineTypes", rascalPtDeadlineTypeService.findAll(new Sort("orderBy"))); return mav; } proposal = ptProposalHeaderService.save(proposal); proposal.setTrakId(proposal.getTrakId()); return new ModelAndView(new RedirectView("/pt/proposal/" + proposal.getTrakId())); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucAllStaffsRptController.java | 42 |
edu/columbia/rascal/presentation/controller/iacuc/IacucApprovedProtocolWithPainRptController.java | 46 |
edu/columbia/rascal/presentation/controller/iacuc/IacucProtocolsSetToExpireRptController.java | 44 |
@Resource private IacucProtocolHeaderService iacucProtocolHeaderService; @RequestMapping(method=RequestMethod.GET) public String loadNewDocument(Model model) { if(!model.containsAttribute("command")){ ReportCommand command = new ReportCommand(); Date endDate = new Date(); command.setEndDate(endDate); Date startDate = DateUtils.addMonths(endDate, -6); command.setStartDate(startDate); command.setNew(true); model.addAttribute("command", command); } return JSP_VIEW; } @RequestMapping(method=RequestMethod.POST) public String saveNewDocument(@Valid @ModelAttribute ReportCommand command, Model model) { Date sDate = command.getStartDate(); sDate = DateUtils.addMonths(sDate, 6); Date endDate = command.getEndDate(); if (endDate.after(sDate) ) model.addAttribute("errMessage", "You may only select a date range of up to 6 months in length. "); command.setNew(false); model.addAttribute("command", command); model.addAttribute("searchTime", (new Date()).toString()); return loadNewDocument(model); } @RequestMapping(method=RequestMethod.GET, value="/list") public @ResponseBody List<Map<String, Object>> ptotocols(@ModelAttribute("command") ReportCommand command, Model model) throws ParseException { return getAllStaffsData(command); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 348 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 469 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2011 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2099 |
public static Vector buildCurrentActivityReportResult(java.sql.ResultSet res, String name) { Vector results = new Vector(); Hashtable row = new Hashtable(); int protocalyear = 0; int modificationNumber = 0; try { if (name.equals(IrbNameConstants.PROTOCOL_HEADER)) { while (res.next()) { protocalyear = res.getInt(4); modificationNumber = res.getInt(5); if ((protocalyear == 1) && (modificationNumber == 0)) { row.put("EventName", "Protocol"); } else if (modificationNumber > 0) { row.put("EventName", "Modification"); } else if ((protocalyear > 1) && (modificationNumber == 0)) { row.put("EventName", "Renewal"); } row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolNumber", "IRB-" + res.getString(3)); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString() ); row.put("PI", res.getString(7)); row.put("Committee", res.getString(8)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS2590Servlet.java | 782 |
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS398Servlet.java | 845 |
String holdAddress1 = this.localRascalUser.getAddressLine1(); String holdAddress2 = this.localRascalUser.getAddressLine2(); String holdAddress3 = this.localRascalUser.getAddressLine3(); String holdAddress4 = this.localRascalUser.getAddressLine4(); String city = this.localRascalUser.getCity(); String state = this.localRascalUser.getState(); String zipCode = this.localRascalUser.getPostalCode(); // multiple if statements must be used here because the address // must be displayed in such a specific manner if (holdAddress1 != null) { address.append(this.checkFieldLimit(holdAddress1 + skip_line)); } if (holdAddress2 != null) { address.append(this.checkFieldLimit(holdAddress2 + skip_line)); } if (holdAddress3 != null) { address.append(this.checkFieldLimit(holdAddress3 + skip_line)); } if (holdAddress4 != null) { address.append(this.checkFieldLimit(holdAddress4 + skip_line)); } if (city != null) { address.append(this.checkFieldLimit(city + ", ")); } if (state != null) { address.append(this.checkFieldLimit(state + space)); } if (zipCode != null) { address.append(this.checkFieldLimit(zipCode + space)); } principalAddress.setValue(address.toString()); } catch (NullPointerException ex) { // throw new |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 194 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 193 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDSafetyOfficerApprovalView.java | 151 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 196 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 185 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 185 |
aCell2 = utilGetHtmlTableCell(fieldGet_6_EHSNumber("6"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { String recipientsLabel = "Send Approval Notice to:</b><br>(UNIs and/or email addresses separated by commas)"; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(recipientsLabel, defaultFontSize, true, false ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_NoticeRecipients("recipients"), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } // set up safety officer approval information AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + APPROVAL_SAFETY_OFFICER + "</b>" |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportProtocolHazMatView.java | 136 |
edu/columbia/rascal/presentation/appendix/pages/AppendixReportPtHazMatView.java | 131 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportHazMatView.java | 107 |
); msgTxt.setFontName(getDefaultFontName()); msgTxt.setIsBold(true); msgTxt.setFgColor("BLUE5"); getForm().add(msgTxt); } else { if (!getDownloadable()) { addHeader(getFromDate(), getToDate(), getLocation(), getApplication() ); getForm().add(addDate()); addKey(); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction("")); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames(getKeywordListForColumns(), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/CURascalBaseFileUploadController.java | 31 |
edu/columbia/rascal/presentation/controller/irb/IrbBaseAttachDocumentsController.java | 64 |
public final String validateUploadedFile(MultipartFile file) { String fileName = file.getOriginalFilename(); if(file == null || StringUtils.isBlank(fileName)) { return "This is a required field."; } if ((fileName.length() < 1) || (fileName.length() > 125)) { return "File name must be between 1 and 125 characters."; } String[] array=fileName.split("\\."); if( array==null || array.length<2) { return composeErrMessage(fileName); } if ( nameLookup.get((array[array.length-1].toLowerCase()))==null ) { return composeErrMessage(fileName); } if (file.getSize() > MAX_FILE_SIZE) { return "The file size should be less than 75MB."; } if ( file.isEmpty() ) { return "The file " + fileName + " is empty."; } return ""; } private String composeErrMessage(String fileName) { StringBuilder sb = new StringBuilder("This system doesn't accept your file, "+fileName); sb.append(".<br/>It only accepts file types that denoted by these file extensions: <br/>"); for(String e: ext) { sb.append("'").append(e).append("',"); } sb.deleteCharAt(sb.length()-1).append(".<br/>"); sb.append("The max file size is 75MB."); return sb.toString(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 53 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 54 |
setSubTitle("Clinical Trials Report"); add(getSubTitle()); add(getHiddenWidgetFor("dateValid", "true")); setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); addFields(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** Insert the method's description here. Creation date: (1/2/2003 11:34:23 AM) */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); // aRow.addElement("<font face = \"Comic Sans MS\" size = \"1\">*Hold down the Command key // (MAC) or Control key (Windows) to select multiple fields.</font>"); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); getAForm().add(getHiddenWidgetFor("dateValid", "true")); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Calendar start = Calendar.getInstance(); start.add(Calendar.MONTH, -6); // Go back 6 months |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 97 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 122 |
if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 709 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 884 |
aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_1A_AdminLocations(), "100%", "left" ); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE2), "300", getTitleAlign() ); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_2_SurvivalTime(), "500", "left"); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE2_TITLE), "100%", getTitleAlign() ); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_2A_HousingLocation(), "100%", "left" ); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE3), "100%", getTitleAlign() ); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_3_IsIsotopeExcreted(), "100%", "left" ); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 276 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 800 |
approvalDateStr = CalendarTransformer.formatMMDDYYYY(approvalDate); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } // spacer addSpacerRows(aTable, 1, 2, "8"); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( APPROVAL_SAFETY_OFFICER ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(name), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText( approvalDateStr ), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval number aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( APPROVAL_NUMBER ), "300", getTitleAlign() ); textValue = (getTracker().getEhsNumber() == null) ? "" : getTracker().getEhsNumber(); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportDateRangeView.java | 209 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDateRangeView.java | 184 |
columns.setElementAt(getDateTable(startDate, "fromDate", "fromDateMonth", "fromDateDay", "fromDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("From Date:")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; aWidget = getWidgetFor(""); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; columns.setElementAt(getDateTable(endDate, "toDate", "toDateMonth", "toDateDay", "toDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("To Date:")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit", "checkDateForSubmit(fromDate);checkDateForSubmit(toDate);return isDateValid()" ); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.setAlign("center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbDocSearchQueryFormat.java | 107 |
edu/columbia/rascal/presentation/irb/jdbc/IrbDocSearchQueryFormat.java | 499 |
if (isNotEmpty(rascalUserUni)) whereRascalUser = buildWhereClauseForSelection(rascalUserUni, "ru.user_id"); else whereRascalUser = buildWhereClauseForSelection(rascalUser, "ru.name_last"); whereParticipantNameLast = " AND t2.oid IN (SELECT DISTINCT staff.irbProtocolHeaderId FROM IrbStaff staff, RASCAL_USER ru WHERE staff.rid = ru.rid" + whereRascalUser + ")"; } CURascalBasicSearchParameter originatingDepartment = params.getOriginatingDepartment(); if (isNotEmpty(originatingDepartment)) { whereOriginatingOffice = buildWhereClauseForSelection(originatingDepartment,"t2.originatingDepartment"); } CURascalBasicSearchParameter originatingDepartmentName = params.getOriginatingDepartmentName(); if (isNotEmpty(originatingDepartmentName)) { fromDEPARTMENT = ", RascalDepartment t6"; whereHEADERxDEPT = " AND t2.originatingDepartment = t6.code"; whereOriginatingOfficeName = buildWhereClauseForSelection(originatingDepartmentName,"t6.name"); } CURascalBasicSearchParameter drugDeviceBiologic = params.getDrugDeviceBiologic(); if (isNotEmpty(drugDeviceBiologic)) { fromINVESTIGATIONALPRODUCT = ", IrbInvestigationalProduct tIp"; whereDrugDeviceBiologic = buildWhereClauseForSelection(drugDeviceBiologic, "tIp.name"); whereHEADERxPRODUCT = " AND tIp.irbProtocolHeaderId = t2.oid"; } CURascalBasicSearchParameter humanSpecimen = params.getHumanSpecimen(); if (isNotEmpty(humanSpecimen)) { fromHUMANSPECIMEN = " , IrbHumanSpecimen t7"; whereHumanSpecimen = buildWhereClauseForSelection(humanSpecimen, "t7.description"); whereHEADERxHUMANSPECIMEN = " AND t7.irbProtocolHeaderId = t2.oid"; } CURascalBasicSearchParameter title = params.getTitle(); if (isNotEmpty(title)) { whereTitle = buildWhereClauseForSelection(title, "t2.title"); } CURascalBasicSearchParameter previousProtocolNumber = params.getPreviousProtocolNumber(); if (isNotEmpty(previousProtocolNumber)) { wherePreviousProtocolNumber = buildWhereClauseForSelection(previousProtocolNumber,"t2.previousProtocolNumber"); } CURascalBasicSearchParameter paperProtocolNumber = params.getPaperProtocolNumber(); if (isNotEmpty(paperProtocolNumber)) { wherePaperProtocolNumber = " AND t2.paperProtocol='Y' " + buildWhereClauseForSelection(paperProtocolNumber, "t2.previousProtocolNumber"); } String currentHeader = " AND t2.oid = (SELECT max(ph.oid) FROM IrbProtocolHeader ph WHERE t1.oid = ph.parentProtocolOid)"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 61 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 62 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 60 |
render(); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { int numCells = 4; // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); aForm.add(getHiddenWidgetFor("dateValid", "true")); add(aForm); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { String endDate = CalendarTransformer.toString(Calendar.getInstance()); Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; aTable.setCellSpacing(15); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalServlet.java | 306 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceReturnOrApproveCreateServlet.java | 803 |
public void generateEmail(int aRid, IrbCorrespondence corr, String statusName) { IrbEmailSender sender = new IrbEmailSender(); RascalUser aUser = ServiceLocator.getRascalUserService().findById(aRid); String toAddress = ((aUser.getEmailPreferred() == null) ? (aUser.getUserId() + "@columbia.edu ") : aUser.getEmailPreferred()); String toName = (aUser.getNameFirst() + " " + aUser.getNameLast()); String parentObjectName = corr.getParentObjectName(); String protNum = "IRB-" + corr.getProtocolNumber(); IrbProtocolHeader ph = null; String title = ""; String abbrebiatedTitle = ""; String piName = ""; RascalUser pi = null; if (parentObjectName.equals(IrbNameConstants.PROTOCOL_HEADER)) { ph = ServiceLocator.getIrbProtocolService().getByProtocolNumber(corr .getProtocolNumber(), getUser() ).getLastProtocolHeader(); pi = ServiceLocator.getRascalUserService().findById(ph.getPI().getRid()); title = "\n\nTitle: " + ph.getTitle(); abbrebiatedTitle = ph.getAbbreviatedTitle(); piName = "\nPI: " + pi.getNameFirst() + " " + pi.getNameLast(); } else { IrbProtocol prot = ServiceLocator.getIrbProtocolService().getByProtocolNumber( corr.getProtocolNumber(), getUser() ); ph = |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucAllStaffsRptController.java | 45 |
edu/columbia/rascal/presentation/controller/iacuc/IacucApprovedProtocolRptController.java | 51 |
edu/columbia/rascal/presentation/controller/iacuc/IacucProtocolsSetToExpireRptController.java | 47 |
@RequestMapping(method=RequestMethod.GET) public String loadNewDocument(Model model) { if(!model.containsAttribute("command")){ ReportCommand command = new ReportCommand(); Date endDate = new Date(); command.setEndDate(endDate); Date startDate = DateUtils.addMonths(endDate, -6); command.setStartDate(startDate); command.setNew(true); model.addAttribute("command", command); } return JSP_VIEW; } @RequestMapping(method=RequestMethod.POST) public String saveNewDocument(@Valid @ModelAttribute ReportCommand command, Model model) { Date sDate = command.getStartDate(); sDate = DateUtils.addMonths(sDate, 6); Date endDate = command.getEndDate(); if (endDate.after(sDate) ) model.addAttribute("errMessage", "You may only select a date range of up to 6 months in length. "); command.setNew(false); model.addAttribute("command", command); model.addAttribute("searchTime", (new Date()).toString()); return loadNewDocument(model); } @RequestMapping(method=RequestMethod.GET, value="/list") public @ResponseBody List<Map<String, Object>> ptotocols(@ModelAttribute("command") ReportCommand command, Model model) throws ParseException { return getAllStaffsData(command); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixASafetyOfficerApprovalView.java | 192 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 185 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 185 |
aCell2 = utilGetHtmlTableCell(fieldGet_6_EHSNumber("6"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { String recipientsLabel = "Send Approval Notice to:</b><br>(UNIs and/or email addresses separated by commas)"; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(recipientsLabel, defaultFontSize, true, false ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_NoticeRecipients("recipients"), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } // set up safety officer approval information AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(APPROVAL_SAFETY_OFFICER, defaultFontSize, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 332 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 387 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 276 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 800 |
approvalDateStr = approvalDate.toString(); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } // spacer addSpacerRows(aTable, 1, 2, "8"); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_SAFETY_OFFICER), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(name), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(approvalDateStr), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval number aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_NUMBER), "300", getTitleAlign() ); textValue = (getTracker().getEhsNumber() == null) ? "" : getTracker().getEhsNumber(); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 410 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 431 |
table.setBorderWidth(0); return table; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param dayIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getDayWidget(String fieldName, int dayIndex) { Vector list = new Vector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** * This method was created in VisualAge. * * @param aInputName java.lang.String * @param aValue java.lang.String * @param size TODO: DOCUMENT ME! * * @return CUHtmlTextEntry */ public Object getEditWidgetFor(String aInputName, String aValue, String size) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2758 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4970 |
); aBuffer.append("and c.sequenceNumber = 1) "); aBuffer.append(yearMod); aBuffer.append("and (b.oid = e.parentObjectOid and e.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') "); aBuffer.append( " and e.oid = (select max(oid) from IrbStatus x where b.oid = x.parentObjectOid and x.parentObjectName = '" ); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') and f.parentObjectOid = b.oid and f.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and f.approvedOn is not null "); aBuffer.append(dateRangeWhere); aBuffer.append("and f.approvalCode = "); aBuffer.append(approvalCode); aBuffer.append(" order by e.statusDate DESC "); } else { if (name.equals(IrbNameConstants.CLOSURE)) { title = "''"; } aBuffer.append("select distinct a.oid AS oid1, a.protocolNumber, c.name_last, "); aBuffer.append(title); aBuffer.append(", b.oid AS oid2, e.statusName, f.oid AS oid3, f.approvalCode, e.statusDate "); aBuffer.append("from IrbProtocol a, "); aBuffer.append(table); aBuffer.append(" b, RASCAL_USER c, IrbStatus e, IrbApproval f "); aBuffer.append("where a.oid = b.parentProtocolOid and b.createdBy = c.rid "); aBuffer.append("and (b.oid = e.parentObjectOid and e.parentObjectName = '"); aBuffer.append(name); aBuffer.append("') "); aBuffer.append( " and e.oid = (select max(oid) from IrbStatus x where b.oid = x.parentObjectOid and x.parentObjectName = '" ); aBuffer.append(name); aBuffer.append("') and f.parentObjectOid = b.oid and f.parentObjectName = '"); aBuffer.append(name); aBuffer.append("' and f.approvedOn is not null and f.approvalCode = "); aBuffer.append(approvalCode); aBuffer.append(dateRangeWhere); aBuffer.append(" order by e.statusDate DESC"); } return aBuffer.toString(); } /** * RASCAL (halayn) Creation date: (4/26/2002 12:53:52 PM) * * @param aUser TODO: DOCUMENT ME! * @param committeeIdString TODO: DOCUMENT ME! * * @return Vector of results */ public static Vector getCTSACorrespondenceExceptAdverseEventQueue(RascalUser aUser, |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCResultsDisplayView.java | 71 |
edu/columbia/rascal/presentation/tc/views/TCResultsDisplayView.java | 186 |
); if (results.isEmpty() && results1.isEmpty() && results2.isEmpty() && results3.isEmpty() && results4.isEmpty() ) { CUHtmlText title = new CUHtmlText( "No courses matched your search criteria." ); title.setHeaderLevel("2"); title.setAlignment("CENTER"); getForm().add(title); } else { // if (log.isDebugEnabled()) // log.debug("=================================================================================================="); CUHtmlText txt = new CUHtmlText("Select a course to view"); txt.setFontSize("+1"); txt.setFontName("Verdana"); txt.setAlignment("center"); getForm().add(txt); CUHtmlText trainingfinder = new CUHtmlText("<p>For help identifying which research compliance trainings you may be required to take, visit the <a href=\"http://www.columbia.edu/cu/compliance/docs/training/trainingfinder.html?mode=interactive\" target=\"_blank\">Research Compliance Training Finder</a>.</p>"); trainingfinder.setFontName("Verdana"); trainingfinder.setAlignment("center"); getForm().add(trainingfinder); if (!(results1.isEmpty())) { // morningside course list addQueueSection(results1, "Morningside"); } if (!(results2.isEmpty())) { // medical center course list addQueueSection(results2, "Medical Center"); } if (!(results3.isEmpty())) { // NEVIS course list addQueueSection(results3, "NEVIS"); } if (!(results4.isEmpty())) { // LDEO course list addQueueSection(results4, "LDEO"); } if (!(results.isEmpty())) { // other course addQueueSection(results, "Morningside/LDEO/NEVIS and Medical Center" ); } // if (log.isDebugEnabled()) // log.debug("=================================================================================================="); } CUHtmlText link = new CUHtmlText( |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueLoggedInView.java | 277 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueSubmittedView.java | 226 |
aCell.add(getTableCellData("")); } colNum++; // 9 History aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageOpenNewWindow( "/images/blueball.gif", HipaaHistoryServlet.class.getName() + "?hipaaHeaderId=" + headerOid, "scrollbars=yes,resizable=yes,width=600,height=350", "View History", "ViewHistory" ); aCell.add(anImage); aCell.setAlign("center"); colNum++; // 10 View HIPAA Notes aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageOpenNewWindow( "/images/blueball.gif", HipaaNotesViewOnlyServlet.class.getName() + "?parentOid=" + headerOid + "&&parentName=HipaaHeader&&headerNumber=" + hipaaNumber, "scrollbars=yes,resizable=yes,width=800,height=600", "View Notes", "ViewNotes" ); aCell.add(anImage); aCell.setAlign("center"); colNum++; // 11 Add HIPAA Notes aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageOpenNewWindow( "/images/blueball.gif", HipaaNotesServlet.class.getName() + "?parentOid=" + headerOid + "&&parentName=HipaaHeader&&headerNumber=" + hipaaNumber, "scrollbars=yes,resizable=yes,width=800,height=600", "Add Notes", "AddNotes" ); aCell.add(anImage); aCell.setAlign("center"); colNum++; // 12 Return aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageValidateAndConfirm( "/images/redball.gif", "Are you sure that you want to return this Authorization/Waiver?", HipaaSetStatusServlet.class.getName() + "?hipaaHeaderId=" + headerOid + "&&action=" + RETURN, "Return" ); aCell.add(anImage); aCell.setAlign("center"); colNum++; // 13 Deny aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageValidateAndConfirm( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 571 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 609 |
return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { Calendar oneLessDay = CalendarTransformer.toCalendar(newValue); oneLessDay.add(Calendar.DATE, -1); this.endDate = CalendarTransformer.toString(oneLessDay); } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setPrintable(boolean aValue) { printable = aValue; } /** * setSortBy. * * @param aValue TODO: DOCUMENT ME! */ public void setSortBy(String aValue) { sortBy = aValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 52 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 53 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 54 |
setSubTitle("Human Subjects Cancer Center Report"); add(getSubTitle()); add(getHiddenWidgetFor("dateValid", "true")); setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); addFields(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** Insert the method's description here. Creation date: (1/2/2003 11:34:23 AM) */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); getAForm().add(getHiddenWidgetFor("dateValid", "true")); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Calendar start = Calendar.getInstance(); start.add(Calendar.YEAR, -1); // Go back 3 months |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatsView.java | 220 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStatsView.java | 354 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeStatsView.java | 260 |
aRow.add(aCell); // sumbitted protocols aCell = new CUHtmlTableCell(); for (int i = 0; i < resultSize; i++) { Vector currentRow = (Vector) results.elementAt(i); temp = Integer.parseInt((String) currentRow.elementAt(0)); if (temp != 0) { total += temp; totalCounter++; } } aCell.add(getTextWidgetFor(total + "", 2, false)); aCell.setAlign("right"); aRow.add(aCell); // approved protocols aCell = new CUHtmlTableCell(); for (int i = 0; i < resultSize; i++) { Vector currentRow = (Vector) results.elementAt(i); temp = Integer.parseInt((String) currentRow.elementAt(1)); if (temp != 0) { totalApp += temp; counter++; } } aCell.add(getTextWidgetFor(totalApp + "", 2, false)); aCell.setAlign("right"); aRow.add(aCell); // average days from submission to approval aCell = new CUHtmlTableCell(); totalApp = 0; for (int i = 0; i < resultSize; i++) { Vector currentRow = (Vector) results.elementAt(i); totalApp += Integer.parseInt((String) currentRow.elementAt(2)); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 473 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 431 |
} /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { // FIXME XSS // String result = req.getParameter(parName); String result = HtmlUtils.htmlEscape(req.getParameter(parName)); return (result.equals("")) ? null : result; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlTable getLogoTitle() { CUHtmlTable aTable = new CUHtmlTable(); Vector columns = new Vector(2); columns.addElement(""); columns.addElement(""); columns.setElementAt(getMainTitle(), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(0, 0).setWidth("30%"); aTable.getCell(0, 0).setVAlign("CENTER"); aTable.getCell(0, 0).setAlign("RIGHT"); aTable.getCell(0, 1).setVAlign("CENTER"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.setBorderWidth(0); return aTable; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlText getMainTitle() { if (mainTitle == null) { CUHtmlText aText = new CUHtmlText("Main Title was not defined"); aText.setHeaderLevel("1"); aText.setFontName(getDefaultFontName()); aText.setAlignment("center"); mainTitle = aText; } return mainTitle; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlText getNote() { return note; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 105 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 104 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 107 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 106 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 106 |
edu/columbia/rascal/presentation/appendix/pages/AppendixISafetyOfficerApprovalView.java | 75 |
aCell1 = utilGetHtmlTableCell(fieldGet_1_ReviewAndApproveText(), "40%", getTitleAlign()); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); addSpacerRows(aTable, 2, 1, "10"); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(REC_ANIMAL_HOUSING, defaultFontSize, true, false ), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_HOUSE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_2_RecommendedHousing("2"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 446 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 414 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 436 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param dayIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getDayWidget(String fieldName, int dayIndex) { Vector list = new Vector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** * This method was created in VisualAge. * * @return a string with html code to produce navigation bar */ public CUHtmlTable getGeneralHeaderHtml() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 528 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 447 |
public Object getDayWidget(String fieldName, int dayIndex) { Vector list = new Vector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getDefaultFontName() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentMainView.java | 30 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaMainView.java | 32 |
setMainTitle("RASCAL Consent"); setPageTitle("Columbia University's RASCAL - Research Administration System"); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addItems(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** This method was created in VisualAge. */ public void addItems() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getLogoServletString()); f1.setName("Logo"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); v.addElement(f1); frames.add(v); frames.setRows("85,*"); frames.setColumns("*"); frames.setBorder("1"); frames.setFramespacing("0"); v = new Vector(2); f1 = new CUHtmlFrame(); f1.setSrc(getLinkServletString()); f1.setName("Link"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); f2.setSrc(getMainServletString()); f2.setName("Main"); v.addElement(f1); v.addElement(f2); CUHtmlFrameset fs2 = new CUHtmlFrameset(v); fs2.setRows("*"); fs2.setColumns("120,610"); frames.add(fs2); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ public String getLinkServletString() { return ConsentLinkFrameServlet.class.getName(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 75 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 240 |
setReportType(reportType); setServletName(IrbReportCurrentActivityStatusServlet.class.getName()); setPrintable(print); setDownloadable(downloadable); setSortBy(sortColumn); setSortBy1(sortColumn1); setSortBy2(sortColumn2); String instruction = ""; Vector columns = new Vector(); columns.addElement("EventName"); columns.addElement("ProtocolNumber"); columns.addElement("PI"); columns.addElement("Committee"); columns.addElement("DateAssigned"); columns.addElement("CurrentStatus"); if (reportType.equals("Committee")) { columns.addElement("TimesIn"); columns.addElement("Reviewer"); } columns.addElement("MeetingDate"); columns.addElement("StatusDate"); columns.addElement("LastCorrespondenceToPIDate"); columns.addElement("ExpirationDate"); // expiration date added Vector columns1 = new Vector(); columns1.addElement("EventName"); columns1.addElement("ProtocolNumber"); columns1.addElement("PI"); columns1.addElement("Committee"); columns1.addElement("DateAssigned"); columns1.addElement("CurrentStatus"); if (reportType.equals("Committee")) { columns1.addElement("TimesIn"); columns1.addElement("Reviewer"); } columns1.addElement("StatusDate"); columns1.addElement("LastCorrespondenceToPIDate"); columns1.addElement("ExpirationDate"); // expiration date added if (!(getDownloadable())) { addHeader(uni, reportType, statusList); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 437 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFShortDataSheetView.java | 156 |
unitXy * 12, unitXy * 10, unitXy * 28, unitXy * 30, unitXy * 10, unitXy * 10 }; IrbAgendaEvent currentRow = null; Vector vContent = new Vector(tableSize); for (int i = 0; i < size; i++) { if (i == 0) { addUnderLinedLabel(vLabel, xyPosition, theStyle, 10, 12); } // setHeight(getHeight()-getPDFPage().getStyle().getFontLeading()); currentRow = (IrbAgendaEvent) businessAttached.elementAt(i); IrbProtocolHeader protHeader = null; String protocolNumber = ""; String eventName = currentRow.getEventName(); String title = ""; long eventOid = currentRow.getEventOid(); if (eventName.equals("AdverseEvent") || eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { secondLabel = "Keyword"; } if (eventName.startsWith("Protocol") || eventName.startsWith("Modification") || eventName.startsWith("Renewal") ) { eventName = "ProtocolHeader"; protHeader = ServiceLocator.getIrbProtocolHeaderService().findById(eventOid); protocolNumber = protHeader.getProtocolNumber(); title = protHeader.getTitle(); } else { // adverseEvent, Closure, expendedAccess, unanticipate IrbTraceableBusinessObject object = ServiceLocator.getIrbProtocolService() .getParentObject(eventName, eventOid + "", getRascalUser()); if (object != null) { protocolNumber = object.getProtocolNumber(); protHeader = ServiceLocator.getIrbProtocolService() .getLastApprovedProtocolHeader(object.getIrbProtocol()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 457 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 528 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 425 |
@Override public Object getDayWidget(String fieldName, int dayIndex) { Vector list = new Vector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** * This method was created in VisualAge. * * @return a string with html code to produce navigation bar */ public CUHtmlTable getGeneralHeaderHtml() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2044 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2134 |
row.put("OriginalLogInDate", res.getDate(10)); row.put("CurrentStatus", res.getString(11)); row.put("CurrentStatusDate", res.getDate(12)); results.addElement(row); row = new Hashtable(); } // end while } else if (name.equals(IrbNameConstants.ADVERSE_EVENT) || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM) || name.equals(IrbNameConstants.CLOSURE) ) { while (res.next()) { row.put("EventName", res.getString(1)); row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolNumber", "IRB-" + res.getString(3)); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString() ); row.put("PI", res.getString(5)); row.put("Initiator", res.getString(6)); row.put("Committee", res.getString(7)); row.put("OriginalLogInDate", res.getDate(8)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/views/RascalRequestRascalIDView.java | 33 |
edu/columbia/rascal/presentation/common/views/RascalRequestRascalIDView.java | 49 |
add("<center><font face=\"Verdana\"><h1>Request a RASCAL ID</h1></center>" + "<font size=\"2\">" + "<ul><ul>" + "<p><FONT size=\"2\" color=\"#cc0000\"><b><blink>IMPORTANT:</blink> Please DO NOT request a RASCAL ID as a temporary access solution. " + "Please DO NOT request a RASCAL ID if a Columbia University Network ID (<a href=\"http://uni.columbia.edu/\">UNI</a>) will be received in the immediate future.</b></FONT></p>" + "<p><font color=\"#cc0000\"><b>PLEASE READ:</b></font> You may request a special RASCAL ID if you are not employed by Columbia, will not be employed by Columbia, and are " + "collaborating on a Columbia research project. If you will become a new Columbia University faculty or staff member within the coming weeks or you have questions regarding obtaining a " + "<a href=\"http://uni.columbia.edu/\">UNI</a> account, you should contact your hiring department, the CUMC IT Helpdesk at 212-305-HELP (Columbia University Medical Center) or " + "the CUIT Helpdesk at 212-854-1919 (Columbia Morningside Campus). <a href=\"http://www.columbia.edu/email_computing/help.html\">Click here</a> for more information.</p>" + "<p><b>Please complete ALL of the requested information; It will speed your request through the approval process.</b> The approval process can usually be completed within four business days. " + "You will be contacted directly with your ID and password information.</p>" + "<center>" + "<FORM ACTION=\"https://directory.columbia.edu/people/search\" NAME=\"uni_search\" METHOD=\"POST\">" + "<TABLE cellpadding=\"5\" cellspacing=\"1\" border=\"0\" bgcolor=\"#AAAAAA\"><TBODY><TR><TH bgcolor=\"#DFDFDF\">" + "<FONT size=\"2\" color=\"#cc0000\"><b>Please check for an existing UNI<br>by entering a name, email address or UNI:</b></FONT></TH></TR>" + "<TR><TD bgcolor=\"#FFFFFF\" ALIGN=\"center\">" + "<TABLE cellpadding=\"3\" cellspacing=\"0\" border=\"0\"><TBODY>" + "<TR><TD align=\"right\"><INPUT TYPE=\"TEXT\" SIZE=\"50\" VALUE=\"\" NAME=\"filter.searchTerm\" MAXLENGTH=\"60\"></TD></TR>" + "<TR><TD align=\"right\"><INPUT TYPE=\"Submit\" VALUE=\"Search\" onClick=\"alert('Note: If a name appears on the following page, a UNI account may already exist for you.')\"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></FORM>" + "<br>" + "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tbody><tr><td>" + "<form id=\"RAS_ID_RQST\" name=\"RASCAL_ID\" action=\"edu.columbia.rascal.presentation.common.RascalRequestRascalIDServlet\" method=\"post\">" + "<table cellpadding=\"5\" cellspacing=\"1\" border=\"0\" bgcolor=\"#AAAAAA\"><tbody>" + "<tr><td align=\"center\" colspan=\"2\"><font size=\"4\" color=\"#FFFFFF\">RASCAL ID Request Form</font></td></tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\"><font color=\"#FF0000\">*</font>First Name</font></th>" + "<td bgcolor=\"#FFFFFF\"><input name=\"FirstName\" size=\"60\"></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\"><font color=\"#FF0000\">*</font>Last Name</font></th>" + "<td bgcolor=\"#FFFFFF\"><input name=\"LastName\" size=\"60\"></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\"><font color=\"#FF0000\">*</font>Telephone Number</font></th>" + "<td bgcolor=\"#FFFFFF\"><input name=\"Phone\" size=\"60\"></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\"><font color=\"#FF0000\">*</font>E-mail Address</font></th>" + "<td bgcolor=\"#FFFFFF\"><input name=\"Email_1\" size=\"60\"></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\"><font color=\"#FF0000\">*</font>Confirm E-mail Address</font></th>" + "<td bgcolor=\"#FFFFFF\"><input name=\"Email_2\" size=\"60\"></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\" rowspan=\"2\"><font size=\"2\"><font color=\"#FF0000\">*</font>Columbia Affiliation</font></th>" + "<td bgcolor=\"#FFFFFF\"><font size=\"2\">Morningside:" + " <input type=\"radio\" name=\"Dept\" value=\"MS1\">" + " Medical Center:" + " <input type=\"radio\" name=\"Dept\" value=\"HS1\"></font></td>" + "</tr>" + "<tr>" + "<td bgcolor=\"#FFFFFF\"><select name=\"Affil\">" + "<option value=\"\" selected=\"selected\">- - - - - - - - - - - - - - Select Affiliation - - - - - - - - - - - - -</option>" + "<option value=\"CLN\">Clinical Trials Network</option>" + "<option value=\"HH\">Harlem Hospital</option>" + "<option value=\"NYSPI\">NY Psychiatric Institute</option>" + "<option value=\"SLR\">St. Luke's Roosevelt</option>" + "<option value=\"Other\">Other - please specify</option>" + "</select></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\">If you have specified <i>other affiliation</i> above, please specify your affiliation to Columbia here:</font></th>" + "<td bgcolor=\"#FFFFFF\"><textarea name=\"Oaffil\" cols=45></textarea></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\">Please explain why you need a Rascal ID</font></th>" + "<td bgcolor=\"#FFFFFF\"><select name=\"Reason\">" + "<option value=\"\" selected=\"selected\">- - - - - - - - - - - - - - Select Reason - - - - - - - - - - - - - -</option>" + "<option value=\"Training\">I need to access RASCAL Testing & Certification</option>" + "<option value=\"Investigator\">I am an investigator on a Columbia Project</option>" + "<option value=\"Assistant\">I will be assisting Columbia Investigators</option>" + "<option value=\"Other\">Other - specify below</option>" + "</select></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\">If you specified <i>other reason</i> above, please specify your reason here</font></th>" + "<td bgcolor=\"#FFFFFF\"><textarea name=\"Oreason\" cols=45></textarea></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\">Current Title/Position</font></th>" + "<td bgcolor=\"#FFFFFF\"><textarea name=\"Title\" cols=\"45\"></textarea></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\">Current Institution</font></th>" + "<td bgcolor=\"#FFFFFF\"><textarea name=\"Institn\" cols=\"45\"></textarea></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\">The name of the Columbia Investigator with whom you will be collaborating</font></th>" + "<td bgcolor=\"#FFFFFF\">" + "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tbody>" + "<tr><td><font size=\"2\"><small>First: </small></font></td><td><input name=\"Invstgt_FN\" size=\"50\"></td></tr>" + "<tr><td><font size=\"2\"><small>Last: </small></font></td><td><input name=\"Invstgt_LN\" size=\"50\"></td></tr>" + "<tr><td><font size=\"2\"><small>UNI: </small></font></td><td><input name=\"Invstgt_ID\" size=\"50\"></td></tr>" + "</tbody></table>" + "</td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\">The name of the Columbia Research Project with which you will be collaborating</font></th>" + "<td bgcolor=\"#FFFFFF\"><input name=\"Proj\" size=\"60\"></td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\">Your expected start date</font></th>" + "<td bgcolor=\"#FFFFFF\">" + getDateTable(CalendarTransformer.toString(Calendar.getInstance()), "StartDate", "StartMonth", "StartDay", "StartYear" ).getHtml() + "</td>" + "</tr>" + "<tr>" + "<th bgcolor=\"#DFDFDF\" width=\"200\" align=\"Right\"><font size=\"2\">Additional information or comments</font></th>" + "<td bgcolor=\"#FFFFFF\"><textarea name=\"Comment\" cols=\"45\"></textarea>" + "</tr>" + "<tr>" + "<td bgcolor=\"#FFFFFF\" colspan=\"2\" align=\"Center\"><input name=SUBMIT type=submit value=\"Submit Request\"> <input value=\"Cancel\" onclick=\"JavaScript:self.close();\" type=\"button\">" + "<div align=\"right\"><font size=\"2\"><small><font color=\"#FF0000\">*</font>Required Fields</small></font></div></td>" + "</tr>" + "</tbody></table>" + "</td></tr><tr><td align=\"right\"><input type=reset value=\"Clear Form\"></td></tr></tbody></table>" + "</form>" + "</ul></ul>" + "</font></font></center>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 348 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 469 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 1578 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2011 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2099 |
public static Vector buildCurrentActivityReportResult(java.sql.ResultSet res, String name) { Vector results = new Vector(); Hashtable row = new Hashtable(); int protocalyear = 0; int modificationNumber = 0; try { if (name.equals(IrbNameConstants.PROTOCOL_HEADER)) { while (res.next()) { protocalyear = res.getInt(4); modificationNumber = res.getInt(5); if ((protocalyear == 1) && (modificationNumber == 0)) { row.put("EventName", "Protocol"); } else if (modificationNumber > 0) { row.put("EventName", "Modification"); } else if ((protocalyear > 1) && (modificationNumber == 0)) { row.put("EventName", "Renewal"); } row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolNumber", "IRB-" + res.getString(3)); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString() ); row.put("PI", res.getString(7)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentExternalView.java | 402 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentView.java | 399 |
aTitle = new CUHtmlText("Delete"); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, titleLen); header.add(aTitle); header.setAlign("center"); } } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param anOid TODO: DOCUMENT ME! * @param docId TODO: DOCUMENT ME! * @param fileName TODO: DOCUMENT ME! * @param dateCreated TODO: DOCUMENT ME! */ public void setAttachmentTableDataRow(CUHtmlTable aTable, String anOid, String docId, String fileName, String dateCreated ) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // identifier CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getLinkWidgetFor((docId.equals("") || docId.equals(" ")) ? fileName : docId, "/irb/unanticipated/attachment/retrieve?unanticipatedOid=" + anOid ) ); cell0.setAlign("left"); aRow.add(cell0); // doc name CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getWidgetFor(fileName)); cell1.setAlign("left"); aRow.add(cell1); // date created CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(getWidgetFor(dateCreated)); cell2.setAlign("left"); aRow.add(cell2); // Edit CUHtmlImage modify = getWidgetPopUpWindowButton( "/irb/unanticipated/attachment/edit?unanticipatedOid=" + anOid, "Modify", "EditAttachment", "scrollbars=yes,resizable=yes,width=600,height=300" ); CUHtmlTableCell cell3 = new CUHtmlTableCell(); cell3.add(modify); cell3.setAlign("center"); aRow.add(cell3); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 397 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 465 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 865 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 645 |
approvalDateStr = approvalDate.toString(); if (approvalDateStr.equals("00/00/0000")) approvalDateStr = ""; } addSpacerRows(aTable, 1, 2, "8"); // Veterinarian Name aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(VETERINARIAN_NAME), "300", getTitleAlign() ); name = NOT_YET_APPROVED; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(name), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Veterinarian approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPROVAL_DATE), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(approvalDateStr), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } } getForm().add(aTable); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTableRow aRow; CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 2); aTable.setCellPadding(4); addSpacerRows(aTable, 1, 2, "8"); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPENDIX_NUMBER), "300", |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/tools/IrbEmailProtocolExpirationTask.java | 296 |
edu/columbia/rascal/presentation/irb/tools/IrbEmailProtocolExpired30DaysTask.java | 193 |
message.append("The following Irb protocols have reached 'EXPIRED' status:\n\n"); int listSize = emailList.size(); StringBuilder listOfProtocols = new StringBuilder(200); String protocolNumber; String expirationDate; for (int i = 0; i < listSize; i++) { Hashtable data = (Hashtable) emailList.elementAt(i); protocolNumber = (String) data.get("protocolNumber"); expirationDate = CalendarTransformer.toDateTimeString((java.util.Date) data.get( "expirationDate" ) ); listOfProtocols.append("IRB-"); listOfProtocols.append(protocolNumber); listOfProtocols.append("\tPI/Study Coordinator/Initiator: "); listOfProtocols.append((String) data.get("PIFirstName")); listOfProtocols.append(' '); listOfProtocols.append((String) data.get("PILastName")); listOfProtocols.append(" ("); listOfProtocols.append((String) data.get("PIUni")); listOfProtocols.append(")\t"); listOfProtocols.append("\tExpired On: "); listOfProtocols.append(expirationDate); listOfProtocols.append('\n'); } message.append(listOfProtocols.toString()); writeToLogFile(RASCAL_EXPIRED_PROTOCOL_LOG, listOfProtocols.toString()); } } /** * Java.lang.String. * * @return java.lang.String */ public String getHomeUrl() { if (dbLocation.equals("was_rascal")) { return "https://www.rascal.columbia.edu"; } else { return "https://wwwtest2.rascal.columbia.edu"; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportProjectOfficerActivityView.java | 73 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 92 |
setSubTitle("Project Officer Activity Report"); setPrintable(print); setDownloadable(downloadable); setSortBy(sortColumn); String instruction = ""; if ((rows == null) || (rows.isEmpty())) { add("<br>"); // put a space CUHtmlText msgTxt = new CUHtmlText("There is no data to display."); msgTxt.setFontName(getDefaultFontName()); msgTxt.setIsBold(true); msgTxt.setFgColor("BLUE5"); getForm().add(msgTxt); } else { if (!getDownloadable()) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); getForm().add(addDateRange()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames(getKeywordListForColumns(), "A", getSortBy()) |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixChemicalEntryView.java | 369 |
edu/columbia/rascal/presentation/appendix/pages/AppendixChemicalEntryView.java | 478 |
} Vector selectedItems = new Vector(); if ((measure != null) && (measure.length() > 0)) { selectedItems.addElement(measure); } // Create the overall table for the widget: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellSpacing(0); aTable.setCellPadding(1); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlEntryField entryField = new CUHtmlEntryField(widgetNamePrefix + "Quantity", "10", "10", quantity.toString() ); entryField.setOnKeyPress("return restrictFieldToNumbersOrDecimal(event)"); CUHtmlTableCell aCell1 = new CUHtmlTableCell(entryField); aCell1.setBorderWidth(0); aCell1.setWidth("10%"); EVector list = new EVector(5); { list.addElement("~Select Measure~"); list.addElement("milligrams"); list.addElement("grams"); list.addElement("microliters"); list.addElement("milliliters"); } CUHtmlTableCell aCell2 = new CUHtmlTableCell(new CUHtmlList(list, widgetNamePrefix + "Measure", "1", false, selectedItems ) ); aCell2.setBorderWidth(0); aCell2.setWidth("30%"); CUHtmlTableCell aCell3 = new CUHtmlTableCell(utilGetDefaultHtmlText(postLabel)); aCell3.setBorderWidth(0); aRow.add(aCell1); if (required) { CUHtmlTableCell aCell1a = new CUHtmlTableCell("<font color=red> *"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormLayoutView.java | 127 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormLayoutView.java | 132 |
Vector signatureList = getHipaaFormObject().getSignatureLines(); if (signatureList.size() > 0) { getForm().add("<br>"); getForm().add(getTableViewTitle(" Rearrange the Order of your Signature Lines")); getForm().add(buildSignatureRows(signatureList)); getForm().add(aTable); getForm().add("<BR>"); } getForm().add(getActionButtons()); add(getForm()); } /** * This method was created in VisualAge. * * @param questionList TODO: DOCUMENT ME! * * @return java.util.Vector */ public CUHtmlTable buildFormElementRows(Vector questionList) { int colCount = 3; int rowCount = 0; CUHtmlTable aTable = getTable(questionList.size() + 1, colCount); aTable.setBorderWidth(1); aTable.setWidth("95%"); aTable.setAlign("center"); setLayoutTableHead(aTable); rowCount++; aTable.getCell(0, 0).setWidth("5%"); aTable.getCell(0, 1).setWidth("5%"); aTable.getCell(0, 2).setWidth("90%"); Vector columns = new Vector(colCount); for (int c = 0; c < colCount; c++) { columns.addElement(""); } int row = aTable.elements.size(); int labelRow = row; // get the top-level questions Vector topLevelList = getHipaaFormObject().getTopLevelQuestions(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCTSACorrespondenceView.java | 314 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueCancerCenterCorrespondenceView.java | 314 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairCorrespondenceView.java | 376 |
getAForm().add("<TD ALIGN=\"center\"><FONT FACE=\"Verdana\" SIZE=\"1\">"); getAForm().add(i); getAForm().add("</FONT></A></TD>"); // Disposition Action cell 4 getAForm().add("<TD ALIGN=\"center\"><A "); parmString = new StringBuffer(); parmString.append("Javascript:onClick=parent.frames[1].location='"); parmString.append(IrbLinkFrameServlet.class.getName()); parmString.append("';parent.frames[2].location='"); parmString.append(IrbCorrespondenceDispositionServlet.class.getName()); parmString.append("?correspondenceOid="); parmString.append((String) row.elementAt(7)); parmString.append("&&recipientOid="); parmString.append((String) row.elementAt(8)); parmString.append('\''); buff = new StringBuffer(); buff.append("HREF="); buff.append(parmString.toString()); buff.append('>'); buff.append("<IMG BORDER=\"0\" ALT=\"Action\" SRC=\"/images/popup.gif\"></A></IMG></TD>"); getAForm().add(buff.toString()); // 5 title String title = (String) row.elementAt(3); String aTitle = ""; if (title != null) { aTitle = title; aTitle = ((aTitle.length() > 30) ? aTitle.substring(0, 30) : aTitle); } buff = new StringBuffer(); buff.append("<TD ALIGN=\"left\"><FONT FACE=\"Verdana\" SIZE=\"1\">"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1539 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1783 |
RascalUser user = ServiceLocator.getRascalUserService().findById(staff.getRid()); leadPerson = user.getUserFirstLastNameUni(); } s.append((((CUHtmlItem) getWidgetFor(leadPerson)).getHtml())); s.append("</td> <td> "); // initiator s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Initiator</font></div>"); s.append("</td> <td>"); // M // s.append((((CUHtmlItem)getWidgetFor(getProtocolHeader().getCreatedByName())).getHtml())); RascalUser ru = ServiceLocator.getRascalUserService().findById(getProtocolHeader() .getCreatedBy() ); s.append((((CUHtmlItem) getWidgetFor(ru.getUserFirstLastNameUni())).getHtml())); s.append("</td> </tr> <tr> <td> "); // you are... s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">You are</font></div>"); s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); s.append((((CUHtmlItem) getWidgetFor(getRascalUser().getUserFirstLastNameUni())) .getHtml()) ); s.append("</font></td> <td> "); s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Year</font></div>"); String modification = getProtocolHeader().getModificationNumber() + ""; if (getProtocolHeader().getModificationNumber() < 10) modification = "0" + modification; s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); s.append(getProtocolHeader().getProtocolYear()); s.append(" Modification "); s.append(modification); s.append("</font></td></table> <br>"); return s.toString(); } /** * TODO: DOCUMENT ME! * * @param prot TODO: DOCUMENT ME! * @param isNew TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getProtocolGeneralHeaderHtml(IrbProtocol prot, boolean isNew) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 93 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 76 |
setSubTitle("Proposal Approval History Report"); setPrintable(print); setDownloadable(downloadable); setSortBy(sortColumn); String instruction = ""; if (!getDownloadable()) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); getForm().add(addDateRange()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), "PtApprovalHistory") |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse30DaysWarningTask.java | 155 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 128 |
message.append("\nColumbia University"); return message.toString(); } /** * TODO: DOCUMENT ME! * * @param deptCode TODO: DOCUMENT ME! * @param message TODO: DOCUMENT ME! * @param subject TODO: DOCUMENT ME! */ public void generateDAEmail(String deptCode, String message, String subject) { List<List<Object>> deptAdmins = ServiceLocator.getRuAuthorizedDepartmentService() .getDeptAdminsByDeptCodeApplyId(deptCode, "Tc"); for(List<Object> currentRow: deptAdmins){ String aUserEmail = (String) currentRow.get(3); if ((aUserEmail == null) || aUserEmail.equals("") || (!aUserEmail.contains("@"))) aUserEmail = currentRow.get(0) + "@columbia.edu "; StringBuilder buff = new StringBuilder(200); buff.append("Attempting to email: DA- ("); buff.append(currentRow.get(1)); buff.append(' '); buff.append(currentRow.get(2)); buff.append(" ("); buff.append(currentRow.get(0)); buff.append(") Address to be sent to: "); buff.append(aUserEmail); CURascalEmailMessage email = null; // sent email email = new TCGeneralEmailMessage(currentRow.get(1) + " " + currentRow.get(2), aUserEmail, subject, message, RascalProperties.getProperty("DbUserId") ); CURascalEmailSender sender = new CURascalEmailSender(); try { |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingEntryView.java | 63 |
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramEntryView.java | 65 |
RuICMExperimentalSurgeryTrainingEntryServlet.class.getName(), "POST" ) ); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @param aTable TODO: DOCUMENT ME! * @param numbCells TODO: DOCUMENT ME! */ @Override public void addDataEntryFieldRows(CUHtmlTable aTable, int numbCells) { Vector<Object> columns = new Vector<Object>(numbCells); for (int c = 0; c < numbCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // RascalUni if (certification != null) aWidget = getRascalUniFirstLastNameWidget(certification.getRascalUser()); else aWidget = getRascalUniFirstLastNameWidget(modify); columns.setElementAt(aWidget, 3); aTable.addRowFor(columns); aTable.getCell(row, 1).add(getRowLabelFor("UNI")); aTable.getCell(row, 1).setColumnsToSpan(2); aTable.getCell(row, 3).setColumnsToSpan(2); row++; // Species aWidget = getSpeciesWidget(); columns.setElementAt(aWidget, 3); aTable.addRowFor(columns); aTable.getCell(row, 1).add(getRowLabelFor("Species")); aTable.getCell(row, 1).setColumnsToSpan(2); aTable.getCell(row, 3).setColumnsToSpan(2); row++; // Training Type aWidget = getTrainingTypeWidget(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDataSheetServlet.java | 85 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDataSheetServlet.java | 175 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDatabaseStoreUtilityServlet.java | 221 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaRetrieveServlet.java | 117 |
Vector unanticipateAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector expeditableAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector exemptAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector pendingAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), PENDING ); Vector otherTopicAttached = ah.getAllAgendaEventsByType("Other"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportProtocolHazMatView.java | 442 |
edu/columbia/rascal/presentation/appendix/pages/AppendixReportPtHazMatView.java | 421 |
keyList.addElement(KEY_XRAY_REQ); return keyList; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public java.lang.String getLocation() { return location; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public boolean getPrintable() { return printable; } /** * TODO: DOCUMENT ME! * * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlImage getReportHelpFor(String source) { CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("Help"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Rpt/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("right"); return i; } /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixQueueView#getRowSizeForQueueView(java.util.Vector) */ @Override public int getRowSizeForQueueView(Vector queue) { return queue.size() + 1; // includes the head row } /** @see edu.columbia.rascal.presentation.appendix.pages.AppendixQueueView#getSortBy() */ @Override public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public java.lang.String getToDate() { return toDate; } /** @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getWidgetFor(java.lang.String) */ @Override public Object getWidgetFor(String aString) { CUHtmlText text = new CUHtmlText(aString); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName(getDefaultFontName()); } else { if (aString.lastIndexOf("http://") >= 0) { text.setLink(aString); } text.setFontSize("1"); text.setFontName("Comic Sans MS"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesDataSheetServlet.java | 91 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaNewServlet.java | 182 |
Vector pendingAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), PENDING ); Vector otherTopicAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), "Other"); return new IrbAgendaMinutesDataSheetView(ah, getUser(), protocolAttached, modificationAttached, renewalAttached, adverseEventAttached, closureAttached, exemptAttached, expeditableAttached, pendingAttached, NRprotocolAttached, NRmodificationAttached, NRrenewalAttached, NRadverseEventAttached, NRclosureAttached, NRexemptAttached, NRexpeditableAttached, NRpendingAttached, otherTopicAttached, meetingAttendants, unanticipateAttached, NRunanticipateAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2776 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 7929 |
StringBuilder aSql = new StringBuilder(2000); if (name.equals(IrbNameConstants.PROTOCOL_HEADER)) { aSql.append("SELECT DISTINCT"); aSql.append(" e2.parentObjectName,"); // 1 aSql.append(" g.oid AS oid1,"); // 2 aSql.append(" a.protocolNumber, "); // 3 aSql.append(" g.protocolYear, "); // 4 aSql.append(" g.modificationNumber, "); // 5 aSql.append(" a.oid AS oid2,"); // 6 aSql.append(" d.name_last,"); // 7 aSql.append(" d2.name_last,"); // 8 aSql.append(" f.committeeName,"); // 9 aSql.append(" e1.statusDate,"); // 10 aSql.append(" e2.statusName,"); // 11 aSql.append(" e2.statusDate"); // 12 aSql.append(" FROM"); aSql.append( " IrbProtocol a, IrbEventCommittee b ,IrbStaff c, RASCAL_USER d, RASCAL_USER d2, IrbStatus e1,IrbStatus e2, IrbCommittee f, " ); aSql.append(table); aSql.append(" g"); aSql.append(" WHERE"); aSql.append(" a.oid = g.parentProtocolOid and g.createdBy = d2.rid"); aSql.append( " AND (g.oid = c.irbProtocolHeaderId AND c.sequenceNumber = 1 AND c.rid = d.rid)" ); aSql.append( " AND e1.oid = (SELECT min(oid) FROM IrbStatus x WHERE g.oid = x.parentObjectOid AND x.parentObjectName = '" ); aSql.append(IrbNameConstants.PROTOCOL_HEADER); aSql.append("' AND x.statusName = '"); aSql.append(LOGGED_IN); aSql.append("')"); aSql.append(" AND (g.oid = e2.parentObjectOid AND e2.parentObjectName = '"); aSql.append(IrbNameConstants.PROTOCOL_HEADER); aSql.append("' AND e2.statusName <> '"); aSql.append(CREATING); aSql.append( "' AND e2.oid = (SELECT max(oid) FROM IrbStatus x WHERE g.oid = x.parentObjectOid AND x.parentObjectName = '" ); aSql.append(IrbNameConstants.PROTOCOL_HEADER); aSql.append("')) AND a.oid = b.parentObjectOid "); aSql.append(" and b.committeeId=f.oid "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 195 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusDateRangeView.java | 108 |
aTable.getCell(row, 0).add(getRowLabelFor("Between ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; columns.setElementAt(getDateTable(endDate, "endDate", "endDateMonth", "endDateDay", "endDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("And ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // affiliated institution- multi select list aWidget = getFieldMultiSelectWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Fields *")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; } /** @see edu.columbia.rascal.presentation.propTrak.pages.PtReportFieldSelectionView#getActionButtons() */ @Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit", "checkDateForSubmit(startDate);checkDateForSubmit(endDate);return isDateValid()" ); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getDateTypeWidget() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS2590Servlet.java | 925 |
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS398Servlet.java | 1041 |
); // ensure that the Rascal User Object has been set if (localPtBudget == null) { proposedFromdate.setValue(""); } else { Date beginDate = localPtBudget.getProjectBudgetBeginDate(); if (beginDate != null) { Calendar ccalendar = Calendar.getInstance(); ccalendar.setTime(beginDate); // construct the month, day and year localPtBudget object String cmonth = String.valueOf(ccalendar.get(Calendar.MONTH) + 1); String cday = String.valueOf(ccalendar.get(Calendar.DATE)); String cyear = String.valueOf(ccalendar.get(Calendar.YEAR)); if ((cmonth != null) && (cday != null) && (cyear != null)) { String year = cyear.substring(2); if (cmonth.length() < 2) { cmonth = "0" + cmonth; } if (cday.length() < 2) { cday = "0" + cday; } proposedFromdate.setValue(this.checkFieldLimit( cmonth + "/" + cday + "/" + year ) ); } else { proposedFromdate.setValue(""); } } else { proposedFromdate.setValue(""); } } } /** TODO: DOCUMENT ME! */ private void setFormTXTProposedThroughdate() { FormText proposedEndDate = (FormText) localPDFForm.getElement( |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbAdverseEventFileUploadController.java | 210 |
edu/columbia/rascal/presentation/controller/irb/IrbAdverseEventFileUploadInternalController.java | 217 |
) throws IOException, SQLException { IrbAdverseEventAttachment attachment = ServiceLocator.getIrbAdverseEventAttachmentService() .findById(adverseEventOid); if (attachment != null) { IrbAdverseEvent currentIph = attachment.getIrbAdverseEvent(); if (CURascalGuardian.hasIrbRascal() || ServiceLocator.getIrbAdverseEventService().getAccessibleByUser( getRascalUser(), currentIph ) ) { InputStream content = attachment.getBlob().getBinaryStream(); response.setContentType(attachment.getContentType()); response.setHeader("Content-Disposition", "attachment; filename=\"" + attachment.getFileName() + "\"" ); FileCopyUtils.copy(content, response.getOutputStream()); response.getOutputStream().flush(); response.getOutputStream().close(); return null; } } return new ModelAndView("uploadFailure"); } /** * TODO: DOCUMENT ME! * * @param dataBinder TODO: DOCUMENT ME! */ @InitBinder("attachment") public void initBinder(ServletRequestDataBinder dataBinder) { dataBinder.setAllowedFields( "oid", "documentIdentifier", "dateCreated", "fileName"); } /** * TODO: DOCUMENT ME! * * @param t TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ @ExceptionHandler(ResourceNotFoundException.class) public String notFoundException(Throwable t) { return "updateFailed"; } /** * TODO: DOCUMENT ME! * * @param response TODO: DOCUMENT ME! * @param attachment TODO: DOCUMENT ME! * @param result TODO: DOCUMENT ME! * @param model TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws IOException TODO: DOCUMENT ME! */ @RequestMapping( value = "edit", method = RequestMethod.PUT ) public String update(HttpServletResponse response, @ModelAttribute("attachment") @Valid IrbAdverseEventAttachment attachment, BindingResult result, ModelMap model, @RequestParam long adverseEventOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtLocationFilterView.java | 34 |
edu/columbia/rascal/presentation/propTrak/pages/PtLocationFilterView.java | 94 |
public PtLocationFilterView(String title, RascalUser aUser) { super(); Vector lines = new Vector(1); Vector buttons = new Vector(3); setMainTitle("Location Selection"); getHeader().addMeta("PRAGMA", "NO-CACHE"); getHeader().addMeta("CACHE CONTROL", "NO-CACHE"); setForm(new CUHtmlForm("LocationFilterForm", PtLocationFilterServlet.class.getName(), "POST" ) ); setPageTitle("RASCAL Proposal Tracking"); setSubTitle("Location Selection for: " + title); getForm().add(getSubTitle()); CUHtmlHiddenField hf = new CUHtmlHiddenField("location", ""); getForm().add(hf); CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Clinical Trials", "Javascript:location.value=1;" ); buttons.addElement(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Health Sciences", "Javascript:location.value=2;" ); buttons.addElement(pb2); CUHtmlPushButton pb3 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Morningside Heights", "Javascript:location.value=3;" ); buttons.addElement(pb3); lines.addElement(buttons); CUHtmlTable t = new CUHtmlTable(lines); t.setBorderWidth(0); t.setWidth("40%"); t.setAlign("center"); getForm().add(t); add(getForm()); render(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 2014 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 2098 |
ResultSet res = acc.executeQuery(getQueryProposalHistoryByDept(deptCode, from, to)); // [HP Note 7/24/02] If this process runs slow, please consider to select at most the // last 10 proposals submitted here as follows: int rowCount = 0; while (res.next() && // rowCount++ < 10) In that case, in order to implement buildProposalsYearlySummary, it // is needed to implement additional processes that selects ALL proposals with ONLY // columns such as tr01.dateTimeIn and bu01.projectBudgetTotalAmount. while (res.next()) { // ph01.oid - is skipped but just used to validate result // row.addElement(res.getString(1)); // trakId row.addElement(res.getString(2)); // dateTimeIn for "Logged Out" if (res.getDate(3) == null) { row.addElement(""); } else { row.addElement(res.getDate(3)); } // agencyName row.addElement(res.getString(4)); // bu01.sequenceNumber - is skipped but just used to validate result // row.addElement(res.getInt(5)); // projectBudgetTotalAmount // Add a Double instead of a String (or a DecimalFormat) to be sorted. row.addElement(res.getDouble(6)); // projectBudgetBeginDate // Add a Date instead of a String to be sorted. if (res.getDate(7) == null) { row.addElement(""); } else { row.addElement(res.getDate(7)); } // projectBudgetEndDate if (res.getDate(8) == null) { row.addElement(""); } else { row.addElement(res.getDate(8)); } // P.I. - lastName, firstName (uni) row.addElement(buildLastFirstName(res.getString(9), res.getString(10)) + " (" + res.getString(11) + ")" ); results.addElement(row.clone()); row = new Vector(9); } // end while } catch (Exception e) { log.error(e); } return results; } /** * getSelectedDataProposalsHistoryByUni. * * @param uni String * @param from String * @param to String * * @return Vector */ public Vector getSelectedDataProposalsHistoryByUni(String uni, String from, String to) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueReportView.java | 166 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueReportView.java | 231 |
Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList", ""); elements.addElement(aListWidget); // 2 String onClick = "Javascript:getSortByValue('" + getServletName() + "','columnNamesList')"; elements.addElement(new CUHtmlPushButton("BUTTON", "BUTTON", "Sort", onClick)); // 3 CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport() ); elements.addElement(pb); // 4 pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload() ); elements.addElement(pb); aHeaderTable.addRowFor(elements); aHeaderTable.getCell(0, 0).setAlign("right"); aHeaderTable.getCell(0, 0).setVAlign("center"); aHeaderTable.getCell(0, 1).setAlign("left"); aHeaderTable.getCell(0, 1).setVAlign("center"); aHeaderTable.getCell(0, 2).setAlign("left"); aHeaderTable.getCell(0, 2).setVAlign("center"); aHeaderTable.getCell(0, 3).setAlign("right"); aHeaderTable.getCell(0, 3).setVAlign("center"); aHeaderTable.getCell(0, 4).setAlign("left"); aHeaderTable.getCell(0, 4).setVAlign("center"); return aHeaderTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 158 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 154 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 138 |
aTable.getCell(row, 0).add(getRowLabelFor("And ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // affiliated institution- multi select list aWidget = getFieldMultiSelectWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Fields *")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; aWidget = getWidgetFor( "*Hold down the Command key (MAC) or Control key (Windows) to select multiple fields." ); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; } /** * Insert the method's description here. Creation date: (1/2/2003 11:43:27 AM) * * @return java.lang.String */ public String getAction() { return action; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit", "checkDateForSubmit(startDate);checkDateForSubmit(endDate);return isDateValid()" ); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * Insert the method's description here. Creation date: (1/2/2003 11:41:52 AM) * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return CUHtmlList */ public Object getFieldMultiSelectWidget() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuRadiationSafetyBadgeAdminView.java | 340 |
edu/columbia/rascal/presentation/user/views/RuSimpleTrainingEnrollmentAdminView.java | 454 |
else cell2.add("<br>"); cell2.setAlign("center"); // Modify Certification? CUHtmlImage modify = new CUHtmlImage("/images/popup.gif"); modify.setBorderWidth(0); modify.setAlt("Modify Certification"); modify.setLink("#"); modify.setOnClick(getOnClickToModifyCertification(dataRow)); CUHtmlTableCell cell3 = aTable.getCell(rowCount, 3); cell3.add(modify); cell3.setAlign("center"); // Delete Certification? CUHtmlImage trash = new CUHtmlImage("/images/trash.gif"); trash.setBorderWidth(0); trash.setAlt("Delete Certification"); trash.setLink(getUrlToDeleteOid(dataRow)); CUHtmlTableCell cell4 = aTable.getCell(rowCount, 4); cell4.add(trash); cell4.setAlign("center"); } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setTableHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableCell header; // UNI aTitle = new CUHtmlText("UNI"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 0); header.setIsHeader(true); header.add(aTitle); // User name aTitle = new CUHtmlText("Name"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 1); header.setIsHeader(true); header.add(aTitle); // Badge Number aTitle = new CUHtmlText("Badge Number"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaEventPostMeetingView.java | 776 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaEventPostMeetingView.java | 949 |
public void setAttachEventTableDataRow(CUHtmlTable aTable, IrbAgendaEvent anEvent, String eventName ) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; IrbMeetingAttributes attribute = anEvent.getIrbMeetingAttributes(); // data sheet CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getObjectDataSheetLinkWidgetFor(anEvent)); cell0.setAlign("left"); cell0.setVAlign("top"); aRow.add(cell0); // recommendation CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls( (attribute == null) ? blank : attribute.getRecommendationText() ) ) ); cell1.setAlign("left"); cell1.setVAlign("top"); aRow.add(cell1); // recommended status CUHtmlTableCell cell3 = new CUHtmlTableCell(); cell3.add(getWidgetFor((attribute == null) ? blank : attribute.getRecommendedStatus())); cell3.setAlign("left"); cell3.setVAlign("top"); aRow.add(cell3); // follow-up CUHtmlTableCell cell4 = new CUHtmlTableCell(); cell4.add((getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls( (attribute == null) ? blank : attribute.getFollowUp() ) )) ); cell4.setAlign("left"); cell4.setVAlign("top"); aRow.add(cell4); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 495 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFShortDataSheetView.java | 204 |
.getDescription(); } else title = protHeader.getTitle(); } vContent.add(0, "IRB-" + protocolNumber); // protocolNumber vContent.add(1, currentRow.getEventName()); // eventName. vContent.add(2, getNotNullString(title, "")); // title vContent.add(3, getNotNullString(currentRow.getEventAbstract(), "")); // comments vContent.add(4, getNotNullString( ServiceLocator.getRascalUserService().findById( protHeader.getPI().getRid() ).getUserFirstLastNameUni(), "" ) ); // PI Object dateObj = protHeader.getIrbApprovalDate(); if (dateObj instanceof java.sql.Date) { vContent.add(5, getNotNullString(CalendarTransformer.formatMMDDYYYY((Date) dateObj), "") ); } else { vContent.add(5, getNotNullString("", "")); } addVectorContent(vContent, xyPosition, theStyle); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); vContent.removeAllElements(); if (i != (size - 1)) { addContent(getSpaceWithSpots(0, spotsNumber), ""); } } } } /** * TODO: DOCUMENT ME! * * @param label TODO: DOCUMENT ME! * @param nrProtocolAttached TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addNRAttached(String label, Vector nrProtocolAttached, String eventName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueApprovalView.java | 262 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueApprovalView.java | 351 |
(String) row.elementAt(2), (String) row.elementAt(0), (String) row.elementAt(1) ) ); aCell.setAlign("left"); aRow.add(aCell); // title aCell = new CUHtmlTableCell(); aCell.add((getWidgetFor( (((String) row.elementAt(3)).length() > 30) ? ((String) row.elementAt(3)).substring(0, 30) : ((String) row.elementAt(3)) )) ); aCell.setAlign("left"); aRow.add(aCell); // PI aCell = new CUHtmlTableCell(); aCell.add(getWidgetFor((String) row.elementAt(4))); aCell.setAlign("left"); aRow.add(aCell); // Current Status aCell = new CUHtmlTableCell(); aCell.add(getWidgetFor((String) row.elementAt(6))); aCell.setAlign("left"); aRow.add(aCell); // Approval Type aCell = new CUHtmlTableCell(); String aType = (String) row.elementAt(8); if (aType.equals("Key Personnel")) aType = "Personnel"; aCell.add(getWidgetFor(aType)); aCell.setAlign("left"); aRow.add(aCell); |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderCreationServlet.java | 111 |
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderNewServlet.java | 119 |
String primSite = getRequestParameter("primarySite"); if (primSite.equals("Health Sciences")) { primSite = "HS"; } else { primSite = "MS"; } String headerTitle = getRequestParameter("headerTitle").trim(); if (headerTitle.length() > 255) { headerTitle = headerTitle.substring(0, 255); } String origDeptCode = getRequestParameter("originatingDepartment"); String origDeptName = "Department not Defined"; RascalDepartment dept = ServiceLocator.getRascalDepartmentService().findById(origDeptCode); if (dept==null) { origDeptCode = ""; } if (dept!=null) { origDeptName = dept.getName(); } String origSubDeptCode = getRequestParameter("originatingSubDepartment"); String origSubSubDeptCode = getRequestParameter("originatingSubSubDepartment"); if (hah.getCreatedBy() == 0) { hah.setCreatedBy(getUser().getId()); } hah.setCreationDate(hah.getCreationDate()); // set the creation date to the default hah.setSubmitSite(primSite); hah.setAppendixHeaderNumber(generateNewProtocolNumber(hah)); hah.setTitle(headerTitle); hah.setDeptNumber(origDeptCode); hah.setSubDeptNumber(origSubDeptCode); hah.setSubSubDeptNumber(origSubSubDeptCode); hah.setDeptName(origDeptName); ServiceLocator.getHzAppendixHeaderService().save(hah); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminMainView.java | 26 |
edu/columbia/rascal/presentation/lab/pages/HzMainView.java | 68 |
setMainTitle("Administration"); setPageTitle("Columbia University's RASCAL - Research Administration System"); addItems(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** This method was created in VisualAge. */ public void addItems() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getLogoServletString()); f1.setName("Logo"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); v.addElement(f1); frames.add(v); frames.setRows("85,*"); frames.setColumns("*"); frames.setBorder("1"); frames.setFramespacing("0"); v = new Vector(2); f1 = new CUHtmlFrame(); f1.setSrc(getLinkServletString()); f1.setName("Link"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); f2.setSrc(getMainServletString()); f2.setName("Main"); v.addElement(f1); v.addElement(f2); CUHtmlFrameset fs2 = new CUHtmlFrameset(v); fs2.setRows("*"); fs2.setColumns("120,610"); frames.add(fs2); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ public String getLinkServletString() { return "edu.columbia.rascal.presentation.administration.servlets.AdminLinkFrameServlet"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 396 |
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 678 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 556 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 908 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 280 |
aTitle1 = getTableColumnName("Pain"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendices aTitle = getTableColumnName("Appendices"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); header.setColumnsToSpan(6); // Appendix A aTitle1 = getTableColumnName("A"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix B aTitle1 = getTableColumnName("B"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix C aTitle1 = getTableColumnName("C"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix D aTitle1 = getTableColumnName("D"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix E aTitle1 = getTableColumnName("E"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendix F aTitle1 = getTableColumnName("F"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStats2View.java | 359 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStatsView.java | 449 |
aTable.add(aRow); // add individual column labels aRow = new CUHtmlTableRow(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(aTitle, 1, false)); aCell.setAlign("right"); aCell.setVAlign("bottom"); aRow.add(aCell); } aTable.add(aRow); Vector subject = new Vector(); subject.addElement("<b>New Protocol</b>"); subject.addElement("- full Board"); subject.addElement("- exempt"); subject.addElement("- expedited"); subject.addElement("<b>Modification</b>"); subject.addElement("- full Board"); subject.addElement("- exempt"); subject.addElement("- expedited"); subject.addElement("<b>Renewal</b>"); subject.addElement("- full Board"); subject.addElement("- exempt"); subject.addElement("- expedited"); subject.addElement("<b>Adverse Event</b>"); subject.addElement("<b>Closure</b>"); subject.addElement("<b>Unanticipated Problem</b>"); int resultSize = results.size(); for (int i = 0; i < resultSize; i++) { aRow = new CUHtmlTableRow(); Vector currentRow = (Vector) results.elementAt(i); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailEHSRequiredCourseTask.java | 295 |
edu/columbia/rascal/presentation/tc/tools/TCEmailEHSRequiredCourseTask.java | 366 |
message.append('\n'); } message.append("\nEvery member of the University community engaged in research is obligated to participate in the University’s training program and to maintain the currency of all required training courses."); message.append("\n\n"); message.append("\nFailure to complete or maintain current training while you are actively engaged in research is a violation of University policy and potentially of federal law."); message.append("\n\n"); message.append("\n------------------------------------------------"); message.append("\nHOW TO RETAKE YOUR REQUIRED COURSE(S) IN RASCAL:"); message.append("\n\n"); message.append("\n1.Go to the Rascal homepage at https://www.rascal.columbia.edu. "); message.append("\n2.Select 'Training Center' and login with your UNI and password. "); message.append("\n3. a. For EH&S courses ONLY, click on 'Safety Courses.' "); message.append("\n b. For all other courses, click on 'Course Listings.' "); message.append("\n4.Select the course listed above from the course listings. "); message.append("\n5.Read the Course Overview."); message.append("\n6.Click 'Take Course,' and read and follow any instructions. "); message.append("\n7.Once you have taken the course, click 'Take Test' to complete the course test. (Note: not all courses require a Rascal test; courses without tests will indicate 'This test has not been defined' in the sidebar menu.) "); message.append("\n"); message.append("\nTo check the status of your Rascal trainings at any time, including the completion and expiration dates of all of your completed Rascal courses: "); message.append("\n"); message.append("\n 1. Go to the Rascal homepage at https://www.rascal.columbia.edu. "); message.append("\n 2. Select 'My Rascal' and login with your UNI and password. "); message.append("\n 3. Click on 'My Test History' under Training Center. "); message.append("\n 4. Optional - Click on the blue button next to any course listed to generate a certificate for that "); message.append("\n course or the button at the bottom of the list to generate a full transcript for your records. "); message.append("\n"); message.append("\nTo de-activate this reminder - If you are no longer affiliated with Columbia University, or if the above training course is no longer applicable to your job duties, "); message.append("\nyou may disregard these reminders with apologies for any inconvenience that they may cause. You will stop receiving automated notifications when the course expiration date has been reached."); message.append("\nPlease contact safetytraining@columbia.edu with any questions or concerns, or if you continue to receive these reminder"); message.append("\nemails beyond the course expiration date."); message.append("\n\nIf you have any questions about the course(s) listed above, please contact your Departmental Administrator or the Contact Person listed in the Rascal Course Overview. "); message.append("\n\nIf you have any technical questions, please contact the Rascal Help Line at 212.851.0213 or rascal@columbia.edu. "); message.append("\n\nPlease do not “reply” to this email. "); message.append("\n\nrascal@columbia.edu "); message.append("\nResearch Administration System "); message.append("\nColumbia University "); return message.toString(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolAdminChairSearchServlet.java | 110 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolSearchServlet.java | 131 |
} if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new IrbProtocolResultsDisplayView(pageInfo.getDisplayPage(), pageInfo.getPageBeginPos(), pageInfo.getPageSize(), pageInfo.getTotalMatch(), pageInfo.getMaxPageSize(), this, srchParams.getSortBy(), srchParams.getOrderBy()); } else { view = new IrbProtocolResultsDisplayView(new java.util.Vector()); } view.draw(getResponse()); } /** * Builds the PtDocSearchParameters. * * @param servlet edu.columbia.rascal.presentation.fo.alertService.servlets.FoasDocumentSearchServlet * * @return edu.columbia.rascal.presentation.fo.alertService.auxiliary.objects.FoasDocSearchParameters * * @throws edu.columbia.rascal.presentation.common.parser.CURascalParseException TODO: DOCUMENT ME! */ protected IrbSearchParameters buildSearchParams(IrbProtocolAdminChairSearchServlet servlet) |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 131 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseNotifyTask.java | 115 |
} /** * TODO: DOCUMENT ME! * * @param deptCode TODO: DOCUMENT ME! * @param message TODO: DOCUMENT ME! * @param subject TODO: DOCUMENT ME! */ public void generateDAEmail(String deptCode, String message, String subject) { List<List<Object>> deptAdmins = ServiceLocator.getRuAuthorizedDepartmentService() .getDeptAdminsByDeptCodeApplyId(deptCode, "Tc"); for(List<Object> currentRow: deptAdmins){ String aUserEmail = (String) currentRow.get(3); if ((aUserEmail == null) || aUserEmail.equals("") || (!aUserEmail.contains("@"))) aUserEmail = currentRow.get(0) + "@columbia.edu "; StringBuilder buff = new StringBuilder(200); buff.append("Attempting to email: DA- ("); buff.append(currentRow.get(1)); buff.append(' '); buff.append(currentRow.get(2)); buff.append(" ("); buff.append(currentRow.get(0)); buff.append(") Address to be sent to: "); buff.append(aUserEmail); CURascalEmailMessage email = null; // sent email email = new TCGeneralEmailMessage(currentRow.get(1) + " " + currentRow.get(2), aUserEmail, subject, message, RascalProperties.getProperty("DbUserId") ); CURascalEmailSender sender = new CURascalEmailSender(); try { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 110 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 109 |
addJavaScriptElement(new CUHtmlText(getJSCodeFrom("departmentOpenSearchWindow.js"))); buildForm(resultPage, curBeginPos, curPageSize, totalMatch, maxPageSize); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * Builds the main form to display search results. * * <p>The resultPage vector is of the form: a vector of vectors [ [id0, title0], [id1, title1], * [id2, title2], ...] where the first element must be the document id (as an Integer) and the * second element must be the document title</p> * * @param resultPage a vector of vectors to be displayed * @param curBeginPos an integer that indicates the position of the first record of the * current page in the total matches * @param curPageSize an integer that indicates the number of records in the currunt page * @param totalMatch an intger that indicates the total number of matches in searching * @param maxPageSize an intger that indicates the maximum number of matches to be displayed * on the page * * @author Hyung Park */ public void buildForm(Vector resultPage, int curBeginPos, int curPageSize, int totalMatch, int maxPageSize ) { if (resultPage.isEmpty()) { CUHtmlText title = new CUHtmlText("No Protocols matched your search criteria."); title.setHeaderLevel("2"); title.setAlignment("CENTER"); getForm().add(title); } else { String curRange = (curBeginPos + 1) + " - " + (curBeginPos + curPageSize); CUHtmlText txt1 = new CUHtmlText("Search Results: " + curRange + " of exactly " + totalMatch + " matches" ); txt1.setIsBold(true); txt1.setFontSize("+1"); txt1.setFontName(getDefaultFontName()); txt1.setAlignment("CENTER"); getForm().add(txt1); CUHtmlText txt2 = new CUHtmlText("Select a protocol to view"); txt2.setIsBold(true); txt2.setFontSize("+1"); txt2.setFontName(getDefaultFontName()); txt2.addBreaks(1); getForm().add(txt2); CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setCellPadding(1); t.setCellSpacing(0); Vector row = new Vector(8); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 487 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 417 |
} /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } String number = aString.substring(4, 12); return getLinkForProtocolOverview(aString, number); } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToViewReportForDownload(String queueName) { return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentExternalServlet.java | 139 |
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentInternalServlet.java | 141 |
ae = ServiceLocator.getIrbUnanticipatedProblemService().findById(Long.parseLong(aeOid)); Vector<IrbUnanticipatedAttachment> allAttachments = ServiceLocator .getIrbUnanticipatedProblemService().getAllAttachments(ae); int attachmentSize = allAttachments.size(); Vector allDocs = new Vector(attachmentSize); for (int i = 0; i < attachmentSize; i++) { IrbUnanticipatedAttachment anAttachment = allAttachments.elementAt(i); allDocs.addElement(Long.toString(anAttachment.getId())); } ArrayList pageDocs = new ArrayList(allDocs); ArrayList selected = getSelectedDocIds(); ArrayList nonSelected = new ArrayList(); int len = pageDocs.size(); for (int i = 0; i < len; i++) { if (!selected.contains(pageDocs.get(i))) { nonSelected.add(pageDocs.get(i)); } } return nonSelected; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private ArrayList getSelectedDocIds() { ArrayList result = new ArrayList(); String ids[] = getRequest().getParameterValues("CHECKBOX"); if (ids != null) { int idsLen = ids.length; for (int i = 0; i < idsLen; ++i) result.add(ids[i]); } return result; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptInactiveView.java | 100 |
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptView.java | 106 |
edu/columbia/rascal/presentation/tc/views/TCReportTestRequirementExceptionView.java | 99 |
CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames( getKeywordListForColumns(new Vector<Object>()), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDSafetyOfficerApprovalView.java | 103 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 147 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 147 |
String ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(ppeLabel, defaultFontSize, true, false), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_PPE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_3_RecommendedPpe("3"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVER_NOTES + "</b>"), |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 643 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 928 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName(getDefaultFontName()); } else { text.setFontSize("1"); text.setFontName(getDefaultFontName()); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName(getDefaultFontName()); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { this.endDate = newValue; } /** * This method was created in VisualAge. * * @param newValue int */ public void setIndexOfAbbreviatedTitle(int newValue) { this.indexOfAbbreviatedTitle = newValue; } /** * This method was created in VisualAge. * * @param newValue int */ public void setIndexOfAgencyName(int newValue) { this.indexOfAgencyName = newValue; } /** * This method was created in VisualAge. * * @param newValue int */ public void setIndexOfApprovalDate(int newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptAndLocationServlet.java | 195 |
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptFilterByJobCodeServlet.java | 174 |
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptServlet.java | 187 |
Vector allData = getAllData(selectedDepartments, testLocation); allCourses = (Vector) allData.elementAt(0); allData.removeElementAt(0); CUSortVector rows = new CUSortVector(allData); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { String sortColumns[] = new String[allCourses.size() + 1]; sortColumns[0] = "name"; for (int i = 0; i < allCourses.size(); i++) sortColumns[i + 1] = ((String) allCourses.elementAt(i)).substring(0, 6); rows.setColumnNames(sortColumns); rows.sortByColumn(sortBy.replace('+', ' ')); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); String downloadableString = getLineParameter("downloadable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } view = new TCReportByDeptAndLocationView(rows, printable, sortBy, downloadable, |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminMainView.java | 27 |
edu/columbia/rascal/presentation/consent/pages/ConsentMainView.java | 32 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaMainView.java | 36 |
edu/columbia/rascal/presentation/lab/pages/HzMainView.java | 69 |
setPageTitle("Columbia University's RASCAL - Research Administration System"); addItems(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** This method was created in VisualAge. */ public void addItems() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getLogoServletString()); f1.setName("Logo"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); v.addElement(f1); frames.add(v); frames.setRows("85,*"); frames.setColumns("*"); frames.setBorder("1"); frames.setFramespacing("0"); v = new Vector(2); f1 = new CUHtmlFrame(); f1.setSrc(getLinkServletString()); f1.setName("Link"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); f2.setSrc(getMainServletString()); f2.setName("Main"); v.addElement(f1); v.addElement(f2); CUHtmlFrameset fs2 = new CUHtmlFrameset(v); fs2.setRows("*"); fs2.setColumns("120,610"); frames.add(fs2); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ public String getLinkServletString() { return "edu.columbia.rascal.presentation.administration.servlets.AdminLinkFrameServlet"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 265 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 211 |
Vector<String> list = new Vector<String>(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getMonthWidget(java.lang.String, int) */ @Override public Object getMonthWidget(String fieldName, int monthIndex) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportProtocolHazMatView.java | 724 |
edu/columbia/rascal/presentation/appendix/pages/AppendixReportPtHazMatView.java | 696 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportHazMatView.java | 701 |
aTitle = getTableColumnName("Approval Date"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix A aTitle = getTableColumnName("A"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix B aTitle = getTableColumnName("B"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix C aTitle = getTableColumnName("C"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix D aTitle = getTableColumnName("D"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix E aTitle = getTableColumnName("E"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Appendix F aTitle = getTableColumnName("F"); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // Strong Radio Frequencies aTitle = getTableColumnName("R"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixGIsotopeEntryServlet.java | 93 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeEntryServlet.java | 93 |
return new AppendixGIsotopeEntryView(anAppendix, getCurrentIsotope()); } Hashtable parmTable = new Hashtable(); parmTable.put(KEY_PARM_RADIO_NAME, getSession().getAttribute(KEY_PARM_RADIO_NAME)); parmTable.put(KEY_PARM_RADIO_COMPOUND, getSession().getAttribute(KEY_PARM_RADIO_COMPOUND) ); parmTable.put(KEY_PARM_RADIO_HALFLIFE, getSession().getAttribute(KEY_PARM_RADIO_HALFLIFE) ); parmTable.put(KEY_PARM_RADIO_HALFLIFE_UNIT, getSession().getAttribute(KEY_PARM_RADIO_HALFLIFE_UNIT) ); // parmTable.put(KEY_PARM_RADIO_HALFLIFE_SUBJECT,(String)getSession().getAttribute(KEY_PARM_RADIO_HALFLIFE_SUBJECT)); // parmTable.put(KEY_PARM_RADIO_HALFLIFE_SUBJECT_UNIT,(String)getSession().getAttribute(KEY_PARM_RADIO_HALFLIFE_SUBJECT_UNIT)); parmTable.put(KEY_PARM_RADIO_INI_ACTIVE, getSession().getAttribute(KEY_PARM_RADIO_INI_ACTIVE) ); parmTable.put(KEY_PARM_RADIO_INI_ACTIVE_UNIT, getSession().getAttribute(KEY_PARM_RADIO_INI_ACTIVE_UNIT) ); parmTable.put(KEY_PARM_RADIO_ROUTE_OF_ADMIN, getSession().getAttribute(KEY_PARM_RADIO_ROUTE_OF_ADMIN) ); parmTable.put(KEY_PARM_RADIO_OTHER_ROUTE, getSession().getAttribute(KEY_PARM_RADIO_OTHER_ROUTE) ); getSession().removeAttribute(KEY_PARM_RADIO_OID); getSession().removeAttribute(KEY_PARM_RADIO_NAME); getSession().removeAttribute(KEY_PARM_RADIO_COMPOUND); getSession().removeAttribute(KEY_PARM_RADIO_HALFLIFE); getSession().removeAttribute(KEY_PARM_RADIO_HALFLIFE_UNIT); // getSession().removeAttribute(KEY_PARM_RADIO_HALFLIFE_SUBJECT); // getSession().removeAttribute(KEY_PARM_RADIO_HALFLIFE_SUBJECT_UNIT); getSession().removeAttribute(KEY_PARM_RADIO_INI_ACTIVE); getSession().removeAttribute(KEY_PARM_RADIO_INI_ACTIVE_UNIT); getSession().removeAttribute(KEY_PARM_RADIO_ROUTE_OF_ADMIN); getSession().removeAttribute(KEY_PARM_RADIO_OTHER_ROUTE); return new AppendixGIsotopeEntryView(anAppendix, getCurrentIsotope(), parmTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 160 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 167 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 133 |
(new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doPost in CURascalVAPServlet and CURascalServlet.</p> * * <p>hh 5/19/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 306 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 530 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 450 |
EVector list = new EVector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** * Insert the method's description here. Creation date: (2/20/2002 2:09:52 PM) * * @param eventName TODO: DOCUMENT ME! * * @return java.lang.String */ public String getDisplayStringFor(String eventName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 155 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 255 |
Vector<String> list = new Vector<String>(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** * TODO: DOCUMENT ME! * * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlImage getHelpFor(String source) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1488 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1726 |
String departmentCode = (getProtocolHeader().getOriginatingDepartment().trim().equals("") ? blank : getProtocolHeader().getOriginatingDepartment()); String department = ""; if (!departmentCode.equals(blank)) department = ServiceLocator.getRascalDepartmentService().findById(departmentCode) .getName() + " " + "(" + departmentCode + ")"; else department = blank; setSubTitle(subTitle); add(getSubTitle()); s.append("<table width=\"100%\" border=\"1\" bgcolor=\"#CCCCCC\">"); s.append("<tr> "); // protocol number s.append("<td colspan=\"2\"> "); s.append( "<div align=\"right\"><font face=\"Verdana\" size=\"1\">Protocol Number</font> </div>" ); s.append("</td> <td colspan=\"2\"> <font face=\"Verdana\" size=\"1\"> "); s.append(getPrefix()).append((getProtocolHeader().getIrbProtocol().getProtocolNumber() == null) ? "" : getProtocolHeader().getIrbProtocol().getProtocolNumber()); s.append("</font></td> </tr> <tr> <td width=\"25%\"> "); // create date s.append( "<div align=\"right\"><font face=\"Verdana\" size=\"1\">Protocol Creation Date</font></div></td> <td width=\"25%\"> " ); s.append("<font face=\"Verdana\" size=\"1\"> "); s.append(CalendarTransformer.formatDateAndTime(getProtocolHeader().getCreationDate())); s.append("</font></td> <td width=\"25%\"> "); // department s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Department</font></div>"); s.append("</td> <td width=\"25%\"> <font face=\"Verdana\" size=\"1\"> "); s.append(department).append("</font></td> </tr> <tr> <td> "); // PI s.append( "<div align=\"right\"><font face=\"Verdana\" size=\"1\">Principal Investigator</font></div></td><td>" ); // M // s.append((((CUHtmlItem)getWidgetFor(getProtocolHeader().getLeadPersonName())).getHtml())); IrbStaff staff = getProtocolHeader().getLeadPerson(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentExternalServlet.java | 95 |
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentInternalServlet.java | 96 |
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentServlet.java | 99 |
return IrbUnanticipatedAttachmentExternalServlet.class.getName(); } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#submit() */ @Override public void submit() { String aeOid = (String) getSession().getAttribute("aeOid"); IrbUnanticipatedProblem ae = ServiceLocator.getIrbUnanticipatedProblemService().findById( Long.parseLong(aeOid) ); String statusName = ServiceLocator.getIrbStatusService().getCurrentStatus(ae.getId(), ae.classNameWithoutPrefix() ).getStatusName(); if (statusName.equals(RETURNED) || statusName.equals(PENDING)) { clearArchiveValues(getNonSelectedDocIds()); Enumeration someList = getRequest().getParameterNames(); while (someList.hasMoreElements()) { String s = (String) someList.nextElement(); if (s.startsWith("id")) { String id = s.substring(2); IrbUnanticipatedAttachment attachment = ServiceLocator .getIrbUnanticipatedAttachmentService().findById(Long.parseLong(id)); attachment.setArchive("Y"); } } } } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private ArrayList getNonSelectedDocIds() { IrbUnanticipatedProblem ae = null; String aeOid = (String) getSession().getAttribute("aeOid"); ae = ServiceLocator.getIrbUnanticipatedProblemService().findById(Long.parseLong(aeOid)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 384 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 310 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 481 |
String key = (String) e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * This method was created in VisualAge. Sets the mainTitle of this page. If aMainTitle is a * String, use the default mainTitle settings. if aMainTitle is CUHtmlText, override the default * mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aMode TODO: DOCUMENT ME! */ public void setMode(String aMode) { mode = aMode; } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { if (aNote instanceof CUHtmlText) { note = (CUHtmlText) aNote; } else { if (aNote instanceof String) { CUHtmlMultiLineText aText = new CUHtmlMultiLineText((String) aNote); aText.setFontName(getDefaultFontName()); aText.setMaxChar(600); aText.setIsBold(false); aText.setIsItalic(true); aText.addBreaks(3); note = aText; } } } /** * This method was created in VisualAge. Sets the subtitle of this page. If aSubTitle is a * String, use the default subtitle settings. if aSubTitle is CUHtmlText, override the default * title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionForExceptionView.java | 172 |
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionForTestLocationView.java | 177 |
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionView.java | 246 |
Vector<RascalDepartment> allDepts = new Vector<RascalDepartment>( ServiceLocator.getRascalDepartmentService().getListOfAllPossibleDepartments() ); int allDeptsLen = allDepts.size(); for (int k = 0; k < allDeptsLen; k++) { deptString = ""; dept = allDepts.elementAt(k); if (dept != null) deptString = dept.getId() + " - " + dept.getName(); list.addElement(deptString); } } else { Vector<RuAuthorizedDepartment> authDepts = aUser.getAuthorizedDepartmentsFor( getRascalUser().getId(), "Tc" ); RuAuthorizedDepartment authDept; String code = null; int authDeptsLen = authDepts.size(); for (int k = 0; k < authDeptsLen; k++) { deptString = ""; authDept = authDepts.elementAt(k); if (authDept != null) code = authDept.getDeptCode(); if (code != null) dept = ServiceLocator.getRascalDepartmentService().getRascalDepartmentByCode( code ); if (dept != null) deptString = dept.getId() + " - " + dept.getName(); list.addElement(deptString); } } return getMultiSelectWidgetFor(list, "All", "deptCode"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 306 |
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 460 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 530 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 388 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 427 |
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 155 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 428 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 450 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 361 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 255 |
EVector list = new EVector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } /** * Insert the method's description here. Creation date: (2/20/2002 2:09:52 PM) * * @param eventName TODO: DOCUMENT ME! * * @return java.lang.String */ public String getDisplayStringFor(String eventName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 265 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 255 |
Vector<String> list = new Vector<String>(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentInternalView.java | 161 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentView.java | 160 |
bTable.setWidth("30%"); aForm.add(bTable); } add(aForm); } /** * This method was created in VisualAge. * * @param ps TODO: DOCUMENT ME! * * @return java.util.Vector */ public CUHtmlTable buildAttachmentRows(Vector ps) { CUHtmlTable aTable = getTable(1, getColumns().size()); String anOid = ""; String docId = ""; String fileName = ""; aTable.setBorderWidth(1); aTable.setWidth("95%"); aTable.setAlign("center"); setAttachmentHead(aTable); int psSize = ps.size(); for (int i = 0; i < psSize; i++) { Vector info = (Vector) ps.elementAt(i); Object dateObj1 = info.elementAt(3); String aDate = ""; if (dateObj1 instanceof java.sql.Date) aDate = CalendarTransformer.toString((java.sql.Date) dateObj1); try { setAttachmentTableDataRow(aTable, (String) info.elementAt(0), (String) info.elementAt(1), (String) info.elementAt(2), aDate ); } catch (Exception e) { } } return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public Vector getColumns() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS2590Servlet.java | 975 |
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS398Servlet.java | 1086 |
); // ensure that the Rascal localPtProposalHeader Object has been set if (localPtBudget == null) { proposedEndDate.setValue(""); } else { Date endDate = localPtBudget.getProjectBudgetBeginDate(); if (endDate != null) { Calendar dcalendar = Calendar.getInstance(); dcalendar.setTime(endDate); // construct the month, day and year localPtBudget object String dmonth = String.valueOf(dcalendar.get(Calendar.MONTH) + 1); String dday = String.valueOf(dcalendar.get(Calendar.DATE)); String dyear = String.valueOf(dcalendar.get(Calendar.YEAR)); if ((dmonth != null) && (dday != null) && (dyear != null)) { String year = dyear.substring(2); if (dmonth.length() < 2) { dmonth = "0" + dmonth; } if (dday.length() < 2) { dday = "0" + dday; } proposedEndDate.setValue(this.checkFieldLimit( dmonth + "/" + dday + "/" + year ) ); } else { proposedEndDate.setValue(""); } } else { proposedEndDate.setValue(""); } } } /** TODO: DOCUMENT ME! */ private void setFormTXTTitle() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportTestRequirementExceptionView.java | 331 |
edu/columbia/rascal/presentation/tc/views/TCReportTestRequirementExceptionView.java | 386 |
bRow = new CUHtmlTableRow(); CUHtmlTableCell cCell = new CUHtmlTableCell(); cCell.add(""); cCell.setAlign("left"); cCell.setWidth("5%"); bRow.add(cCell); cCell = new CUHtmlTableCell(); cCell.add(getWidgetFor( currentRow.elementAt(3) + " - " + currentRow.elementAt(4) ) ); cCell.setAlign("left"); cCell.setWidth("85%"); bRow.add(cCell); cCell = new CUHtmlTableCell(); // required date if (currentRow.elementAt(6).equals("")) cCell.add(""); else { int days = Integer.parseInt((String) currentRow.elementAt(5)); if (days > 30) cCell.add(getWidgetFor(CalendarTransformer.toString((Date) currentRow.elementAt(6)), "red" ) ); else cCell.add(getWidgetFor(CalendarTransformer.toString((Date) currentRow.elementAt(6))) ); } cCell.setAlign("left"); cCell.setWidth("10%"); bRow.add(cCell); bTable.add(bRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 306 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 265 |
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 460 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 530 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 388 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 427 |
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 155 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 428 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 450 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 361 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 255 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 211 |
EVector list = new EVector(); list.addElement(""); list.addElement("01"); list.addElement("02"); list.addElement("03"); list.addElement("04"); list.addElement("05"); list.addElement("06"); list.addElement("07"); list.addElement("08"); list.addElement("09"); list.addElement("10"); list.addElement("11"); list.addElement("12"); list.addElement("13"); list.addElement("14"); list.addElement("15"); list.addElement("16"); list.addElement("17"); list.addElement("18"); list.addElement("19"); list.addElement("20"); list.addElement("21"); list.addElement("22"); list.addElement("23"); list.addElement("24"); list.addElement("25"); list.addElement("26"); list.addElement("27"); list.addElement("28"); list.addElement("29"); list.addElement("30"); list.addElement("31"); getLabel(fieldName); return getSingleSelectWidgetFor(list, dayIndex); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 51 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 135 |
public AppendixDView(AbstractAppendix anAppendixObject, RascalUser aUser) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixDServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_D)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbersOrDecimal.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAccessControlRemoveServlet.java | 58 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAuthorizedPersonRemoveServlet.java | 55 |
} /** @see edu.columbia.rascal.presentation.appendix.servlets.AppendixAbstractServlet#getPage() */ @Override public edu.columbia.rascal.presentation.common.views.CURascalHtmlView getPage() throws javax.servlet.ServletException, java.rmi.RemoteException, javax.transaction.TransactionRequiredException, javax.transaction.TransactionRolledbackException { WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } return null; } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override public String getRedirectUrl() { return AppendixAccessControlServlet.class.getName(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 250 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 335 |
row.setElementAt(res.getString(12), 10); // current statusName resultsVector.addElement(row.clone()); } // end while } else { while (res.next()) { row.setElementAt(String.valueOf(res.getLong(1)), 0); // protocol oid row.setElementAt(res.getString(2), 1); row.setElementAt(name, 2); row.setElementAt(res.getString(4), 3); // title row.setElementAt(res.getString(3), 4); // PI row.setElementAt(String.valueOf(res.getInt(5)), 5); // event oid if (res.getString(6) == null) { row.setElementAt("", 6); } else { row.setElementAt(res.getString(6), 6); } row.setElementAt(String.valueOf(res.getLong(7)), 7); // correspondence oid row.setElementAt(String.valueOf(res.getLong(8)), 8); // recipient oid row.setElementAt(res.getString(9), 9); // correspondence Author row.setElementAt(res.getString(10), 10); // current statusName |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolAdminChairSearchServlet.java | 96 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolRascalSearchServlet.java | 94 |
IrbProtocolResultsDisplayView view = null; String query; String pageInfoKeyword = (String) keywords.get("IrbSearchDisplayPageInfo"); String pagesCacheKeyword = (String) keywords.get("IrbSearchDisplayPagesCached"); try { srchParams = buildSearchParams(this); getSession().setAttribute("searchParameters", srchParams); } catch (edu.columbia.rascal.presentation.common.parser.CURascalParseException e) { handleException(e); return; } if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new IrbProtocolResultsDisplayView(pageInfo.getDisplayPage(), |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/tools/IrbEmailProtocolExpirationTask.java | 240 |
edu/columbia/rascal/presentation/irb/tools/IrbEmailProtocolExpired30DaysTask.java | 135 |
subject = "Rascal IRB-" + protocolNumber +" -" + (String)data.get("title") + " Expiration Notification"; recipientName = data.get("PIFirstName") + " " + data.get("PILastName"); recipientEmail = (String) data.get("PIEmail"); recipientUni = (String) data.get("PIUni"); if ((recipientEmail == null) || recipientEmail.trim().equals("")) { recipientEmail = recipientUni + "@columbia.edu"; } try { email = new IrbGeneralEmailMessage(recipientName, recipientEmail, subject, message, dbLocation ); } catch (IllegalArgumentException ie) { try { if (!recipientEmail.contains("@")) { recipientEmail = recipientUni + "@columbia.edu"; email = new IrbGeneralEmailMessage(recipientName, recipientEmail, subject, message, dbLocation ); } else { log.error(ie); } } catch (Exception e) { log.error(e); } } sender = new CURascalEmailSender(); try { sender.openConnection(); log.info("Attempting to email: " + recipientName + "(" + recipientUni + ")"); log.info("Address to be sent to: " + recipientEmail); sender.sendEmail(email); sender.closeConnection(); } catch (Exception e) { log.error("Error on generateNotificationEmails.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/myRascal/views/MyRascalMainView.java | 27 |
edu/columbia/rascal/presentation/user/views/CUInfoMainView.java | 78 |
addFields(); } //~ Methods ------------------------------------------------------------------------------------ /** This method was created in VisualAge. */ @Override public void addFields() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getLogoServletString()); f1.setName("Logo"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); v.addElement(f1); frames.add(v); frames.setRows("85,*"); frames.setColumns("*"); frames.setBorder("1"); frames.setFramespacing("0"); v = new Vector(2); f1 = new CUHtmlFrame(); f1.setSrc(getLinkServletString()); f1.setName("Link"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); f2.setSrc(getMainServletString()); f2.setName("Main"); v.addElement(f1); v.addElement(f2); CUHtmlFrameset fs2 = new CUHtmlFrameset(v); fs2.setRows("*"); fs2.setColumns("120,610"); frames.add(fs2); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ public String getLinkServletString() { return "edu.columbia.rascal.presentation.myRascal.servlets.MyRascalLinkFrameServlet"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 126 |
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 123 |
log.error("Exception in validateGet", e); (new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.irb.servlets.IrbAbstractServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, // there is some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext( getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Exception on validatePost.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAccessControlRemoveServlet.java | 58 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAuthorizedPersonRemoveServlet.java | 55 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixLocationRemoveServlet.java | 63 |
} /** @see edu.columbia.rascal.presentation.appendix.servlets.AppendixAbstractServlet#getPage() */ @Override public edu.columbia.rascal.presentation.common.views.CURascalHtmlView getPage() throws javax.servlet.ServletException, java.rmi.RemoteException, javax.transaction.TransactionRequiredException, javax.transaction.TransactionRolledbackException { WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } return null; } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override public String getRedirectUrl() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalRascalResultsDisplayView.java | 62 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalResultsDisplayView.java | 103 |
if (resultPage.isEmpty()) { CUHtmlText title = new CUHtmlText("No Proposals matched your search criteria."); title.setHeaderLevel("2"); title.setAlignment("CENTER"); getForm().add(title); } else { int totalMatch = resultPage.size(); int range = (beginPos - 1) + pageSize; if (range > totalMatch) range = totalMatch; String curRange = beginPos + " - " + range; CUHtmlText txt1 = new CUHtmlText("Search Results: " + curRange + " of exactly " + totalMatch + " matches" ); txt1.setIsBold(true); txt1.setFontSize("+1"); txt1.setFontName(getDefaultFontName()); txt1.setAlignment("CENTER"); getForm().add(txt1); CUHtmlText txt2 = new CUHtmlText("Select a proposal to view"); txt2.setIsBold(true); txt2.setFontSize("+1"); txt2.setFontName(getDefaultFontName()); txt2.addBreaks(1); getForm().add(txt2); CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setCellPading(0); t.setCellSpacing(0); Vector<Object> row = new Vector<Object>(4); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 1987 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 2244 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 2328 |
sql.append(" where ph.modificationNumber > 0 "); // get for one committee sql.append(" and ec.committeeId="); sql.append(committeeId); // get protocols sql.append(" and (e.parentObjectOid=ph.oid and e.parentObjectName = '"); sql.append(PROTOCOL_HEADER); sql.append("') and (e.statusName ='"); sql.append(DISTRIBUTED); sql.append("' or e.statusName = '"); sql.append(DEFERRED); sql.append("') and e.oid = (select max(oid) "); sql.append("from IrbStatus x where ph.oid = x.parentObjectOid and x.parentObjectName = '"); sql.append(PROTOCOL_HEADER); sql.append("') and ph.parentProtocolOid = p.oid "); sql.append(" and ec.parentObjectName = '"); sql.append(PROTOCOL); sql.append( "' and ec.parentObjectOid = p.oid and ph.oid not in (select ae.eventOid from IrbAgendaEvent ae, IrbAgendaHeader ah where ae.eventType = '" ); sql.append(PROTOCOL_HEADER); sql.append("' and ah.meetingDate > to_date(to_char(sysdate, 'DD-MON-YYYY'))"); sql.append(" and ah.oid = ae.agendaHeaderId) and (/*not exempt*/ph.exempt='N' "); sql.append( " and /*not expedited*/ph.oid not in (select irbProtocolHeaderId from IrbExpeditableAnswer) " ); sql.append( " and /*not pending*/(ph.oid not in (select ps.parentObjectOid from IrbStatus ps where ph.oid = ps.parentObjectOid and ps.parentObjectName = '" ); sql.append(PROTOCOL_HEADER); sql.append("' and ps.statusName = '"); sql.append(PENDING); sql.append("'))) "); // get pi name sql.append(" and ph.oid = c.irbProtocolHeaderId and c.rid = d.rid(+) "); sql.append(" and c.sequenceNumber = 1 "); sql.append(" order by p.protocolNumber"); try { java.sql.ResultSet res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( sql.toString() ); while (res.next()) { results.addElement(buildEventRow(res, MODIFICATION)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHazardousMaterialView.java | 661 |
edu/columbia/rascal/presentation/lab/pages/HzHazardousMaterialView.java | 496 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalHazardView.java | 833 |
cell.setVAlign("center"); } cellNum++; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setHazardsListTableHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableCell header; int cellNum = 0; // Hazard aTitle = new CUHtmlText("Hazardous Agents"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // selection list link aTitle = new CUHtmlText(" Attach"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // view/print link aTitle = new CUHtmlText(" Appendix"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; // detach appendix aTitle = new CUHtmlText(" Detach"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, cellNum); header.setIsHeader(true); header.add(aTitle); cellNum++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 367 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 375 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 411 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 408 |
return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbClinicalTrialsReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { this.endDate = newValue; } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setPrintable(boolean aValue) { printable = aValue; } /** * setSortBy. * * @param aValue TODO: DOCUMENT ME! */ public void setSortBy(String aValue) { sortBy = aValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalHazardView.java | 341 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalNewView.java | 743 |
} /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getGenHelpFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setWidth("100%"); t.setBorderWidth(0); Vector<Object> v = new Vector<Object>(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("General Instructions"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Pt/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("left"); v.addElement(i); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("50%"); t.getCell(0, 1).setAlign("left"); t.getCell(0, 1).setWidth("50%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * @param link TODO: DOCUMENT ME! * @param linkSource TODO: DOCUMENT ME! * * @return CUHtmlTable */ public CUHtmlTable getRowLabelLeftFor(String aLabel, String source, String link, |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 1304 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 1388 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 1724 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 1809 |
protocolNumberYrMod = protocolNumber + "(Y" + protYear + " M" + modNum + ")"; row.addElement(protocolNumberYrMod); // oid of a IacucProtocolHeader row.addElement(Long.toString(res.getLong(4))); // dateApproved if (res.getDate(5) == null) { row.addElement(""); } else { row.addElement(res.getDate(5)); } // effectiveDate if (res.getDate(6) == null) { row.addElement(""); } else { row.addElement(res.getDate(6)); } // expirationDate // Add a Date instead of a String to be sorted. if (res.getDate(7) == null) { row.addElement(""); } else { row.addElement(res.getDate(7)); } // P.I. - lastName, firstName (uni) row.addElement(buildLastFirstName(res.getString(8), res.getString(9)) + " (" + res.getString(10) + ")" ); results.addElement(row.clone()); row = new Vector(6); } // end while } catch (Exception e) { log.error(e); } return results; } /** * getSelectedDataHumanProtocolsHistoryByUni. * * @param uni String * @param from String * @param to String * * @return Vector */ public Vector getSelectedDataAnimalProtocolsHistoryByUni(String uni, String from, String to) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 1007 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 757 |
aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE9), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE9A), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE9B), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE9C), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE9D), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 336 |
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 1237 |
public static List<Map<String, Object>> getCancerCenterProtocolsSetToExpireOn(int firstDay, int secondDay, int thirdDay ) { Calendar cal = Calendar.getInstance(); // Go forward specified number of days: first day cal.add(Calendar.DAY_OF_YEAR, firstDay); String aString = CalendarTransformer.formatOraDate(cal); String firstDateRangeGreaterThan = "AND ((iph.expirationDate >= '" + aString + "'"; // Now go ahead to the next day cal.add(Calendar.DAY_OF_YEAR, 1); aString = CalendarTransformer.formatOraDate(cal); String firstDateRangeLessThan = " AND iph.expirationDate < '" + aString + "')"; cal = Calendar.getInstance(); // reset calendar // Go forward specified number of days: second day cal.add(Calendar.DAY_OF_YEAR, secondDay); aString = CalendarTransformer.formatOraDate(cal); String secondDateRangeGreaterThan = " OR (iph.expirationDate >= '" + aString + "'"; // Now go ahead to the next day cal.add(Calendar.DAY_OF_YEAR, 1); aString = CalendarTransformer.formatOraDate(cal); String secondDateRangeLessThan = " AND iph.expirationDate < '" + aString + "') "; cal = Calendar.getInstance(); // reset calendar // Go forward specified number of days: third day cal.add(Calendar.DAY_OF_YEAR, thirdDay); aString = CalendarTransformer.formatOraDate(cal); String thirdDateRangeGreaterThan = " OR (iph.expirationDate >= '" + aString + "'"; // Now go ahead to the next day cal.add(Calendar.DAY_OF_YEAR, 1); aString = CalendarTransformer.formatOraDate(cal); String thirdDateRangeLessThan = " AND iph.expirationDate < '" + aString + "')) "; StringBuffer query = new StringBuffer(2000); query.append("SELECT distinct ip.protocolNumber, iph.title, iph.expirationDate, "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6155 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6778 |
public static String getIrbReportOverallCommitteeStatsSqlString6For(String committeeId, String dateRange ) { StringBuilder aSql = new StringBuilder(1000); aSql.append("SELECT count(d.oid)"); aSql.append( " FROM IrbProtocol a, IrbEventCommittee b, IrbStatus c, IrbProtocolHeader d, IrbExpeditableAnswer f" ); aSql.append(" WHERE a.oid = b.parentObjectOid"); aSql.append(" AND b.parentObjectName = 'Protocol'"); aSql.append(" AND d.oid = f.irbProtocolHeaderId"); if (!committeeId.equalsIgnoreCase("All Committees")) { aSql.append(" AND b.committeeId = "); aSql.append(committeeId); } aSql.append(" AND a.oid = d.parentProtocolOid"); aSql.append(" AND d.oid = c.parentObjectOid"); aSql.append(" AND c.parentObjectName = '"); aSql.append(IrbNameConstants.PROTOCOL_HEADER); aSql.append("' AND c.statusName = '"); aSql.append(SUBMITTED); aSql.append('\''); aSql.append(" AND c.statusDate BETWEEN "); aSql.append(dateRange); // eliminate consecutive status recs with the same statusName // for the same protocol (caused by double clicking) aSql.append(" AND NOT EXISTS"); aSql.append(" (SELECT *"); aSql.append(" FROM IrbStatus"); aSql.append(" WHERE d.oid = parentObjectOid"); aSql.append(" AND c.statusName = statusName"); aSql.append(" AND oid = "); aSql.append(" (SELECT min(oid)"); aSql.append(" FROM IrbStatus"); aSql.append(" WHERE d.oid = parentObjectOid"); aSql.append(" AND c.statusName = statusName"); aSql.append(" AND c.oid < oid))"); return aSql.toString(); } /** * Average number of days from last submission to approval for Expeditable protocols. * * @param committeeId TODO: DOCUMENT ME! * @param dateRange TODO: DOCUMENT ME! * * @return average number of days from last submission to approval for Expeditable protocols. */ public static String getIrbReportOverallCommitteeStatsSqlString7For(String committeeId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCTSACorrespondenceView.java | 212 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueCancerCenterCorrespondenceView.java | 212 |
); getAForm().add("</TR>"); int counter = 0; String rowColor; Vector info = null; while (i-- > 0) { rowColor = getQueueHTMLRowColor(counter++); info = (Vector) v.elementAt(i); setTableDataRow(info, rowColor); } getAForm().add("<TR VALIGN=\"TOP\"><TD><HR WIDTH=\"100%\"></TD></TR>"); getAForm().add("</TABLE></CENTER>"); } } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVector(java.util.Vector newResultVector) { resultVector = newResultVector; } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVectorAE(java.util.Vector newResultVector) { resultVectorAE = newResultVector; } /** * TODO: DOCUMENT ME! * * @param row TODO: DOCUMENT ME! * @param rowColor TODO: DOCUMENT ME! */ public void setTableDataRow(Vector row, String rowColor) { StringBuffer parmString = new StringBuffer(); StringBuffer buff = new StringBuffer(); String element0 = (String) row.elementAt(0); String element1 = (String) row.elementAt(1); String element2 = (String) row.elementAt(2); String protocolNumber = element1.substring(0, 8); getAForm().add("<TR BGCOLOR=\"" + rowColor + "\" >"); // 1 protocol link getAForm().add("<TD ALIGN=\"left\"><FONT FACE=\"Verdana\" SIZE=\"1\"><A "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 524 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 1091 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 586 |
} /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToViewReportForDownload(String queueName) { return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 101 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 111 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 84 |
if (!getDownloadable()) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); getForm().add(addDateRange()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), "PtApprovalHistory") |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 821 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 1033 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 822 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 1034 |
).getUserLastFirstNameUni() ); } cell3.add(getWidgetFor(revString.toString())); cell3.setAlign("left"); cell3.setVAlign("top"); cell3.setWidth("100"); aRow.add(cell3); // recommendation CUHtmlTableCell cell4 = new CUHtmlTableCell(); cell4.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(6)) ) ); cell4.setAlign("left"); cell4.setVAlign("top"); cell4.setWidth("600"); aRow.add(cell4); // recommendedStatus CUHtmlTableCell cell5 = new CUHtmlTableCell(); cell5.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(7)) ) ); cell5.setAlign("left"); cell5.setVAlign("top"); cell5.setWidth("60"); aRow.add(cell5); // followUp CUHtmlTableCell cell6 = new CUHtmlTableCell(); cell6.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(8)) ) ); cell6.setAlign("left"); cell6.setVAlign("top"); cell6.setWidth("250"); aRow.add(cell6); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovedCountView.java | 484 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionCountView.java | 484 |
return columns; } /** * TODO: DOCUMENT ME! * * @param element1 TODO: DOCUMENT ME! * @param element2 TODO: DOCUMENT ME! * @param element3 TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getThreeElementsTable(String element1, String element2, String element3) { CUHtmlTable aTable = new CUHtmlTable(); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); aTable.setWidth("100%"); aTable.setBorderWidth(0); Vector columns = new Vector(3); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(element1, 2, false)); aCell.setAlign("right"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(element2, 2, false)); aCell.setAlign("right"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(element3, 2, false)); aCell.setAlign("right"); aRow.add(aCell); aTable.add(aRow); aTable.getCell(0, 0).setWidth("33.3%"); aTable.getCell(0, 1).setWidth("33.3%"); aTable.getCell(0, 2).setWidth("33.3%"); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 364 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 570 |
); getForm().add("</div>"); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getBeginDate() { return beginDate; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param columns TODO: DOCUMENT ME! * * @return this method was created in VisualAge. */ public Vector getColumnTitles(Vector columns) { Vector elements = new Vector(); int i = 1; if (columns.contains("TrakId")) { elements.addElement(getWidgetFor("TrakId")); setIndexOfTrakId(i); i++; } if (columns.contains("PI")) { elements.addElement(getWidgetFor("PI")); setIndexOfPIName(i); i++; } if (columns.contains("AgencyName")) { elements.addElement(getWidgetFor("Agency Name")); setIndexOfAgencyName(i); i++; } if (columns.contains("ProposalType")) { elements.addElement(getWidgetFor("Propsal Type")); setIndexOfProposalType(i); i++; } if (columns.contains("ProjectBeginDate")) { elements.addElement(getWidgetFor("Project Begin Date")); setIndexOfProjBegDate(i); i++; } if (columns.contains("ProjectEndDate")) { elements.addElement(getWidgetFor("Project End Date")); setIndexOfProjEndDate(i); i++; } if (columns.contains("TotalMoneyReq.")) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 916 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 667 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 436 |
} /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName(getDefaultFontName()); } else { text.setFontSize("1"); text.setFontName(getDefaultFontName()); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName(getDefaultFontName()); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { this.endDate = newValue; } /** * This method was created in VisualAge. * * @param newValue int */ public void setIndexOfAbbreviatedTitle(int newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 718 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 846 |
log.error("Problem getting reviewers", e); } } vContent.add(2, revString.toString()); // reviewers. // comments vContent.add(3, getNotNullString((String) currentRow.elementAt(7), "")); vContent.add(4, getNotNullString((String) currentRow.elementAt(4), "")); // PI if (eventName.equals(PENDING) || eventName.equals(IrbNameConstants.EXEMPT) || eventName.equals(IrbNameConstants.EXPEDITED) ) { Object dateObj = currentRow.elementAt(8); if (dateObj instanceof java.sql.Date) { vContent.add(getNotNullString(CalendarTransformer.toString((Date) dateObj ), "" ) ); } else { vContent.add(getNotNullString("", "")); } } addVectorContent(vContent, xyPosition, theStyle); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); vContent.removeAllElements(); if (i != (size - 1)) { addContent(getSpaceWithSpots(0, spotsNumber), ""); } } } } /** * TODO: DOCUMENT ME! * * @param agendaHeaderOid TODO: DOCUMENT ME! * @param label TODO: DOCUMENT ME! * @param protocolAttached TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addProtocolAttached(long agendaHeaderOid, String label, Vector protocolAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaResultsDisplayView.java | 386 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 391 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalProposalResultsDisplayView.java | 344 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalRascalResultsDisplayView.java | 267 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalResultsDisplayView.java | 324 |
aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 345 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 239 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 768 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 550 |
aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = CalendarTransformer.toString(approvalDate); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1390 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1865 |
image.setAlt("Consent"); image.setBorderWidth(0); return image; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private CUHtmlTable getLogoTitle() { CUHtmlTable aTable = new CUHtmlTable(); Vector columns = new Vector(2); columns.addElement(""); columns.addElement(""); columns.setElementAt(getLogo(), 0); columns.setElementAt(getMainTitle(), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(0, 0).setWidth("30%"); aTable.getCell(0, 0).setVAlign("CENTER"); aTable.getCell(0, 0).setAlign("RIGHT"); aTable.getCell(0, 1).setVAlign("CENTER"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.setBorderWidth(0); return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private CUHtmlText getMainTitle() { if (mainTitle == null) { CUHtmlText aText = new CUHtmlText("Main Title was not defined"); aText.setHeaderLevel("1"); aText.setFontName(getDefaultFontName()); aText.setAlignment("center"); mainTitle = aText; } return mainTitle; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 403 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 534 |
row.put("LastCorrespondenceToPIDate", aDate); results.addElement(row); row = new Hashtable(); } // end while } else if (name.equals(IrbNameConstants.ADVERSE_EVENT) || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM) || name.equals(IrbNameConstants.CLOSURE) ) { while (res.next()) { row.put("EventName", res.getString(1)); row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolNumber", "IRB-" + res.getString(3)); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString() ); row.put("PI", res.getString(5)); row.put("Committee", res.getString(6)); row.put("DateAssigned", res.getDate(7)); row.put("CurrentStatus", res.getString(8)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 487 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 649 |
aCell.add(getWidgetFor(title)); aCell.setAlign("left"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getWidgetFor((String) currentRow.elementAt(3))); aCell.setAlign("left"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getWidgetFor((String) currentRow.elementAt(6))); aCell.setAlign("left"); aRow.add(aCell); aCell = new CUHtmlTableCell(); dateObj = currentRow.elementAt(4); if (dateObj instanceof java.sql.Date) { aCell.add(getWidgetFor(CalendarTransformer.toString((java.sql.Date) dateObj))); } else { aCell.add(getWidgetFor("")); } aCell.setAlign("center"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getWidgetFor(" " + currentRow.elementAt(7))); aCell.setAlign("center"); aRow.add(aCell); aTable.add(aRow); } } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param results TODO: DOCUMENT ME! * @param aTable TODO: DOCUMENT ME! */ public void getClosureWidget(Vector results, CUHtmlTable aTable) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 460 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 927 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 499 |
} /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param aLocation TODO: DOCUMENT ME! * @param euOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getEuLinkWidgetFor(String aString, String aLocation, String euOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } CUHtmlText text = new CUHtmlText(aString); text.setLink( "Javascript:onClick=parent.frames[2].location='edu.columbia.rascal.presentation.eu.servlets." + aLocation + "?euOid=" + euOid + "'" ); text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } String number = aString.substring(4, 12); return getLinkForProtocolOverview(aString, number); } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 57 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 60 |
addFields(); } //~ Methods ------------------------------------------------------------------------------------ /** Insert the method's description here. Creation date: (1/2/2003 11:34:23 AM) */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); getAForm().add(getHiddenWidgetFor("dateValid", "true")); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Calendar start = Calendar.getInstance(); start.add(Calendar.MONTH, -6); // Go back 6 months |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 805 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1239 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 359 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ @Override public void setLabelName(String newValue) { int index = newValue.indexOf(":"); if (index > 0) { this.labelName = newValue.substring(0, index); } else { this.labelName = newValue; } } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#setLineParameters(java.util.Hashtable) */ @Override public void setLineParameters(Hashtable params) { // Save parameters passed through URL in hidden fields of the form. Names of all // parameters are lowercase Enumeration e = params.keys(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * This method was created in VisualAge. Sets the mainTitle of this page. If aMainTitle is a * String, use the default mainTitle settings. if aMainTitle is CUHtmlText, override the default * mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminMainView.java | 35 |
edu/columbia/rascal/presentation/consent/pages/ConsentMainView.java | 41 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaMainView.java | 46 |
edu/columbia/rascal/presentation/lab/pages/HzMainView.java | 80 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalMainView.java | 33 |
edu/columbia/rascal/presentation/user/views/CUInfoMainView.java | 84 |
public void addItems() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getLogoServletString()); f1.setName("Logo"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); v.addElement(f1); frames.add(v); frames.setRows("85,*"); frames.setColumns("*"); frames.setBorder("1"); frames.setFramespacing("0"); v = new Vector(2); f1 = new CUHtmlFrame(); f1.setSrc(getLinkServletString()); f1.setName("Link"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); f2.setSrc(getMainServletString()); f2.setName("Main"); v.addElement(f1); v.addElement(f2); CUHtmlFrameset fs2 = new CUHtmlFrameset(v); fs2.setRows("*"); fs2.setColumns("120,610"); frames.add(fs2); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ public String getLinkServletString() { return "edu.columbia.rascal.presentation.administration.servlets.AdminLinkFrameServlet"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 1713 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 691 |
); while (res.next()) { row.put("eventOid", (((Integer.valueOf((new Float(res.getFloat(1))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()) ); // eventoid row.put("protocolOid", (((Integer.valueOf((new Float(res.getFloat(1))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString()) ); // protocol parent oid row.put("protocolNumber", ((res.getString(3) == null) ? "" : res.getString(3))); // protocol number row.put("exempt", ((res.getString(4) == null) ? "" : res.getString(4))); // exempt row.put("recommendedStatus", ((res.getString(5) == null) ? "" : res.getString(5))); // PI |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesNewView.java | 250 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaNewView.java | 278 |
} /** * @see edu.columbia.rascal.presentation.irb.pages.IrbHtmlView#getGenHelpFor(java.lang.String, java.lang.String) */ @Override public CUHtmlTable getGenHelpFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setWidth("100%"); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("General Instructions"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Irb/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("left"); v.addElement(i); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("50%"); t.getCell(0, 1).setAlign("left"); t.getCell(0, 1).setWidth("50%"); t.setCellSpacing(0); t.setCellPading(0); return t; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1390 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1626 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1865 |
image.setAlt("Consent"); image.setBorderWidth(0); return image; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private CUHtmlTable getLogoTitle() { CUHtmlTable aTable = new CUHtmlTable(); Vector columns = new Vector(2); columns.addElement(""); columns.addElement(""); columns.setElementAt(getLogo(), 0); columns.setElementAt(getMainTitle(), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(0, 0).setWidth("30%"); aTable.getCell(0, 0).setVAlign("CENTER"); aTable.getCell(0, 0).setAlign("RIGHT"); aTable.getCell(0, 1).setVAlign("CENTER"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.setBorderWidth(0); return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private CUHtmlText getMainTitle() { if (mainTitle == null) { CUHtmlText aText = new CUHtmlText("Main Title was not defined"); aText.setHeaderLevel("1"); aText.setFontName(getDefaultFontName()); aText.setAlignment("center"); mainTitle = aText; } return mainTitle; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 388 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 374 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 399 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 400 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 515 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalRascalResultsDisplayView.java | 267 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalResultsDisplayView.java | 324 |
aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 864 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3004 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3489 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4179 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5085 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5554 |
aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); // current status Name if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid row.addElement(res.getString(5)); // reviewer last name results.addElement(row.clone()); row = new Vector(5); } } catch (Exception e) { log.error("Exception while Running query", e); } return results; } /** * RASCAL (halayn) Creation date: (7/26/2002 14:53:52 PM) * * @param aUser TODO: DOCUMENT ME! * @param reviewerType TODO: DOCUMENT ME! * * @return Vector of results */ public static Vector getAdverseEventEventsForReviewerQueue(RascalUser aUser, String reviewerType |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 299 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 354 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 239 |
aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // gather safety officer approval data AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = approvalDate.toString(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAServlet.java | 147 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCServlet.java | 161 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIServlet.java | 122 |
anAppendix = (AppendixA) getAppendix(); } // the logic to handle the creation of invitro header. see // getRedirectUrl() for the deletion of invitro header if (isInvitroChecked()) { /* Retreives if Tracking object exists * else a new one is created and linked * here itself */ AppendixTracking aTracker = getInvitroAppendixTrackingOidFor(anAppendix); } saveAppendixValues(anAppendix); boolean hasAccessForCreator = false; Vector res = ServiceLocator.getAppendixAccessControlService().getAllByAppendixIdAndType( anAppendix.getId(), anAppendix.getAppendixType() ); int siz = res.size(); for (int i = 0; i < siz; i++) { AppendixAccessControl ac = (AppendixAccessControl) res.elementAt(i); if ((ac.getRid() != null) && (ac.getRid().intValue() == anAppendix.getCreatedBy().intValue()) ) { hasAccessForCreator = true; break; } } // make sure there is an 'edit' access control for creator if (!hasAccessForCreator) { AppendixAccessControl newAc = new AppendixAccessControl(anAppendix.getId(), anAppendix.getAppendixType() ); ServiceLocator.getAppendixAccessControlService().save(newAc); newAc.setRid(anAppendix.getCreatedBy()); newAc.setEditView(ACCESS_EDIT); ServiceLocator.getAppendixAccessControlService().save(newAc); // anAppendix.getAllAccessControlEntries().addElement(newAc); } } catch (Exception e) { log.error("Exception creating appendix.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentExternalView.java | 385 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentInternalView.java | 381 |
}; int titleLen = titles.length; for (int i = 0; i < titleLen; i++) { aTitle = new CUHtmlText(titles[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("center"); } if (CURascalGuardian.hasIrbRascal()) { aTitle = new CUHtmlText("Delete"); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, titleLen); header.add(aTitle); header.setAlign("center"); } } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param anOid TODO: DOCUMENT ME! * @param docId TODO: DOCUMENT ME! * @param fileName TODO: DOCUMENT ME! * @param dateCreated TODO: DOCUMENT ME! */ public void setAttachmentTableDataRow(CUHtmlTable aTable, String anOid, String docId, String fileName, String dateCreated ) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // identifier CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getLinkWidgetFor((docId.equals("") || docId.equals(" ")) ? fileName : docId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 63 |
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 290 |
StringBuilder s = new StringBuilder(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // Title String aTitle = getCourseHeader().getTitle(); if ((aTitle == null) || aTitle.trim().equals("")) { aTitle = blank; } // Course created by Integer initRid = getCourseHeader().getAdministratorRid(); String initiatorString; RascalUser initiator = null; if (initRid != null) { initiator = ServiceLocator.getRascalUserService().findById(initRid); } if (initiator == null) { initiatorString = blank; } else { initiatorString = initiator.getNameFirst() + " " + initiator.getNameLast() + " (" + initiator.getUserId() + ")"; } s.append("<p><table align= \"center\" width=\"95%\" border=\"1\" bgcolor=\"#CCCCCC\">"); /*1*/ // course number s.append("<tr><td align=\"right\" width= \"15%\"> "); s.append("<font face=\"Verdana\" size=\"1\">Course Number</font>"); s.append("</td> <td align= \"left\" width= \"25%\"> <font face=\"Verdana\" size=\"1\"> "); s.append(getCourseHeader().getCourseNumber()); s.append("</font></td>"); // title s.append("<td align= \"right\" width= \"20%\"> "); s.append("<font face=\"Verdana\" size=\"1\">Title</font>"); s.append("</td>"); s.append("<td align= \"left\" width= \"40%\"> <font face=\"Verdana\" size=\"1\"> "); s.append(aTitle).append("</font></td></tr>"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaNewView.java | 283 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 513 |
@Override public CUHtmlTable getGenHelpFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setWidth("100%"); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("General Instructions"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Irb/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("left"); v.addElement(i); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("50%"); t.getCell(0, 1).setAlign("left"); t.getCell(0, 1).setWidth("50%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param items TODO: DOCUMENT ME! * @param label TODO: DOCUMENT ME! * @param selections TODO: DOCUMENT ME! * * @return CUHtmlList */ public Object getMultiSelectWidgetFor(Vector items, String label, Vector selections) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 1018 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 371 |
aCell.add(getTableCellData((String) queueItem.get(KEY_EXPIRATION_DATE))); aCell.setAlign("center"); colNum++; // P.I. aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData((String) queueItem.get(KEY_NAME_UNI))); aCell.setAlign("left"); colNum++; // Submitting To aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData((String) queueItem.get(KEY_ADMIN_LOCATION))); aCell.setAlign("left"); colNum++; // Current Status aCell = aTable.getCell(rowCount, colNum); String param1 = (String) queueItem.get(KEY_CURRENT_STATUS); String convert1 = getAnimalCareStatusDisplayValue(param1.trim()); if (convert1 == null) convert1 = "Still Creating..."; aCell.add(getTableCellData(convert1)); aCell.setAlign("left"); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixOwnerHistoryDisplayServlet.java | 67 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixOwnersDisplayServlet.java | 63 |
if (getAppendix() == null) { setRedirectUrl(AppendixMainMenuServlet.class.getName()); return null; } // Gets the list of appendix owners to be displayed long appendixOid = Long.parseLong(getAppendixId()); // Vector dataTables = // AppendixWorkListProcessViaJdbc.getInstance().getFullAppendixOwnerItemsDataTablesViaJdbc(appendixOid, // getAppendixType()); Vector dataTables = new Vector(); try { String mySql = AppendixWorkListQueryFormat.getInstance() .buildFullQueryForAppendixOwnerList(appendixOid, getAppendixType()); java.sql.ResultSet res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( mySql ); dataTables.addAll((Vector) (AppendixWorkListJdbcAccessor.getInstance() .buildRowTableWithFullOwnerListResultSet(res).clone()) ); } catch (Exception e) { log.error("Exception constructing vector.", e); } String sortBy = getLineParameter(KEY_PARM_HAZMAT_SORT_BY); if (sortBy == null) { sortBy = (String) getSession().getAttribute(KEY_PARM_HAZMAT_SORT_BY); } if (sortBy != null) { CUSortVector sortVector = new CUSortVector(dataTables); sortVector.setColumnNames(getKeywordListForColumns()); sortVector.sortByColumn(sortBy.replace('+', ' ')); dataTables = sortVector; getSession().setAttribute(KEY_PARM_HAZMAT_SORT_BY, sortBy); } return new AppendixOwnerHistoryDisplayView(getAppendix(), getUser(), dataTables); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6056 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6679 |
public static String getIrbReportOverallCommitteeStatsSqlString4For(String committeeId, String dateRange ) { StringBuilder aSql = new StringBuilder(1000); aSql.append("SELECT count(d.oid) "); aSql.append("FROM IrbProtocol a, IrbEventCommittee b, IrbStatus c, IrbProtocolHeader d "); aSql.append("WHERE a.oid = b.parentObjectOid "); aSql.append("AND b.parentObjectName = 'Protocol' AND d.exempt = 'Y'"); if (!committeeId.equalsIgnoreCase("All Committees")) { aSql.append(" AND b.committeeId = "); aSql.append(committeeId); } aSql.append(" AND a.oid = d.parentProtocolOid "); aSql.append("AND d.oid = c.parentObjectOid "); aSql.append("AND c.parentObjectName = '"); aSql.append(IrbNameConstants.PROTOCOL_HEADER); aSql.append("' AND c.statusName = '"); aSql.append(SUBMITTED); aSql.append('\''); aSql.append(" AND c.statusDate BETWEEN "); aSql.append(dateRange); // eliminate consecutive status recs with the same statusName // for the same protocol (caused by double clicking) aSql.append(" AND NOT EXISTS"); aSql.append(" (SELECT *"); aSql.append(" FROM IrbStatus"); aSql.append(" WHERE d.oid = parentObjectOid"); aSql.append(" AND c.statusName = statusName"); aSql.append(" AND oid = "); aSql.append(" (SELECT min(oid)"); aSql.append(" FROM IrbStatus"); aSql.append(" WHERE d.oid = parentObjectOid"); aSql.append(" AND c.statusName = statusName"); aSql.append(" AND c.oid < oid))"); return aSql.toString(); } /** * Average number of days from last submission to approval for Exempt protocols. * * @param committeeId TODO: DOCUMENT ME! * @param dateRange TODO: DOCUMENT ME! * * @return average number of days from last submission to approval for Exempt protocols. */ public static String getIrbReportOverallCommitteeStatsSqlString5For(String committeeId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesNewView.java | 255 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 513 |
@Override public CUHtmlTable getGenHelpFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setWidth("100%"); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("General Instructions"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Irb/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("left"); v.addElement(i); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("50%"); t.getCell(0, 1).setAlign("left"); t.getCell(0, 1).setWidth("50%"); t.setCellSpacing(0); t.setCellPading(0); return t; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaEventSearchServlet.java | 138 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaSearchServlet.java | 76 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaSearchServlet.java | 170 |
} if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbAgendaDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new IrbAgendaResultsDisplayView(pageInfo.getDisplayPage(), pageInfo.getPageBeginPos(), pageInfo.getPageSize(), pageInfo.getTotalMatch(), pageInfo.getMaxPageSize(), getUser(), "Agenda" ); } else { view = new IrbAgendaResultsDisplayView(new java.util.Vector(), getUser()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbMinuteSearchServlet.java | 76 |
edu/columbia/rascal/presentation/agenda/servlets/IrbMinuteSearchServlet.java | 170 |
} if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbAgendaDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new IrbAgendaResultsDisplayView(pageInfo.getDisplayPage(), pageInfo.getPageBeginPos(), pageInfo.getPageSize(), pageInfo.getTotalMatch(), pageInfo.getMaxPageSize(), getUser(), "Minutes" ); } else { view = new IrbAgendaResultsDisplayView(new java.util.Vector(), getUser()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtInternalNotesEntryView.java | 105 |
edu/columbia/rascal/presentation/propTrak/pages/PtNotesEntryView.java | 95 |
getForm().add(getHiddenWidgetFor("trakId", getProposal().getTrakId())); getForm().add(aTable); getForm().add("<br>"); getForm().add(getActionButtons()); add(getForm()); } /** * todo: DOCUMENT ME! * * @param bTable todo: DOCUMENT ME! * @param numCells int build table for the notes label and field hh */ public void addNewNote(CUHtmlTable bTable, int numCells) { Vector<Object> columns = new Vector<Object>(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = bTable.elements.size(); Object aWidget; aWidget = getRowLabelLeftFor("New Notes"); columns.setElementAt(aWidget, 0); bTable.addRowFor(columns); row++; aWidget = getMultilineTextWidgetFor("", "newNotes"); columns.setElementAt(aWidget, 0); bTable.addRowFor(columns); } /** * This method was created in VisualAge. * * @param aTable todo: DOCUMENT ME! * @param numCells todo: DOCUMENT ME! */ public void addOldNotes(CUHtmlTable aTable, int numCells) { Vector<Object> columns = new Vector<Object>(numCells); // add protocol Note to table. for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); String notes = (getOldNotes().size() > 0) ? "" : "N/A"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 106 |
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 365 |
break; case KEY_PLUSMINUS: keyEnum = searchParam.keywordIterator(); Enumeration signEnum = searchParam.signIterator(); attributeVal = (String) keyEnum.nextElement(); String sign = (String) signEnum.nextElement(); if (sign.equals("+")) { whereClause = " AND ( ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } else { whereClause = " AND ( not ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } while (keyEnum.hasMoreElements()) { attributeVal = (String) keyEnum.nextElement(); sign = (String) signEnum.nextElement(); if (sign.equals("+")) { whereClause = whereClause + " AND ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } else { whereClause = whereClause + " AND not ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } } whereClause = whereClause + ")"; break; case KEY_PHRASE: attributeVal = searchParam.getKeyword(); if (attributeVal.contains("\'")) attributeVal = escapeSingleQuoteWithAnotherOne(attributeVal); whereClause = " AND lower(" + attributeNm + ") like lower('%" + attributeVal + "%')"; } return whereClause; } /** * Builds a whereClause from a CURascalBasicSearchParameter for selecting rows by EXACT MATCH * including CASE. * * @param searchParam TODO: DOCUMENT ME! * @param attributeNm a string that indicates the attribute name of a database table for * selection * * @return TODO: DOCUMENT ME! */ public String buildWhereClauseForSelectionByExactCaseMatch( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 399 |
edu/columbia/rascal/presentation/tc/views/TCResultsDisplayView.java | 597 |
aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } /** * TODO: DOCUMENT ME! * * @param objectOid TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getServletLinkFor(String objectOid) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 58 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 57 |
render(); } //~ Methods ------------------------------------------------------------------------------------ /** Insert the method's description here. Creation date: (1/2/2003 11:34:23 AM) */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); getAForm().add(getHiddenWidgetFor("dateValid", "true")); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Calendar start = Calendar.getInstance(); start.add(Calendar.YEAR, -1); // Go back 3 months |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixASafetyOfficerApprovalView.java | 110 |
edu/columbia/rascal/presentation/appendix/pages/AppendixISafetyOfficerApprovalView.java | 81 |
addSpacerRows(aTable, 1, 2, "8"); if (getOwnerSurrogate().getOwnerType().equals(ANIMAL_CARE_OWNER)) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(REC_ANIMAL_HOUSING, defaultFontSize, true, false ), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("", "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); Iterator bpList = getBoilerPlateList(KEY_PARM_REC_HOUSE_REF_ID).iterator(); while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_2_RecommendedHousing("2"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3466 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3558 |
aBuffer.append(" and stat.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and stat.parentObjectOid = header.oid "); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1184 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1538 |
if (staff != null) { RascalUser user = ServiceLocator.getRascalUserService().findById(staff.getRid()); leadPerson = user.getUserFirstLastNameUni(); } // M s.append( // (((CUHtmlItem)getWidgetFor(getProtocolHeader().getLeadPersonName())).getHtml())); // IrbStaff staff = // ServiceLocator.getIrbStaffService().findPrincipalInvestigatorForIbrProtocolHeader(getProtocolHeader()); // String leadPerson = staff.getNameFirst() + " " + staff.getNameLast(); s.append((((CUHtmlItem) getWidgetFor(leadPerson)).getHtml())); s.append("</td> <td> "); // initiator s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Initiator</font></div>"); s.append("</td> <td>"); // s.append( // (((CUHtmlItem)getWidgetFor(getProtocolHeader().getCreatedByName())).getHtml())); RascalUser ru = ServiceLocator.getRascalUserService().findById(getProtocolHeader() .getCreatedBy() ); s.append((((CUHtmlItem) getWidgetFor(ru.getUserFirstLastNameUni())).getHtml())); s.append("</td> </tr> <tr> <td> "); // you are... s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">You are</font></div>"); s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); s.append((((CUHtmlItem) getWidgetFor(getRascalUser().getUserFirstLastNameUni())) .getHtml()) ); s.append("</font></td> <td> "); // year & mod s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Year</font></div>"); String modification = getProtocolHeader().getModificationNumber() + ""; if (getProtocolHeader().getModificationNumber() < 10) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailEHSRequiredCourseTask.java | 477 |
edu/columbia/rascal/presentation/tc/tools/TCEmailEHSRequiredCourseTask.java | 548 |
); } CURascalEmailMessage email = null; try { email = new CURascalEmailMessage(recipientName, recipientEmail, senderName, senderEmail, subject, message ); } catch (IllegalArgumentException ie) { try { if (!recipientEmail.contains("@")) { email = new CURascalEmailMessage(recipientName, userId + "@columbia.edu", senderName, senderEmail, subject, message ); } else { log.error("Invalid recipient email address.", ie); } } catch (Exception e) { log.error("Exception while validating recipient email address.", e); } } CURascalEmailSender sender = new CURascalEmailSender(); try { sender.openConnection(); sender.sendEmail(email); sender.closeConnection(); listOfRecipients.append(CalendarTransformer.toDateTimeString(Calendar.getInstance())); listOfRecipients.append(" -- Emailing: "); listOfRecipients.append(recipientName); listOfRecipients.append('('); listOfRecipients.append(userId); listOfRecipients.append(") sent to "); listOfRecipients.append(recipientEmail); listOfRecipients.append('\n'); } catch (Exception e) { log.error("Exception while sending email.", e); } } /** * TODO: DOCUMENT ME! * * @param recipientName TODO: DOCUMENT ME! * @param recipientEmail TODO: DOCUMENT ME! * @param userId TODO: DOCUMENT ME! * @param courses TODO: DOCUMENT ME! */ public void sendExpiringEmail(String recipientName, String recipientEmail, String userId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 75 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptFilterByJobCodeView.java | 48 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 71 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 77 |
setTestLocation(testLocation); String instruction = ""; if ((rows == null) || (rows.isEmpty())) { add("<br>"); // put a space CUHtmlText msgTxt = new CUHtmlText( "There is no data to review. Please select new criteria and try again." ); msgTxt.setFontName(getDefaultFontName()); msgTxt.setIsBold(true); msgTxt.setFgColor("BLUE5"); getForm().add(msgTxt); } else { if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(allCourses), "A", |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaResultsDisplayView.java | 386 |
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 388 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 374 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 400 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 515 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 391 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalProposalResultsDisplayView.java | 344 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalRascalResultsDisplayView.java | 267 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalResultsDisplayView.java | 324 |
edu/columbia/rascal/presentation/tc/views/TCResultsDisplayView.java | 597 |
aTable.addRowFor((Vector) pageControlRow.clone()); // Set the width and alignment of each cell in the pageControlRow aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("4%"); // space aTable.getCell(0, 0).setAlign("CENTER"); aTable.getCell(0, 1).setWidth("10%"); // left arrow aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("30%"); // prev page aTable.getCell(0, 2).setAlign("RIGHT"); aTable.getCell(0, 3).setWidth("2%"); // space aTable.getCell(0, 3).setAlign("CENTER"); aTable.getCell(0, 4).setWidth("30%"); // next page aTable.getCell(0, 4).setAlign("LEFT%"); aTable.getCell(0, 5).setWidth("10%"); // right arrow aTable.getCell(0, 5).setAlign("LEFT%"); aTable.getCell(0, 6).setWidth("4%"); // space aTable.getCell(0, 6).setAlign("CENTER"); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaNotesView.java | 114 |
edu/columbia/rascal/presentation/irb/pages/IrbNotesView.java | 191 |
add(getForm()); } /** * TODO: DOCUMENT ME! * * @param bTable TODO: DOCUMENT ME! * @param numCells int build table for the notes label and field hh */ public void addNewNote(CUHtmlTable bTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = bTable.elements.size(); Object aWidget; String newNotes = ""; aWidget = getRowLabelLeftFor("New Notes"); columns.setElementAt(aWidget, 0); bTable.addRowFor(columns); row++; aWidget = getMultilineTextWidgetFor("", "newNotes"); columns.setElementAt(aWidget, 0); bTable.addRowFor(columns); } /** * This method was created in VisualAge. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addOldNotes(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); // add protocol Note to table. for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); String notes = (getOldNotes().size() > 0) ? "" : "N/A"; int notesSize = getOldNotes().size(); for (int i = 0; i < notesSize; i++) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 547 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 367 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 375 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 411 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 408 |
return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { this.endDate = newValue; } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setPrintable(boolean aValue) { printable = aValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setShowTilte(String newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 177 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 347 |
); } String pa = "Previously " + APPROVED + " "; // add attached exempt if (exemptAttached.size() > 0) { addProtocolAttached(pa + IrbNameConstants.EXEMPT + " Notification", exemptAttached, IrbNameConstants.EXEMPT); } if (NRexemptAttached.size() > 0) { addNRAttached(pa + IrbNameConstants.EXEMPT + " Notification", NRexemptAttached, IrbNameConstants.EXEMPT); } // add attached expeditable if (expeditableAttached.size() > 0) { addProtocolAttached(pa + IrbNameConstants.EXPEDITED + " Notification", expeditableAttached, IrbNameConstants.EXPEDITED ); } if (NRexpeditableAttached.size() > 0) { addNRAttached(pa + IrbNameConstants.EXPEDITED + " Notification", NRexpeditableAttached, IrbNameConstants.EXPEDITED); } // add pending if (pendingAttached.size() > 0) { addProtocolAttached(pa + PENDING + " Notification", pendingAttached, PENDING); } if (NRpendingAttached.size() > 0) { addNRAttached(pa + PENDING + " Notification", NRpendingAttached, PENDING); } addAgendaNotes(); } catch (Exception ne) { throw new NullPointerException("constructPDF() " + ne.getMessage() + " Agenda OID: " + ah.getId() + " User: " + getRascalUser()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceEditServlet.java | 200 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceRespondServlet.java | 487 |
} } } /** * TODO: DOCUMENT ME! * * @param aRid TODO: DOCUMENT ME! * @param corr TODO: DOCUMENT ME! */ public void sentEmail(int aRid, IrbCorrespondence corr) { RascalUser aUser = ServiceLocator.getRascalUserService().findById(aRid); IrbEmailSender sender = new IrbEmailSender(); String aUserEmail = aUser.getEmailPreferred(); if ((aUserEmail == null) || aUserEmail.equals("")) aUserEmail = aUser.getUserId() + "@columbia.edu "; String message = getCorrespondenceMessage(corr); String protName = corr.getProtocolNumber(); protName = "IRB-" + protName; String subject = "Rascal " + protName + " Correspondence Notification"; CURascalEmailMessage email = null; // sent email email = new IrbGeneralEmailMessage(aUser.getNameFirst() + " " + aUser.getNameLast(), aUserEmail, subject, message, RascalProperties.getProperty("DbUserId") ); try { sender.openConnection(); sender.sendEmail(email); } catch (IOException e2) { log.error(e2); } catch (Exception e) { log.error(e); } finally { sender.closeConnection(); } } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void submit() { setIsEdit(true); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 75 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptFilterByJobCodeView.java | 48 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 71 |
edu/columbia/rascal/presentation/tc/views/TCReportEHSExceptionByTestView.java | 71 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 77 |
setTestLocation(testLocation); String instruction = ""; if ((rows == null) || (rows.isEmpty())) { add("<br>"); // put a space CUHtmlText msgTxt = new CUHtmlText( "There is no data to review. Please select new criteria and try again." ); msgTxt.setFontName(getDefaultFontName()); msgTxt.setIsBold(true); msgTxt.setFgColor("BLUE5"); getForm().add(msgTxt); } else { if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(allCourses), "A", |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixIrbAbstractView.java | 701 |
edu/columbia/rascal/presentation/appendix/pages/AppendixLabAbstractView.java | 547 |
cell1.add(getRowLabelLeftFor(CalendarTransformer.formatMMDDYYYY(aStatus.getStatusDate()))); cell1.setAlign("left"); aRow.add(cell1); // whoRid CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(getRowLabelLeftFor(getWhatHappenedFor(aStatus))); cell2.setAlign("left"); aRow.add(cell2); aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param track TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private String getAppendixStatus(AppendixTracking track) { String provisionalStatus = APPROVE; Iterator it = track.getAppendixApprovals().iterator(); while (it.hasNext()) { AppendixApproval anApproval = (AppendixApproval) it.next(); if ((anApproval.getApprovalType() == null) || anApproval.getApprovalType().trim().equals("") ) { provisionalStatus = NOT_APPROVED; } else if (anApproval.getApprovalType().equalsIgnoreCase(HOLD)) { return HOLD; } else if (!anApproval.getApprovalType().equalsIgnoreCase(APPROVE) && !anApproval.getApprovalType().equalsIgnoreCase(MANUAL_APPROVE) ) { provisionalStatus = NOT_APPROVED; } } return provisionalStatus; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 1378 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 1447 |
public void setHandlesHazmat(String appendixType, boolean aValue, IacucStaff staff) { if ((appendixType == null) || (appendixType.trim().length() < 1)) { return; } switch (appendixType.charAt(0)) { case 'A': { staff.setAppendixA(aValue ? "Y" : "N"); break; } case 'B': { staff.setAppendixB(aValue ? "Y" : "N"); break; } case 'C': { staff.setAppendixC(aValue ? "Y" : "N"); break; } case 'D': { staff.setAppendixD(aValue ? "Y" : "N"); break; } case 'E': { staff.setAppendixE(aValue ? "Y" : "N"); break; } case 'F': { staff.setAppendixF(aValue ? "Y" : "N"); break; } case 'G': { staff.setAppendixG(aValue ? "Y" : "N"); break; } case 'H': { staff.setAppendixH(aValue ? "Y" : "N"); break; } case 'I': { staff.setAppendixI(aValue ? "Y" : "N"); break; } default: { return; } } ServiceLocator.getIacucStaffService().save(staff); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 132 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 134 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 142 |
IrbReportClinicalTrialsFirstSubmissionDateRangeServlet.class.getName() + "'" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! * @param columns TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows, Vector columns) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setWidth("95%"); t.setAlign("center"); t.setCellPadding(2); Object dateObj = null; Vector smallfont = new Vector(); // to make thesame font of header and rows for (Enumeration e = columns.elements(); e.hasMoreElements();) { smallfont.addElement(getWidgetFor(e.nextElement().toString())); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/auxiliary/objects/PtSearchParametersParser.java | 83 |
edu/columbia/rascal/presentation/propTrak/jdbc/PtSearchQuery.java | 133 |
try { CURascalBasicSearchParser parser = CURascalBasicSearchParser.getInstance(); if (!(rascalUser.trim().equals(""))) { parser.initParser(rascalUser); srchParams.setRascalUser(parser.parse()); } if (!(userUni.trim().equals(""))) { parser.initParser(userUni); srchParams.setUserUni(parser.parse()); } if (!(approverLastName.trim().equals(""))) { parser.initParser(approverLastName); srchParams.setApproverLastName(parser.parse()); } if (!(approverUni.trim().equals(""))) { parser.initParser(approverUni); srchParams.setApproverUni(parser.parse()); } if (!(rid.trim().equals(""))) { parser.initParser(rid); srchParams.setUserRid(parser.parse()); } } catch (CURascalParseException e) { srchParams = null; |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 793 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalServlet.java | 408 |
} /** * TODO: DOCUMENT ME! * * @param theObjectName TODO: DOCUMENT ME! * @param theObjectOid TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public int getObjectOwner(String theObjectName, long theObjectOid) { int anRid = 0; if (isProtocol(theObjectName)) { IrbProtocolHeader header = ServiceLocator.getIrbProtocolHeaderService() .getProtocolHeaderByOid(Long.toString(theObjectOid), getUser()); anRid = header.getCreatedBy(); } else if (theObjectName.equals(IrbNameConstants.CLOSURE)) { IrbClosure term = ServiceLocator.getIrbClosureService().getClosureByOid(Long .toString(theObjectOid), getUser() ); anRid = term.getCreatedBy(); } else if (theObjectName.equals(IrbNameConstants.ADVERSE_EVENT)) { IrbAdverseEvent event = ServiceLocator.getIrbAdverseEventService().getAdverseEventByOid( Long.toString(theObjectOid), getUser() ); anRid = event.getCreatedBy(); } else if (theObjectName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { IrbUnanticipatedProblem event = ServiceLocator.getIrbUnanticipatedProblemService() .getUnanticipatedProblemByOid(Long.toString(theObjectOid), getUser()); anRid = event.getCreatedBy(); } return anRid; } /** @see edu.columbia.rascal.presentation.agenda.servlets.IrbAgendaAbstractServlet#getPage() */ @Override public CURascalHtmlView getPage() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListJdbcAccessor.java | 133 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixSearchParmsEntryServlet.java | 54 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaJdbcAccessor.java | 124 |
} /** * TODO: DOCUMENT ME! * * @param lastName TODO: DOCUMENT ME! * @param firstName TODO: DOCUMENT ME! * @param userId TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static String getLastFirstNameUni(String lastName, String firstName, String userId) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) && ((userId == null) || (userId.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName) + ", " + (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName) + " (" + (((userId == null) || (userId.trim().length() == 0)) ? "-" : userId) + ")"; } return nameString; } /** * Builds a row Hashtable with the SybResultSet. * * @param resSet com.sybase.jdbc.SybResultSet * * @return java.util.Hashtable a row Hashtable */ public java.util.Vector buildRowTableWithAccessSelectionListResultSet(java.sql.ResultSet resSet) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 725 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 671 |
List<AppendixBPPE> appendixPPEList = ServiceLocator.getAppendixBPPEService().findByAppendixOidAndPPERelatedTo(getAppendixObject().getId(), "LAB"); printPPEList(appendixPPEList, aRow, aCell1, aTable); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE3B2), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_3B_PersonalProtection(), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE3B1), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE4), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE4A), "100%", getTitleAlign()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 831 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 147 |
} /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * @param aLabel TODO: DOCUMENT ME! * * @return this method creates and formats a CUHtmlText object for the string "aLabel" as a * standardized label for a table row. */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelLeftFor(String aLabel) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 209 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 164 |
} /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelRightFor(String aLabel) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 449 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 426 |
} /** * Sets the note of this page. If aNote is a String, use the default note settings. if aNote is * CUHtmlText, override the default note settings. * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { if (aNote instanceof CUHtmlText) { note = (CUHtmlText) aNote; } else { if (aNote instanceof String) { CUHtmlMultiLineText aText = new CUHtmlMultiLineText((String) aNote); aText.setFontName(getDefaultFontName()); aText.setMaxChar(600); aText.setIsBold(false); aText.setIsItalic(true); aText.addBreaks(3); note = aText; } } } /** * Sets the subtitle of this page. If aSubTitle is a String, use the default subtitle settings. * if aSubTitle is CUHtmlText, override the default title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { // FIXME XSS // String result = req.getParameter(parName); String result = HtmlUtils.htmlEscape(req.getParameter(parName)); return (result.equals("")) ? null : result; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private EVector getDefaultMainHeader() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 434 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 831 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 147 |
} /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * <p>This method was created in VisualAge.</p> * * @param aLabel TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param link TODO: DOCUMENT ME! * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String link, String aLabel, String source) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAccessQueueServlet.java | 154 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixApproverViewReleasedQueueServlet.java | 345 |
} /** * TODO: DOCUMENT ME! * * @param lastName TODO: DOCUMENT ME! * @param firstName TODO: DOCUMENT ME! * @param userId TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private String getLastFirstNameUni(String lastName, String firstName, String userId) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) && ((userId == null) || (userId.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName) + ", " + (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName) + " (" + (((userId == null) || (userId.trim().length() == 0)) ? "-" : userId) + ")"; } return nameString; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 435 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolPDFApprovalLetterView.java | 386 |
setPDFPage(newPage); // setPageFeature(); getPDFPage().setStyle(style); lineOverflow = getPDFPage().continueText(left, getPageHeight() - getTopPageMargin(), right - getPDFPage().UNITS_POINTS, getBottomPageMargin(), oldPage ); if (lineOverflow == 0) { flag = false; } else { if (((counter == 1) && (((int) lineOverflow + getPDFPage().UNITS_POINTS) < (getPageHeight() - getTopPageMargin() - getBottomPageMargin()))) || (((int) lineOverflow + getPDFPage().UNITS_POINTS) < (int) lastLineOverflow) ) { lastLineOverflow = lineOverflow; lineOverflow = getPDFPage().continueText(left, getPageHeight() - getTopPageMargin() - lineOverflow, right - getPDFPage().UNITS_POINTS, getBottomPageMargin(), getPDFPage() ); flag = false; } else { lastLineOverflow = lineOverflow; } } counter++; } // end while getPDFPage().endText(true); // setPageFeature(); // setHeight(originalHeight); return lastLineOverflow; } catch (java.lang.IndexOutOfBoundsException e) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 520 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 512 |
return "$" + aValue + ".00"; } for (int i = 1; i <= div; i++) { String right = ""; String left = ""; length = s.length(); if (i == 1) { right = s.substring(length - (3 * i)); } else { right = s.substring(length - (3 * i) - (i - 1)); } if (i == 1) { left = s.substring(0, length - (3 * i)); } else { left = s.substring(0, length - ((3 * i) + (i - 1))); } if ((i != div) || (s.length() > ((3 * i) + (i - 1)))) { s = left + "," + right; } else if (i == div) { s = left + right; } } return "$" + s + ".00"; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 248 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 476 |
expiredDisclosures.put(expiredDisclosure.getCreatedBy().getId(), expiredDisclosure); } } // Grab all the department names Map<String, String> departmentNames = rascalDepartmentService.getDeptNameByDeptNumbers(deptCodes); // Process the found users for (RascalUser user : users) { if (!processedUsers.containsKey(user.getId()) ) { dataMap = new HashMap<String, Object>(); dataMap.put("userid", user.getId()); dataMap.put("username", user.getUserFirstLastNameUni()); dataMap.put("firstname", user.getNameFirst()); dataMap.put("lastname", user.getNameLast()); dataMap.put("uni", user.getUserId()); String userEmail = user.getEmailPreferred(); dataMap.put("email", userEmail); String deptHome = user.getDeptHome(); dataMap.put("department", deptHome + "-" + departmentNames.get(deptHome)); // Some defaults dataMap.put("disclosuredepartment", "--"); dataMap.put("submitteddate", null); dataMap.put("status", "--"); dataMap.put("hasanomalies", Boolean.FALSE); if ( expiredDisclosures.containsKey(user.getId()) ) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 240 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 738 |
aCell1 = utilGetHtmlTableCell(utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false ), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls( textValue ); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left" ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals( MANUAL_APPROVE )) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = CalendarTransformer.formatMMDDYYYY(approvalDate); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 716 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 412 |
aCell.setAlign("left"); colNum++; // Highest Pain Level aCell = aTable.getCell(rowCount, colNum); String level = "n/a"; if (((String) queueItem.get(KEY_PAIN_LEVEL4)).equalsIgnoreCase("y")) { level = "4"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL3)).equalsIgnoreCase("y")) { level = "3"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL2)).equalsIgnoreCase("y")) { level = "2"; } else if (((String) queueItem.get(KEY_PAIN_LEVEL1)).equalsIgnoreCase("y")) { level = "1"; } aCell.add(getTableCellData(level, "center")); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 955 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3095 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4271 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5174 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5646 |
aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); // current status Name if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid results.addElement(row.clone()); row = new Vector(4); } } catch (Exception e) { log.error("Exception while Running query", e); } return results; } /** * Vector of results. * * @param whoAmI TODO: DOCUMENT ME! * * @return Vector of results. */ public static Vector getAdverseEventForLoggerQueue(RascalUser whoAmI) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceEditView.java | 212 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceToReviewView.java | 161 |
elements.addElement(getTextWidgetFor(getCorrespondence().getDestinationRole(), getFontSize(), true ) ); t.addRowFor(elements); elements = new Vector(2); elements.addElement(getTextWidgetFor("Subject: ", getFontSize() + 1, true)); String aSubject = corr.getSubject(); String aName = aSubject.substring(aSubject.indexOf("(") + 1, aSubject.indexOf(")")); aSubject = aSubject.substring(0, aSubject.indexOf("(")) + "(" + prettyName(aName) + ")"; elements.addElement(getTextWidgetFor(aSubject, getFontSize(), true)); t.addRowFor(elements); t.getCell(2, 0).setWidth("20%"); t.getCell(2, 1).setWidth("80%"); elements = new Vector(2); elements.addElement(getTextWidgetFor(" ", getFontSize(), true)); elements.addElement(getTextWidgetFor( "" + getGoodlookingObjectName(getObjectName()) + " (" + ServiceLocator.getIrbStatusService().getCurrentStatus(getBO().getId(), |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStats2View.java | 356 |
edu/columbia/rascal/presentation/irb/pages/IrbReportOverallCommStatsAfterLogInView.java | 412 |
aCell.setColumnsToSpan(3); aRow.add(aCell); aTable.add(aRow); // add individual column labels aRow = new CUHtmlTableRow(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(aTitle, 1, false)); aCell.setAlign("right"); aCell.setVAlign("bottom"); aRow.add(aCell); } aTable.add(aRow); Vector subject = new Vector(); subject.addElement("<b>New Protocol</b>"); subject.addElement("- full Board"); subject.addElement("- exempt"); subject.addElement("- expedited"); subject.addElement("<b>Modification</b>"); subject.addElement("- full Board"); subject.addElement("- exempt"); subject.addElement("- expedited"); subject.addElement("<b>Renewal</b>"); subject.addElement("- full Board"); subject.addElement("- exempt"); subject.addElement("- expedited"); subject.addElement("<b>Adverse Event</b>"); subject.addElement("<b>Closure</b>"); subject.addElement("<b>Unanticipated Problem</b>"); int resultSize = results.size(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/servlets/CURascalUserAbstractServlet.java | 85 |
edu/columbia/rascal/presentation/user/servlets/RuAbstractServlet.java | 117 |
} catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.user.servlets.RuAbstractServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(getRequest().getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListJdbcAccessor.java | 144 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixSearchParmsEntryServlet.java | 67 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaJdbcAccessor.java | 135 |
edu/columbia/rascal/presentation/ic/jdbc/IacucJdbcAccessor.java | 86 |
public static String getLastFirstNameUni(String lastName, String firstName, String userId) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) && ((userId == null) || (userId.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName) + ", " + (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName) + " (" + (((userId == null) || (userId.trim().length() == 0)) ? "-" : userId) + ")"; } return nameString; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 421 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 323 |
utilGetHtmlText(APPROVAL_NUMBER, defaultFontSize, false, false), "300", getTitleAlign() ); textValue = (getTracker().getEhsNumber() == null) ? "" : getTracker().getEhsNumber(); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } getForm().add(aTable); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTableRow aRow; CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 2); aTable.setCellPadding(4); addSpacerRows(aTable, 1, 2, "8"); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPENDIX_NUMBER), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText( getAppendixNumberPrefix(getAppendixObject().getAppendixType()) + getAppendixObject().getAppendixNumber() ), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixIrbAbstractView.java | 640 |
edu/columbia/rascal/presentation/lab/pages/HzHistoryView.java | 658 |
} /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setStatusHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableRow aRow = new CUHtmlTableRow(); aTitle = new CUHtmlText("Status History"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); CUHtmlTableCell header = new CUHtmlTableCell(aTitle); header.setIsHeader(true); header.setColumnsToSpan(3); header.setAlign("center"); aRow.add(header); aTable.add(aRow); aRow = new CUHtmlTableRow(); String titles[] = { "Status", "Date", "Person/Outcome" }; for (int i = 0; i < titles.length; i++) { aTitle = new CUHtmlText(titles[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = new CUHtmlTableCell(aTitle); header.setIsHeader(true); header.setColumnsToSpan(1); header.setAlign("center"); aRow.add(header); } aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param aStatus TODO: DOCUMENT ME! */ public void setStatusTableDataRow(CUHtmlTable aTable, IrbStatus aStatus) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 191 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 203 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 120 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 118 |
setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 219 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 224 |
elements.addElement(getWidgetFor((String) currentRow.get("Title"))); if (currentRow.containsKey("Submitted")) { dateObj = currentRow.get("Submitted"); // submitted Date Assigned if (dateObj instanceof java.sql.Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } } if (currentRow.containsKey("Expiration")) { dateObj = currentRow.get("Expiration"); // Expiration Date Assigned if (dateObj instanceof java.sql.Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } } t.addRowFor(elements); elements = new Vector(); } getForm().add(t); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aFromDate TODO: DOCUMENT ME! * @param aToDate TODO: DOCUMENT ME! */ public void addHeader(String aFromDate, String aToDate) { // revert date to what user typed getForm().add("<div align=\"center\">"); getForm().add("<p><font face=\"Comic Sans MS\" size=\"2\"> RASCAL Reporting <br>"); getForm().add("Columbia University</font><br> </p> "); getForm().add( |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCAbstractPopupServlet.java | 73 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 129 |
} catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, req.getMethod() + " " + getClassName())).draw( getResponse() ); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.tc.servlets.TCAbstractServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { } |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/servlets/RuSimpleTrainingBBPOEntryServlet.java | 62 |
edu/columbia/rascal/presentation/user/servlets/RuSimpleTrainingLSCHOEntryServlet.java | 62 |
if (CURascalGuardian.hasRuBloodbornePathogensProtection()) { // save / update RuSimpleTrainingEnrollment cert = null; Long oid = null; String oidStr = getRequestParameter(KEY_OID); try { if (oidStr != null) oid = Long.parseLong(oidStr); } catch (Exception e) { } RascalUser user = null; String rascalUni = getRequestParameter(KEY_RASCAL_UNI); Date enrollmentDate = null; String enrDateStr = getRequestParameter(KEY_ENROLLMENT_DATE); try { if ((enrDateStr != null) && (enrDateStr.length() > 0)) { Calendar cal = CalendarTransformer.toCalendar(enrDateStr); enrollmentDate = cal.getTime(); } } catch (Exception e) { } int entryMode = 0; String entModeStr = getRequestParameter(KEY_ENTRY_MODE); try { if (entModeStr != null) entryMode = Integer.parseInt(entModeStr); } catch (Exception e) { } switch (entryMode) { case ADD_CERT: // save if (rascalUni != null) user = ServiceLocator.getRascalUserService().findByUserId(rascalUni); if (user != null) { cert = new RuSimpleTrainingEnrollment(user, SIMPLE_TRAINING_PGM_BBPO, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 105 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 543 |
)).getCommitteeName(); add(getSubTitle()); s.append("<table width=\"100%\" border=\"1\" bgcolor=\"#CCCCCC\">"); s.append("<tr> "); s.append("<td colspan=\"2\"> "); s.append( "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Agenda Number</font> </div>" ); s.append("</td> <td colspan=\"2\"> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(getPrefix()).append((getAgendaHeader().getAgendaNumber() == null) ? "" : getAgendaHeader().getAgendaNumber()); s.append("</font></td> </tr>"); s.append("<tr> "); s.append("<td colspan=\"2\"> "); s.append( "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Assigned Committee</font> </div>" ); s.append("</td> <td colspan=\"2\"> <font face=\"Comic Sans MS\" size=\"1\"> "); s.append(((CUHtmlItem) getWidgetFor(comm)).getHtml()).append("</font></td> </tr>"); s.append("<tr> <td width=\"25%\"> "); s.append( "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Date Created</font></div></td> <td width=\"25%\"> " ); s.append("<font face=\"Comic Sans MS\" size=\"1\"> "); s.append((CalendarTransformer.toDateTimeString(getAgendaHeader().getCreationDate()))); s.append( "</font></td> <td width=\"25%\"><div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Created By</td><td><font face=\"Comic Sans MS\" size=\"1\">" ); s.append(((((getAgendaHeader().getWhoRid() == 0) ? " " |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinuteHistoryDateRangeView.java | 54 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 56 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 57 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 58 |
add(getSubTitle()); addFields(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); getAForm().add(getHiddenWidgetFor("dateValid", "true")); add(aForm); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListJdbcAccessor.java | 82 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixDisplaySelectionListServlet.java | 129 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaJdbcAccessor.java | 82 |
public static String getFirstLastNameUni(String lastName, String firstName, String userId) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) && ((userId == null) || (userId.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName) + " " + (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName) + " (" + (((userId == null) || (userId.trim().length() == 0)) ? "-" : userId) + ")"; } return nameString; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListJdbcAccessor.java | 144 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAccessQueueServlet.java | 165 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixApproverViewReleasedQueueServlet.java | 356 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixSearchParmsEntryServlet.java | 67 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaJdbcAccessor.java | 135 |
edu/columbia/rascal/presentation/ic/jdbc/IacucJdbcAccessor.java | 86 |
public static String getLastFirstNameUni(String lastName, String firstName, String userId) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) && ((userId == null) || (userId.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName) + ", " + (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName) + " (" + (((userId == null) || (userId.trim().length() == 0)) ? "-" : userId) + ")"; } return nameString; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 301 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 356 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 738 |
utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getSafetyOfficerComment() == null) ? "" : getTracker().getSafetyOfficerComment(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // gather safety officer approval data AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; String approvalDateStr = ""; if ((biosafetyApproval != null) && (biosafetyApproval.getApprovalType() != null) && (biosafetyApproval.getApprovalType().equals(APPROVE) || biosafetyApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = biosafetyApproval.getApproverRid(); approvalDate = biosafetyApproval.getApprovalDate(); approvalDateStr = approvalDate.toString(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAcknowledgementServlet.java | 280 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixReleaseServlet.java | 221 |
case 'A': case 'D': message.append( "You must specify a location before releasing the appendix." ); main.append(AppendixLocationServlet.class.getName()); main.append('\''); link.append(AppendixLinkFrameServlet.class.getName()); link.append('\''); break; case 'E': message.append( "You must specify a chemical or toxin and a location for each before releasing the appendix." ); main.append(AppendixChemicalServlet.class.getName()); main.append('\''); link.append(AppendixLinkFrameServlet.class.getName()); link.append('\''); break; case 'F': message.append( "You must specify an isotope and a location before releasing the appendix." ); main.append(AppendixIsotopeServlet.class.getName()); main.append('\''); link.append(AppendixLinkFrameServlet.class.getName()); link.append('\''); break; case 'G': message.append( "You must specify an isotope, irradiators with exposures (if applicable), and a location before releasing the appendix." ); main.append(AppendixIsotopeServlet.class.getName()); main.append('\''); link.append(AppendixLinkFrameServlet.class.getName()); link.append('\''); break; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3264 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4445 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5365 |
aBuffer.append(") Order by e.statusDate "); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { // this row /* (1) protocol header oid * (2) protocolNumber (3) title (4) PI last name (5) statud date * (6) protocol oid (7) committee name (8) times in count (9) * originating department (10) exempt flag */ row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); // protocol number row.addElement(res.getString(3)); // protocol title row.addElement(res.getString(4)); // PI name last if (res.getDate(5) == null) // date submitted { row.addElement(""); } else { row.addElement(res.getDate(5)); } row.addElement(Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString()); // protocol parent row.addElement(res.getString(7)); // committee name row.addElement(res.getString(8)); // times in count |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 405 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 352 |
elements.addElement(getWidgetFor("COI")); } if (columns.contains("AgencyName")) { elements.addElement(getWidgetFor("Agency Name")); } if (columns.contains("DepartmentName")) { elements.addElement(getWidgetFor("Department Name")); } if (columns.contains("DeadlineDate")) { elements.addElement(getWidgetFor("Deadline Date")); } if (columns.contains("DateLoggedIn")) { elements.addElement(getWidgetFor("Logged In Date")); } if (columns.contains("FinalizedDate")) { elements.addElement(getWidgetFor("Finalized Date")); } if (columns.contains("DateSent")) { elements.addElement(getWidgetFor("Date Sent")); } if (columns.contains("ProjectOfficer")) { elements.addElement(getWidgetFor("Project Officer")); } if (columns.contains("Status")) { elements.addElement(getWidgetFor("Status")); } return elements; } /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getEndDate() { return endDate; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param aLocation TODO: DOCUMENT ME! * @param euOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getEuLinkWidgetFor(String aString, String aLocation, String euOid) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 384 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 782 |
var = ""; temp = ptBudget.getCurrentAccount(); if (temp != null) var = temp; aWidget = getEditWidgetFor("currentAccount", var, "7", "7"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Current Account # (9-99999)", "pt56.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // report distribution1 var = ""; temp = ptBudget.getReportDistribution1(); if (temp != null) var = temp; aWidget = getEditWidgetFor("reportDistribution1", var, "6", "5"); columns.setElementAt(aWidget, 1); String name1 = "Report Distribution selection"; if (var.length() > 0) name1 = "Invalid Report Distribution"; if (reportDist1 != null) { String repName = reportDist1.getName(); if ((repName != null) && (repName.length() > 0)) name1 = repName; } columns.setElementAt(getWidgetFor(name1), 2); i = getWidgetRascalDistributionLookupButton("none", "reportDistribution1", "1"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 71 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportWithdrawnView.java | 85 |
if (!getDownloadable()) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames(getKeywordListForColumns(), "A", getSortBy()) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), "PtReportLoggedIn") |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 2428 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 2558 |
} try { java.sql.ResultSet res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( query ); while (res.next()) { aRow.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()) .toString() ); aRow.addElement(res.getString(2)); aRow.addElement(Integer.valueOf((new Float(res.getFloat(5))).intValue()) .toString() ); aRow.addElement(res.getString(4)); if (res.getDate(3) == null) // meeting date { aRow.addElement(""); } else { aRow.addElement(res.getDate(3)); } results.addElement(aRow.clone()); aRow = new Vector(5); } } catch (Exception e) { log.error(e); } return results; } /** * RASCAL (maggie) Insert the method's description here. Creation date: (9/25/2002 2:57:30 PM) * * @param aSql committeeId java.lang.String * * @return java.util.Vector */ public static Vector getSearchMinutes(String aSql) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 576 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFShortDataSheetView.java | 231 |
addVectorContent(vContent, xyPosition, theStyle); setHeight(getHeight() - getPDFPage().getStyle().getFontLeading()); vContent.removeAllElements(); if (i != (size - 1)) { addContent(getSpaceWithSpots(0, spotsNumber), ""); } } } } /** * TODO: DOCUMENT ME! * * @param label TODO: DOCUMENT ME! * @param otherEventAttached TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addOtherEventAttached(String label, Vector otherEventAttached, String eventName) { if (eventName.equalsIgnoreCase("other")) { int size = otherEventAttached.size(); if (size > 0) { addContent(" \n", " \n", theStyle); addSectionTitle(label); setDataSheetFeature(); int tableSize = 1; Vector vLabel = new Vector(tableSize); vLabel.add(0, "Topic"); float xyPosition[] = new float[] { unitXy * 100 }; IrbAgendaEvent currentRow = null; Vector vContent = new Vector(tableSize); for (int i = 0; i < size; i++) { addUnderLinedLabel(vLabel, xyPosition, theStyle, 10, 12); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDSafetyOfficerApprovalView.java | 198 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 232 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 232 |
"<b>" + APPROVAL_SAFETY_OFFICER + "</b>" ), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + name + "</b>", "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_DATE + "</b>"), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell("<b>" + (CalendarTransformer.formatMMDDYYYY(approvalDate)) + "</b>", "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Owner's Number (Protocol Number, Proposal TrakId) String ownerNumberLabel = (getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) ? PROPOSAL_TRAK_ID : PROTOCOL_NUMBER; aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(ownerNumberLabel), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(getOwnerSurrogate().getOwnerNumber(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 57 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 101 |
getForm().setAction(AppendixDServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_D)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbersOrDecimal.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); setAppendixObject(anAppendixObject); setRascalUser(aUser); add(anAppendixObject); render(); } /** * Creates a new AppendixDView object. * * @param anAppendixObject TODO: DOCUMENT ME! * @param aUser TODO: DOCUMENT ME! * @param aServlet TODO: DOCUMENT ME! * @param aLinkServlet TODO: DOCUMENT ME! */ public AppendixDView(AbstractAppendix anAppendixObject, RascalUser aUser, String aServlet, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAcknowledgementServlet.java | 338 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixReleaseServlet.java | 265 |
main.append(AppendixIServlet.class.getName()); main.append('\''); link.append(AppendixLinkFrameServlet.class.getName()); link.append('\''); break; default: message.append( "This appendix cannot be released in it present state." ); link.append(AppendixLinkFrameServlet.class.getName()); link.append('\''); main.append(getAppendixEditServletName(getAppendixType())); main.append('?'); main.append(KEY_PARM_APPENDIX_OID); main.append('='); main.append(getAppendixId()); main.append("&&"); main.append(KEY_PARM_APPENDIX_TYPE); main.append('='); main.append(getAppendixType()); main.append('\''); break; } return new AppendixMessageView(message.toString(), main.toString(), link.toString() ); } /** * @2005 Copyright Columbia University - RASCAL. All Rights Reserved. * * @return @2005 Copyright Columbia University - RASCAL. */ /** @see edu.columbia.rascal.presentation.appendix.servlets.AppendixAbstractServlet#getPage() */ @Override public CURascalHtmlView getPage() { if (getAppendix() == null) { setRedirectUrl(AppendixMainMenuServlet.class.getName()); return null; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbClosureFileUploadController.java | 135 |
edu/columbia/rascal/presentation/controller/irb/IrbClosureFileUploadInternalController.java | 139 |
WebUtils.setSessionAttribute(request, "terminiationOid", terminiationOid); IrbClosure currentIph = ServiceLocator.getIrbClosureService().findById( terminiationOid ); if (CURascalGuardian.hasIrbRascal() || ServiceLocator.getIrbClosureService().getAccessibleByUser( getRascalUser(), currentIph ) ) { IrbClosureAttachment attachment = new IrbClosureAttachment(); return new ModelAndView("irb/closure/attachment/create", "attachment", attachment ); } return new ModelAndView("updateFailed"); } /** * TODO: DOCUMENT ME! * * @param anOid request TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ @RequestMapping( value = "edit", method = RequestMethod.GET ) public ModelAndView getUpdate(@RequestParam long anOid) { IrbClosureAttachment attachment = ServiceLocator.getIrbClosureAttachmentService() .findById(anOid ); if (attachment != null) { IrbClosure currentIph = attachment.getIrbClosure(); if (CURascalGuardian.hasIrbRascal() || ServiceLocator.getIrbClosureService().getAccessibleByUser( getRascalUser(), currentIph ) ) { return new ModelAndView("irb/closure/attachment/update", "attachment", attachment ); } } return new ModelAndView("updateFailed"); } /** * TODO: DOCUMENT ME! * * @param anOid TODO: DOCUMENT ME! * @param request TODO: DOCUMENT ME! * @param response TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ @RequestMapping( value = "retrieve", method = RequestMethod.GET ) public ModelAndView handleRequest(@RequestParam long anOid, HttpServletRequest request, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6365 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6985 |
bodyBuffer.append(" AND Y.oid < oid))"); aSql.append(bodyBuffer.toString()); if (reviewType.equals("FullBoard")) { aSql.append(" AND NOT EXISTS ("); aSql.append("SELECT * FROM IrbExpeditableAnswer F"); aSql.append(" WHERE Y.parentObjectOid = F.irbProtocolHeaderId)"); aSql.append(" AND NOT EXISTS ("); aSql.append("SELECT * FROM IrbProtocolHeader"); aSql.append(" WHERE Y.parentObjectOid = oid"); aSql.append(" AND 'Y' = exempt)"); } else if (reviewType.equals("Expedited")) { aSql.append(" AND EXISTS ("); aSql.append("SELECT * FROM IrbExpeditableAnswer F"); aSql.append(" WHERE Y.parentObjectOid = F.irbProtocolHeaderId)"); aSql.append(" AND NOT EXISTS ("); aSql.append("SELECT * FROM IrbProtocolHeader"); aSql.append(" WHERE Y.parentObjectOid = oid"); aSql.append(" AND 'Y' = exempt)"); } else if (reviewType.equals("Exempt")) { aSql.append(" AND EXISTS ("); aSql.append("SELECT * FROM IrbProtocolHeader"); aSql.append(" WHERE Y.parentObjectOid = oid"); aSql.append(" AND 'Y' = exempt)"); aSql.append(" AND NOT EXISTS ("); aSql.append("SELECT * FROM IrbExpeditableAnswer F"); aSql.append(" WHERE Y.parentObjectOid = F.irbProtocolHeaderId)"); } return aSql.toString(); } /** * TODO: DOCUMENT ME! * * @param committeeId TODO: DOCUMENT ME! * @param protocolType TODO: DOCUMENT ME! * @param reviewType TODO: DOCUMENT ME! * @param dateRange TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static Vector getIrbReportOverallCommStatsAfterLogInResults(String committeeId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerForChairView.java | 465 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerView.java | 592 |
columns.addElement(getLinkForProtocolOverview(protNumber + "(Y" + currentRow.get("ProtocolYear") + 'M' + currentRow.get("ModYear") + ')', protNumber)); protNumber = getPrefix() + protNumber; if (isPending) suffix = "PND"; else if (isExpedited) suffix = "EXP"; else if (isExempt) suffix = "EXE"; else suffix = ""; columns.addElement(getWidgetFor(suffix)); // data sheet viewDataSheet = new CUHtmlImage("/images/popup.gif"); viewDataSheet.setBorderWidth(0); viewDataSheet.setAlt("Data Sheet"); viewDataSheet.setLink("''"); viewDataSheet.setOnClick(getServletLinkFor( (String) currentRow.get("ProtocolNumber"), headerOid, eventName, (String) currentRow.get("ProtocolOid") ) ); columns.addElement(viewDataSheet); // Notes addNote = new CUHtmlImage("/images/popup.gif"); addNote.setBorderWidth(0); addNote.setAlt("AddNote"); addNote.setLink("''"); addNote.setOnClick("return openNew('edu.columbia.rascal.presentation.irb.servlets.IrbNotesServlet?parentOid=" + headerOid + "&&parentName=" + eventName + "&&protocolNumber=" + protNumber + "','AddReviewNotes','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width=600,height=300')"); columns.addElement(addNote); // PI columns.addElement(getWidgetFor((String) currentRow.get("PI"))); // Current status columns.addElement(getWidgetFor(currentStatus)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 643 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 679 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 448 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName(getDefaultFontName()); } else { text.setFontSize("1"); text.setFontName(getDefaultFontName()); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName(getDefaultFontName()); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { this.endDate = newValue; } /** * This method was created in VisualAge. * * @param newValue int */ public void setIndexOfAbbreviatedTitle(int newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptView.java | 408 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 201 |
getForm().add("<p><font face=\"Verdana\"><b>Test Requirements</b></font></p>"); getForm().add("</div>"); } /** * Insert the method's description here. Creation date: (12/10/01 2:41:21 PM) * * @return int */ public int getDeptLocationCode() { return deptLocationCode; } /** * Insert the method's description here. Creation date: (10/31/01 4:51:16 PM) * * @return java.lang.String */ public java.lang.String getDeptName() { return deptName; } /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. * * @param instruction String * * @return CUHtmlText */ public CUHtmlText getInstruction(String instruction) { CUHtmlText aText = null; if (instruction instanceof String) { aText = new CUHtmlText(instruction); aText.setIsBold(true); aText.setFontSize("+1"); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); } return aText; } /** * This method was created in VisualAge. * * @param allCourses TODO: DOCUMENT ME! * * @return Vector */ public Vector<Object> getKeywordListForColumns(Vector<Object> allCourses) { Vector<Object> keyList = new Vector<Object>(); keyList.addElement("Name"); for (int i = 0; i < allCourses.size(); i++) keyList.addElement(((String) allCourses.elementAt(i)).substring(0, 6)); return keyList; } /** * Insert the method's description here. Creation date: (4/19/2005 6:18:22 PM) * * @return int */ public boolean getPrintable() { return printable; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 113 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 285 |
IrbHtmlView page = (IrbHtmlView) getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Exception in validateGet", e); (new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.irb.servlets.IrbAbstractServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, // there is some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 5707 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6499 |
); res = acc.executeQuery(query); while (res.next()) { row.addElement(res.getString(1)); if (res.getString(1) != null) results.addElement(row.elementAt(0)); else results.addElement("0"); row = new Vector(1); } // 5. returned query = getIrbReportOverallCommitteeStats2SqlStringCountActions( RETURNED, viewName ); res = acc.executeQuery(query); while (res.next()) { row.addElement(res.getString(1)); if (res.getString(1) != null) results.addElement(row.elementAt(0)); else results.addElement("0"); row = new Vector(1); } } catch (Exception e) { log.error("SQL Exception", e); } finally { try { acc.executeUpdate("truncate table " + viewName); if (res != null) res.close(); } catch (Exception e) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 93 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 78 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 210 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 91 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 78 |
columns.addElement("StatusDate"); if (!(getDownloadable())) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); getForm().add(addDateRange()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaEventSearchView.java | 204 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaSearchView.java | 183 |
} /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlTable getButtons() { EVector v = new EVector(); String space = ""; v.addElement(space); CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", " Search "); v.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("RESET", "RESET", " Reset "); // v.add(pb2); v.addElement(space); v.addElement(space); CUHtmlTable aTable = new CUHtmlTable(); aTable.addRowFor((Vector) v.clone()); aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("10%"); aTable.getCell(0, 1).setAlign("RIGHT"); aTable.getCell(0, 2).setWidth("10%"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.getCell(0, 3).setWidth("40%"); aTable.addBreaks(2); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinuteHistoryDateRangeView.java | 56 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 57 |
render(); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); getAForm().add(getHiddenWidgetFor("dateValid", "true")); add(aForm); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 111 |
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 370 |
edu/columbia/rascal/presentation/propTrak/jdbc/PtSearchQuery.java | 614 |
Enumeration signEnum = searchParam.signIterator(); attributeVal = (String) keyEnum.nextElement(); String sign = (String) signEnum.nextElement(); if (sign.equals("+")) { whereClause = " AND ( ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } else { whereClause = " AND ( not ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } while (keyEnum.hasMoreElements()) { attributeVal = (String) keyEnum.nextElement(); sign = (String) signEnum.nextElement(); if (sign.equals("+")) { whereClause = whereClause + " AND ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } else { whereClause = whereClause + " AND not ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } } whereClause = whereClause + ")"; break; case KEY_PHRASE: attributeVal = searchParam.getKeyword(); if (attributeVal.contains("\'")) attributeVal = escapeSingleQuoteWithAnotherOne(attributeVal); whereClause = " AND lower(" + attributeNm + ") like lower('%" + attributeVal + "%')"; } return whereClause; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 215 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 291 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 214 |
columns.setElementAt(getBooleanWidgetFor(CLOSURED, false), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Exclude Closured Protocols ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getBooleanWidgetFor(CREATING, false), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Exclude Created Protocols ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("60%"); return aTable; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ protected CUHtmlForm getAForm() { if (aForm == null) { aForm = new CUHtmlForm("Form1", HzAttestationSearchServlet.class.getName(), "POST"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyView.java | 40 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredView.java | 40 |
public IrbReportDrugDeviceStudyView(RascalUser aUser, CUSortVector results, Vector options) { super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); // setRascalUser(aUser); // setSubTitle("Drug & Device Study Report"); setPageTitle("Columbia University's RASCAL - Research Administration System"); // add(getSubTitle()); // add(getHiddenWidgetFor("dateValid", "true")); setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); String tmp = null; tmp = (String) options.elementAt(0); if ((tmp != null) && (tmp.length() > 0)) format = tmp; addHeader(results.getColumnNames(), (String) options.elementAt(1), |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 761 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 982 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 762 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 983 |
public void setAttachEventTableDataRow(CUHtmlTable aTable, Vector anEvent, String eventName) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // protocol Number CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getRowLabelLeftFor("IRB-" + anEvent.elementAt(2))); cell0.setAlign("left"); cell0.setVAlign("top"); cell0.setWidth("200"); aRow.add(cell0); // PI CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getWidgetFor((String) anEvent.elementAt(4))); cell1.setAlign("left"); cell1.setVAlign("top"); cell1.setWidth("100"); aRow.add(cell1); // Title CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls((String) anEvent.elementAt(5)) ) ); cell2.setAlign("left"); cell2.setVAlign("top"); cell2.setWidth("450"); aRow.add(cell2); // reviewer CUHtmlTableCell cell3 = new CUHtmlTableCell(); Vector reviewers; |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormLayoutView.java | 206 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormLayoutView.java | 211 |
aFormElement = (HipaaQuestionLookup) children.elementAt(j); setLayoutTableDataRow(aTable, rowCount++, aFormElement); // for now only allow 1 generation of children } catch (Exception e) { } } } } catch (Exception e) { } } } return aTable; } /** * This method was created in VisualAge. * * @param questionList TODO: DOCUMENT ME! * * @return java.util.Vector */ public CUHtmlTable buildSignatureRows(Vector questionList) { int len = questionList.size(); int colCount = 3; int rowCount = 0; CUHtmlTable aTable = getTable(len + 1, colCount); aTable.setBorderWidth(1); aTable.setWidth("95%"); aTable.setAlign("center"); setSignatureTableHead(aTable); rowCount++; aTable.getCell(0, 0).setWidth("5%"); aTable.getCell(0, 1).setWidth("5%"); aTable.getCell(0, 2).setWidth("90%"); Vector columns = new Vector(colCount); for (int c = 0; c < colCount; c++) { columns.addElement(""); } int row = aTable.elements.size(); int labelRow = row; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2983 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3074 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3560 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4158 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4250 |
aBuffer.append("' and stat.parentObjectOid = header.oid and header.modificationNumber > 0 "); aBuffer.append("and stat.oid = (select max(oid) from "); aBuffer.append("IrbStatus z where header.oid = z.parentObjectOid "); aBuffer.append("and z.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and z.statusName in ('"); aBuffer.append(LOGGED_IN); aBuffer.append("' ,'"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (currentStatus.parentObjectOid = header.oid "); aBuffer.append(" and currentStatus.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and currentStatus.statusName in ('"); aBuffer.append(DISTRIBUTED); aBuffer.append("', '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append("' , '"); aBuffer.append(DEFERRED); aBuffer.append("') and currentStatus.oid = (select max(x.oid) "); aBuffer.append("from IrbStatus x where x.parentObjectOid = header.oid and "); aBuffer.append("x.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1309 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 824 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param monthIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getMonthWidget(String fieldName, int monthIndex) { Vector list = new Vector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * This method was created in VisualAge. * * @param aValue rows int - the number of required rows * @param inputName cells int - the number of cell within each row * * @return edu.columbia.rascal.presentation.fo.alertService.html.CUHtmlTable */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { CUHtmlMultiLineEntryField mlef = new CUHtmlMultiLineEntryField(inputName, "7", "60", "PHYSICAL", aValue ); return mlef; } /** * This method was created in VisualAge. * * @param inputName TODO: DOCUMENT ME! * @param rows int - the number of required rows * @param cols int - the number of cell within each row * @param aValue TODO: DOCUMENT ME! * * @return edu.columbia.rascal.presentation.fo.alertService.html.CUHtmlTable */ public Object getMultilineTextWidgetFor(String inputName, String rows, String cols, String aValue ) { CUHtmlMultiLineEntryField mlef = new CUHtmlMultiLineEntryField(inputName, rows, cols, "PHYSICAL", aValue ); return mlef; } /** * This method was created in VisualAge. * * @param items TODO: DOCUMENT ME! * @param selectedItems TODO: DOCUMENT ME! * @param inputName TODO: DOCUMENT ME! * * @return CUHtmlList */ public CUHtmlList getMultiSelectWidgetFor(Vector items, Vector selectedItems, String inputName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 2265 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 387 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 313 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 484 |
header.setAlign("center"); } } /** * This method was created in VisualAge. Sets the mainTitle of this page. If aMainTitle is a * String, use the default mainTitle settings. if aMainTitle is CUHtmlText, override the default * mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aMode TODO: DOCUMENT ME! */ public void setMode(String aMode) { mode = aMode; } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { if (aNote instanceof CUHtmlText) { note = (CUHtmlText) aNote; } else { if (aNote instanceof String) { CUHtmlMultiLineText aText = new CUHtmlMultiLineText((String) aNote); aText.setFontName(getDefaultFontName()); aText.setMaxChar(600); aText.setIsBold(false); aText.setIsItalic(true); aText.addBreaks(3); note = aText; } } } /** * Insert the method's description here. Creation date: (3/25/2002 4:21:37 PM) * * @param newOwnerSurrogate edu.columbia.rascal.presentation.appendix.models.AppendixOwnerSurrogate */ public void setOwnerSurrogate(AppendixOwnerSurrogate newOwnerSurrogate) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaDocSearchQueryFormat.java | 149 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaDocSearchQueryFormat.java | 230 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaDocSearchQueryFormat.java | 312 |
aBuffer.append("SELECT DISTINCT"); aBuffer.append(" ch.oid,"); aBuffer.append(" ch.hipaaNumber,"); aBuffer.append(" ch.createdOn,"); aBuffer.append(" ru1.name_last,"); aBuffer.append(" ch.title,"); aBuffer.append(" '',"); aBuffer.append(" hForm.formType,"); aBuffer.append(" status.statusName"); aBuffer.append(" FROM HipaaHeader ch,"); aBuffer.append(" RASCAL_USER ru1,"); aBuffer.append(" HipaaAccessControl cac,"); aBuffer.append(" HipaaHeaderForm hForm,"); aBuffer.append(" HipaaStatus status"); aBuffer.append(fromAccessControl2); aBuffer.append(" WHERE ch.rid = ru1.rid"); aBuffer.append(" AND nvl(ch.irbProtocol_Oid, 0) = 0"); aBuffer.append(" AND ch.oid = cac.hipaaHeader_Oid"); aBuffer.append(" AND hForm.oid = ch.hipaaForm_Oid"); aBuffer.append(" AND ch.oid = status.hipaaHeader_Oid"); aBuffer.append(" AND status.oid = ("); aBuffer.append("SELECT max(oid)"); aBuffer.append(" FROM HipaaStatus"); aBuffer.append(" WHERE ch.oid = hipaaHeader_Oid)"); aBuffer.append(whereTemplateName); aBuffer.append(whereAccessorName); aBuffer.append(whereAccessorId); aBuffer.append(whereHeaderTitle); aBuffer.append(whereDateRange); aBuffer.append(" UNION "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 134 |
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 266 |
aQuery.append(" order by TC.courseNumber "); try { @SuppressWarnings("unchecked") List<Object[]> resultList = ServiceLocator.getCURascalJdbcAccessorService().executeNoParmPreparedQuery(aQuery.toString()); for(Object[] res: resultList){ row.add(res[1] + "-" + res[2]); // courseNumber+Title String firstName = (String)((res[4] == null) ? "" : res[4]); String lastName = (String)((res[5] == null) ? "Name Unknown" : res[5]); String userid = (String)res[3]; row.add((res[3] == null) ? "" : (firstName + " " + lastName + "(" + userid + ")") ); results.add(row); row = new ArrayList<Object>(); } } catch (Exception e) { log.error("Exception populating vector.", e); } return results; } /** * TODO: DOCUMENT ME! * * @param rid TODO: DOCUMENT ME! * @param dayNum TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static List<List<Object>> getAllRequiredCourseListByRid(int rid, int dayNum) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 870 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1082 |
CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelLeftFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName("Comic Sans MS"); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelLeftFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/tools/IrbEmailProtocolExpired30DaysTask.java | 226 |
edu/columbia/rascal/presentation/irb/tools/IrbEmailRenewalTask.java | 258 |
writeToLogFile(RASCAL_EXPIRED_PROTOCOL_LOG, listOfProtocols.toString()); } } /** * Java.lang.String. * * @return java.lang.String */ public String getHomeUrl() { if (dbLocation.equals("was_rascal")) { return "https://www.rascal.columbia.edu"; } else { return "https://wwwtest2.rascal.columbia.edu"; } } /** * This method was created in VisualAge. * * @return java.lang.String */ @SuppressWarnings("unchecked") public boolean hasDayPassedSinceLastRun() { Date lastRun = null; List<Object[]> res = null; CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { String selectQuery = "Select lastRunDate FROM RASCAL_EMAIL_NOTIFICATION where procedureName = '" + PROCEDURE_NAME + "'"; res = acc.executeNoParmPreparedQuery(selectQuery); if(res!=null && res.size()>0) lastRun = (Date)((Object)res.get(0)); } catch (Exception e) { log.error(e); } Date now = new Date(); if (lastRun == null) { log.info("Error: last run date could not be pulled from database"); return false; } else { lastRun = DateUtils.addHours(lastRun, 12); } return lastRun.before(now) || lastRun.equals(now); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/myRascal/views/MyRascalMainMenuView.java | 199 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalMainMenuView.java | 386 |
t = new CUHtmlText("My Approvals"); t.setLink( "Javascript:onClick=parent.frames[2].document.forms[0].reportNameHF.value='myHumanSubjectsApprovals';parent.frames[1].location='" + IrbLinkFrameServlet.class.getName() + "';parent.frames[2].document.forms[0].submit();" ); t.setIsBold(true); t.setFontName(getDefaultFontName()); menuItems.addElement(t); form.add(new CUHtmlBulletList(menuItems, "BULLET")); menuItems = new Vector<Object>(); // TRAINING CENTER =================================================================== t = new CUHtmlText("Training Center"); t.setIsBold(true); t.setFontName("Verdana"); form.add(t); t = new CUHtmlText("My Test History"); t.setLink( "Javascript:onClick=parent.frames[2].document.forms[0].reportNameHF.value='myCertifiedTestHistory';parent.frames[1].location='" + TCLinkFrameServlet.class.getName() + "';parent.frames[2].document.forms[0].submit();" ); t.setIsBold(true); t.setFontName(getDefaultFontName()); menuItems.addElement(t); form.add(new CUHtmlBulletList(menuItems, "BULLET")); menuItems = new Vector<Object>(); CUHtmlHiddenField hf = new CUHtmlHiddenField("reportNameHF", ""); form.add(hf); add(form); addRascalNavigationBar(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 2267 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1686 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 389 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 315 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 486 |
} /** * This method was created in VisualAge. Sets the mainTitle of this page. If aMainTitle is a * String, use the default mainTitle settings. if aMainTitle is CUHtmlText, override the default * mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aMode TODO: DOCUMENT ME! */ public void setMode(String aMode) { mode = aMode; } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { if (aNote instanceof CUHtmlText) { note = (CUHtmlText) aNote; } else { if (aNote instanceof String) { CUHtmlMultiLineText aText = new CUHtmlMultiLineText((String) aNote); aText.setFontName(getDefaultFontName()); aText.setMaxChar(600); aText.setIsBold(false); aText.setIsItalic(true); aText.addBreaks(3); note = aText; } } } /** * Insert the method's description here. Creation date: (3/25/2002 4:21:37 PM) * * @param newOwnerSurrogate edu.columbia.rascal.presentation.appendix.models.AppendixOwnerSurrogate */ public void setOwnerSurrogate(AppendixOwnerSurrogate newOwnerSurrogate) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseExpireTask.java | 200 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseNotifyTask.java | 191 |
if ((recipientEmail == null) || recipientEmail.trim().equals("")) { recipientEmail = piUni + "@columbia.edu"; } try { email = new TCGeneralEmailMessage(recipientName, recipientEmail, subject, message, dbLocation ); } catch (IllegalArgumentException ie) { try { if (!recipientEmail.contains("@")) { email = new TCGeneralEmailMessage(recipientName, piUni + "@columbia.edu", subject, message, dbLocation ); } else { log.error("Invalid recipient email address.", ie); continue; } } catch (Exception e) { log.error("Exception validating email address.", e); } } CURascalEmailSender sender = new CURascalEmailSender(); try { // log.info("About to open connection."); sender.openConnection(); log.info("Attempting to email: " + recipientName + "(" + piUni + ")"); log.info("Address to be sent to: " + recipientEmail); sender.sendEmail(email); // log.info("Email sent."); } catch (Exception e) { log.error("Exception sending email.", e); } finally { sender.closeConnection(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaEventPostMeetingView.java | 348 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaEventPostMeetingView.java | 443 |
cell0.add(getWidgetFor(PersistentTextFormatter.insertHtmlTagsForControls(topic))); cell0.setAlign("left"); cell0.setVAlign("top"); aRow.add(cell0); // recommendation CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls( (attribute == null) ? blank : attribute.getRecommendationText() ) ) ); cell1.setAlign("left"); cell1.setVAlign("top"); aRow.add(cell1); // follow-up CUHtmlTableCell cell4 = new CUHtmlTableCell(); cell4.add((getWidgetFor( PersistentTextFormatter.insertHtmlTagsForControls( (attribute == null) ? blank : attribute.getFollowUp() ) )) ); cell4.setAlign("left"); cell4.setVAlign("top"); aRow.add(cell4); // addReviewNotes CUHtmlImage addNote = new CUHtmlImage("/images/popup.gif"); addNote.setBorderWidth(0); addNote.setAlt("Add Meeting Notes"); addNote.setLink("''"); addNote.setOnClick("return openNew('" + IrbAgendaMeetingAttributeEntryServlet.class.getName() + "?eventOid=" + anEvent.getId() + "&&attributeOid=" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueAssignedToMeetingView.java | 210 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueSubmittedView.java | 223 |
aCell.add(getLinkForIrbProtocolDatasheet("IRB-" + protocolNumber, irbOid)); aCell.setAlign("left"); } else { aCell.add(getTableCellData("")); } colNum++; // 6 History aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageOpenNewWindow( "/images/blueball.gif", HipaaHistoryServlet.class.getName() + "?hipaaHeaderId=" + headerOid, "scrollbars=yes,resizable=yes,width=600,height=350", "View History", "ViewHistory" ); aCell.add(anImage); aCell.setAlign("center"); colNum++; // 7 View HIPAA Notes aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageOpenNewWindow( "/images/blueball.gif", HipaaNotesViewOnlyServlet.class.getName() + "?parentOid=" + headerOid + "&&parentName=HipaaHeader&&headerNumber=" + hipaaNumber, "scrollbars=yes,resizable=yes,width=800,height=600", "View Notes", "ViewNotes" ); aCell.add(anImage); aCell.setAlign("center"); colNum++; // 8 Add HIPAA Notes aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageOpenNewWindow( "/images/blueball.gif", HipaaNotesServlet.class.getName() + "?parentOid=" + headerOid + "&&parentName=HipaaHeader&&headerNumber=" + hipaaNumber, "scrollbars=yes,resizable=yes,width=800,height=600", "Add Notes", "AddNotes" ); aCell.add(anImage); aCell.setAlign("center"); colNum++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbPiEntryView.java | 184 |
edu/columbia/rascal/presentation/lab/pages/HzStaffEntryView.java | 193 |
public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPadding(2); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); aForm.add("<BR>"); if (theOid == null) { theAddEdit = "Add"; } else { theAddEdit = "Edit"; } aForm.add(getHiddenWidgetFor("hiddenAddEdit", theAddEdit)); aForm.add(getHiddenWidgetFor("hiddenOid", theOid)); aForm.add(aTable); aForm.add("<BR>"); aForm.add(getActionButtons()); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStatsView.java | 449 |
edu/columbia/rascal/presentation/irb/pages/IrbReportOverallCommStatsAfterLogInView.java | 415 |
int colSize = columns.size(); // add individual column labels aRow = new CUHtmlTableRow(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(aTitle, 1, false)); aCell.setAlign("right"); aCell.setVAlign("bottom"); aRow.add(aCell); } aTable.add(aRow); Vector subject = new Vector(); subject.addElement("<b>New Protocol</b>"); subject.addElement("- full Board"); subject.addElement("- exempt"); subject.addElement("- expedited"); subject.addElement("<b>Modification</b>"); subject.addElement("- full Board"); subject.addElement("- exempt"); subject.addElement("- expedited"); subject.addElement("<b>Renewal</b>"); subject.addElement("- full Board"); subject.addElement("- exempt"); subject.addElement("- expedited"); subject.addElement("<b>Adverse Event</b>"); subject.addElement("<b>Closure</b>"); subject.addElement("<b>Unanticipated Problem</b>"); int resultSize = results.size(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 39 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 76 |
public IrbReportDeviceStudyView(RascalUser aUser, CUSortVector results) { super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); // setRascalUser(aUser); setForm(new CUHtmlForm("report", IrbReportDeviceStudyServlet.class.getName(), "POST")); setServletName(IrbReportDeviceStudyServlet.class.getName()); setPageTitle("Columbia University's RASCAL - Research Administration System"); setMainTitle("Device Study Report"); setSubTitle(""); add(getSubTitle()); // add(getHiddenWidgetFor("dateValid", "true")); setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbQueueReviewerForChairServlet.java | 235 |
edu/columbia/rascal/presentation/irb/servlets/IrbQueueReviewerServlet.java | 305 |
queueRow.put("Reviewer", event.elementAt(4)); return queueRow; } /** * TODO: DOCUMENT ME! * * @param event TODO: DOCUMENT ME! * @param eventType TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Hashtable getQueueInfoFor(Vector event, String eventType) { Hashtable queueRow = new Hashtable(); if (eventType.equals(IrbNameConstants.PROTOCOL_HEADER)) { queueRow = getProtocolQueueRow(event); } else { queueRow = getEventQueueRow(event, eventType); } return queueRow; } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override public String getRedirectUrl() { String eventOid = getRequestParameter("reviewedEventOid"); String name = getRequestParameter("reviewedEventName"); String protNumber = getRequestParameter("reviewedProtNumber"); String lineParameters = (((eventOid == null) || eventOid.trim().equals("")) ? "" : ("?reviewedId=" + eventOid)) + (((name == null) || name.trim().equals("")) ? "" : ("&&reviewedName=" + name)) + (((protNumber == null) || protNumber.trim().equals("")) ? "" : ("&&reviewedProtNumber=" + protNumber)); return IrbQueueReviewerForChairServlet.class.getName() + lineParameters.trim(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 424 |
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1545 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.user.business.objects.RascalUser */ public RascalUser getRascalUser() { return rascalUser; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * <p>This method was created in VisualAge.</p> * * @param aLabel TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaSearchServlet.java | 74 |
edu/columbia/rascal/presentation/agenda/servlets/IrbMinuteSearchServlet.java | 74 |
return new IrbMessageView("Invalid Search.", location); } if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbAgendaDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new IrbAgendaResultsDisplayView(pageInfo.getDisplayPage(), pageInfo.getPageBeginPos(), pageInfo.getPageSize(), pageInfo.getTotalMatch(), pageInfo.getMaxPageSize(), getUser(), "Agenda" |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAServlet.java | 159 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixBServlet.java | 157 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCServlet.java | 174 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIServlet.java | 134 |
saveAppendixValues(anAppendix); boolean hasAccessForCreator = false; Vector res = ServiceLocator.getAppendixAccessControlService().getAllByAppendixIdAndType( anAppendix.getId(), anAppendix.getAppendixType() ); int siz = res.size(); for (int i = 0; i < siz; i++) { AppendixAccessControl ac = (AppendixAccessControl) res.elementAt(i); if ((ac.getRid() != null) && (ac.getRid().intValue() == anAppendix.getCreatedBy().intValue()) ) { hasAccessForCreator = true; break; } } // make sure there is an 'edit' access control for creator if (!hasAccessForCreator) { AppendixAccessControl newAc = new AppendixAccessControl(anAppendix.getId(), anAppendix.getAppendixType() ); ServiceLocator.getAppendixAccessControlService().save(newAc); newAc.setRid(anAppendix.getCreatedBy()); newAc.setEditView(ACCESS_EDIT); ServiceLocator.getAppendixAccessControlService().save(newAc); // anAppendix.getAllAccessControlEntries().addElement(newAc); } } catch (Exception e) { log.error("Exception creating appendix.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/CUSortVector.java | 102 |
edu/columbia/rascal/presentation/common/CUSortVector.java | 168 |
public boolean lessThan(Object l, Object r) { Object leftElement = null; Object rightElement = null; if (l instanceof Vector) { int sortIndex = getColumnNames().indexOf( getSortByColumn() ); leftElement = ((Vector<Object>) l).elementAt(sortIndex); rightElement = ((Vector<Object>) r).elementAt(sortIndex); } else if (l instanceof Dictionary) { leftElement = ((Dictionary<String, Object>) l).get(getSortByColumn()); rightElement = ((Dictionary<String, Object>) r).get(getSortByColumn()); } else { leftElement = l; rightElement = r; } if (leftElement instanceof String) { if (rightElement instanceof String) { return ((String) leftElement).trim().toLowerCase().compareTo( ((String) rightElement).trim().toLowerCase() ) < 0; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueConsultantView.java | 218 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueConsultantView.java | 367 |
"?parentOid=" + currentRow.elementAt(0) + "&&parentName=" + eventName + "','AddReviewNotes','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width=600,height=300')" ); columns.addElement(addNote); Object dateObj1 = currentRow.elementAt(5); if (dateObj1 instanceof java.sql.Date) { // reviewed columns.addElement(getWidgetFor( CalendarTransformer.toString((java.sql.Date) dateObj1) ) ); } else if (dateObj1 instanceof String) { columns.addElement(getActionButtons( "Id" + currentRow.elementAt(6) ) ); } aTable.addRowFor(columns); columns = new Vector(10); // clear out the values.... } aTable.getCell(0, 0).setWidth("18%"); aTable.getCell(0, 1).setWidth("8%"); aTable.getCell(0, 2).setWidth("25%"); aTable.getCell(0, 3).setWidth("8%"); aTable.getCell(0, 4).setWidth("8%"); aTable.getCell(0, 5).setWidth("6%"); aTable.getCell(0, 6).setWidth("6%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 86 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 252 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportCurrentActivityStatusServlet.java | 86 |
Vector columns = new Vector(); columns.addElement("EventName"); columns.addElement("ProtocolNumber"); columns.addElement("PI"); columns.addElement("Committee"); columns.addElement("DateAssigned"); columns.addElement("CurrentStatus"); if (reportType.equals("Committee")) { columns.addElement("TimesIn"); columns.addElement("Reviewer"); } columns.addElement("MeetingDate"); columns.addElement("StatusDate"); columns.addElement("LastCorrespondenceToPIDate"); columns.addElement("ExpirationDate"); // expiration date added Vector columns1 = new Vector(); columns1.addElement("EventName"); columns1.addElement("ProtocolNumber"); columns1.addElement("PI"); columns1.addElement("Committee"); columns1.addElement("DateAssigned"); columns1.addElement("CurrentStatus"); if (reportType.equals("Committee")) { columns1.addElement("TimesIn"); columns1.addElement("Reviewer"); } columns1.addElement("StatusDate"); columns1.addElement("LastCorrespondenceToPIDate"); columns1.addElement("ExpirationDate"); // expiration date added |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderCreationServlet.java | 109 |
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderModifyServlet.java | 74 |
protected void saveProtocolCommonValues(HzAppendixHeader hah) { String primSite = getRequestParameter("primarySite"); if (primSite.equals("Health Sciences")) { primSite = "HS"; } else { primSite = "MS"; } String headerTitle = getRequestParameter("headerTitle").trim(); if (headerTitle.length() > 255) { headerTitle = headerTitle.substring(0, 255); } String origDeptCode = getRequestParameter("originatingDepartment"); String origDeptName = "Department not Defined"; RascalDepartment dept = ServiceLocator.getRascalDepartmentService().findById(origDeptCode); if (dept==null) { origDeptCode = ""; } if (dept!=null) { origDeptName = dept.getName(); } String origSubDeptCode = getRequestParameter("originatingSubDepartment"); String origSubSubDeptCode = getRequestParameter("originatingSubSubDepartment"); if (hah.getCreatedBy() == 0) { hah.setCreatedBy(getUser().getId()); } hah.setCreationDate(hah.getCreationDate()); // set the creation date to the default hah.setSubmitSite(primSite); hah.setAppendixHeaderNumber(generateNewProtocolNumber(hah)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsApproveQueueController.java | 165 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsCommitteeReviewController.java | 152 |
final List<AppendixH> appendicies = new ArrayList<AppendixH>( tasks.size()); // Tack on the task ID to the appendix object. This way we have the full // appendix info with the // task ID for later. for (final Task task : tasks) { final AppendixH appendix = this.appendixHService .findByProcessInstanceId(task.getProcessInstanceId()); appendix.setTaskId(task.getId()); appendicies.add(appendix); dataMap = new HashMap<String, Object>(); dataMap.put(ID, appendix.getId()); dataMap.put(TASK_ID, task.getId()); dataMap.put(NUMBER, "APH-" + appendix.getAppendixNumber()); dataMap.put(NAME, appendix.getTitle()); dataMap.put(TYPE, appendix.getApplicationType()); dataMap.put(STATUS, appendix.getStatus()); dataMap.put(LAST_MODIFIED, appendix.getLastModifiedDate()); dataMap.put(TASK_CREATED, task.getCreateTime()); dataMap.put("assignee", task.getAssignee()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueLoggedInView.java | 456 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueSubmittedView.java | 361 |
aTitle = getTableColumnName("History", "center"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; // View HIPAA Notes aTitle = getTableColumnName("View<br>HIPAA<br>Notes", "center"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; // Add HIPAA Notes aTitle = getTableColumnName("Add<br>HIPAA<br>Notes", "center"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; // Return aTitle = getTableColumnName("Return", "center"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; // Deny aTitle = getTableColumnName("Deny", "center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3736 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3872 |
); aBuffer.append("and (b.oid = e.parentObjectOid and e.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append( "') and b.oid = c.irbProtocolHeaderId and (c.rid = d.rid(+) and c.sequenceNumber = 1) " ); aBuffer.append("and (e.statusName = '"); aBuffer.append(DISTRIBUTED); aBuffer.append("' OR e.statusName = '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append( "') and e.oid = (select max(oid) from IrbStatus x where b.oid = x.parentObjectOid and x.parentObjectName = '" ); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') and f.statusOid = s.oid "); aBuffer.append( "and s.oid = (select max(oid) from IrbStatus z where b.oid = z.parentObjectOid and z.parentObjectName = '" ); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and (z.statusName = '"); aBuffer.append(LOGGED_IN); aBuffer.append("' or z.statusName = '"); aBuffer.append(RETURNED_TO_CHAIR); aBuffer.append("')) and (b.oid = s.parentObjectOid and s.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') and f.whoRid ="); aBuffer.append(whoAmI.getId()); aBuffer.append(" and f.type = '"); aBuffer.append(reviewerType); aBuffer.append("' and b.oid not in "); aBuffer.append("(select distinct b.oid "); aBuffer.append( "from IrbProtocol a, IrbProtocolHeader b, IrbStatus e, IrbReviewer f, IrbStatus s, IrbMeetingAttributes att " ); aBuffer.append("where a.oid = b.parentProtocolOid "); aBuffer.append( |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 72 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 76 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportWithdrawnView.java | 86 |
addHeader(); getForm().add(addDate()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames(getKeywordListForColumns(), "A", getSortBy()) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), "PtReportLoggedIn") |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 74 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 96 |
Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); for (int i = 0; i < addRows; i++) { aTable.addRowFor(columns); aTable.getCell(row, 0).setHeight(height); row++; } } /* * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All Rights * Reserved. * * answer the name of the Location Filter Servlet * */ /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String filterLink() { return servletHome() + "PtLocationFilterServlet"; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * * @return Object */ public Object getBooleanWidgetFor(String aName, boolean aValue) { CUHtmlCheckBox cb = new CUHtmlCheckBox(aName, aName, aValue); return cb; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aType TODO: DOCUMENT ME! * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * * @return Object */ public Object getButtonWidgetFor(String aType, String aName, String aValue) { CUHtmlPushButton pb = new CUHtmlPushButton(aType, aName, aValue); return pb; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aType TODO: DOCUMENT ME! * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * @param onClickValue TODO: DOCUMENT ME! * * @return Object */ public Object getButtonWidgetFor(String aType, String aName, String aValue, String onClickValue) { CUHtmlPushButton pb = new CUHtmlPushButton(aType, aName, aValue, onClickValue); return pb; } /** This method was created in VisualAge. */ public void getDefaultMainHeader() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 1315 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 1494 |
s.append(" AND f.whoRid = ").append(rid).append(" AND (f.approvalCode = 1 OR f.approvalCode = 4)"); s.append(" AND f.approvalCode = rat.code"); s.append(" ORDER BY a.protocolNumber DESC"); } else { if (name.equals(IrbNameConstants.CLOSURE)) { title = " '',"; } s.append("SELECT DISTINCT"); s.append(" a.oid AS oid1,"); // 1 s.append(" a.protocolNumber,"); // 2 s.append(" c.name_last,"); s.append(title); s.append(" b.oid AS oid2,"); s.append(" e.statusName,"); s.append(" f.oid AS oid3,"); s.append(" rat.type"); s.append(" FROM IrbProtocol a,"); s.append(table); s.append(" b, RASCAL_USER c, IrbStatus e, IrbApproval f, RascalApprovalType rat"); s.append(" WHERE a.oid = b.parentProtocolOid"); s.append(" AND b.createdBy = c.rid"); s.append(" AND (b.oid = e.parentObjectOid AND e.parentObjectName = '"); s.append(name); s.append("')"); s.append(" AND e.oid = (SELECT max(oid)"); s.append(" FROM IrbStatus x"); s.append(" WHERE b.oid = x.parentObjectOid AND x.parentObjectName = '"); s.append(name); s.append("')"); s.append(" AND e.statusName <> '"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceRespondView.java | 85 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceRespondView.java | 159 |
c.getDestinationRole().equals("CTSA Reviewer")) ) aRole = "PI/Initiator"; else aRole = theRole; setSubTitle(aRole + " Response "); isToIrb = toIrb.equals("Y"); IrbProtocol prot = ServiceLocator.getIrbProtocolService().getByProtocolNumber( getCorrespondence().getProtocolNumber(), getRascalUser() ); IrbProtocolHeader ph = null; String eventName = getCorrespondence().getParentObjectName(); if (eventName.startsWith("Protocol") || eventName.startsWith("Modification") || eventName.startsWith("Renewal") ) ph = ServiceLocator.getIrbProtocolHeaderService().findById(getCorrespondence() .getParentObjectOid() ); else ph = ServiceLocator.getIrbProtocolService().getLastApprovedProtocolHeader(prot); if ((ph != null) && ServiceLocator.getIrbProtocolService().hasInvolvedCancerCenter(ph.getIrbProtocol()) ) involveCancerCenter = true; if ((ph != null) && ServiceLocator.getIrbProtocolService().hasInvolvedCTSA(ph.getIrbProtocol()) ) involveCTSA = true; addFields(); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aUser TODO: DOCUMENT ME! * @param c TODO: DOCUMENT ME! * @param recipientOid TODO: DOCUMENT ME! * @param toIrb TODO: DOCUMENT ME! * @param eventType TODO: DOCUMENT ME! * @param incoming TODO: DOCUMENT ME! */ public IrbCorrespondenceRespondView(RascalUser aUser, IrbCorrespondence c, String recipientOid, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 571 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 547 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 367 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 375 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 411 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 408 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 609 |
return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaEventSearchServlet.java | 138 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaSearchServlet.java | 170 |
edu/columbia/rascal/presentation/agenda/servlets/IrbMinuteSearchServlet.java | 76 |
} if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbAgendaDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new IrbAgendaResultsDisplayView(pageInfo.getDisplayPage(), pageInfo.getPageBeginPos(), pageInfo.getPageSize(), pageInfo.getTotalMatch(), pageInfo.getMaxPageSize(), getUser(), "Agenda" |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaSearchServlet.java | 76 |
edu/columbia/rascal/presentation/agenda/servlets/IrbMinuteSearchServlet.java | 170 |
} if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbAgendaDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new IrbAgendaResultsDisplayView(pageInfo.getDisplayPage(), pageInfo.getPageBeginPos(), pageInfo.getPageSize(), pageInfo.getTotalMatch(), pageInfo.getMaxPageSize(), getUser(), "Agenda" |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 183 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 283 |
public static Vector buildClinicalTrialsFirstSubmissionReportResult(java.sql.ResultSet res, Vector columns ) { Vector results = new Vector(); Hashtable row = new Hashtable(); int protocalyear = 0; int modificationNumber = 0; try { while (res.next()) { String checkNull = null; if (columns.contains("ProtocolNumber")) { protocalyear = res.getInt(4); modificationNumber = res.getInt(5); row.put("ProtocolNumber", "IRB-" + res.getString(3) + "(Y" + protocalyear + "M" + modificationNumber + ")" ); row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString() ); } if (columns.contains("PI")) row.put("PI", res.getString(7)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 211 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 255 |
return subTitle; } /** @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getTable(int, int) */ @Override public CUHtmlTable getTable(int rows, int cells) { int rowsCounter; Vector v = new Vector(); for (rowsCounter = 1; rowsCounter <= rows; rowsCounter++) { CUHtmlTableRow aRow = new CUHtmlTableRow(); int cellCounter; for (cellCounter = 1; cellCounter <= cells; cellCounter++) { aRow.add(new CUHtmlTableCell()); } v.addElement(aRow); } return (new CUHtmlTable(v)); } /** * TODO: DOCUMENT ME! * * @param aString TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getWidgetFor(String aString) { if ((aString == null) || aString.trim().equals("")) { CUHtmlImage i = new CUHtmlImage("/images/blank.gif"); i.setBorderWidth(0); return i; } CUHtmlText text = new CUHtmlText(aString); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } text.setFontSize("1"); text.setFontName("Comic Sans MS"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 507 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceReturnOrApproveCreateServlet.java | 1473 |
} } private void sentHazEmail(String eMail,String message,String nameString){ try { CURascalJavaMailSender sender = new CURascalJavaMailSender(); CURascalJavaMailMessage email = new CURascalJavaMailMessage(sender.getSession()); email.setSubject("EH&S Required Training Notification"); email.setMessageAddress("no-reply-rascal@columbia.edu", "Rascal IRB Notice", eMail, nameString ); email.addSinglePartMessage(message, CURascalJavaMailMessage.INT_CONTENT_TYPE_PLAIN ); email.finishSinglePart(); sender.openConnection(); sender.sendMessage(email); sender.closeConnection(); } catch (Exception e) { log.error(e); } } private boolean shouldTakeCourseForAppendixType(List<TcuserHeader> tcObjs, List<TccourseComplianceLookup>lookups){ Long tcOid; for (TcuserHeader tcObj : tcObjs) { tcOid = tcObj.getTccourseHeader().getId(); for (TccourseComplianceLookup lookup : lookups) { if (tcOid.equals(lookup.getTcCourseheaderId())) { // when a valid course is encountered cancel e-mail for appendix staff return false; } } } return true; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixChemicalRemoveServlet.java | 85 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeRemoveServlet.java | 58 |
} /** * The getPage method comment. * * <p>This method is invoked by the links of CUHtml items. The CUHtmlImage is not an action item * and can invoke ONLY the getPage() method. So, we need use two methods such as getTransaction * and commitTransaction() in the deleteBusinessObject method. This may be changed by using an * action item other than the current implementation of CUHtmlImage.</p> * * @return the getPage method comment. */ /** @see edu.columbia.rascal.presentation.appendix.servlets.AppendixAbstractServlet#getPage() */ @Override public CURascalHtmlView getPage() { WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } return null; } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override public String getRedirectUrl() { return AppendixChemicalServlet.class.getName(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsAssignPRQueueController.java | 179 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsCommitteeReviewController.java | 150 |
.findTasksByGroup(AppendixHProcessService.GROUP_ASSIGN_PR); final List<AppendixH> appendicies = new ArrayList<AppendixH>( tasks.size()); // Tack on the task ID to the appendix object. This way we have the full // appendix info with the // task ID for later. for (final Task task : tasks) { final AppendixH appendix = this.appendixHService .findByProcessInstanceId(task.getProcessInstanceId()); appendix.setTaskId(task.getId()); appendicies.add(appendix); dataMap = new HashMap<String, Object>(); dataMap.put(ID, appendix.getId()); dataMap.put(TASK_ID, task.getId()); dataMap.put(NUMBER, "APH-" + appendix.getAppendixNumber()); dataMap.put(NAME, appendix.getTitle()); dataMap.put(TYPE, appendix.getApplicationType()); dataMap.put(STATUS, appendix.getStatus()); dataMap.put(LAST_MODIFIED, appendix.getLastModifiedDate()); dataMap.put(TASK_CREATED, task.getCreateTime()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbApprovalEntryView.java | 85 |
edu/columbia/rascal/presentation/irb/pages/IrbCommitteeMemberEntryView.java | 175 |
edu/columbia/rascal/presentation/irb/pages/IrbDepartmentApprovalEntryView.java | 61 |
aForm.add(getHiddenWidgetFor("hiddenOid", anOid)); aTable.getCell(0, 0).setWidth("40%"); aForm.add(aTable); aForm.add(performMethod("getActionButtons", null)); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // Uni aWidget = getEditWidgetFor("rascalUni", "", "15", "15"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI")); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element // Participant type aWidget = getApprovalRoleWidget(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1185 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1783 |
RascalUser user = ServiceLocator.getRascalUserService().findById(staff.getRid()); leadPerson = user.getUserFirstLastNameUni(); } // M s.append( // (((CUHtmlItem)getWidgetFor(getProtocolHeader().getLeadPersonName())).getHtml())); // IrbStaff staff = // ServiceLocator.getIrbStaffService().findPrincipalInvestigatorForIbrProtocolHeader(getProtocolHeader()); // String leadPerson = staff.getNameFirst() + " " + staff.getNameLast(); s.append((((CUHtmlItem) getWidgetFor(leadPerson)).getHtml())); s.append("</td> <td> "); // initiator s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Initiator</font></div>"); s.append("</td> <td>"); // s.append( // (((CUHtmlItem)getWidgetFor(getProtocolHeader().getCreatedByName())).getHtml())); RascalUser ru = ServiceLocator.getRascalUserService().findById(getProtocolHeader() .getCreatedBy() ); s.append((((CUHtmlItem) getWidgetFor(ru.getUserFirstLastNameUni())).getHtml())); s.append("</td> </tr> <tr> <td> "); // you are... s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">You are</font></div>"); s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); s.append((((CUHtmlItem) getWidgetFor(getRascalUser().getUserFirstLastNameUni())) .getHtml()) ); s.append("</font></td> <td> "); // year & mod s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Year</font></div>"); String modification = getProtocolHeader().getModificationNumber() + ""; if (getProtocolHeader().getModificationNumber() < 10) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 417 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 526 |
} /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } String number = aString.substring(4, 12); return getLinkForProtocolOverview(aString, number); } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 239 |
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 353 |
cal.setTime(getCourseHeader().getModificationDate()); s.append(CalendarTransformer.toDateTimeString(cal)); s.append("</font></td></tr>"); /*3*/ // created by s.append("<tr> <td align=\"right\"><font face=\"Verdana\" size=\"1\">Created By</font>"); s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); s.append(initiatorString); s.append("</font></td>"); // user s.append("<td align=\"right\"><font face=\"Verdana\" size=\"1\">You are</font></td>"); s.append("<td align=\"left\"><font face=\"Verdana\" size=\"1\">"); s.append(getRascalUser().getNameFirst()).append(" ").append(getRascalUser().getNameLast()).append(" (").append(getRascalUser().getUserId()).append(") </font></td> "); s.append("</font></td>"); /*4*/ // number of participants s.append( "<tr><td align=\"right\"><font face=\"Verdana\" size=\"1\">Total # Passing</font></td>" ); s.append("<td align=\"left\"><font face=\"Verdana\" size=\"1\">"); s.append(passingNo); s.append(" </font></td> "); // average score s.append( "<td align=\"right\"><font face=\"Verdana\" size=\"1\">Composite Avg Passing Score</font></td>" ); s.append("<td align=\"left\"><font face=\"Verdana\" size=\"1\">"); s.append(averageScore); s.append(" </font></td></tr>"); s.append("</p></table>"); return s.toString(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinuteHistoryDateRangeView.java | 54 |
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchDateRangeView.java | 60 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 56 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 57 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 58 |
add(getSubTitle()); addFields(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); getAForm().add(getHiddenWidgetFor("dateValid", "true")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 101 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 272 |
if (protocolAttached.size() > 0) { addProtocolAttached(ah.getId(), "New Protocols", protocolAttached, IrbNameConstants.PROTOCOL_HEADER); } if (NRprotocolAttached.size() > 0) { addNRAttached("New Protocols", NRprotocolAttached, IrbNameConstants.PROTOCOL_HEADER); } // add attached modification if (modificationAttached.size() > 0) { addProtocolAttached(ah.getId(), "Modifications", modificationAttached, IrbNameConstants.MODIFICATION ); } if (NRmodificationAttached.size() > 0) { addNRAttached("Modifications", NRmodificationAttached, IrbNameConstants.MODIFICATION); } // add attached renewal if (renewalAttached.size() > 0) { addProtocolAttached(ah.getId(), "Renewals", renewalAttached, IrbNameConstants.RENEWAL); } if (NRrenewalAttached.size() > 0) { addNRAttached("Renewals", NRrenewalAttached, IrbNameConstants.RENEWAL); } // add attached adverseEvent if (adverseEventAttached.size() > 0) { addProtocolAttached(ah.getId(), "Adverse Event", adverseEventAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaResultsDisplayView.java | 210 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaSearchYearlyView.java | 163 |
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchYearlyView.java | 163 |
if (type.equals("Agenda")) row.addElement(getDataSheetLinkWidgetFor( ((String) currentRow.elementAt(1)).trim(), (String) currentRow.elementAt(0) ) ); // agendaId else row.addElement(getLinkWidgetFor(((String) currentRow.elementAt(1)).trim(), "IrbAgendaRetrieveServlet?anOid=" + currentRow.elementAt(0) ) ); // agendaId } row.addElement(getShortAgendaLinkWidgetFor( ((String) currentRow.elementAt(1)).trim(), (String) currentRow.elementAt(0) ) ); // agendaId row.addElement(getWidgetFor( ServiceLocator.getIrbCommitteeService().findById( Long.valueOf((String) currentRow.elementAt(2)) ).getCommitteeName() ) ); row.addElement(getWidgetFor((String) currentRow.elementAt(3))); Object dateObj = currentRow.elementAt(4); if (dateObj instanceof java.util.Date) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDatabaseStoreUtilityServlet.java | 309 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalUtilityServlet.java | 154 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesDataSheetServlet.java | 177 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaNewServlet.java | 182 |
Vector pendingAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNRMinutesEventsFor(ah.getId(), PENDING ); Vector otherTopicAttached = IrbAgendaProtocolQuery.getMinutesEventsFor(ah.getId(), "Other"); return new IrbAgendaMinutesDataSheetPDFView(ah, getUser(), protocolAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsApproveQueueController.java | 165 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsAssignPRQueueController.java | 180 |
final List<AppendixH> appendicies = new ArrayList<AppendixH>( tasks.size()); // Tack on the task ID to the appendix object. This way we have the full // appendix info with the // task ID for later. for (final Task task : tasks) { final AppendixH appendix = this.appendixHService .findByProcessInstanceId(task.getProcessInstanceId()); appendix.setTaskId(task.getId()); appendicies.add(appendix); dataMap = new HashMap<String, Object>(); dataMap.put(ID, appendix.getId()); dataMap.put(TASK_ID, task.getId()); dataMap.put(NUMBER, "APH-" + appendix.getAppendixNumber()); dataMap.put(NAME, appendix.getTitle()); dataMap.put(TYPE, appendix.getApplicationType()); dataMap.put(STATUS, appendix.getStatus()); dataMap.put(LAST_MODIFIED, appendix.getLastModifiedDate()); dataMap.put(TASK_CREATED, task.getCreateTime()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2591 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1430 |
return text; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getYearWidget(java.lang.String, int) */ @Override public Object getYearWidget(String fieldName, int year) { int startYear = year - 10; String selectedYear = ""; if (year == 0) { Calendar now = Calendar.getInstance(); now.add(Calendar.YEAR, -10); startYear = now.get(Calendar.YEAR); } EVector list = new EVector(); list.addElement(""); for (int i = 0; i < 21; i++) { list.addElement(String.valueOf(startYear + i)); } if (year > 0) { selectedYear = String.valueOf(year); } getLabel(fieldName); return getSingleSelectWidgetFor(list, selectedYear); } /** * Checks if the string data is null or empty. * * @param str a string data * * @return checks if the string data is null or empty. */ @Override public boolean isEmpty(String str) { return ((str == null) || str.trim().equals("")); } /** Iterate through the collection of object and fires the relevant 'add' method. */ public final void render() { Vector v = (Vector) elements().clone(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/servlets/RuOccupationalHealthProgramEntryServlet.java | 134 |
edu/columbia/rascal/presentation/user/servlets/RuRadiationSafetyBadgeEntryServlet.java | 107 |
ServiceLocator.getRuOccHealthProgEnrollmentService().save(cert); } break; } } } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#submit() */ @Override public void submit() { saveData(); redirectToOpener(); } /** @see edu.columbia.rascal.presentation.user.servlets.RuAbstractCertificationServlet#setRuHtmlView() */ @Override protected void setRuHtmlView() { Long oid = null; if (CURascalGuardian.hasRuOccupationalHealth()) { String rascalUni = getRequestParameter(KEY_RASCAL_UNI); String oidStr = getRequestParameter(KEY_OID); try { if (oidStr != null) oid = Long.parseLong(oidStr); } catch (Exception e) { } if ((rascalUni != null) && !rascalUni.trim().equals("")) { Integer entryMode = null; try { entryMode = Integer.parseInt(getLineParameter(KEY_ENTRY_MODE)); } catch (Exception e) { } if (entryMode != null) { int primitive = entryMode; try { switch (primitive) { case ADD_CERT: RascalUser u = ServiceLocator.getRascalUserService().findByUserId( rascalUni ); ruHtmlView = new RuOccupationalHealthProgramEntryView(getUser(), u); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 362 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalServlet.java | 242 |
ServiceLocator.getIrbCorrespondenceService().save(correspondence); // Correspondence Text StringBuilder corrText = new StringBuilder(""); String status = (ae.getIrbMeetingAttributes()).getRecommendedStatus(); if (status.equals(PENDING)) corrText.append(PENDING_TEXT); else if (status.equals("Approve")) corrText.append(APPROVED_TEXT); else if (status.equals(RETURN)) corrText.append(RETURNED_TO_PI_TEXT); else if (status.equals(DEFER)) corrText.append(DEFERRED_TEXT); else if (status.equals(DENY)) corrText.append(DENIED_TEXT); corrText.append("MEETING FOLLOW-UP: ").append(ae.getIrbMeetingAttributes().getFollowUp()) .append("\n \n"); if (status.equals(RETURN)) corrText.append(' ').append(STANDARD_PAPER_FOOTER_TEXT); else corrText.append(' ').append(STANDARD_FOOTER_TEXT); correspondence.setCorrespondenceText(corrText.toString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 684 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalServlet.java | 374 |
} /** * TODO: DOCUMENT ME! * * @param event TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public IrbTraceableBusinessObject getIrbTraceableBusinessObjectFor(IrbAgendaEvent event) { IrbTraceableBusinessObject eventObject = null; String eventName = event.getEventType(); long eventOid = event.getEventOid(); if (isProtocol(eventName)) { eventObject = ServiceLocator.getIrbProtocolHeaderService().getProtocolHeaderByOid(Long .toString(eventOid), getUser() ); } else if (eventName.equals(IrbNameConstants.ADVERSE_EVENT)) { eventObject = ServiceLocator.getIrbAdverseEventService().getAdverseEventByOid(Long .toString(eventOid), getUser() ); } else if (eventName.equals(IrbNameConstants.CLOSURE)) { eventObject = ServiceLocator.getIrbClosureService().getClosureByOid(Long .toString(eventOid), getUser() ); } else if (eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { eventObject = ServiceLocator.getIrbUnanticipatedProblemService() .getUnanticipatedProblemByOid(Long.toString(eventOid), getUser()); } return eventObject; } /** * TODO: DOCUMENT ME! * * @param ah TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getMinutesPDFPage(IrbAgendaHeader ah) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportProtocolHazMatView.java | 195 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportHazMatView.java | 166 |
) ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } getForm().add(buildHazMatReportTable(dataTableVector)); } add(getForm()); } /** * TODO: DOCUMENT ME! * * @param aFromDate TODO: DOCUMENT ME! * @param aToDate TODO: DOCUMENT ME! * @param aLocation TODO: DOCUMENT ME! * @param anApplication TODO: DOCUMENT ME! */ public void addHeader(String aFromDate, String aToDate, String aLocation, String anApplication) { // revert date to what user typed Calendar cal = CalendarTransformer.toCalendar(aToDate); cal.add(cal.DAY_OF_YEAR, -1); aToDate = CalendarTransformer.toString(cal); if (aLocation.equals("Both")) { aLocation = "Health Scieces & Morningside"; } if (anApplication.equals("Both")) { anApplication = "Animal Care & IRB"; } getForm().add("<div align=\"center\">"); getForm().add( |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 818 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 1114 |
(queueItem.get(KEY_RADIO_ISO_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); aCell.setAlign("center"); colNum++; // appendix I /*aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_CONTROLLED_SUBSTANCES) != null) && (queueItem.get(KEY_CONTROLLED_SUBSTANCES)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); aCell.setAlign("center"); colNum++;*/ // Strong Radio Frequencies aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_RADIO_FREQ_REQ) != null) && (queueItem.get(KEY_RADIO_FREQ_REQ)).toString().equalsIgnoreCase( "y" )) ? "x" : ""; aCell.add(getTableCellData(required, "center")); aCell.setAlign("center"); colNum++; // XRay aCell = aTable.getCell(rowCount, colNum); required = ((queueItem.get(KEY_XRAY_REQ) != null) && (queueItem.get(KEY_XRAY_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required, "center")); aCell.setAlign("center"); colNum++; } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! */ public void setIrbQueueTableHead(CUHtmlTable aTable) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1001 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1274 |
Vector elements = new Vector(); CUHtmlText aTextLabel = new CUHtmlText("Sort List By:"); aTextLabel.setFontSize("1"); aTextLabel.setFontName(getDefaultFontName()); elements.addElement(aTextLabel); Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList" + queueName, sortSelection ); elements.addElement(aListWidget); String onClick; if (queueName.equals("A") || queueName.equals("C")) onClick = "Javascript:getSortByValue1('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; else onClick = "Javascript:getSortByValue3('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; elements.addElement(new CUHtmlPushButton("BUTTON", "BUTTON", "Sort", onClick)); aHeaderTable.addRowFor(elements); aHeaderTable.getCell(0, 0).setWidth("15%"); aHeaderTable.getCell(0, 1).setWidth("30%"); aHeaderTable.getCell(0, 2).setWidth("10%"); return aHeaderTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getSubTitle() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiClearedDisclosureReportController.java | 216 |
edu/columbia/rascal/presentation/controller/coi/CoiNonAnomalousDisclosureReportController.java | 197 |
dataMap.put("clearanceDates", clearanceDates); dataMap.put("hasanomalies", disclosure.getHasAnomaly()); dataMap.put("id", disclosure.getId()); data.add(dataMap); } Collections.sort(data, new Comparator<Map<String, Object>>() { private final DateTimeComparator _comparator = DateTimeComparator.getInstance(); @Override public int compare(Map<String, Object> o1, Map<String, Object> o2) { DateTime d1 = (DateTime) o1.get("submitteddate"); DateTime d2 = (DateTime) o2.get("submitteddate"); if (d1 == null || d2 == null) { if (d1 == null && d2 != null) return 1; if (d2 == null && d1 != null) return -1; return 0; } return _comparator.compare(d2, d1); } }); model.addAttribute("reportData", data); return "coi/report/clearedDisclosures"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbDocSearchQueryFormat.java | 107 |
edu/columbia/rascal/presentation/irb/jdbc/IrbDocSearchQueryFormat.java | 314 |
if (isNotEmpty(rascalUserUni)) whereRascalUser = buildWhereClauseForSelection(rascalUserUni, "ru.user_id"); else whereRascalUser = buildWhereClauseForSelection(rascalUser, "ru.name_last"); whereParticipantNameLast = " AND t2.oid IN (SELECT DISTINCT staff.irbProtocolHeaderId FROM IrbStaff staff, RASCAL_USER ru WHERE staff.rid = ru.rid" + whereRascalUser + ")"; } CURascalBasicSearchParameter originatingDepartment = params.getOriginatingDepartment(); if (isNotEmpty(originatingDepartment)) { whereOriginatingOffice = buildWhereClauseForSelection(originatingDepartment,"t2.originatingDepartment"); } CURascalBasicSearchParameter originatingDepartmentName = params.getOriginatingDepartmentName(); if (isNotEmpty(originatingDepartmentName)) { fromDEPARTMENT = ", RascalDepartment t6"; whereHEADERxDEPT = " AND t2.originatingDepartment = t6.code"; whereOriginatingOfficeName = buildWhereClauseForSelection(originatingDepartmentName,"t6.name"); } CURascalBasicSearchParameter drugDeviceBiologic = params.getDrugDeviceBiologic(); if (isNotEmpty(drugDeviceBiologic)) { fromINVESTIGATIONALPRODUCT = ", IrbInvestigationalProduct tIp"; whereDrugDeviceBiologic = buildWhereClauseForSelection(drugDeviceBiologic, "tIp.name"); whereHEADERxPRODUCT = " AND tIp.irbProtocolHeaderId = t2.oid"; } CURascalBasicSearchParameter humanSpecimen = params.getHumanSpecimen(); if (isNotEmpty(humanSpecimen)) { fromHUMANSPECIMEN = " , IrbHumanSpecimen t7"; whereHumanSpecimen = buildWhereClauseForSelection(humanSpecimen, "t7.description"); whereHEADERxHUMANSPECIMEN = " AND t7.irbProtocolHeaderId = t2.oid"; } CURascalBasicSearchParameter title = params.getTitle(); if (isNotEmpty(title)) { whereTitle = buildWhereClauseForSelection(title, "t2.title"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterView.java | 131 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 114 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 118 |
getUrlToViewForDownload("A", getServletName(), "PtReportCancerCenter") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!getPrintable()) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton( "BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + PtReportAdministrativeMenuServlet.class.getName() + "';" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @param v TODO: DOCUMENT ME! * @param t TODO: DOCUMENT ME! */ public void addColumnHeaderFor(Vector v, CUHtmlTable t) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixOwnerAbstractSummaryView.java | 178 |
edu/columbia/rascal/presentation/lab/pages/HzHistoryView.java | 263 |
} /** * This method was created in VisualAge. * * @return int */ public int getColumnSizeForHazardTable() { return 4; } /** * This method was created in VisualAge. * * @return int */ public int getColumnSizeForStatusTable() { return 4; } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTracker TODO: DOCUMENT ME! * * @return this method was created in VisualAge. */ public Vector getFormattedApprovals(AppendixTracking aTracker) { Vector all = new Vector(); if (aTracker == null) { return all; } StringBuilder entry = new StringBuilder(80); Iterator it = aTracker.getAppendixApprovals().iterator(); while (it.hasNext()) { entry.setLength(0); AppendixApproval anApproval = (AppendixApproval) it.next(); entry.append((String) AbstractAppendix.getAppendixApproverTypes().get( anApproval.getApprovalRole() ) ); entry.append(" - "); String approvalAction; if (anApproval.getApprovalType() != null) { approvalAction = (anApproval.getApprovalType().trim().length() > 0) ? getAppendixStatusDisplayValue(anApproval.getApprovalType()) : NO_ACTION; entry.append(approvalAction); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 2044 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 2414 |
Set<RuSimpleTrainingEnrollment> hzentroll = user.getRuSimpleTrainingEnrollments(); Iterator bbpo = hzentroll.iterator(); while (bbpo.hasNext()) { RuSimpleTrainingEnrollment enroll = (RuSimpleTrainingEnrollment) bbpo.next(); if ((enroll != null) && enroll.getTrainingProgram().equalsIgnoreCase("BBPO") && (enroll.getEnrollmentDate() != null) ) { ownerStaff.setBppoEnrollmentDate(CalendarTransformer.formatMMDDYYYY( enroll.getEnrollmentDate() ) ); } } ownerStaff.setLschoEnrollmentDate(""); Iterator lscho = hzentroll.iterator(); while (lscho.hasNext()) { RuSimpleTrainingEnrollment enroll = (RuSimpleTrainingEnrollment) lscho.next(); if ((enroll != null) && enroll.getTrainingProgram().equalsIgnoreCase("LSCHO") && (enroll.getEnrollmentDate() != null) ) { ownerStaff.setLschoEnrollmentDate(CalendarTransformer.formatMMDDYYYY( enroll.getEnrollmentDate() ) ); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 809 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 887 |
List<Map<String, Object>> anomalousDisclosuresByDepartment(@PathVariable(DEPT_CODE) String deptCode, @PathVariable(value = "startDate") String startDate, @PathVariable(value = "endDate") String endDate, @PathVariable(ENABLE_FILTER) Boolean enableFilter) throws ParseException { Set<String> deptCodes = getDeptCodes(deptCode); RascalUser tmpUser; Map<String, Object> dataMap; List<Map<String, Object>> data = new ArrayList<Map<String, Object>>(); if (StringUtils.isBlank(startDate) || StringUtils.isBlank(endDate)) { return data; } DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd, HH:mm:ss"); // Dates are parsed as the current time, so 9/23/2011 -> Fri Sep 23 current time EDT 2011 Date start = formatter.parse(startDate); Date end = formatter.parse(endDate.replace(" 00:00:00", " 23:59:59")); // Grab all submitted disclosures with anomalies for the given departments within the date range List<CoiDisclosure> disclosures = new ArrayList<CoiDisclosure>(); if ( enableFilter ) { disclosures = coiDisclosureService.findRequiredByDepartmentsAndTypeNotLikeAndStatusAndAnomalyBetweenDates(deptCodes,CoiConstants.IRB, CoiConstants.SUBMITTED, true, start, end); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaDocSearchQueryFormat.java | 264 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaDocSearchQueryFormat.java | 351 |
aBuffer.append(whereDefaultAccess.toString()); // query for accessible forms NOT owned by the user // next those that ARE attached to IRB protocols aBuffer.append(" UNION "); aBuffer.append("SELECT DISTINCT"); aBuffer.append(" ch.oid,"); aBuffer.append(" ch.hipaaNumber,"); aBuffer.append(" ch.createdOn,"); aBuffer.append(" ru1.name_last,"); aBuffer.append(" ch.title,"); aBuffer.append(" p.protocolNumber,"); aBuffer.append(" hForm.formType,"); aBuffer.append(" status.statusName"); aBuffer.append(" FROM HipaaHeader ch,"); aBuffer.append(" RASCAL_USER ru1,"); aBuffer.append(" HipaaHeaderForm hForm,"); aBuffer.append(" HipaaStatus status,"); aBuffer.append(" HipaaAccessControl cac,"); aBuffer.append(" IrbProtocol p"); aBuffer.append(fromAccessControl2); aBuffer.append(" WHERE ch.rid = ru1.rid"); aBuffer.append(" AND ch.oid = cac.hipaaHeader_Oid"); aBuffer.append(" AND hForm.oid = ch.hipaaForm_Oid"); aBuffer.append(" AND ch.oid = status.hipaaHeader_Oid"); aBuffer.append(" AND status.oid = ("); aBuffer.append("SELECT max(oid)"); aBuffer.append(" FROM HipaaStatus"); aBuffer.append(" WHERE ch.oid = hipaaHeader_Oid)"); // additional selection criteria when attached to IRB protocol aBuffer.append(" AND ch.irbProtocol_Oid = p.oid"); aBuffer.append(" AND p.oid != 0"); aBuffer.append(whereDefaultAccess.toString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbDocumentSearchJdbcAccessor.java | 129 |
edu/columbia/rascal/presentation/irb/jdbc/IrbDocumentSearchJdbcAccessor.java | 194 |
aRow.addElement(resList[3]); // hold place for PI String aRow.addElement(resList[4]); // title aRow.addElement(resList[5]); // unused aRow.addElement(resList[7]); // protocolHeaderId aRow.addElement(resList[8]); // initiator last name aRow.addElement(resList[6]); // edit aRow.addElement(resList[9].toString()); // protocolYear aRow.addElement(resList[10].toString()); // modificationNumber aRow.addElement(resList[11]); // last status date aRow.addElement(resList[12]); // last status name aRow.addElement(resList[13]); // expiration date if( resList.length >= 17) { // if the query is not from admin/chair search, it won't have the closure data aRow.addElement(resList[14]); // closure event aRow.addElement(resList[15]); // closure status aRow.addElement(resList[16]); // closure date } if (aRow.elementAt(4) == null) { @SuppressWarnings("deprecation") List<String> res = ServiceLocator.getCURascalJdbcAccessorService().executeNoParmPreparedQuery( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3264 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4062 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4445 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5365 |
aBuffer.append(") Order by e.statusDate "); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { // this row /* (1) protocol header oid * (2) protocolNumber (3) title (4) PI last name (5) statud date * (6) protocol oid (7) committee name (8) times in count (9) * originating department (10) exempt flag */ row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); // protocol number row.addElement(res.getString(3)); // protocol title row.addElement(res.getString(4)); // PI name last if (res.getDate(5) == null) // date submitted { row.addElement(""); } else { row.addElement(res.getDate(5)); } row.addElement(Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString()); // protocol parent row.addElement(res.getString(7)); // committee name |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1404 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1512 |
: getProtocolHeader().getIrbProtocol().getProtocolNumber()); s.append("</font></td> </tr> <tr> <td width=\"25%\"> "); // create date s.append( "<div align=\"right\"><font face=\"Verdana\" size=\"1\">Protocol Creation Date</font></div></td> <td width=\"25%\"> " ); s.append("<font face=\"Verdana\" size=\"1\"> "); s.append(CalendarTransformer.formatDateAndTime(getProtocolHeader().getCreationDate())); s.append("</font></td> <td width=\"25%\"> "); // department s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Department</font></div>"); s.append("</td> <td width=\"25%\"> <font face=\"Verdana\" size=\"1\"> "); s.append(department).append("</font></td> </tr> <tr> <td> "); // PI s.append( "<div align=\"right\"><font face=\"Verdana\" size=\"1\">Principal Investigator</font></div></td><td>" ); // M // s.append((((CUHtmlItem)getWidgetFor(getProtocolHeader().getLeadPersonName())).getHtml())); IrbStaff staff = getProtocolHeader().getLeadPerson(); String leadPerson = blank; if (staff != null) { RascalUser user = ServiceLocator.getRascalUserService().findById(staff.getRid()); leadPerson = user.getUserFirstLastNameUni(); } s.append((((CUHtmlItem) getWidgetFor(leadPerson)).getHtml())); s.append("</td> <td> "); // initiator s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Initiator</font></div>"); s.append("</td> <td>"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerForChairView.java | 197 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerView.java | 303 |
} /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param aLocation TODO: DOCUMENT ME! * @param euOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getEuLinkWidgetFor(String aString, String aLocation, String euOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } CUHtmlText text = new CUHtmlText(aString); text.setLink( "Javascript:onClick=parent.frames[2].location='edu.columbia.rascal.presentation.eu.servlets." + aLocation + "?euOid=" + euOid + "'" ); text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param results TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! * * @return this method was created in VisualAge. */ public CUHtmlTable getEventTable(Vector results, String eventName) { Vector columns = new Vector(12); CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); columns.addElement(getHeadingLabelFor("Overview")); columns.addElement(getHeadingLabelFor("")); columns.addElement(getHeadingLabelFor("Data Sheet  ")); columns.addElement(getHeadingLabelFor("Notes  ")); columns.addElement(getHeadingLabelFor("PI")); columns.addElement(getHeadingLabelFor("Status        ")); columns.addElement(getHeadingLabelFor("Reviewer")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerForChairView.java | 648 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerView.java | 832 |
} /** * RASCAL (halayn) @2002 Copyright Columbia University - RASCAL. All Rights Reserved. * * @param results TODO: DOCUMENT ME! * @param type TODO: DOCUMENT ME! */ void addQueueSection(Vector results, String type) { if (results.isEmpty()) { CUHtmlText title = getHeadingLabelFor(type + ": There are no " + type + " in your queue." ); title.setFontSize("2"); title.setFontName("Comic Sans MS"); getForm().add(title); } else { CUHtmlText txt = getHeadingLabelFor(getPrettyName(type) + ":"); txt.setFontSize("2"); txt.setIsBold(true); txt.setFontName("Comic Sans MS"); getForm().add(txt); if (type.equals(IrbNameConstants.PROTOCOL) || type.equals(IrbNameConstants.RENEWAL) || type.equals(IrbNameConstants.MODIFICATION)) { getForm().add(getProtocolTable(results, IrbNameConstants.PROTOCOL_HEADER)); } else { getForm().add(getEventTable(results, type)); } getForm().add("<BR>"); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStats2View.java | 156 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStatsView.java | 200 |
edu/columbia/rascal/presentation/irb/pages/IrbReportOverallCommStatsAfterLogInView.java | 193 |
}; Vector columns = new Vector(); int titleLen = titles.length; for (String title : titles) { columns.add(title); } return columns; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! */ public void getReportExplanationKeyWidget(CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); String keyName; String keyText; CUHtmlTableCell header; keyText = "Key:"; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyText, 2, false)); aCell.setAlign("center"); aCell.setVAlign("bottom"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aRow.add(aCell); aTable.add(aRow); aRow = new CUHtmlTableRow(); keyName = "1"; aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(keyName, -2, false)); aCell.setAlign("center"); aCell.setVAlign("top"); aRow.add(aCell); keyText = "The number events approved within specified date range."; |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 416 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 818 |
i = getWidgetRascalDistributionLookupButton("none", "reportDistribution1", "1"); columns.setElementAt(i, 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Report Distribution 1", "pt57.html")); aTable.getCell(row, 1).setWidth("10%"); aTable.getCell(row, 2).setWidth("15%"); row++; // report distribution2 var = ""; temp = ptBudget.getReportDistribution2(); if (temp != null) var = temp; aWidget = getEditWidgetFor("reportDistribution2", var, "6", "5"); columns.setElementAt(aWidget, 1); String name2 = "Report Distribution selection"; if (var.length() > 0) name2 = "Invalid Report Distribution"; if (reportDist2 != null) { String repName = reportDist2.getName(); if ((repName != null) && (repName.length() > 0)) name2 = repName; } columns.setElementAt(getWidgetFor(name2), 2); i = getWidgetRascalDistributionLookupButton("none", "reportDistribution2", "2"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingAdminView.java | 310 |
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramAdminView.java | 281 |
public void setTableDataRow(CUHtmlTable aTable, int rowCount, RuIcmexpSurgeryTraining dataRow) { String var = null; Date date = null; Calendar cal = Calendar.getInstance(); // UNI CUHtmlTableCell cell0 = aTable.getCell(rowCount, 0); var = dataRow.getRascalUser().getUserId(); if (var != null) cell0.add(var); else cell0.add("<br>"); cell0.setAlign("center"); // User Name CUHtmlTableCell cell1 = aTable.getCell(rowCount, 1); var = dataRow.getRascalUser().getUserFirstLastName(); if (var != null) cell1.add(var); else cell1.add("<br>"); cell1.setAlign("center"); // Species CUHtmlTableCell cell2 = aTable.getCell(rowCount, 2); var = dataRow.getSpecies(); if (var != null) cell2.add(var); else cell2.add("<br>"); cell2.setAlign("center"); // Training Type CUHtmlTableCell cell3 = aTable.getCell(rowCount, 3); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesNewView.java | 47 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaNewView.java | 53 |
setForm(new CUHtmlForm("EditAgendaHeader", IrbAgendaNewServlet.class.getName(), "POST")); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkTime.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("departmentOpenSearchWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("departmentSetFields.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); setAgendaHeader((IrbAgendaHeader) bo); setRascalUser(aUser); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 449 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceReturnOrApproveCreateServlet.java | 1438 |
if ((tcObjs != null) && (tcObjs.size() > 0)) { if(hazMatsRDNA && shouldTakeCourseForAppendixType(tcObjs, rDNAReqs)){ sentHazEmail(eMail, buffer.toString(),nameString); continue; } if(hazMatsViral && shouldTakeCourseForAppendixType(tcObjs, viralReqs)){ sentHazEmail(eMail, buffer.toString(),nameString); continue; } if(hazMatsFormXy && shouldTakeCourseForAppendixType(tcObjs, formXyReqs)){ sentHazEmail(eMail, buffer.toString(),nameString); continue; } if(hazMatsBBPO && shouldTakeCourseForAppendixType(tcObjs, bbpoReqs)){ sentHazEmail(eMail, buffer.toString(),nameString); continue; } if(hazMatsLSCHP && shouldTakeCourseForAppendixType(tcObjs, lschpReqs)){ sentHazEmail(eMail, buffer.toString(),nameString); } } } } catch (Exception e) { log.error(e); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiAttachmentsController.java | 167 |
edu/columbia/rascal/presentation/controller/coi/CoiJitAttachmentsController.java | 165 |
CoiAttachment attachment = coiAttachmentService.readByPrimaryKey(attachmentId); if (attachment != null) { String filename = attachment.getFileName(); InputStream content = attachment.getBlob().getBinaryStream(); response.setContentType(attachment.getContentType()); response.setHeader("Content-Disposition", "attachment; filename=\"" + filename + "\""); FileCopyUtils.copy(content, response.getOutputStream()); response.getOutputStream().flush(); response.getOutputStream().close(); return null; } return new ModelAndView("uploadFailure"); } /** * TODO: DOCUMENT ME! * * @param binder dataBinder TODO: DOCUMENT ME! */ @InitBinder("attachment") public void initBinder(WebDataBinder binder) { binder.setAllowedFields("id", "documentIdentifier", "dateCreated", "fileName", "file"); binder.setRequiredFields("documentIdentifier"); } /** * TODO: DOCUMENT ME! * * @param t TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ @ExceptionHandler(ResourceNotFoundException.class) public String notFoundException(Throwable t) { return "updateFailed"; } /** * TODO: DOCUMENT ME! * * @param disclosureId TODO: DOCUMENT ME! * @param coiAttachment TODO: DOCUMENT ME! * @param modelMap TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ @RequestMapping(value = "/new", method = RequestMethod.GET) public String showCoiAttachmentForm(@PathVariable("disclosureId") Long disclosureId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderModifyServlet.java | 76 |
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderNewServlet.java | 119 |
String primSite = getRequestParameter("primarySite"); if (primSite.equals("Health Sciences")) { primSite = "HS"; } else { primSite = "MS"; } String headerTitle = getRequestParameter("headerTitle").trim(); if (headerTitle.length() > 255) { headerTitle = headerTitle.substring(0, 255); } String origDeptCode = getRequestParameter("originatingDepartment"); String origDeptName = "Department not Defined"; RascalDepartment dept = ServiceLocator.getRascalDepartmentService().findById(origDeptCode); if (dept==null) { origDeptCode = ""; } if (dept!=null) { origDeptName = dept.getName(); } String origSubDeptCode = getRequestParameter("originatingSubDepartment"); String origSubSubDeptCode = getRequestParameter("originatingSubSubDepartment"); if (hah.getCreatedBy() == 0) { hah.setCreatedBy(getUser().getId()); } hah.setCreationDate(hah.getCreationDate()); // set the creation date to the default hah.setSubmitSite(primSite); hah.setTitle(headerTitle); |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 371 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 362 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 291 |
} /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#setForm(edu.columbia.rascal.presentation.tools.htmlGen.CUHtmlForm) */ @Override public void setForm(CUHtmlForm newValue) { this.form = newValue; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#setLineParameters(java.util.Hashtable) */ @Override public void setLineParameters(Hashtable params) { // Save parameters passed through URL in hidden fields of the form. // Names of all parameters are lowercase Enumeration e = params.keys(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * Sets the mainTitle of this page. If aMainTitle is a String, use the default mainTitle * settings. if aMainTitle is CUHtmlText, override the default mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * TODO: DOCUMENT ME! * * @param rowNo TODO: DOCUMENT ME! */ public void setMaxRows(int rowNo) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 105 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 111 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 246 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 115 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 88 |
getForm().add(addDateRange()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), "PtApprovalHistory") |
File | Line |
---|---|
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 78 |
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 249 |
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 426 |
edu/columbia/rascal/presentation/tools/htmlGen/CUHtmlMoveToSelectList.java | 601 |
StringBuffer cellBuffer = new StringBuffer(300); // set up cell 0: cellBuffer.append("<SELECT SIZE=\""); cellBuffer.append(listSize); cellBuffer.append("\" MULTIPLE NAME=\""); cellBuffer.append(availableName); cellBuffer.append("\">\n"); if (available.size() == 0) { // construct a "stretcher" record to // make the list box wide enough in // Netscape for (int x = 0; x < (maxLength * 2); x++) { spaceString += " "; } cellBuffer.append("<OPTION value=\""); cellBuffer.append(DUMMYKEY); cellBuffer.append("\">"); cellBuffer.append(spaceString); cellBuffer.append("</OPTION>\n"); } else { for (int i = 0; i < available.size(); i++) { String availableString = (String) available.elementAt(i); int index = availableString.indexOf(";"); String key = availableString.substring(0, index); String value = availableString.substring(index + 1); if (value.length() > maxLength) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 2435 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 2483 |
); while (res.next()) { aRow.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()) .toString() ); aRow.addElement(res.getString(2)); aRow.addElement(Integer.valueOf((new Float(res.getFloat(5))).intValue()) .toString() ); aRow.addElement(res.getString(4)); if (res.getDate(3) == null) // meeting date { aRow.addElement(""); } else { aRow.addElement(res.getDate(3)); } results.addElement(aRow.clone()); aRow = new Vector(5); } } catch (Exception e) { log.error(e); } return results; } /** * RASCAL (maggie) Insert the method's description here. Creation date: (9/25/2002 2:57:30 PM) * * @param aSql committeeId java.lang.String * * @return java.util.Vector */ public static Vector getSearchMinutes(String aSql) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 519 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 344 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 345 |
for (int i = 0; i < 3; i++) { t.getCell(i, 0).setWidth("25%"); t.getCell(i, 1).setWidth("25%"); t.getCell(i, 2).setWidth("25%"); t.getCell(i, 3).setWidth("25%"); t.getCell(i, 0).setAlign("right"); t.getCell(i, 1).setAlign("left"); t.getCell(i, 2).setAlign("right"); t.getCell(i, 3).setAlign("left"); } aForm.add(t); aForm.add("<br>"); // form.add(getRuler()); } /** * This method was created in VisualAge. * * @param tableTitle TODO: DOCUMENT ME! * @param ps TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addEvents(String tableTitle, Vector ps, String eventName) { aForm.add("<br>"); aForm.add(getTableViewTitle(tableTitle)); aForm.add(buildAttachEventRows(ps, eventName)); } /** * This method was created in VisualAge. * * @param tableTitle TODO: DOCUMENT ME! * @param ps TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addNREvents(String tableTitle, Vector ps, String eventName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1555 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 831 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 147 |
} /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * <p>This method was created in VisualAge.</p> * * @param aLabel TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); // t.setWidth("200"); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 0).setVAlign("center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormLayoutView.java | 305 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormLayoutView.java | 310 |
HipaaQuestionLookup formElement ) { long questionOid = formElement.getId(); long parentOid = formElement.getParentQuestionOid(); CUHtmlTableCell cell; Object aWidget; // Parent Question or Question with no parent if (parentOid == 0) { aWidget = getEditWidgetFor("sequenceNum" + rowCount, formElement.getSequenceNo() + "", "2", "2" ); ((CUHtmlEntryField) aWidget).setOnKeyPress("return restrictFieldToNumbers(event)"); } else { aWidget = "<img src=\"/images/blank.gif\" border=\"0\">"; } cell = aTable.getCell(rowCount, 0); cell.add(aWidget); cell.setAlign("center"); // Child Question if (parentOid > 0) { aWidget = getEditWidgetFor("sequenceNum" + rowCount, formElement.getSequenceNo() + "", "2", "2" ); ((CUHtmlEntryField) aWidget).setOnKeyPress("return restrictFieldToNumbers(event)"); } else { aWidget = "<img src=\"/images/blank.gif\" border=\"0\">"; } cell = aTable.getCell(rowCount, 1); cell.add(aWidget); cell.setAlign("center"); // Question Text String questionText = formElement.getQuestionText(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 141 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormSignatureLineEntryView.java | 163 |
questionEditable = aQuestion.getQuestionEditable(); } Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // text aWidget = getSignatureTypeWidget(aQuestion); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Signature Type ")); aTable.getCell(row, 1).setColumnsToSpan(2); row++; // other text String otherText = getTextListValue(text).equals("other") ? text : ""; aWidget = getEditWidgetFor("otherText", otherText, "60"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Other Unlisted Signature Type ")); aTable.getCell(row, 1).setColumnsToSpan(2); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 534 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2048 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2138 |
row.put("Reviewer", (res.getString(17) == null) ? "" : res.getString(17)); results.addElement(row); row = new Hashtable(); } // end while } else if (name.equals(IrbNameConstants.ADVERSE_EVENT) || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM) || name.equals(IrbNameConstants.CLOSURE) ) { while (res.next()) { row.put("EventName", res.getString(1)); row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolNumber", "IRB-" + res.getString(3)); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString() ); row.put("PI", res.getString(5)); row.put("Committee", res.getString(6)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 281 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 282 |
t.getCell(0, 4).setWidth("18%"); // t.getCell(0, 5).setWidth("10%"); // t.getCell(0, 6).setWidth("10%"); // t.getCell(0, 7).setWidth("10%"); // getForm().add(t); // Add the control to display the next or previous page CUHtmlTable pageControl = buildPageDisplayControl(curBeginPos, curPageSize, totalMatch, maxPageSize ); pageControl.addBreaks(2); getForm().add(pageControl); } add(getForm()); } /** * Builds the control to display the next or previous page. The page display control is built as * a table row that consists of the following six cells: 1st cell - the space in the left end * 2nd cell - the hobo button with the left arrow to display the previous page 3rd cell - the * text control to display the previous page 4th cell - the separator 5th cell - the text * control to display the next page 6th cell - the hobo button with the right arrow to display * the next page 7th cell - the space in the right end * * @param curBeginPos an integer that indicates the position of the first record of the * current page in the total matches * @param curPageSize an integer that indicates the number of records in the currunt page * @param totalMatch an intger that indicates the total number of matches in searching * @param maxPageSize an intger that indicates the maximum number of matches to be displayed * on the page * * @return CUHtmlTable a table that contains the page display control * * @author Hyung Park */ public CUHtmlTable buildPageDisplayControl(int curBeginPos, int curPageSize, int totalMatch, int maxPageSize ) { CUHtmlTable aTable = new CUHtmlTable(); java.util.Vector pageControlRow = new java.util.Vector(5); CUHtmlText prev; CUHtmlText next; // Add the space in the left end pageControlRow.addElement(""); if (curBeginPos > 0) { // Will be changed to add a hobo button with the left arrow String leftButton = ""; pageControlRow.addElement(leftButton); // Add the text control to display the previous page prev = new CUHtmlText("Previous " + maxPageSize + " matches"); prev.setLink(HzAttestationSearchPageServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 57 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 72 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 56 |
addItems(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** IrbSearchMenuView constructor comment. */ public void addItems() { setTitle("RASCAL Human Subjects Protocol Search"); CUHtmlText txtSpaces = new CUHtmlText(""); txtSpaces.addSpaces(10); getAForm().add(txtSpaces); CUHtmlText txt1 = new CUHtmlText( "To retrieve all protocols that you have access to, simply press" ); txt1.setFontName(getDefaultFontName()); txt1.setIsBold(true); txt1.setFontSize("2"); getAForm().add(txt1); CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", " Search "); getAForm().add(pb1); CUHtmlText txt2 = new CUHtmlText( "                OR to narrow down your results, include any of the fields below:" ); txt2.setFontName(getDefaultFontName()); txt2.setFontSize("-2"); txt2.addBreaks(2); getAForm().add(txt2); getAForm().add("<BR> <BR>"); getAForm().add(buildSearchFields()); getAForm().add(getButtons()); add(getAForm()); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable buildSearchFields() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCancerCenterCorrespondenceView.java | 146 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairCorrespondenceView.java | 191 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueNotifyCorrespondenceView.java | 142 |
); getAForm().add( "<TD WIDTH=\"15%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Notify Date</FONT></TD>" ); getAForm().add("</TR>"); int counter = 0; String rowColor; String lastEvent = ""; Vector info = null; String event = null; while (i-- > 0) { rowColor = getQueueHTMLRowColor(counter++); info = (Vector) v.elementAt(i); event = (String) info.elementAt(2); if (!event.equals(lastEvent)) { getAForm().add("<TR VALIGN=\"TOP\"><TD><HR WIDTH=\"100%\"></TD></TR>"); } setTableDataRow(info, rowColor); lastEvent = event; } getAForm().add("</TABLE></CENTER>"); } } /** * This method was created in VisualAge. * * @param v TODO: DOCUMENT ME! */ public void buildRowsAE(Vector v) { int i = v.size(); if (i > 0) { getAForm().add("<BR><CENTER>"); getAForm().add("<TABLE BORDER=\"0\" WIDTH=\"95%\" CELLPADDING=\"2\" CELLSPACING=\"0\">"); getAForm().add( "<TR><TD WIDTH=\"15%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Protocol</FONT></TD>" ); getAForm().add( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 102 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyView.java | 68 |
addHeader(results.getColumnNames()); addFields(results); // render(); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param results TODO: DOCUMENT ME! */ public void addFields(CUSortVector results) { // -------------------------------------------------------------------------------------------- // Master Table encloses all record tables CUHtmlTable mTable = getMasterTable(); mTable.setBorderWidth(0); mTable.setWidth("98%"); Vector row = new Vector(0); if (format.equalsIgnoreCase("download")) { row.add(createFlatTable(results)); } else { row.add(createNestedParentTable(results)); } mTable.addRowFor(row); setMasterTable(mTable); // -------------------------------------------------------------------------------------------- // Add all data to form object aForm.add("<div align=\"center\">"); getAForm().add(getMasterTable()); CUHtmlPushButton button = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Return", ""); if ((format != null) && format.equalsIgnoreCase("normal")) { aForm.add("<br><br>"); aForm.add(button); aForm.add("<hr>"); } aForm.add("</div>"); // -------------------------------------------------------------------------------------------- add(aForm); } /** * TODO: DOCUMENT ME! * * @param columns TODO: DOCUMENT ME! */ public void addHeader(Vector columns) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 73 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 77 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportProjectOfficerActivityView.java | 95 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportWithdrawnView.java | 87 |
getForm().add(addDate()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames(getKeywordListForColumns(), "A", getSortBy()) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), "PtReportLoggedIn") |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchDateRangeView.java | 62 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 57 |
render(); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); getAForm().add(getHiddenWidgetFor("dateValid", "true")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 381 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovedQueueView.java | 165 |
) ); colNum++; // P.I. aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData((String) queueItem.get(KEY_NAME_UNI))); colNum++; // Species aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData((String) queueItem.get(KEY_SPECIES))); colNum++; // Primary Site aCell = aTable.getCell(rowCount, colNum); aCell.add( getTableCellData( decodeAnimalCarePrimarySite((String) queueItem.get(KEY_PRIMARY_SITE)) ) ); colNum++; // Current Status aCell = aTable.getCell(rowCount, colNum); String param1 = (String) queueItem.get(KEY_CURRENT_STATUS); String convert1 = getAnimalCareStatusDisplayValue(param1.trim()); if (convert1 == null) convert1 = "Still Creating..."; aCell.add(getTableCellData(convert1)); colNum++; // Highest Pain Level aCell = aTable.getCell(rowCount, colNum); String level = "n/a"; if (((String) queueItem.get(KEY_PAIN_LEVEL4)).equalsIgnoreCase("y")) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixInvitroPreSubmitServlet.java | 183 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixInvitroSubmitServlet.java | 47 |
} /** * TODO: DOCUMENT ME! * * @param invitroHeaderOid TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getDestinationUrl(String invitroHeaderOid) { String destination; destination = AppendixInvitroSummaryServlet.class.getName() + "?" + KEY_PARM_INVITRO_HEADER_OID + "=" + invitroHeaderOid; return destination; } /** * TODO: DOCUMENT ME! * * @param invitroHeaderOid TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public StringBuffer getLocationString(String invitroHeaderOid) { StringBuffer location = new StringBuffer(50); location.append("parent.frames[1].location='"); if (CURascalGuardian.hasHmRecordMaintenance()) { location.append(AppendixLinkFrameServlet.class.getName()); } else { location.append(AppendixLinkFrameReadOnlyServlet.class.getName()); } location.append("';parent.frames[2].location='"); location.append(getDestinationUrl(invitroHeaderOid)); location.append('\''); return location; } /** @see edu.columbia.rascal.presentation.appendix.servlets.AppendixAbstractServlet#getPage() */ @Override public CURascalHtmlView getPage() { setIsEdit(true); HzAppendixHeader hah = null; String invitroHeaderOid = getRequestParameter(KEY_PARM_INVITRO_HEADER_OID); if (!isEmpty(invitroHeaderOid)) { hah = ServiceLocator.getHzAppendixHeaderService().findById(Long.valueOf(invitroHeaderOid ) ); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueAssignedToMeetingView.java | 213 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueLoggedInView.java | 277 |
aCell.add(getTableCellData("")); } colNum++; // 6 History aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageOpenNewWindow( "/images/blueball.gif", HipaaHistoryServlet.class.getName() + "?hipaaHeaderId=" + headerOid, "scrollbars=yes,resizable=yes,width=600,height=350", "View History", "ViewHistory" ); aCell.add(anImage); aCell.setAlign("center"); colNum++; // 7 View HIPAA Notes aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageOpenNewWindow( "/images/blueball.gif", HipaaNotesViewOnlyServlet.class.getName() + "?parentOid=" + headerOid + "&&parentName=HipaaHeader&&headerNumber=" + hipaaNumber, "scrollbars=yes,resizable=yes,width=800,height=600", "View Notes", "ViewNotes" ); aCell.add(anImage); aCell.setAlign("center"); colNum++; // 8 Add HIPAA Notes aCell = aTable.getCell(rowCount, colNum); anImage = getWidgetImageOpenNewWindow( "/images/blueball.gif", HipaaNotesServlet.class.getName() + "?parentOid=" + headerOid + "&&parentName=HipaaHeader&&headerNumber=" + hipaaNumber, "scrollbars=yes,resizable=yes,width=800,height=600", "Add Notes", "AddNotes" ); aCell.add(anImage); aCell.setAlign("center"); colNum++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaFormBlankLineEntryServlet.java | 124 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaFormQuestionEntryServlet.java | 173 |
question.setParentQuestionOid(parentQuestionOid); ServiceLocator.getHipaaQuestionLookupService().save(question); } } /** * This method was created in VisualAge. @2005 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void submit() { PrintWriter out = null; try { out = getResponse().getWriter(); } catch (IOException io) { } saveQuestionValues(); out.println("<html> <body"); out.println("onLoad = \"opener.location.href=opener.location.href; window.close();\">"); out.println("</body> </html>)"); out.close(); } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#validatePost() */ @Override protected boolean validatePost() { String questionOid = getRequestParameter("questionOid"); HipaaForm parentForm = getHipaaForm(); HipaaQuestionLookup question = null; long parentQuestionOid = 0; if (!isEmpty(getRequestParameter("parentQuestionOid"))) { parentQuestionOid = Long.parseLong(getRequestParameter("parentQuestionOid")); } if (parentForm.isGoodQuestionParent(parentQuestionOid)) { return super.validatePost(); } else { HipaaMessageView mv = new HipaaMessageView( "The parentQuestionOid must belong to this form and have no parent of its own." ); mv.draw(getResponse()); return false; } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 403 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2048 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2138 |
row.put("LastCorrespondenceToPIDate", aDate); results.addElement(row); row = new Hashtable(); } // end while } else if (name.equals(IrbNameConstants.ADVERSE_EVENT) || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM) || name.equals(IrbNameConstants.CLOSURE) ) { while (res.next()) { row.put("EventName", res.getString(1)); row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolNumber", "IRB-" + res.getString(3)); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString() ); row.put("PI", res.getString(5)); row.put("Committee", res.getString(6)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 4440 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 5350 |
aSql.append("' and f.approvalCode = 3"); // filter by committee if (!committeeId.equalsIgnoreCase("All Committees")) { aSql.append(" AND e.committeeId = "); aSql.append(committeeId); } // filter by year and mod number if (eventType.equals("New")) { aSql.append(" AND b.protocolYear = 1 AND b.modificationNumber = 0"); } else if (eventType.equals("Mod")) { aSql.append(" AND b.modificationNumber != 0"); } else if (eventType.equals("Renewal")) { aSql.append(" AND b.protocolYear > 1 AND b.modificationNumber = 0"); } // filter by reviewType when the event is a protocol if (objectName.equals(IrbNameConstants.PROTOCOL_HEADER)) { if (reviewType.equals("FullBoard")) { aSql.append(" AND b.exempt <> 'Y'"); aSql.append(" AND NOT EXISTS ("); aSql.append("SELECT *"); aSql.append(" FROM IrbExpeditableAnswer"); aSql.append(" WHERE b.oid = irbProtocolHeaderId)"); } else if (reviewType.equals("Exempt")) { aSql.append(" AND b.exempt = 'Y'"); } else if (reviewType.equals("Expedited")) { aSql.append(" AND b.oid = g.irbProtocolHeaderId"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 102 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportFieldSelectionView.java | 35 |
@Override public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(getActionButtons()); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement("<font face = \"" + getDefaultFontName() + "\" size = \"1\">*Hold down the Command key (MAC) or Control key (Windows) to select multiple fields.</font>" ); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); getForm().add(getHiddenWidgetFor("dateValid", "true")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 2483 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 2565 |
); while (res.next()) { aRow.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()) .toString() ); aRow.addElement(res.getString(2)); aRow.addElement(Integer.valueOf((new Float(res.getFloat(5))).intValue()) .toString() ); aRow.addElement(res.getString(4)); if (res.getDate(3) == null) // meeting date { aRow.addElement(""); } else { aRow.addElement(res.getDate(3)); } results.addElement(aRow.clone()); aRow = new Vector(5); } } catch (Exception e) { log.error(e); } return results; } /** * RASCAL (maggie) Insert the method's description here. Creation date: (9/25/2002 2:57:30 PM) * * @param aUser committeeId java.lang.String * @param dateRange TODO: DOCUMENT ME! * * @return java.util.Vector */ public static Vector getSearchMinutes(RascalUser aUser, String dateRange) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 115 |
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 105 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 126 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 112 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 244 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 124 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 111 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 102 |
aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + IrbAgendaMainMenuServlet.class.getName() + "'" |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 127 |
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 124 |
edu/columbia/rascal/presentation/irb/servlets/IrbAbstractServlet.java | 126 |
(new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.irb.servlets.IrbAbstractServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, // there is some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext( getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaNewServlet.java | 81 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaRetrieveServlet.java | 99 |
if (!CURascalGuardian.hasIrbRascal() && !CURascalGuardian.hasIrbAdmin() && !CURascalGuardian.hasIrbCommitteeChair()) { Vector protocolAttached = IrbAgendaProtocolQuery.getAttachedEventsFor(agenda.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector modificationAttached = IrbAgendaProtocolQuery.getAttachedEventsFor( agenda.getId(), IrbNameConstants.MODIFICATION ); Vector renewalAttached = IrbAgendaProtocolQuery.getAttachedEventsFor(agenda.getId(), IrbNameConstants.RENEWAL ); Vector adverseEventAttached = IrbAgendaProtocolQuery.getAttachedEventsFor( agenda.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector closureAttached = IrbAgendaProtocolQuery.getAttachedEventsFor(agenda .getId(), IrbNameConstants.CLOSURE ); Vector unanticipateAttached = IrbAgendaProtocolQuery.getAttachedEventsFor( agenda.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector expeditableAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector exemptAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector pendingAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), PENDING); Vector otherTopicAttached = agenda.getAllAgendaEventsByType("Other"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 101 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 141 |
getForm().setAction(aServlet); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_D)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbersOrDecimal.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 823 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2024 |
"Consent/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("right"); return i; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * @param aLabel TODO: DOCUMENT ME! * * @return this method creates and formats a CUHtmlText object for the string "aLabel" as a * standardized label for a table row. */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 899 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2101 |
txt.setFontName("Comic Sans MS"); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelLeftFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("20%"); t.getCell(0, 0).setAlign("left"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 169 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 209 |
getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. * * <p>@2000 Copyright Columbia University - RASCAL. All Rights Reserved.</p> * * @return java.lang.String */ public String getDefaultViewsPackageName() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaFormSignatureLineEntryServlet.java | 122 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaHeaderFormSignatureLineEntryServlet.java | 118 |
ServiceLocator.getHipaaQuestionLookupService().save(question); } } /** * This method was created in VisualAge. @2005 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void submit() { PrintWriter out = null; try { out = getResponse().getWriter(); } catch (IOException io) { } saveQuestionValues(); out.println("<html> <body"); out.println("onLoad = \"opener.location.href=opener.location.href; window.close();\">"); out.println("</body> </html>)"); out.close(); } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#validatePost() */ @Override protected boolean validatePost() { if (getRequestParameter("questionText").equals("~ Select Type ~")) { String msg = "You must select a Signature Type."; (new CURascalMessageView(msg, false)).draw(getResponse()); return false; } if (getRequestParameter("questionText").equals("other") && isEmpty(getRequestParameter("otherText")) ) { String msg = "You must specify the 'other' unlisted Signature Type."; (new CURascalMessageView(msg, false)).draw(getResponse()); return false; } return super.validatePost(); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/tools/IrbTreeViewJsBuilder.java | 231 |
edu/columbia/rascal/presentation/propTrak/tools/PtTreeViewJsBuilder.java | 132 |
String parentLevelFldrName = folderName; if (level > 1) { parentLevelFldrName.concat(String.valueOf(level - 1)); } if (!recipientCorrVect.isEmpty()) { String currentLevelFldrName = folderName + String.valueOf(level); jsBuffer.append(currentLevelFldrName); jsBuffer.append(" = "); jsBuffer.append("insFld("); jsBuffer.append(parentLevelFldrName); jsBuffer.append(", gFld(\""); jsBuffer.append(corrNodeLabel.toString()); jsBuffer.append("\", \""); jsBuffer.append(reviewLink); jsBuffer.append("\"))\n"); jsBuffer.append(currentLevelFldrName); jsBuffer.append(".iconSrc = ICONPATH + \""); jsBuffer.append(iconName); jsBuffer.append("\"\n"); jsBuffer.append(currentLevelFldrName); jsBuffer.append(".iconSrcClosed = ICONPATH + \""); jsBuffer.append(iconName); jsBuffer.append("\"\n"); buildTreeRecursively(recipientCorrVect, jsBuffer, currentLevelFldrName, level + 1, isStaff |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 134 |
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 240 |
s.append(modified); s.append("</font></td></tr>"); /*3*/ // created by s.append("<tr> <td align=\"right\"><font face=\"Verdana\" size=\"1\">Created By</font>"); s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); s.append(initiatorString); s.append("</font></td>"); // user s.append("<td align=\"right\"><font face=\"Verdana\" size=\"1\">You are</font></td>"); s.append("<td align=\"left\"><font face=\"Verdana\" size=\"1\">"); s.append(getRascalUser().getNameFirst()).append(" ").append(getRascalUser().getNameLast()).append(" (").append(getRascalUser().getUserId()).append(") </font></td> "); s.append("</font></td>"); /*4*/ // number of participants s.append( "<tr><td align=\"right\"><font face=\"Verdana\" size=\"1\">Total # Passing</font></td>" ); s.append("<td align=\"left\"><font face=\"Verdana\" size=\"1\">"); s.append(passingNo); s.append(" </font></td> "); // average score s.append( "<td align=\"right\"><font face=\"Verdana\" size=\"1\">Composite Avg Passing Score</font></td>" ); s.append("<td align=\"left\"><font face=\"Verdana\" size=\"1\">"); s.append(averageScore); s.append(" </font></td></tr>"); s.append("</p></table>"); return s.toString(); } /** * Insert the method's description here. Creation date: (10/9/2001 12:50:04 PM) * * @param values TODO: DOCUMENT ME! * * @return insert the method's description here. */ public String getTCReportGeneralHeaderHtml(Vector<Object> values) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 326 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceReturnOrApproveCreateServlet.java | 1323 |
protected void sendHazMatsTrainingEmails(IrbProtocolHeader iph, Vector<AppendixTracking> trackers ) { boolean hazMatsBBPO = false; boolean hazMatsLSCHP = false; boolean hazMatsRDNA = false; //appendixA required boolean hazMatsViral = false; //appendixB required boolean hazMatsFormXy = false; //appendixE required Vector<TccourseComplianceLookup> bbpoReqs = new Vector<TccourseComplianceLookup>( ServiceLocator.getTccourseComplianceLookupService().findByModuleAndType("IRB", "BBPO" ) ); Vector<TccourseComplianceLookup> lschpReqs = new Vector<TccourseComplianceLookup>( ServiceLocator.getTccourseComplianceLookupService().findByModuleAndType("IRB", "LSCHP" ) ); Vector<TccourseComplianceLookup> rDNAReqs = new Vector<TccourseComplianceLookup>( ServiceLocator.getTccourseComplianceLookupService().findByModuleAndType("IRB", "rDNA" ) ); Vector<TccourseComplianceLookup> viralReqs = new Vector<TccourseComplianceLookup>( ServiceLocator.getTccourseComplianceLookupService().findByModuleAndType("IRB", "Viral" ) ); Vector<TccourseComplianceLookup> formXyReqs = new Vector<TccourseComplianceLookup>( ServiceLocator.getTccourseComplianceLookupService().findByModuleAndType("IRB", "FormXy" ) ); String hazMatsStr = "A, B, C, or E"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 119 |
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderCreationServlet.java | 44 |
public static java.lang.String generateNewProtocolNumber(HzAppendixHeader hah) { String aProtocolNumber = null; int id = hah.getId().intValue(); int numberPart = id % 10000; String numberString = "000" + Long.toString(id); numberString = numberString.substring(numberString.length() - 4, numberString.length()); char charPart[] = new char[4]; int letterPart = id / 10000; charPart[3] = letters[letterPart % 26]; charPart[2] = letters[(letterPart / 26) % 26]; charPart[1] = letters[(letterPart / (26 * 26)) % 26]; charPart[0] = letters[(letterPart / (26 * 26 * 26)) % 26]; aProtocolNumber = (new String(charPart) + numberString); return aProtocolNumber; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAccessControlRemoveServlet.java | 65 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAuthorizedPersonRemoveServlet.java | 70 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixChemicalRemoveServlet.java | 98 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeRemoveServlet.java | 71 |
javax.transaction.TransactionRolledbackException { WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } return null; } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override public String getRedirectUrl() { return AppendixAccessControlServlet.class.getName(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixSearchParmsEntryServlet.java | 84 |
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 678 |
} /** * TODO: DOCUMENT ME! * * @param sqlStr TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String escapeSingleQuoteWithAnotherOne(String sqlStr) { String outSqlStr = ""; if (!isEmpty(sqlStr)) { if (sqlStr.contains("\'")) { StringBuilder outSqlStrBuf = new StringBuilder(); boolean beginWithSingleQuote = sqlStr.indexOf("\'") == 0; boolean endWithSingleQuote = sqlStr.charAt(sqlStr.length() - 1) == '\''; if (beginWithSingleQuote) { outSqlStrBuf.append("\'\'"); } StringTokenizer aTokenizer = new StringTokenizer(sqlStr, "\'"); while (aTokenizer.hasMoreTokens()) { outSqlStrBuf.append(aTokenizer.nextToken()); outSqlStrBuf.append("\'\'"); } if (endWithSingleQuote) { outSqlStr = outSqlStrBuf.toString(); } else { int length = outSqlStrBuf.length(); outSqlStr = outSqlStrBuf.substring(0, length - 2); } } else { outSqlStr = sqlStr; } } return outSqlStr; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 1206 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 465 |
Vector<Object> elements = new Vector<Object>(); CUHtmlText aTextLabel = new CUHtmlText("Sort List By:"); aTextLabel.setFontSize("1"); aTextLabel.setFontName(getDefaultFontName()); elements.addElement(aTextLabel); Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList" + queueName, sortSelection ); elements.addElement(aListWidget); StringBuilder onClick = new StringBuilder(); if (queueName.equals("A") || queueName.equals("C")) { onClick.append("Javascript:getSortByValue1('"); } else { onClick.append("Javascript:getSortByValue3('"); } onClick.append(getServletName()); onClick.append("','columnNamesList"); onClick.append(queueName); onClick.append("','"); onClick.append(queueName); onClick.append("')"); elements.addElement(new CUHtmlPushButton("BUTTON", "BUTTON", "Sort", onClick.toString() ) ); aHeaderTable.addRowFor(elements); aHeaderTable.getCell(0, 0).setAlign("right"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 169 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 197 |
getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. * * <p>@2000 Copyright Columbia University - RASCAL. All Rights Reserved.</p> * * @return java.lang.String */ public String getDefaultViewsPackageName() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueAssignedToMeetingView.java | 78 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueLoggedInView.java | 84 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueSubmittedView.java | 84 |
setSubTitle("HIPAA Authorizations and Waivers Assigned to A Meeting"); add(getSubTitle()); } /** * This method was created in VisualAge. * * @param queue AbstractCollection * * @return CUHtmlTable */ @Override public CUHtmlTable buildQueueView(AbstractCollection queue) { int rowCount = 0; Hashtable queueItem = null; CUHtmlTable aTable = getTable(getRowSizeForQueueView(queue), getColumnSizeForQueueView()); aTable.setBorderWidth(0); aTable.setCellPadding(2); aTable.setWidth("100%"); aTable.setAlign("left"); setQueueTableHead(aTable); rowCount++; CUHtmlTableRow aRow; Iterator listIt = queue.iterator(); while (listIt.hasNext()) { queueItem = (Hashtable) listIt.next(); if ((queueItem != null) && !queueItem.isEmpty()) { aRow = (CUHtmlTableRow) aTable.elements.elementAt(rowCount); aRow.setBgColor(getQueueGeneratedRowColor(rowCount + 1)); setQueueQueryViewTableDataRow(aTable, rowCount++, queueItem); } } return aTable; } /** * This method was created in VisualAge. * * @return int */ @Override public int getColumnSizeForQueueView() { return 7; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6330 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6938 |
bodyBuffer.append(')'); // for IRB Panel #n (or all panels) bodyBuffer.append(" AND Y.parentObjectOid = "); bodyBuffer.append("b.oid"); bodyBuffer.append(" AND b.parentProtocolOid = e.parentObjectOid"); bodyBuffer.append(" AND 'Protocol' = e.parentObjectName"); if (!committeeId.equalsIgnoreCase("All Committees")) { bodyBuffer.append(" AND e.committeeId = "); bodyBuffer.append(committeeId); } // take only original (or mod or renewal) protocols if (eventType.equals("New")) { bodyBuffer.append(" AND b.protocolYear = 1 AND b.modificationNumber = 0"); } else if (eventType.equals("Mod")) { bodyBuffer.append(" AND b.modificationNumber != 0"); } else if (eventType.equals("Renewal")) { bodyBuffer.append(" AND b.protocolYear > 1 AND b.modificationNumber = 0"); } // eliminate consecutive status recs with the same statusName // for the same protocol (caused by double clicking) bodyBuffer.append(" AND NOT EXISTS ("); bodyBuffer.append("SELECT *"); bodyBuffer.append(" FROM IrbStatus"); bodyBuffer.append(" WHERE Y.parentObjectOid = parentObjectOid"); bodyBuffer.append(" AND Y.statusName = statusName"); bodyBuffer.append(" AND oid = ("); bodyBuffer.append("SELECT min(oid)"); bodyBuffer.append(" FROM IrbStatus"); bodyBuffer.append(" WHERE Y.parentObjectOid = parentObjectOid"); bodyBuffer.append(" AND Y.oid < oid))"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 572 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 548 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 368 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 376 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 412 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 409 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 610 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 237 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptAndLocationServlet.java | 129 |
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptFilterByJobCodeServlet.java | 120 |
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptServlet.java | 132 |
Vector currentRow = new Vector(); String currentUser = null; for (int i = 0; i < userNumber; i++) { currentUser = (String) allUser.elementAt(i); if (counter < recordSize) currentRow = (Vector) results.elementAt(counter); allUser.addElement(currentRow.elementAt(0)); // add user // name tempRow.addElement(String.valueOf(currentRow.elementAt(1)) + ' ' + currentRow.elementAt(2) + '(' + currentRow.elementAt(0) + ')'); for (int j = 0; j < coursesize; j++) // build couses columns { if (counter < recordSize) currentRow = (Vector) results.elementAt(counter); else currentRow.setElementAt(null, 3); if ((counter < recordSize) && currentRow.elementAt(0).equals(currentUser) && currentRow.elementAt(3).equals(couses.elementAt(j)) |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1791 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1243 |
if ((data instanceof String) && !data.trim().equals("")) { aText = new CUHtmlText(data); aText.setFontSize("-2"); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); } else { aText = new CUHtmlText("<img src=\"/images/blank.gif\" border=\"0\">"); } return aText; } /** * This method was created in VisualAge. * * @param data String * @param align TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getTableCellData(String data, String align) { CUHtmlText aText = null; if ((data instanceof String) && !data.trim().equals("")) { aText = new CUHtmlText(data); aText.setFontSize("-2"); aText.setAlignment(align); aText.setFontName(getDefaultFontName()); } else { aText = new CUHtmlText("<img src=\"/images/blank.gif\" border=\"0\">"); } return aText; } /** * This method was created in VisualAge. * * @param title textStr String * * @return CUHtmlText */ public CUHtmlText getTableColumnName(String title) { CUHtmlText text = new CUHtmlText(title); text.setIsBold(false); text.setFontSize("-2"); text.setFontName(getDefaultFontName()); // text.setUnderLine(true); text.setAlignment("center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 885 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 1156 |
aTitle1 = getTableColumnName("Expiration Date", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // P.I. aTitle = getTableColumnName("Principal Investigator", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle); colNum++; // Submitting To aTitle1 = getTableColumnName("Submitting To", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); header.setAlign("left"); colNum++; // Current Status aTitle1 = getTableColumnName("Current Status", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Appendices aTitle = getTableColumnName("Appendices"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); header.setColumnsToSpan(6); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixCServlet.java | 186 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixEServlet.java | 169 |
(ac.getRid().intValue() == anAppendix.getCreatedBy().intValue()) ) { hasAccessForCreator = true; break; } } if (!hasAccessForCreator) { AppendixAccessControl newAc = new AppendixAccessControl(anAppendix.getId(), anAppendix.getAppendixType() ); ServiceLocator.getAppendixAccessControlService().save(newAc); newAc.setRid(anAppendix.getCreatedBy()); newAc.setEditView(ACCESS_EDIT); ServiceLocator.getAppendixAccessControlService().save(newAc); } } catch (Exception e) { log.error("Exception saving appendix.", e); } } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override protected String getRedirectUrl() { // if the check box for invitro is unchecked, show warning message // about deleting the invitro header if (!isInvitroChecked()) { String invitroAppendixTrackerOid = null; invitroAppendixTrackerOid = retreiveInvitroAppendixTrackingOidFor( getAppendix() ); if (!isEmpty(invitroAppendixTrackerOid)) { return AppendixMessageServlet.class.getName() + "?" + KEY_PARM_INVITRO_DELETE_REQUEST + "=true&&" + KEY_PARM_INVITRO_APPDX_TRACKER_OID + "=" + invitroAppendixTrackerOid + "&&" + KEY_PARM_INVITRO_APPDX_TYPE + "=" + getAppendix().getAppendixType(); } } return AppendixCServlet.class.getName(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixChemicalRemoveServlet.java | 98 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeRemoveServlet.java | 71 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixLocationRemoveServlet.java | 79 |
@Override public CURascalHtmlView getPage() { WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } return null; } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override public String getRedirectUrl() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 169 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 128 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 125 |
getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 80 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormSignatureLineEntryView.java | 80 |
setHipaaFormObject(form); add(getDefaultMainHeader()); addFields(); add(getDefaultMainFooter()); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; setSubTitle("Signature Line"); getForm().add(getSubTitle()); getForm().add("<br>"); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPadding(1); aTable.setCellSpacing(3); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); getForm().add(getHiddenWidgetFor("AddOrEdit", addOrEdit)); getForm().add(getHiddenWidgetFor("questionOid", String.valueOf(questionOid))); getForm().add(aTable); getForm().add("<br>"); getForm().add(getActionButtons()); add(getForm()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueApprovalView.java | 233 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueApprovalView.java | 331 |
public void setApprovalTableDataRow(CUHtmlTable aTable, Vector row, String rowColor) { CUHtmlTableRow aRow = new CUHtmlTableRow(); aRow.setBgColor(rowColor); // protocol link CUHtmlTableCell aCell = new CUHtmlTableCell(); aCell.add(getProtocolLinkWidgetFor((String) row.elementAt(1), (String) row.elementAt(0))); aCell.setAlign("left"); aRow.add(aCell); // event Name -- data sheet Link aCell = new CUHtmlTableCell(); String name = (String) row.elementAt(2); if (name.equals("ProtocolHeader")) name = "Protocol"; aCell.add(getObjectLinkWidgetFor(name, (String) row.elementAt(5), (String) row.elementAt(2), (String) row.elementAt(0) ) ); aCell.setAlign("left"); aRow.add(aCell); // Status History aCell = new CUHtmlTableCell(); aCell.add(getStatusHistoryLinkWidgetFor((String) row.elementAt(5), |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 96 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 117 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 86 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 88 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 96 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 115 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 102 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 93 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 101 |
aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 422 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 385 |
); getForm().add("</div>"); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getBeginDate() { return beginDate; } /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getEndDate() { return endDate; } /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } String number = aString.substring(4, 12); return getLinkForProtocolOverview(aString, number); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getShowTitle() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentExternalView.java | 186 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentInternalView.java | 186 |
boolean checkRascal = CURascalGuardian.hasIrbRascal(); int psSize = ps.size(); for (int i = 0; i < psSize; i++) { Vector info = (Vector) ps.elementAt(i); Object dateObj1 = info.elementAt(3); String aDate = ""; if (dateObj1 instanceof java.sql.Date) aDate = CalendarTransformer.toString((java.sql.Date) dateObj1); try { setAttachmentTableDataRow(aTable, (String) info.elementAt(0), (String) info.elementAt(1), (String) info.elementAt(2), aDate ); } catch (Exception e) { } } return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public Vector getColumns() { if (CURascalGuardian.hasIrbRascal()) { String titles[] = { "View Document", "File Name", "Date Attached", "Edit", "Archive/Delete", "Delete" |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/pages/RascalActivityTypeLookupMainView.java | 33 |
edu/columbia/rascal/presentation/lookup/pages/RascalAgencyLookupMainView.java | 33 |
setPageTitle("RASCAL - Activity Type Lookup"); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void addFields() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getInputServletString()); f1.setName("Input"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); /* Do Not Initialize the Output Frame's Source */ f2.setSrc(getOutputServletString()); f2.setName("Output"); f2.setNoResize("NO"); f2.setScrolling("YES"); f2.setMarginHeight("0"); f2.setMarginWidth("0"); v.addElement(f1); v.addElement(f2); frames.add(v); frames.setRows("40%,*"); frames.setColumns("*"); frames.setBorder("1"); frames.setFramespacing("0"); } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private String getInputServletString() { return "edu.columbia.rascal.presentation.lookup.servlets.RascalActivityTypeLookupInputServlet"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixSearchParmsEntryServlet.java | 94 |
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 691 |
edu/columbia/rascal/presentation/propTrak/jdbc/PtSearchQuery.java | 666 |
public String escapeSingleQuoteWithAnotherOne(String sqlStr) { String outSqlStr = ""; if (!isEmpty(sqlStr)) { if (sqlStr.contains("\'")) { StringBuilder outSqlStrBuf = new StringBuilder(); boolean beginWithSingleQuote = sqlStr.indexOf("\'") == 0; boolean endWithSingleQuote = sqlStr.charAt(sqlStr.length() - 1) == '\''; if (beginWithSingleQuote) { outSqlStrBuf.append("\'\'"); } StringTokenizer aTokenizer = new StringTokenizer(sqlStr, "\'"); while (aTokenizer.hasMoreTokens()) { outSqlStrBuf.append(aTokenizer.nextToken()); outSqlStrBuf.append("\'\'"); } if (endWithSingleQuote) { outSqlStr = outSqlStrBuf.toString(); } else { int length = outSqlStrBuf.length(); outSqlStr = outSqlStrBuf.substring(0, length - 2); } } else { outSqlStr = sqlStr; } } return outSqlStr; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbClosureSubjectsSubStudyController.java | 146 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolSubjectsSubStudyController.java | 146 |
if (subjects == null) subjects = new IrbProtocolSubjects(closure); List<Map<String, Object>> jsonDataList = new ArrayList<Map<String,Object>>(); Map<Long, String> enrollmentStatusMap = rascalDropdownService.getAsMap("irbSubSubStudyEnrollmentStatuses"); for(IrbSubjSubStudy irbSubjSubStudy: subjects.getIrbSubjSubStudys()) { Map<String, Object> map = new HashMap<String, Object>(); map.put("id", irbSubjSubStudy.getId()); map.put("nameProcedure", irbSubjSubStudy.getNameProcedure()); map.put("enrollment", irbSubjSubStudy.getEnrollment()); map.put("enrollmentStatus", enrollmentStatusMap.get(irbSubjSubStudy.getEnrollmentStatus())); map.put("enrolledToDate", irbSubjSubStudy.getEnrolledToDate()); map.put("studyStatusAdditionalInfo", ControllerUtils.convertToHTML(irbSubjSubStudy.getStudyStatusAdditionalInfo())); jsonDataList.add(map); } return jsonDataList; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportApprovalStatusDateRangeServlet.java | 68 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportEventStatusDateRangeServlet.java | 68 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportExpirationDateRangeServlet.java | 66 |
} else if (range.startsWith("Month")) { startDay.add(Calendar.MONTH, -1); } else if (range.startsWith("Week")) { startDay.add(Calendar.DATE, -7); } else if (range.startsWith("Day")) { startDay.add(Calendar.DATE, -1); } startDay.setLenient(true); // fix for problem with 12/31/2000 (hh 7/10) String beginDate = CalendarTransformer.toString(startDay); Calendar oneMoreDay = CalendarTransformer.toCalendar(endDate); oneMoreDay.add(Calendar.DATE, 1); // add one more day to handle sybase date String endingDate = CalendarTransformer.toString(oneMoreDay); getSession().setAttribute("beginDate", beginDate); getSession().setAttribute("endDate", endingDate); } if (getRequestParameter("committeeList") != null) { String selectedCommittee = getRequestParameter("committeeList"); getSession().setAttribute("selectedCommittee", selectedCommittee); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMeetingAttendantView.java | 345 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaOtherTopicView.java | 166 |
} return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public Vector getColumns() { String titles[] = { "Topic", "Modify", "Delete" }; Vector columns = new Vector(); for (String title : titles) { columns.add(getHeadingLabelFor(title)); } return columns; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelCenterFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("center"); return txt; } /** * This method was created in VisualAge. * * @param aTitle String * * @return CUHtmlText */ @Override public CUHtmlText getTableViewTitle(String aTitle) { CUHtmlText aText = null; if (aTitle instanceof String) { aText = new CUHtmlText(aTitle); aText.setIsBold(true); // aText.setFontSize("+1"); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); } return aText; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setMeetingAttendantHead(CUHtmlTable aTable) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 318 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 395 |
row.setElementAt(name, 2); row.setElementAt(res.getString(6), 3); // title row.setElementAt(res.getString(5), 4); // PI row.setElementAt(String.valueOf(res.getLong(7)), 5); // event oid if (res.getString(8) == null) { row.setElementAt("", 6); } else { row.setElementAt(res.getString(8), 6); } row.setElementAt(String.valueOf(res.getLong(9)), 7); // correspondence oid row.setElementAt(String.valueOf(res.getLong(10)), 8); // recipient oid row.setElementAt(res.getString(11), 9); // correspondence Author row.setElementAt(res.getString(12), 10); // current statusName row.setElementAt(res.getString(13), 11); // committee name |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbPiEntryView.java | 252 |
edu/columbia/rascal/presentation/lab/pages/HzStaffEntryView.java | 259 |
getForm().add(getHiddenWidgetFor("rascalUni", uni)); } columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI (do not enter a name)")); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element // Participant type aWidget = getStaffRoleWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("What is this person's role")); row++; // edit/view columns.setElementAt("", 2); columns.setElementAt(getEditViewWidget(), 1); columns.setElementAt("", 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Edit/View")); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueConsultantView.java | 141 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueConsultantView.java | 303 |
columns.addElement(getHeadingLabelFor("Meeting Date")); columns.addElement(getHeadingLabelFor("Notes")); columns.addElement(getHeadingLabelFor("Reviewed")); aTable.addRowFor(columns); columns = new Vector(10); int resultSize = results.size(); for (int i = 0; i < resultSize; i++) { Vector currentRow = (Vector) results.elementAt(i); // overview String protNumber = (String) currentRow.elementAt(1); String protocolOid = IrbProtocol.decodeProtocolId( protNumber.substring(0, 8) ) + ""; columns.addElement(getProtocolLinkWidgetFor(protNumber, protocolOid)); // data sheet CUHtmlImage viewDataSheet = new CUHtmlImage("/images/popup.gif"); viewDataSheet.setBorderWidth(0); viewDataSheet.setAlt("Data Sheet"); viewDataSheet.setLink("''"); viewDataSheet.setOnClick(getServletLinkFor((String) currentRow.elementAt(1), (String) currentRow.elementAt(0), eventName, (String) currentRow.elementAt(4) |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueStipulatedApprovalView.java | 199 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueStipulatedApprovalView.java | 247 |
public void buildApprovalRows(Vector v) { int columns = getColumns("Approval").size(); CUHtmlTable aTable = getTable(1, columns); aTable.setBorderWidth(0); aTable.setWidth("95%"); aTable.setAlign("center"); String lastSectionName = ""; int size = v.size(); for (int i = 0; i < size; i++) { Hashtable info = (Hashtable) v.elementAt(i); String sectionName = (String) info.get("EventName"); if (!sectionName.equals(lastSectionName)) { if (i != 0) { aForm.add(aTable); aTable = getTable(1, columns); aTable.setBorderWidth(0); aTable.setWidth("95%"); aTable.setAlign("center"); } aForm.add(approvalLabel(getPrettyNamePlural(sectionName))); setDocumentHead(aTable, "Approval"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 597 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 502 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 635 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { Calendar oneLessDay = CalendarTransformer.toCalendar(newValue); oneLessDay.add(Calendar.DATE, -1); this.endDate = CalendarTransformer.toString(oneLessDay); } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setPrintable(boolean aValue) { printable = aValue; } /** * setSortBy. * * @param aValue TODO: DOCUMENT ME! */ public void setSortBy(String aValue) { sortBy = aValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatsView.java | 144 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeStatsView.java | 155 |
public void getReportWidget(Vector results, CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); String aTitle; CUHtmlTableCell header; String avgValue = null; Vector columns = getColumns(); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(aTitle, 2, false)); aCell.setAlign("right"); aRow.add(aCell); } aTable.add(aRow); int resultSize = results.size(); for (int i = 0; i < resultSize; i++) { aRow = new CUHtmlTableRow(); Vector currentRow = (Vector) results.elementAt(i); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor( |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtCoiReportView.java | 88 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 74 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 78 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportProjectOfficerActivityView.java | 96 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportWithdrawnView.java | 88 |
form.add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames(getKeywordListForColumns(), "A", getSortBy()) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), "PtReportCOI") |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 134 |
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 355 |
s.append(modified); s.append("</font></td></tr>"); /*3*/ // created by s.append("<tr> <td align=\"right\"><font face=\"Verdana\" size=\"1\">Created By</font>"); s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); s.append(initiatorString); s.append("</font></td>"); // user s.append("<td align=\"right\"><font face=\"Verdana\" size=\"1\">You are</font></td>"); s.append("<td align=\"left\"><font face=\"Verdana\" size=\"1\">"); s.append(getRascalUser().getNameFirst()).append(" ").append(getRascalUser().getNameLast()).append(" (").append(getRascalUser().getUserId()).append(") </font></td> "); s.append("</font></td>"); /*4*/ // number of participants s.append( "<tr><td align=\"right\"><font face=\"Verdana\" size=\"1\">Total # Passing</font></td>" ); s.append("<td align=\"left\"><font face=\"Verdana\" size=\"1\">"); s.append(passingNo); s.append(" </font></td> "); // average score s.append( "<td align=\"right\"><font face=\"Verdana\" size=\"1\">Composite Avg Passing Score</font></td>" ); s.append("<td align=\"left\"><font face=\"Verdana\" size=\"1\">"); s.append(averageScore); s.append(" </font></td></tr>"); s.append("</p></table>"); return s.toString(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 888 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1293 |
} } } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue edu.columbia.rascal.presentation.user.business.objects.RascalUser */ public void setRascalUser(RascalUser newValue) { this.rascalUser = newValue; } /** * This method was created in VisualAge. Sets the subtitle of this page. If aSubTitle is a * String, use the default subtitle settings. if aSubTitle is CUHtmlText, override the default * title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { // FIXME XSS // String result = req.getParameter(parName); String result = HtmlUtils.htmlEscape(req.getParameter(parName)); return (result.equals("")) ? null : result; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private EVector getDefaultMainFooter() { EVector result = new EVector(); result.add(getRuler()); // Add items under this line only String name = getClass().getName(); String main = "edu.columbia.rascal.presentation.administration.views.AdminMainMenuView"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 141 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 145 |
addIsotopeRows(); addGeneralFields(defaultValue); getForm().add("<br>"); if ((getOwnerSurrogate() != null) && !getOwnerSurrogate().getOwnerType().equals( PROPOSAL_TRACKING_OWNER ) && (getOwnerSurrogate().getStaffTable() != null) && !getOwnerSurrogate().getStaffTable().isEmpty() ) { addPersonnelDisplayList(); } getForm().add(new CUHtmlRuler()); getForm().add(utilGetDefaultHtmlText( "<h4><p>Acknowledgement</p></h4>" ) ); getForm().add(utilGetDefaultHtmlText(infoGetAcknowledgementString())); getForm().add("<br>"); if ((getOwnerSurrogate() != null) && !getOwnerSurrogate().getOwnerType().equals( PROPOSAL_TRACKING_OWNER ) ) { addSubmitDateString(); addApprovalFields(); } } catch (Exception e) { add("ERROR OCCURED"); log.error("Exception while adding fields to Appendix F report view.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 1719 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 2181 |
if ((protocolStaff.getRadiationBadgeNumber() == null) || (protocolStaff.getRadiationBadgeNumber().trim().length() == 0) ) { if (!user.getRuRadiationSafetyBadges().isEmpty()) { radBadge = "yes"; } } else { radBadge = "yes"; } ownerStaff.setStaffRadiationBadge(radBadge); if (aProtocol.getCurrentStatus().equals(KEY_ACTION_APPROVE) || aProtocol.getCurrentStatus().equals(KEY_ACTION_DONE) ) { ownerStaff.setStaffName(protocolStaff.getLastName() + ", " + protocolStaff.getFirstName() + " (" + protocolStaff.getUni() + ")" ); ownerStaff.setBppoEnrollmentDate(CalendarTransformer.formatMMDDYYYY( protocolStaff.getBppoEnrollmentDate() ) ); ownerStaff.setLschoEnrollmentDate(CalendarTransformer.formatMMDDYYYY( protocolStaff.getLschoEnrollmentDate() ) ); } else { ownerStaff.setStaffName(user.getUserLastFirstNameUni()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormLayoutView.java | 348 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormLayoutView.java | 351 |
cell = aTable.getCell(rowCount, 2); cell.add(getRowLabelLeftFor(questionText)); cell.setAlign("left"); // Question Oid String aFormOid = formElement.getId() + ""; getForm().add(getHiddenWidgetFor("hiddenOid" + rowCount, aFormOid)); } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setLayoutTableHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableCell header; String titles[] = { "Sequence", "Child Sequence", "Question Text (displaying 200 characters)" }; int len = titles.length; for (int i = 0; i < len; i++) { aTitle = new CUHtmlText(titles[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("center"); } } /* * Enable user to set the sequence of questions. * * Child questions are tied to their parents and their sequence is relevant only to the group of * children of the same parent. * */ /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param rowCount TODO: DOCUMENT ME! * @param formElement TODO: DOCUMENT ME! */ public void setSignatureTableDataRow(CUHtmlTable aTable, int rowCount, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbDepartmentApprovalEntryView.java | 81 |
edu/columbia/rascal/presentation/propTrak/pages/PtApprovalEntryView.java | 91 |
Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // Uni aWidget = getEditWidgetFor("rascalUni", "", "15", "15"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI")); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element // Participant type aWidget = getApprovalRoleWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("What is this person's role")); row++; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void addIrbProtocolHeader() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 191 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 210 |
addGeneralFields(defaultValue); if ((getOwnerSurrogate() != null) && !getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER) && (getOwnerSurrogate().getStaffTable() != null) && !getOwnerSurrogate().getStaffTable().isEmpty() ) { addPersonnelDisplayList(); } if (!defaultValue) addOSHALawString(OSHA_LAW); getForm().add(new CUHtmlRuler()); getForm().add(utilGetDefaultHtmlText("<h4><p>Acknowledgement</p></h4>")); getForm().add(utilGetDefaultHtmlText(infoGetAcknowledgementString())); getForm().add("<br>"); if ((getOwnerSurrogate() != null) && !getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER) ) { addSubmitDateString(); addApprovalFields(); } } catch (Exception e) { add("ERROR OCCURED"); log.error("Exception while adding fields to Appendix form.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 797 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 1208 |
aCell = utilGetHtmlTableCell(displayText, "35%", "left"); aRow.add(aCell); aText = aPerson.getStaffRole(); if ((aText == null) || (aText.trim().length() < 1)) { aText = "<img src=\"/images/blank.gif\" border=\"0\">"; } else { aText = APPENDIX_HTML_SPACE + aText; } displayText = new CUHtmlText(aText); displayText.setFontName(getDefaultFontName()); displayText.setFontSize("-1"); aCell = utilGetHtmlTableCell(displayText, "30%", "left"); aRow.add(aCell); aText = aPerson.getStaffDepartment(); if ((aText == null) || (aText.trim().length() < 1)) { aText = "<img src=\"/images/blank.gif\" border=\"0\">"; } else { aText = APPENDIX_HTML_SPACE + aText; } displayText = new CUHtmlText(aText); displayText.setFontName(getDefaultFontName()); displayText.setFontSize("-1"); aCell = utilGetHtmlTableCell(displayText, "25%", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 2044 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 2216 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 2414 |
Set<RuSimpleTrainingEnrollment> hzentroll = user.getRuSimpleTrainingEnrollments(); Iterator bbpo = hzentroll.iterator(); while (bbpo.hasNext()) { RuSimpleTrainingEnrollment enroll = (RuSimpleTrainingEnrollment) bbpo.next(); if ((enroll != null) && enroll.getTrainingProgram().equalsIgnoreCase("BBPO") && (enroll.getEnrollmentDate() != null) ) { ownerStaff.setBppoEnrollmentDate(CalendarTransformer.formatMMDDYYYY( enroll.getEnrollmentDate() ) ); } } ownerStaff.setLschoEnrollmentDate(""); Iterator lscho = hzentroll.iterator(); while (lscho.hasNext()) { RuSimpleTrainingEnrollment enroll = (RuSimpleTrainingEnrollment) lscho.next(); if ((enroll != null) && enroll.getTrainingProgram().equalsIgnoreCase("LSCHO") && (enroll.getEnrollmentDate() != null) ) { ownerStaff.setLschoEnrollmentDate(CalendarTransformer.formatMMDDYYYY( enroll.getEnrollmentDate() ) ); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 809 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 887 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 966 |
List<Map<String, Object>> anomalousDisclosuresByDepartment(@PathVariable(DEPT_CODE) String deptCode, @PathVariable(value = "startDate") String startDate, @PathVariable(value = "endDate") String endDate, @PathVariable(ENABLE_FILTER) Boolean enableFilter) throws ParseException { Set<String> deptCodes = getDeptCodes(deptCode); RascalUser tmpUser; Map<String, Object> dataMap; List<Map<String, Object>> data = new ArrayList<Map<String, Object>>(); if (StringUtils.isBlank(startDate) || StringUtils.isBlank(endDate)) { return data; } DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd, HH:mm:ss"); // Dates are parsed as the current time, so 9/23/2011 -> Fri Sep 23 current time EDT 2011 Date start = formatter.parse(startDate); Date end = formatter.parse(endDate.replace(" 00:00:00", " 23:59:59")); // Grab all submitted disclosures with anomalies for the given departments within the date range List<CoiDisclosure> disclosures = new ArrayList<CoiDisclosure>(); if ( enableFilter ) { disclosures = coiDisclosureService.findRequiredByDepartmentsAndTypeNotLikeAndStatusAndAnomalyBetweenDates(deptCodes,CoiConstants.IRB, CoiConstants.SUBMITTED, true, start, end); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 290 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 466 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 284 |
} /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToViewReportForDownload(String queueName) { return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 234 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 352 |
i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Cv/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("right"); return i; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aName TODO: DOCUMENT ME! * * @return CUHtmlRadioButton */ @Override public Object getHiddenWidgetFor(String aName) { CUHtmlHiddenField hf = new CUHtmlHiddenField(); hf.setInputName(aName); return hf; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * * @return CUHtmlRadioButton */ @Override public Object getHiddenWidgetFor(String aName, String aValue) { CUHtmlHiddenField hf = new CUHtmlHiddenField(); hf.setInputName(aName); hf.setInputValue(aValue); return hf; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aString TODO: DOCUMENT ME! * * @return boolean */ @Override public CUHtmlText getLabel(String aString) { setLabelName(aString); CUHtmlText text = new CUHtmlText(aString); text.setFontName(getDefaultFontName()); text.setIsBold(true); return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ @Override public String getLabelName() { return labelName; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param link TODO: DOCUMENT ME! * @param aLabel = is the label that will be shown on the screen * * @return CUHtmlTable */ public CUHtmlTable getLinkedLabelFor(String link, String aLabel) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 850 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 873 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 895 |
row.put("Event Name", IrbNameConstants.RENEWAL); row.put("Committee", (((Integer.valueOf((new Float(res.getFloat(1))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()) ); row.put("Count", (((Integer.valueOf((new Float(res.getFloat(2))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString()) ); results.add(row); row = new Hashtable(); } // adverseEvent for all committees res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( getAvailableOtherEventSql(IrbNameConstants.ADVERSE_EVENT) |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 248 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 476 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 572 |
expiredDisclosures.put(expiredDisclosure.getCreatedBy().getId(), expiredDisclosure); } } // Grab all the department names Map<String, String> departmentNames = rascalDepartmentService.getDeptNameByDeptNumbers(deptCodes); // Process the found users for (RascalUser user : users) { if (!processedUsers.containsKey(user.getId()) ) { dataMap = new HashMap<String, Object>(); dataMap.put("userid", user.getId()); dataMap.put("username", user.getUserFirstLastNameUni()); dataMap.put("firstname", user.getNameFirst()); dataMap.put("lastname", user.getNameLast()); dataMap.put("uni", user.getUserId()); String userEmail = user.getEmailPreferred(); dataMap.put("email", userEmail); String deptHome = user.getDeptHome(); dataMap.put("department", deptHome + "-" + departmentNames.get(deptHome)); // Some defaults dataMap.put("disclosuredepartment", "--"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 574 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 671 |
} // Grab all the department names Map<String, String> departmentNames = rascalDepartmentService.getDeptNameByDeptNumbers(deptCodes); // Process the found users for (RascalUser user : users) { if (!processedUsers.containsKey(user.getId())) { dataMap = new HashMap<String, Object>(); dataMap.put("userid", user.getId()); dataMap.put("username", user.getUserFirstLastNameUni()); dataMap.put("firstname", user.getNameFirst()); dataMap.put("lastname", user.getNameLast()); dataMap.put("uni", user.getUserId()); String userEmail = user.getEmailPreferred(); dataMap.put("email", userEmail); String deptHome = user.getDeptHome(); dataMap.put("department", deptHome + "-" + departmentNames.get(deptHome)); // Some defaults dataMap.put("delinquency", 0); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1644 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 503 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 462 |
columns.setElementAt(getLogo(), 0); columns.setElementAt(getMainTitle(), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(0, 0).setWidth("30%"); aTable.getCell(0, 0).setVAlign("CENTER"); aTable.getCell(0, 0).setAlign("RIGHT"); aTable.getCell(0, 1).setVAlign("CENTER"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.setBorderWidth(0); return aTable; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlText getMainTitle() { if (mainTitle == null) { CUHtmlText aText = new CUHtmlText("Main Title was not defined"); aText.setHeaderLevel("1"); aText.setFontName(getDefaultFontName()); aText.setAlignment("center"); mainTitle = aText; } return mainTitle; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlText getNote() { return note; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 3427 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 3482 |
aSql.append(" where (c.rid = d.rid and c.sequenceNumber = 1) "); aSql.append(" and (a.oid = g.parentProtocolOid and g.oid = c.irbProtocolHeaderId )"); aSql.append( " and (g.parentProtocolOid=b.parentObjectOid) and (g.oid = e.parentObjectOid and e.parentObjectName = '" ); aSql.append(IrbNameConstants.PROTOCOL_HEADER); aSql.append( "') and e.oid = (select max(oid) from IrbStatus x where g.oid = x.parentObjectOid and x.parentObjectName = '" ); aSql.append(IrbNameConstants.PROTOCOL_HEADER); aSql.append("') and b.committeeId=f.oid "); if (!selectedCommittee.equalsIgnoreCase("All Committees")) { aSql.append(" and f.committeeName='"); aSql.append(selectedCommittee); aSql.append('\''); } aSql.append(" and e.statusName in ('"); aSql.append(statusList); aSql.append("') AND ( e.statusDate between "); aSql.append(dateRangeWhere); aSql.append(" ) "); if (protocolType.equalsIgnoreCase("Protocol")) { aSql.append(" And g.protocolYear=1 and g.modificationNumber=0"); } if (protocolType.equalsIgnoreCase("Renewal")) { aSql.append(" And g.protocolYear>1 and g.modificationNumber=0"); } if (protocolType.equalsIgnoreCase("Modification")) { aSql.append(" And g.modificationNumber>0"); } // es3139: changing for new COI tables // i interpret this and setting COI = 'Y' where there is an uncleared anomaly aSql.append(" AND EXISTS "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 47 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 80 |
setForm(new CUHtmlForm("Form1", HzAttestationSearchServlet.class.getName(), "GET")); setPageTitle("RASCAL Human Subjects Protocol Search Results"); if (results.isEmpty()) { CUHtmlText title = new CUHtmlText("No Protocols matched your search criteria."); title.setHeaderLevel("2"); title.setAlignment("CENTER"); getForm().add(title); } else { CUHtmlText txt = new CUHtmlText("Select a protocol to view"); txt.setFontSize("+1"); txt.setFontName(getDefaultFontName()); getForm().add(txt); int resultSize = results.size(); for (int i = 0; i < resultSize; i++) { CUHtmlText text = new CUHtmlText("IRB-" + ((Vector) results.elementAt(i)).elementAt(1) ); // text.setLink(IrbProtocolRetrieveServlet.class.getName() + "?id=" + // ((Vector) results.elementAt(i)).elementAt(0) // ); text.addBreak(); getForm().add(text); } } add(getForm()); render(); } /** * FoasDocumentResultsDisplayView constructor. * * <p>The resultPage vector is of the form: a vector of vectors [ [id0, title0], [id1, title1], * [id2, title2], ...] where the first element must be the document id (as an Integer) and the * second element must be the document title</p> * * @param resultPage a vector of vectors to be displayed * @param curBeginPos an integer that indicates the position of the first record of the * current page in the total matches * @param curPageSize an integer that indicates the number of records in the currunt page * @param totalMatch an intger that indicates the total number of matches in searching * @param maxPageSize an intger that indicates the maximum number of matches to be displayed * on the page * * @author Hyung Park */ public HzAttestationResultDisplayView(Vector resultPage, int curBeginPos, int curPageSize, |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterView.java | 131 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 114 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 118 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportProjectOfficerActivityView.java | 138 |
getUrlToViewForDownload("A", getServletName(), "PtReportCancerCenter") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!getPrintable()) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton( "BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + PtReportAdministrativeMenuServlet.class.getName() + "';" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinuteHistoryDateRangeView.java | 55 |
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchDateRangeView.java | 61 |
edu/columbia/rascal/presentation/agenda/pages/IrbReportEnterProtocolNumberView.java | 71 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 57 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 58 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 59 |
addFields(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 876 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 1012 |
aRow.add(aCell1); aTable.add(aRow); /* if (getOwnerSurrogate() == null * || !getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) { aRow = * new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetDefaultHtmlText( TITLE7 * ), "100%", getTitleAlign() ); * * aRow.add( aCell1 ); aTable.add( aRow ); } */ getForm().add(aTable); } /** TODO: DOCUMENT ME! */ protected void addNote() { CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 0); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( TITLENOTE ), "300", getTitleAlign() ); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); getForm().add(aTable); } /** TODO: DOCUMENT ME! */ protected void addNote1() { CUHtmlTable aTable = utilGetHtmlTable("100%", 1, 0); aTable.setBorderWidth(0); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor( TITLENOTE1 ), "100%", getTitleAlign() ); aRow.add(aCell1); aTable.add(aRow); getForm().add(aTable); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixIReportView.java | 758 |
edu/columbia/rascal/presentation/appendix/pages/AppendixView.java | 713 |
labelText.setIsBold(true); aCell = utilGetHtmlTableCell(labelText, "10%", "center"); aRow.add(aCell); aTable.add(aRow); // create list of formatted staff selected for appendix if (getOwnerSurrogate() != null) { Enumeration<Object> staffTable = getOwnerSurrogate().getStaffTable().elements(); while (staffTable.hasMoreElements()) { AppendixOwnerStaffSurrogate aPerson = (AppendixOwnerStaffSurrogate) staffTable.nextElement(); if (aPerson != null) { aRow = new CUHtmlTableRow(); String aText = aPerson.getStaffName(); if ((aText == null) || (aText.trim().length() < 1)) { aText = "<img src=\"/images/blank.gif\" border=\"0\">"; } else { aText = APPENDIX_HTML_SPACE + aText; } CUHtmlText displayText = new CUHtmlText(aText); displayText.setFontName(getDefaultFontName()); displayText.setFontSize("-1"); aCell = utilGetHtmlTableCell(displayText, "20%", "center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbClosureSubjectsSubStudyController.java | 58 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolSubjectsSubStudyController.java | 58 |
@Resource private IrbSubjSubStudyService irbSubjSubStudyService; @Resource private RascalDropdownService rascalDropdownService; @Resource private Validator irbProtocolSubjectsSubStudyValidator; @Resource private Map<String, String> radioYNMap; @InitBinder(FORM_COMMAND) void initBinder(WebDataBinder binder){ binder.setAllowedFields("nameProcedure", "enrollment", "enrollmentStatus", "enrolledToDate", "studyStatusAdditionalInfo"); binder.addValidators(irbProtocolSubjectsSubStudyValidator); } @ModelAttribute void updateModel(Model model) { model.addAttribute("radioYNMap", radioYNMap); List<String> enrollmentStatusList = new ArrayList<String>(6); enrollmentStatusList.add("Data collection not yet started/No subjects enrolled to date"); enrollmentStatusList.add("Open to enrollment or ongoing review of records/specimens"); enrollmentStatusList.add("Enrollment or recruitment on hold"); enrollmentStatusList.add("Closed to enrollment, study-related procedures ongoing"); enrollmentStatusList.add("Study is no longer enrolling and subjects have completed research-related procedures, study remains active only for long-term follow-up of subjects"); enrollmentStatusList.add("Study enrollment is permanently closed, subjects have completed all research-related procedures, and long-term follow-up has been completed. The remaining research procedures are limited to data analysis"); model.addAttribute("enrollmentStatusList", rascalDropdownService.getAsList("irbSubSubStudyEnrollmentStatuses")); } @RequestMapping(method = RequestMethod.GET) public String loadNewPage(@PathVariable Long closureId, Model model) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionSetUpView.java | 344 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionSetUpView.java | 437 |
columns.addElement(getWidgetFor("")); // delete question if (question.getQuestionEditable()) { CUHtmlImage trash = getWidgetImageTrashCanButton( HipaaHeaderFormQuestionRemoveServlet.class.getName() + "?HipaaHeaderFormId=" + getHipaaHeaderFormObject().getId() + "&&questionOid=" + question.getId(), "Remove Text" ); columns.addElement(trash); } else { columns.addElement(getWidgetFor("")); } aTable.addRowFor(columns); aTable.getCell(row, 1).setAlign("center"); aTable.getCell(row, 1).setVAlign("center"); aTable.getCell(row, 2).setAlign("center"); aTable.getCell(row, 2).setVAlign("center"); aTable.getCell(row, 3).setAlign("center"); aTable.getCell(row, 3).setVAlign("center"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderSearchView.java | 153 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaReportStatusDateRangeView.java | 124 |
Object aWidget = getTemplateNameWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Form Template")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); aTable.getCell(row, 1).setColumnsToSpan(4); row++; // Authorized access columns.setElementAt(new CUHtmlEntryField("AccessorName", "25", "25", ""), 1); columns.setElementAt(getWidgetFor("OR"), 2); columns.setElementAt(new CUHtmlEntryField("AccessorId", "10", "10", ""), 4); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Authorized Person's Last Name")); aTable.getCell(row, 0).setAlign("RIGHT"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 270 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 278 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 314 |
getForm().add(aToDate); getForm().add("</font></p> "); getForm().add("</div>"); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getBeginDate() { return beginDate; } /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getEndDate() { return endDate; } /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); for (int i = 0; i < columns.size(); i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * TODO: DOCUMENT ME! * * @param queueName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbClinicalTrialsReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailEHSRequiredCourseTask.java | 366 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 83 |
message.append("\n\n"); } message.append("\nEvery member of the University community engaged in research is obligated to participate in the University’s training program and to maintain the currency of all required training courses."); message.append("\n\n"); message.append("\nFailure to complete or maintain current training while you are actively engaged in research is a violation of University policy and potentially of federal law."); message.append("\n\n"); message.append("\n------------------------------------------------"); message.append("\nHOW TO RETAKE YOUR REQUIRED COURSE(S) IN RASCAL:"); message.append("\n\n"); message.append("\n1.Go to the Rascal homepage at https://www.rascal.columbia.edu. "); message.append("\n2.Select 'Training Center' and login with your UNI and password. "); message.append("\n3. a. For EH&S courses ONLY, click on 'Safety Courses.' "); message.append("\n b. For all other courses, click on 'Course Listings.' "); message.append("\n4.Select the course listed above from the course listings. "); message.append("\n5.Read the Course Overview."); message.append("\n6.Click 'Take Course,' and read and follow any instructions. "); message.append("\n7.Once you have taken the course, click 'Take Test' to complete the course test. (Note: not all courses require a Rascal test; courses without tests will indicate 'This test has not been defined' in the sidebar menu.) "); message.append("\n"); message.append("\nTo check the status of your Rascal trainings at any time, including the completion and expiration dates of all of your completed Rascal courses: "); message.append("\n"); message.append("\n 1. Go to the Rascal homepage at https://www.rascal.columbia.edu. "); message.append("\n 2. Select 'My Rascal' and login with your UNI and password. "); message.append("\n 3. Click on 'My Test History' under Training Center. "); message.append("\n 4. Optional - Click on the blue button next to any course listed to generate a certificate for that "); message.append("\n course or the button at the bottom of the list to generate a full transcript for your records. "); message.append("\n"); message.append("\nTo de-activate this reminder - If you are no longer affiliated with Columbia University, or if the above training course is no longer applicable to your job duties, "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 1299 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 469 |
} /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#setLineParameters(java.util.Hashtable) */ @Override public void setLineParameters(Hashtable<String, Object> params) { // Save parameters passed through URL in hidden fields of the form. // Names of all parameters are lowercase Enumeration<String> e = params.keys(); while (e.hasMoreElements()) { String key = e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * TODO: DOCUMENT ME! * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * TODO: DOCUMENT ME! * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptView.java | 421 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 214 |
edu/columbia/rascal/presentation/tc/views/TCReportTestRequirementExceptionView.java | 237 |
} /** * Insert the method's description here. Creation date: (10/31/01 4:51:16 PM) * * @return java.lang.String */ public java.lang.String getDeptName() { return deptName; } /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. * * @param instruction String * * @return CUHtmlText */ public CUHtmlText getInstruction(String instruction) { CUHtmlText aText = null; if (instruction instanceof String) { aText = new CUHtmlText(instruction); aText.setIsBold(true); aText.setFontSize("+1"); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); } return aText; } /** * This method was created in VisualAge. * * @param allCourses TODO: DOCUMENT ME! * * @return Vector */ public Vector<Object> getKeywordListForColumns(Vector<Object> allCourses) { Vector<Object> keyList = new Vector<Object>(); keyList.addElement("Name"); for (int i = 0; i < allCourses.size(); i++) keyList.addElement(((String) allCourses.elementAt(i)).substring(0, 6)); return keyList; } /** * Insert the method's description here. Creation date: (4/19/2005 6:18:22 PM) * * @return int */ public boolean getPrintable() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/servlets/AdminAbstractServlet.java | 113 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 95 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 95 |
(new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doGet in CURascalVAPServlet and CURascalServlet. I am not happy with the * behavior implemented in those classes</p> * * <p>hh 3/2/00</p> * * <p>sometime in the future, those superclassed methods will be reworked, but i need to get * around them NOW!</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/auxiliary/IrbAgendaSearchParametersParser.java | 131 |
edu/columbia/rascal/presentation/agenda/auxiliary/IrbAgendaSearchParametersParser.java | 186 |
public IrbAgendaSearchParameters parseIrbAgendaSearchParameters(IrbAgendaSearchServlet servlet) throws CURascalParseException { IrbAgendaSearchParameters srchParams; // String rascalUser = servlet.getRequestParameter("RascalUser"); String rascalUser = ""; String userId = servlet.getUser().getUserId(); if (isEmpty(rascalUser) && isEmpty(userId)) { return null; } srchParams = new IrbAgendaSearchParameters(); String searchType = servlet.getRequestParameter("anyAll"); srchParams.setSearchType(searchType); try { CURascalBasicSearchParser parser = CURascalBasicSearchParser.getInstance(); if (!(rascalUser.trim().equals(""))) { parser.initParser(rascalUser); srchParams.setRascalUser(parser.parse()); } if (!(userId.trim().equals(""))) { parser.initParser(userId); srchParams.setUserId(parser.parse()); } // validateLengthOfNonEmptyParameters(srchParams); } catch (CURascalParseException e) { srchParams = null; throw e; } return srchParams; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 982 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 893 |
appendixPPEList = ServiceLocator.getAppendixBPPEService().findByAppendixOidAndPPERelatedTo(getAppendixObject().getId(), "SUBJECT"); printPPEList(appendixPPEList, aRow, aCell1, aTable); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE8B2), "100%", getTitleAlign() ); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_8B_SubjectPersonalProtection(), "100%", getTitleAlign() ); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE8B1), "300", "left"); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE9), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 1155 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 1214 |
); elements.addElement(aListWidget); StringBuilder onClick = new StringBuilder(); if (queueName.equals("A") || queueName.equals("C")) { onClick.append("Javascript:getSortByValue1('"); } else { onClick.append("Javascript:getSortByValue3('"); } onClick.append(getServletName()); onClick.append("','columnNamesList"); onClick.append(queueName); onClick.append("','"); onClick.append(queueName); onClick.append("')"); elements.addElement(new CUHtmlPushButton("BUTTON", "BUTTON", "Sort", onClick.toString() ) ); aHeaderTable.addRowFor(elements); aHeaderTable.getCell(0, 0).setAlign("right"); aHeaderTable.getCell(0, 1).setAlign("left"); aHeaderTable.getCell(0, 2).setAlign("left"); return aHeaderTable; } /** * TODO: DOCUMENT ME! * * @param columnNames TODO: DOCUMENT ME! * @param queueName TODO: DOCUMENT ME! * @param sortSelection TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getSortHeaderForColumnNames(Vector<Object> columnNames, String queueName, |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentFormNewView.java | 147 |
edu/columbia/rascal/presentation/consent/pages/ConsentSuggestedParagraphView.java | 88 |
if (editable) { aForm.add(getGenHelpFor("GENERAL INSTRUCTIONS ", "consenthowto.html")); aForm.add("<BR>"); aForm.add("<BR>"); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellSpacing(0); aTable.setCellPading(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); } add(aForm); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // formType aWidget = getConsentLanguageWidget("formType"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 250 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 478 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 671 |
} // Grab all the department names Map<String, String> departmentNames = rascalDepartmentService.getDeptNameByDeptNumbers(deptCodes); // Process the found users for (RascalUser user : users) { if (!processedUsers.containsKey(user.getId()) ) { dataMap = new HashMap<String, Object>(); dataMap.put("userid", user.getId()); dataMap.put("username", user.getUserFirstLastNameUni()); dataMap.put("firstname", user.getNameFirst()); dataMap.put("lastname", user.getNameLast()); dataMap.put("uni", user.getUserId()); String userEmail = user.getEmailPreferred(); dataMap.put("email", userEmail); String deptHome = user.getDeptHome(); dataMap.put("department", deptHome + "-" + departmentNames.get(deptHome)); // Some defaults dataMap.put("disclosuredepartment", "--"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 3158 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 7864 |
aSql.append("')"); aSql.append(" FROM"); aSql.append( " IrbProtocol a, IrbEventCommittee b,IrbStaff c, RASCAL_USER d, IrbStatus e2, IrbCommittee f,IrbProtocolHeader h," ); aSql.append("Irb"); aSql.append(name); aSql.append(" g "); aSql.append(" WHERE"); aSql.append(" a.oid = g.parentProtocolOid "); aSql.append(" AND g.parentProtocolOid = h.parentProtocolOid"); aSql.append(" AND (h.oid = c.irbProtocolHeaderId AND c.sequenceNumber = 1)"); aSql.append(" AND c.rid = d.rid"); aSql.append(" and h.oid=(select max(ph1.oid) from "); aSql.append(" IrbStatus e3,IrbProtocolHeader ph1 "); aSql.append(" where a.oid = ph1.parentProtocolOid "); aSql.append(" and ph1.oid= e3.parentObjectOid "); aSql.append(" and e3.parentObjectName = 'ProtocolHeader' "); aSql.append(" AND e3.statusName = 'Approved' )"); aSql.append(" AND (g.oid = e2.parentObjectOid AND e2.parentObjectName = '"); aSql.append(name); aSql.append("' AND e2.statusName in ('"); aSql.append(statusName); aSql.append("')"); aSql.append( " AND e2.oid = (SELECT max(oid) FROM IrbStatus x WHERE g.oid = x.parentObjectOid AND x.parentObjectName = '" ); aSql.append(name); aSql.append( "')) AND (b.parentObjectOid = g.parentProtocolOid AND b.parentObjectName = 'Protocol')" ); aSql.append(" and b.committeeId = f.oid and f.active = 'Y' "); if (!selectedCommittee.equalsIgnoreCase("All Committees")) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbApprovalEntryView.java | 105 |
edu/columbia/rascal/presentation/propTrak/pages/PtApprovalEntryView.java | 91 |
Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // Uni aWidget = getEditWidgetFor("rascalUni", "", "15", "15"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI")); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element // Participant type aWidget = getApprovalRoleWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("What is this person's role")); row++; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 498 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 428 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 337 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 537 |
Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } String number = aString.substring(4, 12); return getLinkForProtocolOverview(aString, number); } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 460 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 665 |
public void setBusinessMeetingTableDataRow(CUHtmlTable aTable, IrbAgendaEvent event, IrbMeetingAttributes attribute ) { CUHtmlTableRow a01Row = new CUHtmlTableRow(); CUHtmlTableRow a02Row = new CUHtmlTableRow(); CUHtmlTableRow b01Row = new CUHtmlTableRow(); CUHtmlTableRow b02Row = new CUHtmlTableRow(); IrbAgendaHeader agHeader = ServiceLocator.getIrbAgendaHeaderService().getHeaderByOid( event.getIrbAgendaHeader().getId().toString() ); // Agenda Number CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getRowLabelLeftFor(agHeader.getAgendaNumber())); cell0.setAlign("left"); cell0.setVAlign("top"); // cell0.setWidth("15%"); a01Row.add(cell0); // Meeitng Date CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getRowLabelLeftFor(CalendarTransformer.formatMMDDYYYY(agHeader.getMeetingDate()))); cell1.setAlign("left"); cell1.setVAlign("top"); // cell1.setWidth("15%"); a01Row.add(cell1); // Abstract CUHtmlTableCell cell2 = new CUHtmlTableCell(); String topic = event.getEventAbstract(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportProtocolHazMatView.java | 269 |
edu/columbia/rascal/presentation/appendix/pages/AppendixReportPtHazMatView.java | 256 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportHazMatView.java | 240 |
); getForm().add("</div>"); CUHtmlTable aTable = new CUHtmlTable(); aTable.setWidth("45%"); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setCellSpacing(0); aTable.setCellPading(0); Vector columns = new Vector(2); columns.addElement(getWidgetFor("Recombinant DNA")); columns.addElement(getWidgetFor("A")); aTable.addRowFor(columns); columns = new Vector(2); columns.addElement(getWidgetFor("Infectious Agents")); columns.addElement(getWidgetFor("B")); aTable.addRowFor(columns); columns = new Vector(2); columns.addElement(getWidgetFor("Human Blood, Human Cell Lines, or OPIM")); columns.addElement(getWidgetFor("C")); aTable.addRowFor(columns); columns = new Vector(2); columns.addElement(getWidgetFor("Strong Light Sources")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbAdverseEventFileUploadController.java | 219 |
edu/columbia/rascal/presentation/controller/irb/IrbAdverseEventFileUploadInternalController.java | 226 |
edu/columbia/rascal/presentation/controller/irb/IrbClosureFileUploadController.java | 220 |
edu/columbia/rascal/presentation/controller/irb/IrbClosureFileUploadInternalController.java | 220 |
edu/columbia/rascal/presentation/controller/irb/IrbUnanticipatedFileUploadController.java | 221 |
edu/columbia/rascal/presentation/controller/irb/IrbUnanticipatedFileUploadInternalController.java | 217 |
ServiceLocator.getIrbAdverseEventService().getAccessibleByUser( getRascalUser(), currentIph ) ) { InputStream content = attachment.getBlob().getBinaryStream(); response.setContentType(attachment.getContentType()); response.setHeader("Content-Disposition", "attachment; filename=\"" + attachment.getFileName() + "\"" ); FileCopyUtils.copy(content, response.getOutputStream()); response.getOutputStream().flush(); response.getOutputStream().close(); return null; } } return new ModelAndView("uploadFailure"); } /** * TODO: DOCUMENT ME! * * @param dataBinder TODO: DOCUMENT ME! */ @InitBinder("attachment") public void initBinder(ServletRequestDataBinder dataBinder) { dataBinder.setAllowedFields( "oid", "documentIdentifier", "dateCreated", "fileName"); } /** * TODO: DOCUMENT ME! * * @param t TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ @ExceptionHandler(ResourceNotFoundException.class) public String notFoundException(Throwable t) { return "updateFailed"; } /** * TODO: DOCUMENT ME! * * @param response TODO: DOCUMENT ME! * @param attachment TODO: DOCUMENT ME! * @param result TODO: DOCUMENT ME! * @param model TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws IOException TODO: DOCUMENT ME! */ @RequestMapping( value = "edit", method = RequestMethod.PUT ) public String update(HttpServletResponse response, |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 160 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 167 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractPopupServlet.java | 76 |
(new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doPost in CURascalVAPServlet and CURascalServlet.</p> * * <p>hh 5/19/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/auxilliary/objects/IrbSearchParameters.java | 236 |
edu/columbia/rascal/presentation/lab/auxiliary/objects/HzAppendixHeaderSearchParameters.java | 176 |
} /** * Setter. * * @param param nameParam a CURascalBasicSearchParameter */ public void setOriginatingDepartment(CURascalBasicSearchParameter param) { originatingDepartment = param; } /** * Setter. * * @param param nameParam a CURascalBasicSearchParameter */ public void setOriginatingDepartmentName(CURascalBasicSearchParameter param) { originatingDepartmentName = param; } /** * Setter. * * @param param nameParam a CURascalBasicSearchParameter */ public void setPaperProtocolNumber(CURascalBasicSearchParameter param) { paperProtocolNumber = param; } /** * Setter. * * @param param nameParam a CURascalBasicSearchParameter */ public void setPreviousProtocolNumber(CURascalBasicSearchParameter param) { previousProtocolNumber = param; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setRascalUser(CURascalBasicSearchParameter newValue) { this.rascalUser = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setRascalUserUni(CURascalBasicSearchParameter newValue) { this.rascalUserUni = newValue; } /** * Setter. * * @param type a String */ public void setSearchType(String type) { srchType = type; } /** * Setter. * * @param param nameParam a CURascalBasicSearchParameter */ public void setTitle(CURascalBasicSearchParameter param) { title = param; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue edu.columbia.rascal.presentation.presentation.common.parser.CURascalBasicSearchParameter */ public void setUserId(edu.columbia.rascal.presentation.common.parser.CURascalBasicSearchParameter newValue) { this.userId = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue edu.columbia.rascal.presentation.presentation.common.parser.CURascalBasicSearchParameter */ public void setUserUni(edu.columbia.rascal.presentation.common.parser.CURascalBasicSearchParameter newValue) { this.userUni = newValue; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 171 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 173 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryDateRangeView.java | 232 |
aWidget = getReportRangeWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Range:")); row++; columns.setElementAt(getDateTable(endDate, "endDate", "endDateMonth", "endDateDay", "endDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Ending On:")); row++; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit", "checkDateForSubmit(endDate);return isDateValid()" ); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Vector getEventList() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolAdminChairSearchServlet.java | 181 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolSearchServlet.java | 201 |
); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Returns the cache mode to be used for search results.</p> * * <p>CACHE_ALL to cache all search results CACHE_PAGES to cache a certain number of pages * CACHE_ROWS to cache a certain number of rows</p> * * @return int */ protected int getCacheMode() { return edu.columbia.rascal.presentation.common.jdbc.CURascalJdbcAccessConstants.CACHE_PAGES; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Returns the cache size.</p> * * <p>To cache all search results with the cache mode of CACHE_ALL, use the follwoing * edu.columbia.rascal.presentation.presentation.common.jdbc.CURascalJdbcAccessConstants.CACHE_SIZE_ALL</p> * * @return int */ protected int getCacheSize() { return 5; // to cache 5 pages } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Returns the maximum number of rows in the page.</p> * * @return int */ protected int getMaxPageSize() { return 50; // 50 rows per page } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Returns the name of the method to process the ResultSet.</p> * * @return aString */ protected String getProcessResultSetMethod() { return "buildRowWithDocSearchResultSet"; } /** * Handle an exception by sending an error to the HttpResponse. * * @param ex exception java.lang.Throwable */ protected void handleException(Throwable ex) { if (ex instanceof edu.columbia.rascal.presentation.common.parser.CURascalParseException) { /*edu.columbia.rascal.presentation.presentation.common.parser.CURascalParseException ex1 = * (edu.columbia.rascal.presentation.presentation.common.parser.CURascalParseException) ex; * int statusCode = 400; // SC_BAD_REQUEST String msg = ex.getMessage() + " in the * keyword: \"" + ex1.getErrorTokenValue() + "\"" + " starting at the position: * \"" + ex1.getErrorPosition() + "\"" + " in the line: \"" + ex1.getErrorLine() + * "\"";*/ try { // getResponse().sendError(400,"you suck"); getResponse().sendRedirect( "edu.columbia.rascal.presentation.propTrak.servlets.PtMessageServlet?search=true" ); } catch (java.io.IOException e) { } } } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#validateGet() */ @Override protected boolean validateGet() { setOriginUrl(IrbProtocolSearchPageServlet.class.getName()); return true; } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#validatePost() */ @Override protected boolean validatePost() { String msg = ""; String rascalUser = getRequestParameter("RascalUser"); String userUni = getRequestParameter("RascalUserUni"); if (!rascalUser.trim().equals("") && !userUni.trim().equals("")) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/pages/RascalActivityTypeLookupMainView.java | 33 |
edu/columbia/rascal/presentation/lookup/pages/RascalAgencyLookupMainView.java | 33 |
edu/columbia/rascal/presentation/lookup/pages/RascalReportDistributionLookupMainView.java | 39 |
setPageTitle("RASCAL - Activity Type Lookup"); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void addFields() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getInputServletString()); f1.setName("Input"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); /* Do Not Initialize the Output Frame's Source */ f2.setSrc(getOutputServletString()); f2.setName("Output"); f2.setNoResize("NO"); f2.setScrolling("YES"); f2.setMarginHeight("0"); f2.setMarginWidth("0"); v.addElement(f1); v.addElement(f2); frames.add(v); frames.setRows("40%,*"); frames.setColumns("*"); frames.setBorder("1"); frames.setFramespacing("0"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 805 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 828 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 850 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 873 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 895 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 917 |
row.put("Event Name", IrbNameConstants.PROTOCOL_HEADER); row.put("Committee", (((Integer.valueOf((new Float(res.getFloat(1))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()) ); row.put("Count", (((Integer.valueOf((new Float(res.getFloat(2))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString()) ); results.add(row); row = new Hashtable(); } // mods for all committees res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDataSheetServlet.java | 92 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDataSheetServlet.java | 182 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDatabaseStoreUtilityServlet.java | 228 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaNewServlet.java | 106 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaRetrieveServlet.java | 123 |
Vector pendingAttached = IrbAgendaProtocolQuery.getAgendaEventsFor(ah.getId(), PENDING); Vector NRprotocolAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.PROTOCOL_HEADER ); Vector NRmodificationAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.MODIFICATION ); Vector NRrenewalAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.RENEWAL ); Vector NRadverseEventAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.ADVERSE_EVENT ); Vector NRclosureAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.CLOSURE ); Vector NRunanticipateAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.UNANTICIPATED_PROBLEM ); Vector NRexpeditableAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.EXPEDITED ); Vector NRexemptAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), IrbNameConstants.EXEMPT); Vector NRpendingAttached = IrbAgendaProtocolQuery.getNonRascalEventsFor(ah.getId(), PENDING ); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 257 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 272 |
t.getCell(0, 4).setWidth("10%"); // t.getCell(0, 5).setWidth("15%"); // t.getCell(0, 6).setWidth("15%"); // getForm().add(t); // Add the control to display the next or previous page CUHtmlTable pageControl = buildPageDisplayControl(curBeginPos, curPageSize, totalMatch, maxPageSize ); pageControl.addBreaks(2); getForm().add(pageControl); } add(getForm()); } /** * Builds the control to display the next or previous page. The page display control is built as * a table row that consists of the following six cells: 1st cell - the space in the left end * 2nd cell - the hobo button with the left arrow to display the previous page 3rd cell - the * text control to display the previous page 4th cell - the separator 5th cell - the text * control to display the next page 6th cell - the hobo button with the right arrow to display * the next page 7th cell - the space in the right end * * @param curBeginPos an integer that indicates the position of the first record of the * current page in the total matches * @param curPageSize an integer that indicates the number of records in the currunt page * @param totalMatch an intger that indicates the total number of matches in searching * @param maxPageSize an intger that indicates the maximum number of matches to be displayed * on the page * * @return CUHtmlTable a table that contains the page display control * * @author Hyung Park */ public CUHtmlTable buildPageDisplayControl(int curBeginPos, int curPageSize, int totalMatch, int maxPageSize ) { CUHtmlTable aTable = new CUHtmlTable(); java.util.Vector pageControlRow = new java.util.Vector(5); CUHtmlText prev; CUHtmlText next; // Add the space in the left end pageControlRow.addElement(""); if (curBeginPos > 0) { // Will be changed to add a hobo button with the left arrow String leftButton = ""; pageControlRow.addElement(leftButton); // Add the text control to display the previous page prev = new CUHtmlText("Previous " + maxPageSize + " matches"); prev.setLink(HipaaHeaderSearchPageServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaReportResolutionServlet.java | 75 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaReportStatusServlet.java | 81 |
.getResolutionReportDataTablesViaJdbc(dateRange, resolutionState); String sortBy = getLineParameter(KEY_PARM_SORT_BY); if (sortBy != null) { CUSortVector rows = new CUSortVector(queue); rows.setColumnNames(getKeywordListForColumns()); sortBy = sortBy.replace('+', ' ').trim(); rows.sortByColumn(sortBy); queue = rows; } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter(KEY_PARM_PRINTABLE); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter(KEY_PARM_DOWNLOADABLE); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } setOriginUrl(HipaaReportResolutionServlet.class.getName()); view = new HipaaReportResolutionView( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 534 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 1612 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2048 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 2138 |
row.put("Reviewer", (res.getString(17) == null) ? "" : res.getString(17)); results.addElement(row); row = new Hashtable(); } // end while } else if (name.equals(IrbNameConstants.ADVERSE_EVENT) || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM) || name.equals(IrbNameConstants.CLOSURE) ) { while (res.next()) { row.put("EventName", res.getString(1)); row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolNumber", "IRB-" + res.getString(3)); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString() ); row.put("PI", res.getString(5)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6108 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6731 |
public static String getIrbReportOverallCommitteeStatsSqlString5For(String committeeId, String dateRange ) { StringBuilder aSql = new StringBuilder(1000); aSql.append(" SELECT avg(floor(d.statusDate - c.statusDate))"); aSql.append( " FROM IrbProtocol a, IrbProtocolHeader b, IrbStatus c, IrbStatus d, IrbEventCommittee e" ); aSql.append(" WHERE a.oid = b.parentProtocolOid"); aSql.append(" AND b.exempt = 'Y'"); aSql.append(" AND (b.oid = c.parentObjectOid "); aSql.append(" AND c.parentObjectName = 'ProtocolHeader'"); aSql.append(" AND c.oid = (SELECT max(oid) FROM IrbStatus x "); aSql.append(" WHERE b.oid = x.parentObjectOid "); aSql.append(" AND x.parentObjectName = 'ProtocolHeader'"); aSql.append(" AND x.statusName = 'Submitted'))"); aSql.append(" AND (b.oid = d.parentObjectOid "); aSql.append(" AND d.parentObjectName = 'ProtocolHeader'"); aSql.append(" AND d.statusName = 'Approved')"); aSql.append(" AND (a.oid = e.parentObjectOid"); aSql.append(" AND e.parentObjectName = 'Protocol')"); if (!committeeId.equalsIgnoreCase("All Committees")) { aSql.append(" AND e.committeeId = "); aSql.append(committeeId); } aSql.append(" AND c.statusDate BETWEEN "); aSql.append(dateRange); return aSql.toString(); } /** * Number of submissions for Expeditable protocols. * * @param committeeId TODO: DOCUMENT ME! * @param dateRange TODO: DOCUMENT ME! * * @return number of submissions for Expeditable protocols. */ public static String getIrbReportOverallCommitteeStatsSqlString6For(String committeeId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6211 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6834 |
public static String getIrbReportOverallCommitteeStatsSqlString7For(String committeeId, String dateRange ) { StringBuilder aSql = new StringBuilder(1000); aSql.append(" SELECT avg(floor(d.statusDate - c.statusDate))"); aSql.append( " FROM IrbProtocol a, IrbProtocolHeader b, IrbStatus c, IrbStatus d, IrbEventCommittee e, IrbExpeditableAnswer f" ); aSql.append(" WHERE a.oid = b.parentProtocolOid"); aSql.append(" AND b.oid = f.irbProtocolHeaderId"); aSql.append(" AND (b.oid = c.parentObjectOid"); aSql.append(" AND 'ProtocolHeader' = c.parentObjectName"); aSql.append(" AND c.statusDate BETWEEN "); aSql.append(dateRange); aSql.append(" AND c.oid = (SELECT max(oid) FROM IrbStatus"); aSql.append(" WHERE b.oid = parentObjectOid"); aSql.append(" AND 'ProtocolHeader' = parentObjectName"); aSql.append(" AND 'Submitted' = statusName))"); aSql.append(" AND (b.oid = d.parentObjectOid "); aSql.append(" AND 'ProtocolHeader' = d.parentObjectName"); aSql.append(" AND 'Approved' = d.statusName)"); aSql.append(" AND (a.oid = e.parentObjectOid"); aSql.append(" AND 'Protocol' = e.parentObjectName)"); if (!committeeId.equalsIgnoreCase("All Committees")) { aSql.append(" AND e.committeeId = "); aSql.append(committeeId); } return aSql.toString(); } /** * count all status actions (for 'status' argument) within the date range. * * @param tempTableName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static String getIrbReportOverallCommitteeStatsSqlStringCountAllEvents( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueAdminCorrespondenceDateRangeView.java | 103 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueLoggerDateRangeView.java | 73 |
if (getComeFrom().equals("admin")) addGeneralRows2(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); getForm().add(aTable); getForm().add("<BR>"); getForm().add(getActionButtons()); getForm().add("<BR>"); getForm().add(getHiddenWidgetFor("comeFrom", comeFrom)); add(getForm()); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; aTable.setCellSpacing(15); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Submission type: ")); // add committee list Vector protocolType = new Vector(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 113 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptFilterByJobCodeView.java | 85 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 110 |
edu/columbia/rascal/presentation/tc/views/TCReportEHSExceptionByTestView.java | 111 |
aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(allCourses), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } getForm().add(getReportTable(rows, allCourses)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 410 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 507 |
aQuery.append("' and comm.oid = header.committeeId "); try { // active agendas java.sql.ResultSet res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( aQuery.toString() ); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); row.addElement(res.getString(2)); row.addElement(res.getString(3)); if (res.getDate(4) == null) // date { row.addElement(""); } else { row.addElement(res.getDate(4)); } results.addElement(row); row = new Vector(4); } } catch (Exception e) { log.error(e); } return results; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static Vector getAllActiveCommitteeIds() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 136 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 307 |
addNRAttached("Adverse Event", NRadverseEventAttached, IrbNameConstants.ADVERSE_EVENT); } // add attached ClosureAttached if (closureAttached.size() > 0) { addProtocolAttached(ah.getId(), "Closure Reports", closureAttached, IrbNameConstants.CLOSURE ); } if (NRclosureAttached.size() > 0) { addNRAttached("Closure Reports", NRclosureAttached, IrbNameConstants.CLOSURE); } // add attached unanticipate if (unanticipateAttached.size() > 0) { addProtocolAttached(ah.getId(), "Unanticipated Problems", unanticipateAttached, IrbNameConstants.UNANTICIPATED_PROBLEM ); } if (NRunanticipateAttached.size() > 0) { addNRAttached("Unanticipated Problems", NRunanticipateAttached, IrbNameConstants.UNANTICIPATED_PROBLEM ); } // add Other topics if (otherTopicsAttached.size() > 0) { addOtherEventAttached("Other Topics", otherTopicsAttached, "Other"); } // add Old Business if (oldBusinessAttached.size() > 0) { addBusinessAttached(ah.getId(), "Old Business", oldBusinessAttached, "Old Business" |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbReportEnterProtocolNumberView.java | 72 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 57 |
render(); } //~ Methods ------------------------------------------------------------------------------------ /** Insert the method's description here. Creation date: (1/2/2003 11:34:23 AM) */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 3204 |
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 281 |
case CURascalBasicSearchConstants.KEY_PLUSMINUS: keyEnum = searchParam.keywordIterator(); Enumeration signEnum = searchParam.signIterator(); attributeVal = (String) keyEnum.nextElement(); String sign = (String) signEnum.nextElement(); if (sign.equals("+")) { whereClause = " AND ( ( lower(" + attributeNm + ") = lower('" + attributeVal + "') )"; } else { whereClause = " AND ( not ( lower(" + attributeNm + ") = lower('" + attributeVal + "') )"; } while (keyEnum.hasMoreElements()) { attributeVal = (String) keyEnum.nextElement(); sign = (String) signEnum.nextElement(); if (sign.equals("+")) { whereClause = whereClause + " AND ( lower(" + attributeNm + ") = lower('" + attributeVal + "') )"; } else { whereClause = whereClause + " AND not ( lower(" + attributeNm + ") = lower('" + attributeVal + "') )"; } } whereClause = whereClause + ")"; break; case CURascalBasicSearchConstants.KEY_PHRASE: |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 403 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 1612 |
row.put("LastCorrespondenceToPIDate", aDate); results.addElement(row); row = new Hashtable(); } // end while } else if (name.equals(IrbNameConstants.ADVERSE_EVENT) || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM) || name.equals(IrbNameConstants.CLOSURE) ) { while (res.next()) { row.put("EventName", res.getString(1)); row.put("EventOid", Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString() ); row.put("ProtocolNumber", "IRB-" + res.getString(3)); row.put("ProtocolOid", Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString() ); row.put("PI", res.getString(5)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbNotesView.java | 253 |
edu/columbia/rascal/presentation/propTrak/pages/PtInternalNotesEntryView.java | 184 |
CalendarTransformer.formatDateAndTime(note.getCreationDate()) + " - </b><br>" + replaceHtmlTagsForControls(note.getNote()) + "<br>"; } Object aWidget = null; aWidget = getRowLabelLeftFor("Previously Written:"); columns.setElementAt(aWidget, 0); aTable.addRowFor(columns); row++; CUHtmlText n = new CUHtmlText(PersistentTextFormatter.insertHtmlTagsForControls(notes)); n.setFontSize("1"); n.setFontName("Comic Sans MS"); columns.setElementAt(n, 0); aTable.addRowFor(columns); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 2); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", " Quit ", "Javascript:window.close();" ); CUHtmlTableCell aCell1 = aTable.getCell(0, 1); aCell1.add(pb1); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 59 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 60 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolSearchView.java | 48 |
add(getHiddenWidgetFor("dateValid", "true")); addFields(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { int numCells = 4; // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 310 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 737 |
aWidget = getEditWidgetFor("totalAmount", var, "12", "9"); ((CUHtmlEntryField) aWidget).setOnKeyPress("return restrictFieldToNumbers(event)"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Total Project Amount (Direct + Indirect)", "pt54.html" ) ); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // if cost share match aWidget = getBooleanWidgetFor("costShareMatch", ptBudget.getCostShareMatch()); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Agency Cost Share/Match Required", "pt52.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // cost share / match amount var = "0"; longVar = ptBudget.getProjectBudgetTotalCostShare(); if (longVar != null) var = longVar.toString(); aWidget = getEditWidgetFor("costShare", var, "12", "9"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalRascalSearchPageServlet.java | 40 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalSearchPageServlet.java | 41 |
String startAt = getRequestParameter("startAt"); String pageSize = getRequestParameter("pageSize"); Integer offset = 1; Integer range = 50; if ((startAt != null) && (startAt.length() > 0)) { try { offset = Integer.valueOf(startAt); } catch (Exception e) { } } if ((pageSize != null) && (pageSize.length() > 0)) { try { range = Integer.valueOf(pageSize); } catch (Exception e) { } } PtSearchParameters srchParams = (PtSearchParameters) getSession().getAttribute( "searchParameters" ); Vector<Object> results = null; Object sessionObj = getSession().getAttribute("searchResults"); if (sessionObj != null) results = (Vector<Object>) sessionObj; else { results = PtSearchQuery.getRascalSearchResults(srchParams); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 276 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportStatusServlet.java | 258 |
deptCode.substring(0, startpoint), columns ) ); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); rows.sortByColumn(sortBy); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } if ((rows == null) || (rows.isEmpty())) { String link = "parent.frames[1].location='" + PtLinkFrameServlet.class.getName() + "?trakId=XXXX9999'"; String main = "parent.frames[2].location='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 198 |
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 305 |
if (initRid > 0) { initiator = ServiceLocator.getRascalUserService().findById(initRid); } if (initiator == null) { initiatorString = blank; } else { initiatorString = initiator.getNameFirst() + " " + initiator.getNameLast() + " (" + initiator.getUserId() + ")"; } s.append("<p><table align= \"center\" width=\"95%\" border=\"1\" bgcolor=\"#CCCCCC\">"); /*1*/ // course number s.append("<tr><td align=\"right\" width= \"15%\"> "); s.append("<font face=\"Verdana\" size=\"1\">Course Number</font>"); s.append("</td> <td align= \"left\" width= \"25%\"> <font face=\"Verdana\" size=\"1\"> "); s.append(getCourseHeader().getCourseNumber()); s.append("</font></td>"); // title s.append("<td align= \"right\" width= \"20%\"> "); s.append("<font face=\"Verdana\" size=\"1\">Title</font>"); s.append("</td>"); s.append("<td align= \"left\" width= \"40%\"> <font face=\"Verdana\" size=\"1\"> "); s.append(aTitle).append("</font></td></tr>"); Calendar cal = Calendar.getInstance(); /*2*/ // creation date s.append("<tr> <td align=\"right\"><font face=\"Verdana\" size=\"1\">Date Created</font>"); s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportCourseAdminView.java | 156 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 155 |
if (!(isPrintable())) { getForm().add("<BR>"); CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", " Return ", "parent.frames[2].location='" + TCReportMenuServlet.class.getName() + "'" ); bTable.add(pb1); getForm().add(bTable); } add(getForm()); add(getDefaultMainFooter()); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("-1"); date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * TODO: DOCUMENT ME! * * @param beginDate TODO: DOCUMENT ME! * @param endDate TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText addDateRange(String beginDate, String endDate) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 822 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1252 |
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 378 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 372 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 298 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 371 |
} /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#setLineParameters(java.util.Hashtable) */ @Override public void setLineParameters(Hashtable params) { // Save parameters passed through URL in hidden fields of the form. Names of all // parameters are lowercase Enumeration e = params.keys(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * This method was created in VisualAge. Sets the mainTitle of this page. If aMainTitle is a * String, use the default mainTitle settings. if aMainTitle is CUHtmlText, override the default * mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 3117 |
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 108 |
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 367 |
case 2: keyEnum = searchParam.keywordIterator(); Enumeration signEnum = searchParam.signIterator(); attributeVal = (String) keyEnum.nextElement(); String sign = (String) signEnum.nextElement(); if (sign.equals("+")) { whereClause = " AND ( ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } else { whereClause = " AND ( not ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } while (keyEnum.hasMoreElements()) { attributeVal = (String) keyEnum.nextElement(); sign = (String) signEnum.nextElement(); if (sign.equals("+")) { whereClause = whereClause + " AND ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } else { whereClause = whereClause + " AND not ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } } whereClause = whereClause + ")"; break; case 3: |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 328 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 328 |
Set<AppendixIsotope> isots = ((AppendixF) getAppendixObject()).getAppendixIsotopes(); aIsotBuffer.append("<b><u>"); int siz = isots.size(); int i = 0; Iterator it = isots.iterator(); while (it.hasNext()) { AppendixIsotope anIsotope = (AppendixIsotope) it.next(); aIsotBuffer.append(anIsotope.getName()); if ((i + 1) < siz) { aIsotBuffer.append(", "); } i++; } if (siz < 1) aIsotBuffer.append(" n/a "); aIsotBuffer.append("</b></u>"); return new CUHtmlText("<font face=\"" + getDefaultFontName() + "\" size=\"2\"color=black>" + APPROVAL_TEXT1 + aIsotBuffer.toString() + '.'); } /** * This method was created in VisualAge. * * @return String value of the Appendix letter, e.g. "A", "C", etc. This letter appears in the * Appendix title - "APPENDIX A". */ @Override protected String infoGetAppendixLetter() { return APPENDIX_LETTER; } /** * This method was created in VisualAge. * * @return java.lang.String. Document name value, e.g. "REGISTRATION DOCUMENT FOR USE OF * RECOMBINANT DNA MOLECULES". */ @Override protected String infoGetAppendixName() { return APPENDIX_NAME; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixFServlet.java | 139 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixGServlet.java | 136 |
.getAllByAppendixIdAndType(anAppendix.getId(), "AppendixF"); int siz = accesses.size(); for (int i = 0; i < siz; i++) { AppendixAccessControl ac = (AppendixAccessControl) accesses.elementAt(i); if (ac.getRid().intValue() == anAppendix.getCreatedBy().intValue()) { hasAccessForCreator = true; break; } } // make sure there is an 'edit' access control for creator if (!hasAccessForCreator) { AppendixAccessControl newAc = new AppendixAccessControl( anAppendix.getId(), anAppendix.getAppendixType() ); ServiceLocator.getAppendixAccessControlService().save(newAc); newAc.setRid(anAppendix.getCreatedBy()); newAc.setEditView(ACCESS_EDIT); ServiceLocator.getAppendixAccessControlService().save(newAc); // anAppendix.getAllAccessControlEntries().addElement(newAc.getPersistentObject()); } } catch (Exception e) { log.error("Exception saving appendix", e); } } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override protected String getRedirectUrl() { return AppendixFServlet.class.getName(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixGServlet.java | 132 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeServlet.java | 120 |
saveAppendixValues(anAppendix); boolean hasAccessForCreator = false; Vector accesses = ServiceLocator.getAppendixAccessControlService() .getAllByAppendixIdAndType(anAppendix.getId(), "G"); int siz = accesses.size(); for (int i = 0; i < siz; i++) { AppendixAccessControl ac = (AppendixAccessControl) accesses.elementAt(i); if (ac.getRid().intValue() == anAppendix.getCreatedBy().intValue()) { hasAccessForCreator = true; break; } } // make sure there is an 'edit' access control for creator if (!hasAccessForCreator) { AppendixAccessControl newAc = new AppendixAccessControl( anAppendix.getId(), anAppendix.getAppendixType() ); ServiceLocator.getAppendixAccessControlService().save(newAc); newAc.setRid(anAppendix.getCreatedBy()); newAc.setEditView(ACCESS_EDIT); ServiceLocator.getAppendixAccessControlService().save(newAc); // anAppendix.getAllAccessControlEntries().addElement(newAc.getPersistentObject()); } } catch (Exception e) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/pdf/PDFormComparison.java | 450 |
edu/columbia/rascal/presentation/common/pdf/PDFormComparison.java | 496 |
if ((value1.equals(" ")) && (value2.equals(""))) { fontStyle.setFillColor(java.awt.Color.black); fontStyle.setFont(new StandardFont(StandardFont.HELVETICA), 8); if (elementname.contains("drawLine")) { fontStyle.setLineColor(java.awt.Color.black); finalPDFConstruct1.drawLine(fontStyle, finalPDFConstruct1.getLeftPageMargin(), finalPDFConstruct1.getHeight(), finalPDFConstruct1.getPageWidth() - finalPDFConstruct1.getRightPageMargin(), finalPDFConstruct1.getHeight() ); finalPDFConstruct2.drawLine(fontStyle, finalPDFConstruct2.getLeftPageMargin(), finalPDFConstruct2.getHeight(), finalPDFConstruct2.getPageWidth() - finalPDFConstruct2.getRightPageMargin(), finalPDFConstruct2.getHeight() ); finalPDFConstruct1.setHeight(finalPDFConstruct1.getHeight() - 10); finalPDFConstruct2.setHeight(finalPDFConstruct2.getHeight() - 10); } else { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 325 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 313 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 338 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 337 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 454 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 328 |
prev.setLink(ConsentProtocolSearchPageServlet.class.getName() + "?DisplayPage=PreviousPage" ); prev.setIsBold(true); prev.setFontSize("+1"); prev.setFontName("Comic Sans MS"); prev.setFgColor("black"); // prev.setAlignment("LEFT"); pageControlRow.addElement(prev); } else { // Will be changed to add a hobo button with the left arrow String leftButton = ""; pageControlRow.addElement(leftButton); // Add the empty control to display the previous page prev = new CUHtmlText(""); pageControlRow.addElement(prev); } // Add the separator between the previous and next page control CUHtmlText separator = new CUHtmlText(""); separator.setIsBold(true); separator.setFontSize("+1"); pageControlRow.addElement(separator); if ((curBeginPos + curPageSize) < totalMatch) { // Add the text control to display the // next page if ((curBeginPos + (2 * maxPageSize) - 1) < totalMatch) { next = new CUHtmlText("Next " + maxPageSize + " matches"); } else { next = new CUHtmlText("Next " + curPageSize + " matches"); } next.setLink(ConsentProtocolSearchPageServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 250 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 478 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 574 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 735 |
} // Grab all the department names Map<String, String> departmentNames = rascalDepartmentService.getDeptNameByDeptNumbers(deptCodes); // Process the found users for (RascalUser user : users) { if (!processedUsers.containsKey(user.getId()) ) { dataMap = new HashMap<String, Object>(); dataMap.put("userid", user.getId()); dataMap.put("username", user.getUserFirstLastNameUni()); dataMap.put("firstname", user.getNameFirst()); dataMap.put("lastname", user.getNameLast()); dataMap.put("uni", user.getUserId()); String userEmail = user.getEmailPreferred(); dataMap.put("email", userEmail); String deptHome = user.getDeptHome(); dataMap.put("department", deptHome + "-" + departmentNames.get(deptHome)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbProtocolFileUploadController.java | 97 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolFileUploadExternalController.java | 96 |
} if (log.isDebugEnabled()) log.debug("get post here!" + attachment.getDocumentIdentifier()); Long protocolHeaderOid = (Long) WebUtils.getSessionAttribute(request, "protocolHeaderOid"); String msg = ""; if (protocolHeaderOid != null) { IrbProtocolHeader header = ServiceLocator.getIrbProtocolHeaderService().findById( protocolHeaderOid ); msg = validateUploadedFile(file); if (!file.isEmpty() && (header != null) && (msg.length() == 0)) { String contentType = file.getContentType(); String fileName = file.getOriginalFilename(); attachment.setIrbProtocolHeader(header); attachment.setFileName(fileName); attachment.setContentType(contentType); attachment.setDateCreated(new Date()); attachment.setDocumentIdentifier(documentIdentifier); attachment.setArchive("N"); attachment.setActive("Y"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolSearchView.java | 53 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 59 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 60 |
); addFields(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** Insert the method's description here. Creation date: (1/2/2003 11:34:23 AM) */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbQueueReviewerForChairServlet.java | 190 |
edu/columbia/rascal/presentation/irb/servlets/IrbQueueReviewerServlet.java | 261 |
if (eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) prot = e.getIrbProtocol(); return prot; } /** * TODO: DOCUMENT ME! * * @param event TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Hashtable getProtocolQueueRow(Vector event) { IrbProtocolHeader header = ServiceLocator.getIrbProtocolHeaderService().findById(Long .parseLong((String) event.elementAt(0)) ); Hashtable queueRow = new Hashtable(); queueRow.put("ProtocolOid", (header.getIrbProtocol().getId()).toString()); queueRow.put("ProtocolNumber", header.getIrbProtocol().getProtocolNumber()); queueRow.put("ModYear", (header.getModificationNumber()).toString()); queueRow.put("ProtocolYear", (header.getProtocolYear()).toString()); queueRow.put("PI", ServiceLocator.getRascalUserService().findById(header.getPI().getRid()) |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 449 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 351 |
} /** * Sets the note of this page. If aNote is a String, use the default note settings. if aNote is * CUHtmlText, override the default note settings. * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { if (aNote instanceof CUHtmlText) { note = (CUHtmlText) aNote; } else { if (aNote instanceof String) { CUHtmlMultiLineText aText = new CUHtmlMultiLineText((String) aNote); aText.setFontName(getDefaultFontName()); aText.setMaxChar(600); aText.setIsBold(false); aText.setIsItalic(true); aText.addBreaks(3); note = aText; } } } /** * Sets the subtitle of this page. If aSubTitle is a String, use the default subtitle settings. * if aSubTitle is CUHtmlText, override the default title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailEHSRequiredCourseTask.java | 295 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 83 |
message.append('\n'); } message.append("\nEvery member of the University community engaged in research is obligated to participate in the University’s training program and to maintain the currency of all required training courses."); message.append("\n\n"); message.append("\nFailure to complete or maintain current training while you are actively engaged in research is a violation of University policy and potentially of federal law."); message.append("\n\n"); message.append("\n------------------------------------------------"); message.append("\nHOW TO RETAKE YOUR REQUIRED COURSE(S) IN RASCAL:"); message.append("\n\n"); message.append("\n1.Go to the Rascal homepage at https://www.rascal.columbia.edu. "); message.append("\n2.Select 'Training Center' and login with your UNI and password. "); message.append("\n3. a. For EH&S courses ONLY, click on 'Safety Courses.' "); message.append("\n b. For all other courses, click on 'Course Listings.' "); message.append("\n4.Select the course listed above from the course listings. "); message.append("\n5.Read the Course Overview."); message.append("\n6.Click 'Take Course,' and read and follow any instructions. "); message.append("\n7.Once you have taken the course, click 'Take Test' to complete the course test. (Note: not all courses require a Rascal test; courses without tests will indicate 'This test has not been defined' in the sidebar menu.) "); message.append("\n"); message.append("\nTo check the status of your Rascal trainings at any time, including the completion and expiration dates of all of your completed Rascal courses: "); message.append("\n"); message.append("\n 1. Go to the Rascal homepage at https://www.rascal.columbia.edu. "); message.append("\n 2. Select 'My Rascal' and login with your UNI and password. "); message.append("\n 3. Click on 'My Test History' under Training Center. "); message.append("\n 4. Optional - Click on the blue button next to any course listed to generate a certificate for that "); message.append("\n course or the button at the bottom of the list to generate a full transcript for your records. "); message.append("\n"); message.append("\nTo de-activate this reminder - If you are no longer affiliated with Columbia University, or if the above training course is no longer applicable to your job duties, "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 327 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 419 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setLinkTarget("Main"); txt.setLink(link); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); v.addElement(""); v.addElement(txt); t.addRowFor(v); t.getCell(0, 0).setWidth("10%"); t.getCell(0, 0).setAlign("left"); t.getCell(0, 1).setWidth("90%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param link TODO: DOCUMENT ME! * @param aLabel = is the label that will be shown on the screen * @param target TODO: DOCUMENT ME! * * @return CUHtmlTable */ public CUHtmlTable getLinkedLabelFor(String link, String aLabel, String target) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 863 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalServlet.java | 468 |
} /** * TODO: DOCUMENT ME! * * @param theObjectName TODO: DOCUMENT ME! * @param theObjectOid TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getProtocolNumber(String theObjectName, long theObjectOid) { String num = ""; if (isProtocol(theObjectName)) { num = getEventObject(theObjectName, theObjectOid) .getProtocolNumber(); } else if (theObjectName.equals(IrbNameConstants.ADVERSE_EVENT)) { num = getEventObject(theObjectName, theObjectOid) .getProtocolNumber(); } else if (theObjectName.equals(IrbNameConstants.CLOSURE)) { num = getEventObject(theObjectName, theObjectOid) .getProtocolNumber(); } else if (theObjectName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { num = getEventObject(theObjectName, theObjectOid) .getProtocolNumber(); } return num; } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override public String getRedirectUrl() { return "edu.columbia.rascal.presentation.agenda.servlets.IrbAgendaMainMenuServlet"; } /** * @see edu.columbia.rascal.presentation.agenda.servlets.IrbAgendaAbstractServlet#getStatusNameFromRecommendedStatus(java.lang.String) */ @Override public String getStatusNameFromRecommendedStatus(String recommended) { String aString = ""; if (recommended.equals(IrbStatusConstants.APPROVE)) |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetryController.java | 474 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetrySummaryController.java | 415 |
@PathVariable(AGENT_TYPE) String agentType, @PathVariable(DOSE_ID) Long doseId, @ModelAttribute(DOSE) @Valid HzDosimetryDose hzDosimetryDose, BindingResult result, ModelMap modelMap) { Map<String, Object> response = new HashMap<String, Object>(); HzDosimetry hzDosimetry = hzDosimetryService.findById(dosimetryId); // Check Dosimetry if ( hzDosimetry == null ) { response.put("error","Could not find Dosimetry entry with ID " + dosimetryId); return response; } if ( result.hasErrors() ) { List<String> errors = new ArrayList<String>(); for ( ObjectError objectError : result.getAllErrors() ) { errors.add(objectError.getDefaultMessage()); } response.put("error", StringUtils.join(errors,", ")); return response; } hzDosimetryDoseService.save(hzDosimetryDose); return response; } /** * TODO: DOCUMENT ME! * * @param appendixId TODO: DOCUMENT ME! * @param dosimetryId TODO: DOCUMENT ME! * @param id TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ @RequestMapping( value = "/delete", |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucApprovedProtocolRptController.java | 103 |
edu/columbia/rascal/presentation/controller/iacuc/IacucApprovedProtocolWithPainRptController.java | 95 |
return new ModelAndView("iacucApprovedProtocolReportXLS", getModel(command)); } private List<Map<String, Object>> getApprovedProtocolData(ReportCommand command){ List<Map<String, Object>> jsonDataList = new ArrayList<Map<String,Object>>(); if (command.isNew()) return jsonDataList; Date startDate = command.getStartDate(); Date endDate = command.getEndDate(); if(startDate == null || endDate == null) return jsonDataList; Date sDate = startDate; sDate = DateUtils.addMonths(sDate, 6); if (endDate.after(sDate)) return jsonDataList; final String[] status = {IacucStatusConstants.KEY_ACTION_APPROVE, IacucStatusConstants.KEY_ACTION_DONE, IacucStatusConstants.KEY_ACTION_REINSTATE}; final List<String> statusList = Arrays.asList(status); List<IacucProtocolHeader> headers = iacucProtocolHeaderService.findApprovedProtocols(startDate, endDate,statusList); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 390 |
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 1295 |
query.append("AND staffPI.rid = ruPI.rid "); query.append("AND s1.parentObjectName = '"); query.append(IrbNameConstants.PROTOCOL_HEADER); query.append("' "); // query.append("AND iph.exempt = 'N' "); query.append(firstDateRangeGreaterThan); query.append(firstDateRangeLessThan); query.append(secondDateRangeGreaterThan); query.append(secondDateRangeLessThan); query.append(thirdDateRangeGreaterThan); query.append(thirdDateRangeLessThan); query.append("AND iph.oid = (select max(ph.oid) from IrbProtocolHeader ph, IrbStatus s2 "); query.append("where ip.oid = ph.parentProtocolOid "); query.append("and s2.parentObjectOid = ph.oid "); query.append("and s2.parentObjectName = '"); query.append(IrbNameConstants.PROTOCOL_HEADER); query.append("' and s2.statusName = '"); query.append(APPROVED); query.append("') "); query.append( "AND s1.oid = (select max(oid) from IrbStatus where parentObjectOid = iph.oid and parentObjectName = '" ); query.append(IrbNameConstants.PROTOCOL_HEADER); query.append("') "); query.append("AND s1.statusName != '"); query.append(EXPIRED); query.append("' AND staffPI.sequenceNumber = 1 "); // yueping insert here on 07/27/2004. If user already submitted a renewal protocol, then Do Not sent // email. query.append( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 464 |
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 1375 |
); List<Map<String, Object>> results = new ArrayList<Map<String, Object>>(); Map<String, Object> row; CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { List<Object[]> resultList = acc.executeNoParmPreparedQuery(query.toString()); for(Object[] result: resultList){ row = new HashMap<String, Object>(); row.put("protocolNumber", result[0]); if (result[1] != null) { row.put("title", result[1]); } else { row.put("title", ""); } row.put("expirationDate", result[2]); if (result[3] != null) { row.put("nameFirstPI", result[3]); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCTSACorrespondenceView.java | 149 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueCancerCenterCorrespondenceView.java | 149 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairCorrespondenceView.java | 194 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueNotifyCorrespondenceView.java | 145 |
); getAForm().add("</TR>"); int counter = 0; String rowColor; String lastEvent = ""; Vector info = null; String event = null; while (i-- > 0) { rowColor = getQueueHTMLRowColor(counter++); info = (Vector) v.elementAt(i); event = (String) info.elementAt(2); if (!event.equals(lastEvent)) { getAForm().add("<TR VALIGN=\"TOP\"><TD><HR WIDTH=\"100%\"></TD></TR>"); } setTableDataRow(info, rowColor); lastEvent = event; } getAForm().add("</TABLE></CENTER>"); } } /** * This method was created in VisualAge. * * @param v TODO: DOCUMENT ME! */ public void buildRowsAE(Vector v) { int i = v.size(); if (i > 0) { getAForm().add("<BR><CENTER>"); getAForm().add("<TABLE BORDER=\"0\" WIDTH=\"95%\" CELLPADDING=\"2\" CELLSPACING=\"0\">"); getAForm().add( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 84 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 135 |
Vector renewalResults, Vector closureResults, RascalUser aUser ) { super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); setForm(new CUHtmlForm("Form1", IrbQueueChairServlet.class.getName(), "POST")); setServletName(IrbQueueChairServlet.class.getName()); setMainTitle("IRB Protocol Administration"); setPageTitle("RASCAL IRB"); setSubTitle("IRB Chair Queue"); setRascalUser(aUser); getForm().add(getSubTitle()); if (!protocolResults.isEmpty()) { addQueueSection(protocolResults, IrbNameConstants.PROTOCOL); } if (!modificationResults.isEmpty()) { addQueueSection(modificationResults, IrbNameConstants.MODIFICATION); } if (!renewalResults.isEmpty()) { addQueueSection(renewalResults, IrbNameConstants.RENEWAL); } if (!closureResults.isEmpty()) { addQueueSection(closureResults, IrbNameConstants.CLOSURE); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 533 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyView.java | 539 |
html.append(createNestedChildTable(subSubtable, (String) hash.get("hid") ) ); html.append("</td>"); } else { html.append( "<td width=\"*\" align=\"left\" valign=\"top\"><table bgcolor=\"#aaaaaa\" cellspacing=\"1\" width=\"100%\">\n<thead>\n<tr>" ); for (int x = 0; x < objCols.size(); x++) { html.append( "<th bgcolor=\"#dfdfdf\"><font face=\"Verdana\" size=\"1\">" ); html.append(objectKeys.getColumnNames().elementAt(i)); html.append("</font></th>"); } html.append("</tr>\n</thead>\n<tbody>\n<tr>"); for (int y = 0; y < objCols.size(); y++) { html.append( "<td bgcolor=\"#ffffff\" align=\"left\" valign=\"top\"><font face=\"Verdana\" size=\"1\" color=\"#aaaaaa\">none</font></td>" ); } html.append("</tr>\n</tbody>\n</table></td>"); } } } html.append( "</tr>\n</tbody>\n</table>\n</td></tr>\n</tbody>\n</table>\n</td></tr>\n</tbody>\n</table>\n<br>\n\n" ); } } return html.toString(); } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public final CUHtmlForm getAForm() { return aForm; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getMasterTable() { return masterTable; } /** * TODO: DOCUMENT ME! * * @param input TODO: DOCUMENT ME! */ public void setMasterTable(CUHtmlTable input) { masterTable = input; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/pages/HzAppendixViewCorrespondenceView.java | 238 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceCreateView.java | 222 |
} /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getFontName() { return fontName; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public int getFontSize() { return fontSize; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getRowLabelForFontSize(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("2"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("100%"); t.getCell(0, 0).setAlign("right"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * Insert the method's description here. Creation date: (1/5/2006 2:55:58 PM) * * @param newAppendixHeader TODO: DOCUMENT ME! */ public void setAppendixHeader(HzAppendixHeader newAppendixHeader) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1046 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 684 |
} /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector<Object> v = new Vector<Object>(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>Specifies a non-default directory for help file in a different Rascal application. bw * 4/13/05</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * @param appDirectory = the string that represents the application directory of the help * html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source, String appDirectory) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportApprovalHistoryServlet.java | 202 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 277 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportStatusServlet.java | 258 |
) ); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); rows.sortByColumn(sortBy); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } if ((rows == null) || (rows.isEmpty())) { String link = "parent.frames[1].location='" + PtLinkFrameServlet.class.getName() + "?trakId=XXXX9999'"; String main = "parent.frames[2].location='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbReportEnterProtocolNumberView.java | 89 |
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolSearchView.java | 72 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolSearchView.java | 71 |
CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixIContrSubsView.java | 336 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIReportView.java | 847 |
personalTable.setWidth("100%"); cols.add(getTextWidgetFor("Drug or<br>Substance<br>Name", 1, true)); cols.add(getTextWidgetFor("<br>Schedule", 1, true)); cols.add(getTextWidgetFor("National<br>Drug Code<br>(NDC) #", 1, true)); cols.add(getTextWidgetFor("Maximum<br>Quantity<br>Stored", 1, true)); cols.add(getTextWidgetFor("Stored<br>Unit", 1, true)); cols.add(getTextWidgetFor("Storage<br>Physical<br>Form", 1, true)); cols.add(getTextWidgetFor("Storage<br>Concentration", 1, true)); cols.add(getTextWidgetFor("Maximum<br>quantity<br>used/Expt", 1, true)); cols.add(getTextWidgetFor("Lab<br>Use<br>Unit", 1, true)); cols.add(getTextWidgetFor("Lab use<br>physical<br>form", 1, true)); cols.add(getTextWidgetFor("Lab use<br>concentration", 1, true)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 997 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2297 |
aHeaderTable.setWidth("55%"); aHeaderTable.setCellPading(0); aHeaderTable.setCellSpacing(0); Vector elements = new Vector(); CUHtmlText aTextLabel = new CUHtmlText("Sort List By:"); aTextLabel.setFontSize("1"); aTextLabel.setFontName(getDefaultFontName()); elements.addElement(aTextLabel); Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList" + queueName, sortSelection ); elements.addElement(aListWidget); String onClick; if (queueName.equals("A") || queueName.equals("C")) onClick = "Javascript:getSortByValue1('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; else onClick = "Javascript:getSortByValue3('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; elements.addElement(new CUHtmlPushButton("BUTTON", "BUTTON", "Sort", onClick)); aHeaderTable.addRowFor(elements); aHeaderTable.getCell(0, 0).setWidth("15%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 1276 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 1454 |
if (name.equals(IrbNameConstants.PROTOCOL_HEADER)) { s.append("SELECT DISTINCT"); s.append(" a.oid AS oid1,"); // 1 s.append(" a.protocolNumber,"); // 2 s.append(" b.protocolYear,"); // 3 s.append(" b.modificationNumber,"); // 4 s.append(" d.name_last,"); // 5 s.append(" b.title,"); // 6 s.append(" b.oid AS oid2,"); // 7 s.append(" e.statusName,"); // 8 s.append(" f.oid AS oid3,"); // 9 s.append(" rat.type"); // 10 s.append(" FROM IrbProtocol a,"); s.append(" IrbProtocolHeader b,"); s.append(" IrbStaff c,"); s.append(" RASCAL_USER d,"); s.append(" IrbStatus e,"); s.append(" IrbApproval f,"); s.append(" RascalApprovalType rat"); s.append(" WHERE a.oid = b.parentProtocolOid"); s.append(" AND b.oid = c.irbProtocolHeaderId"); s.append(" AND (c.rid = d.rid(+)"); s.append(" AND c.sequenceNumber = 1)"); s.append(" AND (b.oid = e.parentObjectOid and b.deptApproversNotified = 'Y' "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 1567 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 1735 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2831 |
CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { /* Retrieve both sent and non-sent results */ // get Protocols (includes Modifications and Renewals) java.sql.ResultSet res = acc.executeQuery(getCorrespondenceSqlStringFor( "IrbProtocolHeader", IrbNameConstants.PROTOCOL_HEADER, committeeIdString, originQueue, aUser.getId() ) ); buildCorrespondenceResults(res, IrbNameConstants.PROTOCOL_HEADER, results); // getClosures res = acc.executeQuery(getCorrespondenceSqlStringFor("IrbClosure", IrbNameConstants.CLOSURE, committeeIdString, originQueue, aUser.getId() ) ); buildCorrespondenceResults(res, IrbNameConstants.CLOSURE, results); // getUnanticipate res = acc.executeQuery(getCorrespondenceSqlStringFor("IrbUnanticipatedProblem", IrbNameConstants.UNANTICIPATED_PROBLEM, committeeIdString, originQueue, aUser.getId() ) ); buildCorrespondenceResults(res, IrbNameConstants.UNANTICIPATED_PROBLEM, results); } catch (Exception e) { log.error("Exception while Running query", e); } results.setColumnNames(colNames); return results; } /** * RASCAL (halayn) Creation date: (4/26/2002 12:53:52 PM) * * @param aUser TODO: DOCUMENT ME! * @param committeeIdString TODO: DOCUMENT ME! * * @return Vector of results */ public static Vector getCancerCenterCorrespondenceForAdverseEventQueue(RascalUser aUser, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 244 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 321 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 243 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderSearchView.java | 141 |
aForm = new CUHtmlForm("Form1", HzAttestationSearchServlet.class.getName(), "POST"); } return aForm; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlTable getButtons() { EVector v = new EVector(); String space = ""; v.addElement(space); CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", " Search "); v.add(pb1); v.addElement(space); CUHtmlTable aTable = new CUHtmlTable(); aTable.addRowFor((Vector) v.clone()); aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("60%"); aTable.getCell(0, 1).setAlign("RIGHT"); // aTable.getCell(0,2).setWidth("40%"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.addBreaks(2); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentInternalServlet.java | 141 |
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentServlet.java | 143 |
ae = ServiceLocator.getIrbUnanticipatedProblemService().findById((Long.parseLong(aeOid))); Vector<IrbUnanticipatedAttachment> allAttachments = ServiceLocator .getIrbUnanticipatedProblemService().getAllAttachments(ae); int attachmentSize = allAttachments.size(); Vector allDocs = new Vector(attachmentSize); for (int i = 0; i < attachmentSize; i++) { IrbUnanticipatedAttachment anAttachment = allAttachments.elementAt(i); allDocs.addElement(Long.toString(anAttachment.getId())); } ArrayList pageDocs = new ArrayList(allDocs); ArrayList selected = getSelectedDocIds(); ArrayList nonSelected = new ArrayList(); int len = pageDocs.size(); for (int i = 0; i < len; i++) { if (!selected.contains(pageDocs.get(i))) { nonSelected.add(pageDocs.get(i)); } } return nonSelected; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private ArrayList getSelectedDocIds() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderCheckSubmitServlet.java | 153 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 82 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 82 |
HzHtmlView page = (HzHtmlView) getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 270 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 275 |
keyList.addElement("ProjectOfficer"); keyList.addElement(""); keyList.addElement("PI"); return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName(getDefaultFontName()); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setDownloadable(boolean aValue) { downloadable = aValue; } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setPrintable(boolean aValue) { printable = aValue; } /** * setSortBy. * * @param aValue TODO: DOCUMENT ME! */ public void setSortBy(String aValue) { sortBy = aValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 414 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 452 |
public CUHtmlTable getLinkedLabelFor(String link, String aLabel) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector<Object> v = new Vector<Object>(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setLinkTarget("Main"); txt.setLink(link); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); v.addElement(""); v.addElement(txt); t.addRowFor(v); t.getCell(0, 0).setWidth("10%"); t.getCell(0, 0).setAlign("left"); t.getCell(0, 1).setWidth("90%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param link TODO: DOCUMENT ME! * @param aLabel TODO: DOCUMENT ME! * @param target TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getLinkedLabelFor(String link, String aLabel, String target) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 163 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 292 |
setLastIndex(1); } /** * This method was created in VisualAge. * * @param aInputName java.lang.String * @param aValue java.lang.String * @param size TODO: DOCUMENT ME! * * @return CUHtmlTextEntry */ public Object getEditWidgetFor(String aInputName, String aValue, String size) { return new CUHtmlEntryField(aInputName, size, "60", aValue); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aInputName java.lang.String * @param aValue java.lang.String * @param aSize TODO: DOCUMENT ME! * @param aMax TODO: DOCUMENT ME! * * @return CUHtmlTextEntry */ @Override public Object getEditWidgetFor(String aInputName, String aValue, String aSize, String aMax ) { return new CUHtmlEntryField(aInputName, aSize, aMax, aValue); } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * <p>This method was created in VisualAge.</p> * * @param aLabel TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getHeadingLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); return txt; } /** * This method was created in VisualAge. * * @param source TODO: DOCUMENT ME! * * @return CUHtmlImage * * <p>answer a CUHtmlImage that points to the Help Html file.</p> */ public CUHtmlImage getHelpFor(String source) { CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("Help"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Cv/" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAttachOtherTopicForAgendaMainView.java | 42 |
edu/columbia/rascal/presentation/lookup/pages/RascalDepartmentLookupMainView.java | 34 |
public void addFields() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getInputServletString()); f1.setName("Input"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); /* Do Not Initialize the Output Frame's Source */ f2.setSrc(getOutputServletString()); f2.setName("Output"); f2.setNoResize("NO"); f2.setScrolling("YES"); f2.setMarginHeight("0"); f2.setMarginWidth("0"); v.addElement(f1); v.addElement(f2); frames.add(v); frames.setRows("30%,*"); frames.setColumns("*"); frames.setBorder("1"); frames.setFramespacing("0"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 848 |
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 225 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 182 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 163 |
txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelLeftFor(String aLabel) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 864 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3095 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4271 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5174 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5646 |
aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); // current status Name if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 955 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3004 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3489 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4179 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5085 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5554 |
aBuffer.append(IrbNameConstants.ADVERSE_EVENT); aBuffer.append("')) order by currentStatus.statusDate DESC"); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // eventOid row.addElement(res.getString(2)); // current status Name if (res.getDate(3) == null) // date reviewed { row.addElement(""); } else { row.addElement(res.getDate(3)); } row.addElement(Integer.valueOf((new Float(res.getFloat(4))).intValue()).toString()); // reviewerOid |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerForChairView.java | 294 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerView.java | 392 |
if (isPending) columns.addElement(getWidgetFor("PND")); else columns.addElement(""); // data sheet viewDataSheet = new CUHtmlImage("/images/popup.gif"); viewDataSheet.setBorderWidth(0); viewDataSheet.setAlt("Data Sheet"); viewDataSheet.setLink("''"); viewDataSheet.setOnClick(getServletLinkFor(protNumber, parentOid, eventName, protocolOid ) ); columns.addElement(viewDataSheet); // Notes addNote = new CUHtmlImage("/images/popup.gif"); addNote.setBorderWidth(0); addNote.setAlt("AddNote"); addNote.setLink("''"); addNote.setOnClick("return openNew('" + IrbNotesServlet.class.getName() + "?parentOid=" + parentOid + "&&parentName=" + eventName + "&&protocolNumber=" + currentRow.get("ProtocolNumber") + "','AddReviewNotes','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width=600,height=300')" ); columns.addElement(addNote); // PI columns.addElement(getWidgetFor((String) currentRow.get("PI"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalRascalResultsDisplayView.java | 104 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalResultsDisplayView.java | 146 |
row = new Vector<Object>(4); t.addRowFor(row); int ceiling = pageSize + (beginPos - 1); if (ceiling > totalMatch) ceiling = totalMatch; int floor = (beginPos - 1); if (floor < 0) floor = 0; if (floor > totalMatch) floor = totalMatch; // Add the document list in the current page of search results for (int i = floor; i < ceiling; i++) { // TRAK ID AND TITLE Vector<Object> v = (Vector<Object>) resultPage.elementAt(i); String titleString = "PT-" + v.elementAt(2) + " - " + v.elementAt(1); int maxTitle = ((titleString.length() > 71) ? 71 : titleString.length()); titleString = titleString.substring(0, maxTitle); CUHtmlText title = new CUHtmlText(titleString); title.setLink("Javascript:onClick=parent.frames[2].location.href='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/validators/irb/IrbClosureInformationValidator.java | 42 |
edu/columbia/rascal/presentation/validators/irb/IrbClosureInformationValidator.java | 61 |
if (StringUtils.equalsIgnoreCase(closure.getAdminClosure(), "Y")) { if(StringUtils.isBlank(closure.getDelayedApproval()) && StringUtils.isBlank(closure.getLackOfFunding()) && StringUtils.isBlank(closure.getPoorEnrollment()) && StringUtils.isBlank(closure.getClosedBySponsor()) && StringUtils.isBlank(closure.getDelayedIRBApproval()) && StringUtils.isBlank(closure.getStudyCompleted()) && StringUtils.isBlank(closure.getPiLeft()) && StringUtils.isBlank(closure.getResearcherLeft()) && StringUtils.isBlank(closure.getOther())) { ValidationUtils.rejectIfEmptyOrWhitespace(errors, "other", null, REQUIRED_FIELD_MESSAGE); } if(StringUtils.equalsIgnoreCase(closure.getOther(), "Y")) { ValidationUtils.rejectIfEmptyOrWhitespace(errors, "otherReason", null, REQUIRED_FIELD_MESSAGE); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 452 |
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 225 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 182 |
txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param link TODO: DOCUMENT ME! * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String link, String aLabel, String source) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 435 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaProtocolEventBusinessView.java | 300 |
titles.addElement("Agenda number"); titles.addElement("Meeting Date"); titles.addElement("Outcome"); int size = titles.size(); for (int i = 0; i < size; i++) { aTitle = new CUHtmlText((String) titles.elementAt(i)); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("center"); } } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param event TODO: DOCUMENT ME! * @param attribute TODO: DOCUMENT ME! */ public void setBusinessMeetingTableDataRow(CUHtmlTable aTable, IrbAgendaEvent event, IrbMeetingAttributes attribute ) { CUHtmlTableRow a01Row = new CUHtmlTableRow(); CUHtmlTableRow a02Row = new CUHtmlTableRow(); CUHtmlTableRow b01Row = new CUHtmlTableRow(); CUHtmlTableRow b02Row = new CUHtmlTableRow(); IrbAgendaHeader agHeader = ServiceLocator.getIrbAgendaHeaderService().getHeaderByOid( |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 263 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 213 |
getForm().add(aTable); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 1); aTable.setCellSpacing(0); aTable.setCellPadding(0); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE_TITLE + " "), "200", "left" ); CUHtmlTableCell aCell2 = utilGetHtmlTableCell(fieldGet_ShortTitle("title", defaultValue), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE_SPECIES + " "), "200", "left"); aCell2 = utilGetHtmlTableCell(fieldGet_subjectSpecies("subject", defaultValue), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1409 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1883 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 503 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 462 |
columns.setElementAt(getLogo(), 0); columns.setElementAt(getMainTitle(), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(0, 0).setWidth("30%"); aTable.getCell(0, 0).setVAlign("CENTER"); aTable.getCell(0, 0).setAlign("RIGHT"); aTable.getCell(0, 1).setVAlign("CENTER"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.setBorderWidth(0); return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private CUHtmlText getMainTitle() { if (mainTitle == null) { CUHtmlText aText = new CUHtmlText("Main Title was not defined"); aText.setHeaderLevel("1"); aText.setFontName(getDefaultFontName()); aText.setAlignment("center"); mainTitle = aText; } return mainTitle; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 235 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 395 |
row.setElementAt(name, 2); row.setElementAt(res.getString(6), 3); // title row.setElementAt(res.getString(5), 4); // PI row.setElementAt(String.valueOf(res.getLong(7)), 5); // event oid if (res.getString(8) == null) { row.setElementAt("", 6); } else { row.setElementAt(res.getString(8), 6); } row.setElementAt(String.valueOf(res.getLong(9)), 7); // correspondence oid row.setElementAt(String.valueOf(res.getLong(10)), 8); // recipient oid row.setElementAt(res.getString(11), 9); // correspondence Author row.setElementAt(res.getString(12), 10); // current statusName |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCMainMenuView.java | 272 |
edu/columbia/rascal/presentation/tc/views/TCMainMenuView.java | 325 |
aCell.setAlign("left"); aRow.add(aCell); // Date Taken aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.get("datePassed"), 1, false)); aCell.setAlign("center"); aRow.add(aCell); // Date Due aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.get("dateDue"), 1, false)); aCell.setAlign("center"); aRow.add(aCell); aTable.add(aRow); } aTable.getCell(0, 0).setWidth("60%"); aTable.getCell(0, 1).setWidth("20%"); aTable.getCell(0, 2).setWidth("10%"); aTable.getCell(0, 3).setWidth("10%"); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! */ private void addExpiredCourses( List<Map<String,Object>> expiredCourses, |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 888 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 411 |
} } } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue edu.columbia.rascal.presentation.user.business.objects.RascalUser */ public void setRascalUser(RascalUser newValue) { this.rascalUser = newValue; } /** * This method was created in VisualAge. Sets the subtitle of this page. If aSubTitle is a * String, use the default subtitle settings. if aSubTitle is CUHtmlText, override the default * title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { // FIXME XSS // String result = req.getParameter(parName); String result = HtmlUtils.htmlEscape(req.getParameter(parName)); return (result.equals("")) ? null : result; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private EVector getDefaultMainFooter() { EVector result = new EVector(); result.add(getRuler()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 3262 |
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 695 |
if (((sqlStr != null) && (sqlStr.trim().length() > 0))) { if (sqlStr.contains("\'")) { StringBuilder outSqlStrBuf = new StringBuilder(); boolean beginWithSingleQuote = sqlStr.indexOf("\'") == 0; boolean endWithSingleQuote = sqlStr.charAt(sqlStr.length() - 1) == '\''; if (beginWithSingleQuote) { outSqlStrBuf.append("\'\'"); } StringTokenizer aTokenizer = new StringTokenizer(sqlStr, "\'"); while (aTokenizer.hasMoreTokens()) { outSqlStrBuf.append(aTokenizer.nextToken()); outSqlStrBuf.append("\'\'"); } if (endWithSingleQuote) { outSqlStr = outSqlStrBuf.toString(); } else { int length = outSqlStrBuf.length(); outSqlStr = outSqlStrBuf.substring(0, length - 2); } } else { outSqlStr = sqlStr; } } return outSqlStr; } /** * TODO: DOCUMENT ME! * * @param str TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public boolean isNotEmpty(String str) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 318 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 272 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 327 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 741 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 519 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 705 |
ppeLabel = (getOwnerSurrogate().getSubject().equals("Human")) ? REC_PPE_IRB : REC_PPE_IACUC; ppeLabel = ppeLabel + ":"; } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(ppeLabel, defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedPpe() == null) ? "" : getTracker().getRecommendedPpe(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); // Safety Officer's General Comments aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(APPROVER_NOTES + ":", defaultFontSize, false, false), |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1656 |
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1697 |
t.setWidth("200"); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(false); txt.setAlignment("left"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("left"); t.getCell(0, 0).setVAlign("center"); t.getCell(0, 1).setWidth("5%"); t.getCell(0, 1).setVAlign("center"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelLeftFor(String aLabel, String source, String width) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 229 |
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 424 |
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 1339 |
); query.append("AND s.parentObjectName = '"); query.append(IrbNameConstants.PROTOCOL_HEADER); query.append("' AND s.statusName not in ('"); query.append(CREATING); query.append("','"); query.append(WITHDRAW); query.append( "') AND s.oid = (select max(oid) from IrbStatus where parentObjectOid = header.oid and parentObjectName = '" ); query.append(IrbNameConstants.PROTOCOL_HEADER); query.append("') "); query.append(" AND header.creationDate > iph.creationDate ) "); // insert end */ query.append( "AND ip.oid not in (select prot.oid from IrbClosure t, IrbStatus s3, IrbProtocol prot " ); query.append( "where t.parentProtocolOid = prot.oid and s3.parentObjectOid = t.oid and s3.parentObjectName = '" ); query.append(IrbNameConstants.CLOSURE); query.append("' and s3.statusName = '"); query.append(APPROVED); // yueping insert on 06/07/2006 if it is not human subject, need not sent email. query.append( "') AND ip.oid not in (select prot.oid from IrbProtocolHeader t, IrbStatus s3, IrbProtocol prot " ); query.append( "where t.parentProtocolOid = prot.oid and s3.parentObjectOid = t.oid and s3.parentObjectName = '" ); query.append(IrbNameConstants.PROTOCOL_HEADER); query.append("' and s3.statusName in ('"); query.append(NOT_HUMAN_SUBJECTS_RESEARCH); query.append("','"); query.append(NOT_HUMAN_SUBJECTS_RESEARCH_UNDER45CFR46); // mb add facility for cancer center in order to add cancer-center wide email query.append( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3773 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3909 |
); aBuffer.append("and (b.oid = e.parentObjectOid and e.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') and (e.statusName = '"); aBuffer.append(DISTRIBUTED); aBuffer.append("' OR e.statusName = '"); aBuffer.append(ASSIGNED_TO_MEETING); aBuffer.append( "') and e.oid = (select max(oid) from IrbStatus x where b.oid = x.parentObjectOid and x.parentObjectName = '" ); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') and f.statusOid = s.oid and s.statusName = '"); aBuffer.append(LOGGED_IN); aBuffer.append("' and (b.oid = s.parentObjectOid and s.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("') and f.whoRid ="); aBuffer.append(whoAmI.getId()); aBuffer.append(" and f.type = '"); aBuffer.append(reviewerType); aBuffer.append( "' and att.agendaEventId = (select max(ev.oid) from IrbAgendaEvent ev where ev.eventType = '" ); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and ev.eventOid = b.oid) "); aBuffer.append("and att.recommendedStatus = '"); aBuffer.append(PENDING); aBuffer.append("') order by a.protocolNumber"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolSearchView.java | 56 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 60 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolSearchView.java | 55 |
render(); } //~ Methods ------------------------------------------------------------------------------------ /** Insert the method's description here. Creation date: (1/2/2003 11:34:23 AM) */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterMemberView.java | 127 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 123 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 127 |
aRow.add(aCell2); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!getPrintable()) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton( "BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + PtReportAdministrativeMenuServlet.class.getName() + "';" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows) { CUHtmlTable t = new CUHtmlTable(); t.setCellPadding(0); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 434 |
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1555 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2032 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 147 |
} /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * <p>This method was created in VisualAge.</p> * * @param aLabel TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 189 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 207 |
} else if (name.equals(ADVERSE_EVENT) || name.equals(UNANTICIPATED_PROBLEM)) { row.put("EventOid", Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString() ); // oid row.put("ProtocolNumber", res.getString(2)); // protocol number row.put("Title", res.getString(3)); // subjectIdentifier row.put("PI", res.getString(4)); // PI name last if (res.getDate(5) == null) // date submitted { row.put("Date", ""); } else { row.put("Date", res.getDate(5)); } row.put("ParentProtocolOid", Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString() ); // protocol parent } else if (name.equals(CLOSURE)) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderQuestionView.java | 260 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderQuestionView.java | 454 |
); columns.setElementAt("", 0); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); if (answerRequired) { if (isEmpty(questionPrompt)) { questionPrompt = "*" + questionText; } else { questionPrompt = "*" + questionPrompt; } } else { if (isEmpty(questionPrompt)) { questionPrompt = questionText; } } if (isEmpty(helpFileName)) { aTable.getCell(row, 0).add(getRowLabelLeftFor( questionPrompt ) ); } else { aTable.getCell(row, 0).add(getRowLabelLeftFor( questionPrompt, helpFileName ) ); } aTable.getCell(row, 0).setVAlign("top"); aTable.getCell(row, 1).setColumnsToSpan(numCells - 1); row++; break; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceDispositionView.java | 730 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceDispositionView.java | 523 |
i.setOnClick("return openNew('" + IrbCorrespondenceRespondServlet.class.getName() + "?correspondenceOid=" + getCorrespondence().getId() + "&&recipientOid=" + theRecipientOid + "&&eventType=" + getTheEventType() + "&&incoming=" + getTheIncoming() + "&&" + lineParams + "','AddRespondCorrespondence','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width=600,height=450')"); CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(i); cell2.setAlign("center"); aRow.add(cell2); CUHtmlTableCell cell3 = new CUHtmlTableCell(); cell3.add(getRowLabelLeftFor("(will remove from queue)")); aRow.add(cell3); setOnLoad(""); aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("5%"); aTable.getCell(0, 2).setWidth("55%"); aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! */ public void setReviewerAllLink(CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getRowLabelFor("Review All Messages")); cell1.setAlign("left"); aRow.add(cell1); // a link to the pop up window for data entry CUHtmlImage i = new CUHtmlImage("/images/popup.gif"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 239 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 244 |
return new CUHtmlList(items, label, "3", true, selections); } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getReportRangeWidget() { EVector list = new EVector(); list.addElement("Day"); list.addElement("Week"); list.addElement("Month"); list.addElement("Quarter"); getLabel("range"); return getSingleSelectWidgetFor(list, "Month"); } /** * @see edu.columbia.rascal.presentation.irb.pages.IrbHtmlView#getSingleSelectWidgetFor(edu.columbia.rascal.presentation.common.EVector, * java.lang.String) */ @Override public Object getSingleSelectWidgetFor(EVector items, String selectedItem) { EVector v = null; if (!selectedItem.equals("")) { v = new EVector(1); v.add(selectedItem); return new CUHtmlList(items, getLabelName(), "1", false, v); } else { return new CUHtmlList(items, getLabelName(), "1", false); } } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Vector getStatusList() { IrbStatusEngine eng = new IrbStatusEngine(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/HzAttestationSearchServlet.java | 110 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolAdminChairSearchServlet.java | 106 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolRascalSearchServlet.java | 104 |
} catch (CURascalParseException e) { handleException(e); return; } if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new HzAttestationResultDisplayView(pageInfo.getDisplayPage(), |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportActiveApprovedProtocolSearchServlet.java | 48 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportInProcessProtocolSearchServlet.java | 48 |
return new IrbReportActiveApprovedProtocolSearchView(getUser(), from); } catch (Exception e) { return new IrbMessageView("You are not authorized to view this report."); } } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void submit() { String uni = (getRequestParameter("uni") == null) ? "" : getRequestParameter("uni").trim(); String department = (getRequestParameter("department") == null) ? "" : getRequestParameter("department").trim(); if (uni.equals("") && department.equals("")) { IrbMessageView mv = new IrbMessageView("You must enter a UNI and/or a department code."); mv.draw(getResponse()); } getSession().setAttribute("uni", uni); getSession().setAttribute("department", department); String fromwhere = (String) getSession().getAttribute("aapReportComeFrom"); redirectTo(IrbReportActiveApprovedProtocolServlet.class.getName() + "?from=" + fromwhere); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 101 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportProjectOfficerActivityView.java | 91 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 84 |
if (!getDownloadable()) { addHeader(); getForm().add(addDate()); getForm().add("<br>"); getForm().add(addDateRange()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( getKeywordListForColumns(columns), |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 462 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 667 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 812 |
) { CUHtmlTableRow a01Row = new CUHtmlTableRow(); CUHtmlTableRow a02Row = new CUHtmlTableRow(); CUHtmlTableRow b01Row = new CUHtmlTableRow(); CUHtmlTableRow b02Row = new CUHtmlTableRow(); IrbAgendaHeader agHeader = ServiceLocator.getIrbAgendaHeaderService().getHeaderByOid( event.getIrbAgendaHeader().getId().toString() ); // Agenda Number CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getRowLabelLeftFor(agHeader.getAgendaNumber())); cell0.setAlign("left"); cell0.setVAlign("top"); // cell0.setWidth("15%"); a01Row.add(cell0); // Meeitng Date CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getRowLabelLeftFor(CalendarTransformer.formatMMDDYYYY(agHeader.getMeetingDate()))); cell1.setAlign("left"); cell1.setVAlign("top"); // cell1.setWidth("15%"); a01Row.add(cell1); // Abstract CUHtmlTableCell cell2 = new CUHtmlTableCell(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 3262 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixSearchParmsEntryServlet.java | 98 |
edu/columbia/rascal/presentation/propTrak/jdbc/PtSearchQuery.java | 670 |
if (((sqlStr != null) && (sqlStr.trim().length() > 0))) { if (sqlStr.contains("\'")) { StringBuilder outSqlStrBuf = new StringBuilder(); boolean beginWithSingleQuote = sqlStr.indexOf("\'") == 0; boolean endWithSingleQuote = sqlStr.charAt(sqlStr.length() - 1) == '\''; if (beginWithSingleQuote) { outSqlStrBuf.append("\'\'"); } StringTokenizer aTokenizer = new StringTokenizer(sqlStr, "\'"); while (aTokenizer.hasMoreTokens()) { outSqlStrBuf.append(aTokenizer.nextToken()); outSqlStrBuf.append("\'\'"); } if (endWithSingleQuote) { outSqlStr = outSqlStrBuf.toString(); } else { int length = outSqlStrBuf.length(); outSqlStr = outSqlStrBuf.substring(0, length - 2); } } else { outSqlStr = sqlStr; } } return outSqlStr; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 445 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 619 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 329 |
aTitle1 = getTableColumnName("F"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Strong Radio Frequency aTitle1 = getTableColumnName("SRF"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // XRay aTitle1 = getTableColumnName("XRay"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param rowCount int * @param queueItem Hashtable */ public void setAnimalCareQueueViewTableDataRow(CUHtmlTable aTable, int rowCount, Hashtable queueItem ) { int colNum = 0; CUHtmlTableCell aCell; // Protocol Number aCell = aTable.getCell(rowCount, colNum); String protocolNumb = (String) queueItem.get(KEY_PROTOCOL_NO); String protocolOid = (String) queueItem.get(KEY_PROTOCOL_OID); CUHtmlText protocolNumbTxt = getLinkToReviewIacucProtocol("AC-" + protocolNumb, protocolOid); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 727 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 964 |
aTitle1 = getTableColumnName("F"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Strong Radio Frequency aTitle1 = getTableColumnName("SRF"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // XRay aTitle1 = getTableColumnName("XRay"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param rowCount int * @param queueItem Hashtable */ public void setIrbQueueViewTableDataRow(CUHtmlTable aTable, int rowCount, Hashtable queueItem) { int colNum = 0; CUHtmlTableCell aCell; // Protocol Number aCell = aTable.getCell(rowCount, colNum); String protocolNumb = (String) queueItem.get(KEY_PROTOCOL_NO); String protocolOid = (String) queueItem.get(KEY_PROTOCOL_OID); CUHtmlText protocolNumbTxt = getLinkToReviewIrbProtocol("IRB-" + protocolNumb, protocolOid); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 295 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 334 |
aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE_VACCINE), "300", "left"); aCell2 = utilGetHtmlTableCell(fieldGet_8C_SubjectICMVaccine("8c", defaultValue), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE_VACCINE_TEXT), "300%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE_VACCINE_YN), "300", "left"); aCell2 = utilGetHtmlTableCell(fieldGet_Vaccine_YN("vaccYN"), "500", "left" ); aCell2.setVAlign("bottom"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE1), "100%", getTitleAlign()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbUnanticipatedFileUploadController.java | 88 |
edu/columbia/rascal/presentation/controller/irb/IrbUnanticipatedFileUploadInternalController.java | 89 |
} if (log.isDebugEnabled()) log.debug("get post here!" + attachment.getDocumentIdentifier()); long protocolOid = (Long) WebUtils.getSessionAttribute(request, "unanticipatedOid"); String msg = ""; IrbUnanticipatedProblem header = ServiceLocator.getIrbUnanticipatedProblemService() .findById(protocolOid); msg = validateUploadedFile(file); if (!file.isEmpty() && (header != null) && (msg.length() == 0)) { String contentType = file.getContentType(); String fileName = file.getOriginalFilename(); attachment.setContentType(contentType); attachment.setIrbUnanticipatedProblem(header); attachment.setFileName(fileName); attachment.setDateCreated(new Date()); attachment.setDocumentIdentifier(documentIdentifier); attachment.setArchive("N"); attachment.setInternalFlag("N"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse30DaysWarningTask.java | 261 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 244 |
CURascalEmailMessage email = null; try { email = new TCGeneralEmailMessage(recipientName, recipientEmail, subject, listOfRecipients.toString(), dbLocation ); } catch (Exception e) { log.error("Exception while generating TC general email message.", e); } CURascalEmailSender sender = new CURascalEmailSender(); try { // log.info("About to open connection."); sender.openConnection(); log.info("Attempting to email: " + recipientName); log.info(" Address to be sent to: " + recipientEmail); sender.sendEmail(email); // log.info("Email sent."); } catch (Exception e) { log.error("Exception while sending email.", e); } finally { sender.closeConnection(); } } String logMessage = listOfRecipients.toString(); if ((logMessage == null) || logMessage.equals("")) logMessage = " Email started on " + CalendarTransformer.toDateTimeString(Calendar.getInstance()) + ", No record was found. "; writeToLogFile(RASCAL_REQUIREDCOURSE_30_WARNING_LOG, logMessage); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseExpireTask.java | 300 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseNotifyTask.java | 294 |
CURascalEmailMessage email = null; try { email = new TCGeneralEmailMessage(recipientName, recipientEmail, subject, listOfRecipients.toString(), dbLocation ); } catch (Exception e) { log.error("Exception generating email message.", e); } CURascalEmailSender sender = new CURascalEmailSender(); try { // log.info("About to open connection."); sender.openConnection(); log.info("Attempting to email: " + recipientName); log.info(" Address to be sent to: " + recipientEmail); sender.sendEmail(email); // log.info("Email sent."); } catch (Exception e) { log.error("Exception sending email.", e); } finally { sender.closeConnection(); } } String logMessage = listOfRecipients.toString(); if ((logMessage == null) || logMessage.equals("")) logMessage = " Email started on " + CalendarTransformer.toDateTimeString(Calendar.getInstance()) + ", No record was found. "; writeToLogFile(RASCAL_REQUIREDCOURSE_EXPIRE_LOG, logMessage); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptInactiveView.java | 110 |
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptView.java | 116 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 117 |
edu/columbia/rascal/presentation/tc/views/TCReportTestRequirementExceptionView.java | 108 |
getKeywordListForColumns(new Vector<Object>()), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionForTestLocationView.java | 71 |
edu/columbia/rascal/presentation/tc/views/TCReportTestSelectionView.java | 72 |
setDefaultMainHeader(); aForm.add(getSubTitle()); aForm.add("<br>"); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.setWidth("70%"); aForm.add("<div align=\"center\">"); aForm.add(aTable); aForm.add("<br><br>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("</div>"); setBgColor("white"); add(aForm); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector<Object> columns = new Vector<Object>(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; aWidget = getDeptNameWidget(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 322 |
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 364 |
public CUHtmlTable getLinkedLabelFor(String link, String aLabel) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setLinkTarget("Main"); txt.setLink(link); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); v.addElement(""); v.addElement(txt); t.addRowFor(v); t.getCell(0, 0).setWidth("10%"); t.getCell(0, 0).setAlign("left"); t.getCell(0, 1).setWidth("90%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param link TODO: DOCUMENT ME! * @param aLabel = is the label that will be shown on the screen * @param target TODO: DOCUMENT ME! * * @return CUHtmlTable */ public CUHtmlTable getLinkedLabelFor(String link, String aLabel, String target) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 805 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 828 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 850 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 873 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 895 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 917 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 940 |
row.put("Event Name", IrbNameConstants.PROTOCOL_HEADER); row.put("Committee", (((Integer.valueOf((new Float(res.getFloat(1))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()) ); row.put("Count", (((Integer.valueOf((new Float(res.getFloat(2))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(2))).intValue()).toString()) ); results.add(row); row = new Hashtable(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 337 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 345 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFShortDataSheetView.java | 181 |
if (eventName.startsWith("Protocol") || eventName.startsWith("Modification") || eventName.startsWith("Renewal") ) { eventName = "ProtocolHeader"; protHeader = ServiceLocator.getIrbProtocolHeaderService().findById(eventOid); protocolNumber = protHeader.getProtocolNumber(); title = protHeader.getTitle(); } else { // adverseEvent, closure, expendedAccess, unanticipate IrbTraceableBusinessObject object = ServiceLocator.getIrbProtocolService() .getParentObject(eventName, eventOid + "", getRascalUser()); if (object != null) { protocolNumber = object.getProtocolNumber(); protHeader = ServiceLocator.getIrbProtocolService() .getLastApprovedProtocolHeader(object.getIrbProtocol()); if (protHeader == null) protHeader = ServiceLocator.getIrbProtocolService() .getLastExpiredProtocolHeader(object.getIrbProtocol()); } if (eventName.equals("AdverseEvent")) { title = ""; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1995 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1608 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param year TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getYearWidget(String fieldName, int year) { int startYear = year - 5; String selectedYear = ""; if (year == 0) { Calendar now = Calendar.getInstance(); now.add(Calendar.YEAR, -5); startYear = now.get(Calendar.YEAR); } Vector list = new Vector(); list.addElement(""); for (int i = 0; i < 11; i++) { list.addElement((Integer.valueOf(startYear + i)).toString()); } if (year > 0) { selectedYear = (Integer.valueOf(year)).toString(); } getLabel(fieldName); return getSingleSelectWidgetFor(list, selectedYear); } /** Iterate through the collection of object and fires the relevant 'add' method. */ public void render() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixFReportServlet.java | 59 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixGReportServlet.java | 59 |
return new AppendixFReportView(anAppendix); } /** * This method was created in VisualAge. * * @return int */ public int getAppendixCode() { return APPENDIX_CODE_F; } /** * This method was created in VisualAge. * * @return java.lang.String */ @Override public String getAppendixType() { return APPENDIX_LETTER; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CURascalHtmlView getPage() { setAppendixType(APPENDIX_LETTER); String msg = "Appendix " + APPENDIX_LETTER; // if displaying an appendix that is attached to an owning object, get essential data // contained in the owner's surrogate (AppendixOwnerSurrogate) AppendixOwnerSurrogate ownerSurrogate = findOwnerSurrogate(); AppendixTracking aTracker = getAppendixTracking(ownerSurrogate); String appendixOid = getAppendixOid(ownerSurrogate, aTracker); if (isEmpty(appendixOid)) { return new AppendixMessageView( msg + " was not correctly identified. Rascal could not retrieve it.", "window.close();", "" ); } String isProposal = null; isProposal = getLineParameter("isProposal"); if (isProposal == null) { isProposal = "false"; } String msgExtension = validateAppendix(ownerSurrogate, appendixOid); if (!isEmpty(msgExtension)) { return new AppendixMessageView( msg + msgExtension, "window.close();", "" ); } AbstractAppendix anAppendix = ServiceLocator.getAppendixFService().findById(Long.valueOf( |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/views/CURascalErrorMessageView.java | 36 |
edu/columbia/rascal/presentation/common/views/CURascalErrorMessageView.java | 89 |
public CURascalErrorMessageView(Exception e) { super(); if (e != null) log.error("", e); setBgColor("#FFFFFF"); setBackground("/images/blu.jpg"); String m = e.toString() + ": " + e.getMessage(); setPageTitle("Rascal Error Message"); CUHtmlImage i = new CUHtmlImage("/images/rascaldog.gif"); i.setBorderWidth(0); add(i); CUHtmlText s2 = new CUHtmlText( "Rascal has encountered an error. Please call us at 212-851-0213 or send an email with this TimeStamp: " + formatCurrTime() + " and a brief description of what you were attempting to do to " ); s2.setFontSize("+2"); CUHtmlText s3 = new CUHtmlText("Rascal Help."); s3.setFontSize("+2"); s3.setLink( "'mailto:rascal@columbia.edu?subject=A Rascal error has occurred&&body=" + m + "'" ); CUHtmlText s4 = new CUHtmlText(" We apologize for the inconvenience."); s4.setFontSize("+2"); s4.addSpace(); CUHtmlText errorMessage = new CUHtmlText( "Problem Description(for the Rascal Technical Team) (Error TimeStamp: " + formatCurrTime() + " ) :<BR>" + m |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 327 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 315 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 340 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 339 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 456 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 330 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalProposalResultsDisplayView.java | 283 |
); prev.setIsBold(true); prev.setFontSize("+1"); prev.setFontName("Comic Sans MS"); prev.setFgColor("black"); // prev.setAlignment("LEFT"); pageControlRow.addElement(prev); } else { // Will be changed to add a hobo button with the left arrow String leftButton = ""; pageControlRow.addElement(leftButton); // Add the empty control to display the previous page prev = new CUHtmlText(""); pageControlRow.addElement(prev); } // Add the separator between the previous and next page control CUHtmlText separator = new CUHtmlText(""); separator.setIsBold(true); separator.setFontSize("+1"); pageControlRow.addElement(separator); if ((curBeginPos + curPageSize) < totalMatch) { // Add the text control to display the // next page if ((curBeginPos + (2 * maxPageSize) - 1) < totalMatch) { next = new CUHtmlText("Next " + maxPageSize + " matches"); } else { next = new CUHtmlText("Next " + curPageSize + " matches"); } next.setLink(ConsentProtocolSearchPageServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2001 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 996 |
} /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public RascalUser getRascalUser() { return rascalUser; } /** * answer a CUHtmlImage that points to the Help Html file. * * @param source TODO: DOCUMENT ME! * * @return answer a CUHtmlImage that points to the Help Html file. */ public CUHtmlImage getReportHelpFor(String source) { CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("Help"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Rpt/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("right"); return i; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * @param aLabel TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueApprovalView.java | 177 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueStipulatedApprovalView.java | 437 |
} /** * TODO: DOCUMENT ME! * * @param parentOid TODO: DOCUMENT ME! * @param parentName TODO: DOCUMENT ME! * @param protocolOid TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getStatusHistoryLinkWidgetFor(String parentOid, String parentName, String protocolOid, String protocolNumber ) { String eventName = "protocol"; if (StringUtils.equalsIgnoreCase(parentName, "Closure")) { eventName = "closure"; } if (StringUtils.equalsIgnoreCase(parentName, "UnanticipatedProblem")) { eventName = "unanticipated"; } CUHtmlImage i = new CUHtmlImage("/images/popup.gif"); i.setAlt("View Status History"); i.setOnClick("return openNew('" + "/irb/" + eventName + "/" + protocolNumber.substring(0, 7) + "/" + parentOid + "/history?showMenu=false'" + ",'ds','toolbar=yes,location=no,directories=no,status=no,menubar=yes,resizable=yes,copyhistory=no,width=800,height=600,scrollbars=yes')" ); i.setLink("RascalApprovalHistory"); i.setBorderWidth(0); i.setAlign("center"); if ((parentOid == null) || parentOid.equals("")) { return new CUHtmlText(""); } return i; } /** * TODO: DOCUMENT ME! * * @param newApprovalQueue TODO: DOCUMENT ME! */ public void setApprovalQueue(java.util.Vector newApprovalQueue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportClinicalTrialsFirstSubmissionStatusServlet.java | 81 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportClinicalTrialsStatusServlet.java | 83 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportDepartmentStatusServlet.java | 93 |
CUSortVector rows = new CUSortVector(getSelectedData(beginDate, endDate, columns)); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); rows.sortByColumn(sortBy); } else { sortBy = new String(); } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } if ((rows == null) || (rows.isEmpty())) { String link = "parent.frames[1].location='edu.columbia.rascal.presentation.irb.servlets.IrbReportLinkFrameServlet'"; String main = |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaResultsDisplayView.java | 325 |
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 328 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 316 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 341 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 340 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 457 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 331 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalProposalResultsDisplayView.java | 284 |
prev.setIsBold(true); prev.setFontSize("+1"); prev.setFontName("Comic Sans MS"); prev.setFgColor("black"); // prev.setAlignment("LEFT"); pageControlRow.addElement(prev); } else { // Will be changed to add a hobo button with the left arrow String leftButton = ""; pageControlRow.addElement(leftButton); // Add the empty control to display the previous page prev = new CUHtmlText(""); pageControlRow.addElement(prev); } // Add the separator between the previous and next page control CUHtmlText separator = new CUHtmlText(""); separator.setIsBold(true); separator.setFontSize("+1"); pageControlRow.addElement(separator); if ((curBeginPos + curPageSize) < totalMatch) { // Add the text control to display the // next page if ((curBeginPos + (2 * maxPageSize) - 1) < totalMatch) { next = new CUHtmlText("Next " + maxPageSize + " matches"); } else { next = new CUHtmlText("Next " + curPageSize + " matches"); } next.setLink(location + "?DisplayPage=NextPage"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/annualcoi/servlets/CoiAnnualExpireEmailServlet.java | 38 |
edu/columbia/rascal/presentation/annualcoi/servlets/CoiAnnualExpireEmailServlet.java | 123 |
res.setContentType("text/html"); java.io.PrintWriter toClient = res.getWriter(); String servletPath = RascalProperties.getProperty("ServletPath"); toClient.println("<BASE HREF=" + servletPath + ">"); toClient.println("<HTML>"); toClient.println(" <HEAD><TITLE>RASCAL</TITLE></HEAD>"); toClient.println("<BODY bgcolor='#fffff0' >"); toClient.println("<CENTER>"); toClient.println("<P>"); toClient.println("<FORM METHOD=POST ACTION='" + CoiAnnualExpireEmailServlet.class.getName() + "/'>" ); toClient.println("<TABLE width='50%' border=0>"); toClient.println("<TR>"); toClient.println( " <td align='CENTER' valign='MIDDLE' bgcolor='#336699' COLSPAN=4><font face='Comic Sans MS' color='#FFFFFF'>" ); toClient.println(" Email Service Maintenance"); toClient.println(" </font>"); toClient.println(" </TD>"); toClient.println("</TR>"); toClient.println("<TR>"); toClient.println( " <TD BGCOLOR='#DDDDDD' COLSPAN=4 align='CENTER'><font face='Comic Sans MS'>" ); toClient.println(" You can start, restart or stop the Coi email service"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 3120 |
edu/columbia/rascal/presentation/propTrak/jdbc/PtSearchQuery.java | 614 |
Enumeration signEnum = searchParam.signIterator(); attributeVal = (String) keyEnum.nextElement(); String sign = (String) signEnum.nextElement(); if (sign.equals("+")) { whereClause = " AND ( ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } else { whereClause = " AND ( not ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } while (keyEnum.hasMoreElements()) { attributeVal = (String) keyEnum.nextElement(); sign = (String) signEnum.nextElement(); if (sign.equals("+")) { whereClause = whereClause + " AND ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } else { whereClause = whereClause + " AND not ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } } whereClause = whereClause + ")"; break; case 3: |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 442 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 842 |
? "" : getOwnerSurrogate().getOwnerNumber(); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // gather veterinarian approval data if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); approver = 0; approvalDate = null; approvalDateStr = ""; if ((vetApproval != null) && (vetApproval.getApprovalType() != null) && (vetApproval.getApprovalType().equals(APPROVE) || vetApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // approvalDateStr = CalendarTransformer.toString(approvalDate); approvalDateStr = approvalDate.toString(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/RascalStaticSubmitFormServlet.java | 98 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 88 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 88 |
page.draw(getResponse()); } } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.common.CURascalVapServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetryController.java | 475 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetrySummaryController.java | 333 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetrySummaryController.java | 416 |
@PathVariable(DOSE_ID) Long doseId, @ModelAttribute(DOSE) @Valid HzDosimetryDose hzDosimetryDose, BindingResult result, ModelMap modelMap) { Map<String, Object> response = new HashMap<String, Object>(); HzDosimetry hzDosimetry = hzDosimetryService.findById(dosimetryId); // Check Dosimetry if ( hzDosimetry == null ) { response.put("error","Could not find Dosimetry entry with ID " + dosimetryId); return response; } if ( result.hasErrors() ) { List<String> errors = new ArrayList<String>(); for ( ObjectError objectError : result.getAllErrors() ) { errors.add(objectError.getDefaultMessage()); } response.put("error", StringUtils.join(errors,", ")); return response; } hzDosimetryDoseService.save(hzDosimetryDose); return response; } /** * TODO: DOCUMENT ME! * * @param appendixId TODO: DOCUMENT ME! * @param dosimetryId TODO: DOCUMENT ME! * @param id TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ @RequestMapping( value = "/delete", |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/pt/PtAttachmentsController.java | 318 |
edu/columbia/rascal/presentation/controller/pt/PtChangeProjectOfficerController.java | 152 |
edu/columbia/rascal/presentation/controller/pt/PtComplianceController.java | 605 |
edu/columbia/rascal/presentation/controller/pt/PtHazMatsController.java | 577 |
edu/columbia/rascal/presentation/controller/pt/PtHistoryController.java | 210 |
edu/columbia/rascal/presentation/controller/pt/PtNotesController.java | 151 |
edu/columbia/rascal/presentation/controller/pt/PtPersonnelController.java | 519 |
edu/columbia/rascal/presentation/controller/pt/PtPrintMenuController.java | 109 |
edu/columbia/rascal/presentation/controller/pt/PtSpaceController.java | 460 |
edu/columbia/rascal/presentation/controller/pt/PtSponsorController.java | 154 |
edu/columbia/rascal/presentation/controller/pt/PtTrackingStatusController.java | 171 |
if (statuses != null && statuses.size() > 0) recordHeading.put("loginDate", statuses.get(0).getDateTimeIn()); RascalUser ru; //Initiator PtAccessControl init = ptAccessControlService.getInitiatorForProposal(proposal); if (init != null) { ru = init.getRascalUser(); if (ru != null) recordHeading.put("initiator", ru.getUserFirstLastNameUni()); } //Principal Investigator PtAccessControl pi = proposal.getLeadPerson(); if (pi != null) { ru = pi.getRascalUser(); if (ru != null) recordHeading.put("leadInvestigator", ru.getUserFirstLastNameUni()); } } else { recordHeading.put("createDate", new Date()); recordHeading.put("trakId", "PT-XXXX9999"); recordHeading.put("initiator", currentUser.getUserFirstLastNameUni()); } return recordHeading; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalSearchView.java | 38 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalRascalSearchView.java | 100 |
@Override public CUHtmlTable buildSearchFields() { // set main table for page: Vector columns = new Vector(5); for (int i = 0; i < 5; i++) { columns.addElement(""); } int row = 0; CUHtmlTable aTable = new CUHtmlTable(); aTable.setWidth("85%"); aTable.setAlign("left"); aTable.setBorderWidth(0); aTable.setCellPading(0); aTable.setCellSpacing(0); columns.setElementAt(new CUHtmlEntryField("RascalUser", "25", "25", ""), 1); columns.setElementAt(getWidgetFor("OR"), 2); columns.setElementAt(new CUHtmlEntryField("UserUni", "10", "10", ""), 4); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Personnel Last Name ")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 99 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 97 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 84 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 118 |
getForm().add(addDateRange()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStatsView.java | 491 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeStatsView.java | 186 |
aCell.add(getTextWidgetFor((String) subject.elementAt(i), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // sumbitted protocols aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(0), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // approved protocols aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(1), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // returns aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(2), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // average number of returns aCell = new CUHtmlTableCell(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingEntryView.java | 136 |
edu/columbia/rascal/presentation/user/views/RuSimpleTrainingEnrollmentEntryView.java | 124 |
getForm().add(getHiddenWidgetFor(KEY_ENTRY_MODE, Integer.toString(entryMode))); if (entryMode == MOD_CERT) { if (certification != null) getForm().add(getHiddenWidgetFor(KEY_OID, certification.getId().toString())); } } /** * @see edu.columbia.rascal.presentation.user.views.RuCertificationAbstractEntryView#addJavaScriptElements() */ @Override public void addJavaScriptElements() { // addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); // isValidARTPEntryForm is used to combine isDateValid and validateAnimalTrainingType. addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isValidARTPEntryForm.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 542 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 383 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 234 |
String aString = "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; return aString; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 127 |
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 124 |
edu/columbia/rascal/presentation/ic/servlets/IacucAbstractServlet.java | 141 |
edu/columbia/rascal/presentation/irb/servlets/IrbAbstractServlet.java | 126 |
(new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.irb.servlets.IrbAbstractServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, // there is some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext( getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2280 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 1048 |
} /** * To be moved to the CURascalHtmlView class. * * @param columnNames TODO: DOCUMENT ME! * @param queueName TODO: DOCUMENT ME! * @param sortSelection TODO: DOCUMENT ME! * * @return to be moved to the CURascalHtmlView class */ @Override public CUHtmlTable getSortHeaderForColumnNames(Vector columnNames, String queueName, String sortSelection ) { CUHtmlTable aHeaderTable = new CUHtmlTable(); aHeaderTable.setBorderWidth(0); aHeaderTable.setWidth("250"); aHeaderTable.setCellPading(0); aHeaderTable.setCellSpacing(0); Vector elements = new Vector(); CUHtmlText aTextLabel = new CUHtmlText("Sort List By:"); aTextLabel.setFontSize("1"); aTextLabel.setFontName(getDefaultFontName()); elements.addElement(aTextLabel); Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList" + queueName, sortSelection ); elements.addElement(aListWidget); String onClick; if (queueName.equals("A") || queueName.equals("C")) onClick = "Javascript:getSortByValue1('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; else onClick = "Javascript:getSortByValue3('" + getServletName() + "','columnNamesList" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 79 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 85 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 217 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 118 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 76 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 84 |
getForm().add("<br>"); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 303 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 302 |
currentRow.get("COI").toString())); // COI } dateObj = currentRow.get("StatusDate"); // Date Assigned if (dateObj instanceof java.sql.Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } elements.addElement(getWidgetFor((String) currentRow.get("CurrentStatus"))); // Status Name // add Category A and Category B if (event.equals("Protocol") || event.equals("Renewal") || event.equals("Modification") ) { IrbProtocolHeader ph = ServiceLocator.getIrbProtocolHeaderService().findById(Long .parseLong((String) currentRow.get("EventOid")) ); List<IrbInvestigationalProduct> invests = ph.getIrbInvestigationalProducts(); int investSize = invests.size(); String categoryA = null; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportCommOverallStatsLogInServlet.java | 33 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportCommitteeOverallStats2Servlet.java | 33 |
public IrbReportCommOverallStatsLogInServlet() { super(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2005 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ @Override public CURascalHtmlView getPage() { String beginDate = (String) getSession().getAttribute("beginDate"); String endDate = (String) getSession().getAttribute("endDate"); String reportType = (String) getSession().getAttribute("historyReportType"); String selectedCommittee = (String) getSession().getAttribute("selectedCommittee"); String committeeId = selectedCommittee; if (!selectedCommittee.equals("All Committees")) { committeeId = ServiceLocator.getIrbCommitteeService().getCommitteeByName( selectedCommittee ).getId() + ""; } Vector resultPart1 = new Vector(); String dateRange = " '" + CalendarTransformer.formatOraDate(beginDate) + "' and '" + CalendarTransformer.formatOraDate(endDate) + "' "; resultPart1.addElement(IrbReportQuery.getIrbReportOverallCommStatsAfterLogInResults( |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceDispositionView.java | 330 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceToReviewView.java | 203 |
} /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getRowLabelForFontSize(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector<Object> v = new Vector<Object>(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("2"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("100%"); t.getCell(0, 0).setAlign("right"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param newCorrespondence TODO: DOCUMENT ME! */ public void setCorrespondence(PtCorrespondence newCorrespondence) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 336 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 317 |
Vector currentRow = (Vector) results.elementAt(i); // name columns.addElement(getWidgetFor((String) currentRow.elementAt(0))); for (int j = 0; j < maxCourseNumber; j++) // build couses columns { Date aDate = (Date) currentRow.elementAt(j + 1); if (aDate != null) columns.addElement(getWidgetFor(CalendarTransformer.toString(aDate))); else columns.addElement(getWidgetFor("")); } aTable.addRowFor(columns); } double width = 1.0 / (maxCourseNumber + 1); for (int i = 0; i <= maxCourseNumber; i++) aTable.getCell(0, i).setWidth("\"" + width + "\""); return aTable; } /** * TODO: DOCUMENT ME! * * @param results TODO: DOCUMENT ME! * @param allCourses TODO: DOCUMENT ME! * @param rowNumber TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getReportTable(Vector results, Vector allCourses, int rowNumber) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 455 |
edu/columbia/rascal/presentation/tc/views/TCReportEHSExceptionByTestView.java | 357 |
@Override public CUHtmlTable getSortHeaderForColumnNames(Vector columnNames, String queueName, String sortSelection ) { CUHtmlTable aHeaderTable = new CUHtmlTable(); aHeaderTable.setBorderWidth(0); aHeaderTable.setWidth("55%"); aHeaderTable.setCellPading(0); aHeaderTable.setCellSpacing(0); Vector elements = new Vector(); CUHtmlText aTextLabel = new CUHtmlText("Sort List By:"); aTextLabel.setFontSize("1"); aTextLabel.setFontName(getDefaultFontName()); elements.addElement(aTextLabel); Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList" + queueName, sortSelection ); elements.addElement(aListWidget); StringBuilder onClick = new StringBuilder(); if (queueName.equals("A") || queueName.equals("C")) { onClick.append("Javascript:getSortByValue1('"); } else { onClick.append("Javascript:getSortByValue3('"); } onClick.append(getServletName()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAnimalCareAbstractView.java | 1077 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIrbAbstractView.java | 709 |
edu/columbia/rascal/presentation/appendix/pages/AppendixLabAbstractView.java | 556 |
aRow.add(header); aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param track TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private String getAppendixStatus(AppendixTracking track) { String provisionalStatus = APPROVE; Iterator it = track.getAppendixApprovals().iterator(); while (it.hasNext()) { AppendixApproval anApproval = (AppendixApproval) it.next(); if ((anApproval.getApprovalType() == null) || anApproval.getApprovalType().trim().equals("") ) { provisionalStatus = NOT_APPROVED; } else if (anApproval.getApprovalType().equalsIgnoreCase(HOLD)) { return HOLD; } else if (!anApproval.getApprovalType().equalsIgnoreCase(APPROVE) && !anApproval.getApprovalType().equalsIgnoreCase(MANUAL_APPROVE) ) { provisionalStatus = NOT_APPROVED; } } return provisionalStatus; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixGIsotopeEntryServlet.java | 291 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeEntryServlet.java | 291 |
String main = "location='" + AppendixGIsotopeEntryServlet.class.getName() + "'"; (new CURascalMessageView(errorMsg, link, main, errorList)).draw(getResponse()); } else { PrintWriter out = null; saveIsotopeValues(); getSession().removeAttribute(KEY_PARM_RADIO_NAME); getSession().removeAttribute(KEY_PARM_RADIO_COMPOUND); getSession().removeAttribute(KEY_PARM_RADIO_HALFLIFE); getSession().removeAttribute(KEY_PARM_RADIO_HALFLIFE_UNIT); getSession().removeAttribute(KEY_PARM_RADIO_INI_ACTIVE); getSession().removeAttribute(KEY_PARM_RADIO_INI_ACTIVE_UNIT); getSession().removeAttribute(KEY_PARM_RADIO_ROUTE_OF_ADMIN); try { out = getResponse().getWriter(); } catch (IOException io) { } out.println("<html><body"); out.println("onLoad=\"opener.location.href=opener.location.href;window.close();\">"); out.println("</body></html>)"); out.close(); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentContactEntryView.java | 92 |
edu/columbia/rascal/presentation/consent/pages/ConsentControlEntryView.java | 99 |
setSubTitle("RASCAL Informed Consent - Add/Edit Personnel"); add(getSubTitle()); addFields(); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); aForm.add("<BR>"); if (theOid == null) theAddEdit = "Add"; else theAddEdit = "Edit"; aForm.add(getHiddenWidgetFor("hiddenAddEdit", theAddEdit)); aForm.add(getHiddenWidgetFor("hiddenOid", theOid)); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 201 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 277 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 200 |
columns.setElementAt(getBooleanWidgetFor(INVALID, false), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Exclude Invalid Requests ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getBooleanWidgetFor(EXPIRED, false), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("Exclude Expired Protocols ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getBooleanWidgetFor(CLOSURED, false), 1); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbPiEntryView.java | 86 |
edu/columbia/rascal/presentation/irb/pages/IrbPiEntryView.java | 137 |
edu/columbia/rascal/presentation/lab/pages/HzStaffEntryView.java | 94 |
public void addAppendixRows(CUHtmlTable aTable, int numbCells, ArrayList appendixList) { Vector columns = new Vector(numbCells); for (int c = 0; c < numbCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // a message CUHtmlText msg = new CUHtmlText("Check appendices in which Staff Member is to be included:"); msg.setFontName(getDefaultFontName()); msg.setFontSize("2"); msg.setAlignment("center"); aWidget = msg; columns.setElementAt(aWidget, 0); aTable.addRowFor(columns); aTable.getCell(row, 0).setColumnsToSpan(4); row++; Iterator anIterator = appendixList.iterator(); String appendixType; while (anIterator.hasNext()) { appendixType = (String) anIterator.next(); aWidget = getBooleanWidgetFor("appendix" + appendixType, true); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 42 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 74 |
public PtReportDeptDateRangeView(RascalUser aUser) { super(); setForm(new CUHtmlForm("report", PtReportDeptDateRangeServlet.class.getName(), "POST")); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); setRascalUser(aUser); setSubTitle("Proposals Finalized by Department"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCEmailForEHSRequiredCourseMonthlyServlet.java | 52 |
edu/columbia/rascal/presentation/tc/servlets/TCEmailForEHSRequiredCourseMonthlyServlet.java | 140 |
res.setContentType("text/html"); java.io.PrintWriter toClient = res.getWriter(); String servletPath = RascalProperties.getProperty("ServletPath"); toClient.println("<BASE HREF="); toClient.println(servletPath); toClient.println('>'); toClient.println("<HTML>"); toClient.println(" <HEAD><TITLE>RASCAL</TITLE></HEAD>"); toClient.println("<BODY bgcolor='#fffff0' >"); toClient.println("<CENTER>"); toClient.println("<P>"); toClient.println( "<FORM METHOD=POST ACTION='edu.columbia.rascal.presentation.tc.servlets.TCEmailForEHSRequiredCourseMonthlyServlet/'>" ); toClient.println("<TABLE width='50%' border=0>"); toClient.println("<TR>"); toClient.println( " <td align='CENTER' valign='MIDDLE' bgcolor='#336699' COLSPAN=4><font face='Comic Sans MS' color='#FFFFFF'>" ); toClient.println(" Email Service Maintenance"); toClient.println(" </font>"); toClient.println(" </TD>"); toClient.println("</TR>"); toClient.println("<TR>"); toClient.println( " <TD BGCOLOR='#DDDDDD' COLSPAN=4 align='CENTER'><font face='Comic Sans MS'>" ); toClient.println(" You can start, restart or stop the TC Email Notification service"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCEmailForExpireServlet.java | 53 |
edu/columbia/rascal/presentation/tc/servlets/TCEmailForExpireServlet.java | 141 |
res.setContentType("text/html"); java.io.PrintWriter toClient = res.getWriter(); String servletPath = RascalProperties.getProperty("ServletPath"); toClient.println("<BASE HREF="); toClient.println(servletPath); toClient.println('>'); toClient.println("<HTML>"); toClient.println(" <HEAD><TITLE>RASCAL</TITLE></HEAD>"); toClient.println("<BODY bgcolor='#fffff0' >"); toClient.println("<CENTER>"); toClient.println("<P>"); toClient.println( "<FORM METHOD=POST ACTION='edu.columbia.rascal.presentation.tc.servlets.TCEmailForExpireServlet/'>" ); toClient.println("<TABLE width='50%' border=0>"); toClient.println("<TR>"); toClient.println( " <td align='CENTER' valign='MIDDLE' bgcolor='#336699' COLSPAN=4><font face='Comic Sans MS' color='#FFFFFF'>" ); toClient.println(" Email Service Maintenance"); toClient.println(" </font>"); toClient.println(" </TD>"); toClient.println("</TR>"); toClient.println("<TR>"); toClient.println( " <TD BGCOLOR='#DDDDDD' COLSPAN=4 align='CENTER'><font face='Comic Sans MS'>" ); toClient.println(" You can start, restart or stop the TC Email Notification service"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCEmailForNotifyServlet.java | 50 |
edu/columbia/rascal/presentation/tc/servlets/TCEmailForNotifyServlet.java | 138 |
res.setContentType("text/html"); java.io.PrintWriter toClient = res.getWriter(); String servletPath = RascalProperties.getProperty("ServletPath"); toClient.println("<BASE HREF="); toClient.println(servletPath); toClient.println('>'); toClient.println("<HTML>"); toClient.println(" <HEAD><TITLE>RASCAL</TITLE></HEAD>"); toClient.println("<BODY bgcolor='#fffff0' >"); toClient.println("<CENTER>"); toClient.println("<P>"); toClient.println( "<FORM METHOD=POST ACTION='edu.columbia.rascal.presentation.tc.servlets.TCEmailForNotifyServlet/'>" ); toClient.println("<TABLE width='50%' border=0>"); toClient.println("<TR>"); toClient.println( " <td align='CENTER' valign='MIDDLE' bgcolor='#336699' COLSPAN=4><font face='Comic Sans MS' color='#FFFFFF'>" ); toClient.println(" Email Service Maintenance"); toClient.println(" </font>"); toClient.println(" </TD>"); toClient.println("</TR>"); toClient.println("<TR>"); toClient.println( " <TD BGCOLOR='#DDDDDD' COLSPAN=4 align='CENTER'><font face='Comic Sans MS'>" ); toClient.println(" You can start, restart or stop the TC Email Notification service"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCEmailForWarning30Servlet.java | 50 |
edu/columbia/rascal/presentation/tc/servlets/TCEmailForWarning30Servlet.java | 138 |
res.setContentType("text/html"); java.io.PrintWriter toClient = res.getWriter(); String servletPath = RascalProperties.getProperty("ServletPath"); toClient.println("<BASE HREF="); toClient.println(servletPath); toClient.println('>'); toClient.println("<HTML>"); toClient.println(" <HEAD><TITLE>RASCAL</TITLE></HEAD>"); toClient.println("<BODY bgcolor='#fffff0' >"); toClient.println("<CENTER>"); toClient.println("<P>"); toClient.println( "<FORM METHOD=POST ACTION='edu.columbia.rascal.presentation.tc.servlets.TCEmailForWarning30Servlet/'>" ); toClient.println("<TABLE width='50%' border=0>"); toClient.println("<TR>"); toClient.println( " <td align='CENTER' valign='MIDDLE' bgcolor='#336699' COLSPAN=4><font face='Comic Sans MS' color='#FFFFFF'>" ); toClient.println(" Email Service Maintenance"); toClient.println(" </font>"); toClient.println(" </TD>"); toClient.println("</TR>"); toClient.println("<TR>"); toClient.println( " <TD BGCOLOR='#DDDDDD' COLSPAN=4 align='CENTER'><font face='Comic Sans MS'>" ); toClient.println(" You can start, restart or stop the TC Email Notification service"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCEmailForWarning60Servlet.java | 51 |
edu/columbia/rascal/presentation/tc/servlets/TCEmailForWarning60Servlet.java | 139 |
res.setContentType("text/html"); java.io.PrintWriter toClient = res.getWriter(); String servletPath = RascalProperties.getProperty("ServletPath"); toClient.println("<BASE HREF="); toClient.println(servletPath); toClient.println('>'); toClient.println("<HTML>"); toClient.println(" <HEAD><TITLE>RASCAL</TITLE></HEAD>"); toClient.println("<BODY bgcolor='#fffff0' >"); toClient.println("<CENTER>"); toClient.println("<P>"); toClient.println( "<FORM METHOD=POST ACTION='edu.columbia.rascal.presentation.tc.servlets.TCEmailForWarning60Servlet/'>" ); toClient.println("<TABLE width='50%' border=0>"); toClient.println("<TR>"); toClient.println( " <td align='CENTER' valign='MIDDLE' bgcolor='#336699' COLSPAN=4><font face='Comic Sans MS' color='#FFFFFF'>" ); toClient.println(" Email Service Maintenance"); toClient.println(" </font>"); toClient.println(" </TD>"); toClient.println("</TR>"); toClient.println("<TR>"); toClient.println( " <TD BGCOLOR='#DDDDDD' COLSPAN=4 align='CENTER'><font face='Comic Sans MS'>" ); toClient.println(" You can start, restart or stop the TC Email Notification service"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailEHSRequiredCourseTask.java | 298 |
edu/columbia/rascal/presentation/tc/tools/TCEmailEHSRequiredCourseTask.java | 369 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 87 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseExpireTask.java | 66 |
message.append("\nEvery member of the University community engaged in research is obligated to participate in the University’s training program and to maintain the currency of all required training courses."); message.append("\n\n"); message.append("\nFailure to complete or maintain current training while you are actively engaged in research is a violation of University policy and potentially of federal law."); message.append("\n\n"); message.append("\n------------------------------------------------"); message.append("\nHOW TO RETAKE YOUR REQUIRED COURSE(S) IN RASCAL:"); message.append("\n\n"); message.append("\n1.Go to the Rascal homepage at https://www.rascal.columbia.edu. "); message.append("\n2.Select 'Training Center' and login with your UNI and password. "); message.append("\n3. a. For EH&S courses ONLY, click on 'Safety Courses.' "); message.append("\n b. For all other courses, click on 'Course Listings.' "); message.append("\n4.Select the course listed above from the course listings. "); message.append("\n5.Read the Course Overview."); message.append("\n6.Click 'Take Course,' and read and follow any instructions. "); message.append("\n7.Once you have taken the course, click 'Take Test' to complete the course test. (Note: not all courses require a Rascal test; courses without tests will indicate 'This test has not been defined' in the sidebar menu.) "); message.append("\n"); message.append("\nTo check the status of your Rascal trainings at any time, including the completion and expiration dates of all of your completed Rascal courses: "); message.append("\n"); message.append("\n 1. Go to the Rascal homepage at https://www.rascal.columbia.edu. "); message.append("\n 2. Select 'My Rascal' and login with your UNI and password. "); message.append("\n 3. Click on 'My Test History' under Training Center. "); message.append("\n 4. Optional - Click on the blue button next to any course listed to generate a certificate for that "); message.append("\n course or the button at the bottom of the list to generate a full transcript for your records. "); message.append("\n"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaDatabaseStoreUtilityServlet.java | 133 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 421 |
} } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doGet in CURascalVAPServlet and CURascalServlet. I am not happy with the * behavior implemented in those classes</p> * * <p>hh 3/2/00</p> * * <p>sometime in the future, those superclassed methods will be reworked, but i need to get * around them NOW!</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, // there is some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); try { if (validateGet()) { IrbAgendaHtmlView page = (IrbAgendaHtmlView) getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } } catch (Exception e) { log.error(e); (new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 747 |
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 789 |
t.setAlign("center"); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setBgColor("red"); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("25%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("25%"); t.getCell(0, 1).setAlign("left"); t.setCellSpacing(0); t.setCellPadding(2); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a help button It puts the CUHtmlText object in a table with an Image that contains * the linked button to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * @param align TODO: DOCUMENT ME! * * @return CUHtmlTable */ public CUHtmlTable getHelpWithRedLabelFor(String aLabel, String source, String align) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSearchView.java | 263 |
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolSearchView.java | 141 |
return aTable; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlTable getButtons() { EVector v = new EVector(); String space = ""; v.addElement(space); CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", " Search "); v.add(pb1); v.addElement(space); CUHtmlTable aTable = new CUHtmlTable(); aTable.addRowFor((Vector) v.clone()); aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("60%"); aTable.getCell(0, 1).setAlign("RIGHT"); // aTable.getCell(0,2).setWidth("40%"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.addBreaks(2); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1318 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1530 |
} /** * TODO: DOCUMENT ME! * * @param aTitle TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getTableViewTitle(String aTitle) { CUHtmlText aText = null; if (aTitle instanceof String) { aText = new CUHtmlText(aTitle); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); } return aText; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(String aString) { if ((aString == null) || aString.trim().equals("")) { CUHtmlImage i = new CUHtmlImage("/images/blank.gif"); i.setBorderWidth(0); return i; } CUHtmlText text = new CUHtmlText(aString); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } text.setFontSize("1"); text.setFontName(getDefaultFontName()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 656 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 1241 |
return text; } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getYearWidget(java.lang.String, int) */ @Override public Object getYearWidget(String fieldName, int year) { int startYear = year - 10; String selectedYear = ""; if (year == 0) { Calendar now = Calendar.getInstance(); now.add(Calendar.YEAR, -10); startYear = now.get(Calendar.YEAR); } Vector<String> list = new Vector<String>(); list.addElement(""); for (int i = 0; i < 21; i++) { list.addElement(String.valueOf(startYear + i)); } if (year > 0) { selectedYear = String.valueOf(year); } getLabel(fieldName); return getSingleSelectWidgetFor(list, selectedYear); } /** * interpreteModeDict method comment. If some contents of pages depends on the current protocol * mode, a static Hashtable modeDictXXXYYY should be defined in the subclass, where XXX * indicates a type and YYY names the value in the table. This method is intended to interprete * this modeDictXXXYYY. For instance, the modeDictStrComingYear table is defined in the class * IacucProtocolNewView as follows: {"org"="coming year" "mod"="coming year" "con"="coming * continuation year" } If the current protocol mode is continuation, (String) * interpreteModeDict(modeDictStrComingYear) would return a string "coming continuation year". * * @param modeDict TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object interpreteModeDict(Hashtable modeDict) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCancerCenterCorrespondenceView.java | 209 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueNotifyCorrespondenceView.java | 202 |
); getAForm().add( "<TD WIDTH=\"15%\" ALIGN=\"left\"><FONT FACE=\"Comic Sans MS\" SIZE=\"1\">Notify Date</FONT></TD>" ); getAForm().add("</TR>"); int counter = 0; String rowColor; Vector info = null; while (i-- > 0) { rowColor = getQueueHTMLRowColor(counter++); info = (Vector) v.elementAt(i); setTableDataRow(info, rowColor); } getAForm().add("<TR VALIGN=\"TOP\"><TD><HR WIDTH=\"100%\"></TD></TR>"); getAForm().add("</TABLE></CENTER>"); } } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVector(java.util.Vector newResultVector) { resultVector = newResultVector; } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVectorAE(java.util.Vector newResultVector) { resultVectorAE = newResultVector; } /** * TODO: DOCUMENT ME! * * @param row TODO: DOCUMENT ME! * @param rowColor TODO: DOCUMENT ME! */ public void setTableDataRow(Vector row, String rowColor) { StringBuffer parmString = new StringBuffer(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredView.java | 66 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHarlemHospitalView.java | 47 |
addHeader((String) options.elementAt(1), (String) options.elementAt(2)); addFields(results); // render(); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param results TODO: DOCUMENT ME! */ public void addFields(CUSortVector results) { CUHtmlTable mTable = getMasterTable(); mTable.setBorderWidth(0); mTable.setWidth("98%"); Vector row = new Vector(0); row.add(createSubTable(results)); mTable.addRowFor(row); setMasterTable(mTable); aForm.add("<div align=\"center\">"); aForm.add(getMasterTable()); CUHtmlPushButton button = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Return", ""); if ((format != null) && format.equalsIgnoreCase("normal")) { aForm.add("<br><br>"); aForm.add(button); aForm.add("<hr>"); } aForm.add("</div>"); add(aForm); } /** * TODO: DOCUMENT ME! * * @param creation TODO: DOCUMENT ME! * @param expiration TODO: DOCUMENT ME! */ public void addHeader(String creation, String expiration) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentExternalView.java | 186 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentView.java | 188 |
boolean checkRascal = CURascalGuardian.hasIrbRascal(); int psSize = ps.size(); for (int i = 0; i < psSize; i++) { Vector info = (Vector) ps.elementAt(i); Object dateObj1 = info.elementAt(3); String aDate = ""; if (dateObj1 instanceof java.sql.Date) aDate = CalendarTransformer.toString((java.sql.Date) dateObj1); try { setAttachmentTableDataRow(aTable, (String) info.elementAt(0), (String) info.elementAt(1), (String) info.elementAt(2), aDate ); } catch (Exception e) { } } return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public Vector getColumns() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReturnedOrPendedEventsNotifyServlet.java | 78 |
edu/columbia/rascal/presentation/irb/servlets/IrbReturnedOrPendedEventsNotifyServlet.java | 166 |
); toClient.println(" </font>"); toClient.println(" </TD>"); toClient.println("</TR>"); toClient.println(" <TR><td> </td>"); if (IrbEmailReturnedOrPendingEventsMonitor.isRunning()) { toClient.println( " <TR><td> </td><TD align='left' COLSPAN=3><font face='Comic Sans MS'><b>Rascal IRB returned Or Pended Events Notify Service is Currently Running</b></font></TD></TR>" ); toClient.println(" <TR><td> </td>"); toClient.println( "<TR><td> </td><TD align='left' COLSPAN=3><font face='Comic Sans MS'><INPUT TYPE='SUBMIT' NAME='SUBMIT1' VALUE='Stop IRB returned Or Pended Events Notify Service'></font></TD></TR>" ); toClient.println(" <TR><td> </td>"); toClient.println( "<TR><td> </td><TD align='left' COLSPAN=3><font face='Comic Sans MS'><INPUT TYPE='SUBMIT' NAME='SUBMIT2' VALUE='Restart IRB returned Or Pended Events Notify Service'></font></TD></TR>" ); } else { toClient.println( " <TR><td> </td><TD align='left' COLSPAN=3><font face='Comic Sans MS'><b>Rascal IRB returned Or Pended Events Notify Service is Stopped</b></A></font></TD></TR>" ); toClient.println(" <TR><td> </td>"); toClient.println( "<TR><td> </td><TD align='left' COLSPAN=3><font face='Comic Sans MS'><INPUT TYPE='SUBMIT' NAME='SUBMIT' VALUE='Start IRB returned Or Pended Events Notify Service'></font></TD></TR>" ); } toClient.println("</TABLE>"); toClient.println("</FORM>"); toClient.println("<P>"); toClient.println("</CENTER>"); toClient.println("<HR WIDTH='75%'></P>"); toClient.println("</BODY>"); toClient.println("</HTML>"); toClient.close(); } /** * @see javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptInactiveView.java | 205 |
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptView.java | 242 |
CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setWidth("90%"); aCell1.setAlign("left"); CUHtmlText txt; StringBuilder label = new StringBuilder(); label.append((String)currentRow[1]);// Users name_last label.append(','); label.append((String)currentRow[2]);// Users name_first label.append('('); label.append((String)currentRow[0]);// Users userid label.append(')'); if(StringUtils.isNotBlank((String)currentRow[4])){ label.append(" - "); label.append((String)currentRow[4]); // Users Job Title } txt = getHeadingLabelFor(label.toString()); txt.setFontSize("2"); txt.setFontName("Comic Sans MS"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminMainView.java | 35 |
edu/columbia/rascal/presentation/consent/pages/ConsentMainView.java | 41 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaMainView.java | 46 |
edu/columbia/rascal/presentation/irb/pages/IrbMainView.java | 51 |
edu/columbia/rascal/presentation/lab/pages/HzMainView.java | 80 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalMainView.java | 33 |
edu/columbia/rascal/presentation/user/views/CUInfoMainView.java | 84 |
public void addItems() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getLogoServletString()); f1.setName("Logo"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); v.addElement(f1); frames.add(v); frames.setRows("85,*"); frames.setColumns("*"); frames.setBorder("1"); frames.setFramespacing("0"); v = new Vector(2); f1 = new CUHtmlFrame(); f1.setSrc(getLinkServletString()); f1.setName("Link"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 85 |
edu/columbia/rascal/presentation/irb/servlets/IrbAbstractServlet.java | 91 |
@Override public void doGet(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, // there is some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext( getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validateGet()) { IrbHtmlView page = (IrbHtmlView) getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } else |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiClearedDisclosureReportController.java | 220 |
edu/columbia/rascal/presentation/controller/coi/CoiDisclosureBusinessInterestReportController.java | 134 |
edu/columbia/rascal/presentation/controller/coi/CoiFederalFundingDisclosureReport.java | 116 |
edu/columbia/rascal/presentation/controller/coi/CoiNonAnomalousDisclosureReportController.java | 201 |
} Collections.sort(data, new Comparator<Map<String, Object>>() { private final DateTimeComparator _comparator = DateTimeComparator.getInstance(); @Override public int compare(Map<String, Object> o1, Map<String, Object> o2) { DateTime d1 = (DateTime) o1.get("submitteddate"); DateTime d2 = (DateTime) o2.get("submitteddate"); if (d1 == null || d2 == null) { if (d1 == null && d2 != null) return 1; if (d2 == null && d1 != null) return -1; return 0; } return _comparator.compare(d2, d1); } }); model.addAttribute("reportData", data); return "coi/report/clearedDisclosures"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaNotesViewOnly.java | 167 |
edu/columbia/rascal/presentation/irb/pages/IrbNotesViewOnly.java | 132 |
); notes.append("<br><b>"); // notes.append((RascalUser.getUserFirstLastNameByRid(note.getAuthorRid()))); notes.append(ServiceLocator.getRascalUserService().findById(note.getAuthorRid()) .getUserFirstLastName() ); notes.append(" "); notes.append(CalendarTransformer.toDateTimeString(note.getCreationDate())); notes.append(" - </b><br>"); notes.append(replaceHtmlTagsForControls(note.getNote())); notes.append("<br>"); } CUHtmlText n = new CUHtmlText(PersistentTextFormatter.insertHtmlTagsForControls( notes.toString() ) ); n.setFontSize("2"); n.setFontName(getDefaultFontName()); columns.setElementAt(n, 0); aTable.addRowFor(columns); aTable.getCell(row, 0).setVAlign("Left"); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 122 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 132 |
@Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validateGet()) { CURascalHtmlView page = getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } else if (getRedirectUrl() != null) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1285 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1628 |
s.append(CalendarTransformer.formatDateAndTime(getProtocolHeader().getCreationDate())); s.append("</font></td> <td width=\"25%\"> "); // department s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Department</font></div>"); s.append("</td> <td width=\"25%\"> <font face=\"Verdana\" size=\"1\"> "); s.append(blank); s.append("</font></td> </tr> <tr> <td> "); // PI s.append( "<div align=\"right\"><font face=\"Verdana\" size=\"1\">Principal Investigator</font></div></td><td>" ); /* if ( !isNew){ * IrbStaff staff = getProtocolHeader().getLeadPerson(); if ( staff * != null){ RascalUser user = * ServiceLocator.getRascalUserService().findById(staff.getRid()); leadPerson = * user.getUserFirstLastNameUni(); } } */ s.append((((CUHtmlItem) getWidgetFor(blank)).getHtml())); s.append("</td> <td> "); // initiator s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Initiator</font></div>"); s.append("</td> <td>"); // s.append( // (((CUHtmlItem)getWidgetFor(getProtocolHeader().getCreatedByName())).getHtml())); /* RascalUser ru = * ServiceLocator.getRascalUserService().findById(getProtocolHeader().getCreatedBy()); * s.append( (((CUHtmlItem)getWidgetFor(ru.getUserFirstLastName())).getHtml())); */ s.append(blank); // s.append(getRascalUser()==null? blank : // (CUHtmlItem)getWidgetFor(getRascalUser().getUserLastFirstNameUni()); s.append("</td> </tr> <tr> <td> "); // you are... s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">You are</font></div>"); s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); s.append((((CUHtmlItem) getWidgetFor(getRascalUser().getUserFirstLastNameUni())) .getHtml()) ); s.append("</font></td> <td> "); // year & mod s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Year</font></div>"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolAdminChairSearchServlet.java | 48 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolSearchServlet.java | 52 |
return new IrbProtocolAdminChairSearchView(aMode, getUser()); } /** * Prepare all text data for saving to the database. * * <p>sybase requires an apostrophe to be accompanied by another one. use this method whenever * saving text tot he database.</p> * * @param aString String * * <p>Mulligan - this should be moved to a common package</p> * * @return prepare all text data for saving to the database. */ public String prepareText(String aString) { java.text.StringCharacterIterator sci = new java.text.StringCharacterIterator(aString); String newString = ""; int i = 0; for (i = 0; i < sci.getEndIndex(); i++) { newString = newString + sci.current(); if (sci.current() == '\'') newString = newString + '\''; sci.next(); } return newString; } /** * Handle the GET and HEAD methods by building a simple web page. HEAD is just like GET, except * that the server returns only the headers (including content length) not the body we write. * * <p>Note - [HP 01/14/00] This is a new search method that uses the PtSearchParametersParser * and PtSearchQueryFormat. This search method supports the following search features: (1) * simple search, (2) required search, (3) implied or search, and (4) phrase search.</p> */ @Override public void submit() { IrbSearchParameters srchParams = null; CURascalDisplayPageJdbcController pageController = null; IrbDocumentSearchJdbcAccessor jdbcAccessor = null; CURascalDisplayPageInfo pageInfo = null; IrbProtocolResultsDisplayView view = null; String query; String pageInfoKeyword = (String) keywords.get("IrbSearchDisplayPageInfo"); String pagesCacheKeyword = (String) keywords.get("IrbSearchDisplayPagesCached"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/servlets/AdminAbstractServlet.java | 175 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 149 |
(new CURascalErrorMessageView(e, "doPost() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. Return the keyName that will be used to reference this * transaction in the session. * * @return java.lang.String */ @Override public String getPrefix() { return (String) keywords.get("Rascal"); } /** * This method was created in VisualAge. * * @param aBoolean TODO: DOCUMENT ME! */ public void setAddedFlag(boolean aBoolean) { String key = (String) keywords.get("AddedFlag"); if (aBoolean) { getSession().setAttribute(key, "Yes"); } else { getSession().setAttribute(key, "No"); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 432 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 433 |
} getForm().add(aTable); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTableRow aRow; CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 2); aTable.setCellPadding(4); addSpacerRows(aTable, 1, 2, "8"); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPENDIX_NUMBER), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText( getAppendixNumberPrefix(getAppendixObject().getAppendixType()) + getAppendixObject().getAppendixNumber() ), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); /* String invitroHeaderOid = getAppendixObject().getInvitroAppendixTrackingOid(); * if (invitroHeaderOid != null) { HzAppendixHeader hah = * getInvitroHeaderFor(invitroHeaderOid); * * aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( * utilGetDefaultHtmlText(APPENDIX_TITLE), "300", getTitleAlign() ); aCell2 = * utilGetHtmlTableCell(utilGetDefaultHtmlText(hah == null? " ": * hah.getTitle()), "500", "left" ); * * aRow.add( aCell1 ); aRow.add( aCell2 ); aTable.add( aRow ); } */ aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE_TITLE), "300", getTitleAlign()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSearchView.java | 265 |
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolSearchView.java | 143 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 248 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 327 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 247 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderSearchView.java | 145 |
} /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlTable getButtons() { EVector v = new EVector(); String space = ""; v.addElement(space); CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", " Search "); v.add(pb1); v.addElement(space); CUHtmlTable aTable = new CUHtmlTable(); aTable.addRowFor((Vector) v.clone()); aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("60%"); aTable.getCell(0, 1).setAlign("RIGHT"); // aTable.getCell(0,2).setWidth("40%"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.addBreaks(2); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 966 |
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 1005 |
java.sql.ResultSet res = acc.executeQuery(query); while (res.next()) { row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // rid row.addElement(res.getString(2)); // uni row.addElement(res.getString(3)); // last name row.addElement(res.getString(4)); // first name row.addElement(res.getString(5)); // committee role results.addElement(row.clone()); row = new Vector(5); } } catch (Exception e) { log.error("SQL Exception", e); } return results; } /** * RASCAL (halayn) Creation date: (6/25/2002 12:53:52 PM) * * @param aCommitteeName TODO: DOCUMENT ME! * * @return Vector of results this returns all committee members, regardless of what committee * they're on */ public static Vector getIrbCommitteeMembersFor(String aCommitteeName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbApprovalView.java | 264 |
edu/columbia/rascal/presentation/irb/pages/IrbApprovalView.java | 366 |
String department = ""; if (!departmentCode.equals(blank)) department = ServiceLocator.getRascalDepartmentService().findById(departmentCode) .getName() + " " + "(" + departmentCode + ")"; else department = blank; add(getSubTitle()); StringBuilder aBuffer = new StringBuilder(); aBuffer.append("<table width=\"100%\" border=\"1\" bgcolor=\"#CCCCCC\">"); aBuffer.append("<tr> "); aBuffer.append("<td colspan=\"2\"> "); aBuffer.append( "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Protocol Number</font> </div>" ); aBuffer.append("</td> <td colspan=\"2\"> <font face=\"Comic Sans MS\" size=\"1\"> "); aBuffer.append(getPrefix()).append((getProtocolHeader().getIrbProtocol().getProtocolNumber() == null) ? "" : getProtocolHeader().getIrbProtocol().getProtocolNumber()); aBuffer.append("</font></td> </tr> <tr> <td width=\"25%\"> "); aBuffer.append( |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 571 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 367 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 375 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 1114 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 411 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 408 |
return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatsView.java | 177 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStatsView.java | 491 |
edu/columbia/rascal/presentation/irb/pages/IrbReportOverallCommStatsAfterLogInView.java | 498 |
.getCommitteeName(), 2, false ) ); aCell.setAlign("right"); aRow.add(aCell); // sumbitted protocols aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(0), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // approved protocols aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(1), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // average days from submission to approval aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(2), 2, false)); aCell.setAlign("right"); aRow.add(aCell); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/auxiliary/objects/TCSortVector.java | 52 |
edu/columbia/rascal/presentation/tc/auxiliary/objects/TCSortVector.java | 89 |
public boolean lessThan(Object l, Object r) { Object leftElement = null; Object rightElement = null; if (l instanceof Vector) { int sortIndex = getColumnNames().indexOf(getSortByColumn()); leftElement = ((Vector) l).elementAt(sortIndex); rightElement = ((Vector) r).elementAt(sortIndex); } else if (l instanceof Dictionary) { leftElement = ((Dictionary) l).get(getSortByColumn()); rightElement = ((Dictionary) r).get(getSortByColumn()); } else { leftElement = l; rightElement = r; } if (leftElement instanceof Tcdivision) { if (rightElement instanceof Tcdivision) { return ((Tcdivision) leftElement).getDivisionNumber() < |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse30DaysWarningTask.java | 317 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 299 |
message = createMessage(((BigDecimal) data.get("rid")).intValue(), deptCode); subject = "Testing Center Required Courses Warning"; recipientName = data.get("nameFirst") + " " + data.get("nameLast"); recipientEmail = (String) data.get("emailPreferred"); if ((recipientEmail == null) || recipientEmail.trim().equals("")) { recipientEmail = piUni + "@columbia.edu"; } try { email = new TCGeneralEmailMessage(recipientName, recipientEmail, subject, message, dbLocation ); } catch (IllegalArgumentException ie) { try { if (!recipientEmail.contains("@")) { email = new TCGeneralEmailMessage(recipientName, piUni + "@columbia.edu", subject, message, dbLocation ); } else { log.error("Invalid recipient email address.", ie); continue; } } catch (Exception e) { log.error("Exception sending email.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCCourseNewView.java | 785 |
edu/columbia/rascal/presentation/tc/views/TCMainMenuView.java | 391 |
txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("General Instructions"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Tc/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("left"); v.addElement(i); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("50%"); t.getCell(0, 1).setAlign("left"); t.getCell(0, 1).setWidth("50%"); t.setCellSpacing(0); t.setCellPading(0); return t; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 63 |
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 290 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 326 |
StringBuilder s = new StringBuilder(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // Title String aTitle = getCourseHeader().getTitle(); if ((aTitle == null) || aTitle.trim().equals("")) { aTitle = blank; } // Course created by Integer initRid = getCourseHeader().getAdministratorRid(); String initiatorString; RascalUser initiator = null; if (initRid != null) { initiator = ServiceLocator.getRascalUserService().findById(initRid); } if (initiator == null) { initiatorString = blank; } else { initiatorString = initiator.getNameFirst() + " " + initiator.getNameLast() + " (" + initiator.getUserId() + ")"; } s.append("<p><table align= \"center\" width=\"95%\" border=\"1\" bgcolor=\"#CCCCCC\">"); /*1*/ // course number s.append("<tr><td align=\"right\" width= \"15%\"> "); s.append("<font face=\"Verdana\" size=\"1\">Course Number</font>"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 456 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 267 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 269 |
} /** This method was created in VisualAge. */ public void addDataAgendaHeader() { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(1); t.setCellPading(0); t.setCellSpacing(0); t.setBgColor("gray1"); Vector elements; String agendaNumber = getPrefix() + ((getAgendaHeader().getAgendaNumber() == null) ? "" : getAgendaHeader().getAgendaNumber()); elements = new Vector(5); elements.addElement(getTextWidgetFor("Agenda Number: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(agendaNumber, getFontSize() + 1, true)); elements.addElement(getTextWidgetFor("Agenda Status: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor( (ServiceLocator.getIrbAgendaHeaderService().getCurrentStatus(getAgendaHeader()) == |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 522 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 420 |
appendixPPEList = ServiceLocator.getAppendixBPPEService().findByAppendixOidAndPPERelatedTo(getAppendixObject().getId(), "LAB"); aTable.addRowFor(getCheckBoxesInTwoColumns( ServiceLocator.getRascalAppendixPPEService().findAll(), appendixPPEList, "LAB", "document.forms[0].LAB_CHECK_BOX_CHANGED.value = true")); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE3B1), "300", "left"); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE3B2), "300", "left"); aCell2 = utilGetHtmlTableCell(fieldGet_3B_PersonalProtection("3b", defaultValue), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(""), "300", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 288 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 304 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * * @return Object */ public Object getBooleanWidgetFor(String aName, String aValue) { boolean checked = true; if ((aValue == null) || aValue.equals("")) { checked = false; } CUHtmlCheckBox cb = new CUHtmlCheckBox(aName, aName, checked, "", ""); return cb; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * * @return Object */ public Object getBooleanWidgetFor(String aName, boolean aValue) { CUHtmlCheckBox cb = new CUHtmlCheckBox(aName, aName, aValue, "", ""); return cb; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * @param checked TODO: DOCUMENT ME! * @param aLabel TODO: DOCUMENT ME! * * @return Object */ public Object getCheckBoxWidgetFor(String aName, String aValue, boolean checked, String aLabel) { CUHtmlCheckBox cb = new CUHtmlCheckBox(aName, aValue, checked, aLabel); return cb; } // <VIK> for Appendix I public Object getCheckBoxWidgetFor(String aName, String aValue, boolean checked, String aLabel, boolean isCUHtmlBreak) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixLabCorrespondenceCreateView.java | 280 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 742 |
} /** * TODO: DOCUMENT ME! * * @param aHeader TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public HzStatus getLatestStatusRecord(HzAppendixHeader aHeader) { boolean isFirstTime = true; HzStatus latestStatus = null; Date tempDate = null; Date latestDate = null; Set<HzStatus> stas = aHeader.getHzStatuses(); Iterator it = stas.iterator(); while (it.hasNext()) { HzStatus hs = (HzStatus) it.next(); String StatusCode = hs.getStatusCode(); tempDate = hs.getStatusDate(); if (isFirstTime) { tempDate = hs.getStatusDate(); latestDate = tempDate; isFirstTime = false; latestStatus = hs; continue; } if (tempDate.after(latestDate)) { latestDate = tempDate; latestStatus = hs; } } if (latestDate != null) { return latestStatus; } return null; } /** * TODO: DOCUMENT ME! * * @param sourceRole TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getRecipientWidget(String sourceRole) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractPopupServlet.java | 31 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractPopUpServlet.java | 36 |
public AppendixAbstractPopupServlet() { super(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>bw 07/11/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validateGet()) { CURascalHtmlView page = getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else { writeWindowCloseAndExitScript(); } } else { writeWindowCloseAndExitScript(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceRespondView.java | 642 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceReturnOrApproveCreateView.java | 509 |
} /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getRowLabelForFontSize(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("2"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("100%"); t.getCell(0, 0).setAlign("right"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * Insert the method's description here. Creation date: (2/20/2002 5:29:01 PM) * * @return java.lang.String */ public java.lang.String getTheEventType() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1203 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1444 |
RascalUser ru = ServiceLocator.getRascalUserService().findById(getProtocolHeader() .getCreatedBy() ); s.append((((CUHtmlItem) getWidgetFor(ru.getUserFirstLastNameUni())).getHtml())); s.append("</td> </tr> <tr> <td> "); // you are... s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">You are</font></div>"); s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); s.append((((CUHtmlItem) getWidgetFor(getRascalUser().getUserFirstLastNameUni())) .getHtml()) ); s.append("</font></td> <td> "); // year & mod s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Year</font></div>"); String modification = getProtocolHeader().getModificationNumber() + ""; if (getProtocolHeader().getModificationNumber() < 10) { modification = "0" + modification; } s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatsView.java | 177 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeStatsView.java | 186 |
edu/columbia/rascal/presentation/irb/pages/IrbReportOverallCommStatsAfterLogInView.java | 498 |
.getCommitteeName(), 2, false ) ); aCell.setAlign("right"); aRow.add(aCell); // sumbitted protocols aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(0), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // approved protocols aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(1), 2, false)); aCell.setAlign("right"); aRow.add(aCell); // average days from submission to approval aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor((String) currentRow.elementAt(2), 2, false)); aCell.setAlign("right"); aRow.add(aCell); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/HzAttestationSearchServlet.java | 114 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolRascalSearchServlet.java | 108 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolSearchServlet.java | 131 |
} if (srchParams == null) { CURascalDisplayPageInfo emptyPageInfo = new CURascalDisplayPageInfo(); CURascalDisplayPagesCached emptyPagesCached = new CURascalDisplayPagesCached(); getSession().setAttribute(pageInfoKeyword, emptyPageInfo); getSession().setAttribute(pagesCacheKeyword, emptyPagesCached); } else { query = buildSearchQuery(srchParams); jdbcAccessor = IrbDocumentSearchJdbcAccessor.getInstance(this); String procRsltMethodNm = getProcessResultSetMethod(); pageController = CURascalDisplayPageJdbcController.getInstance(this, jdbcAccessor, pageInfoKeyword, pagesCacheKeyword, procRsltMethodNm ); int cacheMode = getCacheMode(); int cacheSize = getCacheSize(); int maxPageSize = getMaxPageSize(); pageInfo = pageController.buildFirstPageInfo(query, cacheMode, cacheSize, maxPageSize); } if ((pageInfo != null) && (!pageInfo.isEmpty())) { view = new HzAttestationResultDisplayView(pageInfo.getDisplayPage(), |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1532 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 1287 |
} /** @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#setLabelName(java.lang.String) */ @Override public void setLabelName(String newValue) { int index = newValue.indexOf(":"); if (index > 0) { this.labelName = newValue.substring(0, index); } else { this.labelName = newValue; } } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#setLineParameters(java.util.Hashtable) */ @Override public void setLineParameters(Hashtable<String, Object> params) { // Save parameters passed through URL in hidden fields of the form. Names of all // parameters are lowercase Enumeration<String> e = params.keys(); while (e.hasMoreElements()) { String key = e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * Sets the mainTitle of this page. If aMainTitle is a String, use the default mainTitle * settings. if aMainTitle is CUHtmlText, override the default mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { // Set also the title of the page to same. if (aMainTitle instanceof CUHtmlText) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportSelectFieldsView.java | 86 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffDateRangeView.java | 88 |
aWidget = getReportRangeWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Range:")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // EndDate columns.setElementAt(getDateTable(endDate, "endDate", "endDateMonth", "endDateDay", "endDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Ending On:")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // multi select list aWidget = getFieldMultiSelectWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Fields *")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCCourseDataSheetView.java | 480 |
edu/columbia/rascal/presentation/tc/views/TCCourseDataSheetView.java | 510 |
public void addQuestionHeader() { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setCellPading(0); t.setCellSpacing(0); Vector<Object> elements = new Vector<Object>(3); elements.addElement(getTextWidgetFor("Question", DATASHEET_FONT_SIZE, true ) ); elements.addElement(getTextWidgetFor("Answers", DATASHEET_FONT_SIZE, true ) ); elements.addElement(getTextWidgetFor("Correct?", DATASHEET_FONT_SIZE, true ) ); t.addRowFor(elements); t.getCell(0, 0).setWidth("46%"); t.getCell(0, 1).setWidth("46%"); t.getCell(0, 2).setWidth("8%"); form.add(t); } /** TODO: DOCUMENT ME! */ public void addQuestionHeaderRow() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 915 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 923 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 821 |
vContent.add(2, getNotNullString((String) currentRow.elementAt(5), "")); // title // reviewer StringBuilder revString = new StringBuilder(""); if (getAgendaView().getEventObject((String) currentRow.elementAt(0), eventName) != null ) { Vector reviewers = IrbAgendaProtocolQuery.getPreMinuteApprovalEventReviewersFor( agendaHeaderOid, getAgendaView().getEventObject((String) currentRow.elementAt(0), eventName ) ); for (int j = 0; j < reviewers.size(); j++) { if (j > 0) { revString.append(", "); } revString.append(ServiceLocator.getRascalUserService().findById( Integer.parseInt((String) reviewers.elementAt(j)) ).getUserFirstLastNameUni() ); } } vContent.add(3, revString.toString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 545 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 386 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 572 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 548 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 368 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 376 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 412 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 409 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 610 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/annualcoi/servlets/CoiAnnualExpireEmailServlet.java | 65 |
edu/columbia/rascal/presentation/annualcoi/servlets/CoiAnnualExpireEmailServlet.java | 150 |
toClient.println(" You can start, restart or stop the Coi email service"); toClient.println(" </font>"); toClient.println(" </TD>"); toClient.println("</TR>"); toClient.println(" <TR><td> </td>"); if (CoiAnnualEmailMonitor.isRunning()) { toClient.println( " <TR><td> </td><TD align='left' COLSPAN=3><font face='Comic Sans MS'><b>Rascal Coi Email Service is Currently Running</b></font></TD></TR>" ); toClient.println(" <TR><td> </td>"); toClient.println( "<TR><td> </td><TD align='left' COLSPAN=3><font face='Comic Sans MS'><INPUT TYPE='SUBMIT' NAME='SUBMIT1' VALUE='Stop Coi Email Service'></font></TD></TR>" ); toClient.println(" <TR><td> </td>"); toClient.println( "<TR><td> </td><TD align='left' COLSPAN=3><font face='Comic Sans MS'><INPUT TYPE='SUBMIT' NAME='SUBMIT2' VALUE='Restart Coi Email Service'></font></TD></TR>" ); } else { toClient.println( " <TR><td> </td><TD align='left' COLSPAN=3><font face='Comic Sans MS'><b>Rascal Coi Email Service is Stopped</b></A></font></TD></TR>" ); toClient.println(" <TR><td> </td>"); toClient.println( "<TR><td> </td><TD align='left' COLSPAN=3><font face='Comic Sans MS'><INPUT TYPE='SUBMIT' NAME='SUBMIT' VALUE='Start Coi Email Service'></font></TD></TR>" ); } toClient.println("</TABLE>"); toClient.println("</FORM>"); toClient.println("<P>"); toClient.println("</CENTER>"); toClient.println("<HR WIDTH='75%'></P>"); toClient.println("</BODY>"); toClient.println("</HTML>"); toClient.close(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixLabCorrespondenceCreateView.java | 280 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 713 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 742 |
} /** * TODO: DOCUMENT ME! * * @param aHeader TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public HzStatus getLatestStatusRecord(HzAppendixHeader aHeader) { boolean isFirstTime = true; HzStatus latestStatus = null; Date tempDate = null; Date latestDate = null; Set<HzStatus> stas = aHeader.getHzStatuses(); Iterator it = stas.iterator(); while (it.hasNext()) { HzStatus hs = (HzStatus) it.next(); String StatusCode = hs.getStatusCode(); tempDate = hs.getStatusDate(); if (isFirstTime) { tempDate = hs.getStatusDate(); latestDate = tempDate; isFirstTime = false; latestStatus = hs; continue; } if (tempDate.after(latestDate)) { latestDate = tempDate; latestStatus = hs; } } if (latestDate != null) { return latestStatus; } return null; } /** * TODO: DOCUMENT ME! * * @param sourceRole TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getRecipientWidget(String sourceRole) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 245 |
edu/columbia/rascal/presentation/ic/servlets/IacucAbstractServlet.java | 90 |
} /** * Insert the method's description here. Creation date: (1/27/2006 1:05:02 PM) * * @param req appendixTracker java.lang.String * @param res TODO: DOCUMENT ME! */ /** * @see edu.columbia.rascal.presentation.common.CURascalVapServlet#doGet(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, // there is some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext( getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validateGet()) { CURascalHtmlView page = getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 909 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 967 |
public String getUrlToEditAppendix(String appendixOid, String appendixType) { String servletName = null; switch (appendixType.charAt(0)) { case 'A': servletName = AppendixAServlet.class.getName(); break; case 'B': servletName = AppendixBServlet.class.getName(); break; case 'C': servletName = AppendixCServlet.class.getName(); break; case 'D': servletName = AppendixDServlet.class.getName(); break; case 'E': servletName = AppendixEServlet.class.getName(); break; case 'F': servletName = AppendixFServlet.class.getName(); break; case 'G': servletName = AppendixGServlet.class.getName(); break; case 'H': return "/hazMats/radiationSafety/" + appendixOid + "/study/general"; case 'I': servletName = AppendixIServlet.class.getName(); break; default: return null; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/csv/CURascalCSVProcess.java | 273 |
edu/columbia/rascal/presentation/common/csv/CURascalCSVProcess.java | 369 |
Vector<Object> checkRequiredField(Vector<Object> wrapper, int field, int fieldLength) { Vector<Object> processed = new Vector<Object>(); Vector<Object> goodRows = (Vector<Object>) wrapper.elementAt(0); Vector<Object> processedRows = new Vector<Object>(); Vector<Object> badRows = (Vector<Object>) wrapper.elementAt(1); int size = goodRows.size(); for (int i = 0; i < size; i++) { Vector<Object> row = (Vector<Object>) goodRows.elementAt(i); String item = (String) row.elementAt(field); if ((row.size() <= field) || row.isEmpty() || (row.elementAt(0) == null) || |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/pdf/PDFormComparison.java | 359 |
edu/columbia/rascal/presentation/common/pdf/PDFormComparison.java | 546 |
private void constructPDF(Collection col, Collection col2, Set set, Set set2) { finalPDFConstruct1 = new CURascalPDFFormConstruction(); finalPDFConstruct2 = new CURascalPDFFormConstruction(); finalPDFConstruct1.setHeight(finalPDFConstruct1.getPageHeight() - finalPDFConstruct1.getTopPageMargin() ); finalPDFConstruct2.setHeight(finalPDFConstruct2.getPageHeight() - finalPDFConstruct2.getTopPageMargin() ); page1 = finalPDFConstruct1.getPDFPage(); page2 = finalPDFConstruct2.getPDFPage(); Iterator itrCol = col.iterator(); Iterator itrCol2 = col2.iterator(); Iterator newitrSet = set.iterator(); Iterator newitrSet2 = set2.iterator(); int count = 0; int pageCount = 0; HashMap hMap1 = new HashMap(); HashMap hMap2 = new HashMap(); boolean addPageHeadingProcess = false; String dataSheetTitle = ""; |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 157 |
edu/columbia/rascal/presentation/irb/servlets/IrbAbstractServlet.java | 123 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 164 |
} catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doPost in CURascalVAPServlet and CURascalServlet.</p> * * <p>hh 5/19/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 222 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 230 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 271 |
dateObj = currentRow.get("Submitted"); // submitted Date Assigned if (dateObj instanceof java.sql.Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } } if (currentRow.containsKey("Expiration")) { dateObj = currentRow.get("Expiration"); // Expiration Date Assigned if (dateObj instanceof java.sql.Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } } t.addRowFor(elements); elements = new Vector(); } getForm().add(t); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aFromDate TODO: DOCUMENT ME! * @param aToDate TODO: DOCUMENT ME! */ public void addHeader(String aFromDate, String aToDate) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalLogServlet.java | 139 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalLogServlet.java | 269 |
public String productionMessage(PtProposalHeader ph) { PtAccessControl acc = ServiceLocator.getPtAccessControlService().getLeadPIForProposal(ph); String dateStr = ""; Date deadline = ph.getDeadlineDate(); if (deadline != null) { Calendar cal = Calendar.getInstance(); cal.setTime(deadline); dateStr = CalendarTransformer.toString(cal); } String piStr = ""; if (acc != null) { String piUni = acc.getUserId(); RascalUser pi = acc.getRascalUser(); if (pi != null) piStr = pi.getNameFirst() + " " + pi.getNameLast(); else piStr = acc.getNameFirst() + " " + acc.getNameLast() + "(" + piUni + ")"; } String message = "Deadline: " + dateStr + "\n"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 607 |
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 814 |
buff.append(" AND CH.isReleased = 'Y' "); buff.append("order by U.rid "); String email = null; // this is to get the headers by Rid of the User try { @SuppressWarnings("unchecked") List<Object[]> resultList = ServiceLocator.getCURascalJdbcAccessorService().executeNoParmPreparedQuery(buff.toString()); for(Object[] res: resultList){ row = new HashMap<String, Object>(); row.put("anRid", ((BigDecimal) res[3]).intValue()); row.put("nameString", ((res[2] == null) ? "" : res[2]) + " " + ((res[1] == null) ? "" : res[1]) ); row.put("userId", (res[1] == null) ? "" : res[0]); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionForExceptionView.java | 114 |
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionForTestLocationView.java | 121 |
aTable.getCell(row, 0).add(getRowLabelFor(MULTISELECT_LABEL)); aTable.getCell(row, 1).setColumnsToSpan(3); row++; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb2 = new CUHtmlPushButton("BUTTON", "SUBMIT", "Submit", "submitForm(this.form)" ); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); } return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public final CUHtmlForm getAForm() { return aForm; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlList getDeptNameWidget() { Vector<Object> list = new Vector<Object>(); RascalUser aUser = getRascalUser(); RascalDepartment dept = null; String deptString; |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingAdminView.java | 391 |
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramAdminView.java | 363 |
cell7.setAlign("center"); } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setTableHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableCell header; // UNI aTitle = new CUHtmlText("UNI"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 0); header.setIsHeader(true); header.add(aTitle); // User name aTitle = new CUHtmlText("Name"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 1); header.setIsHeader(true); header.add(aTitle); // Species aTitle = new CUHtmlText("Species"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 2); header.setIsHeader(true); header.add(aTitle); // Training Type aTitle = new CUHtmlText("Training Type"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 290 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 244 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 299 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 713 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 485 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 671 |
!getOwnerSurrogate().getSubject().equals("Human") ) { // Recommended animal housing aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell( utilGetHtmlText(REC_ANIMAL_HOUSING + ":", defaultFontSize, false, false), "300", getTitleAlign() ); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); textValue = (getTracker().getRecommendedHousing() == null) ? "" : getTracker().getRecommendedHousing(); textValue = PersistentTextFormatter.insertHtmlTagsForControls(textValue); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); } // Recommended PPE & SOP String ppeLabel = ""; if (getOwnerSurrogate().getSubject() != null) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 736 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 611 |
appendixPPEList = ServiceLocator.getAppendixBPPEService().findByAppendixOidAndPPERelatedTo(getAppendixObject().getId(), "SUBJECT"); aTable.addRowFor(getCheckBoxesInTwoColumns( ServiceLocator.getRascalAppendixPPEService().findAll(), appendixPPEList, "SUBJECT", "document.forms[0].SUBJECT_CHECK_BOX_CHANGED.value = true")); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE8B1), "300", "left"); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE8B2), "300", "left"); aCell2 = utilGetHtmlTableCell(fieldGet_8B_SubjectPersonalProtection("8b", defaultValue), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE9), "100%", getTitleAlign()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 769 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 961 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 1183 |
aCell = utilGetHtmlTableCell(labelText, "10%", "center"); aRow.add(aCell); aTable.add(aRow); // add data to the table // create list of formatted staff selected for appendix Enumeration staffTable = getOwnerSurrogate().getStaffTable().elements(); while (staffTable.hasMoreElements()) { AppendixOwnerStaffSurrogate aPerson = (AppendixOwnerStaffSurrogate) staffTable.nextElement(); if (aPerson != null) { aRow = new CUHtmlTableRow(); String aText = aPerson.getStaffName(); if ((aText == null) || (aText.trim().length() < 1)) { aText = "<img src=\"/images/blank.gif\" border=\"0\">"; } else { aText = APPENDIX_HTML_SPACE + aText; } CUHtmlText displayText = new CUHtmlText(aText); displayText.setFontName(getDefaultFontName()); displayText.setFontSize("-1"); aCell = utilGetHtmlTableCell(displayText, "35%", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1646 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 505 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 464 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 637 |
aTable.addRowFor((Vector) columns.clone()); aTable.getCell(0, 0).setWidth("30%"); aTable.getCell(0, 0).setVAlign("CENTER"); aTable.getCell(0, 0).setAlign("RIGHT"); aTable.getCell(0, 1).setVAlign("CENTER"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.setBorderWidth(0); return aTable; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlText getMainTitle() { if (mainTitle == null) { CUHtmlText aText = new CUHtmlText("Main Title was not defined"); aText.setHeaderLevel("1"); aText.setFontName(getDefaultFontName()); aText.setAlignment("center"); mainTitle = aText; } return mainTitle; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private CUHtmlText getNote() { return note; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 347 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 390 |
CUHtmlText t = new CUHtmlText("Returned"); t.setFontSize("-1"); t.setIsBold(true); t.setAlignment("left"); t.setFontName(getDefaultFontName()); getForm().add(t); CUHtmlTable cTable = getTable(1, 1); cTable.setBorderWidth(0); cTable.setAlign("center"); cTable.setWidth("100%"); CUHtmlTableRow cRow = new CUHtmlTableRow(); CUHtmlTableCell cCell1 = new CUHtmlTableCell(); cCell1.setColumnsToSpan(2); cCell1.add(" "); cRow.add(cCell1); cTable.add(cRow); if (!(getPrintable())) { cRow = new CUHtmlTableRow(); cCell1 = new CUHtmlTableCell(); cCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns1), "B", |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 418 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyView.java | 421 |
} html.append("</tr>\n"); newRow = true; } } if (newRow) used.add(hash.get(keyList.elementAt(1))); } html.append("</tbody>\n</table>"); return html.toString(); } /** * TODO: DOCUMENT ME! * * @param aPackage TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String createNestedParentTable(CUSortVector aPackage) { String nbsp = " "; int num = 0; String var = null; String key = ""; boolean newRow = false; String objectKey = ""; int size = aPackage.size(); int counter = 0; Vector used = new Vector(); Vector headerList = (Vector) aPackage.elementAt(0); // lists all used OIDs CUSortVector keyList = (CUSortVector) aPackage.elementAt(1); // lists hashTablekeys Vector subSubtables = (Vector) aPackage.elementAt(2); // contains all subtable |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/pages/RascalActivityTypeLookupMainView.java | 33 |
edu/columbia/rascal/presentation/lookup/pages/RascalAgencyLookupMainView.java | 33 |
edu/columbia/rascal/presentation/lookup/pages/RascalDepartmentLookupMainView.java | 26 |
edu/columbia/rascal/presentation/lookup/pages/RascalReportDistributionLookupMainView.java | 39 |
setPageTitle("RASCAL - Activity Type Lookup"); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void addFields() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getInputServletString()); f1.setName("Input"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); /* Do Not Initialize the Output Frame's Source */ f2.setSrc(getOutputServletString()); f2.setName("Output"); f2.setNoResize("NO"); f2.setScrolling("YES"); f2.setMarginHeight("0"); f2.setMarginWidth("0"); v.addElement(f1); v.addElement(f2); frames.add(v); frames.setRows("40%,*"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalLogOutView.java | 81 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalLogView.java | 86 |
txt.setFontName("Comic Sans MS"); getForm().add(txt); getForm().add("<BR><BR>"); if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(), "A", getSortBy()) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton( "BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A", getServletName(), "PtReportLoggedOut") |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/servlets/RuSimpleTrainingBBPOEntryServlet.java | 141 |
edu/columbia/rascal/presentation/user/servlets/RuSimpleTrainingLSCHOEntryServlet.java | 141 |
if (CURascalGuardian.hasRuBloodbornePathogensProtection()) { String rascalUni = getRequestParameter(KEY_RASCAL_UNI); String oidStr = getRequestParameter(KEY_OID); try { if (oidStr != null) oid = Long.parseLong(oidStr); } catch (Exception e) { } if ((rascalUni != null) && !rascalUni.trim().equals("")) { Integer entryMode = null; try { entryMode = Integer.parseInt(getLineParameter(KEY_ENTRY_MODE)); } catch (Exception e) { } if (entryMode != null) { int primitive = entryMode; try { switch (primitive) { case ADD_CERT: RascalUser u = ServiceLocator.getRascalUserService().findByUserId( rascalUni ); ruHtmlView = new RuSimpleTrainingEnrollmentEntryView(getUser(), u, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMeetingAttendantView.java | 368 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaOldBusinessView.java | 217 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaOtherTopicView.java | 190 |
String titles[] = { "Topic", "Modify", "Delete" }; Vector columns = new Vector(); for (String title : titles) { columns.add(getHeadingLabelFor(title)); } return columns; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelCenterFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("center"); return txt; } /** * This method was created in VisualAge. * * @param aTitle String * * @return CUHtmlText */ @Override public CUHtmlText getTableViewTitle(String aTitle) { CUHtmlText aText = null; if (aTitle instanceof String) { aText = new CUHtmlText(aTitle); aText.setIsBold(true); // aText.setFontSize("+1"); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); } return aText; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setMeetingAttendantHead(CUHtmlTable aTable) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinuteHistoryDateRangeView.java | 70 |
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchDateRangeView.java | 76 |
edu/columbia/rascal/presentation/agenda/pages/IrbReportEnterProtocolNumberView.java | 89 |
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolSearchView.java | 72 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 73 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 75 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 76 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 75 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 77 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 74 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 72 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolSearchView.java | 71 |
CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 411 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFShortDataSheetView.java | 132 |
public void addBusinessAttached(long agendaHeaderOid, String label, Vector businessAttached, String businessType ) { int size = businessAttached.size(); if (size > 0) { addContent(" ", " ", theStyle); addSectionTitle(label); setDataSheetFeature(); String firstLabel = "Protocol Number"; String secondLabel = "Title/Keyword"; float xyPosition[] = new float[] {}; int tableSize = 6; Vector vLabel = new Vector(tableSize); vLabel.add(0, firstLabel); vLabel.add(1, "Event"); vLabel.add(2, secondLabel); vLabel.add(3, "Comments"); vLabel.add(4, "PI"); vLabel.add(5, "Approval Date"); xyPosition = new float[] { unitXy * 12, unitXy * 10, unitXy * 28, unitXy * 30, unitXy * 10, unitXy * 10 |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 545 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 386 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 1115 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 237 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { CUHtmlText text = new CUHtmlText(aString.toString()); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Comic Sans MS"); } else { text.setFontSize("1"); text.setFontName("Comic Sans MS"); } return text; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 89 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 82 |
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 80 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 100 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 98 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 85 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 77 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 85 |
getForm().add("<br><br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAnimalCareAbstractView.java | 1081 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIrbAbstractView.java | 714 |
edu/columbia/rascal/presentation/appendix/pages/AppendixLabAbstractView.java | 561 |
edu/columbia/rascal/presentation/lab/pages/HzHistoryView.java | 772 |
} /** * TODO: DOCUMENT ME! * * @param track TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private String getAppendixStatus(AppendixTracking track) { String provisionalStatus = APPROVE; Iterator it = track.getAppendixApprovals().iterator(); while (it.hasNext()) { AppendixApproval anApproval = (AppendixApproval) it.next(); if ((anApproval.getApprovalType() == null) || anApproval.getApprovalType().trim().equals("") ) { provisionalStatus = NOT_APPROVED; } else if (anApproval.getApprovalType().equalsIgnoreCase(HOLD)) { return HOLD; } else if (!anApproval.getApprovalType().equalsIgnoreCase(APPROVE) && !anApproval.getApprovalType().equalsIgnoreCase(MANUAL_APPROVE) ) { provisionalStatus = NOT_APPROVED; } } return provisionalStatus; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 375 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 443 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 624 |
aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(textValue), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // gather veterinarian approval data if ((getOwnerSurrogate().getSubject() != null) && !getOwnerSurrogate().getSubject().equals("Human") ) { AppendixApproval vetApproval = getApproval(VETERINARIAN_TYPE, getTracker()); approver = 0; approvalDate = null; approvalDateStr = ""; if ((vetApproval != null) && (vetApproval.getApprovalType() != null) && (vetApproval.getApprovalType().equals(APPROVE) || vetApproval.getApprovalType().equals(MANUAL_APPROVE)) ) { approver = vetApproval.getApproverRid(); approvalDate = vetApproval.getApprovalDate(); // approvalDateStr = CalendarTransformer.toString(approvalDate); approvalDateStr = approvalDate.toString(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 765 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 704 |
aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE4A1), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE4A1Q), "400", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGetExposureYN(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // aRow = new CUHtmlTableRow(); // aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE4A2), "400", getTitleAlign()); // aCell2 = utilGetHtmlTableCell(fieldGet_4A_PersonalExposure(), "100%", "left"); // aRow.add(aCell1); // aRow.add(aCell2); // aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE4B), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE4B1), "400", getTitleAlign()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1915 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1340 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(String aString) { if ((aString == null) || aString.trim().equals("")) { CUHtmlImage i = new CUHtmlImage("/images/blank.gif"); i.setBorderWidth(0); return i; } CUHtmlText text = new CUHtmlText(aString); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } text.setFontSize("1"); text.setFontName(getDefaultFontName()); return text; } /** * This method was created in VisualAge. * * @param aBoolean TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(boolean aBoolean) { CUHtmlText text = new CUHtmlText(aBoolean ? "Yes" : "No"); text.setFontSize("1"); text.setFontName(getDefaultFontName()); return text; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 870 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1309 |
CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelLeftFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName("Comic Sans MS"); txt.setFontSize("1"); txt.setIsBold(true); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceDispositionView.java | 482 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatsView.java | 284 |
} /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! */ public void setDocumentHead(CUHtmlTable aTable) { String aTitle; CUHtmlTableCell header; Vector columns = getColumns(); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); header = aTable.getCell(0, i); header.add(getWidgetFor(aTitle)); header.setAlign("left"); } aTable.getCell(0, 0).setWidth("25%"); aTable.getCell(0, 1).setWidth("25%"); aTable.getCell(0, 2).setWidth("25%"); aTable.getCell(0, 3).setWidth("25%"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbPiEntryView.java | 136 |
edu/columbia/rascal/presentation/lab/pages/HzStaffEntryView.java | 144 |
IrbStaff aStaff ) { Vector columns = new Vector(numbCells); for (int c = 0; c < numbCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // a message CUHtmlText msg = new CUHtmlText("Check appendices in which Staff Member is to be included:"); msg.setFontName(getDefaultFontName()); msg.setFontSize("2"); msg.setAlignment("center"); aWidget = msg; columns.setElementAt(aWidget, 0); aTable.addRowFor(columns); aTable.getCell(row, 0).setColumnsToSpan(4); row++; Iterator anIterator = appendixList.iterator(); String appendixType; while (anIterator.hasNext()) { appendixType = (String) anIterator.next(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 326 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 428 |
dateObj = currentRow.get("OriginalLogInDate"); // Date Assigned if (dateObj instanceof java.sql.Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } elements.addElement(getWidgetFor((String) currentRow.get("CurrentStatus"))); // Status Name dateObj = currentRow.get("CurrentStatusDate"); // status date if (dateObj instanceof java.sql.Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } t.addRowFor(elements); elements = new Vector(); } getForm().add(t); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! * @param reportType TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows, String reportType) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalRascalResultsDisplayView.java | 207 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalResultsDisplayView.java | 265 |
PtProposalRascalSearchPageServlet.class.getName() + "?startAt=" + startPos + "&&pageSize=" + pageSize ); prev.setIsBold(true); prev.setFontSize("+1"); prev.setFontName(getDefaultFontName()); prev.setFgColor("black"); // prev.setAlignment("LEFT"); pageControlRow.addElement(prev); } else { // Will be changed to add a button with the left arrow String leftButton = ""; pageControlRow.addElement(leftButton); // Add the empty control to display the previous page prev = new CUHtmlText(""); pageControlRow.addElement(prev); } // Add the separator between the previous and next page control CUHtmlText separator = new CUHtmlText(""); separator.setIsBold(true); separator.setFontSize("+1"); pageControlRow.addElement(separator); if ((beginPos + pageSize) < totalMatch) { // Add the text control to display the int startPos = beginPos + pageSize; next = new CUHtmlText("Next " + pageSize + " matches"); next.setLink(PtProposalRascalSearchPageServlet.class.getName() + "?startAt=" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse30DaysWarningTask.java | 320 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 302 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseNotifyTask.java | 188 |
recipientName = data.get("nameFirst") + " " + data.get("nameLast"); recipientEmail = (String) data.get("emailPreferred"); if ((recipientEmail == null) || recipientEmail.trim().equals("")) { recipientEmail = piUni + "@columbia.edu"; } try { email = new TCGeneralEmailMessage(recipientName, recipientEmail, subject, message, dbLocation ); } catch (IllegalArgumentException ie) { try { if (!recipientEmail.contains("@")) { email = new TCGeneralEmailMessage(recipientName, piUni + "@columbia.edu", subject, message, dbLocation ); } else { log.error("Invalid recipient email address.", ie); continue; } } catch (Exception e) { log.error("Exception sending email.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingAdminView.java | 168 |
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramAdminView.java | 166 |
edu/columbia/rascal/presentation/user/views/RuRadiationSafetyBadgeAdminView.java | 165 |
RuIcmexpSurgeryTraining cert = itr.next(); if (cert != null) setTableDataRow(aTable, rowCount, cert); rowCount++; } return aTable; } /** @see edu.columbia.rascal.presentation.user.views.RuHtmlView#addMainBody() */ @Override public void addMainBody() { add("<br>"); // put a space in addSubTitle(); CUHtmlForm aForm = getForm(); // Create the Admin control table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // add the admin control rows // set the number of cells per row in the table here: int numbCells = 5; addAdminControlRows(aTable, numbCells); // aForm.add(new CUHtmlRuler()); no ruler within the frame // Add an empty row for space: addSpacerRows(aTable, numbCells, 1, "10"); aForm.add(aTable); aForm.add("<hr>"); if (getModify() != null) { aForm.add(addDataTable()); aForm.add(getActionButtons()); } add(aForm); } /** This method was created in VisualAge. */ public void addSubTitle() { // setSubTitle("Rascal User Certification Administration"); // The tile "ICM Experimental Surgery Training" was changed as follows: setSubSubTitle("Animal Research Training Program"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbMeetingAttendantEntryView.java | 100 |
edu/columbia/rascal/presentation/consent/pages/ConsentContactEntryView.java | 94 |
edu/columbia/rascal/presentation/consent/pages/ConsentControlEntryView.java | 101 |
render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); aForm.add("<BR>"); if (theOid == null) theAddEdit = "Add"; else theAddEdit = "Edit"; aForm.add(getHiddenWidgetFor("hiddenAddEdit", theAddEdit)); aForm.add(getHiddenWidgetFor("hiddenOid", theOid)); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 331 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalServlet.java | 200 |
ServiceLocator.getIrbCorrespondenceService().save(correspondence); // save Correspondence information correspondence.setAuthorRid(getUser().getId()); correspondence.setCreationDate(new Date()); correspondence.setNotificationDate(new Date()); correspondence.setDestinationRole("Admin C"); correspondence.setSourceRole(ServiceLocator.getIrbCommitteeService().findById( getAgendaHeader().getCommitteeId() ).getCommitteeName() + " Committee Meeting" ); correspondence.setMeetingDate(getAgendaHeader().getMeetingDate()); String protocolNumber = getProtocolNumber(aName, aOid); correspondence.setSubject("RASCAL IRB Protocol IRB-" + protocolNumber + " (" + aName + ")"); IrbProtocol protocol = ServiceLocator.getIrbProtocolService().getByProtocolNumber( protocolNumber, getUser() ); if (aName.trim().equals(IrbNameConstants.PROTOCOL_HEADER)) |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 484 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 566 |
); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE_VACCINE_TEXT), "300%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE_VACCINE_YN), "400", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGetVaccineYN(), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); addSpacerRows(aTable, 1, 2, "8"); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE1), "100%", getTitleAlign()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 559 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 451 |
aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE4A + " ", "apBhelp7.html","600"), "100%", getTitleAlign() ); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE4A1), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE4A1Q), "400", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_Exposure_YN("exposureYN"), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE4A2), "300", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixInvitroCheckView.java | 44 |
edu/columbia/rascal/presentation/lab/pages/HzCheckView.java | 43 |
setHeader(ph); addHeader(messageString); addErrors(errors); add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param errors TODO: DOCUMENT ME! */ public void addErrors(Vector errors) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector elements = new Vector(1); int errorSize = errors.size(); for (int i = 0; i < errorSize; i++) { CUHtmlText x = (CUHtmlText) getWidgetFor((String) errors.elementAt(i)); x.setFontSize("2"); elements.addElement(x); t.addRowFor(elements); elements = new Vector(1); } getForm().add(t); } /** TODO: DOCUMENT ME! */ public void addHeader() { String headerNumber = (hah != null) ? hah.getAppendixHeaderNumber() : ""; |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucApprovedProtocolRptController.java | 106 |
edu/columbia/rascal/presentation/controller/iacuc/IacucApprovedProtocolWithPainRptController.java | 98 |
edu/columbia/rascal/presentation/controller/iacuc/IacucProtocolsSetToExpireRptController.java | 94 |
private List<Map<String, Object>> getApprovedProtocolData(ReportCommand command){ List<Map<String, Object>> jsonDataList = new ArrayList<Map<String,Object>>(); if (command.isNew()) return jsonDataList; Date startDate = command.getStartDate(); Date endDate = command.getEndDate(); if(startDate == null || endDate == null) return jsonDataList; Date sDate = startDate; sDate = DateUtils.addMonths(sDate, 6); if (endDate.after(sDate)) return jsonDataList; final String[] status = {IacucStatusConstants.KEY_ACTION_APPROVE, IacucStatusConstants.KEY_ACTION_DONE, IacucStatusConstants.KEY_ACTION_REINSTATE}; final List<String> statusList = Arrays.asList(status); List<IacucProtocolHeader> headers = iacucProtocolHeaderService.findApprovedProtocols(startDate, endDate,statusList); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceRespondView.java | 640 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceRespondView.java | 319 |
return getSingleSelectWidgetFor(list, ""); } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getRowLabelForFontSize(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("2"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("100%"); t.getCell(0, 0).setAlign("right"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * Insert the method's description here. Creation date: (2/20/2002 5:29:01 PM) * * @return java.lang.String */ public java.lang.String getTheEventType() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbPiEntryView.java | 86 |
edu/columbia/rascal/presentation/lab/pages/HzStaffEntryView.java | 94 |
edu/columbia/rascal/presentation/lab/pages/HzStaffEntryView.java | 145 |
public void addAppendixRows(CUHtmlTable aTable, int numbCells, ArrayList appendixList) { Vector columns = new Vector(numbCells); for (int c = 0; c < numbCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // a message CUHtmlText msg = new CUHtmlText("Check appendices in which Staff Member is to be included:"); msg.setFontName(getDefaultFontName()); msg.setFontSize("2"); msg.setAlignment("center"); aWidget = msg; columns.setElementAt(aWidget, 0); aTable.addRowFor(columns); aTable.getCell(row, 0).setColumnsToSpan(4); row++; Iterator anIterator = appendixList.iterator(); String appendixType; while (anIterator.hasNext()) { appendixType = (String) anIterator.next(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 613 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 786 |
parent = ServiceLocator.getIrbProtocolService().getParentObject(IrbNameConstants.CLOSURE, elementZero, getRascalUser() ); // if (parent.involvesCancerCenter() || parent.hasInvolvedCancerCenter()) // { app = ServiceLocator.getIrbApprovalService().getAllApprovalsByCode(parent, 3L); int appsize = app.size(); if ((app != null) && (appsize > 0)) { appCc = app.get(0); if (appCc.getApprovedOn() != null) aCell.add(getWidgetFor(" CC ", "green")); else aCell.add(getWidgetFor(" CC ", "red")); } // } else aCell.add(getWidgetFor("")); aCell.setAlign("left"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getProtocolDispositionLinkWidgetFor(elementOne, elementZero, (String) currentRow.elementAt(5), "Closure" |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolExpirationEmailServlet.java | 37 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolExpirationEmailServlet.java | 123 |
res.setContentType("text/html"); java.io.PrintWriter toClient = res.getWriter(); String servletPath = RascalProperties.getProperty("ServletPath"); toClient.println("<BASE HREF=" + servletPath + ">"); toClient.println("<HTML>"); toClient.println(" <HEAD><TITLE>RASCAL</TITLE></HEAD>"); toClient.println("<BODY bgcolor='#fffff0' >"); toClient.println("<CENTER>"); toClient.println("<P>"); toClient.println( "<FORM METHOD=POST ACTION='edu.columbia.rascal.presentation.irb.servlets.IrbProtocolExpirationEmailServlet/'>" ); toClient.println("<TABLE width='50%' border=0>"); toClient.println("<TR>"); toClient.println( " <td align='CENTER' valign='MIDDLE' bgcolor='#336699' COLSPAN=4><font face='Comic Sans MS' color='#FFFFFF'>" ); toClient.println(" Email Service Maintenance"); toClient.println(" </font>"); toClient.println(" </TD>"); toClient.println("</TR>"); toClient.println("<TR>"); toClient.println( " <TD BGCOLOR='#DDDDDD' COLSPAN=4 align='CENTER'><font face='Comic Sans MS'>" ); toClient.println(" You can start, restart or stop the Irb expiration email service"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolRenewalEmailServlet.java | 37 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolRenewalEmailServlet.java | 123 |
res.setContentType("text/html"); java.io.PrintWriter toClient = res.getWriter(); String servletPath = RascalProperties.getProperty("ServletPath"); toClient.println("<BASE HREF=" + servletPath + ">"); toClient.println("<HTML>"); toClient.println(" <HEAD><TITLE>RASCAL</TITLE></HEAD>"); toClient.println("<BODY bgcolor='#fffff0' >"); toClient.println("<CENTER>"); toClient.println("<P>"); toClient.println( "<FORM METHOD=POST ACTION='edu.columbia.rascal.presentation.irb.servlets.IrbProtocolRenewalEmailServlet/'>" ); toClient.println("<TABLE width='50%' border=0>"); toClient.println("<TR>"); toClient.println( " <td align='CENTER' valign='MIDDLE' bgcolor='#336699' COLSPAN=4><font face='Comic Sans MS' color='#FFFFFF'>" ); toClient.println(" Email Service Maintenance"); toClient.println(" </font>"); toClient.println(" </TD>"); toClient.println("</TR>"); toClient.println("<TR>"); toClient.println( " <TD BGCOLOR='#DDDDDD' COLSPAN=4 align='CENTER'><font face='Comic Sans MS'>" ); toClient.println(" You can start, restart or stop the Irb renewal email service"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtApprovalQueueView.java | 142 |
edu/columbia/rascal/presentation/propTrak/pages/PtApprovalQueueView.java | 204 |
columns.addElement(getProposalDataSheetLinkWidgetFor((String) currentRow.elementAt(1), (String) currentRow.elementAt(0))); columns.addElement(getWidgetFor(((currentRow.elementAt(4) != null) ? "F" : ""))); columns.addElement(getWidgetFor((String) currentRow.elementAt(2))); columns.addElement(getWidgetFor((String) currentRow.elementAt(5))); CUHtmlText t = null; Date date = (Date) currentRow.elementAt(3); if (date != null) { t = new CUHtmlText(CalendarTransformer.toString(date)); t.setFontSize("1"); columns.addElement(t); } else { columns.addElement(""); } aTable.addRowFor(columns); columns = new Vector<Object>(5); // clear out the values.... |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtComplianceHazardousMaterialEntryView.java | 70 |
edu/columbia/rascal/presentation/propTrak/pages/PtComplianceHumanSubjectEntryView.java | 64 |
addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitPopUpDateForm.js"))); addOrEdit = pageType; aComplianceOid = complianceOid; setProposal(bo); add(bo); render(); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); getForm().add(getHiddenWidgetFor("AddOrEdit", addOrEdit)); getForm().add(getHiddenWidgetFor("complianceOid", "" + aComplianceOid)); getForm().add(aTable); getForm().add(getHiddenWidgetFor("dateValid", "true")); getForm().add(getActionButtons("Save", |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 179 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 183 |
elements.addElement(getWidgetFor("Project Officer")); t.addRowFor(elements); elements = new Vector(8); Vector v = rows; for (int i = 0; i < v.size(); i++) { Vector currentRow = (Vector) v.elementAt(i); if (!(getPrintable())) { elements.addElement(getProposalLinkWidgetFor((String) currentRow.elementAt(1))); // trackId } else { elements.addElement(getWidgetFor((String) currentRow.elementAt(1))); } elements.addElement(getWidgetFor((currentRow.elementAt(7) != null) ? "F" : "")); elements.addElement(getWidgetFor((String) currentRow.elementAt(3))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS2590Servlet.java | 717 |
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS398Servlet.java | 789 |
); // ensure that the Rascal User Object has been set if (localPtProposalHeader == null) { organizationTitle.setValue(""); } else { // rascalUser object to access the ProjectOfficer email String po = localPtProposalHeader.getProjectOfficer(); RascalUser r = null; if (po != null) r = ServiceLocator.getRascalUserService().findByUserId(po); // check if RascalUser object is a null value if (r == null) { organizationTitle.setValue(""); } else { // get the email for the ProjectOfficer String value = r.getTitle(); if (value != null) { organizationTitle.setValue(this.checkFieldLimit(value)); r = null; } else { organizationTitle.setValue(""); r = null; } } } } /** * TODO: DOCUMENT ME! * * @throws RemoteException TODO: DOCUMENT ME! */ private void setFormTXTPrincipalAddress() throws RemoteException { // StringBuffer instance to hold the address StringBuilder address = new StringBuilder(); String space = " "; String skip_line = "\n"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportApprovalHistoryServlet.java | 204 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 280 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportSignoffServlet.java | 316 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportStatusServlet.java | 259 |
String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); rows.sortByColumn(sortBy); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } if ((rows == null) || (rows.isEmpty())) { String link = "parent.frames[1].location='" + PtLinkFrameServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 78 |
edu/columbia/rascal/presentation/tc/views/TCReportAbstractView.java | 198 |
if (initRid != null) { initiator = ServiceLocator.getRascalUserService().findById(initRid); } if (initiator == null) { initiatorString = blank; } else { initiatorString = initiator.getNameFirst() + " " + initiator.getNameLast() + " (" + initiator.getUserId() + ")"; } s.append("<p><table align= \"center\" width=\"95%\" border=\"1\" bgcolor=\"#CCCCCC\">"); /*1*/ // course number s.append("<tr><td align=\"right\" width= \"15%\"> "); s.append("<font face=\"Verdana\" size=\"1\">Course Number</font>"); s.append("</td> <td align= \"left\" width= \"25%\"> <font face=\"Verdana\" size=\"1\"> "); s.append(getCourseHeader().getCourseNumber()); s.append("</font></td>"); // title s.append("<td align= \"right\" width= \"20%\"> "); s.append("<font face=\"Verdana\" size=\"1\">Title</font>"); s.append("</td>"); s.append("<td align= \"left\" width= \"40%\"> <font face=\"Verdana\" size=\"1\"> "); s.append(aTitle).append("</font></td></tr>"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptFilterByJobCodeView.java | 251 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 300 |
aTable.setBorderWidth(1); int maxCourseNumber = allCourses.size(); columns.addElement(getHeadingLabelFor("")); for (int i = 0; i < maxCourseNumber; i++) columns.addElement(getHeadingLabelFor((String) allCourses.elementAt(i))); aTable.addRowFor(columns); int resultSize = results.size(); for (int i = 0; i < resultSize; i++) { columns = new Vector<Object>(maxCourseNumber + 1); Vector<Object> currentRow = (Vector) results.elementAt(i); // name columns.addElement(getWidgetFor((String) currentRow.elementAt(0))); for (int j = 0; j < maxCourseNumber; j++) // build couses columns { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminLogoFrameView.java | 64 |
edu/columbia/rascal/presentation/user/views/RuCertificationLogoFrameView.java | 78 |
CUHtmlText t = new CUHtmlText("RASCAL Administration"); t.setFontName(getDefaultFontName()); t.setFontSize("+3"); add(t); add("</div>\n</td>\n</tr>\n"); add("<tr>\n<td colspan=\"2\">\n"); add("<table>\n<tbody>\n"); add("</tr>\n<td width=\"95\" valign=\"top\">\n<font face=\"Verdana\" size=\"1\">\n"); add("<a href=\"" + RascalProperties.getProperty("LogOutPage") + "\"><font color=\"#0000FF\"><b>Logout</b></font></a>\n| " ); add( "<a href=\"\" onClick=\"return parent.frames[0].openNew('../help/','Help','toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=400')\"><font color=\"#0000FF\"><b>Help</b></font></a>\n| " ); add("</font>\n</td>\n<td>\n<font size=\"1\">\n"); add("<td colspan=\"2\" valign=\"bottom\">\n<font face=\"Verdana\" size=\"1\">\n"); add(" <a href=\"/irb\" target=\"_top\"><font color=\"#0000FF\">Human Subjects</font></a>\n| " ); add("<a href=\"/iacuc\" target=\"_top\"><font color=\"#0000FF\">Animal Care</font></a>\n| " ); add("<a href=\"/pt\" target=\"_top\"><font color=\"#0000FF\">Proposal Tracking</font></a>\n| " ); add("<a href=\"" + ConsentMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">Consent Forms</font></a>\n| " ); add("<a href=\"" + HipaaMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">HIPAA Forms</font></a>\n| " ); add("<a href=\"" + AppendixMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">Haz Mats</font></a>\n|" ); add( "<font face=\"Verdana\" size=\"1\" style=\"color: #FFFFFF; background-color: #3355FF;\"> Administration </font>|\n" ); add("<a href=\"" + TCMainServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 208 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 208 |
edu/columbia/rascal/presentation/appendix/pages/AppendixISafetyOfficerApprovalView.java | 140 |
AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + APPROVAL_RADIATION_SAFETY_OFFICER + "</b>" |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1309 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 902 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 824 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param monthIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getMonthWidget(String fieldName, int monthIndex) { Vector list = new Vector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * This method was created in VisualAge. * * @param aValue rows int - the number of required rows * @param inputName cells int - the number of cell within each row * * @return edu.columbia.rascal.presentation.fo.alertService.html.CUHtmlTable */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { CUHtmlMultiLineEntryField mlef = new CUHtmlMultiLineEntryField(inputName, "7", "60", |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixLabCorrespondenceCreateView.java | 369 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceRespondView.java | 642 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceReturnOrApproveCreateView.java | 509 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixViewCorrespondenceView.java | 256 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceCreateView.java | 240 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceRespondView.java | 320 |
} /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getRowLabelForFontSize(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("2"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("100%"); t.getCell(0, 0).setAlign("right"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aSubHeader TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getSubHeader(String aSubHeader) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAReportServlet.java | 71 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixBReportServlet.java | 61 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCReportServlet.java | 70 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixDReportServlet.java | 71 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixEReportServlet.java | 71 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixFReportServlet.java | 70 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixGReportServlet.java | 70 |
} /** * This method was created in VisualAge. * * @return java.lang.String */ @Override public String getAppendixType() { return APPENDIX_LETTER; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CURascalHtmlView getPage() { setAppendixType(APPENDIX_LETTER); String msg = "Appendix " + APPENDIX_LETTER; // if displaying an appendix that is attached to an owning object, get essential data // contained in the owner's surrogate (AppendixOwnerSurrogate) AppendixOwnerSurrogate ownerSurrogate = findOwnerSurrogate(); AppendixTracking aTracker = getAppendixTracking(ownerSurrogate); String appendixOid = getAppendixOid(ownerSurrogate, aTracker); if (isEmpty(appendixOid)) { return new AppendixMessageView( msg + " was not correctly identified. Rascal could not retrieve it.", "window.close();", "" ); } String isProposal = null; isProposal = getLineParameter("isProposal"); if (isProposal == null) { isProposal = "false"; } String msgExtension = validateAppendix(ownerSurrogate, appendixOid); if (!isEmpty(msgExtension)) { return new AppendixMessageView( msg + msgExtension, "window.close();", "" ); } AbstractAppendix anAppendix = ServiceLocator.getAppendixAService().findById(Long.valueOf( |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 740 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 648 |
} /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getMonthWidget(java.lang.String, int) */ @Override public Object getMonthWidget(String fieldName, int monthIndex) { EVector list = new EVector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * TODO: DOCUMENT ME! * * @param aValue TODO: DOCUMENT ME! * @param inputName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { CUHtmlMultiLineEntryField mlef = new CUHtmlMultiLineEntryField(inputName, "5", "50", |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetryController.java | 248 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetryController.java | 308 |
dataList.add(dataMap); } Collections.sort(dataList, new Comparator<Map<String, Object>>() { @Override public int compare(Map<String, Object> o1, Map<String, Object> o2) { String d1 = (String) o1.get(ORGAN); String d2 = (String) o2.get(ORGAN); if (d1 == null || d2 == null) { if (d1 == null && d2 != null) return 1; if (d2 == null && d1 != null) return -1; return 0; } return d1.compareTo(d2); } }); return dataList; } /** * TODO: DOCUMENT ME! * * @param appendixId TODO: DOCUMENT ME! * @return TODO: DOCUMENT ME! */ @RequestMapping( value = "/{dosimetryId}/doseReferences", |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucAttachAppendixController.java | 128 |
edu/columbia/rascal/presentation/controller/iacuc/IacucAttachAppendixController.java | 159 |
model.addAttribute("protocol", protocol); final RascalUser cu = getLoggedInUser(); model.addAttribute("recordHeading", headerService.getRecordHeading(protocol, cu)); final List<AbstractAppendix> releasedAppendices = appendixAccessControlService .getReleasedAndUnattachedAppendicesByRidAndOwner(cu.getId(), protocolId, IacucProtocolHeaderService.ANIMAL_CARE_OWNER); final List<AbstractAppendix> attachedAppendices = appendixTrackingService.getAttachedApendicesByOwner(protocolId, IacucProtocolHeaderService.ANIMAL_CARE_OWNER); if (attachedAppendices.size() >0) protocol.setIsExposedHazmat("Y"); fillUserInfo(releasedAppendices); fillUserInfo(attachedAppendices); Collections.sort(releasedAppendices, AbstractAppendix.sortByTypeAndNumber); Collections.sort(attachedAppendices, AbstractAppendix.sortByTypeAndNumber); model.addAttribute("releasedAppendices", releasedAppendices); model.addAttribute("attachedAppendices", attachedAppendices); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbClosureSubjectsSubStudyController.java | 122 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolSubjectsSubStudyController.java | 122 |
return loadNewPage(closureId, model); else return loadPage(irbSubjSubStudy.getId(), model); } irbSubjSubStudyService.save(irbSubjSubStudy); status.setComplete(); response.setStatus(HttpStatus.NO_CONTENT.value()); return null; } @RequestMapping(method=RequestMethod.DELETE, value="/delete/{id}") public @ResponseBody ResponseEntity<String> delete(@PathVariable Long id, Model model) { IrbSubjSubStudy irbSubjSubStudy = irbSubjSubStudyService.findById(id); irbSubjSubStudyService.delete(irbSubjSubStudy); return new ResponseEntity<String>(HttpStatus.NO_CONTENT); } @RequestMapping(method=RequestMethod.GET, value="/list") public @ResponseBody List<Map<String, Object>> list(@PathVariable Long closureId, Model model) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 155 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 162 |
edu/columbia/rascal/presentation/user/servlets/RuAbstractServlet.java | 115 |
super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doPost in CURascalVAPServlet and CURascalServlet.</p> * * <p>hh 5/19/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2301 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1274 |
Vector elements = new Vector(); CUHtmlText aTextLabel = new CUHtmlText("Sort List By:"); aTextLabel.setFontSize("1"); aTextLabel.setFontName(getDefaultFontName()); elements.addElement(aTextLabel); Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList" + queueName, sortSelection ); elements.addElement(aListWidget); String onClick; if (queueName.equals("A") || queueName.equals("C")) onClick = "Javascript:getSortByValue1('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; else onClick = "Javascript:getSortByValue3('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; elements.addElement(new CUHtmlPushButton("BUTTON", "BUTTON", "Sort", onClick)); aHeaderTable.addRowFor(elements); // aHeaderTable.getCell(0,0).setWidth("15%"); // aHeaderTable.getCell(0,1).setWidth("30%"); // aHeaderTable.getCell(0,2).setWidth("10%"); aHeaderTable.getCell(0, 2).setAlign("left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCTSACorrespondenceView.java | 212 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueNotifyCorrespondenceView.java | 205 |
); getAForm().add("</TR>"); int counter = 0; String rowColor; Vector info = null; while (i-- > 0) { rowColor = getQueueHTMLRowColor(counter++); info = (Vector) v.elementAt(i); setTableDataRow(info, rowColor); } getAForm().add("<TR VALIGN=\"TOP\"><TD><HR WIDTH=\"100%\"></TD></TR>"); getAForm().add("</TABLE></CENTER>"); } } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVector(java.util.Vector newResultVector) { resultVector = newResultVector; } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVectorAE(java.util.Vector newResultVector) { resultVectorAE = newResultVector; } /** * TODO: DOCUMENT ME! * * @param row TODO: DOCUMENT ME! * @param rowColor TODO: DOCUMENT ME! */ public void setTableDataRow(Vector row, String rowColor) { StringBuffer parmString = new StringBuffer(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbAbstractServlet.java | 122 |
edu/columbia/rascal/presentation/user/servlets/CURascalUserAbstractServlet.java | 84 |
cleanSessionData(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * Override the doGet in CURascalVAPServlet and CURascalServlet. I am not happy with the * behavior implemented in those classes * * <p>hh 3/2/00</p> * * <p>sometime in the future, those superclassed methods will be reworked, but i need to get * around them NOW!</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterMemberView.java | 127 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterView.java | 140 |
aRow.add(aCell2); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!getPrintable()) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton( "BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + PtReportAdministrativeMenuServlet.class.getName() + "';" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterView.java | 90 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 102 |
if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( ((CUSortVector) rows).getColumnNames(), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("rpt1.html")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 707 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1552 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(String aString) { if ((aString == null) || aString.trim().equals("")) { CUHtmlImage i = new CUHtmlImage("/images/blank.gif"); i.setBorderWidth(0); return i; } CUHtmlText text = new CUHtmlText(aString); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** * This method was created in VisualAge. * * @param aBoolean TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(boolean aBoolean) { CUHtmlText text = new CUHtmlText(aBoolean ? "Yes" : "No"); text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** Iterate through the collection of object and fires the relevant 'add' method. */ public final void render() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListJdbcAccessor.java | 118 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaJdbcAccessor.java | 109 |
edu/columbia/rascal/presentation/ic/jdbc/IacucJdbcAccessor.java | 60 |
public static String getLastFirstName(String lastName, String firstName) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName) + ", " + (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName); } return nameString; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixASafetyOfficerApprovalView.java | 72 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 73 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 72 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 75 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 74 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 74 |
addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkEmailAddresses.js"))); if (anOwnerSurrogate.getOwnerType().equals(IRB_OWNER)) { addJavaScriptElement(new CUHtmlText(getJSCodeFrom("irbSafetyOfficerReturnConfirm.js"))); } addJavaScriptElement(CURascalHmJavascript.getJavascriptCheckRecipient()); setAppendixObject(anAppendixObject); setOwnerSurrogate(anOwnerSurrogate); setTracker(aTracker); setRascalUser(aUser); add(anAppendixObject); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields() throws Exception { CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 4); CUHtmlTableRow aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_1_ReviewAndApproveText(), "40%", getTitleAlign()); aCell1.setColumnsToSpan(3); aRow.add(aCell1); aTable.add(aRow); addSpacerRows(aTable, 1, 2, "8"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 160 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 238 |
} /** * TODO: DOCUMENT ME! * * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getBooleanWidgetFor(String aName, boolean aValue) { CUHtmlCheckBox cb = new CUHtmlCheckBox(aName, aName, aValue); return cb; } /** * TODO: DOCUMENT ME! * * @param aType TODO: DOCUMENT ME! * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getButtonWidgetFor(String aType, String aName, String aValue) { CUHtmlPushButton pb = new CUHtmlPushButton(aType, aName, aValue); return pb; } /** * TODO: DOCUMENT ME! * * @param aType TODO: DOCUMENT ME! * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * @param onClickValue TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getButtonWidgetFor(String aType, String aName, String aValue, String onClickValue) { CUHtmlPushButton pb = new CUHtmlPushButton(aType, aName, aValue, onClickValue); return pb; } /** * TODO: DOCUMENT ME! * * @param aName TODO: DOCUMENT ME! * @param aValue TODO: DOCUMENT ME! * @param checked TODO: DOCUMENT ME! * @param aLabel TODO: DOCUMENT ME! * @param onClickValue TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getCheckBoxWidgetFor(String aName, String aValue, boolean checked, String aLabel, String onClickValue ) { CUHtmlCheckBox cb = new CUHtmlCheckBox(aName, aValue, checked, aLabel, onClickValue); return cb; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 584 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 570 |
"Consent/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("left"); v.addElement(i); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("50%"); t.getCell(0, 1).setAlign("left"); t.getCell(0, 1).setWidth("50%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * @param aLabel TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getHeadingLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); return txt; } /** * <p>answer a CUHtmlImage that points to the Help Html file.</p> * * @param source TODO: DOCUMENT ME! * * @return <p>answer a CUHtmlImage that points to the Help Html file.</p> */ public CUHtmlImage getHelpFor(String source) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormBlankLineEntryView.java | 140 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 338 |
aTable.getCell(row, 0).add(getRowLabelFor("Parent Item's ID ")); aTable.getCell(row, 1).setColumnsToSpan(2); row++; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); String addOrSave = "Add"; if (addOrEdit.equals("Edit")) { addOrSave = "Save"; } CUHtmlPushButton pb1 = new CUHtmlPushButton("RESET"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("SUBMIT", "SUBMIT", addOrSave); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormEmbeddedQuestionEntryView.java | 99 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 99 |
setSubTitle("Embedded-Answer Question"); getForm().add(getSubTitle()); getForm().add("<br>"); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPadding(1); aTable.setCellSpacing(3); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); getForm().add(getHiddenWidgetFor("AddOrEdit", addOrEdit)); getForm().add(getHiddenWidgetFor("questionOid", String.valueOf(questionOid))); getForm().add(aTable); getForm().add("<br>"); getForm().add(getActionButtons()); add(getForm()); } /** * This method was created in VisualAge. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! * @param aQuestion TODO: DOCUMENT ME! */ private void addFormatTypeWidget(CUHtmlTable aTable, int numCells, HipaaQuestionLookup aQuestion) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueStipulatedApprovalView.java | 520 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueStipulatedApprovalView.java | 688 |
if (parentName.equals(IrbNameConstants.PROTOCOL_HEADER) || parentName.equals(IrbNameConstants.MODIFICATION) || parentName.equals(IrbNameConstants.RENEWAL) ) wIRB = ((String) row.get("WesternIRB")).startsWith("Western") ? "WIRB" : ""; else { IrbProtocol prot = ServiceLocator.getIrbProtocolService().getByProtocolNumber( (String) row.get("ProtocolNumber"), getRascalUser() ); ph = ServiceLocator.getIrbProtocolService().getLastApprovedProtocolHeader(prot); if (ph == null) ph = prot.getLastProtocolHeader(); if (ph.getIrbOfRecordOid().equals( ServiceLocator.getIrbOfficialIrbOfRecordService().getOidByName( "Western IRB" ) ) ) wIRB = "WIRB"; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 154 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryDateRangeView.java | 232 |
aWidget = getReportRangeWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Range:")); row++; columns.setElementAt(getDateTable(endDate, "endDate", "endDateMonth", "endDateDay", "endDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Ending On:")); row++; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit", |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportActiveApprovedProtocolServlet.java | 74 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportInProcessProtocolServlet.java | 74 |
columns.addElement("Abbreviated_Title"); CURascalHtmlView view = null; CUSortVector rows = new CUSortVector(getSelectedData(uni, department)); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); rows.sortByColumn(sortBy); } else sortBy = new String(); boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && !printableString.equals("")) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && !downloadableString.equals("")) { downloadable = downloadableString.equalsIgnoreCase("true"); } view = new IrbReportActiveApprovedProtocolView(rows, printable, sortBy, downloadable, |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 707 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1080 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1552 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(String aString) { if ((aString == null) || aString.trim().equals("")) { CUHtmlImage i = new CUHtmlImage("/images/blank.gif"); i.setBorderWidth(0); return i; } CUHtmlText text = new CUHtmlText(aString); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** * This method was created in VisualAge. * * @param aBoolean TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(boolean aBoolean) { CUHtmlText text = new CUHtmlText(aBoolean ? "Yes" : "No"); text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailDateRangeView.java | 96 |
edu/columbia/rascal/presentation/agenda/pages/IrbReportEnterProtocolNumberView.java | 93 |
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolSearchView.java | 76 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolSearchView.java | 75 |
addGeneralRows(aTable, numCells, aUser, agendas); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); add(aForm); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! * @param aUser TODO: DOCUMENT ME! * @param agendas TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells, RascalUser aUser, Vector agendas) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListJdbcAccessor.java | 118 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixApproverViewReleasedQueueServlet.java | 330 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaJdbcAccessor.java | 109 |
edu/columbia/rascal/presentation/ic/jdbc/IacucJdbcAccessor.java | 60 |
public static String getLastFirstName(String lastName, String firstName) { String nameString; if (((lastName == null) || (lastName.trim().length() == 0)) && ((firstName == null) || (firstName.trim().length() == 0)) ) { nameString = "not specified"; } else { nameString = (((lastName == null) || (lastName.trim().length() == 0)) ? "-" : lastName) + ", " + (((firstName == null) || (firstName.trim().length() == 0)) ? "-" : firstName); } return nameString; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAccessControlEntryView.java | 95 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaControlEntryView.java | 86 |
setSubTitle("RASCAL Appendix - Add/Edit Access Control Personnel"); add(getSubTitle()); addFields(); } /** * This method was created in VisualAge. @2002 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); getForm().add("<BR>"); if (theOid == null) { theAddEdit = "Add"; } else { theAddEdit = "Edit"; } getForm().add(getHiddenWidgetFor("hiddenAddEdit", theAddEdit)); getForm().add(getHiddenWidgetFor("hiddenOid", theOid)); getForm().add(aTable); getForm().add("<BR>"); getForm().add(getActionButtons()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractPopupServlet.java | 31 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractPopUpServlet.java | 37 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractPopUpServlet.java | 36 |
public AppendixAbstractPopupServlet() { super(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>bw 07/11/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validateGet()) { CURascalHtmlView page = getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else { writeWindowCloseAndExitScript(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixCServlet.java | 183 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixDServlet.java | 134 |
AppendixAccessControl ac = (AppendixAccessControl) res.elementAt(i); if ((ac.getRid() != null) && (ac.getRid().intValue() == anAppendix.getCreatedBy().intValue()) ) { hasAccessForCreator = true; break; } } if (!hasAccessForCreator) { AppendixAccessControl newAc = new AppendixAccessControl(anAppendix.getId(), anAppendix.getAppendixType() ); ServiceLocator.getAppendixAccessControlService().save(newAc); newAc.setRid(anAppendix.getCreatedBy()); newAc.setEditView(ACCESS_EDIT); ServiceLocator.getAppendixAccessControlService().save(newAc); } } catch (Exception e) { log.error("Exception saving appendix.", e); } } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#getRedirectUrl() */ @Override protected String getRedirectUrl() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormBlankLineEntryView.java | 140 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 338 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 175 |
aTable.getCell(row, 0).add(getRowLabelFor("Parent Item's ID ")); aTable.getCell(row, 1).setColumnsToSpan(2); row++; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); String addOrSave = "Add"; if (addOrEdit.equals("Edit")) { addOrSave = "Save"; } CUHtmlPushButton pb1 = new CUHtmlPushButton("RESET"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("SUBMIT", "SUBMIT", addOrSave); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 157 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 164 |
edu/columbia/rascal/presentation/user/servlets/CURascalUserAbstractServlet.java | 85 |
} catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doPost in CURascalVAPServlet and CURascalServlet.</p> * * <p>hh 5/19/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2521 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1386 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 1171 |
} /** * TODO: DOCUMENT ME! * * @param aString TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getWidgetFor(String aString) { if ((aString == null) || aString.trim().equals("")) { CUHtmlImage i = new CUHtmlImage("/images/blank.gif"); i.setBorderWidth(0); return i; } CUHtmlText text = new CUHtmlText(aString); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } text.setFontSize("1"); text.setFontName("Verdana"); return text; } /** * TODO: DOCUMENT ME! * * @param aBoolean TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getWidgetFor(boolean aBoolean) { CUHtmlText text = new CUHtmlText(aBoolean ? "Yes" : "No"); text.setFontSize("1"); text.setFontName("Verdana"); return text; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentInternalView.java | 142 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentView.java | 133 |
.getAllSortedAttachmentsInternal(getUnanticipate()); if (ps.size() > 0) { aForm.add("<br>"); aForm.add(getTableViewTitle(" Documents")); aForm.add(buildAttachmentRows(ps)); } aForm.add("<br>"); aForm.add(aTable); String currentStatusName = ServiceLocator.getIrbStatusService().getCurrentStatus( getUnanticipate().getId(), getUnanticipate().classNameWithoutPrefix() ).getStatusName(); if (currentStatusName.equals(RETURNED) || currentStatusName.equals(PENDING)) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbAbstractServlet.java | 123 |
edu/columbia/rascal/presentation/user/servlets/RuAbstractServlet.java | 117 |
} catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * Override the doGet in CURascalVAPServlet and CURascalServlet. I am not happy with the * behavior implemented in those classes * * <p>hh 3/2/00</p> * * <p>sometime in the future, those superclassed methods will be reworked, but i need to get * around them NOW!</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/servlets/HzStaffEntryServlet.java | 214 |
edu/columbia/rascal/presentation/lab/servlets/HzStaffEntryServlet.java | 262 |
boolean flagC = ((getProtocol().getHazMatHumanBloodOrCell() != null) && (getProtocol().getHazMatHumanBloodOrCell().trim().equals("Y"))); staff.setAppendixA( flagA ? (role.equals("Principal Investigator") ? "Y" : ((getRequestParameter("appendixA") != null) ? "Y" : "N")) : "N" ); staff.setAppendixB( flagB ? (role.equals("Principal Investigator") ? "Y" : ((getRequestParameter("appendixB") != null) ? "Y" : "N")) : "N" ); staff.setAppendixC( flagC ? (role.equals("Principal Investigator") ? "Y" : ((getRequestParameter("appendixC") != null) ? "Y" : "N")) : "N" ); ServiceLocator.getHzStaffService().save(staff); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 815 |
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 1595 |
buff.append("order by U.rid "); String email = null; // this is to get the headers by Rid of the User try { @SuppressWarnings("unchecked") List<Object[]> resultList = ServiceLocator.getCURascalJdbcAccessorService().executeNoParmPreparedQuery(buff.toString()); for(Object[] res:resultList){ row = new HashMap<String, Object>(); row.put("anRid", ((BigDecimal) res[3]).intValue()); row.put("nameString", ((res[2] == null) ? "" : res[2]) + " " + ((res[1] == null) ? "" : res[1]) ); row.put("userId", (res[0] == null) ? "" : res[0]); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse30DaysWarningTask.java | 225 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 210 |
for(Map<String, Object> data: emailList){ listOfRecipients.append((String) data.get("nameLast")); listOfRecipients.append(", "); listOfRecipients.append((String) data.get("nameFirst")); listOfRecipients.append(" ("); listOfRecipients.append((String) data.get("uni")); listOfRecipients.append(" - "); listOfRecipients.append((String) data.get("emailPreferred")); listOfRecipients.append(")\t"); listOfRecipients.append("TC-"); List<List<Object>> RequiredCourses = TCCourseQuery.getAllRequiredCourseListByRid(((BigDecimal) data.get("rid")).intValue(), 30); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/servlets/ConsentCopyServlet.java | 106 |
edu/columbia/rascal/presentation/consent/servlets/ConsentFormNewServlet.java | 327 |
String numberString = "000" + Long.toString(id); numberString = numberString.substring(numberString.length() - 4, numberString.length() ); char charPart[] = new char[4]; int letterPart = id / 10000; charPart[3] = getLetters()[letterPart % 26]; charPart[2] = getLetters()[(letterPart / 26) % 26]; charPart[1] = getLetters()[(letterPart / (26 * 26)) % 26]; charPart[0] = getLetters()[(letterPart / (26 * 26 * 26)) % 26]; aConsentNumber = (new String(charPart) + numberString); return aConsentNumber; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetryController.java | 380 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetryController.java | 475 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetrySummaryController.java | 333 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsDosimetrySummaryController.java | 416 |
@PathVariable(AGENT_TYPE) String agentType, @ModelAttribute(DOSE) @Valid HzDosimetryDose hzDosimetryDose, BindingResult result, ModelMap modelMap) { Map<String, Object> response = new HashMap<String, Object>(); //AppendixH appendixH = appendixHService.findById(appendixId); HzDosimetry hzDosimetry = hzDosimetryService.findById(dosimetryId); // Check Dosimetry if ( hzDosimetry == null ) { response.put("error","Could not find Dosimetry entry with ID " + dosimetryId); return response; } if ( result.hasErrors() ) { List<String> errors = new ArrayList<String>(); for ( ObjectError objectError : result.getAllErrors() ) { errors.add(objectError.getDefaultMessage()); } response.put("error", StringUtils.join(errors,", ")); return response; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormEmbeddedQuestionEntryView.java | 99 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 82 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 99 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormSignatureLineEntryView.java | 97 |
setSubTitle("Embedded-Answer Question"); getForm().add(getSubTitle()); getForm().add("<br>"); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPadding(1); aTable.setCellSpacing(3); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); getForm().add(getHiddenWidgetFor("AddOrEdit", addOrEdit)); getForm().add(getHiddenWidgetFor("questionOid", String.valueOf(questionOid))); getForm().add(aTable); getForm().add("<br>"); getForm().add(getActionButtons()); add(getForm()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 915 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 515 |
Vector list = new Vector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * TODO: DOCUMENT ME! * * @param aValue TODO: DOCUMENT ME! * @param inputName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { CUHtmlMultiLineEntryField mlef = new CUHtmlMultiLineEntryField(inputName, "3", "50", "PHYSICAL", aValue ); return mlef; } /** * TODO: DOCUMENT ME! * * @param aValue TODO: DOCUMENT ME! * @param inputName TODO: DOCUMENT ME! * @param height TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getMultilineTextWidgetFor(String aValue, String inputName, String height) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 425 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 557 |
row.put("CurrentStatus", res.getString(8)); // row.put("TimesIn", Integer.valueOf((new Float(res.getFloat(12))).intValue()).toString()); if (res.getString(8).equals(ASSIGNED_TO_MEETING)) { java.sql.Date aDate = getMeetingDateFor(res.getLong(11)); if (aDate == null) row.put("MeetingDate", ""); else row.put("MeetingDate", aDate); } else row.put("MeetingDate", ""); row.put("StatusDate", res.getDate(9)); java.sql.Date aDate = getCorrespondenceCurrentNotifyDateFor("Researcher", res.getLong(2), res.getString(1) ); if (aDate == null) row.put("LastCorrespondenceToPIDate", ""); else row.put("LastCorrespondenceToPIDate", aDate); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 99 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 85 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 217 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 123 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 289 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 97 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 84 |
getForm().add(addDateRange()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 266 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 289 |
(String) currentRow.elementAt(getIndexOfProposalType()) ) ); // prop type } if (getIndexOfProjBegDate() > 0) { dateObj = currentRow.elementAt(getIndexOfProjBegDate()); // startDate if (dateObj instanceof Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } } if (getIndexOfProjEndDate() > 0) { dateObj = currentRow.elementAt(getIndexOfProjEndDate()); // endDate if (dateObj instanceof Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } } if (getIndexOfTotalMoney() > 0) { // |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCAbstractPopupServlet.java | 118 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 177 |
if (validatePost()) { } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, req.getMethod() + " " + getClassName())).draw( getResponse() ); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptInactiveView.java | 507 |
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptView.java | 333 |
cCell.setWidth("75%"); bRow.add(cCell); cCell = new CUHtmlTableCell(); // input date if (currentRow[10] == null) cCell.add(""); else cCell.add(getWidgetFor(CalendarTransformer.toString((Date) currentRow[10])) ); cCell.setAlign("left"); cCell.setWidth("10%"); bRow.add(cCell); cCell = new CUHtmlTableCell(); // date passed if (currentRow[8] == null) cCell.add(""); else cCell.add(getWidgetFor(CalendarTransformer.toString((Date) currentRow[8])) ); cCell.setAlign("left"); cCell.setWidth("10%"); bRow.add(cCell); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinuteHistoryDateRangeView.java | 38 |
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchDateRangeView.java | 43 |
public IrbAgendaMinuteHistoryDateRangeView() { super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); add(getHiddenWidgetFor("dateValid", "true")); setSubTitle("Irb Agenda Minute History"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 117 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 112 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 105 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 109 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 241 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 147 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 313 |
aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAttachOtherTopicForAgendaMainView.java | 42 |
edu/columbia/rascal/presentation/lookup/pages/RascalActivityTypeLookupMainView.java | 43 |
edu/columbia/rascal/presentation/lookup/pages/RascalAgencyLookupMainView.java | 43 |
edu/columbia/rascal/presentation/lookup/pages/RascalReportDistributionLookupMainView.java | 49 |
public void addFields() { Vector v = new Vector(2); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f1.setSrc(getInputServletString()); f1.setName("Input"); f1.setNoResize("NO"); f1.setScrolling("NO"); f1.setMarginHeight("0"); f1.setMarginWidth("0"); /* Do Not Initialize the Output Frame's Source */ f2.setSrc(getOutputServletString()); f2.setName("Output"); f2.setNoResize("NO"); f2.setScrolling("YES"); f2.setMarginHeight("0"); f2.setMarginWidth("0"); v.addElement(f1); v.addElement(f2); frames.add(v); frames.setRows("30%,*"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixASafetyOfficerApprovalView.java | 215 |
edu/columbia/rascal/presentation/appendix/pages/AppendixISafetyOfficerApprovalView.java | 140 |
AppendixApproval biosafetyApproval = getApproval(SAFETY_OFFICE_TYPE, getTracker()); int approver = 0; Date approvalDate = null; if (biosafetyApproval != null) { approver = ((biosafetyApproval.getApproverRid() == null) ? 0 : biosafetyApproval.getApproverRid().intValue()); } approvalDate = ((approver == 0) || (biosafetyApproval.getApprovalType() == null) || biosafetyApproval.getApprovalType().equals(HOLD)) ? null : biosafetyApproval.getApprovalDate(); // Biosafety Officer aRow = new CUHtmlTableRow(); String name = "<i>approval not yet obtained</i>"; if (approver > 0) name = ServiceLocator.getRascalUserService().findById(approver) .getUserFirstLastNameUni(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(APPROVAL_SAFETY_OFFICER, defaultFontSize, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportProtocolHazMatView.java | 195 |
edu/columbia/rascal/presentation/appendix/pages/AppendixReportPtHazMatView.java | 190 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportHazMatView.java | 166 |
) ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } getForm().add(buildHazMatReportTable(dataTableVector)); } add(getForm()); } /** * TODO: DOCUMENT ME! * * @param aFromDate TODO: DOCUMENT ME! * @param aToDate TODO: DOCUMENT ME! * @param aLocation TODO: DOCUMENT ME! * @param anApplication TODO: DOCUMENT ME! */ public void addHeader(String aFromDate, String aToDate, String aLocation, String anApplication) { // revert date to what user typed Calendar cal = CalendarTransformer.toCalendar(aToDate); cal.add(cal.DAY_OF_YEAR, -1); aToDate = CalendarTransformer.toString(cal); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixGIsotopeEntryServlet.java | 274 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeEntryServlet.java | 274 |
if (!(errorList.isEmpty())) { if (getCurrentIsotope() != null) { String oidString = getCurrentIsotope().getId().toString(); getSession().setAttribute(KEY_PARM_RADIO_OID, oidString); } getSession().setAttribute(KEY_PARM_RADIO_NAME, isotope); getSession().setAttribute(KEY_PARM_RADIO_COMPOUND, compound); getSession().setAttribute(KEY_PARM_RADIO_HALFLIFE, halfLife); getSession().setAttribute(KEY_PARM_RADIO_HALFLIFE_UNIT, halfLifeUnit); getSession().setAttribute(KEY_PARM_RADIO_INI_ACTIVE, initialActivity); getSession().setAttribute(KEY_PARM_RADIO_INI_ACTIVE_UNIT, initialActivityUnit); getSession().setAttribute(KEY_PARM_RADIO_ROUTE_OF_ADMIN, routeOfAdmin); getSession().setAttribute(KEY_PARM_RADIO_OTHER_ROUTE, otherRoute); String link = ""; String main = "location='" + AppendixGIsotopeEntryServlet.class.getName() + "'"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/pdf/CURascalPDFComparison.java | 276 |
edu/columbia/rascal/presentation/common/pdf/CURascalPDFComparison.java | 404 |
} // end while Set<String> sourceMinusTarget = new HashSet<String>(sourceDynamicParagraphsSet); sourceMinusTarget.removeAll(targetDynamicParagraphsSet); Set<String> targetMinusSource; if ((sourceMinusTarget.size() != 0) || (sourceDynamicParagraphsSet.size() != targetDynamicParagraphsSet.size()) ) { targetMinusSource = new HashSet<String>(targetDynamicParagraphsSet); targetMinusSource.removeAll(sourceDynamicParagraphsSet); } else { targetMinusSource = new HashSet<String>(); } Vector<Set<String>> results = new Vector<Set<String>>(4); results.add(sourceDynamicParagraphsSet); results.add(targetDynamicParagraphsSet); results.add(sourceMinusTarget); results.add(targetMinusSource); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 259 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 284 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 285 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 274 |
t.getCell(0, 6).setWidth("15%"); // getForm().add(t); // Add the control to display the next or previous page CUHtmlTable pageControl = buildPageDisplayControl(curBeginPos, curPageSize, totalMatch, maxPageSize ); pageControl.addBreaks(2); getForm().add(pageControl); } add(getForm()); } /** * Builds the control to display the next or previous page. The page display control is built as * a table row that consists of the following six cells: 1st cell - the space in the left end * 2nd cell - the hobo button with the left arrow to display the previous page 3rd cell - the * text control to display the previous page 4th cell - the separator 5th cell - the text * control to display the next page 6th cell - the hobo button with the right arrow to display * the next page 7th cell - the space in the right end * * @param curBeginPos an integer that indicates the position of the first record of the * current page in the total matches * @param curPageSize an integer that indicates the number of records in the currunt page * @param totalMatch an intger that indicates the total number of matches in searching * @param maxPageSize an intger that indicates the maximum number of matches to be displayed * on the page * * @return CUHtmlTable a table that contains the page display control * * @author Hyung Park */ public CUHtmlTable buildPageDisplayControl(int curBeginPos, int curPageSize, int totalMatch, int maxPageSize ) { CUHtmlTable aTable = new CUHtmlTable(); java.util.Vector pageControlRow = new java.util.Vector(5); CUHtmlText prev; CUHtmlText next; // Add the space in the left end pageControlRow.addElement(""); if (curBeginPos > 0) { // Will be changed to add a hobo button with the left arrow String leftButton = ""; pageControlRow.addElement(leftButton); // Add the text control to display the previous page prev = new CUHtmlText("Previous " + maxPageSize + " matches"); prev.setLink(HipaaHeaderSearchPageServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 162 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 280 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 160 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 147 |
IrbReportApprovalStatusDateRangeServlet.class.getName() + "'" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); // date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText addDateRange() { String t = null; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 123 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 289 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 118 |
getForm().add(addDate()); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 46 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 78 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusDateRangeView.java | 41 |
setForm(new CUHtmlForm("report", PtReportDeptDateRangeServlet.class.getName(), "POST")); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); setRascalUser(aUser); setSubTitle("Proposals Finalized by Department"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 220 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 244 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 268 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 292 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 316 |
); if ((aTracker != null) && (aTracker.getAppendixOid() > 0)) { AppendixTracking newTracker = new AppendixTracking(newPh.getId(), aTracker.getOwnerType(), aTracker.getAppendixOid(), aTracker.getAppendixType() ); newTracker.setAppendixApprovals(aTracker.getAppendixApprovals()); newTracker.setEhsNumber(aTracker.getEhsNumber()); newTracker.setNoticeRecipients(aTracker.getNoticeRecipients()); newTracker.setRecommendedHousing(aTracker.getRecommendedHousing()); newTracker.setRecommendedPpe(aTracker.getRecommendedPpe()); newTracker.setSafetyOfficerComment(aTracker.getSafetyOfficerComment()); ServiceLocator.getAppendixTrackingService().save(newTracker); } } // Infectious Agents isRequired = oldPh.getHazMatInfectiousAgents(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportApprovalHistoryServlet.java | 77 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 71 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 123 |
if(columns.contains("PI")){row.addElement(res[3]+ ", "+res[4]+"("+res[5]+")");i++;} if(columns.contains("AgencyName")){row.addElement(res[2]);i++;} if(columns.contains("ProposalType")){row.addElement(res[11]);i++;} if(columns.contains("ProjectBeginDate")){row.addElement((res[6] == null)?"":(Date)res[6]);i++;} if(columns.contains("ProjectEndDate")){row.addElement((res[7] == null)?"":(Date)res[7]);i++;} if(columns.contains("TotalMoneyReq.")){row.addElement(((BigDecimal)res[12]).doubleValue());i++;} |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingAdminView.java | 168 |
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramAdminView.java | 166 |
edu/columbia/rascal/presentation/user/views/RuRadiationSafetyBadgeAdminView.java | 165 |
edu/columbia/rascal/presentation/user/views/RuSimpleTrainingEnrollmentAdminView.java | 173 |
RuIcmexpSurgeryTraining cert = itr.next(); if (cert != null) setTableDataRow(aTable, rowCount, cert); rowCount++; } return aTable; } /** @see edu.columbia.rascal.presentation.user.views.RuHtmlView#addMainBody() */ @Override public void addMainBody() { add("<br>"); // put a space in addSubTitle(); CUHtmlForm aForm = getForm(); // Create the Admin control table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // add the admin control rows // set the number of cells per row in the table here: int numbCells = 5; addAdminControlRows(aTable, numbCells); // aForm.add(new CUHtmlRuler()); no ruler within the frame // Add an empty row for space: addSpacerRows(aTable, numbCells, 1, "10"); aForm.add(aTable); aForm.add("<hr>"); if (getModify() != null) { aForm.add(addDataTable()); aForm.add(getActionButtons()); } add(aForm); } /** This method was created in VisualAge. */ public void addSubTitle() { // setSubTitle("Rascal User Certification Administration"); // The tile "ICM Experimental Surgery Training" was changed as follows: setSubSubTitle("Animal Research Training Program"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 440 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 281 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 283 |
} /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } CUHtmlText text = new CUHtmlText(aString); text.setLink("Javascript:onClick=parent.frames[2].location='" //+ |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 723 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 918 |
aRow.add(aCell2); aTable.add(aRow); /* if (getOwnerSurrogate() == null * || !getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER)) { * addSpacerRows(aTable, 1, 2, "8"); aRow = new CUHtmlTableRow(); aCell1 = * utilGetHtmlTableCell( utilGetDefaultHtmlText( STAFF_LIST ), "100%", getTitleAlign() ); * aCell1.setColumnsToSpan(3); * * aRow.add( aCell1 ); aTable.add( aRow ); } */ getForm().add(aTable); } /** @see edu.columbia.rascal.presentation.appendix.pages.AppendixView#addPersonnelDisplayList() */ @Override protected void addPersonnelDisplayList() throws Exception { CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(1); aTable.setWidth("95%"); aTable.setAlign("center"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell; // add column titles CUHtmlText labelText = new CUHtmlText("Name"); labelText.setFontName(getDefaultFontName()); labelText.setFontSize("-2"); aCell = utilGetHtmlTableCell(labelText, "35%", "center"); aRow.add(aCell); labelText = new CUHtmlText("Role"); labelText.setFontName(getDefaultFontName()); labelText.setFontSize("-2"); aCell = utilGetHtmlTableCell(labelText, "30%", "center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixLinkFrameAbstractView.java | 225 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 330 |
} /** * TODO: DOCUMENT ME! * * @param aHeader TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public HzStatus getLatestStatusRecord(HzAppendixHeader aHeader) { boolean isFirstTime = true; HzStatus latestStatus = null; Date tempDate = null; Date latestDate = null; Set<HzStatus> stas = aHeader.getHzStatuses(); Iterator<HzStatus> it = stas.iterator(); while (it.hasNext()) { HzStatus hs = it.next(); tempDate = hs.getStatusDate(); if (isFirstTime) { tempDate = hs.getStatusDate(); latestDate = tempDate; isFirstTime = false; latestStatus = hs; continue; } if (tempDate.after(latestDate)) { latestDate = tempDate; latestStatus = hs; } } if (latestDate != null) { return latestStatus; } return null; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixMainView.java | 59 |
edu/columbia/rascal/presentation/propTrak/pages/PtMainView.java | 34 |
setPageTitle("Columbia University's RASCAL - Research Administration System"); addItems(); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2002 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>We are only allowing THREE frames in our applications: LOGO, LINK, and MAIN</p> */ public void addItems() { Vector v = new Vector(2); CUHtmlFrame f0 = new CUHtmlFrame(); CUHtmlFrame f1 = new CUHtmlFrame(); CUHtmlFrame f2 = new CUHtmlFrame(); f0.setSrc(getLogoServletString()); f0.setName("Logo"); f0.setNoResize("NO"); f0.setScrolling("NO"); f0.setMarginHeight("0"); f0.setMarginWidth("0"); v.addElement(f0); frames.add(v); frames.setRows("85,*"); frames.setColumns("*"); frames.setBorder("1"); frames.setFramespacing("0"); v = new Vector(2); f1 = new CUHtmlFrame(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixFServlet.java | 139 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeServlet.java | 124 |
.getAllByAppendixIdAndType(anAppendix.getId(), "AppendixF"); int siz = accesses.size(); for (int i = 0; i < siz; i++) { AppendixAccessControl ac = (AppendixAccessControl) accesses.elementAt(i); if (ac.getRid().intValue() == anAppendix.getCreatedBy().intValue()) { hasAccessForCreator = true; break; } } // make sure there is an 'edit' access control for creator if (!hasAccessForCreator) { AppendixAccessControl newAc = new AppendixAccessControl( anAppendix.getId(), anAppendix.getAppendixType() ); ServiceLocator.getAppendixAccessControlService().save(newAc); newAc.setRid(anAppendix.getCreatedBy()); newAc.setEditView(ACCESS_EDIT); ServiceLocator.getAppendixAccessControlService().save(newAc); // anAppendix.getAllAccessControlEntries().addElement(newAc.getPersistentObject()); } } catch (Exception e) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucFileUploadController.java | 85 |
edu/columbia/rascal/presentation/controller/iacuc/IacucFileUploadInternalController.java | 76 |
} if (log.isDebugEnabled()) { log.debug("get post here!" + attachment.getDocumentIdentifier()); } final String protocolOid = (String) WebUtils.getSessionAttribute(request, "ProtocolId"); String msg = ""; if (protocolOid != null) { final IacucProtocolHeader header = iacucProtocolHeaderService.findById(protocolOid); msg = validateUploadedFile(file); if (!file.isEmpty() && header != null && msg.length() == 0) { final String contentType = file.getContentType(); final String fileName = file.getOriginalFilename(); attachment.setContentType(contentType); attachment.setFileName(fileName); attachment.setIacucProtocolHeader(header); attachment.setDateCreated(new Date()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueAssignedToMeetingView.java | 305 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueLoggedInView.java | 456 |
aTitle = getTableColumnName("History", "Center"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; // View HIPAA Notes aTitle = getTableColumnName("View<br>HIPAA<br>Notes", "center"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; // Add HIPAA Notes aTitle = getTableColumnName("Add<br>HIPAA<br>Notes", "center"); aCell = aTable.getCell(0, cellNum); aCell.setIsHeader(true); aCell.add(aTitle); aCell.setVAlign("bottom"); aCell.setAlign("left"); cellNum++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 1058 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5467 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5854 |
row.addElement(""); } else { row.addElement(res.getDate(5)); } row.addElement(Integer.valueOf((new Float(res.getFloat(6))).intValue()).toString()); // protocol parent oid row.addElement(res.getString(7)); // committee name row.addElement(res.getString(8)); // times in row.addElement(res.getString(9)); // original Dept code row.addElement(""); results.addElement(row.clone()); row = new Vector(10); } } catch (Exception e) { log.error("Exception while Running query", e); } return results; } /** * RASCAL (halayn) Creation date: (7/26/2002 14:53:52 PM) * * @param whoAmI TODO: DOCUMENT ME! * @param reviewerType TODO: DOCUMENT ME! * * @return Vector of results */ public static Vector getAdverseEventForReviewerQueue(RascalUser whoAmI, String reviewerType) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3292 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4092 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4473 |
row.addElement(res.getString(7)); // committee name row.addElement(res.getString(8)); // times in count row.addElement(res.getString(9)); // original dept code String exp = res.getString(11); row.addElement(((exp == null) || exp.equals("")) ? (((res.getString(10) != null) && res.getString(10).equals("Y")) ? "Exe" : "") : "Exp" ); // exempt marker results.addElement(row.clone()); row = new Vector(10); } // end while } catch (Exception e) { log.error("Exception while Running query", e); } return results; } /** * RASCAL (maggie) Creation date: (4/1/2003 11:13:52 PM) * * @return Vector of results */ public static Vector getPaperProtocolsForValidationQueue() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 79 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 123 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 289 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 76 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 84 |
getForm().add("<br>"); getForm().add("<br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 487 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 454 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 954 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 417 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 526 |
} /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } String number = aString.substring(4, 12); return getLinkForProtocolOverview(aString, number); } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionView.java | 87 |
edu/columbia/rascal/presentation/tc/views/TCReportUNISelectionView.java | 85 |
setSubTitle("Training Center Report By Department"); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); setRascalUser(ru); setWhereFrom(whereFrom); addFields(); aForm.add(getHiddenWidgetFor("whereFrom", whereFrom)); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); setDefaultMainHeader(); aForm.add(getSubTitle()); aForm.add("<br>"); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.setWidth("70%"); aForm.add("<div align=\"center\">"); aForm.add(aTable); aForm.add("<br><br>"); aForm.add(getActionButtons()); aForm.add("</div>"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/servlets/RuICMExperimentalSurgeryTrainingEntryServlet.java | 153 |
edu/columbia/rascal/presentation/user/servlets/RuOccupationalHealthProgramEntryServlet.java | 152 |
edu/columbia/rascal/presentation/user/servlets/RuRadiationSafetyBadgeEntryServlet.java | 125 |
edu/columbia/rascal/presentation/user/servlets/RuSimpleTrainingBBPOEntryServlet.java | 141 |
edu/columbia/rascal/presentation/user/servlets/RuSimpleTrainingLSCHOEntryServlet.java | 141 |
if (CURascalGuardian.hasRuAnimalResearchTraining()) { String rascalUni = getRequestParameter(KEY_RASCAL_UNI); String oidStr = getRequestParameter(KEY_OID); try { if (oidStr != null) oid = Long.parseLong(oidStr); } catch (Exception e) { } if ((rascalUni != null) && !rascalUni.trim().equals("")) { Integer entryMode = null; try { entryMode = Integer.parseInt(getLineParameter(KEY_ENTRY_MODE)); } catch (Exception e) { } if (entryMode != null) { int primitive = entryMode; try { switch (primitive) { case ADD_CERT: RascalUser u = ServiceLocator.getRascalUserService().findByUserId( rascalUni ); ruHtmlView = new RuICMExperimentalSurgeryTrainingEntryView( |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaResultsDisplayView.java | 327 |
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 330 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderResultsDisplayView.java | 318 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 343 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 342 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 459 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderResultsDisplayView.java | 333 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalProposalResultsDisplayView.java | 286 |
edu/columbia/rascal/presentation/tc/views/TCResultsDisplayView.java | 541 |
prev.setFontName("Comic Sans MS"); prev.setFgColor("black"); // prev.setAlignment("LEFT"); pageControlRow.addElement(prev); } else { // Will be changed to add a hobo button with the left arrow String leftButton = ""; pageControlRow.addElement(leftButton); // Add the empty control to display the previous page prev = new CUHtmlText(""); pageControlRow.addElement(prev); } // Add the separator between the previous and next page control CUHtmlText separator = new CUHtmlText(""); separator.setIsBold(true); separator.setFontSize("+1"); pageControlRow.addElement(separator); if ((curBeginPos + curPageSize) < totalMatch) { // Add the text control to display the // next page if ((curBeginPos + (2 * maxPageSize) - 1) < totalMatch) { next = new CUHtmlText("Next " + maxPageSize + " matches"); } else { next = new CUHtmlText("Next " + curPageSize + " matches"); } next.setLink(location + "?DisplayPage=NextPage"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 755 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 357 |
public void setIrbQueueViewTableDataRow(CUHtmlTable aTable, int rowCount, Hashtable queueItem) { int colNum = 0; CUHtmlTableCell aCell; // Protocol Number aCell = aTable.getCell(rowCount, colNum); String protocolNumb = (String) queueItem.get(KEY_PROTOCOL_NO); String protocolOid = (String) queueItem.get(KEY_PROTOCOL_OID); CUHtmlText protocolNumbTxt = getLinkToReviewIrbProtocol("IRB-" + protocolNumb, protocolOid); aCell.add(protocolNumbTxt); aCell.setAlign("center"); colNum++; /* * // Release/Submit Date aCell = aTable.getCell(rowCount,colNum); if * (queueType.equals("R")) { aCell.add(getTableCellData(toString((Date) * queueItem.get(KEY_RELEASE_FOR_VIEW_DATE)))); } else { * aCell.add(getTableCellData(toString((Date) queueItem.get(KEY_SUBMIT_DATE)))); } * aCell.setAlign("center"); colNum++; */ // P.I. aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData((String) queueItem.get(KEY_NAME_UNI))); aCell.setAlign("left"); colNum++; // Current Status aCell = aTable.getCell(rowCount, colNum); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 780 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 1031 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 390 |
aCell.add(getTableCellData((String) queueItem.get(KEY_NAME_UNI))); aCell.setAlign("left"); colNum++; // Current Status aCell = aTable.getCell(rowCount, colNum); String param1 = (String) queueItem.get(KEY_CURRENT_STATUS); String convert1 = getAnimalCareStatusDisplayValue(param1.trim()); if (convert1 == null) convert1 = "Still Creating..."; aCell.add(getTableCellData(convert1)); aCell.setAlign("left"); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; aCell.add(getTableCellData(required)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 433 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 333 |
} getForm().add(aTable); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTableRow aRow; CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 2); aTable.setCellPadding(4); addSpacerRows(aTable, 1, 2, "8"); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPENDIX_NUMBER), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText( getAppendixNumberPrefix(getAppendixObject().getAppendixType()) + getAppendixObject().getAppendixNumber() ), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 610 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 503 |
aCell2 = utilGetHtmlTableCell(fieldGet_4C_DisinfectantNotRecommend("4c", defaultValue), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE5 + " ", "apBhelp9.html", "600"), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor( TITLE5A + TITLE5B + TITLE5C + TITLE5D ), "100%", getTitleAlign() ); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLENOTE1), "100%", getTitleAlign()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 1960 |
edu/columbia/rascal/presentation/appendix/pages/AppendixView.java | 839 |
addSpacerRows(aTable, 1, 2, "8"); // Submit date aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText( "<b>" + infoGetSubmitDateLabel() + "</b>" ), "300", getTitleAlign() ); String dateString = "<i>protocol and appendix not yet submitted</i>"; String submitDate = getOwnerSurrogate().getSubmitDate(); if ((submitDate != null) && !submitDate.equals("00/00/0000") && !submitDate.trim().equals("") ) { dateString = submitDate; } aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText(dateString), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); getForm().add(aTable); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/RascalStaticSubmitFormServlet.java | 98 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 88 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 88 |
edu/columbia/rascal/presentation/user/servlets/CURascalUserAbstractServlet.java | 81 |
page.draw(getResponse()); } } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.common.CURascalVapServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbClosureAttachDocumentsController.java | 227 |
edu/columbia/rascal/presentation/controller/irb/IrbUnanticipatedAttachDocumentsController.java | 227 |
for(IrbClosureAttachment attachment: attachments) { Map<String, Object> map = new HashMap<String, Object>(); map.put("id", attachment.getId()); map.put("documentIdentifier", attachment.getDocumentIdentifier()); map.put("fileName", attachment.getFileName()); map.put("dateAttached", attachment.getDateCreated().getTime()); map.put("archive", attachment.getArchive()); if (submitted != null) map.put("canArchive", submitted.getStatusDate().after(attachment.getDateCreated())); jsonDataList.add(map); } return jsonDataList; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaCopyServlet.java | 121 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaHeaderCopyServlet.java | 192 |
oldQuestion = (HipaaQuestionLookup) signatureQuestionList.nextElement(); newQuestion = newForm.newQuestion(); newQuestion.setParentQuestionOid((long) 0); newQuestion.setAnswerable(oldQuestion.getAnswerable()); newQuestion.setAnswerFormat(oldQuestion.getAnswerFormat()); newQuestion.setAnswerRequired(oldQuestion.getAnswerRequired()); newQuestion.setHelpFileName(oldQuestion.getHelpFileName()); newQuestion.setNotQuestion(oldQuestion.getNotQuestion()); newQuestion.setNotQuestion(oldQuestion.getNotQuestion()); newQuestion.setQuestionEditable(oldQuestion.getQuestionEditable()); newQuestion.setQuestionPrompt(oldQuestion.getQuestionPrompt()); newQuestion.setQuestionText(oldQuestion.getQuestionText()); newQuestion.setSequenceNo(oldQuestion.getSequenceNo()); ServiceLocator.getHipaaQuestionLookupService().save(newQuestion); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 41 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 37 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 38 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 38 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 39 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 42 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 41 |
public IrbReportApprovalStatusDateRangeView(RascalUser aUser) { super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); setRascalUser(aUser); setSubTitle("IRB Approval Status Report"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentExternalView.java | 150 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentInternalView.java | 154 |
getUnanticipatedProblem().classNameWithoutPrefix() ).getStatusName(); if (currentStatusName.equals(RETURNED) || currentStatusName.equals(PENDING)) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); aForm.add(bTable); } add(aForm); } /** * This method was created in VisualAge. * * @param ps TODO: DOCUMENT ME! * * @return java.util.Vector */ public CUHtmlTable buildAttachmentRows(Vector ps) { CUHtmlTable aTable = getTable(1, getColumns().size()); String anOid = ""; String docId = ""; String fileName = ""; aTable.setBorderWidth(1); aTable.setWidth("95%"); aTable.setAlign("center"); setAttachmentHead(aTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportCancerCenterMemberServlet.java | 77 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportCancerCenterServlet.java | 97 |
rows.setColumnNames(new String[] { "UserId", "LastName", "FirstName" }); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.sortByColumn(sortBy); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } if ((rows == null) || (rows.isEmpty())) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingAdminView.java | 310 |
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramAdminView.java | 281 |
edu/columbia/rascal/presentation/user/views/RuSimpleTrainingEnrollmentAdminView.java | 416 |
public void setTableDataRow(CUHtmlTable aTable, int rowCount, RuIcmexpSurgeryTraining dataRow) { String var = null; Date date = null; Calendar cal = Calendar.getInstance(); // UNI CUHtmlTableCell cell0 = aTable.getCell(rowCount, 0); var = dataRow.getRascalUser().getUserId(); if (var != null) cell0.add(var); else cell0.add("<br>"); cell0.setAlign("center"); // User Name CUHtmlTableCell cell1 = aTable.getCell(rowCount, 1); var = dataRow.getRascalUser().getUserFirstLastName(); if (var != null) cell1.add(var); else cell1.add("<br>"); cell1.setAlign("center"); // Species CUHtmlTableCell cell2 = aTable.getCell(rowCount, 2); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/servlets/AdminAbstractServlet.java | 40 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 95 |
public AdminAbstractServlet() { super(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * <p>@2000 Copyright Columbia University - RASCAL. All Rights Reserved.</p> * * @return java.lang.String * * @throws javax.servlet.ServletException TODO: DOCUMENT ME! * @throws java.rmi.RemoteException TODO: DOCUMENT ME! * @throws javax.transaction.TransactionRolledbackException TODO: DOCUMENT ME! * @throws javax.transaction.TransactionRequiredException TODO: DOCUMENT ME! */ public abstract CURascalHtmlView getPage() throws javax.servlet.ServletException, java.rmi.RemoteException, javax.transaction.TransactionRolledbackException, javax.transaction.TransactionRequiredException; /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doGet in CURascalVAPServlet and CURascalServlet. I am not happy with the * behavior implemented in those classes</p> * * <p>hh 3/2/00</p> * * <p>sometime in the future, those superclassed methods will be reworked, but i need to get * around them NOW!</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validateGet()) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 369 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 457 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setLinkTarget("Main"); txt.setLink(link); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); v.addElement(""); v.addElement(txt); t.addRowFor(v); t.getCell(0, 0).setWidth("10%"); t.getCell(0, 0).setAlign("left"); t.getCell(0, 1).setWidth("90%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method was created in VisualAge. * * @param aValue rows int - the number of required rows * @param inputName cells int - the number of cell within each row * * @return edu.columbia.rascal.presentation.fo.alertService.html.CUHtmlTable */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 890 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1295 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1622 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 413 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue edu.columbia.rascal.presentation.user.business.objects.RascalUser */ public void setRascalUser(RascalUser newValue) { this.rascalUser = newValue; } /** * This method was created in VisualAge. Sets the subtitle of this page. If aSubTitle is a * String, use the default subtitle settings. if aSubTitle is CUHtmlText, override the default * title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { // FIXME XSS // String result = req.getParameter(parName); String result = HtmlUtils.htmlEscape(req.getParameter(parName)); return (result.equals("")) ? null : result; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private EVector getDefaultMainFooter() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 484 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 295 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 297 |
.getStatusName(), getFontSize() + 1, true ) ); t.addRowFor(elements); elements = new Vector(5); elements.addElement(getTextWidgetFor("Date Created: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(toDateString(getAgendaHeader().getCreationDate()), getFontSize() + 1, true ) ); elements.addElement(getTextWidgetFor("Meeting Date: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(toDateString(getAgendaHeader().getMeetingDate()), getFontSize() + 1, true ) ); t.addRowFor(elements); elements = new Vector(5); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 97 |
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 83 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 103 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 101 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 88 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 80 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 88 |
if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1573 |
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 225 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 182 |
txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); // t.setWidth("200"); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 0).setVAlign("center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixLabAbstractView.java | 515 |
edu/columbia/rascal/presentation/lab/pages/HzHistoryView.java | 687 |
aTitle = new CUHtmlText(title); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = new CUHtmlTableCell(aTitle); header.setIsHeader(true); header.setColumnsToSpan(1); header.setAlign("center"); aRow.add(header); } aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param aStatus TODO: DOCUMENT ME! */ public void setStatusTableDataRow(CUHtmlTable aTable, HzStatus aStatus) { CUHtmlTableRow aRow = new CUHtmlTableRow(); // Status CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getRowLabelLeftFor(aStatus.getStatusCode())); cell0.setAlign("left"); aRow.add(cell0); // Date CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getRowLabelLeftFor(CalendarTransformer.formatDateAndTime(aStatus.getStatusDate())) |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixCopyServlet.java | 668 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCopyServlet.java | 783 |
AppendixIsotope chem = new AppendixIsotope(apxF); ServiceLocator.getAppendixIsotopeService().save(chem); chem.setCompound(oldIsoto.getCompound()); chem.setHalfLife(oldIsoto.getHalfLife()); chem.setHalfLifeInSubject(oldIsoto.getHalfLifeInSubject()); chem.setHalfLifeInSubjectUnit( oldIsoto.getHalfLifeInSubjectUnit() ); chem.setHalfLifeUnit(oldIsoto.getHalfLifeUnit()); chem.setInitialActivity(oldIsoto.getInitialActivity()); chem.setInitialActivityUnit( oldIsoto.getInitialActivityUnit() ); chem.setRouteOfAdministration( oldIsoto.getRouteOfAdministration() ); ServiceLocator.getAppendixIsotopeService().save(chem); } } // end while isotos = null; } catch (Exception e) { log.error("Exception copying appendix.", e); } return apxF; |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1411 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1885 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 637 |
aTable.addRowFor((Vector) columns.clone()); aTable.getCell(0, 0).setWidth("30%"); aTable.getCell(0, 0).setVAlign("CENTER"); aTable.getCell(0, 0).setAlign("RIGHT"); aTable.getCell(0, 1).setVAlign("CENTER"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.setBorderWidth(0); return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private CUHtmlText getMainTitle() { if (mainTitle == null) { CUHtmlText aText = new CUHtmlText("Main Title was not defined"); aText.setHeaderLevel("1"); aText.setFontName(getDefaultFontName()); aText.setAlignment("center"); mainTitle = aText; } return mainTitle; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsAssignPRQueueController.java | 189 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsPreApproveQueueController.java | 90 |
appendicies.add(appendix); dataMap = new HashMap<String, Object>(); dataMap.put(ID, appendix.getId()); dataMap.put(TASK_ID, task.getId()); dataMap.put(NUMBER, "APH-" + appendix.getAppendixNumber()); dataMap.put(NAME, appendix.getTitle()); dataMap.put(TYPE, appendix.getApplicationType()); dataMap.put(STATUS, appendix.getStatus()); dataMap.put(LAST_MODIFIED, appendix.getLastModifiedDate()); dataMap.put(TASK_CREATED, task.getCreateTime()); dataList.add(dataMap); } return dataList; } @PreAuthorize("hasRole('APPENDIXH_CAN_ASSIGN_PR')") |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbPrintMenuController.java | 582 |
edu/columbia/rascal/presentation/controller/irb/IrbPrintMenuController.java | 601 |
for (IrbClosureAttachment a : attachmentList) { Map<String, Object> map = new HashMap<String, Object>(); map.put("archived", a.getArchive()==null? "No" : a.getArchive().equals( "N") ? "No" : "Yes"); map.put("id", a.getId()); map.put("documentIdentifier", a.getDocumentIdentifier()); map.put("fileName", a.getFileName()); map.put("dateCreated", a.getDateCreated()); map.put("documentType", ""); jsonDataList.add(map); } sortAttachmentsByDate(jsonDataList); return jsonDataList; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 915 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 656 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 515 |
Vector list = new Vector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * TODO: DOCUMENT ME! * * @param aValue TODO: DOCUMENT ME! * @param inputName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { CUHtmlMultiLineEntryField mlef = new CUHtmlMultiLineEntryField(inputName, "3", "50", "PHYSICAL", aValue ); return mlef; } /** * TODO: DOCUMENT ME! * * @param aValue TODO: DOCUMENT ME! * @param inputName TODO: DOCUMENT ME! * @param height TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getMultilineTextWidgetFor(String aValue, String inputName, String height) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceToReviewView.java | 106 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixViewCorrespondenceView.java | 124 |
add(aForm); } /** TODO: DOCUMENT ME! */ public void addGeneralInfo() { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setCellPading(0); t.setCellSpacing(0); Vector elements; elements = new Vector(2); elements.addElement(getTextWidgetFor("Notification Date:", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor( CalendarTransformer.formatMMDDYYYY(corr.getNotificationDate()), getFontSize(), true ) ); t.addRowFor(elements); elements = new Vector(2); elements.addElement(getTextWidgetFor("From:", getFontSize() + 1, true)); String source = getCorrespondence().getSourceRole(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2521 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1386 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 1171 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 276 |
} /** * TODO: DOCUMENT ME! * * @param aString TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getWidgetFor(String aString) { if ((aString == null) || aString.trim().equals("")) { CUHtmlImage i = new CUHtmlImage("/images/blank.gif"); i.setBorderWidth(0); return i; } CUHtmlText text = new CUHtmlText(aString); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } text.setFontSize("1"); text.setFontName("Verdana"); return text; } /** * TODO: DOCUMENT ME! * * @param aBoolean TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getWidgetFor(boolean aBoolean) { CUHtmlText text = new CUHtmlText(aBoolean ? "Yes" : "No"); text.setFontSize("1"); text.setFontName("Verdana"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbNotesView.java | 75 |
edu/columbia/rascal/presentation/irb/pages/IrbNotesView.java | 131 |
setOldNotes(notes); String aName = ""; if (parentName.equals("ProtocolHeader")) { aName = ((IrbProtocolHeader) bo).getDocumentName(); protocolNumber = ((IrbProtocolHeader) bo).getIrbProtocol().getProtocolNumber(); } else if (parentName.equals("AdverseEvent")) aName = "Unanticipated Problem (A/E) "; else aName = parentName; String subTitle = "Notes for " + aName + " "; if (protocolNumber != null) { if (parentName.equals("ProtocolHeader")) subTitle = subTitle + " IRB-" + protocolNumber + (modYear == null ? "" : modYear); else subTitle = subTitle + " IRB-" + protocolNumber; } setSubTitle(subTitle); addFields(); render(); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param bo TODO: DOCUMENT ME! * @param aUser TODO: DOCUMENT ME! * @param notes TODO: DOCUMENT ME! * @param parentName TODO: DOCUMENT ME! * @param protocolNumber TODO: DOCUMENT ME! * @param addOnly TODO: DOCUMENT ME! */ public IrbNotesView(Object bo, RascalUser aUser, Vector<IrbNotes> notes, String parentName, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResearchSummaryView.java | 131 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResearchSummaryView.java | 167 |
); aCell = new CUHtmlTableCell(); aCell.add(aWidget); aCell.setAlign("left"); aCell.setWidth("90%"); aCell.setColumnsToSpan(2); aRow.add(aCell); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell = new CUHtmlTableCell(); aCell.add(null); aCell.setAlign("left"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getActionButtons()); aCell.setAlign("right"); aRow.add(aCell); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell = new CUHtmlTableCell(); aCell.add(getRowLabelLeftFor("Lay Abstract", "irb59.html")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueAdminCorrespondenceView.java | 430 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueAdminCorrespondenceView.java | 538 |
getNotSentResultsBuffer().append("<TD ALIGN=\"center\"><A "); parmString = new StringBuffer(); parmString.append("Javascript:onClick=parent.frames[1].location='"); parmString.append(IrbLinkFrameServlet.class.getName()); parmString.append("?corrAdminQ=admin';parent.frames[2].location='"); parmString.append(IrbCorrespondenceDispositionServlet.class.getName()); parmString.append("?correspondenceOid="); parmString.append((String) row.elementAt(7)); parmString.append("&&recipientOid="); parmString.append((String) row.elementAt(8)); parmString.append("&&eventType="); parmString.append(getTheEventType()); parmString.append("&&incoming="); parmString.append(getTheIncoming()); parmString.append('\''); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCTSACorrespondenceView.java | 240 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairCorrespondenceView.java | 303 |
} /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVector(java.util.Vector newResultVector) { resultVector = newResultVector; } /** * Insert the method's description here. Creation date: (2/3/2003 4:22:12 PM) * * @param newResultVector java.util.Vector */ public void setResultVectorAE(java.util.Vector newResultVector) { resultVectorAE = newResultVector; } /** * TODO: DOCUMENT ME! * * @param row TODO: DOCUMENT ME! * @param rowColor TODO: DOCUMENT ME! */ public void setTableDataRow(Vector row, String rowColor) { StringBuffer parmString = new StringBuffer(); StringBuffer buff = new StringBuffer(); String element0 = (String) row.elementAt(0); String element1 = (String) row.elementAt(1); String element2 = (String) row.elementAt(2); String protocolNumber = element1.substring(0, 8); getAForm().add("<TR BGCOLOR=\"" + rowColor + "\" >"); // 1 protocol link getAForm().add("<TD ALIGN=\"left\"><FONT FACE=\"Verdana\" SIZE=\"1\"><A "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 383 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 643 |
if (ph.getHazMatRecombinantDna().equals("Y") || ph.getHazMatInfectiousAgents().equals("Y") || ph.getHazMatHumanBloodOrCell().equals("Y") || ph.getHazMatLaser().equals("Y") || ph.getHazMatChemicalOrToxin().equals("Y") ) { aTracker = null; boolean hasAllApp = true; if (ph.getHazMatRecombinantDna().equals("Y")) // must have all apps; must check each { // Recombinant DNA aTracker = ServiceLocator.getAppendixTrackingService() .getByOwnerAndAppendixType(ph.getId(), "IrbProtocolHeader", "A"); if ((aTracker != null) && !ServiceLocator.getAppendixTrackingService().appendixHasAllApprovals( aTracker ) ) hasAllApp = false; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 148 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 144 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 195 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusDateRangeView.java | 108 |
aTable.getCell(row, 0).add(getRowLabelFor("Submitted Between ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; columns.setElementAt(getDateTable(endDate, "endDate", "endDateMonth", "endDateDay", "endDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("And ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // affiliated institution- multi select list aWidget = getFieldMultiSelectWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Fields *")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 147 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 313 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 142 |
aCell1.setAlign("left"); CUHtmlTableCell aCell4 = new CUHtmlTableCell(); aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 120 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 110 |
} /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ @Override public CUHtmlForm getForm() { return form; } /** * This method was created in VisualAge. * * @param source TODO: DOCUMENT ME! * * @return CUHtmlImage * * <p>answer a CUHtmlImage that points to the Help Html file.</p> */ public CUHtmlImage getHelpFor(String source) { CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("Help"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Pt/" + source + "','','scrollbars=yes,width=375,height=450,toolbar=no,resizable=yes')" ); i.setBorderWidth(0); i.setAlign("right"); return i; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public String getMode() { return mode; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * <p>This method was created in VisualAge.</p> * * @param aLabel TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS2590Servlet.java | 267 |
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS398Servlet.java | 281 |
} /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private String getUptownAddress() { return "Columbia University Health Sciences \n" + "630 West 168 Street, Box 49 \n" + "New York, New York 10032"; } /** * TODO: DOCUMENT ME! * * @throws IOException TODO: DOCUMENT ME! */ private void initializeObjects() throws IOException { try { try { // PtProposalHeader object instance localPtProposalHeader = getProposal(); if (((localPtProposalHeader.getOriginatingOffice()).trim()).equals("")) { // if there is no originatingOffice, then set a default // value originatingOffice = "Department not defined"; } else { String deptName = ""; String deptCode = localPtProposalHeader.getOriginatingOffice(); RascalDepartment dept = ServiceLocator.getRascalDepartmentService().findById( deptCode ); if (dept != null) deptName = dept.getName(); originatingOffice = deptName; localRascalDepartment = dept; } } catch (Exception ex) { localPtProposalHeader = null; localRascalDepartment = null; originatingOffice = ""; } // instantiate the localPtBudget object instance try { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 327 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 457 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setLinkTarget("Main"); txt.setLink(link); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); v.addElement(""); v.addElement(txt); t.addRowFor(v); t.getCell(0, 0).setWidth("10%"); t.getCell(0, 0).setAlign("left"); t.getCell(0, 1).setWidth("90%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param link TODO: DOCUMENT ME! * @param aLabel = is the label that will be shown on the screen * @param target TODO: DOCUMENT ME! * * @return CUHtmlTable */ public CUHtmlTable getLinkedLabelFor(String link, String aLabel, String target) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 369 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 419 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setLinkTarget("Main"); txt.setLink(link); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); v.addElement(""); v.addElement(txt); t.addRowFor(v); t.getCell(0, 0).setWidth("10%"); t.getCell(0, 0).setAlign("left"); t.getCell(0, 1).setWidth("90%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method was created in VisualAge. * * @param aValue rows int - the number of required rows * @param inputName cells int - the number of cell within each row * * @return edu.columbia.rascal.presentation.fo.alertService.html.CUHtmlTable */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentControlEntryView.java | 181 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaControlEntryView.java | 163 |
aForm.add(getHiddenWidgetFor("rascalUni", aUser.getUserId())); } columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI (do not enter a name)")); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element // type aWidget = getControlTypeWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Allow Edit Or View Only Access")); row++; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 740 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 753 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 648 |
} /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getMonthWidget(java.lang.String, int) */ @Override public Object getMonthWidget(String fieldName, int monthIndex) { EVector list = new EVector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * TODO: DOCUMENT ME! * * @param aValue TODO: DOCUMENT ME! * @param inputName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaQueryJdbcAccessor.java | 164 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaQueryJdbcAccessor.java | 332 |
String templateModified; // flag to denote whether the template has been modified or not try { oid = resSet.getLong(1); // returns long or 0 if SQL NULL aRow.put(KEY_OID, Long.toString(oid)); hipaaNumber = toString(resSet.getString(2)); aRow.put(KEY_HIPAA_NUMBER, hipaaNumber); templateName = toString(resSet.getString(3)); aRow.put(KEY_TEMPLATE_NAME, templateName); irbOid = resSet.getLong(4); // returns long or 0 if SQL NULL aRow.put(KEY_IRB_OID, Long.toString(irbOid)); protocolNumber = toString(resSet.getString(5)); aRow.put(KEY_IRB_NUMBER, protocolNumber); formType = toString(resSet.getString(6)); aRow.put(KEY_FORM_TYPE, formType); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 381 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 505 |
row.put("CurrentStatus", res.getString(10)); // row.put("TimesIn", Integer.valueOf((new Float(res.getFloat(14))).intValue()).toString()); if (res.getString(10).equals(ASSIGNED_TO_MEETING)) { java.sql.Date aDate = getMeetingDateFor(res.getLong(13)); if (aDate == null) row.put("MeetingDate", ""); else row.put("MeetingDate", aDate); } else row.put("MeetingDate", ""); row.put("StatusDate", res.getDate(11)); java.sql.Date aDate = getCorrespondenceCurrentNotifyDateFor("Researcher", res.getLong(2), "ProtocolHeader" ); if (aDate == null) row.put("LastCorrespondenceToPIDate", ""); else row.put("LastCorrespondenceToPIDate", aDate); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1444 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1552 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 1795 |
ru = ServiceLocator.getRascalUserService().findById(getProtocolHeader().getCreatedBy()); s.append((((CUHtmlItem) getWidgetFor(ru.getUserFirstLastNameUni())).getHtml())); s.append("</td> </tr> <tr> <td> "); // you are... s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">You are</font></div>"); s.append("</td> <td><font face=\"Verdana\" size=\"1\">"); s.append((((CUHtmlItem) getWidgetFor(getRascalUser().getUserFirstLastNameUni())) .getHtml()) ); s.append("</font></td> <td> "); // year & mod s.append("<div align=\"right\"><font face=\"Verdana\" size=\"1\">Year</font></div>"); String modification = getProtocolHeader().getModificationNumber() + ""; if (getProtocolHeader().getModificationNumber() < 10) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtComplianceAnimalSubjectEntryView.java | 58 |
edu/columbia/rascal/presentation/propTrak/pages/PtComplianceHazardousMaterialEntryView.java | 59 |
setPageTitle("RASCAL Proposal Tracking - Animal Subject"); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitPopUpDateForm.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 206 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSelectFieldsView.java | 100 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusDateRangeView.java | 118 |
aTable.getCell(row, 0).add(getRowLabelFor("And ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // affiliated institution- multi select list aWidget = getFieldMultiSelectWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Select Fields *")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; } /** @see edu.columbia.rascal.presentation.propTrak.pages.PtReportFieldSelectionView#getActionButtons() */ @Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Submit", |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 220 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 244 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 268 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 292 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 316 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCopyServlet.java | 340 |
); if ((aTracker != null) && (aTracker.getAppendixOid() > 0)) { AppendixTracking newTracker = new AppendixTracking(newPh.getId(), aTracker.getOwnerType(), aTracker.getAppendixOid(), aTracker.getAppendixType() ); newTracker.setAppendixApprovals(aTracker.getAppendixApprovals()); newTracker.setEhsNumber(aTracker.getEhsNumber()); newTracker.setNoticeRecipients(aTracker.getNoticeRecipients()); newTracker.setRecommendedHousing(aTracker.getRecommendedHousing()); newTracker.setRecommendedPpe(aTracker.getRecommendedPpe()); newTracker.setSafetyOfficerComment(aTracker.getSafetyOfficerComment()); ServiceLocator.getAppendixTrackingService().save(newTracker); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 376 |
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 422 |
public static Vector<Object> getAveragePassingScore(String courseNum) { Vector<Object> results = new Vector<Object>(2); int scores = 0; int count = 0; StringBuilder aSql = new StringBuilder(50); aSql.append("select UH.percentScore from TCUserHeader UH, RASCAL_USER RU "); aSql.append("where UH.tc_courseheader_id = "); aSql.append(courseNum); aSql.append(" and UH.rid = RU.rid"); // TCJdbcAccessor acc = new TCJdbcAccessor(null); try { java.sql.ResultSet res = ServiceLocator.getCURascalJdbcAccessorService().executeQuery( aSql.toString() ); while (res.next()) { scores += Integer.valueOf(res.getString(1)); count += 1; } } catch (Exception e) { log.error("Exception determining count.", e); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCAbstractPopupServlet.java | 70 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractPopupServlet.java | 123 |
} else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, req.getMethod() + " " + getClassName())).draw( getResponse() ); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.tc.servlets.TCAbstractServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionForExceptionView.java | 55 |
edu/columbia/rascal/presentation/tc/views/TCReportTestSelectionView.java | 53 |
setRascalUser(ru); addFields(); } //~ Methods ------------------------------------------------------------------------------------ /** TODO: DOCUMENT ME! */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; CUHtmlForm aForm = getAForm(); aForm.add("<body bgcolor=\"#FFFFFF\" background=\"/images/blu.jpg\" >"); aForm.add(getSubTitle()); aForm.add("<br>"); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.setWidth("70%"); aForm.add("<div align=\"center\">"); aForm.add(aTable); aForm.add("<br><br>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("</div>"); setBgColor("white"); add(aForm); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); |
File | Line |
---|---|
edu/columbia/rascal/presentation/validators/pt/PtProposalFinalizeValidator.java | 110 |
edu/columbia/rascal/presentation/validators/pt/PtRegisterProposalValidator.java | 53 |
errors.reject("module.pt.finalize.personnel.noLeadPI"); // Sponsor - Agency Section Validation // Bug 36068 - since we no longer are allowing the users to manullay add sponsors // removing address line check and replacing with valid code check Set<PtAgencyAddress> agencies = proposal.getPtAgencyAddresses(); if (agencies.isEmpty()) { errors.reject("module.pt.finalize.agency.notActiveAgency"); } else { for (PtAgencyAddress agency : agencies) { if (agency.getCode() == null || rascalAgencyService.findByCode(agency.getCode()) == null) errors.reject("module.pt.finalize.agency.notActiveAgency"); else { // on the off chance that there is a valid code in there but the rest of the data is screwed up on legacy data RascalAgency rascalAgency = rascalAgencyService.findByCode(agency.getCode()); if (StringUtils.isEmpty(agency.getAgencyName()) || !StringUtils.equals(rascalAgency.getName(), agency.getAgencyName())) errors.reject("module.pt.finalize.agency.notActiveAgency"); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 382 |
edu/columbia/rascal/presentation/consent/servlets/ConsentCopyServlet.java | 106 |
String numberString = "000" + Long.toString(id); numberString = numberString.substring(numberString.length() - 4, numberString.length()); char charPart[] = new char[4]; int letterPart = id / 10000; charPart[3] = getLetters()[letterPart % 26]; charPart[2] = getLetters()[(letterPart / 26) % 26]; charPart[1] = getLetters()[(letterPart / (26 * 26)) % 26]; charPart[0] = getLetters()[(letterPart / (26 * 26 * 26)) % 26]; |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderQuestionView.java | 260 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderQuestionView.java | 345 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderQuestionView.java | 454 |
); columns.setElementAt("", 0); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); if (answerRequired) { if (isEmpty(questionPrompt)) { questionPrompt = "*" + questionText; } else { questionPrompt = "*" + questionPrompt; } } else { if (isEmpty(questionPrompt)) { questionPrompt = questionText; } } if (isEmpty(helpFileName)) { aTable.getCell(row, 0).add(getRowLabelLeftFor( questionPrompt ) ); } else { aTable.getCell(row, 0).add(getRowLabelLeftFor( questionPrompt, helpFileName ) ); } aTable.getCell(row, 0).setVAlign("top"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 248 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 252 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryDateRangeView.java | 282 |
public Object getReportRangeWidget() { EVector list = new EVector(); list.addElement("Day"); list.addElement("Week"); list.addElement("Month"); list.addElement("Quarter"); getLabel("range"); return getSingleSelectWidgetFor(list, "Month"); } /** * @see edu.columbia.rascal.presentation.irb.pages.IrbHtmlView#getSingleSelectWidgetFor(edu.columbia.rascal.presentation.common.EVector, * java.lang.String) */ @Override public Object getSingleSelectWidgetFor(EVector items, String selectedItem) { EVector v = null; if (!selectedItem.equals("")) { v = new EVector(1); v.add(selectedItem); return new CUHtmlList(items, getLabelName(), "1", false, v); } else { return new CUHtmlList(items, getLabelName(), "1", false); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 496 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyView.java | 500 |
html.append(" width=\"250\""); else html.append(" width=\"25\""); html.append("><font face=\"Verdana\" size=\"1\">"); if (j == 0) html.append( ((CUHtmlText) getProtocolLinkWidgetFor((String) hash.get(key), (String) hash.get(keyList.elementAt(0)) )).getHtml() ); else html.append((String) hash.get(key)); html.append("</font></td>"); newRow = true; } if (newRow) used.add(hash.get(keyList.elementAt(1))); html.append("</tr>\n<tr><td colspan=\""); html.append("").append(columns.size()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/HzAttestationSearchServlet.java | 251 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolAdminChairSearchServlet.java | 247 |
if (ex instanceof CURascalParseException) { try { getResponse().sendRedirect( "edu.columbia.rascal.presentation.propTrak.servlets.PtMessageServlet?search=true" ); } catch (java.io.IOException e) { } } } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#validateGet() */ @Override protected boolean validateGet() { setOriginUrl(IrbProtocolSearchPageServlet.class.getName()); return true; } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#validatePost() */ @Override protected boolean validatePost() { String msg = ""; String rascalUser = getRequestParameter("RascalUser"); String userUni = getRequestParameter("RascalUserUni"); if (!rascalUser.trim().equals("") && !userUni.trim().equals("")) { msg = "Please search by either last name or uni for personnel, but not both."; (new CURascalMessageView(msg)).draw(getResponse()); return false; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalRascalResultsDisplayView.java | 157 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalResultsDisplayView.java | 212 |
row = new Vector<Object>(4); } t.getCell(0, 0).setHeight("1"); t.getCell(0, 0).setWidth("51%"); // t.getCell(0, 1).setWidth("20%"); // t.getCell(0, 3).setWidth("7%"); // t.getCell(0, 2).setWidth("12%"); // t.getCell(0, 3).setWidth("10%"); // getForm().add(t); // Add the control to display the next or previous page CUHtmlTable pageControl = buildPageDisplayControl(beginPos, pageSize, totalMatch); pageControl.addBreaks(2); getForm().add(pageControl); } add(getForm()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportCourseAdminView.java | 313 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 439 |
} /** * TODO: DOCUMENT ME! * * @param queueName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getUrlToPrintReport(String queueName) { String aString = "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'TCAdminReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; return aString; } /** * TODO: DOCUMENT ME! * * @param queueName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getUrlToViewReportForDownload(String queueName) { String aString = "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'TCAdminReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; return aString; } /** @see edu.columbia.rascal.presentation.tc.views.TCHtmlView#getWidgetFor(java.lang.String) */ @Override public Object getWidgetFor(String aString) { CUHtmlText text = new CUHtmlText(aString); if (aString == null) { text = new CUHtmlText(""); text.setFontSize("1"); text.setFontName("Verdana"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAServlet.java | 222 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCServlet.java | 237 |
protected void saveAppendixValues(AppendixA anAppendix) { // create a new appendixNumber if this is a new appendix anAppendix.setAppendixNumber(anAppendix.getAppendixNumber()); String aTitle = getRequestParameter("title"); if (aTitle != null) { if (aTitle.trim().length() > 254) { aTitle = aTitle.substring(0, 254); } anAppendix.setTitle(aTitle); } // subject String invitro = getRequestParameter(KEY_PARM_INVITRO); if ((invitro != null) && invitro.equals(VALUE_PARM_INVITRO)) { anAppendix.setSubjectSpecies("In vitro only"); } else { String subjectName = getRequestParameter("subject"); if (subjectName.equals("~Select Item~")) subjectName = ""; anAppendix.setSubjectSpecies(subjectName); } // 1a anAppendix.setDnaInsert(getRequestParameter("1a")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 1155 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 473 |
); elements.addElement(aListWidget); StringBuilder onClick = new StringBuilder(); if (queueName.equals("A") || queueName.equals("C")) { onClick.append("Javascript:getSortByValue1('"); } else { onClick.append("Javascript:getSortByValue3('"); } onClick.append(getServletName()); onClick.append("','columnNamesList"); onClick.append(queueName); onClick.append("','"); onClick.append(queueName); onClick.append("')"); elements.addElement(new CUHtmlPushButton("BUTTON", "BUTTON", "Sort", onClick.toString() ) ); aHeaderTable.addRowFor(elements); aHeaderTable.getCell(0, 0).setAlign("right"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 997 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2297 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterMemberView.java | 280 |
aHeaderTable.setWidth("55%"); aHeaderTable.setCellPading(0); aHeaderTable.setCellSpacing(0); Vector elements = new Vector(); CUHtmlText aTextLabel = new CUHtmlText("Sort List By:"); aTextLabel.setFontSize("1"); aTextLabel.setFontName(getDefaultFontName()); elements.addElement(aTextLabel); Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList" + queueName, sortSelection ); elements.addElement(aListWidget); String onClick; if (queueName.equals("A") || queueName.equals("C")) onClick = "Javascript:getSortByValue1('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; else onClick = "Javascript:getSortByValue3('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolResultsDisplayView.java | 270 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalProposalResultsDisplayView.java | 228 |
t.getCell(0, 4).setWidth("20%"); // form.add(t); // Add the control to display the next or previous page CUHtmlTable pageControl = buildPageDisplayControl(curBeginPos, curPageSize, totalMatch, maxPageSize ); pageControl.addBreaks(2); form.add(pageControl); } add(form); } /** * Builds the control to display the next or previous page. The page display control is built as * a table row that consists of the following six cells: 1st cell - the space in the left end * 2nd cell - the hobo button with the left arrow to display the previous page 3rd cell - the * text control to display the previous page 4th cell - the separator 5th cell - the text * control to display the next page 6th cell - the hobo button with the right arrow to display * the next page 7th cell - the space in the right end * * @param curBeginPos an integer that indicates the position of the first record of the * current page in the total matches * @param curPageSize an integer that indicates the number of records in the currunt page * @param totalMatch an intger that indicates the total number of matches in searching * @param maxPageSize an intger that indicates the maximum number of matches to be displayed * on the page * * @return CUHtmlTable a table that contains the page display control * * @author Hyung Park */ public CUHtmlTable buildPageDisplayControl(int curBeginPos, int curPageSize, int totalMatch, int maxPageSize ) { CUHtmlTable aTable = new CUHtmlTable(); java.util.Vector pageControlRow = new java.util.Vector(5); CUHtmlText prev; CUHtmlText next; // Add the space in the left end pageControlRow.addElement(""); if (curBeginPos > 0) { // Will be changed to add a hobo button with the left arrow String leftButton = ""; pageControlRow.addElement(leftButton); // Add the text control to display the previous page prev = new CUHtmlText("Previous " + maxPageSize + " matches"); prev.setLink(ConsentProtocolSearchPageServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaQueryJdbcAccessor.java | 166 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaQueryJdbcAccessor.java | 252 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaQueryJdbcAccessor.java | 334 |
try { oid = resSet.getLong(1); // returns long or 0 if SQL NULL aRow.put(KEY_OID, Long.toString(oid)); hipaaNumber = toString(resSet.getString(2)); aRow.put(KEY_HIPAA_NUMBER, hipaaNumber); templateName = toString(resSet.getString(3)); aRow.put(KEY_TEMPLATE_NAME, templateName); irbOid = resSet.getLong(4); // returns long or 0 if SQL NULL aRow.put(KEY_IRB_OID, Long.toString(irbOid)); protocolNumber = toString(resSet.getString(5)); aRow.put(KEY_IRB_NUMBER, protocolNumber); formType = toString(resSet.getString(6)); aRow.put(KEY_FORM_TYPE, formType); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaQueryProcessViaJdbc.java | 104 |
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaReportProcessViaJdbc.java | 54 |
} /** * This method was created in VisualAge. * * @param userRid TODO: DOCUMENT ME! * @param formType TODO: DOCUMENT ME! * @param anIrbOid String * * @return Vector a vector of hashtables */ public Vector getQueryAttachSelectionListDataTablesViaJdbc(int userRid, String formType, String anIrbOid ) { String query = null; query = HipaaQueryFormat.getInstance().buildQueryForIrbSelectionList(userRid, formType, anIrbOid ); String procRsltMethodNm = "buildRowTableWithAttachSelectionListQueryResultSet"; // Gets a vector of row tables Vector queueData = HipaaQueryJdbcAccessor.getInstance().executeQuery(query, procRsltMethodNm ); return queueData; } /** * This method was created in VisualAge. * * @param userRid TODO: DOCUMENT ME! * @param formType TODO: DOCUMENT ME! * @param formTitle TODO: DOCUMENT ME! * @param anIrbOid String * * @return Vector a vector of hashtables */ public Vector getQueryAttachSelectionListDataTablesViaJdbc(int userRid, String formType, String formTitle, String anIrbOid ) { String query = null; query = HipaaQueryFormat.getInstance().buildQueryForIrbSelectionList( userRid, formType, formTitle, anIrbOid ); String procRsltMethodNm = "buildRowTableWithAttachSelectionListQueryResultSet"; // Gets a vector of row tables Vector queueData = HipaaQueryJdbcAccessor.getInstance().executeQuery(query, procRsltMethodNm ); return queueData; } /** * This method was created in VisualAge. * * @param anIrbOid String * * @return Vector a vector of hashtables */ public Vector getQueryRetrieveAllByIrbProtocolOidDataTablesViaJdbc(String anIrbOid) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaCopyServlet.java | 73 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaCopyServlet.java | 121 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaHeaderCopyServlet.java | 192 |
oldQuestion = (HipaaQuestionLookup) topLevelQuestionList.nextElement(); newQuestion = newForm.newQuestion(); newQuestion.setParentQuestionOid((long) 0); newQuestion.setAnswerable(oldQuestion.getAnswerable()); newQuestion.setAnswerFormat(oldQuestion.getAnswerFormat()); newQuestion.setAnswerRequired(oldQuestion.getAnswerRequired()); newQuestion.setHelpFileName(oldQuestion.getHelpFileName()); newQuestion.setNotQuestion(oldQuestion.getNotQuestion()); newQuestion.setNotQuestion(oldQuestion.getNotQuestion()); newQuestion.setQuestionEditable(oldQuestion.getQuestionEditable()); newQuestion.setQuestionPrompt(oldQuestion.getQuestionPrompt()); newQuestion.setQuestionText(oldQuestion.getQuestionText()); newQuestion.setSequenceNo(oldQuestion.getSequenceNo()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3048 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4223 |
public static Vector getModificationEventsForReviewerQueue(RascalUser aUser, String reviewerType ) { Vector results = new Vector(); Vector row = new Vector(4); String modify = ""; boolean iAmRascal = CURascalGuardian.hasIrbRascal(); StringBuilder aBuffer = new StringBuilder(300); aBuffer.append( "select distinct stat.parentObjectOid, currentStatus.statusName, rev.reviewedDate, rev.oid, currentStatus.statusDate " ); aBuffer.append("from IrbStatus stat, IrbReviewer rev, IrbProtocolHeader header, "); aBuffer.append("IrbStatus currentStatus "); aBuffer.append("where stat.oid = rev.statusOid "); if (!iAmRascal) { aBuffer.append("and rev.whoRid = "); aBuffer.append(aUser.getId()); } aBuffer.append(" and rev.type = '"); aBuffer.append(reviewerType); aBuffer.append("' and stat.parentObjectName = '"); aBuffer.append(IrbNameConstants.PROTOCOL_HEADER); aBuffer.append("' and stat.parentObjectOid = header.oid and header.modificationNumber > 0 "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceDispositionView.java | 494 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceDispositionView.java | 384 |
Vector columns = getColumns(); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); header = aTable.getCell(0, i); header.add(getWidgetFor(aTitle)); header.setAlign("left"); } aTable.getCell(0, 0).setWidth("25%"); aTable.getCell(0, 1).setWidth("25%"); aTable.getCell(0, 2).setWidth("25%"); aTable.getCell(0, 3).setWidth("25%"); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! */ public void setEditLink(CUHtmlTable aTable) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyFieldSelectView.java | 40 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyDateRangeView.java | 44 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredDateRangeView.java | 36 |
public IrbReportDeviceStudyFieldSelectView(RascalUser aUser) { super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); // setRascalUser(aUser); setSubTitle("Device Study Report"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtComplianceHazardousMaterialEntryView.java | 170 |
edu/columbia/rascal/presentation/propTrak/pages/PtComplianceHumanSubjectEntryView.java | 150 |
aWidget = getEditWidgetFor("responsibleInvestigatorUni", investigator, "10", "10"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Responsible Investigator (Uni)")); columns.setElementAt(null, 2); // clear the cell columns.setElementAt(null, 3); // clear the cell row++; // protocol aWidget = getEditWidgetFor("protocolNumber", protocolNum, "30", "80"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Protocol or Approval Number")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 407 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 289 |
(String) currentRow.elementAt(getIndexOfProposalType()) ) ); // prop type } if (getIndexOfProjBegDate() > 0) { dateObj = currentRow.elementAt(getIndexOfProjBegDate()); // startDate if (dateObj instanceof Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } } if (getIndexOfProjEndDate() > 0) { dateObj = currentRow.elementAt(getIndexOfProjEndDate()); // endDate if (dateObj instanceof Date) { elements.addElement(getWidgetFor(CalendarTransformer.toString((Date) dateObj))); } else { elements.addElement(getWidgetFor("")); } } if (getIndexOfDeadlineDate() > 0) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 424 |
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1545 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 155 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.user.business.objects.RascalUser */ public RascalUser getRascalUser() { return rascalUser; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * <p>This method was created in VisualAge.</p> * * @param aLabel TODO: DOCUMENT ME! * * @return CUHtmlText */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixASafetyOfficerApprovalView.java | 160 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 161 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 160 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDSafetyOfficerApprovalView.java | 118 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 163 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 162 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 162 |
while (bpList.hasNext()) { aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(bpList.next(), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); } aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell("", "40%", getTitleAlign()); aCell2 = utilGetHtmlTableCell(fieldGet_3_RecommendedPpe("3"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetHtmlText(APPROVER_NOTES, defaultFontSize, true, false), |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 52 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 83 |
public AppendixCView(AbstractAppendix anAppendixObject) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixCServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_C)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("invitroCheckBoxAlertMessage.js"))); setAppendixObject(anAppendixObject); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 48 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 79 |
public AppendixEView(AbstractAppendix anAppendixObject) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixEServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_E)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("invitroCheckBoxAlertMessage.js"))); setAppendixObject(anAppendixObject); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 1018 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 1225 |
aText = aPerson.getStaffRadiationBadge(); if ((aText == null) || (aText.trim().length() < 1)) { aText = "<img src=\"/images/blank.gif\" border=\"0\">"; } else { aText = APPENDIX_HTML_SPACE + aText; } displayText = new CUHtmlText(aText); displayText.setFontName(getDefaultFontName()); displayText.setFontSize("-1"); aCell = utilGetHtmlTableCell(displayText, "20%", "left"); aRow.add(aCell); aText = aPerson.getHandlesHazmat(getAppendixObject().getAppendixType()) ? "Yes" : "No"; displayText = new CUHtmlText(aText); displayText.setFontName(getDefaultFontName()); displayText.setFontSize("-1"); aCell = utilGetHtmlTableCell(displayText, "10%", "center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 48 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 79 |
public AppendixFView(AbstractAppendix anAppendixObject) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixFServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_F)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); setAppendixObject(anAppendixObject); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixGView.java | 48 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGView.java | 79 |
public AppendixGView(AbstractAppendix anAppendixObject) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixGServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_G)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); setAppendixObject(anAppendixObject); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixIReportView.java | 246 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIReportView.java | 297 |
String result = buff.toString().trim(); if(StringUtils.isNotBlank( buff.toString() ) ) { if(",".equals( result.substring(result.length()-1, result.length()) )) result = result.substring(0, result.length() - 1); } aCell2 = utilGetHtmlTableCell(getRowLabelLeftFor(result), "500", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aTable.add(getBreakRow()); // 3. aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getTextFor(NY_CONTROLLED), "350", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 475 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovalQueueView.java | 212 |
return AppendixSafetyOfficerApprovalQueueServlet.class.getName(); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! */ public void setAnimalCareQueueTableHead(CUHtmlTable aTable) { int colNum = 0; CUHtmlText aTitle; CUHtmlText aTitle1; CUHtmlTableCell header; // Protocol Number aTitle1 = getTableColumnName("Protocol Number", "left"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Submit Date aTitle = getTableColumnName("Submit"); header = aTable.getCell(0, colNum); header.setIsHeader(true); header.add(aTitle); aTitle1 = getTableColumnName("Date"); header = aTable.getCell(1, colNum); header.setIsHeader(true); header.add(aTitle1); colNum++; // Expiration Date aTitle = getTableColumnName("Expiration"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAReportServlet.java | 80 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixBReportServlet.java | 70 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCReportServlet.java | 79 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixDReportServlet.java | 80 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixEReportServlet.java | 80 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixFReportServlet.java | 79 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixGReportServlet.java | 79 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIReportServlet.java | 37 |
} /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CURascalHtmlView getPage() { setAppendixType(APPENDIX_LETTER); String msg = "Appendix " + APPENDIX_LETTER; // if displaying an appendix that is attached to an owning object, get essential data // contained in the owner's surrogate (AppendixOwnerSurrogate) AppendixOwnerSurrogate ownerSurrogate = findOwnerSurrogate(); AppendixTracking aTracker = getAppendixTracking(ownerSurrogate); String appendixOid = getAppendixOid(ownerSurrogate, aTracker); if (isEmpty(appendixOid)) { return new AppendixMessageView( msg + " was not correctly identified. Rascal could not retrieve it.", "window.close();", "" ); } String isProposal = null; isProposal = getLineParameter("isProposal"); if (isProposal == null) { isProposal = "false"; } String msgExtension = validateAppendix(ownerSurrogate, appendixOid); if (!isEmpty(msgExtension)) { return new AppendixMessageView( msg + msgExtension, "window.close();", "" ); } AbstractAppendix anAppendix = ServiceLocator.getAppendixAService().findById(Long.valueOf( |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAServlet.java | 222 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixBServlet.java | 222 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCServlet.java | 237 |
protected void saveAppendixValues(AppendixA anAppendix) { // create a new appendixNumber if this is a new appendix anAppendix.setAppendixNumber(anAppendix.getAppendixNumber()); String aTitle = getRequestParameter("title"); if (aTitle != null) { if (aTitle.trim().length() > 254) { aTitle = aTitle.substring(0, 254); } anAppendix.setTitle(aTitle); } // subject String invitro = getRequestParameter(KEY_PARM_INVITRO); if ((invitro != null) && invitro.equals(VALUE_PARM_INVITRO)) { anAppendix.setSubjectSpecies("In vitro only"); } else { String subjectName = getRequestParameter("subject"); if (subjectName.equals("~Select Item~")) subjectName = ""; anAppendix.setSubjectSpecies(subjectName); } // 1a anAppendix.setDnaInsert(getRequestParameter("1a")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbProtocolFileUploadExternalController.java | 104 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolFileUploadInternalController.java | 105 |
IrbProtocolHeader header = ServiceLocator.getIrbProtocolHeaderService().findById( protocolHeaderOid ); msg = validateUploadedFile(file); if (!file.isEmpty() && (header != null) && (msg.length() == 0)) { String contentType = file.getContentType(); String fileName = file.getOriginalFilename(); attachment.setIrbProtocolHeader(header); attachment.setFileName(fileName); attachment.setContentType(contentType); attachment.setDateCreated(new Date()); attachment.setDocumentIdentifier(documentIdentifier); attachment.setArchive("N"); attachment.setActive(active.equals("Y") ? "N" : "Y"); attachment.setInternalFlag("N"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 86 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionEntryView.java | 83 |
getForm().add("<br>"); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPadding(1); aTable.setCellSpacing(3); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); getForm().add(getHiddenWidgetFor("AddOrEdit", addOrEdit)); getForm().add(getHiddenWidgetFor("questionOid", String.valueOf(questionOid))); getForm().add(aTable); getForm().add("<br>"); getForm().add(getActionButtons()); add(getForm()); } /** * This method was created in VisualAge. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! * @param aQuestion TODO: DOCUMENT ME! */ public void addFormatTypeWidget(CUHtmlTable aTable, int numCells, HipaaQuestionLookup aQuestion) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderSearchView.java | 34 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderSearchView.java | 64 |
public HipaaHeaderSearchView(RascalUser aUser) { super(); setForm(new CUHtmlForm("Form1", HipaaHeaderSearchServlet.class.getName(), "POST")); setTitle("RASCAL Hipaa Authorization/Waiver Search"); setMainTitle("Hipaa Authorization/Waiver Search"); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("srchHelp.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueAssignedToMeetingView.java | 150 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaQueueLoggedInView.java | 157 |
keyList.addElement(KEY_HIPAA_NUMBER); keyList.addElement(KEY_FORM_TEMPLATE); keyList.addElement(KEY_IRB_NUMBER); return keyList; } /** * This method was created in VisualAge. * * @param queue Vector * * @return int */ @Override public int getRowSizeForQueueView(AbstractCollection queue) { return queue.size() + 1; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param rowCount int * @param queueItem Hashtable */ public void setQueueQueryViewTableDataRow(CUHtmlTable aTable, int rowCount, Hashtable queueItem) { int colNum = 0; CUHtmlImage anImage; // 1 Header Number CUHtmlTableCell aCell = aTable.getCell(rowCount, colNum); String hipaaNumber = (String) queueItem.get(KEY_HIPAA_NUMBER); CUHtmlText hipaaNumbTxt = getTableCellData(hipaaNumber); String headerOid = (String) queueItem.get(KEY_OID); aCell.add(getLinkForHipaaHeaderDatasheet("HIP-" + hipaaNumber, headerOid)); aCell.setAlign("left"); colNum++; // 2 Form Template String protocolTitle = (String) queueItem.get(KEY_TEMPLATE_NAME); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbProtocolQuery.java | 1751 |
edu/columbia/rascal/presentation/irb/servlets/IrbAbstractServlet.java | 566 |
public static boolean isStaff(RascalUser aUser, IrbTraceableBusinessObject bo) { IrbProtocolHeader ph = null; IrbProtocol prot = bo.getIrbProtocol(); if (bo.classNameWithoutPrefix().equals(IrbNameConstants.PROTOCOL_HEADER)) { ph = (IrbProtocolHeader) bo; } else { ph = ServiceLocator.getIrbProtocolService().getLastApprovedProtocolHeader(prot); if (ph == null) { ph = prot.getLastProtocolHeader(); } } List<IrbStaff> staffs = ph.getIrbStaffs(); for (IrbStaff one : staffs) { if (one.getRid().equals(aUser.getId())) { return true; } } return false; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 105 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 107 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 115 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 150 |
getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows, columns); if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/tools/IrbEmailProtocolExpired30DaysTask.java | 226 |
edu/columbia/rascal/presentation/irb/tools/IrbEmailRenewalTask.java | 258 |
edu/columbia/rascal/presentation/irb/tools/IrbEmailReturnedOrPendingEventsTask.java | 138 |
writeToLogFile(RASCAL_EXPIRED_PROTOCOL_LOG, listOfProtocols.toString()); } } /** * Java.lang.String. * * @return java.lang.String */ public String getHomeUrl() { if (dbLocation.equals("was_rascal")) { return "https://www.rascal.columbia.edu"; } else { return "https://wwwtest2.rascal.columbia.edu"; } } /** * This method was created in VisualAge. * * @return java.lang.String */ @SuppressWarnings("unchecked") public boolean hasDayPassedSinceLastRun() { Date lastRun = null; List<Object[]> res = null; CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { String selectQuery = "Select lastRunDate FROM RASCAL_EMAIL_NOTIFICATION where procedureName = '" + PROCEDURE_NAME + "'"; res = acc.executeNoParmPreparedQuery(selectQuery); if(res!=null && res.size()>0) lastRun = (Date)((Object)res.get(0)); } catch (Exception e) { log.error(e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 355 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 363 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 477 |
.getLastExpiredProtocolHeader(object.getIrbProtocol()); } if (eventName.equals("AdverseEvent")) { title = ""; Long keyWord = ((IrbAdverseEvent) object).getKeywordCode(); if (keyWord != null) title = ServiceLocator.getRascalAdverseEventService().findById(keyWord) .getDescription(); } else if (eventName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { title = ""; Long keyWord = ((IrbUnanticipatedProblem) object).getKeywordCode(); if (keyWord != null) title = ServiceLocator.getRascalAdverseEventService().findById(keyWord) .getDescription(); } else title = protHeader.getTitle(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 120 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 110 |
aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); add(getForm()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 99 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 128 |
setSubTitle(decodePageTitle(APPENDIX_LETTER_B)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); // invitro changes addJavaScriptElement(new CUHtmlText(getJSCodeFrom("invitroCheckBoxAlertMessage.js"))); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "?" + KEY_PARM_INVITRO_APPDX_TRACKER_OID + "=" + invitroAppendixTrackerOid + "'" ); AppendixTracking track = ServiceLocator.getAppendixTrackingService().findById(Long .parseLong(invitroAppendixTrackerOid) ); setInvitroTracking(track); setAppendixObject(anAppendixObject); setRascalUser(aUser); add(anAppendixObject); render(); } /** * This method was created in VisualAge. * * @param anAppendixObject AbstractAppendix * @param aUser RascalUser * @param aServlet TODO: DOCUMENT ME! * @param aLinkServlet TODO: DOCUMENT ME! */ public AppendixBView(AbstractAppendix anAppendixObject, RascalUser aUser, String aServlet, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 83 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 197 |
public AppendixCView(AbstractAppendix anAppendixObject, RascalUser aUser) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixCServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_C)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("invitroCheckBoxAlertMessage.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 302 |
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 221 |
return getSingleSelectWidgetFor(list, dayIndex); } /** * @see edu.columbia.rascal.presentation.appendix.pages.AppendixHtmlView#getMonthWidget(java.lang.String, int) */ @Override public Object getMonthWidget(String fieldName, int monthIndex) { Vector<String> list = new Vector<String>(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 79 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 147 |
public AppendixFView(AbstractAppendix anAppendixObject, RascalUser aUser) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixFServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_F)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixGView.java | 79 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGView.java | 147 |
public AppendixGView(AbstractAppendix anAppendixObject, RascalUser aUser) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixGServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_G)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 938 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 967 |
public CUHtmlText getLinkToEditAppendix(String text, String appendixOid, String appendixType, String origin ) { String servletName = null; switch (appendixType.charAt(0)) { case 'A': servletName = AppendixAServlet.class.getName(); break; case 'B': servletName = AppendixBServlet.class.getName(); break; case 'C': servletName = AppendixCServlet.class.getName(); break; case 'D': servletName = AppendixDServlet.class.getName(); break; case 'E': servletName = AppendixEServlet.class.getName(); break; case 'F': servletName = AppendixFServlet.class.getName(); break; case 'G': servletName = AppendixGServlet.class.getName(); break; case 'H': |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 194 |
edu/columbia/rascal/presentation/appendix/pages/AppendixVeterinarianApprovedQueueView.java | 131 |
return AppendixSafetyOfficerApprovedQueueServlet.class.getName(); } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param rowCount int * @param queueItem Hashtable */ @Override public void setAnimalCareQueueViewTableDataRow(CUHtmlTable aTable, int rowCount, Hashtable queueItem ) { int colNum = 0; CUHtmlTableCell aCell; // Protocol Number aCell = aTable.getCell(rowCount, colNum); String protocolNumb = (String) queueItem.get(KEY_PROTOCOL_NO); String protocolOid = (String) queueItem.get(KEY_PROTOCOL_OID); CUHtmlText protocolNumbTxt = getLinkToReviewIacucProtocol("AC-" + protocolNumb, protocolOid); aCell.add(protocolNumbTxt); aCell.setAlign("center"); colNum++; // Submit Date aCell = aTable.getCell(rowCount, colNum); aCell.add(getTableCellData( CalendarTransformer.formatMMDDYYYY((Date) queueItem.get(KEY_SUBMIT_DATE)) |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAServlet.java | 222 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCServlet.java | 237 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixEServlet.java | 218 |
protected void saveAppendixValues(AppendixA anAppendix) { // create a new appendixNumber if this is a new appendix anAppendix.setAppendixNumber(anAppendix.getAppendixNumber()); String aTitle = getRequestParameter("title"); if (aTitle != null) { if (aTitle.trim().length() > 254) { aTitle = aTitle.substring(0, 254); } anAppendix.setTitle(aTitle); } // subject String invitro = getRequestParameter(KEY_PARM_INVITRO); if ((invitro != null) && invitro.equals(VALUE_PARM_INVITRO)) { anAppendix.setSubjectSpecies("In vitro only"); } else { String subjectName = getRequestParameter("subject"); if (subjectName.equals("~Select Item~")) subjectName = ""; anAppendix.setSubjectSpecies(subjectName); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractPopupServlet.java | 32 |
edu/columbia/rascal/presentation/common/RascalStaticSubmitFormServlet.java | 55 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractPopUpServlet.java | 38 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractPopUpServlet.java | 37 |
super(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>bw 07/11/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validateGet()) { CURascalHtmlView page = getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractPopupServlet.java | 33 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractPopUpServlet.java | 39 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 107 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractPopUpServlet.java | 38 |
} //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>bw 07/11/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validateGet()) { CURascalHtmlView page = getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/auxilliary/ConsentSql.java | 71 |
edu/columbia/rascal/presentation/consent/auxilliary/ConsentSql.java | 114 |
); while (res.next()) { row.addElement((new Float(res.getFloat(1))).intValue()); row.addElement(res.getString(2)); row.addElement(res.getString(3)); row.addElement(res.getString(4)); row.addElement(res.getString(5)); results.addElement(row.clone()); row = new Vector(5); } } catch (Exception e) { log.error("Exception creating vector.", e); } finally { } return results; } /** * TODO: DOCUMENT ME! * * @param k TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static Vector getAllActiveStaticPages(String k) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentContactEntryView.java | 162 |
edu/columbia/rascal/presentation/consent/pages/ConsentControlEntryView.java | 175 |
cc = ServiceLocator.getConsentContactService().findById(new Long(theOid)); RascalUser aUser = ServiceLocator.getRascalUserService().findById(cc.getRid()); aWidget = getRascalUniWidget(aUser.getUserId()); // hidden field to hold rascal userId aForm.add(getHiddenWidgetFor("rascalUni", aUser.getUserId())); } columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI (do not enter a name)")); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element // type aWidget = getContactTypeWidget(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4062 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5452 |
if (log.isDebugEnabled()) log.debug("getProtocolsToLogIn Query " + aBuffer); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { // this row /* (1) protocol header oid * (2) protocolNumber (3) title (4) PI last name (5) statud date * (6) protocol oid (7) committee name (8) times in count (9) * originating department (10) exempt flag */ row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); // protocol number row.addElement(res.getString(3)); // protocol title row.addElement(res.getString(4)); // PI name last if (res.getDate(5) == null) // date submitted { row.addElement(""); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCommitteeMemberEntryView.java | 196 |
edu/columbia/rascal/presentation/propTrak/pages/PtApprovalEntryView.java | 91 |
Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // Uni aWidget = getEditWidgetFor("rascalUni", "", "15", "15"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI")); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element // Committee aWidget = committeeWidget("committee", ""); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerView.java | 481 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerView.java | 696 |
columns.addElement(""); aRow = new CUHtmlTableRow(columns.clone()); aRow.setBgColor(getQueueGeneratedRowColor(i)); aTable.add(aRow); columns = new Vector(11); // clear out the values.... } aTable.getCell(0, 1).setWidth("10"); aTable.getCell(0, 2).setWidth("10"); aTable.getCell(0, 3).setWidth("10"); aTable.getCell(0, 7).setVAlign("top"); aTable.getCell(0, 8).setVAlign("top"); aTable.getCell(0, 9).setVAlign("top"); return aTable; } /** * TODO: DOCUMENT ME! * * @param parentObjectOid TODO: DOCUMENT ME! * @param aReviwerOid TODO: DOCUMENT ME! * @param protNumber TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getFullCommitteeWidgetFor(String parentObjectOid, String aReviwerOid, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 41 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 37 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 38 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 38 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 39 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyFieldSelectView.java | 40 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyDateRangeView.java | 44 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 42 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 41 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredDateRangeView.java | 36 |
public IrbReportApprovalStatusDateRangeView(RascalUser aUser) { super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatsView.java | 296 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceDispositionView.java | 384 |
Vector columns = getColumns(); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); header = aTable.getCell(0, i); header.add(getWidgetFor(aTitle)); header.setAlign("left"); } aTable.getCell(0, 0).setWidth("25%"); aTable.getCell(0, 1).setWidth("25%"); aTable.getCell(0, 2).setWidth("25%"); aTable.getCell(0, 3).setWidth("25%"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbPaperProtocolSubmitServlet.java | 97 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolValidateApproveServlet.java | 62 |
if ((getProtocolHeader().getOriginatingDepartment() == null) || getProtocolHeader().getOriginatingDepartment().trim().equals("") ) { errors.addElement( "Validation Information page - You must enter your originating department code." ); } if ((getProtocolHeader().getTitle() == null) || getProtocolHeader().getTitle().trim().equals("") ) { errors.addElement("Validation Information page - You must enter the protocol title."); } if ((getProtocolHeader().getAbbreviatedTitle() == null) || getProtocolHeader().getAbbreviatedTitle().trim().equals("") ) { errors.addElement( "Validation Information page - You must enter the abbreviated protocol title." ); } Long id = getProtocolHeader().getIrbProtocol().getAdministrativeLocationId(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportCancerCenterStatusServlet.java | 100 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportClinicalTrialsFirstSubmissionStatusServlet.java | 86 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportClinicalTrialsStatusServlet.java | 88 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportDepartmentStatusServlet.java | 100 |
rows.sortByColumn(sortBy); } else { sortBy = new String(); } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } if ((rows == null) || (rows.isEmpty())) { String link = "parent.frames[1].location='edu.columbia.rascal.presentation.irb.servlets.IrbReportLinkFrameServlet'"; String main = |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentInternalServlet.java | 35 |
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentServlet.java | 34 |
public IrbUnanticipatedAttachmentInternalServlet() { super(); setIsEdit(true); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param ids TODO: DOCUMENT ME! */ public static void clearArchiveValues(ArrayList ids) { try { int count = 0; ListIterator li = ids.listIterator(); while (li.hasNext()) { IrbUnanticipatedAttachment attachment = ServiceLocator .getIrbUnanticipatedAttachmentService().findById(Long.parseLong( (String) li.next() ) ); attachment.setArchive("N"); } } catch (Exception e) { log.error(e); } } /** @see edu.columbia.rascal.presentation.irb.servlets.IrbAbstractServlet#getPage() */ @Override public CURascalHtmlView getPage() { IrbUnanticipatedProblem ae = null; // String aeOid = getLineParameter("anOid"); String aeOid = (String) getSession().getAttribute("aeOid"); if ((aeOid != null) && !aeOid.equals("")) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 120 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 158 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 118 |
setResponse(res); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalHazardView.java | 341 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalNewView.java | 743 |
edu/columbia/rascal/presentation/tc/views/TCCourseNewView.java | 765 |
} /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getGenHelpFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setWidth("100%"); t.setBorderWidth(0); Vector<Object> v = new Vector<Object>(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("General Instructions"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Pt/" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterMemberView.java | 127 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportProjectOfficerActivityView.java | 147 |
aRow.add(aCell2); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!getPrintable()) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton( "BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + PtReportAdministrativeMenuServlet.class.getName() + "';" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS2590Servlet.java | 655 |
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS398Servlet.java | 730 |
); // ensure that the Rascal User Object has been set if (localPtProposalHeader == null) { organizationEmail.setValue(""); } else { // rascalUser object to access the ProjectOfficer email String po = localPtProposalHeader.getProjectOfficer(); RascalUser r = null; if (po != null) r = ServiceLocator.getRascalUserService().findByUserId(po); // check if RascalUser object is a null value if (r == null) { organizationEmail.setValue(""); } else { // get the email for the ProjectOfficer String value = r.getEmailPreferred(); if (value != null) { organizationEmail.setValue(this.checkFieldLimit(value)); } else { organizationEmail.setValue(""); } } } } /** TODO: DOCUMENT ME! */ private void setFormTXTOrganizationName() { FormText organizationName = (FormText) localPDFForm.getElement( |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCAbstractPopupServlet.java | 70 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 181 |
} else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, req.getMethod() + " " + getClassName())).draw( getResponse() ); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 474 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1063 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param link TODO: DOCUMENT ME! * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String link, String aLabel, String source) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 89 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 82 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 124 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 290 |
getForm().add("<br><br>"); } if (!(getPrintable())) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 99 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 128 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 189 |
setSubTitle(decodePageTitle(APPENDIX_LETTER_B)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); // invitro changes addJavaScriptElement(new CUHtmlText(getJSCodeFrom("invitroCheckBoxAlertMessage.js"))); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "?" + KEY_PARM_INVITRO_APPDX_TRACKER_OID + "=" + invitroAppendixTrackerOid + "'" ); AppendixTracking track = ServiceLocator.getAppendixTrackingService().findById(Long .parseLong(invitroAppendixTrackerOid) ); setInvitroTracking(track); setAppendixObject(anAppendixObject); setRascalUser(aUser); add(anAppendixObject); render(); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 777 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 967 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 1189 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIReportView.java | 766 |
edu/columbia/rascal/presentation/appendix/pages/AppendixView.java | 721 |
Enumeration staffTable = getOwnerSurrogate().getStaffTable().elements(); while (staffTable.hasMoreElements()) { AppendixOwnerStaffSurrogate aPerson = (AppendixOwnerStaffSurrogate) staffTable.nextElement(); if (aPerson != null) { aRow = new CUHtmlTableRow(); String aText = aPerson.getStaffName(); if ((aText == null) || (aText.trim().length() < 1)) { aText = "<img src=\"/images/blank.gif\" border=\"0\">"; } else { aText = APPENDIX_HTML_SPACE + aText; } CUHtmlText displayText = new CUHtmlText(aText); displayText.setFontName(getDefaultFontName()); displayText.setFontSize("-1"); aCell = utilGetHtmlTableCell(displayText, "35%", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractPopupServlet.java | 46 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractPopUpServlet.java | 52 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractPopUpServlet.java | 51 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 132 |
@Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validateGet()) { CURascalHtmlView page = getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } else { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixBServlet.java | 222 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixEServlet.java | 218 |
void saveAppendixValues(AppendixB anAppendix, boolean doApprove) { // create a new appendixNumber if this is a new appendix anAppendix.setAppendixNumber(anAppendix.getAppendixNumber()); String aTitle = getRequestParameter("title"); if (aTitle != null) { if (aTitle.trim().length() > 254) { aTitle = aTitle.substring(0, 254); } anAppendix.setTitle(aTitle); } // subject String invitro = getRequestParameter(KEY_PARM_INVITRO); if ((invitro != null) && invitro.equals(VALUE_PARM_INVITRO)) { anAppendix.setSubjectSpecies("In vitro only"); } else { String subjectName = getRequestParameter("subject"); if (subjectName.equals("~Select Item~")) subjectName = ""; anAppendix.setSubjectSpecies(subjectName); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/RascalStaticSubmitFormServlet.java | 56 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 107 |
} //~ Methods ------------------------------------------------------------------------------------ /** * <p>Override the doGet in CURascalVAPServlet and CURascalServlet. I am not happy with the * behavior implemented in those classes</p> * * <p>hh 3/2/00</p> * * <p>sometime in the future, those superclassed methods will be reworked, but i need to get * around them NOW!</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validateGet()) { CURascalHtmlView page = getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/RascalStaticSubmitFormServlet.java | 101 |
edu/columbia/rascal/presentation/irb/servlets/IrbAbstractServlet.java | 122 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 91 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 91 |
ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.common.CURascalVapServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsRadiopharmaceuticalController.java | 102 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsRadiopharmaceuticalController.java | 202 |
@PathVariable("appendixId") Long appendixId, @ModelAttribute(HZ_RADIO_PHARM) @Valid HzRadiopharmaceutical hzRadiopharmaceutical, BindingResult result, ModelMap modelMap) { final Map<String, Object> response = new HashMap<String, Object>(); // AppendixH appendixH = appendixHService.findById(appendixId); if (result.hasErrors()) { final List<String> errors = new ArrayList<String>(); for (final ObjectError objectError : result.getAllErrors()) { errors.add(objectError.getDefaultMessage()); } response.put("error", StringUtils.join(errors, ", ")); return response; } this.hzRadiopharmaceuticalService.save(hzRadiopharmaceutical); return response; } /** * TODO: DOCUMENT ME! * * @param appendixId * TODO: DOCUMENT ME! * @return TODO: DOCUMENT ME! */ @RequestMapping(value = "/current", method = RequestMethod.GET) |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsRadiopharmaceuticalDetailController.java | 74 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsRadiopharmaceuticalDetailController.java | 181 |
Collections.sort(radiopharmaceuticals, new Comparator<HzRadiopharmaceutical>() { @Override public int compare(HzRadiopharmaceutical o1, HzRadiopharmaceutical o2) { final String d1 = o1.getName(); final String d2 = o2.getName(); if (d1 == null || d2 == null) { if (d1 == null && d2 != null) { return 1; } if (d2 == null && d1 != null) { return -1; } return 0; } return d1.compareTo(d2); } }); modelMap.addAttribute("radiopharmaceuticals", radiopharmaceuticals); modelMap.addAttribute("error", error); return "hazMats/radSafety/radiopharmaceuticaldetail"; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaFormQuestionEntryServlet.java | 117 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaFormQuestionEntryServlet.java | 153 |
question.setQuestionPrompt(getRequestParameter("questionPrompt")); formatType = Integer.parseInt(getRequestParameter("formatType").substring(0, 1)); question.setAnswerFormat(formatType); if (formatType == ANSWER_TYPE_NONE) { question.setAnswerable(false); question.setAnswerRequired(false); } else if (formatType == ANSWER_TYPE_BOOLEAN) { question.setAnswerable(true); question.setAnswerRequired(false); } else { question.setAnswerable(true); question.setAnswerRequired((getRequestParameter("answerRequired") != null) ); } // "notQuestion" field used to indicate embedded answer question.setNotQuestion(false); question.setQuestionEditable((getRequestParameter("questionEditable") != null) ); ServiceLocator.getHipaaQuestionLookupService().save(question); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 3348 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 3999 |
public static Vector getEventStatusReport(String dateRange, String selectedCommittee, String eventList, Vector statusList ) { Vector results = new Vector(); Vector v = new Vector(); String protocolType = ""; String name = " "; eventList = PersistentTextFormatter.detokenizeText(eventList, " "); if (eventList.equals(IrbNameConstants.PROTOCOL)) { name = IrbNameConstants.PROTOCOL_HEADER; protocolType = IrbNameConstants.PROTOCOL; } else if (eventList.equals(IrbNameConstants.RENEWAL)) { name = IrbNameConstants.PROTOCOL_HEADER; protocolType = IrbNameConstants.RENEWAL; } else if (eventList.equals(IrbNameConstants.MODIFICATION)) { name = IrbNameConstants.PROTOCOL_HEADER; protocolType = IrbNameConstants.MODIFICATION; } else { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbApprovalEntryView.java | 90 |
edu/columbia/rascal/presentation/irb/pages/IrbCommitteeMemberEntryView.java | 181 |
edu/columbia/rascal/presentation/irb/pages/IrbDepartmentApprovalEntryView.java | 66 |
edu/columbia/rascal/presentation/tc/views/TCAddTestScoresView.java | 130 |
aForm.add(performMethod("getActionButtons", null)); add(aForm); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // Uni aWidget = getEditWidgetFor("rascalUni", "", "15", "15"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceEditView.java | 176 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceToReviewView.java | 105 |
setBgColor("white"); add(aForm); } /** TODO: DOCUMENT ME! */ public void addGeneralInfo() { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setCellPading(0); t.setCellSpacing(0); Vector elements; elements = new Vector(2); elements.addElement(getTextWidgetFor("Notification Date:", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor( CalendarTransformer.formatMMDDYYYY(corr.getNotificationDate()), getFontSize(), true ) ); t.addRowFor(elements); elements = new Vector(2); elements.addElement(getTextWidgetFor("From:", getFontSize() + 1, true)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 43 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 39 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 40 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 39 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 41 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 44 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 43 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 46 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 78 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusDateRangeView.java | 41 |
super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); setRascalUser(aUser); setSubTitle("IRB Approval Status Report"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 82 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 216 |
) { super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("getSortByValue1.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNewSorted.js"))); addJavaScriptElement( new CUHtmlText(getJSCodeFrom("openNewSortedForDownload.js")) ); setBeginDate(beginDate); setEndDate(endDate); setServletName(PtReportDeptServlet.class.getName()); setMainTitle("Proposal Department Report"); setForm(new CUHtmlForm("Form1", PtReportDeptServlet.class.getName(), "GET")); setPageTitle("RASCAL Proposal Tracking"); setSubTitle("Proposal Department Report"); int i = deptCodeName.indexOf(","); deptName = deptCodeName.substring(i + 1); setPrintable(print); setDownloadable(downloadable); setSortBy(sortColumn); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 156 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 133 |
getUrlToViewForDownload("A", getServletName(), "PtDeptCenter") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows, columns); if (!getPrintable()) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton( "BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + PtReportDeptDateRangeServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 2443 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryServlet.java | 2526 |
public Vector getSelectedDataTotalAnimalOfHumanProtocolsByUni(String uni, String fromDate, String toDate ) { // singleRowResult is a totalNumberOfProposalsByUni row [ [totalNumberOfProposals] ] Vector singleRowResult = new Vector(1); Vector row = new Vector(1); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { // SELECT - totalNumberOfProposals ResultSet res = acc.executeQuery(getQueryTotalNumberOfAnimalProtocolsByUni(uni, fromDate, toDate ) ); if (res.next()) { // totalAmountOfProposals row.addElement(Integer.toString(res.getInt(1))); } else { row.addElement(""); } singleRowResult.addElement(row.clone()); } catch (Exception e) { log.error(e); } return singleRowResult; } /** * getSelectedDataTotalNumberOfHumanProtocolsByDept. * * @param deptCode String * @param fromDate String * @param toDate String * * @return Vector */ public Vector getSelectedDataTotalNumberOfAnimalProtocolsByDept(String deptCode, |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportCourseAdminView.java | 126 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 125 |
aCell4.add(getHelpFor("tchelp.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); } if (!(isPrintable())) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 834 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 481 |
String key = (String) e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * This method was created in VisualAge. Sets the mainTitle of this page. If aMainTitle is a * String, use the default mainTitle settings. if aMainTitle is CUHtmlText, override the default * mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * This method was created in VisualAge. Sets the note of this page. If aNote is a String, use * the default note settings. if aNote is CUHtmlText, override the default note settings. * * @param aNote TODO: DOCUMENT ME! */ public void setNote(Object aNote) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 427 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 632 |
public void setBusinessMeetingHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableCell header; Vector titles = new Vector(); titles.addElement("Agenda number"); titles.addElement("Meeting Date"); titles.addElement("Outcome"); int size = titles.size(); for (int i = 0; i < size; i++) { aTitle = new CUHtmlText((String) titles.elementAt(i)); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("center"); } } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param event TODO: DOCUMENT ME! * @param attribute TODO: DOCUMENT ME! */ public void setBusinessMeetingTableDataRow(CUHtmlTable aTable, IrbAgendaEvent event, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 162 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 165 |
setPageTitle("RASCAL Appendix A"); setAppendixObject(anAppendixObject); setStaffVector(staffList); addFields(false); render(); } //~ Methods ------------------------------------------------------------------------------------ /** This method was created in VisualAge. */ @Override public void addAppendixHeader() { addFields(false); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! */ @Override public void addFields(boolean defaultValue) { addAppendixTitle(); setTrainingReqs(appendixObject.getAppendixType()); addLegalMessage(); // addPIInfo(); try { addGeneralFields(defaultValue); if ((getOwnerSurrogate() != null) && !getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER) && (getOwnerSurrogate().getStaffTable() != null) && !getOwnerSurrogate().getStaffTable().isEmpty() ) { addPersonnelDisplayList(); } if (!defaultValue) addOSHALawString(OSHA_LAW); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixCServlet.java | 62 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixDServlet.java | 52 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixEServlet.java | 50 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixFServlet.java | 56 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixGServlet.java | 56 |
return ServiceLocator.getAppendixCService().findById(Long.valueOf(getAppendixId())); } catch (Exception e) { log.error("Exception retrieving appendix.", e); } return null; } /** * This method was created in VisualAge. * * @return java.lang.String */ @Override public String getAppendixType() { return APPENDIX_LETTER; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CURascalHtmlView getPage() { setOriginUrl(getLineParameter(KEY_PARM_HAZMAT_ORIGIN)); setAppendixType(APPENDIX_LETTER); String appendixId = getLineParameter(KEY_PARM_APPENDIX_OID); if (appendixId == null) { appendixId = getAppendixId(); } AbstractAppendix anAppendix; try { if ((appendixId == null) || appendixId.equals("") || appendixId.equals("NEW")) { setAppendixId("NEW"); return new AppendixCView("NEW", getUser()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/RascalStaticSubmitFormServlet.java | 72 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 132 |
@Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validateGet()) { CURascalHtmlView page = getPage(); if (page != null) { page.setLineParameters(getLineParameters()); page.draw(getResponse()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1264 |
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 390 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 384 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 1311 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 310 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 383 |
String key = (String) e.nextElement(); String value = (String) params.get(key); getForm().add(new CUHtmlHiddenField(key, value)); } } /** * Sets the mainTitle of this page. If aMainTitle is a String, use the default mainTitle * settings. if aMainTitle is CUHtmlText, override the default mainTitle settings. * * @param aMainTitle TODO: DOCUMENT ME! */ public void setMainTitle(Object aMainTitle) { if (aMainTitle instanceof CUHtmlText) { mainTitle = (CUHtmlText) aMainTitle; } else { if (aMainTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aMainTitle); aText.setFontSize("+2"); aText.setIsBold(true); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); mainTitle = aText; // Set also the title of the page to same. setTitle((String) aMainTitle); } } } /** * TODO: DOCUMENT ME! * * @param newValue TODO: DOCUMENT ME! */ public void setRascalUser(RascalUser newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbProtocolFileUploadController.java | 120 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolFileUploadExternalController.java | 119 |
attachment.setActive("Y"); attachment.setInternalFlag("N"); attachment.setAttachmentTypeCode(Long.valueOf(attachmentTypeCode)); attachment.setWhoRid(getRascalUser().getId()); ServiceLocator.getIrbAttachmentService().save(attachment, file.getInputStream(), file.getSize()); // create an new attachment history record IrbAttachmentHistory history = new IrbAttachmentHistory(); history.setIrbAttachment(attachment); history.setAction("Active"); history.setActionDate(new Date()); history.setWhoRid(getRascalUser().getId()); ServiceLocator.getIrbAttachmentHistoryService().save(history); return "windowCloser"; } } modelMap.put("msg", msg); return "irb/protocol/attachment/create"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 154 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 144 |
} else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doPost in CURascalVAPServlet and CURascalServlet.</p> * * <p>hh 5/19/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3264 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4445 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5365 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5452 |
aBuffer.append(") Order by e.statusDate "); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { // this row /* (1) protocol header oid * (2) protocolNumber (3) title (4) PI last name (5) statud date * (6) protocol oid (7) committee name (8) times in count (9) * originating department (10) exempt flag */ row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); // protocol number row.addElement(res.getString(3)); // protocol title row.addElement(res.getString(4)); // PI name last if (res.getDate(5) == null) // date submitted { row.addElement(""); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 275 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 361 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 269 |
for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { return "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToViewReportForDownload(String queueName) { return "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'PtDeptReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 180 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 430 |
if (!(getPrintable())) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = null; pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + IrbReportCurrentActivityDateRangeServlet.class.getName() + "?type=" + reportType + "'" ); getForm().add("<BR><BR>"); bTable.add(pb1); getForm().add(bTable); } setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); add(getForm()); render(); } /** * This method was created in VisualAge. * * @param rows TODO: DOCUMENT ME! * @param rows1 TODO: DOCUMENT ME! * @param rows2 TODO: DOCUMENT ME! * @param print TODO: DOCUMENT ME! * @param sortColumn TODO: DOCUMENT ME! * @param sortColumn1 TODO: DOCUMENT ME! * @param sortColumn2 TODO: DOCUMENT ME! * @param selectedCom TODO: DOCUMENT ME! * @param downloadable TODO: DOCUMENT ME! * @param uni TODO: DOCUMENT ME! * @param reportType TODO: DOCUMENT ME! * * @author Halayn Hescock */ public IrbReportCurrentActivityStatusView(Vector rows, Vector rows1, Vector rows2, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 140 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHarlemHospitalView.java | 74 |
getAForm().add(getMasterTable()); CUHtmlPushButton button = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Return", ""); if ((format != null) && format.equalsIgnoreCase("normal")) { aForm.add("<br><br>"); aForm.add(button); aForm.add("<hr>"); } aForm.add("</div>"); // -------------------------------------------------------------------------------------------- add(aForm); } /** * TODO: DOCUMENT ME! * * @param columns TODO: DOCUMENT ME! */ public void addHeader(Vector columns) { if ((format != null) && (format.equalsIgnoreCase("print") || format.equalsIgnoreCase("normal")) ) { aForm.add("<div align=\"center\">"); aForm.add( "<p><font face=\"Verdana\" size=\"4\">RASCAL Reporting<br>Columbia University</font><br></p> " ); aForm.add("<p><font face=\"Verdana\"><b>" + " Device Study Report </b></font></p> "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportClinicalTrialsFirstSubmissionStatusServlet.java | 81 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportClinicalTrialsStatusServlet.java | 83 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportDepartmentStatusServlet.java | 94 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportHistoryServlet.java | 117 |
CUSortVector rows = new CUSortVector(getSelectedData(beginDate, endDate, columns)); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); rows.sortByColumn(sortBy); } else { sortBy = new String(); } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 110 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 245 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 72 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 76 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportWithdrawnView.java | 86 |
addHeader(getBeginDate(), getEndDate(), deptCodeName); getForm().add(addDate()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( getKeywordListForColumns(columns), |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinuteHistoryDateRangeView.java | 38 |
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchDateRangeView.java | 43 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 41 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 37 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 38 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 38 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 39 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyFieldSelectView.java | 40 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 39 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 76 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyDateRangeView.java | 44 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyView.java | 40 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 42 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 41 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredDateRangeView.java | 36 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredView.java | 40 |
public IrbAgendaMinuteHistoryDateRangeView() { super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 514 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceReturnOrApproveCreateServlet.java | 819 |
if (parentObjectName.equals(IrbNameConstants.PROTOCOL_HEADER)) { ph = ServiceLocator.getIrbProtocolService().getByProtocolNumber(corr .getProtocolNumber(), getUser() ).getLastProtocolHeader(); pi = ServiceLocator.getRascalUserService().findById(ph.getPI().getRid()); title = "\n\nTitle: " + ph.getTitle(); abbrebiatedTitle = ph.getAbbreviatedTitle(); piName = "\nPI: " + pi.getNameFirst() + " " + pi.getNameLast(); } else { IrbProtocol prot = ServiceLocator.getIrbProtocolService().getByProtocolNumber( corr.getProtocolNumber(), getUser() ); ph = |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 145 |
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 231 |
String appendixTypeStr = appendixType.getKeyword(); // Variables for selection String whereAppendixNumber = buildWhereClauseForSelectionByExactMatch(appendixNumber, "apx.appendixNumber" ); StringBuilder query = new StringBuilder(2000); StringBuilder coreSelect = new StringBuilder(500); coreSelect.append(" SELECT DISTINCT"); coreSelect.append(" apx.oid ID,"); coreSelect.append(" apx.appendixNumber NUM,"); coreSelect.append(" apx.title SHORTTITLE,"); coreSelect.append(" '").append(appendixTypeStr).append("' APPENDIXTYPE,"); coreSelect.append(" apx.subjectSpecies SPECIES,"); coreSelect.append(" apx.createDate CDATE,"); coreSelect.append(" apx.locked LOCKED,"); coreSelect.append(" apx.createdBy CRID,"); coreSelect.append(" ru.name_first,"); coreSelect.append(" ru.name_last,"); coreSelect.append(" ru.user_id,"); if (CURascalGuardian.hasHmRecordMaintenance() || CURascalGuardian.hasHmRascal()) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 53 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 88 |
public AppendixBView(AbstractAppendix anAppendixObject, RascalUser aUser) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixBServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_B)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("invitroCheckBoxAlertMessage.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 52 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 83 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 118 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 197 |
public AppendixCView(AbstractAppendix anAppendixObject) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixCServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_C)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("invitroCheckBoxAlertMessage.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 48 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 79 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 179 |
public AppendixEView(AbstractAppendix anAppendixObject) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixEServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_E)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("invitroCheckBoxAlertMessage.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 48 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 147 |
public AppendixFView(AbstractAppendix anAppendixObject) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixFServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_F)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixGView.java | 48 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGView.java | 147 |
public AppendixGView(AbstractAppendix anAppendixObject) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixGServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_G)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 849 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 909 |
public CUHtmlText getLinkToEditAppendix(String text, String appendixOid, String appendixType) { String servletName = null; switch (appendixType.charAt(0)) { case 'A': servletName = AppendixAServlet.class.getName(); break; case 'B': servletName = AppendixBServlet.class.getName(); break; case 'C': servletName = AppendixCServlet.class.getName(); break; case 'D': servletName = AppendixDServlet.class.getName(); break; case 'E': servletName = AppendixEServlet.class.getName(); break; case 'F': servletName = AppendixFServlet.class.getName(); break; case 'G': servletName = AppendixGServlet.class.getName(); break; case 'H': |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 331 |
edu/columbia/rascal/presentation/lab/pages/HzMessageView.java | 371 |
public AppendixMessageView(String aMessage, boolean close, String buttonMessage) { super(); setPageTitle("RASCAL Message"); add("<body bgcolor=\"#FFFFFF\" background=\"/images/blu.jpg\" >"); CUHtmlText title = new CUHtmlText("Information Message"); title.setHeaderLevel("2"); CUHtmlMultiLineText message = new CUHtmlMultiLineText(aMessage); message.addBreaks(2); message.setFontSize("+1"); message.setFontName("Comic Sans MS"); CUHtmlForm aForm = new CUHtmlForm(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", buttonMessage, "javascript:opener.location.href=opener.location.href; window.close()" ); pb.addBreaks(2); add(title); add(message); if (close) { aForm.add(pb); } add(aForm); } /** * FoasUnimplementedMessageView constructor comment. * * @param hasButton TODO: DOCUMENT ME! * @param aMessage TODO: DOCUMENT ME! */ public AppendixMessageView(boolean hasButton, String aMessage) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/RascalStaticSubmitFormServlet.java | 102 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 157 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 164 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 92 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 92 |
edu/columbia/rascal/presentation/user/servlets/RuAbstractServlet.java | 117 |
} catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.common.CURascalVapServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 1065 |
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 1105 |
public void draw(javax.servlet.http.HttpServletResponse response) { // setLicenseKey(); BufferedOutputStream out = null; try { out = new BufferedOutputStream(response.getOutputStream(), 4096); if (isPageFooterNeeded) { addPageFooter(); } response.setContentType("application/pdf"); response.setHeader("Content-Disposition", "inline; filename=changeNameOfFile.pdf"); //response.setHeader("Content-Disposition", "datasheet; filename=\"datasheet.pdf\""); getPDFObject().render(out); out.flush(); } catch (IOException ioe) { log.error(ioe); } finally { if (out != null) { try { out.close(); } catch (IOException e) { log.error(e); } } } } /** * Insert the method's description here. Creation date: (11/15/2002 4:34:23 PM) * * @param response TODO: DOCUMENT ME! * */ public void drawBlankPDF(javax.servlet.http.HttpServletResponse response) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/jdbc/HipaaQueryObject.java | 144 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaPDFView.java | 701 |
if (!replacement.equalsIgnoreCase("")) { if (oldString.equals(token)) return replacement; else { int start = 0; int end = 0; while ((end = oldString.indexOf(token)) != -1) { newString += oldString.substring(start, end) + replacement; end += token.length(); if (end < oldString.length()) oldString = oldString.substring(end); } if (!newString.equals("")) newString += oldString; else newString = oldString; } } else { return oldString; } return newString; } /** * Insert the method's description here. Creation date: (7/7/2003 4:37:27 PM) * * @param templateName TODO: DOCUMENT ME! * * @return java.util.Vector */ public static long getFormOidByTemplateName(String templateName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1113 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1342 |
txt.setIsBold(true); txt.setAlignment("left"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelLeftFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); String preparedString = aLabel.trim(); if (!preparedString.endsWith(" ") && !preparedString.endsWith(" ")) { preparedString = preparedString + " "; } CUHtmlText txt = new CUHtmlText(preparedString); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); v.addElement(txt); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 154 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 143 |
} else if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doPost in CURascalVAPServlet and CURascalServlet.</p> * * <p>hh 5/19/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbDocSearchQueryFormat.java | 178 |
edu/columbia/rascal/presentation/irb/jdbc/IrbDocSearchQueryFormat.java | 387 |
CURascalBasicSearchParameter excludeExpired = params.getExcludeExpired(); CURascalBasicSearchParameter excludeInvalid = params.getExcludeInvalid(); CURascalBasicSearchParameter excludeClosured = params.getExcludeClosured(); CURascalBasicSearchParameter excludeCreated = params.getExcludeCreated(); StringBuilder limitExpired = new StringBuilder(""); StringBuilder limitInvalid = new StringBuilder(""); String limitTerminated = ""; if(excludeExpired != null){ limitExpired.append("AND t10.statusName <> '").append(EXPIRED).append('\''); } if (excludeInvalid != null){ limitInvalid.append("AND t10.statusName <> '").append(INVALID).append('\''); } if (excludeClosured != null) limitTerminated = "AND t1.oid not in (SELECT prot.oid from IrbProtocol prot, IrbClosure term where prot.oid=term.parentProtocolOid) "; query.append("SELECT DISTINCT" + " t1.oid," + " t1.protocolNumber as protocolNumber," + " t2.creationDate as creationDate," + " '' AS temp1," + " nvl(t2.abbreviatedTitle, ' ') as abbreviatedTitle," + " '' AS temp2," + " 'Edit'," + " t3.irbProtocolHeaderId," + " t5.name_last as initiator," + " t11.protocolYear," + " t11.modificationNumber," + " t10.statusDate statusDate," + " t10.statusName statusName," + " t2.expirationDate as expirationDate," + " CASE WHEN theClosure.oid IS NOT NULL THEN 'Closured' ELSE ' ' END AS closed, theClosure.statusName closedStatus, theClosure.statusDate closedDate," + " pi.name_last as principalInvestigator," + " CASE WHEN t2.protocolyear = 1 and t2.modificationnumber = 0 THEN 'Original' WHEN t2.protocolyear > 1 and t2.modificationnumber = 0 THEN 'Renewal' WHEN t2.modificationnumber > 0 THEN 'Modification' END as protocolType"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6075 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6178 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6698 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6801 |
aSql.append("AND c.parentObjectName = '"); aSql.append(IrbNameConstants.PROTOCOL_HEADER); aSql.append("' AND c.statusName = '"); aSql.append(SUBMITTED); aSql.append('\''); aSql.append(" AND c.statusDate BETWEEN "); aSql.append(dateRange); // eliminate consecutive status recs with the same statusName // for the same protocol (caused by double clicking) aSql.append(" AND NOT EXISTS"); aSql.append(" (SELECT *"); aSql.append(" FROM IrbStatus"); aSql.append(" WHERE d.oid = parentObjectOid"); aSql.append(" AND c.statusName = statusName"); aSql.append(" AND oid = "); aSql.append(" (SELECT min(oid)"); aSql.append(" FROM IrbStatus"); aSql.append(" WHERE d.oid = parentObjectOid"); aSql.append(" AND c.statusName = statusName"); aSql.append(" AND c.oid < oid))"); return aSql.toString(); } /** * Average number of days from last submission to approval for Exempt protocols. * * @param committeeId TODO: DOCUMENT ME! * @param dateRange TODO: DOCUMENT ME! * * @return average number of days from last submission to approval for Exempt protocols. */ public static String getIrbReportOverallCommitteeStatsSqlString5For(String committeeId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbLogoFrameView.java | 84 |
edu/columbia/rascal/presentation/user/views/CUInfoLogoFrameView.java | 89 |
); add("<a href=\"/iacuc\" target=\"_top\"><font color=\"#0000FF\">Animal Care</font></a>\n| " ); add("<a href=\"/pt\" target=\"_top\"><font color=\"#0000FF\">Proposal Tracking</font></a>\n| " ); add("<a href=\"" + ConsentMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">Consent Forms</font></a>\n| " ); add("<a href=\"" + HipaaMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">HIPAA Forms</font></a>\n| " ); add("<a href=\"" + AppendixMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">Haz Mats</font></a>\n| " ); add("<a href=\"" + AdminMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">Administration</font></a>\n| " ); add("<a href=\"" + TCMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">Training Center</font></a>\n| " ); add("<a href=\"" + "/coi" + "\" target=\"_top\"><font color=\"#0000FF\">Conflict of Interest</font></a>\n| " ); add("<a href=\"" + MyRascalMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">My Rascal</font></a>\n" ); add("</font>\n</td>\n</tr>\n"); add("</tbody>\n</table>\n"); add("</td>\n</tr>\n"); add("</tbody>\n</table>\n\n"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceCreateServlet.java | 328 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceEditServlet.java | 235 |
email = new IrbGeneralEmailMessage(aUser.getNameFirst() + " " + aUser.getNameLast(), aUserEmail, subject, message, RascalProperties.getProperty("DbUserId") ); try { sender.openConnection(); sender.sendEmail(email); } catch (IOException e2) { log.error(e2); } catch (Exception e) { log.error(e); } finally { sender.closeConnection(); } } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#submit() */ @Override public void submit() { setIsEdit(true); IrbMessageView message = null; if (getRequestParameter("correspondenceText").equals("")) { message = new IrbMessageView("Your response must contain text in the message field."); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalCheckFinalizeServlet.java | 374 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalNotifyApproverServlet.java | 56 |
Vector<String> errors = new Vector<String>(); errors.addAll(checkGeneralInformation()); errors.addAll(checkPersonnel()); errors.addAll(checkAgency()); errors.addAll(checkBudget()); errors.addAll(checkSpace()); String type = proposal.getProposalType(); if ((type != null) && (type.equalsIgnoreCase("Renewal") || type.equalsIgnoreCase("Continuation")) ) { errors.addAll(checkCurrentAccount()); errors.addAll(checkCurrentAward()); } errors.addAll(checkIfRegistered()); errors.addAll(checkIfInvestigator()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportCancerCenterMemberServlet.java | 82 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportSignoffServlet.java | 321 |
rows.sortByColumn(sortBy); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } if ((rows == null) || (rows.isEmpty())) { String link = "parent.frames[1].location='edu.columbia.rascal.presentation.propTrak.servlets.PtLinkFrameServlet?trakId=XXXX9999'"; String main = |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 642 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 752 |
return s.toString(); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param monthIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getMonthWidget(String fieldName, int monthIndex) { EVector list = new EVector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param objectOid TODO: DOCUMENT ME! * @param objectName TODO: DOCUMENT ME! * @param protocolOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getObjectDataSheetLinkWidgetFor(String aString, String objectOid, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMessageView.java | 193 |
edu/columbia/rascal/presentation/irb/pages/IrbMessageView.java | 225 |
message.setFgColor("red"); message.addBreaks(2); message.setFontSize("+1"); message.setFontName("Comic Sans MS"); CUHtmlForm aForm = new CUHtmlForm(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", buttonMessage, "javascript:opener.location.href=opener.location.href; window.close()" ); pb.addBreaks(2); add(title); add(message); if (close) { aForm.add(pb); } add(aForm); } //~ Methods ------------------------------------------------------------------------------------ /** This method was created in VisualAge. */ @Override public void getDefaultMainHeader() { add("<body bgcolor=\"#FFFFFF\" onLoad=" + getRefreshLink() + ">"); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getRefreshLink() { return refreshLink; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setRefreshLink(String newValue) { this.refreshLink = newValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinuteHistoryDateRangeView.java | 74 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailDateRangeView.java | 96 |
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchDateRangeView.java | 80 |
edu/columbia/rascal/presentation/agenda/pages/IrbReportEnterProtocolNumberView.java | 93 |
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolSearchView.java | 76 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 77 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 79 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 80 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 79 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 81 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 78 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 76 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryDateRangeView.java | 99 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolSearchView.java | 75 |
addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("30%"); aForm.add(aTable); aForm.add("<BR>"); aForm.add(performMethod("getActionButtons", null)); aForm.add("<BR>"); CUHtmlTable anOutputTable = new CUHtmlTable(); anOutputTable.setBorderWidth(0); Vector aRow = new Vector(2); aRow.addElement(""); aRow.addElement(""); anOutputTable.addRowFor(aRow); anOutputTable.getCell(0, 0).setWidth("5%"); anOutputTable.getCell(0, 1).setWidth("95%"); aForm.add(anOutputTable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinuteHistoryDateRangeServlet.java | 69 |
edu/columbia/rascal/presentation/hipaa/auxiliary/objects/HipaaSearchParametersParser.java | 76 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaReportDateRangeServlet.java | 79 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportHistoryDateRangeServlet.java | 79 |
if (range.startsWith("Year")) { startDay.add(Calendar.MONTH, -12); } else if (range.startsWith("Quarter")) { startDay.add(Calendar.MONTH, -3); } else if (range.startsWith("Month")) { startDay.add(Calendar.MONTH, -1); } else if (range.startsWith("Week")) { startDay.add(Calendar.DATE, -7); } else if (range.startsWith("Day")) { startDay.add(Calendar.DATE, -1); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 2883 |
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 2993 |
moreWhere.append("'))"); moreWhere.append(" AND (staff.IacucProtocolHeaderPer_oid = iph.oid"); moreWhere.append(" AND staff.protocolRole = 'PI'"); moreWhere.append(" AND staff.rid = usr.rid)"); // Appendix B /* yy 09/14/2007 Joanne Tetens(jt2230) want remove appendix C * // Appendix C query.append(" UNION SELECT DISTINCT "); * query.append(selectionList.toString()); query.append(fromWhere1.toString()); * * query.append(" AND lower(iph.humanBloodRequired) = 'y'"); query.append(fromWhere2.toString()); * query.append(" AND 'C'"); query.append(moreWhere.toString()); */ /* * // Appendix D query.append(" UNION SELECT DISTINCT "); * query.append(selectionList.toString()); query.append(fromWhere1.toString()); * * query.append(" AND lower(iph.chemicalsRequired) = 'y'"); query.append(fromWhere2.toString()); * query.append(" AND 'D'"); query.append(moreWhere.toString()); */ // Appendix E // Appendix F return "SELECT DISTINCT " + selectionList.toString() + fromWhere1.toString() + " AND lower(iph.infectiousAgentsRequired) = 'y'" + fromWhere2.toString() + " AND 'B'" + moreWhere.toString() + " UNION SELECT DISTINCT " + selectionList.toString() + fromWhere1.toString() + " AND lower(iph.chemicalsRequired) = 'y'" + fromWhere2.toString() + " AND 'E'" + moreWhere.toString() + " UNION SELECT DISTINCT " + selectionList.toString() + fromWhere1.toString() + " AND lower(iph.radioIsotopesRequired) = 'y'" + fromWhere2.toString() + " AND 'F'" + moreWhere.toString() + " ORDER BY iph.protocolNumber asc"; } /** * Builds a query to retrieve the safety officer's worklist of protocols which still need * her/his approval. This query retrieves only protocols for which the approver is an authorized * approver. * * @param smallRodents TODO: DOCUMENT ME! * @param isConcernedWithSmallRodents TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String buildQueryForVeterinarianToApproveList(Vector smallRodents, |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 691 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 1115 |
aCell1 = utilGetHtmlTableCell(fieldGet_2_LabLocation(), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE3), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE3A), "100%", getTitleAlign()); aCell1.setColumnsToSpan(2); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_3A_EngineeringControls(), "100%", getTitleAlign()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixIView.java | 263 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIView.java | 321 |
getCheckBoxStatus("getScheduleRegistr5", defaultValue), "V", false); columns.add(b1); columns.add(getSpaces()); columns.add(b2); columns.add(getSpaces()); columns.add(b3); columns.add(getSpaces()); columns.add(b4); columns.add(getSpaces()); columns.add(b5); zCell.add(columns); aRow.add(aCell1); aRow.add(zCell); aTable.add(aRow); aTable.add(getBreakRow()); // 3. aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(NY_CONTROLLED), "250", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 331 |
edu/columbia/rascal/presentation/irb/pages/IrbMessageView.java | 215 |
edu/columbia/rascal/presentation/lab/pages/HzMessageView.java | 371 |
public AppendixMessageView(String aMessage, boolean close, String buttonMessage) { super(); setPageTitle("RASCAL Message"); add("<body bgcolor=\"#FFFFFF\" background=\"/images/blu.jpg\" >"); CUHtmlText title = new CUHtmlText("Information Message"); title.setHeaderLevel("2"); CUHtmlMultiLineText message = new CUHtmlMultiLineText(aMessage); message.addBreaks(2); message.setFontSize("+1"); message.setFontName("Comic Sans MS"); CUHtmlForm aForm = new CUHtmlForm(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", buttonMessage, "javascript:opener.location.href=opener.location.href; window.close()" ); pb.addBreaks(2); add(title); add(message); if (close) { aForm.add(pb); } add(aForm); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAServlet.java | 168 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixBServlet.java | 166 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixDServlet.java | 134 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIServlet.java | 143 |
AppendixAccessControl ac = (AppendixAccessControl) res.elementAt(i); if ((ac.getRid() != null) && (ac.getRid().intValue() == anAppendix.getCreatedBy().intValue()) ) { hasAccessForCreator = true; break; } } // make sure there is an 'edit' access control for creator if (!hasAccessForCreator) { AppendixAccessControl newAc = new AppendixAccessControl(anAppendix.getId(), anAppendix.getAppendixType() ); ServiceLocator.getAppendixAccessControlService().save(newAc); newAc.setRid(anAppendix.getCreatedBy()); newAc.setEditView(ACCESS_EDIT); ServiceLocator.getAppendixAccessControlService().save(newAc); // anAppendix.getAllAccessControlEntries().addElement(newAc); } } catch (Exception e) { log.error("Exception creating appendix.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 868 |
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 245 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 200 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 699 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 183 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelLeftFor(String aLabel) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 25 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormSignatureLineEntryView.java | 25 |
public class HipaaFormSignatureLineEntryView extends HipaaFormView { //~ Static fields/initializers ----------------------------------------------------------------- private static final Vector<String> keywordList = new Vector<String>(14); static { keywordList.addElement("~ Select Type ~"); keywordList.addElement(FORM_PI_SIGNATURE); keywordList.addElement(FORM_PRINT_PI_NAME); keywordList.addElement(FORM_PRINT_PATIENT_NAME); keywordList.addElement(FORM_PATIENT_SIGNATURE); keywordList.addElement(FORM_PRINT_SUBJECT_NAME); keywordList.addElement(FORM_SUBJECT_SIGNATURE); keywordList.addElement(FORM_PRINT_SUBJECT_REP); keywordList.addElement(FORM_SUBJECT_REP); keywordList.addElement(FORM_SUBJECT_REP_RELATION); keywordList.addElement(FORM_PRINT_SUBJECT_NAME_SP); keywordList.addElement(FORM_SUBJECT_REP_SP); keywordList.addElement(FORM_SUBJECT_REP_RELATION_SP); keywordList.addElement("other"); } //~ Instance fields ---------------------------------------------------------------------------- private String addOrEdit; private long questionOid; //~ Constructors ------------------------------------------------------------------------------- /** * This method was created in VisualAge. @2005 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param form TODO: DOCUMENT ME! * @param user TODO: DOCUMENT ME! * @param pageType TODO: DOCUMENT ME! * @param questionId TODO: DOCUMENT ME! */ public HipaaFormSignatureLineEntryView(HipaaForm form, RascalUser user, String pageType, |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaNotesView.java | 194 |
edu/columbia/rascal/presentation/irb/pages/IrbRemoveExemptView.java | 198 |
aTable.addRowFor(columns); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 2); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", " Quit ", "Javascript:window.close();" ); CUHtmlTableCell aCell1 = aTable.getCell(0, 1); aCell1.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("BUTTON", "SUBMIT", " Save ", "submitForm(this.form)" ); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); } return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/ic/auxiliary/IacucAppendixStaffHandleCommand.java | 42 |
edu/columbia/rascal/presentation/irb/auxilliary/objects/IrbHazmatsStaffHandleCommand.java | 37 |
return "IacucAppendixStaffHandleCommand [protocolId=" + ", selectedStaffForAppendix=" + (selectedStaffForAppendix != null ? toString(selectedStaffForAppendix, maxLen) : null) + "]"; } private String toString(Collection<?> collection, int maxLen) { StringBuilder builder = new StringBuilder(); builder.append("["); int i = 0; for (Iterator<?> iterator = collection.iterator(); iterator.hasNext() && i < maxLen; i++) { if (i > 0) builder.append(", "); builder.append(iterator.next()); } builder.append("]"); return builder.toString(); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/auxilliary/objects/IrbSearchParametersParser.java | 85 |
edu/columbia/rascal/presentation/irb/auxilliary/objects/IrbSearchParametersParser.java | 297 |
edu/columbia/rascal/presentation/irb/auxilliary/objects/IrbSearchParametersParser.java | 429 |
edu/columbia/rascal/presentation/lab/auxiliary/objects/HzAppendixHeaderSearchParametersParser.java | 73 |
srchParams = new IrbSearchParameters(); String searchType = servlet.getRequestParameter("anyAll"); srchParams.setSearchType(searchType); try { CURascalBasicSearchParser parser = CURascalBasicSearchParser.getInstance(); if (!isEmpty(rascalUserUni)) { parser.initParser(rascalUserUni); srchParams.setRascalUserUni(parser.parse()); emptySearch = false; } if (!isEmpty(rascalUser)) { parser.initParser(rascalUser); srchParams.setRascalUser(parser.parse()); emptySearch = false; } if (!isEmpty(userId)) { parser.initParser(userId); srchParams.setUserId(parser.parse()); emptySearch = false; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 5344 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 5912 |
aSql.append(dateRange); aSql.append(" AND b.parentProtocolOid = e.parentObjectOid"); aSql.append(" AND e.parentObjectName = '"); aSql.append(committeeObjectName); aSql.append('\''); // filter by committee if (!committeeId.equalsIgnoreCase("All Committees")) { aSql.append(" AND e.committeeId = "); aSql.append(committeeId); } // filter by year and mod number if (eventType.equals("New")) { aSql.append(" AND b.protocolYear = 1 AND b.modificationNumber = 0"); } else if (eventType.equals("Mod")) { aSql.append(" AND b.modificationNumber != 0"); } else if (eventType.equals("Renewal")) { aSql.append(" AND b.protocolYear > 1 AND b.modificationNumber = 0"); } // filter by reviewType when the event is a protocol if (objectName.equals(IrbNameConstants.PROTOCOL_HEADER)) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 105 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 126 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 124 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 111 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 102 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 110 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 125 |
aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 162 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 280 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 160 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 147 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 185 |
IrbReportApprovalStatusDateRangeServlet.class.getName() + "'" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } setOnLoad("parent.frames[1].location='" + IrbReportLinkFrameServlet.class.getName() + "'"); add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); // date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText addDateRange() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentInternalView.java | 105 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentView.java | 93 |
aTable.getCell(row, 0).add(getRowLabelFor("Add Internal Attachment", "irb130.html")); aTable.getCell(row, 1).setColumnsToSpan(3); aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("400"); aForm.add(aTable); } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; add(getProtocolGeneralHeaderHtml()); /* add("<br>"); * add(getGenHelpFor("GENERAL INSTRUCTIONS ", "irbattchhowto.html" )); */ add("<br>"); CUHtmlForm aForm = getAForm(); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPadding(0); aTable.setCellSpacing(0); addAttachmentRows(aForm); // add staff list Vector ps = ServiceLocator.getIrbUnanticipatedProblemService() .getAllSortedAttachmentsInternal(getUnanticipate()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbPiEntryServlet.java | 431 |
edu/columbia/rascal/presentation/lab/servlets/HzStaffEntryServlet.java | 312 |
IrbMessageView mv = new IrbMessageView( "This user is unknown to Rascal. Please make sure that they log on and enter their personal information.", true, "Close Window" ); mv.draw(getResponse()); } else { getSession().setAttribute("rascalUni", s); String action = getRequestParameter("hiddenAddEdit"); if (checkConflicts(aUser, role, editView, action, oid)) { if (action.equals("Add")) saveStaffValues(aUser, role, editView); else saveEditValues(aUser, oid, role, editView); } } out.println("<html> <body"); out.println("onLoad = \"opener.location.href=opener.location.href; window.close();\">"); out.println("</body> </html>)"); } if (out != null) { out.close(); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbQueueReviewerForChairServlet.java | 102 |
edu/columbia/rascal/presentation/irb/servlets/IrbQueueReviewerServlet.java | 126 |
); queueRow.put("HeaderOid", e.elementAt(0)); queueRow.put("CurrentStatus", e.elementAt(1)); String pending = ServiceLocator.getIrbStatusService().getLastMeetingOutcome(event); queueRow.put("IsPending", (pending == null) ? "false" : (pending.equals(PENDING) ? "true" : "false") ); queueRow.put("ReviewedDate", e.elementAt(2)); queueRow.put("MeetingDate", getMeetingDate(eventType, (String) e.elementAt(0))); queueRow.put("ReviewerOid", e.elementAt(3)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterView.java | 85 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 110 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 245 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 72 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 76 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportWithdrawnView.java | 86 |
getForm().add("<br>"); getForm().add(addDate()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse30DaysWarningTask.java | 424 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseExpireTask.java | 387 |
lastRun = DateUtils.addHours(lastRun, 12); } return (lastRun != null) && (lastRun.before(now) || lastRun.equals(now)); } /** The action to be performed by this timer task. */ @Override public void run() { Calendar now = Calendar.getInstance(); log.info("Testing Center Emailer: checking last run date on " + CalendarTransformer.toString(now) + "..." ); // Only run between 12:00-6:00AM after a day has passed since last run - PRODUCTION ONLY!!!! if (!dbLocation.equals("was_rascal") || ((now.get(Calendar.HOUR_OF_DAY) >= 0) && (now.get(Calendar.HOUR_OF_DAY) < 20) && hasDayPassedSinceLastRun()) ) { log.info("about to generate emails."); List<Map<String, Object>> emailList = TCCourseQuery.getRequiredCourseToWarning(30); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/servlets/AdminAbstractServlet.java | 58 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 113 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 87 |
public abstract CURascalHtmlView getPage() throws javax.servlet.ServletException, java.rmi.RemoteException, javax.transaction.TransactionRolledbackException, javax.transaction.TransactionRequiredException; /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doGet in CURascalVAPServlet and CURascalServlet. I am not happy with the * behavior implemented in those classes</p> * * <p>hh 3/2/00</p> * * <p>sometime in the future, those superclassed methods will be reworked, but i need to get * around them NOW!</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validateGet()) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 474 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 699 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param link TODO: DOCUMENT ME! * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String link, String aLabel, String source) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 643 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 740 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 648 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param monthIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getMonthWidget(String fieldName, int monthIndex) { EVector list = new EVector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param objectOid TODO: DOCUMENT ME! * @param objectName TODO: DOCUMENT ME! * @param protocolOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getObjectDataSheetLinkWidgetFor(String aString, String objectOid, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMeetingAttributeEntryView.java | 66 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMeetingAttributeEntryView.java | 105 |
) { super(); setMainTitle("Add/Edit Meeting Notes"); setPageTitle("RASCAL Human Subjects - Meeting Notes"); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("irbCheckRecommendedStatus.js"))); setAgendaHeader(bo); setRascalUser(aUser); add(bo); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaSummaryReportServlet.java | 92 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportApprovalHistoryServlet.java | 202 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 277 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportStatusServlet.java | 258 |
CUSortVector available = new CUSortVector(processAvailableResults(getAvailableData())); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); rows.sortByColumn(sortBy); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAuthorizedPersonEntryView.java | 106 |
edu/columbia/rascal/presentation/irb/pages/IrbApprovalEntryView.java | 92 |
edu/columbia/rascal/presentation/irb/pages/IrbCommitteeMemberEntryView.java | 183 |
edu/columbia/rascal/presentation/irb/pages/IrbDepartmentApprovalEntryView.java | 68 |
edu/columbia/rascal/presentation/tc/views/TCAddTestScoresView.java | 132 |
add(getForm()); } /** * This method was created in VisualAge. @2002 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // Uni // add a new person aWidget = getEditWidgetFor("rascalUni", "", "15", "15"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI (do not enter a name) ")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 382 |
edu/columbia/rascal/presentation/consent/servlets/ConsentFormNewServlet.java | 327 |
String numberString = "000" + Long.toString(id); numberString = numberString.substring(numberString.length() - 4, numberString.length()); char charPart[] = new char[4]; int letterPart = id / 10000; charPart[3] = getLetters()[letterPart % 26]; charPart[2] = getLetters()[(letterPart / 26) % 26]; charPart[1] = getLetters()[(letterPart / (26 * 26)) % 26]; charPart[0] = getLetters()[(letterPart / (26 * 26 * 26)) % 26]; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixReportProtocolHazMatServlet.java | 75 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixReportPtHazMatServlet.java | 65 |
keyList.addElement(IacucConstants.KEY_XRAY_REQ); return keyList; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ @Override public CURascalHtmlView getPage() { getSession().removeAttribute(KEY_PARM_APPENDIX_OID); getSession().removeAttribute(KEY_PARM_APPENDIX_TYPE); CURascalHtmlView view = null; String fromDate = (String) getSession().getAttribute("fromDate"); String endDate = (String) getSession().getAttribute("toDate"); String location = (String) getSession().getAttribute("location"); String application = (String) getSession().getAttribute("application"); if ((application == null) || (application.trim().length() < 1)) { application = "Both"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/jdbc/CURascalJdbcQueryFormat.java | 82 |
edu/columbia/rascal/presentation/propTrak/jdbc/PtSearchQuery.java | 585 |
Enumeration keyEnum; String attributeVal = ""; switch (keyType) { case KEY_SIMPLE: attributeVal = searchParam.getKeyword(); whereClause = " AND lower(" + attributeNm + ") like lower('%" + attributeVal + "%')"; break; case KEY_OR: keyEnum = searchParam.keywordIterator(); attributeVal = (String) keyEnum.nextElement(); whereClause = " AND ( ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; while (keyEnum.hasMoreElements()) { attributeVal = (String) keyEnum.nextElement(); whereClause = whereClause + " OR ( lower(" + attributeNm + ") like lower('%" + attributeVal + "%') )"; } whereClause = whereClause + ")"; break; case KEY_PLUSMINUS: keyEnum = searchParam.keywordIterator(); Enumeration signEnum = searchParam.signIterator(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 868 |
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 245 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 200 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1063 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 183 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelLeftFor(String aLabel) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsApproveQueueController.java | 199 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsAssignPRQueueController.java | 292 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsPreApproveQueueController.java | 108 |
@PreAuthorize("hasRole('APPENDIXH_CAN_APPROVE')") @RequestMapping( value = "/{taskId}/return", method = RequestMethod.GET) public ModelAndView getCreate(@PathVariable String taskId, @RequestParam (value="error", required = false) String error) { AppendixH appendixH = appendixHProcessService.findByTaskId(taskId); if (StringUtils.equals(error, "isblank")) error = "The text can not be left blank."; AppendixCorrespondence appendixCorrespondence = new AppendixCorrespondence(appendixH.getId(), APPENDIXTYPE); appendixCorrespondence.setCorrespondenceText(appendixCorrespondenceService.getReturnAppendixEmailTemplateText(appendixH)); RascalUser destinationUser = appendixHService.getPricipalInvestigator(appendixH); return new ModelAndView("hazMats/radSafety/returnAppendix", hazMatsControllerHelperService.loadCorrespondancePage(taskId, appendixH, appendixCorrespondence, destinationUser, APPROVE, "return", "", error)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormEmbeddedQuestionEntryView.java | 291 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormSignatureLineEntryView.java | 119 |
addFormatTypeWidget(aTable, numCells, aQuestion); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); String addOrSave = "Add"; if (addOrEdit.equals("Edit")) { addOrSave = "Save"; } CUHtmlPushButton pb1 = new CUHtmlPushButton("RESET"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("SUBMIT", "SUBMIT", addOrSave); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); return aTable; } /** * This method was created in VisualAge. @2005 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aQuestion TODO: DOCUMENT ME! * * @return CUHtmlList */ private Object getEmbeddedTextSignifierWidget(HipaaQuestionLookup aQuestion) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormEmbeddedQuestionEntryView.java | 292 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 178 |
} /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); String addOrSave = "Add"; if (addOrEdit.equals("Edit")) { addOrSave = "Save"; } CUHtmlPushButton pb1 = new CUHtmlPushButton("RESET"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("SUBMIT", "SUBMIT", addOrSave); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); return aTable; } /** * This method was created in VisualAge. @2005 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aQuestion TODO: DOCUMENT ME! * * @return CUHtmlList */ private Object getEmbeddedTextSignifierWidget(HipaaQuestionLookup aQuestion) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderSearchView.java | 42 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaReportStatusDateRangeView.java | 55 |
setMainTitle("Hipaa Authorization/Waiver Search"); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("srchHelp.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("hipaaOverrideEnterKey.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("hipaaRetrieve.js"))); addItems(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceEditView.java | 177 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixViewCorrespondenceView.java | 124 |
add(aForm); } /** TODO: DOCUMENT ME! */ public void addGeneralInfo() { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setCellPading(0); t.setCellSpacing(0); Vector elements; elements = new Vector(2); elements.addElement(getTextWidgetFor("Notification Date:", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor( CalendarTransformer.formatMMDDYYYY(corr.getNotificationDate()), getFontSize(), true ) ); t.addRowFor(elements); elements = new Vector(2); elements.addElement(getTextWidgetFor("From:", getFontSize() + 1, true)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 501 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 591 |
return new CUHtmlEntryField(aInputName, aSize, aMax, (aValue == null) ? "" : aValue); } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getGenHelpFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setWidth("100%"); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("General Instructions"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Irb/" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2124 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1158 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("20%"); t.getCell(0, 0).setAlign("left"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param flag TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelLeftFor(String aLabel, boolean flag) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCTSACorrespondenceView.java | 314 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueCancerCenterCorrespondenceView.java | 314 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairCorrespondenceView.java | 376 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueNotifyCorrespondenceView.java | 298 |
getAForm().add("<TD ALIGN=\"center\"><FONT FACE=\"Verdana\" SIZE=\"1\">"); getAForm().add(i); getAForm().add("</FONT></A></TD>"); // Disposition Action cell 4 getAForm().add("<TD ALIGN=\"center\"><A "); parmString = new StringBuffer(); parmString.append("Javascript:onClick=parent.frames[1].location='"); parmString.append(IrbLinkFrameServlet.class.getName()); parmString.append("';parent.frames[2].location='"); parmString.append(IrbCorrespondenceDispositionServlet.class.getName()); parmString.append("?correspondenceOid="); parmString.append((String) row.elementAt(7)); parmString.append("&&recipientOid="); parmString.append((String) row.elementAt(8)); parmString.append('\''); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 529 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 692 |
public void getClosureWidget(Vector results, CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); aCell = new CUHtmlTableCell(); aCell.add(getHeadingLabelFor("View")); aCell.setAlign("left"); aCell.setWidth("15%"); aRow.add(aCell); aCell = new CUHtmlTableCell(); // cc aCell.add(getHeadingLabelFor(" ")); aCell.setAlign("left"); aCell.setWidth("2%"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getHeadingLabelFor("Action")); aCell.setAlign("center"); aCell.setWidth("5%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolSearchView.java | 121 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryDateRangeView.java | 149 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolSearchView.java | 120 |
aWidget = getEditWidgetFor("uni", "", "15", "15"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI (do not enter a name):")); row++; columns.setElementAt(null, 1); // clear the element columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element aTable.addRowFor(columns); row++; columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 339 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 355 |
elements.addElement(getWidgetFor( ((categoryA == null) || categoryA.equals("N")) ? "" : "X" ) ); // Status Name elements.addElement(getWidgetFor( ((categoryB == null) || categoryB.equals("N")) ? "" : "X" ) ); // Status Name } t.addRowFor(elements); elements = new Vector(); } getForm().add(t); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. */ public void addHeader() { getForm().add("<div align=\"center\">"); getForm().add("<p><font face=\"Comic Sans MS\" size=\"4\"> RASCAL Reporting <br>"); getForm().add("Columbia University</font><br> </p> "); getForm().add("<p><font face=\"Comic Sans MS\"><b>" + "IRB Aprroval Status Report for " + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovedCountView.java | 334 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionCountView.java | 331 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionTimeView.java | 266 |
aTable.getCell(0, 6).setWidth("10%"); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param results TODO: DOCUMENT ME! * @param aTable TODO: DOCUMENT ME! */ public void getReportWidget(Vector results, CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); String aTitle; CUHtmlTableCell header; String avgValue = null; Vector columns = getColumns(); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(aTitle, 2, false)); aCell.setAlign("right"); aRow.add(aCell); } aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 96 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 98 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 106 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 125 |
aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows, columns); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStats2View.java | 99 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeOverallStatsView.java | 112 |
edu/columbia/rascal/presentation/irb/pages/IrbReportOverallCommStatsAfterLogInView.java | 136 |
getReportPart1Widget(result1, aTable); aForm.add(aTable); aForm.add("<BR> <BR>"); aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellSpacing(1); aTable.setCellPadding(1); aTable.setWidth("90%"); aTable.setAlign("center"); getReportExplanationKeyWidget(aTable); aForm.add(aTable); setBgColor("WHITE"); add(aForm); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param dateRange TODO: DOCUMENT ME! * @param selectedCommittee TODO: DOCUMENT ME! */ public void addHeader(String dateRange, String selectedCommittee) { CUHtmlForm form = getForm(); form.add("<div align=\"center\">"); form.add("<p><font face=\"Comic Sans MS\" size=\"4\"> RASCAL Reporting <br>"); form.add("Columbia University</font><br> </p> "); form.add("<p><font face=\"Comic Sans MS\"><b>" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportActiveApprovedProtocolServlet.java | 78 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportInProcessProtocolServlet.java | 78 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportResearchSummaryByUNIServlet.java | 60 |
CUSortVector rows = new CUSortVector(getSelectedData(uni, department)); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); rows.sortByColumn(sortBy); } else sortBy = new String(); boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && !printableString.equals("")) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && !downloadableString.equals("")) { downloadable = downloadableString.equalsIgnoreCase("true"); } view = new IrbReportActiveApprovedProtocolView(rows, printable, sortBy, downloadable, |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtComplianceAnimalSubjectEntryView.java | 172 |
edu/columbia/rascal/presentation/propTrak/pages/PtComplianceHumanSubjectEntryView.java | 161 |
aWidget = getEditWidgetFor("protocolNumber", protocolNum, "30", "80"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Protocol Number")); aTable.getCell(row, 1).setColumnsToSpan(2); row++; // approvalDate columns.setElementAt(getDateTable(approvalDate, "approvalDate", "approvalDateMonth", "approvalDateDay", "approvalDateYear" ), 1 ); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Approval Date")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterView.java | 131 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 114 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 118 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportProjectOfficerActivityView.java | 138 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportWithdrawnView.java | 128 |
getUrlToViewForDownload("A", getServletName(), "PtReportCancerCenter") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); if (!getPrintable()) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton( "BUTTON", "BUTTON", "Return", |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionForTestLocationView.java | 89 |
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionView.java | 125 |
setBgColor("white"); add(aForm); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable, int numCells) { Vector<Object> columns = new Vector<Object>(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; aWidget = getDeptNameWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor(MULTISELECT_LABEL)); aTable.getCell(row, 1).setColumnsToSpan(3); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaAttachEventView.java | 348 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaEventPostMeetingView.java | 496 |
) aTable.getCell(row, 3).setVAlign("top"); row++; } catch (Exception e) { } } return aTable; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Save"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public Vector getColumns() { String titles[] = { " Number ", "PI", "Title", "Comments", "Add/Edit Meeting Notes", "Remove" |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 207 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 373 |
addEvents(IrbNameConstants.EXEMPT, exemptAttached, IrbNameConstants.EXEMPT); } // add attached expeditable if (expeditableAttached.size() > 0) { addEvents(IrbNameConstants.EXPEDITED, expeditableAttached, IrbNameConstants.EXPEDITED); } if (NRexpeditableAttached.size() > 0) { addNREvents(IrbNameConstants.EXPEDITED, NRexpeditableAttached, IrbNameConstants.EXPEDITED); } // add attached pending if (pendingAttached.size() > 0) { addEvents(PENDING, expeditableAttached, PENDING); } if (NRpendingAttached.size() > 0) { addNREvents(PENDING, NRexpeditableAttached, PENDING); } aForm.add("<br>"); addAgendaNotes(); add(aForm); render(); } /** * IrbAgendaAttachEventView constructor comment. * * @param bo TODO: DOCUMENT ME! * @param aUser TODO: DOCUMENT ME! * @param protocolAttached TODO: DOCUMENT ME! * @param modificationAttached TODO: DOCUMENT ME! * @param renewalAttached TODO: DOCUMENT ME! * @param adverseEventAttached TODO: DOCUMENT ME! * @param closureAttached TODO: DOCUMENT ME! * @param exemptAttached TODO: DOCUMENT ME! * @param expeditableAttached TODO: DOCUMENT ME! * @param pendingAttached TODO: DOCUMENT ME! * @param NRprotocolAttached TODO: DOCUMENT ME! * @param NRmodificationAttached TODO: DOCUMENT ME! * @param NRrenewalAttached TODO: DOCUMENT ME! * @param NRadverseEventAttached TODO: DOCUMENT ME! * @param NRclosureAttached TODO: DOCUMENT ME! * @param NRexemptAttached TODO: DOCUMENT ME! * @param NRexpeditableAttached TODO: DOCUMENT ME! * @param NRpendingAttached TODO: DOCUMENT ME! * @param otherTopicsAttached TODO: DOCUMENT ME! * @param unanticipateAttached TODO: DOCUMENT ME! * @param NRunanticipateAttached TODO: DOCUMENT ME! * @param inFrames TODO: DOCUMENT ME! */ public IrbAgendaDataSheetView(Object bo, RascalUser aUser, Vector protocolAttached, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 643 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 740 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 753 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 648 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 286 |
} /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param fieldName TODO: DOCUMENT ME! * @param monthIndex TODO: DOCUMENT ME! * * @return CUHtmlList */ @Override public Object getMonthWidget(String fieldName, int monthIndex) { EVector list = new EVector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param objectOid TODO: DOCUMENT ME! * @param objectName TODO: DOCUMENT ME! * @param protocolOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getObjectDataSheetLinkWidgetFor(String aString, String objectOid, |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 120 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 108 |
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 105 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 126 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 124 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 111 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 102 |
edu/columbia/rascal/presentation/tc/views/TCReportCourseAdminView.java | 126 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 125 |
aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 501 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 342 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 389 |
text.setFontSize("1"); text.setFontName("Comic Sans MS"); return text; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { String aString = "return openNewSorted(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; return aString; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToViewReportForDownload(String queueName) { String aString = "return openNewSortedForDownload(" + '\'' + getServletName() + "'," + "'columnNamesList" + queueName + "', '" + queueName + "'," + "'IrbReport', " + "'toolbar=yes,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=600'" + ')'; return aString; } /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(Float aString) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 115 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 112 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 244 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 110 |
aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaCheckFinalizeServlet.java | 107 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 291 |
if (!eventType.equals("NewBusiness") && !eventType.equals("OldBusiness") && !eventType.equals("Other") && !eventType.endsWith(IrbNameConstants.EXPEDITED) && !eventType.endsWith(IrbNameConstants.EXEMPT) && !eventType.endsWith(PENDING) ) { IrbMeetingAttributes attribute = event.getIrbMeetingAttributes(); if (attribute == null) { errors.addElement(getErrorStringFor(event)); } else { if ((attribute.getRecommendedStatus() == null) || attribute.getRecommendedStatus().trim().equals("") ) { errors.addElement(getErrorStringFor(event)); } } } } } return errors; } /*This method was created in VisualAge. *@2000 Copyright Columbia University - RASCAL. All Rights Reserved. * * check to see that each event has a recommended status. * */ /** * TODO: DOCUMENT ME! * * @param anEvent TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getErrorStringFor(IrbAgendaEvent anEvent) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 179 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 178 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDSafetyOfficerApprovalView.java | 136 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 181 |
edu/columbia/rascal/presentation/appendix/pages/AppendixISafetyOfficerApprovalView.java | 117 |
aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVER_NOTES + "</b>"), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_7_ApproverNotes("7"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); // Biosafety approval number aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText("<b>" + APPROVAL_NUMBER + "</b>"), "40%", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_6_EHSNumber("6"), "60%", "left"); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixReportProtocolHazMatView.java | 95 |
edu/columbia/rascal/presentation/appendix/pages/AppendixReportPtHazMatView.java | 89 |
setApplication(anApplication); setLocation(aLocation); setFromDate(aFromDate); setToDate(aToDate); String instruction = ""; addFields(rows); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("-1"); date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * TODO: DOCUMENT ME! * * @param dataTableVector TODO: DOCUMENT ME! */ public void addFields(Vector dataTableVector) { if ((dataTableVector == null) || dataTableVector.isEmpty()) { CUHtmlText msgTxt = new CUHtmlText( |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 554 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 541 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 502 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 592 |
} /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * @param source TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getGenHelpFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setWidth("100%"); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("General Instructions"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 922 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1158 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("left"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("20%"); t.getCell(0, 0).setAlign("left"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 185 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 154 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 214 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 224 |
if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormBlankLineEntryView.java | 143 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 341 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionEntryView.java | 300 |
} /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); String addOrSave = "Add"; if (addOrEdit.equals("Edit")) { addOrSave = "Save"; } CUHtmlPushButton pb1 = new CUHtmlPushButton("RESET"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("SUBMIT", "SUBMIT", addOrSave); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 178 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormSignatureLineEntryView.java | 121 |
} /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); String addOrSave = "Add"; if (addOrEdit.equals("Edit")) { addOrSave = "Save"; } CUHtmlPushButton pb1 = new CUHtmlPushButton("RESET"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("SUBMIT", "SUBMIT", addOrSave); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); return aTable; } /** * This method was created in VisualAge. @2005 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param aQuestion TODO: DOCUMENT ME! * * @return CUHtmlList */ private Object getSignatureTypeWidget(HipaaQuestionLookup aQuestion) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovedCountView.java | 337 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatsView.java | 135 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionCountView.java | 334 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionTimeView.java | 269 |
} /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param results TODO: DOCUMENT ME! * @param aTable TODO: DOCUMENT ME! */ public void getReportWidget(Vector results, CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); String aTitle; CUHtmlTableCell header; String avgValue = null; Vector columns = getColumns(); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(aTitle, 2, false)); aCell.setAlign("right"); aRow.add(aCell); } aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 96 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 98 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 150 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 316 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 106 |
aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows, columns); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolAdminChairSearchServlet.java | 183 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolSearchServlet.java | 203 |
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderSearchServlet.java | 189 |
} /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Returns the cache mode to be used for search results.</p> * * <p>CACHE_ALL to cache all search results CACHE_PAGES to cache a certain number of pages * CACHE_ROWS to cache a certain number of rows</p> * * @return int */ protected int getCacheMode() { return edu.columbia.rascal.presentation.common.jdbc.CURascalJdbcAccessConstants.CACHE_PAGES; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Returns the cache size.</p> * * <p>To cache all search results with the cache mode of CACHE_ALL, use the follwoing * edu.columbia.rascal.presentation.presentation.common.jdbc.CURascalJdbcAccessConstants.CACHE_SIZE_ALL</p> * * @return int */ protected int getCacheSize() { return 5; // to cache 5 pages } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Returns the maximum number of rows in the page.</p> * * @return int */ protected int getMaxPageSize() { return 50; // 50 rows per page } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Returns the name of the method to process the ResultSet.</p> * * @return aString */ protected String getProcessResultSetMethod() { return "buildRowWithDocSearchResultSet"; } /** * Handle an exception by sending an error to the HttpResponse. * * @param ex exception java.lang.Throwable */ protected void handleException(Throwable ex) { if (ex instanceof edu.columbia.rascal.presentation.common.parser.CURascalParseException) { /*edu.columbia.rascal.presentation.presentation.common.parser.CURascalParseException ex1 = * (edu.columbia.rascal.presentation.presentation.common.parser.CURascalParseException) ex; * int statusCode = 400; // SC_BAD_REQUEST String msg = ex.getMessage() + " in the * keyword: \"" + ex1.getErrorTokenValue() + "\"" + " starting at the position: * \"" + ex1.getErrorPosition() + "\"" + " in the line: \"" + ex1.getErrorLine() + * "\"";*/ try { // getResponse().sendError(400,"you suck"); getResponse().sendRedirect( "edu.columbia.rascal.presentation.propTrak.servlets.PtMessageServlet?search=true" ); } catch (java.io.IOException e) { } } } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#validateGet() */ @Override protected boolean validateGet() { setOriginUrl(IrbProtocolSearchPageServlet.class.getName()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportApprovalStatusServlet.java | 101 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportEventStatusServlet.java | 101 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportExpirationDateServlet.java | 86 |
) ); String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); // sortBy = sortBy.replace('-',' ').trim(); rows.sortByColumn(sortBy); // view = new IrbMessageView("you selected Committee:"+selectedCommittee+ // "<BR>"+"Begin date "+beginDate+"<BR>"+"end date"+endDate); } else { sortBy = new String(); } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && !printableString.equals("")) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && !downloadableString.equals("")) { downloadable = downloadableString.equalsIgnoreCase("true"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalLogOutView.java | 105 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalLogView.java | 111 |
getUrlToPrintReport("A", getServletName(), "PtReportLoggedOut") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } getForm().add(getProposalWidget(results)); if (!(getPrintable())) { CUHtmlPushButton pb = new CUHtmlPushButton("RESET"); pb.addBreaks(2); getForm().add(pb); getForm().add(new CUHtmlPushButton("SUBMIT", "SUBMIT", "Log Out Proposals")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDateRangeView.java | 71 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 46 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 78 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusDateRangeView.java | 41 |
new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js")) ); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseNotifyTask.java | 60 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseNotifyTask.java | 91 |
public String createMessage(int aRid) { StringBuilder message1 = new StringBuilder(1000); List<List<Object>> RequiredCourses = TCCourseQuery.getAllRequiredCourseListByRid(aRid, PROCEDURE_NAME_REQ_NOTIFY ); String assign = ""; // add retrieve all required courses for current user for(List<Object> currentRow: RequiredCourses){ message1.append((String) currentRow.get(0)); // course number + title if (!currentRow.get(1).equals("")) { message1.append("\n Assigned By "); message1.append((String) currentRow.get(1)); assign = (String) currentRow.get(1); } message1.append("\n\n"); } return "Based on your research, you have been assigned to complete the following training course(s), which you are required to complete within the next 30 days: " + "\n\n" + message1.toString() + "\n\n" + "To take a course on-line using Rascal please follow these steps:" + "\n\n" + "\n 1. Go to the Rascal homepage at https://www.rascal.columbia.edu." + "\n 2. Select 'Training Center' and login with your UNI and password." + "\n 3. a. For EH&S courses ONLY, click on 'Safety Courses.'" + "\n b. For all other courses, click on 'Course Listings.'" + "\n 4. Select the course listed above from the course listings." + "\n 5. Read the Course Overview.." + "\n 6. Click 'Take Course,' and read and follow any instructions." + "\n 7. Once you have completed the course, click ‘Take Test’ to complete the course test. (Note: not all courses require a Rascal test; courses without tests will indicate 'This test has not been defined' in the sidebar menu.) " + "\n\n" + "If you have questions about this course or believe you were assigned this course in error, please contact the course assigner." + "\n\n" + "\n" + "If you have any technical questions, please contact the Rascal Help Line at 212.851.0213 or rascal@columbia.edu." + "\n" + "Please do not 'reply' to this email." + "\n" + "\nRASCAL Help Line 212.851.0213" + "\nrascal@columbia.edu" + "\n" + "\nResearch Administration System" + "\nColumbia University"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/servlets/CURascalUserAbstractServlet.java | 134 |
edu/columbia/rascal/presentation/user/servlets/RuAbstractServlet.java | 172 |
String urlToBeRedirected = getRedirectUrl(); if (urlToBeRedirected != null) super.redirectTo(urlToBeRedirected); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 134 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 311 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 131 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 133 |
addEvents("New Protocols", NRprotocolAttached, IrbNameConstants.PROTOCOL_HEADER); } // add attached modification if (modificationAttached.size() > 0) { addEvents("Modifications", modificationAttached, IrbNameConstants.MODIFICATION); } if (NRmodificationAttached.size() > 0) { addNREvents("Modifications", NRmodificationAttached, IrbNameConstants.MODIFICATION); } // add attached renewal if (renewalAttached.size() > 0) { addEvents("Renewals", renewalAttached, IrbNameConstants.RENEWAL); } if (NRrenewalAttached.size() > 0) { addNREvents("Renewals", NRrenewalAttached, IrbNameConstants.RENEWAL); } // add attached adverseEvent if (adverseEventAttached.size() > 0) { addEvents("Adverse Event Reports", adverseEventAttached, IrbNameConstants.ADVERSE_EVENT); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinuteHistoryDateRangeView.java | 40 |
edu/columbia/rascal/presentation/agenda/pages/IrbMinuteSearchDateRangeView.java | 45 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusDateRangeView.java | 43 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 39 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 40 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 39 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentDateRangeView.java | 41 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyFieldSelectView.java | 41 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 40 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 77 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyDateRangeView.java | 45 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyView.java | 41 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusDateRangeView.java | 44 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateRangeView.java | 43 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredDateRangeView.java | 37 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpiredUnclosuredView.java | 41 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDateRangeView.java | 72 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 46 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 78 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusDateRangeView.java | 41 |
super(); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesNewView.java | 255 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaNewView.java | 283 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 564 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 551 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 602 |
@Override public CUHtmlTable getGenHelpFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setWidth("100%"); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); CUHtmlImage i = new CUHtmlImage("/images/question.jpg"); i.setAlt("General Instructions"); i.setLink("Help"); i.setOnClick("return openNew('" + RascalProperties.getProperty("HelpFilesPath") + "Irb/" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 120 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 115 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 108 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 112 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 244 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 96 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 98 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 106 |
edu/columbia/rascal/presentation/tc/views/TCReportCourseAdminView.java | 126 |
aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaEventSearchServlet.java | 67 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaSearchServlet.java | 110 |
edu/columbia/rascal/presentation/agenda/servlets/IrbMinuteSearchServlet.java | 110 |
} /** * Prepare all text data for saving to the database. * * <p>sybase requires an apostrophe to be accompanied by another one. use this method whenever * saving text tot he database.</p> * * @param aString String * * <p>Mulligan - this should be moved to a common package</p> * * @return prepare all text data for saving to the database. */ public String prepareText(String aString) { java.text.StringCharacterIterator sci = new java.text.StringCharacterIterator(aString); String newString = ""; int i = 0; for (i = 0; i < sci.getEndIndex(); i++) { newString = newString + sci.current(); if (sci.current() == '\'') newString = newString + '\''; sci.next(); } return newString; } /** * Handle the GET and HEAD methods by building a simple web page. HEAD is just like GET, except * that the server returns only the headers (including content length) not the body we write. * * <p>Note - [HP 01/14/00] This is a new search method that uses the PtSearchParametersParser * and PtSearchQueryFormat. This search method supports the following search features: (1) * simple search, (2) required search, (3) implied or search, and (4) phrase search.</p> */ @Override public void submit() { IrbAgendaSearchParameters srchParams = null; CURascalDisplayPageJdbcController pageController = null; IrbAgendaDocumentSearchJdbcAccessor jdbcAccessor = null; CURascalDisplayPageInfo pageInfo = null; IrbAgendaResultsDisplayView view = null; String title = getRequestParameter("Title").trim(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 482 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairSingleEventApprovalServlet.java | 296 |
} } /** * TODO: DOCUMENT ME! * * @param aRid TODO: DOCUMENT ME! * @param corr TODO: DOCUMENT ME! * @param statusName TODO: DOCUMENT ME! */ public void generateEmail(int aRid, IrbCorrespondence corr, String statusName) { IrbEmailSender sender = new IrbEmailSender(); RascalUser aUser = ServiceLocator.getRascalUserService().findById(aRid); String toAddress = ((aUser.getEmailPreferred() == null) ? (aUser.getUserId() + "@columbia.edu ") : aUser.getEmailPreferred()); String toName = (aUser.getNameFirst() + " " + aUser.getNameLast()); String parentObjectName = corr.getParentObjectName(); String protNum = "IRB-" + corr.getProtocolNumber(); IrbProtocolHeader ph = null; String title = ""; String piName = ""; |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaSummaryReportServlet.java | 95 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportSignoffServlet.java | 316 |
String sortBy = getLineParameter("sortBy"); if (sortBy != null) { rows.setColumnNames(columns); rows.sortByColumn(sortBy); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 682 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 1027 |
protected Vector fieldGet_4B1_ConfirmStaff(String aViewName, boolean defaultValue) throws Exception { String aBool = null; Vector aView = utilGetRadioButtonVector(new String[] { "Yes", "No" }, aViewName); if (!(defaultValue)) { aBool = ((AppendixC) getAppendixObject()).getConfirmStaff(); } if (aBool != null) { if (aBool.equals("Y")) ((CUHtmlRadioButton) (aView.elementAt(0))).setChecked(true); else ((CUHtmlRadioButton) (aView.elementAt(1))).setChecked(true); } return aView; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1323 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 749 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 915 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 838 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 656 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 515 |
Vector list = new Vector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * This method was created in VisualAge. * * @param aValue rows int - the number of required rows * @param inputName cells int - the number of cell within each row * * @return edu.columbia.rascal.presentation.fo.alertService.html.CUHtmlTable */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { CUHtmlMultiLineEntryField mlef = new CUHtmlMultiLineEntryField(inputName, "7", "60", |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1960 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaDisplaySelectionListView.java | 148 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * @param isBold TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ public Object getWidgetFor(String aString, boolean isBold) { if ((aString == null) || aString.trim().equals("")) { CUHtmlImage i = new CUHtmlImage("/images/blank.gif"); i.setBorderWidth(0); return i; } CUHtmlText text = new CUHtmlText(aString); if (aString.lastIndexOf("http://") >= 0) { text.setLink(aString); } if (isBold) { text.setFgColor("red"); } text.setFontSize("1"); text.setFontName(getDefaultFontName()); text.setIsBold(isBold); return text; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 163 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 99 |
) ); } aForm.add("<br>"); aForm.add("<br>"); if ((dataTableVector != null) && (!dataTableVector.isEmpty())) { if (queueType.equals(QUEUE_TYPE_IACUC)) { aForm.add(getSortHeaderForColumnNames( getKeywordListForColumns(), QUEUE_TYPE_IACUC ) ); aForm.add("<br>"); aForm.add(buildAnimalCareQueueView(dataTableVector)); } if (queueType.equals(QUEUE_TYPE_IRB)) { aForm.add(getSortHeaderForColumnNames( getKeywordListForColumns(), QUEUE_TYPE_IRB ) ); aForm.add("<br>"); aForm.add(buildIrbQueueView(dataTableVector)); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormBlankLineEntryView.java | 143 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormEmbeddedQuestionEntryView.java | 292 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 341 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 178 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionEntryView.java | 300 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormSignatureLineEntryView.java | 121 |
} /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ @Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); String addOrSave = "Add"; if (addOrEdit.equals("Edit")) { addOrSave = "Save"; } CUHtmlPushButton pb1 = new CUHtmlPushButton("RESET"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("SUBMIT", "SUBMIT", addOrSave); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaFormQuestionRemoveServlet.java | 81 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaHeaderFormQuestionRemoveServlet.java | 188 |
ServiceLocator.getHipaaQuestionLookupService().delete(lookup); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } } return null; } /** * This method was created in VisualAge. @2005 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ @Override public String getRedirectUrl() { String formOid = getLineParameter("HipaaFormId"); String headerFormOid = getLineParameter("HipaaHeaderFormId"); if (!isEmpty(formOid)) { return HipaaFormQuestionServlet.class.getName() + "?HipaaFormId=" + formOid; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 558 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 731 |
aCell.add(getHeadingLabelFor("Initiator")); aCell.setAlign("left"); aCell.setWidth("10%"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getHeadingLabelFor("Committee Name")); aCell.setAlign("left"); aCell.setWidth("10%"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getHeadingLabelFor("Submitted")); aCell.setAlign("center"); aCell.setWidth("10%"); aRow.add(aCell); aCell = new CUHtmlTableCell(); aCell.add(getHeadingLabelFor("Times In")); aCell.setAlign("center"); aCell.setWidth("10%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 105 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 126 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 150 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 316 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 124 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 111 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 102 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 110 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 125 |
aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } addGeneralInformation(rows); |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/auxiliary/objects/HzHazardConstants.java | 20 |
edu/columbia/rascal/presentation/propTrak/auxiliary/objects/PtHazardConstants.java | 23 |
public static final String KEY_APPENDIX_H = "Radiation Badge Required"; // Keywords for the AppendixURLs parameters. public static final String KEY_APPENDIX_A_SHORT = "A"; public static final String KEY_APPENDIX_B_SHORT = "B"; public static final String KEY_APPENDIX_C_SHORT = "C"; public static final String KEY_APPENDIX_D_SHORT = "D"; public static final String KEY_APPENDIX_E_SHORT = "E"; public static final String KEY_APPENDIX_F_SHORT = "F"; public static final String KEY_APPENDIX_G_SHORT = "G"; public static final String KEY_APPENDIX_H_SHORT = "H"; // Keywords for Hazard List Items/Titles & Hazard Checkbox Widgets public static final String KEY_HAZZARD_KIND1 = "Recombinant DNA"; public static final String KEY_HAZZARD_KIND2 = "Infectious Agents"; public static final String KEY_HAZZARD_KIND3 = "Human blood, all human cell lines or other potentially infectious materials (OPIM)"; public static final String KEY_HAZZARD_KIND4 = "Laser (Class 3b or 4)"; public static final String KEY_HAZZARD_KIND5 = "Hazardous chemicals or Toxins"; public static final String KEY_HAZZARD_KIND6 = "Radioisotopes"; public static final String KEY_HAZZARD_KIND7 = "Irradiator (cesium source)"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1321 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 882 |
} /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getSubTitle() { subTitle.setFontName(getDefaultFontName()); return subTitle; } /** @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getTable(int, int) */ @Override public CUHtmlTable getTable(int rows, int cells) { int rowsCounter; Vector<Object> v = new Vector<Object>(); for (rowsCounter = 1; rowsCounter <= rows; rowsCounter++) { CUHtmlTableRow aRow = new CUHtmlTableRow(); int cellCounter; for (cellCounter = 1; cellCounter <= cells; cellCounter++) { aRow.add(new CUHtmlTableCell()); } v.addElement(aRow); } return (new CUHtmlTable(v)); } /** * TODO: DOCUMENT ME! * * @param aTitle TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getTableViewTitle(String aTitle) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 335 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 762 |
aWidget = getEditWidgetFor("costShare", var, "12", "9"); ((CUHtmlEntryField) aWidget).setOnKeyPress("return restrictFieldToNumbers(event)"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Agency Cost Share/Match Amount", "ptconstruct.html" ) ); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // Anticipated Expense type aWidget = getExpenseTypeWidget(); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Expense Type", "pt55.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportApprovalHistoryServlet.java | 208 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportCancerCenterMemberServlet.java | 82 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 284 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportStatusServlet.java | 263 |
rows.sortByColumn(sortBy); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } if ((rows == null) || (rows.isEmpty())) { String link = "parent.frames[1].location='" + PtLinkFrameServlet.class.getName() + |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptInactiveView.java | 172 |
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptView.java | 178 |
CUHtmlTable bTable = new CUHtmlTable(); for (Object currentRow[] : allUsersCourses) { String userRid = String.valueOf(((BigDecimal)(currentRow[3])).intValue()); // User RID if(isFirstRow){ strRid = userRid; isUserChanged = true; } if(!isFirstRow && StringUtils.equals(strRid, userRid)){ isUserChanged = false; } else if(!isFirstRow){ strRid = userRid; isUserChanged = true; } if((!isFirstRow && isUserChanged)||(counter == listSize-1)){ // current person's all required courses CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 900 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1305 |
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 473 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 422 |
} /** * This method was created in VisualAge. Sets the subtitle of this page. If aSubTitle is a * String, use the default subtitle settings. if aSubTitle is CUHtmlText, override the default * title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { // FIXME XSS // String result = req.getParameter(parName); String result = HtmlUtils.htmlEscape(req.getParameter(parName)); return (result.equals("")) ? null : result; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private EVector getDefaultMainFooter() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 683 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 614 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 615 |
String titles[] = { "TrakId", "Title", "Reviewers", "Event Abstract", "PI" }; Vector columns = new Vector(); for (String title : titles) { columns.add(getHeadingLabelFor(title)); } return columns; } /** * Insert the method's description here. Creation date: (2/14/2002 5:32:29 PM) * * @return int */ public String getFontName() { return fontName; } /** * Insert the method's description here. Creation date: (2/15/2002 10:05:24 AM) * * @return int */ public int getFontSize() { return fontSize; } /** * This method was created in VisualAge. * * @param aTitle String * * @return CUHtmlText */ @Override public CUHtmlText getTableViewTitle(String aTitle) { CUHtmlText aText = null; if (aTitle instanceof String) { aText = new CUHtmlText(aTitle); aText.setIsBold(true); // aText.setFontSize("+1"); aText.setAlignment("left"); aText.setFontName(getDefaultFontName()); } return aText; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable * @param eventName TODO: DOCUMENT ME! */ public void setAttachEventHead(CUHtmlTable aTable, String eventName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 136 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 575 |
: (ServiceLocator.getRascalUserService().findById( getAgendaHeader().getWhoRid() ).getUserFirstLastNameUni())))) ); s.append("</td> </tr> <tr> <td width=\"25%\"> "); s.append("<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">You are</font></div>" ); s.append("</td> <td width=\"25%\"><font face=\"Comic Sans MS\" size=\"1\">"); s.append(getRascalUser().getNameFirst()).append(" ").append(getRascalUser().getNameLast()).append("</font></td> <td> "); s.append( "<div align=\"right\"><font face=\"Comic Sans MS\" size=\"1\">Meeting Date</font></div>" ); s.append("</td> <td width=\"25%\"><font face=\"Comic Sans MS\" size=\"1\">"); s.append(CalendarTransformer.formatMMDDYYYY(getAgendaHeader().getMeetingDate())).append("</font></td> <td> "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixApproverViewReleasedQueueView.java | 780 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 1031 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovalQueueView.java | 1273 |
edu/columbia/rascal/presentation/appendix/pages/AppendixSafetyOfficerApprovedQueueView.java | 390 |
aCell.add(getTableCellData((String) queueItem.get(KEY_NAME_UNI))); aCell.setAlign("left"); colNum++; // Current Status aCell = aTable.getCell(rowCount, colNum); String param1 = (String) queueItem.get(KEY_CURRENT_STATUS); String convert1 = getAnimalCareStatusDisplayValue(param1.trim()); if (convert1 == null) convert1 = "Still Creating..."; aCell.add(getTableCellData(convert1)); aCell.setAlign("left"); colNum++; // appendix A aCell = aTable.getCell(rowCount, colNum); String required = ((queueItem.get(KEY_DNA_REQ) != null) && (queueItem.get(KEY_DNA_REQ)).toString().equalsIgnoreCase("y")) ? "x" : ""; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 849 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 967 |
public CUHtmlText getLinkToEditAppendix(String text, String appendixOid, String appendixType) { String servletName = null; switch (appendixType.charAt(0)) { case 'A': servletName = AppendixAServlet.class.getName(); break; case 'B': servletName = AppendixBServlet.class.getName(); break; case 'C': servletName = AppendixCServlet.class.getName(); break; case 'D': servletName = AppendixDServlet.class.getName(); break; case 'E': servletName = AppendixEServlet.class.getName(); break; case 'F': servletName = AppendixFServlet.class.getName(); break; case 'G': servletName = AppendixGServlet.class.getName(); break; case 'H': |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 940 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 909 |
) { String servletName = null; switch (appendixType.charAt(0)) { case 'A': servletName = AppendixAServlet.class.getName(); break; case 'B': servletName = AppendixBServlet.class.getName(); break; case 'C': servletName = AppendixCServlet.class.getName(); break; case 'D': servletName = AppendixDServlet.class.getName(); break; case 'E': servletName = AppendixEServlet.class.getName(); break; case 'F': servletName = AppendixFServlet.class.getName(); break; case 'G': servletName = AppendixGServlet.class.getName(); break; case 'H': |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixChemicalEntryRelayServlet.java | 44 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixChemicalServlet.java | 42 |
getSession().removeAttribute(KEY_PARM_CHEMICAL_NAME); getSession().removeAttribute(KEY_PARM_CHEMICAL_CAS); getSession().removeAttribute(KEY_PARM_CHEMICAL_LAB_QNTY); getSession().removeAttribute(KEY_PARM_CHEMICAL_LAB_UNIT); getSession().removeAttribute(KEY_PARM_CHEMICAL_MSDS_LINK); getSession().removeAttribute(KEY_PARM_CHEMICAL_PHYSICAL_FORM); getSession().removeAttribute(KEY_PARM_CHEMICAL_STORE_QNTY); getSession().removeAttribute(KEY_PARM_CHEMICAL_STORE_UNIT); getSession().removeAttribute(KEY_PARM_CHEMICAL_STORE_LOCUS); getSession().removeAttribute(KEY_PARM_CHEMICAL_USE_LAB); getSession().removeAttribute(KEY_PARM_CHEMICAL_USE_ANIMAL); if (getAppendix() == null) { setRedirectUrl(AppendixMainMenuServlet.class.getName()); return null; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 831 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2032 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 147 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 164 |
} /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row. * * @param aLabel TODO: DOCUMENT ME! * * @return this method creates and formats a CUHtmlText object for the string "aLabel" as a * standardized label for a table row. */ public CUHtmlText getRowLabelFor(String aLabel) { CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/hazmats/HazMatsApproveQueueController.java | 174 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsCommitteeReviewController.java | 161 |
edu/columbia/rascal/presentation/controller/hazmats/HazMatsPreApproveQueueController.java | 90 |
appendicies.add(appendix); dataMap = new HashMap<String, Object>(); dataMap.put(ID, appendix.getId()); dataMap.put(TASK_ID, task.getId()); dataMap.put(NUMBER, "APH-" + appendix.getAppendixNumber()); dataMap.put(NAME, appendix.getTitle()); dataMap.put(TYPE, appendix.getApplicationType()); dataMap.put(STATUS, appendix.getStatus()); dataMap.put(LAST_MODIFIED, appendix.getLastModifiedDate()); dataMap.put(TASK_CREATED, task.getCreateTime()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbClosureFileUploadController.java | 51 |
edu/columbia/rascal/presentation/controller/irb/IrbClosureFileUploadInternalController.java | 52 |
private static final Log log = LogFactory.getLog(IrbClosureFileUploadController.class); //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param request TODO: DOCUMENT ME! * @param attachment TODO: DOCUMENT ME! * @param result TODO: DOCUMENT ME! * @param modelMap TODO: DOCUMENT ME! * @param file TODO: DOCUMENT ME! * @param documentIdentifier TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws IOException TODO: DOCUMENT ME! * @throws IllegalArgumentException TODO: DOCUMENT ME! */ @RequestMapping( value = "upload", method = RequestMethod.POST ) public String create(HttpServletRequest request, @ModelAttribute("attachment") @Valid IrbClosureAttachment attachment, BindingResult result, ModelMap modelMap, @RequestParam("file") MultipartFile file, @RequestParam("documentIdentifier") String documentIdentifier ) throws IOException { if (attachment == null) throw new IllegalArgumentException("An attachment is required"); if (result.hasErrors()) { modelMap.addAttribute("attachment", attachment); return "irb/closure/attachment/create"; } if (log.isDebugEnabled()) log.debug("get post here!" + attachment.getDocumentIdentifier()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormBlankLineEntryView.java | 123 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 268 |
parentQuestionOid = String.valueOf(aQuestion.getParentQuestionOid()); } Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // parentOid aWidget = getEditWidgetFor("parentQuestionOid", parentQuestionOid, "4", "4"); ((CUHtmlEntryField) aWidget).setOnKeyPress("return restrictFieldToNumbers(event)"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Parent Item's ID ")); aTable.getCell(row, 1).setColumnsToSpan(2); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbApprovalView.java | 456 |
edu/columbia/rascal/presentation/irb/pages/IrbApprovalView.java | 566 |
deptName = ru.getDeptHome(); // ServiceLocator.getRascalDepartmentService().findById(ru.getDeptHome()).getName(); } catch (Exception e) { } // name CUHtmlTableCell cell = new CUHtmlTableCell(); cell.add(getRowLabelLeftFor(name)); cell.setAlign("left"); cell.setVAlign("center"); aRow.add(cell); // position cell = new CUHtmlTableCell(); cell.add(getRowLabelLeftFor(position)); cell.setAlign("left"); cell.setVAlign("center"); aRow.add(cell); // deptName cell = new CUHtmlTableCell(); cell.add(getRowLabelLeftFor(deptName)); cell.setAlign("left"); cell.setVAlign("center"); aRow.add(cell); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceDispositionView.java | 671 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceDispositionView.java | 713 |
public void setRespondLink(CUHtmlTable aTable, String rowLabel, String lineParams) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell cell1 = new CUHtmlTableCell(); cell1.add(getRowLabelFor(rowLabel)); cell1.setAlign("left"); aRow.add(cell1); // a link to the pop up window for data entry CUHtmlImage i = new CUHtmlImage("/images/popup.gif"); String anOid = theCorrespondence.getId() + ""; i.setBorderWidth(0); i.setAlt("Respond"); i.setLink("''"); i.setOnClick("return openNew('" + IrbCorrespondenceRespondServlet.class.getName() + "?correspondenceOid=" + getCorrespondence().getId() + "&&recipientOid=" + theRecipientOid + "&&" + lineParams + "','AddRespondCorrespondence','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width=600,height=450')"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 105 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 126 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 96 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 98 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 106 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 124 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 111 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 102 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 110 |
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptInactiveView.java | 117 |
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptView.java | 123 |
edu/columbia/rascal/presentation/tc/views/TCReportTestRequirementExceptionView.java | 116 |
aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbNotesViewOnlyServlet.java | 59 |
edu/columbia/rascal/presentation/irb/servlets/IrbQueueLoggerServlet.java | 338 |
parentName.equals(IrbNameConstants.RENEWAL) ) { parentObject = ServiceLocator.getIrbProtocolHeaderService().getProtocolHeaderByOid( parentOid, getUser() ); } else if (parentName.equals(IrbNameConstants.CLOSURE)) { parentObject = ServiceLocator.getIrbClosureService().getClosureByOid(parentOid, getUser() ); } else if (parentName.equals(IrbNameConstants.ADVERSE_EVENT)) { parentObject = ServiceLocator.getIrbAdverseEventService().getAdverseEventByOid( parentOid, getUser() ); } else if (parentName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { parentObject = ServiceLocator.getIrbUnanticipatedProblemService() .getUnanticipatedProblemByOid(parentOid, getUser()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/pages/RascalDepartmentLookupSubDeptOutputView.java | 61 |
edu/columbia/rascal/presentation/lookup/pages/RascalDepartmentLookupSubSubDeptOutputView.java | 72 |
CUHtmlText aHeader = new CUHtmlText("Sub Department Search Output<br>"); aHeader.setFontName("Comic Sans MS"); aHeader.setFontSize("3"); aHeader.setAlignment("center"); CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setWidth("75%"); aTable.setAlign("center"); aTable.setCellPading(0); aTable.setCellSpacing(0); Vector v = new Vector(4); // Department Name, Code and Labels v.addElement(getRowLabelRightFor("Dept Code:")); v.addElement(getWidgetFor(getCodeID())); v.addElement(getRowLabelRightFor("Dept Name:")); v.addElement(getWidgetFor(getNameID())); aTable.addRowFor(v); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/jdbc/PtQueueQuery.java | 397 |
edu/columbia/rascal/presentation/propTrak/jdbc/PtQueueQuery.java | 554 |
); for(Object[] obj: res){ row.addElement(obj[0].toString()); row.addElement(obj[1]); if (obj[3] == null) { row.addElement(""); } else { row.addElement(obj[2] + "-" + obj[3]); } row.addElement((obj[4] == null)?"":(Date)obj[4]); row.addElement(obj[5]); row.addElement(obj[6]); // PI name |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtComplianceAnimalSubjectEntryView.java | 149 |
edu/columbia/rascal/presentation/propTrak/pages/PtComplianceHumanSubjectEntryView.java | 138 |
} Vector<Object> columns = new Vector<Object>(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; // investigator aWidget = getEditWidgetFor("responsibleInvestigatorUni", investigator, "10", "10"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Responsible Investigator (Uni)")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramEntryView.java | 107 |
edu/columbia/rascal/presentation/user/views/RuSimpleTrainingEnrollmentEntryView.java | 101 |
aTable.getCell(row, 1).add(getRowLabelFor("Species")); aTable.getCell(row, 1).setColumnsToSpan(2); aTable.getCell(row, 3).setColumnsToSpan(2); row++; // EnrollmentDate aWidget = getDateTable(getEnrollmentDate(), KEY_ENROLLMENT_DATE, KEY_ENROLLMENT_DATE + "Month", KEY_ENROLLMENT_DATE + "Day", KEY_ENROLLMENT_DATE + "Year" ); columns.setElementAt(aWidget, 3); aTable.addRowFor(columns); aTable.getCell(row, 1).add(getRowLabelFor("Enrollment Date")); aTable.getCell(row, 1).setColumnsToSpan(2); aTable.getCell(row, 3).setColumnsToSpan(2); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 900 |
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 1305 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 450 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 422 |
} /** * This method was created in VisualAge. Sets the subtitle of this page. If aSubTitle is a * String, use the default subtitle settings. if aSubTitle is CUHtmlText, override the default * title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { // FIXME XSS // String result = req.getParameter(parName); String result = HtmlUtils.htmlEscape(req.getParameter(parName)); return (result.equals("")) ? null : result; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ private EVector getDefaultMainFooter() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaDataSheetView.java | 497 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetUtilityView.java | 323 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetView.java | 325 |
elements.addElement(getTextWidgetFor(toDateString(getAgendaHeader().getMeetingDate()), getFontSize() + 1, true ) ); t.addRowFor(elements); elements = new Vector(5); IrbCommittee aCommittee = ServiceLocator.getIrbCommitteeService().findById(getAgendaHeader() .getCommitteeId() ); String aName = aCommittee.getCommitteeName(); elements.addElement(getTextWidgetFor("Committee: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(aName, getFontSize() + 1, true)); elements.addElement(getTextWidgetFor("Timestamp: ", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor(CalendarTransformer.formatDateAndTime(new Date()), |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMessageView.java | 39 |
edu/columbia/rascal/presentation/consent/pages/ConsentMessageView.java | 37 |
public IrbAgendaMessageView(String aMessage) { super(); add("<body bgcolor=\"#FFFFFF\" background=\"/images/blu.jpg\" >"); setPageTitle("RASCAL Message"); CUHtmlText title = new CUHtmlText("Information Message"); title.setHeaderLevel("2"); CUHtmlMultiLineText message = new CUHtmlMultiLineText(aMessage); message.setFgColor("red"); message.addBreaks(2); message.setFontSize("+1"); message.setFontName("Comic Sans MS"); CUHtmlForm aForm = new CUHtmlForm(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "Return", "Return", "history.back()"); pb.addBreaks(2); add(title); add(message); aForm.add(pb); add(aForm); } /** * IrbAgendaMessageView constructor comment. * * @param aMessage TODO: DOCUMENT ME! * @param location TODO: DOCUMENT ME! */ public IrbAgendaMessageView(String aMessage, String location) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 548 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 777 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaObjectHistoryView.java | 940 |
cell4b.add(getWidgetFor((attribute == null) ? "" : attribute.getFollowUp())); // } // else // cell4.add(getWidgetFor("")); cell4a.setAlign("center"); cell4a.setVAlign("top"); cell4b.setAlign("left"); cell4b.setVAlign("top"); b02Row.add(cell4a); b02Row.add(cell4b); CUHtmlTable bTable = new CUHtmlTable(); bTable.setCellSpacing(0); bTable.setCellPading(0); bTable.add(b01Row); bTable.add(b02Row); CUHtmlTableCell cellz = new CUHtmlTableCell(); cellz.setColumnsToSpan(5); cellz.add(bTable); a02Row.add(cellz); aTable.add(a01Row); aTable.add(a02Row); } /** * TODO: DOCUMENT ME! * * @param name TODO: DOCUMENT ME! */ public void setEmptyMessage(String name) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 276 |
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 311 |
query.append(whereAppendixNumber); query.append(" UNION"); query.append(coreSelect.toString()); query.append(" ac.editView EDITORVIEW"); query.append(" FROM Appendix").append(appendixTypeStr).append(" apx, AppendixAccessControl ac, RASCAL_USER ru"); query.append(" WHERE"); query.append(" ru.rid = apx.createdBy"); query.append(" AND apx.oid = ac.fk_appendix_id"); query.append(" AND ru.rid = apx.createdBy"); query.append(" AND (ac.rid = ").append(userRid); query.append(" AND '").append(appendixTypeStr).append("' = ac.appendixType"); query.append(" AND ac.fk_appendix_id = apx.oid)"); query.append(whereAppendixNumber); } else if (CURascalGuardian.hasHmSafetyApprove() || CURascalGuardian.hasHmVetPreApprove()) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1320 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 819 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 913 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 835 |
@Override public Object getMonthWidget(String fieldName, int monthIndex) { Vector list = new Vector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * This method was created in VisualAge. * * @param aValue rows int - the number of required rows * @param inputName cells int - the number of cell within each row * * @return edu.columbia.rascal.presentation.fo.alertService.html.CUHtmlTable */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSearchView.java | 59 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderSearchView.java | 98 |
); txt1.setFontName(getDefaultFontName()); txt1.setIsBold(true); txt1.setFontSize("2"); getForm().add(txt1); CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", " Search "); getForm().add(pb1); CUHtmlText txt2 = new CUHtmlText( "                OR to narrow down your results, include any of the fields below:" ); txt2.setFontName(getDefaultFontName()); txt2.setFontSize("-2"); txt2.addBreaks(2); getForm().add(txt2); getForm().add("<BR> <BR>"); getForm().add(buildSearchFields()); getForm().add(getButtons()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 298 |
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 123 |
log.error("Exception in validateGet", e); (new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.common.CURascalVapServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(getRequest().getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 299 |
edu/columbia/rascal/presentation/user/servlets/CURascalUserAbstractServlet.java | 88 |
edu/columbia/rascal/presentation/user/servlets/RuAbstractServlet.java | 120 |
(new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.common.CURascalVapServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(getRequest().getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixReportProtocolHazMatServlet.java | 143 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixReportPtHazMatServlet.java | 109 |
.buildRowTableWithHazMatReportResultSet(res).clone()) ); } catch (Exception e) { log.error("Exception building vector.", e); } String sortBy = getLineParameter(KEY_PARM_SORT_BY); if (sortBy != null) { CUSortVector rows = new CUSortVector(queue); rows.setColumnNames(getKeywordListForColumns()); sortBy = sortBy.replace('+', ' ').trim(); rows.sortByColumn(sortBy); queue = rows; } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter(KEY_PARM_PRINTABLE); if ((printableString != null) && (printableString != "")) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 1934 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 1977 |
public String getWidgetLinkConfirmFromLinkFrame(String destination, String linkLabel, String message, int leadingSpaces ) { StringBuilder spaceBuffer = new StringBuilder(); // if link should have leading spaces build the string here for (int i = 0; i < leadingSpaces; i++) { spaceBuffer.append(" "); } StringBuilder aBuffer = new StringBuilder(); aBuffer.append("<font face=\"").append(getDefaultFontName()).append("\" size=\"1\">"); if (leadingSpaces > 0) { aBuffer.append(spaceBuffer.toString()); } aBuffer.append("<a href=\"Javascript:if(confirm('"); aBuffer.append(message); aBuffer.append("')){parent.frames[2].location='"); aBuffer.append(destination); aBuffer.append( |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 2101 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 2145 |
String linkFrameDestination, String targetFrameName, String linkLabel, int leadingSpaces ) { StringBuilder spaceBuffer = new StringBuilder(); // if link should have leading spaces build the string here for (int i = 0; i < leadingSpaces; i++) { spaceBuffer.append(" "); } StringBuilder aBuffer = new StringBuilder(); aBuffer.append("<font face=\"").append(getDefaultFontName()).append("\" size=\"1\">"); if (leadingSpaces > 0) { aBuffer.append(spaceBuffer.toString()); } aBuffer.append( "<a href=\"Javascript:onClick=parent.frames[2].location='" ); aBuffer.append(destination); aBuffer.append("';parent.frames[1].location='"); aBuffer.append(linkFrameDestination); aBuffer.append("';\">"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ContactPersonnelView.java | 523 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaAccessControlView.java | 208 |
} /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setControlHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableCell header; String titles[] = { "UNI", "Name", "Edit Or View Only", "Modify", "Delete" }; int len = titles.length; for (int i = 0; i < len; i++) { aTitle = new CUHtmlText(titles[i]); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, i); header.add(aTitle); header.setAlign("center"); } } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param rowCount TODO: DOCUMENT ME! * @param accessControl TODO: DOCUMENT ME! */ public void setControlTableDataRow(CUHtmlTable aTable, int rowCount, |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormBlankLineEntryView.java | 150 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 348 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionEntryView.java | 307 |
edu/columbia/rascal/presentation/tc/views/TCReferenceEntryView.java | 156 |
@Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); String addOrSave = "Add"; if (addOrEdit.equals("Edit")) { addOrSave = "Save"; } CUHtmlPushButton pb1 = new CUHtmlPushButton("RESET"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("SUBMIT", "SUBMIT", addOrSave); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormEmbeddedQuestionEntryView.java | 102 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 102 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionEntryView.java | 83 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormSignatureLineEntryView.java | 100 |
getForm().add("<br>"); // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellPadding(1); aTable.setCellSpacing(3); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); getForm().add(getHiddenWidgetFor("AddOrEdit", addOrEdit)); getForm().add(getHiddenWidgetFor("questionOid", String.valueOf(questionOid))); getForm().add(aTable); getForm().add("<br>"); getForm().add(getActionButtons()); add(getForm()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCTSACorrespondenceView.java | 296 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueCancerCenterCorrespondenceView.java | 296 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairCorrespondenceView.java | 358 |
buff.append("<TD ALIGN=\"left\"><FONT FACE=\"Verdana\" SIZE=\"1\"><A "); buff.append("HREF="); buff.append(getObjectLinkStringFor(eventName, (String) row.elementAt(5), element2, element0) ); buff.append("</FONT></A></TD>"); getAForm().add(buff.toString()); // 3 a link to the pop up window for view all correspondence CUHtmlImage i = new CUHtmlImage("/images/popup.gif"); i.setBorderWidth(0); i.setAlt("Review All"); i.setLink("''"); i.setOnClick("return openNew('" + IrbTreeMainServlet.class.getName() + "?parentOid=" + row.elementAt(5) + "&&parentName=" + element2 + "', 'ReviewAllCorrespondence', 'toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=yes,resizable=yes,copyhistory=no,width=700,height=500')" ); getAForm().add("<TD ALIGN=\"center\"><FONT FACE=\"Verdana\" SIZE=\"1\">"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 465 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 965 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 337 |
Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } String number = aString.substring(4, 12); return getLinkForProtocolOverview(aString, number); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getShowTitle() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentInternalView.java | 398 |
edu/columbia/rascal/presentation/irb/pages/IrbUnanticipatedAttachmentView.java | 399 |
aTitle = new CUHtmlText("Delete"); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("1"); aTitle.setIsBold(true); header = aTable.getCell(0, titleLen); header.add(aTitle); header.setAlign("center"); } } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param anOid TODO: DOCUMENT ME! * @param docId TODO: DOCUMENT ME! * @param fileName TODO: DOCUMENT ME! * @param dateCreated TODO: DOCUMENT ME! */ public void setAttachmentTableDataRow(CUHtmlTable aTable, String anOid, String docId, String fileName, String dateCreated ) { CUHtmlTableRow aRow = new CUHtmlTableRow(); String blank = "<img src=\"/images/blank.gif\" border=\"0\">"; // identifier CUHtmlTableCell cell0 = new CUHtmlTableCell(); cell0.add(getLinkWidgetFor((docId.equals("") || docId.equals(" ")) ? fileName : docId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/HzAttestationSearchServlet.java | 52 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolRascalSearchServlet.java | 46 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolSearchServlet.java | 52 |
return new HzAttestationSearchView(aMode); } /** * Prepare all text data for saving to the database. * * <p>sybase requires an apostrophe to be accompanied by another one. use this method whenever * saving text tot he database.</p> * * @param aString String * * <p>Mulligan - this should be moved to a common package</p> * * @return prepare all text data for saving to the database. */ public String prepareText(String aString) { java.text.StringCharacterIterator sci = new java.text.StringCharacterIterator(aString); String newString = ""; int i = 0; for (i = 0; i < sci.getEndIndex(); i++) { newString = newString + sci.current(); if (sci.current() == '\'') newString = newString + '\''; sci.next(); } return newString; } /** * Handle the GET and HEAD methods by building a simple web page. HEAD is just like GET, except * that the server returns only the headers (including content length) not the body we write. * * <p>Note - [HP 01/14/00] This is a new search method that uses the PtSearchParametersParser * and PtSearchQueryFormat. This search method supports the following search features: (1) * simple search, (2) required search, (3) implied or search, and (4) phrase search.</p> */ @Override public void submit() { IrbSearchParameters srchParams = null; CURascalDisplayPageJdbcController pageController = null; IrbDocumentSearchJdbcAccessor jdbcAccessor = null; CURascalDisplayPageInfo pageInfo = null; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbReportApprovedCountServlet.java | 32 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportSubmissionCountServlet.java | 32 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportSubmissionTimeServlet.java | 32 |
public IrbReportApprovedCountServlet() { super(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ @Override public CURascalHtmlView getPage() { String beginDate = (String) getSession().getAttribute("beginDate"); String endDate = (String) getSession().getAttribute("endDate"); Vector result = new Vector(); String dateRange = " '" + CalendarTransformer.formatOraDate(beginDate) + "' and '" + CalendarTransformer.formatOraDate(endDate) + "' "; Vector<Long> committeIds = ServiceLocator.getIrbCommitteeService().getCommitteeIds(); for (int i = 0; i < committeIds.size(); i++) result.addElement(IrbReportQuery.getIrbReportApprovedCountsResults( |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 473 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1631 |
} /** * Sets the subtitle of this page. If aSubTitle is a String, use the default subtitle settings. * if aSubTitle is CUHtmlText, override the default title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * TODO: DOCUMENT ME! * * @param req TODO: DOCUMENT ME! * @param parName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected String getRequestParameter(HttpServletRequest req, String parName) { // FIXME XSS // String result = req.getParameter(parName); String result = HtmlUtils.htmlEscape(req.getParameter(parName)); return (result.equals("")) ? null : result; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ private EVector getDefaultMainHeader() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportLoggedInServlet.java | 61 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportWithdrawnServlet.java | 59 |
"DeadlineDate", "ProjectOfficer", "", "PI" } ); rows.sortByColumn(sortBy.replace('+', ' ')); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); String downloadableString = getLineParameter("downloadable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } view = new PtReportLoggedInView(rows, printable, sortBy, downloadable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingAdminView.java | 317 |
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramAdminView.java | 288 |
edu/columbia/rascal/presentation/user/views/RuRadiationSafetyBadgeAdminView.java | 313 |
CUHtmlTableCell cell0 = aTable.getCell(rowCount, 0); var = dataRow.getRascalUser().getUserId(); if (var != null) cell0.add(var); else cell0.add("<br>"); cell0.setAlign("center"); // User Name CUHtmlTableCell cell1 = aTable.getCell(rowCount, 1); var = dataRow.getRascalUser().getUserFirstLastName(); if (var != null) cell1.add(var); else cell1.add("<br>"); cell1.setAlign("center"); // Species CUHtmlTableCell cell2 = aTable.getCell(rowCount, 2); var = dataRow.getSpecies(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramEntryView.java | 149 |
edu/columbia/rascal/presentation/user/views/RuSimpleTrainingEnrollmentEntryView.java | 131 |
} /** The addJavaScriptElement method comment. */ @Override public void addJavaScriptElements() { // addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("submitForm.js"))); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 97 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 127 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 293 |
if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(" "); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add(getSortHeaderForColumnNames(getKeywordListForColumns(columns), "A", getSortBy() ) ); aCell1.setWidth("70%"); aCell1.setAlign("center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 120 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 115 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 108 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 112 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 244 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 150 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 316 |
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptInactiveView.java | 117 |
edu/columbia/rascal/presentation/tc/views/TCReportAdminByDeptView.java | 123 |
edu/columbia/rascal/presentation/tc/views/TCReportTestRequirementExceptionView.java | 116 |
aCell4.add(getReportHelpFor("irb205.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 1150 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 1443 |
); String aValue = null; if (aLocus == null) { aValue = " Building: "; } else { aValue = " Building: " + aLocus.getBuilding(); } return utilGetDefaultHtmlText(aValue); } /** * TODO: DOCUMENT ME! * * @param aLocus TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ private CUHtmlText fieldGet_1A_AdminBuilding(AppendixLocation aLocus) throws Exception { String aValue = null; if (aLocus == null) { aValue = " Building: "; } else { aValue = " Building: " + aLocus.getBuilding(); } return utilGetDefaultHtmlText(aValue); } /** * This method was created in VisualAge. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlItem * * @throws Exception TODO: DOCUMENT ME! */ private CUHtmlItem fieldGet_1A_AdminLocations() throws Exception { return getLocationReportRows(LOCATION_TYPE_PROCEDURE); } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ private CUHtmlText fieldGet_1B_AdminFloor() throws Exception { AppendixLocation aLocus = getLocationEntry(LOCATION_TYPE_PROCEDURE, ((AppendixF) getAppendixObject()).getId(), "AppendixF" |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 1320 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 1613 |
); String aValue = null; if (aLocus == null) { aValue = " Building: "; } else { aValue = " Building: " + aLocus.getBuilding(); } return utilGetDefaultHtmlText(aValue); } /** * TODO: DOCUMENT ME! * * @param aLocus TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ private CUHtmlText fieldGet_2A_HousingBuilding(AppendixLocation aLocus) throws Exception { String aValue = null; if (aLocus == null) { aValue = " Building: "; } else { aValue = " Building: " + aLocus.getBuilding(); } return utilGetDefaultHtmlText(aValue); } /** * This method was created in VisualAge. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlItem * * @throws Exception TODO: DOCUMENT ME! */ private CUHtmlItem fieldGet_2A_HousingLocation() throws Exception { return getLocationReportRows(LOCATION_TYPE_POST_PROCEDURE); } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ private CUHtmlText fieldGet_2B_HousingFloor() throws Exception { AppendixLocation aLocus = getLocationEntry(LOCATION_TYPE_POST_PROCEDURE, ((AppendixF) getAppendixObject()).getId(), "AppendixF" |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixBServlet.java | 53 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCServlet.java | 62 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixDServlet.java | 52 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixEServlet.java | 50 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixFServlet.java | 56 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixGServlet.java | 56 |
return ServiceLocator.getAppendixBService().findById(Long.parseLong(getAppendixId()) ); } catch (Exception e) { log.error("Exception retrieving appendix.", e); } return null; } /** @see edu.columbia.rascal.presentation.appendix.servlets.AppendixAbstractServlet#getAppendixType() */ @Override public String getAppendixType() { return APPENDIX_LETTER; } /** @see edu.columbia.rascal.presentation.appendix.servlets.AppendixAbstractServlet#getPage() */ @Override public CURascalHtmlView getPage() { setOriginUrl(getLineParameter(KEY_PARM_HAZMAT_ORIGIN)); setAppendixType(APPENDIX_LETTER); String appendixId = getLineParameter(KEY_PARM_APPENDIX_OID); if (appendixId == null) { appendixId = getAppendixId(); } AbstractAppendix anAppendix; try { if ((appendixId == null) || appendixId.equals("") || appendixId.equals("NEW")) { setAppendixId("NEW"); return new AppendixBView("NEW", getUser()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentDisplaySuggestedTextView.java | 158 |
edu/columbia/rascal/presentation/consent/pages/ConsentParagraphView.java | 129 |
add(getAForm()); } /** * TODO: DOCUMENT ME! * * @param aForm TODO: DOCUMENT ME! */ public void addParagraphRows(CUHtmlForm aForm) { CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setAlign("center"); int numbCells = 4; Vector columns = new Vector(numbCells); for (int c = 0; c < numbCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); // a link to the pop up window for data entry CUHtmlImage i = new CUHtmlImage("/images/popup.gif"); i.setAlt("Add " + ConsentParagraphType.getTypetable().get(getParagraphType())); i.setLink("''"); i.setOnClick("return popUpWindow('" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormEmbeddedQuestionEntryView.java | 299 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormSignatureLineEntryView.java | 185 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormSignatureLineEntryView.java | 125 |
edu/columbia/rascal/presentation/tc/views/TCReferenceEntryView.java | 156 |
@Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); String addOrSave = "Add"; if (addOrEdit.equals("Edit")) { addOrSave = "Save"; } CUHtmlPushButton pb1 = new CUHtmlPushButton("RESET"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("SUBMIT", "SUBMIT", addOrSave); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2372 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2529 |
s.append(" AND s.oid = (SELECT max(oid) from IrbStatus "); s.append(" where parentObjectOid = b.oid AND parentObjectName = '"); s.append(IrbNameConstants.PROTOCOL_HEADER); s.append("') ORDER BY b.modificationNumber, b.protocolYear, c.notificationDate "); } else if (name.equals(IrbNameConstants.ADVERSE_EVENT) || name.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { s.append("SELECT DISTINCT"); s.append(" a.oid AS oid1,"); // 1 s.append(" a.protocolNumber,"); // 2 s.append(" u.name_last,"); // 3 s.append(" g.description,"); // 4 s.append(" b.oid AS oid2,"); // 5 s.append(" c.notificationDate,"); // 6 s.append(" c.oid AS oid3,"); // 7 s.append(" e.oid AS oid4,"); // 8 s.append(" f.name_last,"); // 9 s.append(" s.statusName "); // 10 |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 4361 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 5873 |
) { StringBuilder aSql = new StringBuilder(1000); String objectName = eventType; // "New", "Mod", "Renewal" all use the PROTOCOL_HEADER object if (eventType.equals("New") || eventType.equals("Mod") || eventType.equals("Renewal")) { objectName = IrbNameConstants.PROTOCOL_HEADER; } String committeeObjectName = IrbNameConstants.PROTOCOL; // get the main event table String eventTable = "IrbProtocolHeader"; if (eventType.equals(IrbNameConstants.ADVERSE_EVENT)) { eventTable = "IrbAdverseEvent"; } else if (eventType.equals(IrbNameConstants.CLOSURE)) { eventTable = "IrbClosure"; } else if (eventType.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { eventTable = "IrbUnanticipatedProblem"; } aSql.append("select round(avg(floor(f.approvedOn - c.statusDate ))) "); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationResultDisplayView.java | 137 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolRascalResultsDisplayView.java | 152 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolResultsDisplayView.java | 203 |
) { if (resultPage.isEmpty()) { CUHtmlText title = new CUHtmlText("No Protocols matched your search criteria."); title.setHeaderLevel("2"); title.setAlignment("CENTER"); getForm().add(title); } else { String curRange = (curBeginPos + 1) + " - " + (curBeginPos + curPageSize); CUHtmlText txt1 = new CUHtmlText("Search Results: " + curRange + " of exactly " + totalMatch + " matches" ); txt1.setIsBold(true); txt1.setFontSize("+1"); txt1.setFontName(getDefaultFontName()); txt1.setAlignment("CENTER"); getForm().add(txt1); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbConfirmView.java | 89 |
edu/columbia/rascal/presentation/propTrak/pages/PtConfirmView.java | 193 |
public CUHtmlTable getActionButtons(String refreshLink, String refreshMain) { CUHtmlTable aTable = getTable(1, 2); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "Proceed", "Proceed", refreshMain + ";" + refreshLink ); CUHtmlTableCell aCell1 = aTable.getCell(0, 0); aCell1.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("BUTTON", "Cancel", "Cancel", "JavaScript:history.back()" ); CUHtmlTableCell aCell2 = aTable.getCell(0, 1); aCell2.add(pb2); return aTable; } /** * @2000 Copyright Columbia University - RASCAL. All Rights Reserved. * * @param refreshLink TODO: DOCUMENT ME! */ public void getDefaultMainHeader(String refreshLink) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHazardousMaterialView.java | 287 |
edu/columbia/rascal/presentation/irb/pages/IrbLinkFrameView.java | 677 |
try { // Recombinant DNA hazardKind = KEY_HAZZARD_KIND1; isRequired = iph.getHazMatRecombinantDna().equals("Y"); aTracker = null; appendixNumber = null; if (isRequired) { aTracker = ServiceLocator.getAppendixTrackingService().getByOwnerAndAppendixType( iph.getId(), IRB_OWNER, APPENDIX_LETTER_A ); if ((aTracker != null) && (aTracker.getAppendixOid() > 0)) { AbstractAppendix anAppendix = ServiceLocator.getAppendixTrackingService() .getAppendix(aTracker.getAppendixType(), aTracker.getAppendixOid()); appendixNumber = ((anAppendix == null) ? null : anAppendix.getAppendixNumberDisplay()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 105 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 126 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 96 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 98 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 106 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 124 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 111 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 145 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 102 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 110 |
edu/columbia/rascal/presentation/tc/views/TCReportCourseAdminView.java | 126 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 125 |
aCell4.add(getReportHelpFor("rpt1.html")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Printable Form", getUrlToPrintReport("A") ); CUHtmlTableCell aCell2 = new CUHtmlTableCell(); aCell2.add(pb); pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Downloadable Form", getUrlToViewReportForDownload("A") ); CUHtmlTableCell aCell3 = new CUHtmlTableCell(); aCell3.add(pb); aRow.add(aCell1); aRow.add(aCell4); aRow.add(aCell2); aRow.add(aCell3); aTable.add(aRow); getForm().add(aTable); getForm().add("<br>"); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 154 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 149 |
add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setWidth("95%"); t.setAlign("center"); Vector columns = new Vector(); columns.addElement(getWidgetFor("Protocol Number")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovedCountView.java | 346 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeStatsView.java | 155 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionCountView.java | 343 |
edu/columbia/rascal/presentation/irb/pages/IrbReportSubmissionTimeView.java | 278 |
public void getReportWidget(Vector results, CUHtmlTable aTable) { CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell = new CUHtmlTableCell(); String aTitle; CUHtmlTableCell header; String avgValue = null; Vector columns = getColumns(); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { aTitle = ((String) columns.elementAt(i)); aCell = new CUHtmlTableCell(); aCell.add(getTextWidgetFor(aTitle, 2, false)); aCell.setAlign("right"); aRow.add(aCell); } aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbQueueReviewerForChairServlet.java | 215 |
edu/columbia/rascal/presentation/irb/servlets/IrbQueueReviewerServlet.java | 286 |
ServiceLocator.getRascalUserService().findById(header.getPI().getRid()) .getUserFirstLastName() ); queueRow.put("HeaderOid", event.elementAt(0)); queueRow.put("CurrentStatus", event.elementAt(1)); queueRow.put("IsPending", ServiceLocator.getIrbStatusService().getLastMeetingOutcome(header).equals(PENDING) ? "true" : "false" ); List<IrbExpeditableAnswer> all = header.getIrbExpeditableAnswers(); queueRow.put("IsExpedited", ((all == null) || all.isEmpty()) ? "false" : "true"); queueRow.put("ReviewedDate", event.elementAt(2)); Date meetingdate = ServiceLocator.getIrbProtocolHeaderService().getMeetingDate(header); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 130 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 85 |
public void addPtProposalHeader() { } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! * @param addRows TODO: DOCUMENT ME! * @param height TODO: DOCUMENT ME! */ public void addSpacerRows(CUHtmlTable aTable, int numCells, int addRows, String height) { Vector<Object> columns = new Vector<Object>(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); for (int i = 0; i < addRows; i++) { aTable.addRowFor(columns); aTable.getCell(row, 0).setHeight(height); row++; } } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String filterLink() { return PtLocationFilterServlet.class.getName(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 105 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 73 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 77 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 115 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 88 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportWithdrawnView.java | 87 |
getForm().add(addDateRange()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( getKeywordListForColumns(columns), |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 111 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 246 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportProjectOfficerActivityView.java | 95 |
getForm().add(addDate()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( getKeywordListForColumns(columns), |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtComplianceAnimalSubjectServlet.java | 115 |
edu/columbia/rascal/presentation/propTrak/servlets/PtComplianceHumanSubjectServlet.java | 106 |
c.setOriginAnimalCare(false); ServiceLocator.getPtComplianceService().save(c); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void submit() { PrintWriter out = null; String uni = getRequestParameter("responsibleInvestigatorUni"); RascalUser aUni = null; try { if (uni != null) aUni = ServiceLocator.getRascalUserService().findByUserId(uni); } catch (Exception e) { } try { out = getResponse().getWriter(); if (aUni == null) { PtMessageView aPage = new PtMessageView( "The responsible Investigator must be a valid UNI" ); aPage.draw(getResponse()); } else { saveComplianceValues(aUni); out.println("<html> <body"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportApprovalHistoryServlet.java | 208 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportCancerCenterServlet.java | 103 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportDeptServlet.java | 284 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportSignoffServlet.java | 321 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportStatusServlet.java | 263 |
rows.sortByColumn(sortBy); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } String downloadableString = getLineParameter("downloadable"); if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } if ((rows == null) || (rows.isEmpty())) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCGeneratePDFCertificateServlet.java | 40 |
edu/columbia/rascal/presentation/tc/servlets/TCGeneratePDFTranscriptServlet.java | 42 |
public TCGeneratePDFCertificateServlet() { super(); setIsEdit(true); } //~ Methods ------------------------------------------------------------------------------------ /** * @see edu.columbia.rascal.presentation.tc.servlets.TCAbstractServlet#doGet(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); try { if (validateGet()) { Object objPage = getPDFPage(); if (objPage != null) { if (objPage instanceof TCHtmlView) { TCHtmlView page = (TCHtmlView) objPage; page.setLineParameters(getLineParameters()); page.draw(getResponse()); } if (objPage instanceof TCGeneratePDFCertificateView) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 158 |
edu/columbia/rascal/presentation/tc/views/TCReportEHSExceptionByTestView.java | 158 |
"parent.frames[2].location='" + TCReportDeptSelectionServlet.class.getName() + "'" ); bTable.add(pb1); getForm().add(bTable); } setBgColor("white"); add(getForm()); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("-1"); date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void addHeader() { getForm().add("<div align=\"center\">"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/validators/iacuc/IacucAttachHazmatValidator.java | 26 |
edu/columbia/rascal/presentation/validators/iacuc/IacucProtocolAttachHazmatValidator.java | 18 |
@Override public boolean supports(Class<?> clazz) { return IacucProtocolHeader.class.equals(clazz); } @Override public void validate(Object target, Errors errors) { IacucProtocolHeader protocol = (IacucProtocolHeader)target; if (StringUtils.isBlank(protocol.getIsExposedHazmat())) { errors.rejectValue("isExposedHazmat", "", "'Will animals be exposed to hazardous agents or radiation? ' is required."); } else if (StringUtils.equals(protocol.getIsExposedHazmat(), "Y")) { if (StringUtils.isBlank(protocol.getExposedHazmat())) errors.rejectValue("exposedHazmat", "", "'If yes, describe and list: ' is required."); |
File | Line |
---|---|
edu/columbia/rascal/presentation/validators/irb/IrbFundingAwardTypeAttachmentValidator.java | 28 |
edu/columbia/rascal/presentation/validators/irb/IrbFundingFoundationPrivateAttachmentValidator.java | 36 |
@Override public boolean supports(Class<?> clazz) { return IrbProtocolHeader.class.equals(clazz); } /* (non-Javadoc) * @see org.springframework.validation.Validator#validate(java.lang.Object, org.springframework.validation.Errors) */ @Override public void validate(Object target, Errors errors) { if(target == null) return; IrbProtocolHeader header = (IrbProtocolHeader) target; boolean hasDocument = false; for (IrbAttachment attachment:header.getIrbAttachments() ) { // Funding/Grant Application/Subcontract if ( attachment.getAttachmentTypeCode().equals(9L) ) { hasDocument = true; } } // Funding, Attachments // If, Funding record with "Award Type" = "Federal/State/Local Government" exists // Then, Attachment of Doc Type: Funding/Grant Application/Subcontract String sectionText = "<br/>You indicated on <a href='/irb/protocol/" + header.getIrbProtocol().getProtocolNumber()+ "/" + header.getId() + "/funding/' style='text-decoration: none' ><b>Funding</b></a> an \"Award Type\" of \"Federal/State/Local Government\". Therefore, a Document Type of <i>Funding/Grant Application/Subcontract</i> is required."; |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 337 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 345 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFDataSheetView.java | 462 |
if (eventName.startsWith("Protocol") || eventName.startsWith("Modification") || eventName.startsWith("Renewal") ) { eventName = "ProtocolHeader"; protHeader = ServiceLocator.getIrbProtocolHeaderService().findById(eventOid); protocolNumber = protHeader.getProtocolNumber(); title = protHeader.getTitle(); } else { // adverseEvent, closure, expendedAccess, unanticipate IrbTraceableBusinessObject object = ServiceLocator.getIrbProtocolService() .getParentObject(eventName, eventOid + "", getRascalUser()); if (object != null) { protocolNumber = object.getProtocolNumber(); protHeader = ServiceLocator.getIrbProtocolService() .getLastApprovedProtocolHeader(object.getIrbProtocol()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 127 |
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 124 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 160 |
edu/columbia/rascal/presentation/irb/servlets/IrbAbstractServlet.java | 126 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 167 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractPopupServlet.java | 76 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 133 |
(new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.irb.servlets.IrbAbstractServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, // there is some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBView.java | 939 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCView.java | 1330 |
vacinneVal = ((AppendixB) getAppendixObject()).getVaccineYN(); if (vacinneVal != null) { if (vacinneVal.equals("Y")) // value "Yes" ((CUHtmlRadioButton) (aView.elementAt(0))).setChecked(true); else // value "No" ((CUHtmlRadioButton) (aView.elementAt(1))).setChecked(true); } return aView; } /** * TODO: DOCUMENT ME! * * @param aViewName TODO: DOCUMENT ME! * @return TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ protected Vector fieldGet_Exposure_YN(String aViewName) { String exposureVal = null; Vector aView = utilGetRadioButtonVector( new String[] { "Yes", "No"}, aViewName ); if (getAppendixObject() != null) exposureVal = ((AppendixB) getAppendixObject()).getExposureYN(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 79 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 147 |
public AppendixEView(AbstractAppendix anAppendixObject, RascalUser aUser) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixEServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_E)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 242 |
edu/columbia/rascal/presentation/appendix/pages/AppendixIsotopeView.java | 180 |
cell.add(aTitle); cell.setAlign("center"); cell.setColumnsToSpan(2); aRow.add(cell); aTable.add(aRow); aRow = new CUHtmlTableRow(); aTitle = new CUHtmlText("Exposure per Animal (Gy):<br/><i>(Only indicate distinct levels of exposure)</i>"); aTitle.setFontName(getDefaultFontName()); aTitle.setFontSize("2"); cell = new CUHtmlTableCell(); cell.add(aTitle); cell.setAlign("center"); cell.setRowsToSpan(2); aRow.add(cell); Integer exposure = apxG.getExposure1(); String expValue = ""; if ( exposure != null ) expValue = exposure.toString(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucDrugController.java | 350 |
edu/columbia/rascal/presentation/controller/iacuc/IacucDrugController.java | 447 |
private void populateListValues(IacucProtocolHeader protocol, Model model) { final List<IacucDrugs> analgesics = iacucDrugService.findByIacucProtocolHeaderAndDrugType(protocol, "A"); final List<IacucDrugs> surgeries = iacucDrugService.findByIacucProtocolHeaderAndDrugType(protocol, "C"); final List<IacucDrugs> prePostAnalgesias = iacucDrugService.findByIacucProtocolHeaderAndDrugType(protocol, "D"); final List<IacucDrugs> paralytics = iacucDrugService.findByIacucProtocolHeaderAndDrugType(protocol, "E"); final List<IacucDrugs> anesthetics = iacucDrugService.findByIacucProtocolHeaderAndDrugType(protocol, "F"); iacucDrugService.sort(analgesics); iacucDrugService.sort(surgeries); iacucDrugService.sort(prePostAnalgesias); iacucDrugService.sort(paralytics); iacucDrugService.sort(anesthetics); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaReportDateRangeView.java | 45 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryDateRangeView.java | 40 |
setOnLoad("parent.frames[1].location='" + HipaaLinkFrameReportServlet.class.getName() + "'" ); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); setRascalUser(aUser); if (reportType.equals("resolution")) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHazardousMaterialView.java | 359 |
edu/columbia/rascal/presentation/irb/pages/IrbLinkFrameView.java | 758 |
} // Laser (Class 3b or 4) hazardKind = KEY_HAZZARD_KIND4; isRequired = iph.getHazMatLaser().equals("Y"); aTracker = null; appendixNumber = null; if (isRequired) { aTracker = ServiceLocator.getAppendixTrackingService().getByOwnerAndAppendixType( iph.getId(), IRB_OWNER, APPENDIX_LETTER_D ); if ((aTracker != null) && (aTracker.getAppendixOid() > 0)) { AbstractAppendix anAppendix = ServiceLocator.getAppendixTrackingService() .getAppendix(aTracker.getAppendixType(), aTracker.getAppendixOid()); appendixNumber = ((anAppendix == null) ? null : anAppendix.getAppendixNumberDisplay()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueAdminCorrespondenceDateRangeView.java | 193 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueLoggerDateRangeView.java | 122 |
aTable.getCell(row, 1).add(list1); row++; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "View"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * Insert the method's description here. Creation date: (12/16/2002 5:07:57 PM) * * @return java.lang.String */ public java.lang.String getComeFrom() { return comeFrom; } /** * Insert the method's description here. Creation date: (12/16/2002 5:07:57 PM) * * @param newComeFrom newRole java.lang.String */ public void setComeFrom(java.lang.String newComeFrom) { comeFrom = newComeFrom; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueCancerCenterDateRangeView.java | 175 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueLoggerDateRangeView.java | 121 |
CUHtmlList list = new CUHtmlList(protocolType, "protocolType", "All"); aTable.getCell(row, 1).add(list); row++; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "View"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * Insert the method's description here. Creation date: (12/16/2002 5:07:57 PM) * * @return java.lang.String */ public java.lang.String getCCViewer() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityDateRangeView.java | 165 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryDateRangeView.java | 148 |
if (reportType.equals("Personnel")) { // Uni aWidget = getEditWidgetFor("uni", "", "15", "15"); columns.setElementAt(aWidget, 1); columns.setElementAt(getWidgetFor("UNI Lookup"), 2); columns.setElementAt(getUniLookup(), 3); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Enter UNI (do not enter a name):")); row++; columns.setElementAt(null, 1); // clear the element columns.setElementAt(null, 2); // clear the element columns.setElementAt(null, 3); // clear the element aTable.addRowFor(columns); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/HzAttestationSearchServlet.java | 52 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolAdminChairSearchServlet.java | 48 |
edu/columbia/rascal/presentation/irb/servlets/IrbProtocolRascalSearchServlet.java | 46 |
return new HzAttestationSearchView(aMode); } /** * Prepare all text data for saving to the database. * * <p>sybase requires an apostrophe to be accompanied by another one. use this method whenever * saving text tot he database.</p> * * @param aString String * * <p>Mulligan - this should be moved to a common package</p> * * @return prepare all text data for saving to the database. */ public String prepareText(String aString) { java.text.StringCharacterIterator sci = new java.text.StringCharacterIterator(aString); String newString = ""; int i = 0; for (i = 0; i < sci.getEndIndex(); i++) { newString = newString + sci.current(); if (sci.current() == '\'') newString = newString + '\''; sci.next(); } return newString; } /** * Handle the GET and HEAD methods by building a simple web page. HEAD is just like GET, except * that the server returns only the headers (including content length) not the body we write. * * <p>Note - [HP 01/14/00] This is a new search method that uses the PtSearchParametersParser * and PtSearchQueryFormat. This search method supports the following search features: (1) * simple search, (2) required search, (3) implied or search, and (4) phrase search.</p> */ @Override public void submit() { IrbSearchParameters srchParams = null; CURascalDisplayPageJdbcController pageController = null; IrbDocumentSearchJdbcAccessor jdbcAccessor = null; CURascalDisplayPageInfo pageInfo = null; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentExternalServlet.java | 57 |
edu/columbia/rascal/presentation/irb/servlets/IrbUnanticipatedAttachmentInternalServlet.java | 58 |
((String) li.next()) ) ); attachment.setArchive("N"); } } catch (Exception e) { log.error(e); } } /** @see edu.columbia.rascal.presentation.irb.servlets.IrbAbstractServlet#getPage() */ @Override public CURascalHtmlView getPage() { IrbUnanticipatedProblem ae = null; // String aeOid = getLineParameter("anOid"); String aeOid = (String) getSession().getAttribute("aeOid"); if ((aeOid != null) && !aeOid.equals("")) { ae = ServiceLocator.getIrbUnanticipatedProblemService().findById(Long.parseLong(aeOid)); if (ae == null) { return new IrbMessageView( "The selected Unanticipated Problem is invalid." ); } } if (ae.getCreatedBy().equals(getUser().getId())) |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtReportLoggedInServlet.java | 61 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportLoggedOutServlet.java | 139 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportWithdrawnServlet.java | 60 |
"DeadlineDate", "ProjectOfficer", "", "PI" } ); rows.sortByColumn(sortBy.replace('+', ' ')); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); String downloadableString = getLineParameter("downloadable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } view = new PtReportLoggedInView(rows, printable, sortBy, downloadable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse30DaysWarningTask.java | 420 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseNotifyTask.java | 374 |
log.error("Error: last run date could not be pulled from database"); return false; } else { // lastRun.add(Calendar.HOUR, 12); lastRun = DateUtils.addHours(lastRun, 12); } return (lastRun != null) && (lastRun.before(now) || lastRun.equals(now)); } /** The action to be performed by this timer task. */ @Override public void run() { Calendar now = Calendar.getInstance(); log.info("Testing Center Emailer: checking last run date on " + CalendarTransformer.toString(now) + "..." ); // Only run between 12:00-6:00AM after a day has passed since last run - PRODUCTION ONLY!!!! if (!dbLocation.equals("was_rascal") || ((now.get(Calendar.HOUR_OF_DAY) >= 0) && (now.get(Calendar.HOUR_OF_DAY) < 20) && |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 167 |
edu/columbia/rascal/presentation/tc/views/TCReportTestRequirementExceptionView.java | 198 |
setBgColor("white"); add(getForm()); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("-1"); date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void addHeader() { getForm().add("<div align=\"center\">"); getForm().add("<p><font face=\"Verdana\" size=\"4\"> RASCAL TC Reporting <br>"); getForm().add("Columbia University</font><br> </p> "); getForm().add("<p><font face=\"Verdana\"><b>Testing Center Department Report for </b></font>" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingAdminView.java | 439 |
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramAdminView.java | 410 |
aTitle = new CUHtmlText("Training Date"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 4); header.setIsHeader(true); header.add(aTitle); // Modify? aTitle = new CUHtmlText("Modify"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 5); header.setIsHeader(true); header.add(aTitle); // Delete? aTitle = new CUHtmlText("Delete"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 6); header.setIsHeader(true); header.add(aTitle); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuRadiationSafetyBadgeAdminView.java | 396 |
edu/columbia/rascal/presentation/user/views/RuSimpleTrainingEnrollmentAdminView.java | 511 |
aTitle = new CUHtmlText("Badge Number"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 2); header.setIsHeader(true); header.add(aTitle); // Modify? aTitle = new CUHtmlText("Modify"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 3); header.setIsHeader(true); header.add(aTitle); // Delete Certification? aTitle = new CUHtmlText("Delete"); aTitle.setFontName(getDefaultFontName()); header = aTable.getCell(0, 4); header.setIsHeader(true); header.add(aTitle); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 77 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 106 |
if (!name.equals(IrbNameConstants.NON_RASCAL)) { while (res.next()) { row.put("ProtocolOid", (((Integer.valueOf((new Float(res.getFloat(1))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(1))).intValue()) .toString()) ); row.put("ProtocolNumber", (res.getString(2) == null) ? "" : res.getString(2) ); // row.put("EventType", res.getString(3) == null ? "" : res.getString(3)); row.put("EventType", name); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFUtilityView.java | 680 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesDataSheetPDFView.java | 688 |
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 543 |
if (saving) getPDFObject().getPage(i).drawText("Saved On: " + edu.columbia.rascal.common.CalendarTransformer.toDateTimeString( getDocTimeStamp() ) + " " + "page " + (i + 1) + " of " + totalPageNum, getLeftPageMargin(), 10 ); else getPDFObject().getPage(i).drawText("Printed On: " + edu.columbia.rascal.common.CalendarTransformer.toDateTimeString( getDocTimeStamp() ) + " " + "page " + (i + 1) + " of " + totalPageNum, getLeftPageMargin(), 10 ); } } } /** * TODO: DOCUMENT ME! * * @param label TODO: DOCUMENT ME! * @param protocolAttached TODO: DOCUMENT ME! * @param eventName TODO: DOCUMENT ME! */ public void addProtocolAttached(String label, Vector protocolAttached, String eventName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 570 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 411 |
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 326 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 320 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setPrintable(boolean aValue) { printable = aValue; } /** * setSortBy. * * @param aValue TODO: DOCUMENT ME! */ public void setSortBy(String aValue) { sortBy = aValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinuteHistoryDateRangeServlet.java | 71 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaReportDateRangeServlet.java | 81 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportApprovalStatusDateRangeServlet.java | 66 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportEventStatusDateRangeServlet.java | 66 |
edu/columbia/rascal/presentation/irb/servlets/IrbReportHistoryDateRangeServlet.java | 81 |
} else if (range.startsWith("Quarter")) { startDay.add(Calendar.MONTH, -3); } else if (range.startsWith("Month")) { startDay.add(Calendar.MONTH, -1); } else if (range.startsWith("Week")) { startDay.add(Calendar.DATE, -7); } else if (range.startsWith("Day")) { startDay.add(Calendar.DATE, -1); } startDay.setLenient(true); String beginDate = CalendarTransformer.toString(startDay); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 444 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 445 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDReportView.java | 345 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEReportView.java | 622 |
@Override protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTableRow aRow; CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 2); aTable.setCellPadding(4); addSpacerRows(aTable, 1, 2, "8"); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(APPENDIX_NUMBER), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(utilGetDefaultHtmlText( getAppendixNumberPrefix(getAppendixObject().getAppendixType()) + getAppendixObject().getAppendixNumber() ), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 1063 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCReportView.java | 984 |
for (AppendixBPPE ppe : appendixPPEList) { aRow = new CUHtmlTableRow(); CUHtmlText txt = new CUHtmlText("<li>" + ppe.getRascalAppendixPPE().getEquipment() + "</li>"); txt.setFontName(getDefaultFontName()); aCell1 = utilGetHtmlTableCell(new CUHtmlText("<li>" + ppe.getRascalAppendixPPE().getEquipment() + "</li>"), "300", "left"); aRow.add(aCell1); aTable.add(aRow); } } /** * TODO: DOCUMENT ME! * * @param invitroAppendixTrackerOid TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected HzAppendixHeader getInvitroHeaderFor(String invitroAppendixTrackerOid) { HzAppendixHeader hah = null; try { AppendixTracking appendixTracker = ServiceLocator.getAppendixTrackingService().findById( Long.parseLong(invitroAppendixTrackerOid) |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixBSafetyOfficerApprovalView.java | 71 |
edu/columbia/rascal/presentation/appendix/pages/AppendixCSafetyOfficerApprovalView.java | 70 |
edu/columbia/rascal/presentation/appendix/pages/AppendixESafetyOfficerApprovalView.java | 73 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFSafetyOfficerApprovalView.java | 72 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGSafetyOfficerApprovalView.java | 72 |
edu/columbia/rascal/presentation/appendix/pages/AppendixISafetyOfficerApprovalView.java | 49 |
setSubTitle("Appendix B - Safety Officer Approval"); setOnLoad(getOnLoadForOwnerType(anOwnerSurrogate.getOwnerType())); if (anOwnerSurrogate.getOwnerType().equals(IRB_OWNER)) { addJavaScriptElement(new CUHtmlText(getJSCodeFrom("irbSafetyOfficerReturnConfirm.js"))); } addJavaScriptElement(CURascalHmJavascript.getJavascriptCheckRecipient()); setAppendixObject(anAppendixObject); setOwnerSurrogate(anOwnerSurrogate); setTracker(aTracker); setRascalUser(aUser); add(anAppendixObject); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @throws Exception TODO: DOCUMENT ME! */ @Override protected void addGeneralFields() throws Exception { CUHtmlTableCell aCell1; CUHtmlTableCell aCell2; CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 4); CUHtmlTableRow aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(fieldGet_1_ReviewAndApproveText(), "40%", getTitleAlign()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixIrbAbstractView.java | 77 |
edu/columbia/rascal/presentation/appendix/pages/AppendixLabAbstractView.java | 70 |
if (iph != null) { if (getDisplayStatusHistory()) { aForm.add("<br>"); aForm.add(buildHazardListView()); aForm.add("<br>"); aForm.add(buildStatusListView()); } } add(aForm); } /** * This method was created in VisualAge. * * @return CUHtmlTable */ public CUHtmlTable buildStatusListView() { CUHtmlTable aTable = getTable(0, 3); aTable.setBorderWidth(1); aTable.setWidth("95%"); aTable.setAlign("center"); setStatusHead(aTable); Vector hist = getStatusHistoryVector(); for (int i = 0; i < hist.size(); i++) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixEServlet.java | 166 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixFServlet.java | 143 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixGServlet.java | 140 |
AppendixAccessControl ac = (AppendixAccessControl) accessControlEntities.elementAt(i ); if (ac.getRid().intValue() == anAppendix.getCreatedBy().intValue()) { hasAccessForCreator = true; break; } } // make sure there is an 'edit' access control for creator if (!hasAccessForCreator) { AppendixAccessControl newAc = new AppendixAccessControl( anAppendix.getId(), anAppendix.getAppendixType() ); ServiceLocator.getAppendixAccessControlService().save(newAc); newAc.setRid(anAppendix.getCreatedBy()); newAc.setEditView(ACCESS_EDIT); ServiceLocator.getAppendixAccessControlService().save(newAc); // anAppendix.getAllAccessControlEntries().addElement(newAc.getPersistentObject()); } } catch (Exception e) { log.error("Exception saving appendix.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 274 |
edu/columbia/rascal/presentation/controller/coi/CoiFilingStatusReportsController.java | 504 |
CoiDisclosure disclosure = expiredDisclosures.get(user.getId()); dataMap.put("disclosuredepartment", disclosure.getDeptCode() + "-" + disclosure.getDeptName()); dataMap.put("submitteddate", disclosure.getSubmissionDate().toDate().getTime()); dataMap.put("status", disclosure.getStatus()); dataMap.put("hasanomalies", disclosure.getHasAnomaly()); } data.add(dataMap); processedUsers.put(user.getId(), true); } } sortDisclosureListFilingStatus(data); return data; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * @throws BindException */ @RequestMapping(value = "/emailPreview/{userIdStr}", method = RequestMethod.GET) |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucGeneralInformationController.java | 179 |
edu/columbia/rascal/presentation/controller/iacuc/IacucGeneralInformationController.java | 247 |
final ModelAndView mav = new ModelAndView("iacuc.protocolGeneral"); // A non-null id implies the object has already been persisted if (protocol.getId() != null) { mav.addAllObjects(protocolBindingResult.getModel()); } if (dept != null) { mav.addObject("deptName", dept.getName()); } mav.addObject("protocol", protocol); mav.addObject("currentUser", currentUser); mav.addObject("recordHeading", iacucProtocolHeaderService.getRecordHeading(protocol, currentUser)); mav.addObject("speciesNames", rascalSpeciesService.findByIsinUseOrderByDescription("Y")); mav.addObject("errMessage", "Please make the corrections below before proceeding."); return mav; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormLayoutView.java | 95 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormLayoutView.java | 100 |
for (HipaaQuestionLookup aQuestion : allQuestionList) { if (aQuestion.getNotQuestion()) continue; questionList.addElement(aQuestion); } /** for (int i = 0; i < allSize; i++) { aQuestion = (HipaaQuestionLookup)allQuestionList.elementAt(i); if (aQuestion.getNotQuestion()) { continue; } questionList.addElement(aQuestion); } **/ if (questionList.size() > 0) { getForm().add("<br>"); getForm().add(getTableViewTitle(" Rearrange the sections of your HIPAA Form")); getForm().add(buildFormElementRows(questionList)); } getForm().add(aTable); getForm().add("<BR>"); aTable = new CUHtmlTable(); aTable.setBorderWidth(0); aTable.setCellSpacing(0); aTable.setCellPadding(0); // get the signature lines Vector signatureList = getHipaaFormObject().getSignatureLines(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaNotesView.java | 203 |
edu/columbia/rascal/presentation/irb/pages/IrbNotesView.java | 278 |
edu/columbia/rascal/presentation/irb/pages/IrbRemoveExemptView.java | 208 |
@Override public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 2); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "BUTTON", " Quit ", "Javascript:window.close();" ); CUHtmlTableCell aCell1 = aTable.getCell(0, 1); aCell1.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("BUTTON", "SUBMIT", " Save ", "submitForm(this.form)" ); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); } return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaNotesViewOnly.java | 134 |
edu/columbia/rascal/presentation/irb/pages/IrbNotesViewOnly.java | 102 |
add(getForm()); } /* * This method was created in VisualAge. */ /** * @see edu.columbia.rascal.presentation.hipaa.pages.HipaaNotesView#addOldNotes(edu.columbia.rascal.presentation.tools.htmlGen.CUHtmlTable, * int) */ @Override public void addOldNotes(CUHtmlTable aTable, int numCells) { Vector columns = new Vector(numCells); // add protocol Note to table. for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); StringBuilder notes = new StringBuilder(1000); if (getOldNotes().size() == 0) { notes.append("N/A"); } int notesSize = getOldNotes().size(); for (int i = 0; i < notesSize; i++) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceDispositionView.java | 688 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceDispositionView.java | 730 |
i.setOnClick("return openNew('" + IrbCorrespondenceRespondServlet.class.getName() + "?correspondenceOid=" + getCorrespondence().getId() + "&&recipientOid=" + theRecipientOid + "&&" + lineParams + "','AddRespondCorrespondence','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width=600,height=450')"); CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(i); cell2.setAlign("center"); aRow.add(cell2); CUHtmlTableCell cell3 = new CUHtmlTableCell(); cell3.add(getRowLabelLeftFor("(will remove from queue)")); aRow.add(cell3); setOnLoad(""); aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("5%"); aTable.getCell(0, 2).setWidth("55%"); aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param rowLabel TODO: DOCUMENT ME! * @param lineParams TODO: DOCUMENT ME! */ public void setRespondLinkForAdmin(CUHtmlTable aTable, String rowLabel, String lineParams) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHazardousMaterialView.java | 312 |
edu/columbia/rascal/presentation/irb/pages/IrbLinkFrameView.java | 706 |
hazardKind = KEY_HAZZARD_KIND2; isRequired = iph.getHazMatInfectiousAgents().equals("Y"); aTracker = null; appendixNumber = null; if (isRequired) { aTracker = ServiceLocator.getAppendixTrackingService().getByOwnerAndAppendixType( iph.getId(), IRB_OWNER, APPENDIX_LETTER_B ); if ((aTracker != null) && (aTracker.getAppendixOid() > 0)) { AbstractAppendix anAppendix = ServiceLocator.getAppendixTrackingService() .getAppendix(aTracker.getAppendixType(), aTracker.getAppendixOid()); appendixNumber = ((anAppendix == null) ? null : anAppendix.getAppendixNumberDisplay()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHazardousMaterialView.java | 336 |
edu/columbia/rascal/presentation/irb/pages/IrbLinkFrameView.java | 734 |
hazardKind = KEY_HAZZARD_KIND3; isRequired = iph.getHazMatHumanBloodOrCell().equals("Y"); aTracker = null; appendixNumber = null; if (isRequired) { aTracker = ServiceLocator.getAppendixTrackingService().getByOwnerAndAppendixType( iph.getId(), IRB_OWNER, APPENDIX_LETTER_C ); if ((aTracker != null) && (aTracker.getAppendixOid() > 0)) { AbstractAppendix anAppendix = ServiceLocator.getAppendixTrackingService() .getAppendix(aTracker.getAppendixType(), aTracker.getAppendixOid()); appendixNumber = ((anAppendix == null) ? null : anAppendix.getAppendixNumberDisplay()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHazardousMaterialView.java | 386 |
edu/columbia/rascal/presentation/irb/pages/IrbLinkFrameView.java | 791 |
hazardKind = KEY_HAZZARD_KIND5; isRequired = iph.getHazMatChemicalOrToxin().equals("Y"); aTracker = null; appendixNumber = null; if (isRequired) { aTracker = ServiceLocator.getAppendixTrackingService().getByOwnerAndAppendixType( iph.getId(), IRB_OWNER, APPENDIX_LETTER_E ); if ((aTracker != null) && (aTracker.getAppendixOid() > 0)) { AbstractAppendix anAppendix = ServiceLocator.getAppendixTrackingService() .getAppendix(aTracker.getAppendixType(), aTracker.getAppendixOid()); appendixNumber = ((anAppendix == null) ? null : anAppendix.getAppendixNumberDisplay()); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbMessageView.java | 66 |
edu/columbia/rascal/presentation/lab/pages/HzMessageView.java | 110 |
public IrbMessageView(String aMessage, String location) { super(); setPageTitle("RASCAL Message"); add("<body bgcolor=\"#FFFFFF\" background=\"/images/blu.jpg\" >"); CUHtmlText title = new CUHtmlText("Information Message"); title.setHeaderLevel("2"); CUHtmlMultiLineText message = new CUHtmlMultiLineText(aMessage); message.addBreaks(2); message.setFontSize("+1"); message.setFontName("Comic Sans MS"); CUHtmlForm aForm = new CUHtmlForm(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Continue", location); pb.addBreaks(2); add(title); add(message); aForm.add(pb); add(aForm); } /** * FoasUnimplementedMessageView constructor comment. * * @param aMessage TODO: DOCUMENT ME! * @param location TODO: DOCUMENT ME! * @param textsize TODO: DOCUMENT ME! */ public IrbMessageView(String aMessage, String location, int textsize) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/tools/IrbEmailINDIDEReminderTask.java | 230 |
edu/columbia/rascal/presentation/irb/tools/IrbEmailProtocolExpirationTask.java | 357 |
ResultSet res = null; CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); String selectQuery = "Select lastRunDate FROM RASCAL_EMAIL_NOTIFICATION where procedureName = '" + PROCEDURE_NAME + "'"; List<Object> dateList = acc.executeNoParmPreparedQuery(selectQuery); if (dateList != null && dateList.size() > 0) lastRun = (Date) dateList.get(0); Date now = new Date(); if (lastRun == null) { log.info("Error: last run date could not be pulled from database"); return false; } else { lastRun = DateUtils.addHours(lastRun, 12); } return lastRun.before(now) || lastRun.equals(now); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtParticipantEntryView.java | 116 |
edu/columbia/rascal/presentation/propTrak/pages/PtPiEntryView.java | 84 |
setPassKerberos(passKerberos); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. */ public void addFields() { // set the number of cells in the table here: // (all "addRow" methods should be set up for this // number of cells per row) int numCells = 4; // Create the overall table for the page: CUHtmlTable aTable = new CUHtmlTable(); aTable.setBorderWidth(0); // Add general fields: addGeneralRows(aTable, numCells); aTable.getCell(0, 0).setWidth("40%"); getForm().add("<BR>"); if (theOid == null) { theAddEdit = "Add"; } else { theAddEdit = "Edit"; getForm().add(getHiddenWidgetFor("hiddenOid", theOid)); } getForm().add(getHiddenWidgetFor("hiddenAddEdit", theAddEdit)); getForm().add(getHiddenWidgetFor("hiddenNum", theSequenceNum)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 105 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterView.java | 86 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportProjectOfficerActivityView.java | 95 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 115 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 88 |
getForm().add(addDateRange()); getForm().add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames( |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterMemberView.java | 311 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 297 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 302 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName(getDefaultFontName()); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * TODO: DOCUMENT ME! * * @param aValue TODO: DOCUMENT ME! */ public void setDownloadable(boolean aValue) { downloadable = aValue; } /** * setPrintable. * * @param aValue TODO: DOCUMENT ME! */ public void setPrintable(boolean aValue) { printable = aValue; } /** * setSortBy. * * @param aValue TODO: DOCUMENT ME! */ public void setSortBy(String aValue) { sortBy = aValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS2590Servlet.java | 690 |
edu/columbia/rascal/presentation/propTrak/servlets/PtPHS398Servlet.java | 762 |
); // ensure that the Rascal localPtProposalHeader Object has been set if (localPtProposalHeader == null) { organizationName.setValue(""); } else { RascalUser po = null; String value = localPtProposalHeader.getProjectOfficer(); if (value != null) po = ServiceLocator.getRascalUserService().findByUserId(value); if (po != null) value = po.getUserFirstLastName(); // ensure that the organizationName being set is not a null value if (value != null) { organizationName.setValue(this.checkFieldLimit(value)); } else { organizationName.setValue(""); } } } /** TODO: DOCUMENT ME! */ private void setFormTXTOrganizationTitle() { FormText organizationTitle = (FormText) localPDFForm.getElement( |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 279 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 162 |
} /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); // date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setWidth("95%"); t.setAlign("center"); addSummaries(rows, t); getForm().add(t); } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. */ public void addHeader() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAView.java | 281 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 213 |
getForm().add(utilGetDefaultHtmlText(APPROVAL_TEXT1 + "<b>" + ((AppendixA) getAppendixObject()).getBiosafetyContainment() + "</b>" + APPROVAL_TEXT2)); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 1); aTable.setCellSpacing(0); aTable.setCellPadding(0); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE_TITLE + " "), "200", "left" ); CUHtmlTableCell aCell2 = utilGetHtmlTableCell(fieldGet_ShortTitle("title", defaultValue), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE_SPECIES_A + " "), "200", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 325 |
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 166 |
setLineParameters(getRequest().getQueryString()); ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext( getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction( new DefaultTransactionDefinition() ); try { if (validatePost()) { submit(); } else { ts.setRollbackOnly(); } if (getRedirectUrl() != null) { super.redirectTo(getRedirectUrl()); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "doPost() " + getClassName())).draw(getResponse()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 857 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 913 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 971 |
switch (getAppendixType().charAt(0)) { case 'A': servletName = AppendixAServlet.class.getName(); break; case 'B': servletName = AppendixBServlet.class.getName(); break; case 'C': servletName = AppendixCServlet.class.getName(); break; case 'D': servletName = AppendixDServlet.class.getName(); break; case 'E': servletName = AppendixEServlet.class.getName(); break; case 'F': servletName = AppendixFServlet.class.getName(); break; case 'G': servletName = AppendixGServlet.class.getName(); break; case 'H': return "/hazMats/radiationSafety/" + appendixOid; |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/RascalStaticSubmitFormServlet.java | 98 |
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderCheckSubmitServlet.java | 159 |
page.draw(getResponse()); } } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 997 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 1060 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterMemberView.java | 280 |
aHeaderTable.setWidth("55%"); aHeaderTable.setCellPading(0); aHeaderTable.setCellSpacing(0); Vector elements = new Vector(); CUHtmlText aTextLabel = new CUHtmlText("Sort List By:"); aTextLabel.setFontSize("1"); aTextLabel.setFontName(getDefaultFontName()); elements.addElement(aTextLabel); Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList" + queueName, sortSelection ); elements.addElement(aListWidget); String onClick; if (queueName.equals("A") || queueName.equals("C")) onClick = "Javascript:getSortByValue1('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; else onClick = "Javascript:getSortByValue3('" + getServletName() + "','columnNamesList" + |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6017 |
edu/columbia/rascal/presentation/irb/jdbc/IrbReportQuery.java | 6633 |
public static String getIrbReportOverallCommitteeStatsSqlString2bFor(String eventType, String viewName ) { String objectName = eventType; if (eventType.equals("New") || eventType.equals("Mod") || eventType.equals("Renewal")) { objectName = IrbNameConstants.PROTOCOL_HEADER; } // scenario #1 never returned or pended (1 submission and 1 approval) // scenario #2 has been returned or pended (1+ submission and 1+ return or pend) return " SELECT DISTINCT" + " irbStatEnd.parentObjectOid parentOid," + " 0 days" + " FROM " + viewName + " irbStatEnd" + " WHERE NOT EXISTS (" + " SELECT oid" + " FROM " + viewName + " WHERE statusName IN ('Returned','Pending')" + " AND irbStatEnd.parentObjectOid = parentObjectOid" + " AND '" + objectName + "' = parentObjectName)" + " UNION" + " SELECT DISTINCT" + " irbStatStart.parentObjectOid parentOid," + " floor(irbStatEnd.statusDate - irbStatStart.statusDate) days" + " FROM " + viewName + " irbStatStart, " + viewName + " irbStatEnd" + " WHERE irbStatStart.statusName IN ('Returned','Pending')" + " AND irbStatEnd.statusDate =" + " (SELECT min(statusDate)" + " FROM " + viewName + " WHERE irbStatStart.parentObjectOid = parentObjectOid" + " AND irbStatStart.oid < oid" + " AND statusName = 'Submitted')" + " ORDER BY parentOid asc"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 125 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 201 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 124 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterDateRangeView.java | 160 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderSearchView.java | 107 |
aTable.getCell(row, 0).add(getRowLabelFor("Personnel Uni ")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(getRowLabelLeftFor("OR"), 1); aTable.addRowFor((Vector) columns.clone()); aTable.getCell(row, 0).add(getRowLabelFor("")); aTable.getCell(row, 0).setAlign("RIGHT"); aTable.getCell(row, 1).setAlign("LEFT"); row++; columns.setElementAt(new CUHtmlEntryField("RascalUser", "20", "20", ""), 1); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 211 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 209 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 239 |
CUHtmlText dateRange = new CUHtmlText(t); dateRange.setFontSize("-1"); dateRange.setIsBold(false); dateRange.setAlignment("center"); dateRange.setFontName(getDefaultFontName()); return dateRange; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setWidth("95%"); t.setAlign("center"); Object dateObj = null; Vector columns = new Vector(); columns.addElement(getWidgetFor("Event")); columns.addElement(getWidgetFor("Protocol Number")); columns.addElement(getWidgetFor("Committee")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbPrmcRevServlet.java | 91 |
edu/columbia/rascal/presentation/irb/servlets/IrbPrmcStatsServlet.java | 84 |
try { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); if (validateGet()) { destroy(); initializeObjects(); constructPDFForm(); renderPDF(); destroy(); } } catch (Exception ioe) { log.error(ioe); (new CURascalErrorMessageView(ioe, "doGet() " + getClassName())).draw(getResponse()); } } /** @see edu.columbia.rascal.presentation.irb.servlets.IrbAbstractServlet#getPage() */ @Override public CURascalHtmlView getPage() { return null; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public synchronized String getResource() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/pages/HzAppendixCreatedView.java | 95 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixNewView.java | 95 |
HzAppendixHeaderModifyServlet.class.getName(), "POST" ) ); setProtocol((HzAppendixHeader) bo); setOnLoad( "parent.frames[1].location='" + HzLinkFrameServlet.class.getName() + "'" ); setMainTitle("Create a stand-alone Appendix Header"); setPageTitle("RASCAL Laboratory Appendix Header for Hazmat"); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDate.js"))); addJavaScriptElement(new CUHtmlText( getJSCodeFrom("restrictFieldToNumbers.js") ) ); addJavaScriptElement(new CUHtmlText( getJSCodeFrom("departmentOpenSearchWindow.js") ) ); addJavaScriptElement(new CUHtmlText( getJSCodeFrom("departmentSetFields.js") ) ); addJavaScriptElement(new CUHtmlText( getJSCodeFrom("departmentReturnFields.js") ) ); setRascalUser(aUser); add(bo); addDefaultHzAppendixHeader(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 38 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 39 |
public RascalLookupAbstractServlet() { super(); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! * * @throws javax.servlet.ServletException TODO: DOCUMENT ME! */ public abstract CURascalHtmlView getPage() throws javax.servlet.ServletException; /** * @see edu.columbia.rascal.presentation.common.CURascalVapServlet#doGet(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, there is // some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(this .getServletContext() ); PlatformTransactionManager tm = (PlatformTransactionManager) ctx.getBean( "transactionManager" ); TransactionStatus ts = tm.getTransaction(new DefaultTransactionDefinition()); try { if (validateGet()) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuRadiationSafetyBadgeAdminView.java | 313 |
edu/columbia/rascal/presentation/user/views/RuSimpleTrainingEnrollmentAdminView.java | 424 |
CUHtmlTableCell cell0 = aTable.getCell(rowCount, 0); var = dataRow.getRascalUser().getUserId(); if (var != null) cell0.add(var); else cell0.add("<br>"); cell0.setAlign("center"); // User Name CUHtmlTableCell cell1 = aTable.getCell(rowCount, 1); var = dataRow.getRascalUser().getUserFirstLastName(); if (var != null) cell1.add(var); else cell1.add("<br>"); cell1.setAlign("center"); // Badge Number CUHtmlTableCell cell2 = aTable.getCell(rowCount, 2); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 83 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 133 |
); // protocol number row.put("Title", res.getString(3)); // protocol title row.put("PI", res.getString(4)); if (res.getDate(6) == null) // date submitted { row.put("Date", ""); } else { row.put("Date", res.getDate(6)); } row.put("ParentProtocolOid", Integer.valueOf((new Float(res.getFloat(7))).intValue()).toString() ); // protocol parent } else if (name.equals(MODIFICATION) || name.equals(RENEWAL)) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 114 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaProtocolQuery.java | 173 |
); // protocol number row.put("Title", res.getString(4)); // protocol title row.put("PI", res.getString(5)); if (res.getDate(7) == null) // date submitted { row.put("Date", ""); } else { row.put("Date", res.getDate(7)); } row.put("ParentProtocolOid", Integer.valueOf((new Float(res.getFloat(8))).intValue()).toString() ); // protocol parent } else if (name.equals(PENDING)) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaOldBusinessView.java | 345 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaOldBusinessView.java | 424 |
"document.forms[0].submit();return popUpWindowFlex('edu.columbia.rascal.presentation.agenda.servlets.IrbAgendaOtherTopicEntryServlet?anOid=" + aTopic.getId() + "', 'EditBusiness', 550, 450)" ); CUHtmlTableCell cell4 = new CUHtmlTableCell(); cell4.add(modify); cell4.setAlign("center"); aRow.add(cell4); // Delete CUHtmlImage trash = (CUHtmlImage) getTrashImageWidgetFor( "'edu.columbia.rascal.presentation.agenda.servlets.IrbAgendaEventRemoveServlet?comeFrom=" + aTopic.getEventType() + "&&anOid=" + aTopic.getId().toString() + "'", "Remove Business" ); trash.setBorderWidth(0); CUHtmlTableCell cell5 = new CUHtmlTableCell(); cell5.add(trash); cell5.setAlign("center"); aRow.add(cell5); aTable.add(aRow); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportAgendaSummaryView.java | 449 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 290 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportDetailView.java | 292 |
edu/columbia/rascal/presentation/irb/pages/IrbReportApprovalStatusView.java | 487 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 454 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityStatusView.java | 954 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 417 |
edu/columbia/rascal/presentation/irb/pages/IrbReportHistoryView.java | 526 |
} /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * This method was created in VisualAge. * * @param aString is the ProtocolNumber * @param anOid TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getProtocolLinkWidgetFor(String aString, String anOid) { if ((aString == null) || aString.equals("")) { return new CUHtmlText(""); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaReportByProtocolNumberView.java | 159 |
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 150 |
setOnLoad("parent.frames[1].location='" + IrbAgendaLinkFrameServlet.class.getName() + "'"); add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); // date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); t.setWidth("95%"); t.setAlign("center"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 493 |
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceReturnOrApproveCreateServlet.java | 803 |
public void generateEmail(int aRid, IrbCorrespondence corr, String statusName) { IrbEmailSender sender = new IrbEmailSender(); RascalUser aUser = ServiceLocator.getRascalUserService().findById(aRid); String toAddress = ((aUser.getEmailPreferred() == null) ? (aUser.getUserId() + "@columbia.edu ") : aUser.getEmailPreferred()); String toName = (aUser.getNameFirst() + " " + aUser.getNameLast()); String parentObjectName = corr.getParentObjectName(); String protNum = "IRB-" + corr.getProtocolNumber(); IrbProtocolHeader ph = null; String title = ""; String piName = ""; |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAView.java | 281 |
edu/columbia/rascal/presentation/appendix/pages/AppendixDView.java | 375 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 263 |
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 213 |
getForm().add(utilGetDefaultHtmlText(APPROVAL_TEXT1 + "<b>" + ((AppendixA) getAppendixObject()).getBiosafetyContainment() + "</b>" + APPROVAL_TEXT2)); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 1); aTable.setCellSpacing(0); aTable.setCellPadding(0); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE_TITLE + " "), "200", "left" ); CUHtmlTableCell aCell2 = utilGetHtmlTableCell(fieldGet_ShortTitle("title", defaultValue), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE_SPECIES_A + " "), "200", "left"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 48 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 147 |
edu/columbia/rascal/presentation/appendix/pages/AppendixEView.java | 179 |
public AppendixEView(AbstractAppendix anAppendixObject) { super(); setOnLoad("parent.frames[1].location = '" + AppendixLinkFrameServlet.class.getName() + "'"); getForm().setName(FORM_NAME); getForm().setAction(AppendixEServlet.class.getName()); getForm().setMethod("POST"); setPageTitle("RASCAL Appendix"); setSubTitle(decodePageTitle(APPENDIX_LETTER_E)); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("popUpWindowFlex.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("openNew.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("icConfirmWindow.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 689 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGView.java | 779 |
fieldValue = ((AppendixF) getAppendixObject()).getSubjectDisposure(); } fieldValue = cleanText(fieldValue); CUHtmlMultiLineEntryField aView = new CUHtmlMultiLineEntryField(aViewName, getDefaultEFRows(), getDefaultEFColumns(), "PHYSICAL", fieldValue ); return aView; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ protected int getNumberOfCells() { return 8; } /** * This method was created in VisualAge. * * @return java.lang.String. This string appears at the top of the document, after the title. * It is a multiple string text like this: "Principal investigators MUST complete * Appendix A ..." */ @Override protected String infoGetAcknowledgementString() { return ACKNOWLEDGEMENT; } /** * This method was created in VisualAge. * * @return String value of the Appendix letter, e.g. "A", "C", etc. This letter appears in the * Appendix title - "APPENDIX A". */ @Override protected String infoGetAppendixLetter() { return APPENDIX_LETTER; } /** * This method was created in VisualAge. * * @return java.lang.String. Document name value, e.g. "REGISTRATION DOCUMENT FOR USE OF * RECOMBINANT DNA MOLECULES". */ @Override protected String infoGetAppendixName() { return APPENDIX_NAME; } /** * This method was created in VisualAge. * * @return java.lang.String. This string appears at the top of the document, after the title. * It is a multiple string text like this: "Principal investigators MUST complete * Appendix A ..." */ @Override protected String infoGetLegalString() { return LEGAL_STRING_WITH_LINKS; } /** @see edu.columbia.rascal.presentation.appendix.pages.AppendixView#infoGetOrganization() */ @Override protected String infoGetOrganization() { return "RADIATION SAFETY"; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 459 |
edu/columbia/rascal/presentation/irb/pages/IrbMessageView.java | 66 |
edu/columbia/rascal/presentation/lab/pages/HzMessageView.java | 110 |
public AppendixMessageView(boolean hasContinueButton, String aMessage, String location) { super(); setPageTitle("RASCAL Message"); add("<body bgcolor=\"#FFFFFF\" background=\"/images/blu.jpg\" >"); CUHtmlText title = new CUHtmlText("Information Message"); title.setHeaderLevel("2"); CUHtmlMultiLineText message = new CUHtmlMultiLineText(aMessage); message.addBreaks(2); message.setFontSize("+1"); message.setFontName("Comic Sans MS"); CUHtmlForm aForm = new CUHtmlForm(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "BUTTON", "Continue", location); pb.addBreaks(2); add(title); add(message); aForm.add(pb); add(aForm); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 857 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCopyServlet.java | 235 |
switch (getAppendixType().charAt(0)) { case 'A': servletName = AppendixAServlet.class.getName(); break; case 'B': servletName = AppendixBServlet.class.getName(); break; case 'C': servletName = AppendixCServlet.class.getName(); break; case 'D': servletName = AppendixDServlet.class.getName(); break; case 'E': servletName = AppendixEServlet.class.getName(); break; case 'F': servletName = AppendixFServlet.class.getName(); break; case 'G': servletName = AppendixGServlet.class.getName(); break; case 'H': |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixGIsotopeEntryRelayServlet.java | 33 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeEntryRelayServlet.java | 33 |
public AppendixGIsotopeEntryRelayServlet() { super(); } //~ Methods ------------------------------------------------------------------------------------ /** * getAppendixType method comment. * * @return getAppendixType method comment. */ @Override public String getAppendixType() { return APPENDIX_LETTER; } /** * This method was created in VisualAge. @2001 Copyright Columbia University - RASCAL. All * Rights Reserved. hh * * @return this method was created in VisualAge. */ @Override public CURascalHtmlView getPage() { getSession().removeAttribute(KEY_PARM_RADIO_NAME); getSession().removeAttribute(KEY_PARM_RADIO_COMPOUND); getSession().removeAttribute(KEY_PARM_RADIO_HALFLIFE); getSession().removeAttribute(KEY_PARM_RADIO_HALFLIFE_UNIT); // getSession().removeAttribute(KEY_PARM_RADIO_HALFLIFE_SUBJECT); // getSession().removeAttribute(KEY_PARM_RADIO_HALFLIFE_SUBJECT_UNIT); getSession().removeAttribute(KEY_PARM_RADIO_INI_ACTIVE); getSession().removeAttribute(KEY_PARM_RADIO_INI_ACTIVE_UNIT); getSession().removeAttribute(KEY_PARM_RADIO_ROUTE_OF_ADMIN); if (getAppendix() == null) { setRedirectUrl(AppendixMainMenuServlet.class.getName()); return null; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/csv/CURascalCSVProcess.java | 273 |
edu/columbia/rascal/presentation/common/csv/CURascalCSVProcess.java | 318 |
edu/columbia/rascal/presentation/common/csv/CURascalCSVProcess.java | 369 |
Vector<Object> checkRequiredField(Vector<Object> wrapper, int field, int fieldLength) { Vector<Object> processed = new Vector<Object>(); Vector<Object> goodRows = (Vector<Object>) wrapper.elementAt(0); Vector<Object> processedRows = new Vector<Object>(); Vector<Object> badRows = (Vector<Object>) wrapper.elementAt(1); int size = goodRows.size(); for (int i = 0; i < size; i++) { Vector<Object> row = (Vector<Object>) goodRows.elementAt(i); String item = (String) row.elementAt(field); |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 1068 |
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 1108 |
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 1146 |
BufferedOutputStream out = null; try { out = new BufferedOutputStream(response.getOutputStream(), 4096); if (isPageFooterNeeded) { addPageFooter(); } response.setContentType("application/pdf"); response.setHeader("Content-Disposition", "inline; filename=changeNameOfFile.pdf"); //response.setHeader("Content-Disposition", "datasheet; filename=\"datasheet.pdf\""); getPDFObject().render(out); out.flush(); } catch (IOException ioe) { log.error(ioe); } finally { if (out != null) { try { out.close(); } catch (IOException e) { log.error(e); } } } } /** * Insert the method's description here. Creation date: (11/15/2002 4:34:23 PM) * * @param response TODO: DOCUMENT ME! * */ public void drawBlankPDF(javax.servlet.http.HttpServletResponse response) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentContactEntryView.java | 236 |
edu/columbia/rascal/presentation/consent/pages/ConsentControlEntryView.java | 200 |
aTable.getCell(row, 1).setColumnsToSpan(2); row++; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { String addOrEdit = "Save"; if (theOid == null) addOrEdit = "Add"; CUHtmlPushButton pb2 = new CUHtmlPushButton("BUTTON", "SUBMIT", addOrEdit, "submitForm(this.form)" ); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); } return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return CUHtmlList */ public Object getContactTypeWidget() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentPDFTranslationView.java | 164 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolPDFDataSheetTranslationView.java | 171 |
@Override public void addSpecialOnNewPage() { } /** * TODO: DOCUMENT ME! * * @param key TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public FormText getFormObject(String key) { return (FormText) dataForm.getElement(key); } /** * TODO: DOCUMENT ME! * * @param key TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getFormObjectValue(String key) { return (dataForm.getElement(key) == null) ? "" : ((dataForm.getElement(key).getValue() == null) ? "" : dataForm.getElement(key).getValue().trim()); } /** * TODO: DOCUMENT ME! * * @param aString TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public boolean isBlack(String aString) { if (isColorNeeded) { return keyBuffer.contains(aString); } else { return true; } } /** TODO: DOCUMENT ME! */ public void setBlack() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucDrugController.java | 459 |
edu/columbia/rascal/presentation/controller/iacuc/IacucLocationController.java | 253 |
protocolDrugValidator.validate(protocol, protocolBindingResult); if (protocolBindingResult.hasErrors()) { final RascalUser currentUser = rascalUserService.findByUserId(SecurityContextHolder.getContext() .getAuthentication().getName()); final ModelAndView mav = new ModelAndView(VIEW_KEY); // A non-null id implies the object has already been persisted if (protocol.getId() != null) { mav.addAllObjects(protocolBindingResult.getModel()); } mav.addObject("protocol", protocol); mav.addObject("currentUser", currentUser); mav.addObject("recordHeading", iacucProtocolHeaderService.getRecordHeading(protocol, currentUser)); mav.addObject("analgesics", analgesics); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbClosureFileUploadController.java | 94 |
edu/columbia/rascal/presentation/controller/irb/IrbClosureFileUploadInternalController.java | 97 |
IrbClosure header = ServiceLocator.getIrbClosureService().findById(protocolOid); msg = validateUploadedFile(file); if (!file.isEmpty() && (header != null) && (msg.length() == 0)) { String contentType = file.getContentType(); String fileName = file.getOriginalFilename(); attachment.setContentType(contentType); attachment.setIrbClosure(header); attachment.setFileName(fileName); attachment.setDateCreated(new Date()); attachment.setDocumentIdentifier(documentIdentifier); attachment.setArchive("N"); // FIXME attachment.setInternalFlag("N"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbProtocolFileUploadController.java | 105 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolFileUploadInternalController.java | 105 |
IrbProtocolHeader header = ServiceLocator.getIrbProtocolHeaderService().findById( protocolHeaderOid ); msg = validateUploadedFile(file); if (!file.isEmpty() && (header != null) && (msg.length() == 0)) { String contentType = file.getContentType(); String fileName = file.getOriginalFilename(); attachment.setIrbProtocolHeader(header); attachment.setFileName(fileName); attachment.setContentType(contentType); attachment.setDateCreated(new Date()); attachment.setDocumentIdentifier(documentIdentifier); attachment.setArchive("N"); attachment.setActive("Y"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1082 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1309 |
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 247 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 202 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 701 |
edu/columbia/rascal/presentation/user/views/CUInfoHtmlView.java | 185 |
CUHtmlText txt = new CUHtmlText(preparedString); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aLabel TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRowLabelLeftFor(String aLabel) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportActiveApprovedProtocolView.java | 248 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 242 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportResearchSummaryByUNIView.java | 156 |
getForm().add("</div>"); } /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); int colSize = columns.size(); for (int i = 0; i < colSize; i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * This method was created in VisualAge. * * @param queueName protocolOid String * * @return String */ public String getUrlToPrintReport(String queueName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeStatsView.java | 335 |
edu/columbia/rascal/presentation/irb/pages/IrbReportCommitteeStatsView.java | 361 |
else averageValue = 0; avgValue = Float.toString(averageValue); avgValue = avgValue.substring(0, avgValue.indexOf(".") + 2); aCell.add(getTextWidgetFor(avgValue, 2, false)); aCell.setAlign("right"); aRow.add(aCell); // exempt aCell = new CUHtmlTableCell(); totalApp = 0; counter = 0; for (int i = 0; i < resultSize; i++) { Vector currentRow = (Vector) results.elementAt(i); temp = Integer.parseInt((String) currentRow.elementAt(4)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCurrentActivityDateRangeView.java | 39 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSelectFieldsView.java | 40 |
setForm(new CUHtmlForm("report", IrbReportCurrentActivityDateRangeServlet.class.getName(), "POST" ) ); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("targetopener.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); setRascalUser(aUser); setSubTitle(reportType + " Current Activity Report"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/pages/HzMessageView.java | 293 |
edu/columbia/rascal/presentation/lab/pages/HzMessageView.java | 339 |
((CUHtmlMultiLineText) message).setMaxChar(80); } else { message = new CUHtmlText(aMessage); } message.setFgColor("navy"); message.addBreaks(2); // message.setFontSize("+1"); message.setFontName(getDefaultFontName()); setForm(new CUHtmlForm("HzMessageForm", HzMessageServlet.class.getName(), "GET")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "Return", "Return", "JavaScript:history.back();" ); pb.addBreaks(2); add(title); add(message); getForm().add(pb); setBgColor("white"); add(getForm()); } /** * FoasUnimplementedMessageView constructor comment. * * @param aMessage TODO: DOCUMENT ME! * @param isUsingMultiLineText TODO: DOCUMENT ME! * @param maximumChars TODO: DOCUMENT ME! */ public HzMessageView(String aMessage, boolean isUsingMultiLineText, int maximumChars) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCAbstractPopupServlet.java | 126 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 129 |
} catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, req.getMethod() + " " + getClassName())).draw( getResponse() ); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** This code closes the popup window. */ @Override public void writeWindowCloseAndExitScript() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCAddTestScoresServlet.java | 220 |
edu/columbia/rascal/presentation/tc/servlets/TCAddTestScoresServlet.java | 272 |
tcu.setPercentScore(score); tcu.setScoreUploadedBy(currentUser.getId()); tcu.setScoreUploadedOn(new Date()); ServiceLocator.getTcuserHeaderService().save(tcu); } catch (Exception e) { mv = new TCMessageView("Error:<br>\nRecord not saved. Please try again.", "javascript:onClick=parent.frames[2].location.href='" + TCAddTestScoresServlet.class.getName() + "?courseId=" + header.getId() + "'", "" ); mv.draw(getResponse()); } if (log.isDebugEnabled()) { log.debug(tcu); try { if (log.isDebugEnabled()) log.debug("Save is actually successful. OID is: " + tcu.getId()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse30DaysWarningTask.java | 323 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourse60DaysWarningTask.java | 305 |
edu/columbia/rascal/presentation/tc/tools/TCEmailRequiredCourseExpireTask.java | 200 |
if ((recipientEmail == null) || recipientEmail.trim().equals("")) { recipientEmail = piUni + "@columbia.edu"; } try { email = new TCGeneralEmailMessage(recipientName, recipientEmail, subject, message, dbLocation ); } catch (IllegalArgumentException ie) { try { if (!recipientEmail.contains("@")) { email = new TCGeneralEmailMessage(recipientName, piUni + "@columbia.edu", subject, message, dbLocation ); } else { log.error("Invalid recipient email address.", ie); continue; } } catch (Exception e) { log.error("Exception sending email.", e); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionForExceptionView.java | 114 |
edu/columbia/rascal/presentation/tc/views/TCReportDeptSelectionForTestLocationView.java | 121 |
edu/columbia/rascal/presentation/tc/views/TCReportTestSelectionView.java | 116 |
aTable.getCell(row, 0).add(getRowLabelFor(MULTISELECT_LABEL)); aTable.getCell(row, 1).setColumnsToSpan(3); row++; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb2 = new CUHtmlPushButton("BUTTON", "SUBMIT", "Submit", "submitForm(this.form)" ); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); } return aTable; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public final CUHtmlForm getAForm() { return aForm; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlList getDeptNameWidget() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuICMExperimentalSurgeryTrainingEntryView.java | 143 |
edu/columbia/rascal/presentation/user/views/RuOccupationalHealthProgramEntryView.java | 149 |
} /** * @see edu.columbia.rascal.presentation.user.views.RuCertificationAbstractEntryView#addJavaScriptElements() */ @Override public void addJavaScriptElements() { // addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); // isValidARTPEntryForm is used to combine isDateValid and validateAnimalTrainingType. addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isValidARTPEntryForm.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/user/views/RuRascalMessageView.java | 32 |
edu/columbia/rascal/presentation/user/views/RuRascalMessageView.java | 65 |
public RuRascalMessageView(String aMessage) { super(); setPageTitle("RASCAL Message"); CUHtmlText title = new CUHtmlText("Information Message"); title.setHeaderLevel("2"); CUHtmlMultiLineText message = new CUHtmlMultiLineText(aMessage); message.setFgColor("red"); message.addBreaks(2); message.setFontSize("+1"); CUHtmlForm aForm = new CUHtmlForm(); CUHtmlPushButton pb = null; pb = new CUHtmlPushButton("BUTTON", "Return", "Return", "JavaScript:history.back()" ); pb.addBreaks(2); add(title); add(message); aForm.add(pb); add(aForm); } /** * RuRascalMessageView constructor comment. * * @param aMessage java.lang.String * @param refreshLink java.lang.String */ public RuRascalMessageView(String aMessage, String refreshLink) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/servlets/AdminAbstractServlet.java | 113 |
edu/columbia/rascal/presentation/common/RascalStaticSubmitFormServlet.java | 105 |
(new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doGet in CURascalVAPServlet and CURascalServlet. I am not happy with the * behavior implemented in those classes</p> * * <p>hh 3/2/00</p> * * <p>sometime in the future, those superclassed methods will be reworked, but i need to get * around them NOW!</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 476 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1082 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 1309 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1065 |
CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("95%"); t.getCell(0, 0).setAlign("right"); t.getCell(0, 1).setWidth("5%"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * <p>This method was created in VisualAge.</p> * * @param link TODO: DOCUMENT ME! * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String link, String aLabel, String source) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaHtmlView.java | 346 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFUtilityView.java | 364 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaPDFView.java | 356 |
} /** * Insert the method's description here. Creation date: (2/20/2002 2:09:52 PM) * * @param eventName TODO: DOCUMENT ME! * * @return java.lang.String */ public String getDisplayStringFor(String eventName) { String displayString = ""; boolean nr = false; if (eventName.startsWith(IrbNameConstants.NON_RASCAL)) { nr = true; eventName = eventName.substring(11); } if (eventName.equals(IrbNameConstants.PROTOCOL_HEADER)) displayString = "New Protocol"; else if (eventName.equals(IrbNameConstants.ADVERSE_EVENT)) displayString = "Adverse Event"; else if (eventName.equals(IrbNameConstants.EXEMPT) || eventName.equals(IrbNameConstants.EXPEDITED)) displayString = eventName + " Protocol"; else if (eventName.equals("OldBusiness")) |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaCheckFinalizeServlet.java | 154 |
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaMinutesChairApprovalServlet.java | 658 |
error.append("Recommended Status for "); error.append(getPrettyName(objectName)); if (objectName.equals(IrbNameConstants.PROTOCOL_HEADER) || objectName.equals(IrbNameConstants.RENEWAL) || objectName.equals(IrbNameConstants.MODIFICATION) ) { error.append((getEventObject(objectName, eventOid) .getProtocolNumber()) ); } else if (objectName.equals(IrbNameConstants.ADVERSE_EVENT)) { error.append((getEventObject(objectName, eventOid) .getProtocolNumber()) ); } else if (objectName.equals(IrbNameConstants.UNANTICIPATED_PROBLEM)) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFReportView.java | 237 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGReportView.java | 433 |
addSpacerRows(aTable, 1, 2, "8"); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE0), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_0_AuthorizedIndividual(), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = utilGetHtmlTableCell(utilGetDefaultHtmlText(TITLE0a), "300", getTitleAlign() ); aCell2 = utilGetHtmlTableCell(fieldGet_0a_AuthorizationNo(), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 1323 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 915 |
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 761 |
edu/columbia/rascal/presentation/lab/pages/HzHtmlView.java | 838 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 515 |
Vector list = new Vector(); list.addElement(""); list.addElement("Jan"); list.addElement("Feb"); list.addElement("Mar"); list.addElement("Apr"); list.addElement("May"); list.addElement("Jun"); list.addElement("Jul"); list.addElement("Aug"); list.addElement("Sep"); list.addElement("Oct"); list.addElement("Nov"); list.addElement("Dec"); getLabel(fieldName); return getSingleSelectWidgetFor(list, monthIndex); } /** * This method was created in VisualAge. * * @param aValue rows int - the number of required rows * @param inputName cells int - the number of cell within each row * * @return edu.columbia.rascal.presentation.fo.alertService.html.CUHtmlTable */ public Object getMultilineTextWidgetFor(String aValue, String inputName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixIrbAbstractView.java | 638 |
edu/columbia/rascal/presentation/appendix/pages/AppendixLabAbstractView.java | 484 |
public void setProtocol(IrbProtocolHeader newProtocol) { protocol = newProtocol; } /** * This method was created in VisualAge. * * @param aTable CUHtmlTable */ public void setStatusHead(CUHtmlTable aTable) { CUHtmlText aTitle; CUHtmlTableRow aRow = new CUHtmlTableRow(); aTitle = new CUHtmlText("Status History"); aTitle.setFontSize("-1"); aTitle.setFontName(getDefaultFontName()); CUHtmlTableCell header = new CUHtmlTableCell(aTitle); header.setIsHeader(true); header.setColumnsToSpan(3); header.setAlign("center"); aRow.add(header); aTable.add(aRow); aRow = new CUHtmlTableRow(); String titles[] = { "Status", "Date", "Person/Outcome" }; for (int i = 0; i < titles.length; i++) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 33 |
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 107 |
public AppendixMessageView(String aMessage) { super(); setPageTitle("RASCAL Message"); setBgColor("WHITE"); CUHtmlText title = new CUHtmlText("Information Message"); title.setHeaderLevel("2"); title.setFontName(getDefaultFontName()); CUHtmlMultiLineText message = new CUHtmlMultiLineText(aMessage); message.setFgColor("red"); message.addBreaks(2); message.setFontSize("+1"); message.setFontName(getDefaultFontName()); message.setMaxChar(80); setForm(new CUHtmlForm("Form1", AppendixMessageServlet.class.getName(), "GET")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "Return", "Return", |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 165 |
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 214 |
message.setMaxChar(80); setForm(new CUHtmlForm("Form1", AppendixMessageServlet.class.getName(), "GET")); String buttonLinks = refreshMain; if ((refreshLink != null) && (refreshLink.trim().length() > 0)) { buttonLinks = buttonLinks + ";" + refreshLink; } CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "Return", "Return", buttonLinks); pb.addBreaks(2); add(title); add(message); getForm().add(pb); add(getForm()); } /** * FoasUnimplementedMessageView constructor comment. * * @param aMessage TODO: DOCUMENT ME! * @param refreshMain TODO: DOCUMENT ME! * @param refreshLink TODO: DOCUMENT ME! * @param maximumChars TODO: DOCUMENT ME! */ public AppendixMessageView(String aMessage, String refreshMain, String refreshLink, |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 388 |
edu/columbia/rascal/presentation/common/pdf/CURascalPDFFormConstruction.java | 586 |
String escapedContent = HtmlUtils.htmlUnescape(content); float lineOverflow = 0; boolean flag = false; int counter = 1; int previousPageNum = 0; PDFPage newPage = null; float originalHeight = getHeight(); // if(originalHeight <= getBottomPageMargin() + fontDefaultSize * // style.getTextLineSpacing()){//just enough if (needNextPage(originalHeight, style)) { if (oldPage.getPageNumber() == getPDFObject().getNumberOfPages()) { oldPage = newPage(getPageLayout()); } else { oldPage = getPDFObject().getPage(oldPage.getPageNumber()); } setHeight(getPageHeight() - getTopPageMargin()); } setPDFPage(oldPage); // setPageFeature(); getPDFPage().setStyle(style); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbClosureSubjectsSubStudyController.java | 94 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolSubjectsSubStudyController.java | 94 |
if (subjects == null) subjects = new IrbProtocolSubjects(closure); IrbSubjSubStudy irbSubjSubStudy = new IrbSubjSubStudy(subjects); model.addAttribute(FORM_COMMAND, irbSubjSubStudy); } return JSP_VIEW; } @RequestMapping(value = "/{id}", method = RequestMethod.GET) public String loadPage(@PathVariable Long id, Model model) { if(!model.containsAttribute(FORM_COMMAND)) { IrbSubjSubStudy irbSubjSubStudy = irbSubjSubStudyService.findById(id); model.addAttribute(FORM_COMMAND, irbSubjSubStudy); } return JSP_VIEW; } @RequestMapping(value = {"","/{id}"}, method = RequestMethod.POST) public String save(@PathVariable Long closureId, |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbProtocolHazmatsController.java | 139 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolHazmatsController.java | 171 |
map.put("appendixId", appendix.getId()); map.put("appendixType", appendix.getAppendixType()); map.put("appendixNumber", appendix.getAppendixNumber()); map.put("appendixNumberDisplay", appendix.getAppendixNumberDisplay()); map.put("appendixTypeDisplay", appendix.getIrbAppendixDisplayName()); map.put("appendixTitleDisplay", appendix.getTitle()); map.put("createDate", appendix.getCreateDate()); map.put("createdBy", rascalUserService.findById(appendix.getCreatedBy()).getUserFirstLastNameUni()); jsonDataList.add(map); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaHtmlView.java | 1522 |
edu/columbia/rascal/presentation/ic/views/IacucHtmlView.java | 814 |
} /** * This method was created in VisualAge. Sets the subtitle of this page. If aSubTitle is a * String, use the default subtitle settings. if aSubTitle is CUHtmlText, override the default * title settings. * * @param aSubTitle TODO: DOCUMENT ME! */ public void setSubTitle(Object aSubTitle) { if (aSubTitle instanceof CUHtmlText) { subTitle = (CUHtmlText) aSubTitle; } else { if (aSubTitle instanceof String) { CUHtmlText aText = new CUHtmlText((String) aSubTitle); aText.setFontSize("+2"); aText.setAlignment("center"); aText.setFontName(getDefaultFontName()); subTitle = aText; } } } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ protected Vector getDefaultMainFooter() { Vector result = new Vector(); result.add(getRuler()); // Add items under this line only String name = getClass().getName(); String main = HipaaMainMenuView.class.getName(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 160 |
edu/columbia/rascal/presentation/ic/servlets/IacucAbstractServlet.java | 141 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 167 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractPopupServlet.java | 76 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 134 |
(new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2003 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doPost in CURascalVAPServlet and CURascalServlet.</p> * * <p>hh 5/19/03</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbDocSearchQueryFormat.java | 365 |
edu/columbia/rascal/presentation/irb/jdbc/IrbDocSearchQueryFormat.java | 550 |
whereTitle = buildWhereClauseForSelectionTitle(title, "t2.title"); } CURascalBasicSearchParameter previousProtocolNumber = params.getPreviousProtocolNumber(); if (isNotEmpty(previousProtocolNumber)) { wherePreviousProtocolNumber = buildWhereClauseForSelection(previousProtocolNumber, "t2.previousProtocolNumber" ); } CURascalBasicSearchParameter paperProtocolNumber = params.getPaperProtocolNumber(); if (isNotEmpty(paperProtocolNumber)) { wherePaperProtocolNumber = " AND t2.paperProtocol='Y' " + buildWhereClauseForSelection(paperProtocolNumber, "t2.previousProtocolNumber"); } String currentHeader = " AND t2.oid = (SELECT max(ph.oid) FROM IrbProtocolHeader ph WHERE t1.oid = ph.parentProtocolOid)"; CURascalBasicSearchParameter excludeExpired = params.getExcludeExpired(); CURascalBasicSearchParameter excludeInvalid = params.getExcludeInvalid(); CURascalBasicSearchParameter excludeClosured = params.getExcludeClosured(); CURascalBasicSearchParameter excludeCreated = params.getExcludeCreated(); StringBuilder limitExpired = new StringBuilder(""); StringBuilder limitInvalid = new StringBuilder(""); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbLinkFrameView.java | 1548 |
edu/columbia/rascal/presentation/irb/pages/IrbLinkFrameView.java | 1574 |
public void oversightMonitoringLink() { aBuffer = new StringBuffer(); aBuffer.append("<a href=\"Javascript:onClick=parent.frames[1].location='"); aBuffer.append(IrbLinkFrameServlet.class.getName()); aBuffer.append("?headerOid="); aBuffer.append(getHeaderOid()); aBuffer.append("&&protocolOid="); aBuffer.append(getProtocolOid()); aBuffer.append("';parent.frames[2].location='"); aBuffer.append(IrbProtocolRenewalOversightMonitoringServlet.class.getName()); aBuffer.append("?headerOid="); aBuffer.append(getHeaderOid()); aBuffer.append('\''); addFontString(); add(aBuffer.toString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 590 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueChairView.java | 763 |
Object dateObj = null; int resultSize = results.size(); for (int i = 0; i < resultSize; i++) { aRow = new CUHtmlTableRow(); aRow.setBgColor(getQueueGeneratedRowColor(i)); currentRow = (Vector) results.elementAt(i); elementZero = ((String) currentRow.elementAt(0)).trim(); elementOne = ((String) currentRow.elementAt(1)).trim(); aCell = new CUHtmlTableCell(); aCell.add(getObjectLinkWidgetFor("IRB-" + elementOne, elementZero, IrbNameConstants.CLOSURE, |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportCancerCenterStatusView.java | 573 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 393 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 401 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 437 |
edu/columbia/rascal/presentation/irb/pages/IrbReportEventStatusView.java | 502 |
edu/columbia/rascal/presentation/irb/pages/IrbReportExpirationDateView.java | 434 |
} /** * This method was created in VisualAge. * * @param aString TODO: DOCUMENT ME! * * @return Object @2000 Copyright Columbia University - RASCAL. All Rights Reserved. */ @Override public Object getWidgetFor(String aString) { if (aString == null) aString = ""; CUHtmlText text = new CUHtmlText(aString); text.setFontSize("1"); text.setFontName("Comic Sans MS"); if (aString.startsWith("http://") || aString.startsWith("www.")) { text.setLink(aString); } return text; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setBeginDate(String newValue) { this.beginDate = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setDownloadable(boolean newValue) { this.downloadable = newValue; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param newValue java.lang.String */ public void setEndDate(String newValue) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderCheckSubmitServlet.java | 159 |
edu/columbia/rascal/presentation/user/servlets/CURascalUserAbstractServlet.java | 81 |
super.redirectTo(getRedirectUrl()); } } else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 130 |
edu/columbia/rascal/presentation/tc/views/TCHtmlView.java | 85 |
edu/columbia/rascal/presentation/user/views/RuHtmlView.java | 80 |
public void addPtProposalHeader() { } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param numCells TODO: DOCUMENT ME! * @param addRows TODO: DOCUMENT ME! * @param height TODO: DOCUMENT ME! */ public void addSpacerRows(CUHtmlTable aTable, int numCells, int addRows, String height) { Vector<Object> columns = new Vector<Object>(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); for (int i = 0; i < addRows; i++) { aTable.addRowFor(columns); aTable.getCell(row, 0).setHeight(height); row++; } } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String filterLink() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 266 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 693 |
aWidget = getEditWidgetFor("directCost", var, "12", "9"); ((CUHtmlEntryField) aWidget).setOnKeyPress("return restrictFieldToNumbers(event)"); ((CUHtmlEntryField) aWidget).setOnBlur("ptCalculateTotalCost()"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Total Direct Cost", "pt50.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // total MTDC amount var = "0"; longVar = ptBudget.getProjectBudgetMtdcamount(); if (longVar != null) var = longVar.toString(); aWidget = getEditWidgetFor("mtdcAmount", var, "12", "9"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 295 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalFundingView.java | 722 |
aWidget = getEditWidgetFor("indirectCost", var, "12", "9"); ((CUHtmlEntryField) aWidget).setOnKeyPress("return restrictFieldToNumbers(event)"); ((CUHtmlEntryField) aWidget).setOnBlur("ptCalculateTotalCost()"); columns.setElementAt(aWidget, 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Total Indirect Cost", "pt51.html")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // total amount var = "0"; longVar = ptBudget.getProjectBudgetTotalAmount(); if (longVar != null) var = longVar.toString(); aWidget = getEditWidgetFor("totalAmount", var, "12", "9"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtCoiReportServlet.java | 60 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportHazMatServlet.java | 98 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportLoggedInServlet.java | 62 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportLoggedOutServlet.java | 140 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportWithdrawnServlet.java | 61 |
rows.setColumnNames(new String[] { "", "TrakId", "Name", "Role", "Project" }); rows.sortByColumn(sortBy.replace('+', ' ')); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); String downloadableString = getLineParameter("downloadable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } view = new PtCoiReportView(rows, printable, sortBy, downloadable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCAccessControlServlet.java | 30 |
edu/columbia/rascal/presentation/tc/servlets/TCAddTestScoresServlet.java | 41 |
edu/columbia/rascal/presentation/tc/servlets/TCDivisionServlet.java | 30 |
edu/columbia/rascal/presentation/tc/servlets/TCRequiredCourseServlet.java | 30 |
public TCAccessControlServlet() { super(); setIsEdit(true); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * <p>@2000 Copyright Columbia University - RASCAL. All Rights Reserved.</p> * * @return java.lang.String */ @Override public TCHtmlView getPage() { TccourseHeader tch = null; String courseId = getLineParameter("courseId"); Long oid = null; if (courseId != null) { try { oid = Long.parseLong(courseId); } catch (Exception e) { } if (oid != null) tch = ServiceLocator.getTccourseHeaderService().getById(oid); if (tch == null) { return new TCMessageView("Invalid Course ID: " + courseId); } else { setCourseHeader(tch); } } return new TCAccessControlView(tch, getUser()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCEmailForEHSRequiredCourseMonthlyServlet.java | 41 |
edu/columbia/rascal/presentation/tc/servlets/TCEmailForExpireServlet.java | 42 |
edu/columbia/rascal/presentation/tc/servlets/TCEmailForNotifyServlet.java | 39 |
edu/columbia/rascal/presentation/tc/servlets/TCEmailForWarning30Servlet.java | 39 |
edu/columbia/rascal/presentation/tc/servlets/TCEmailForWarning60Servlet.java | 40 |
public TCEmailForEHSRequiredCourseMonthlyServlet() { super(); } //~ Methods ------------------------------------------------------------------------------------ /** * @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) */ @Override public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); java.io.PrintWriter toClient = res.getWriter(); String servletPath = RascalProperties.getProperty("ServletPath"); toClient.println("<BASE HREF="); toClient.println(servletPath); toClient.println('>'); toClient.println("<HTML>"); toClient.println(" <HEAD><TITLE>RASCAL</TITLE></HEAD>"); toClient.println("<BODY bgcolor='#fffff0' >"); toClient.println("<CENTER>"); toClient.println("<P>"); toClient.println( |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMinutesNewView.java | 53 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaNewView.java | 59 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalNewView.java | 66 |
addJavaScriptElement(new CUHtmlText(getJSCodeFrom("restrictFieldToNumbers.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("departmentOpenSearchWindow.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("departmentSetFields.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDayMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDate.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setDay.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setMonth.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("setYear.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("isDateValid.js"))); addJavaScriptElement(new CUHtmlText(getJSCodeFrom("checkDateForSubmit.js"))); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaOtherTopicEntryView.java | 158 |
edu/columbia/rascal/presentation/consent/pages/ConsentFormNewView.java | 308 |
aTable.getCell(row, 0).add(getRowLabelFor(showTitle)); aTable.getCell(row, 1).setColumnsToSpan(4); row++; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Save"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getComeFrom() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixAReportView.java | 187 |
edu/columbia/rascal/presentation/appendix/pages/AppendixBReportView.java | 111 |
addLegalMessage(); // addPIInfo(); try { addGeneralFields(defaultValue); if ((getOwnerSurrogate() != null) && !getOwnerSurrogate().getOwnerType().equals(PROPOSAL_TRACKING_OWNER) && (getOwnerSurrogate().getStaffTable() != null) && !getOwnerSurrogate().getStaffTable().isEmpty() ) { addPersonnelDisplayList(); } if (!defaultValue) addOSHALawString(OSHA_LAW); getForm().add(new CUHtmlRuler()); getForm().add(utilGetDefaultHtmlText("<h4><p>Acknowledgement</p></h4>")); getForm().add(utilGetDefaultHtmlText(infoGetAcknowledgementString())); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixLabCorrespondenceCreateView.java | 213 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceReturnOrApproveCreateView.java | 286 |
@Override public void addProtocolHeader() { } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { EVector v = new EVector(); String space = ""; v.addElement(space); CUHtmlPushButton pb1; pb1 = new CUHtmlPushButton("SUBMIT", "Notify", "Save And Notify"); v.add(pb1); CUHtmlTable aTable = new CUHtmlTable(); aTable.addRowFor((Vector) v.clone()); aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("50%"); aTable.addBreaks(2); return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * Insert the method's description here. Creation date: (1/4/2006 10:52:45 AM) * * @return java.lang.String */ public HzAppendixHeader getAppendixHeader() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixReportPtHazMatServlet.java | 116 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaReportResolutionServlet.java | 77 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaReportStatusServlet.java | 83 |
String sortBy = getLineParameter(KEY_PARM_SORT_BY); if (sortBy != null) { CUSortVector rows = new CUSortVector(queue); rows.setColumnNames(getKeywordListForColumns()); sortBy = sortBy.replace('+', ' ').trim(); rows.sortByColumn(sortBy); queue = rows; } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter(KEY_PARM_PRINTABLE); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentHtmlView.java | 984 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 444 |
} /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getSortHeaderForColumnNames(java.util.Vector, * java.lang.String, java.lang.String) */ @Override public CUHtmlTable getSortHeaderForColumnNames(Vector columnNames, String queueName, String sortSelection ) { CUHtmlTable aHeaderTable = new CUHtmlTable(); aHeaderTable.setBorderWidth(0); aHeaderTable.setWidth("55%"); aHeaderTable.setCellPading(0); aHeaderTable.setCellSpacing(0); Vector elements = new Vector(); CUHtmlText aTextLabel = new CUHtmlText("Sort List By:"); aTextLabel.setFontSize("1"); aTextLabel.setFontName(getDefaultFontName()); elements.addElement(aTextLabel); Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList" + queueName, sortSelection ); elements.addElement(aListWidget); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormEmbeddedQuestionEntryView.java | 211 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 200 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionChildEntryView.java | 190 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionEntryView.java | 199 |
columns.setElementAt(radioGroup.elementAt(1), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // Date columns.setElementAt(radioGroup.elementAt(2), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; // Number columns.setElementAt(radioGroup.elementAt(3), 1); aTable.addRowFor(columns); aTable.getCell(row, 1).setColumnsToSpan(3); row++; |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 222 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 305 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 382 |
if (name.equals(IrbNameConstants.PROTOCOL_HEADER)) { while (res.next()) { row.setElementAt(String.valueOf(res.getInt(1)), 0); // protocol oid row.setElementAt(res.getString(2), 1); // protocol number // // REMOVED THE (Y1 M00) hh // 1//18/2003 if (res.getInt(4) > 0) row.setElementAt(IrbNameConstants.MODIFICATION, 2); else if ((res.getInt(3) > 1) && (res.getInt(4) == 0)) row.setElementAt(IrbNameConstants.RENEWAL, 2); else row.setElementAt(name, 2); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2410 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 2574 |
s.append(" AND s.oid = (SELECT max(oid) from IrbStatus "); s.append(" where parentObjectOid = b.oid AND parentObjectName = '"); s.append(name); s.append("') ORDER BY c.notificationDate "); } else { if (name.equals(IrbNameConstants.CLOSURE)) { title = " '',"; } s.append("SELECT DISTINCT"); s.append(" a.oid AS oid1,"); // 1 s.append(" a.protocolNumber,"); // 2 s.append(" u.name_last,"); // 3 s.append(title); // 4 s.append(" b.oid AS oid2,"); // 5 s.append(" c.notificationDate,"); // 6 s.append(" c.oid AS oid3,"); // 7 s.append(" e.oid AS oid4,"); // 8 s.append(" f.name_last,"); // 9 s.append(" s.statusName "); // 10 |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceCreateView.java | 191 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceRespondView.java | 423 |
aWidget = getRecipientWidget("Researcher"); elements.addElement(getTextWidgetFor("Select Recipient:", getFontSize() + 1, true)); elements.addElement(aWidget); } else { elements.addElement(getTextWidgetFor("To:", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor("IRB Office", getFontSize(), true)); } } else { elements.addElement(getTextWidgetFor("To:", getFontSize() + 1, true)); elements.addElement(getTextWidgetFor("IRB Office", getFontSize(), true)); } t.addRowFor(elements); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2048 |
edu/columbia/rascal/presentation/lookup/pages/RascalLookupHtmlView.java | 225 |
edu/columbia/rascal/presentation/myRascal/views/MyRascalHtmlView.java | 182 |
txt.setAlignment("right"); return txt; } /** * This method creates and formats a CUHtmlText object for the string "aLabel" as a standardized * label for a table row It puts the CUHtmlText object in a table with a Image that contains the * link to the help page hh 5/12/00. * * @param aLabel = is the label that will be shown on the screen * @param source = the string that represents the location of the help html page. * * @return CUHtmlTable */ public CUHtmlTable getRowLabelFor(String aLabel, String source) { CUHtmlTable t = new CUHtmlTable(); t.setBorderWidth(0); Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("1"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("100%"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 132 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 134 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 142 |
edu/columbia/rascal/presentation/irb/pages/IrbReportInProcessProtocolView.java | 137 |
IrbReportClinicalTrialsFirstSubmissionDateRangeServlet.class.getName() + "'" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("1"); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! * @param columns TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows, Vector columns) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtCoiReportView.java | 88 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportApprovalHistoryView.java | 106 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 112 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptView.java | 247 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 116 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 89 |
form.add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames(getKeywordListForColumns(), "A", getSortBy()) |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1274 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterMemberView.java | 284 |
Vector<Object> elements = new Vector<Object>(); CUHtmlText aTextLabel = new CUHtmlText("Sort List By:"); aTextLabel.setFontSize("1"); aTextLabel.setFontName(getDefaultFontName()); elements.addElement(aTextLabel); Object aListWidget = getSortListWidgetFor(columnNames, "columnNamesList" + queueName, sortSelection ); elements.addElement(aListWidget); String onClick; if (queueName.equals("A") || queueName.equals("C")) onClick = "Javascript:getSortByValue1('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; else onClick = "Javascript:getSortByValue3('" + getServletName() + "','columnNamesList" + queueName + "','" + queueName + "')"; |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtProposalRascalSearchView.java | 65 |
edu/columbia/rascal/presentation/propTrak/pages/PtProposalSearchView.java | 69 |
CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", " Search "); getForm().add(pb1); getForm().add("<BR>"); getForm().add(txtSpaces); CUHtmlText txt2 = new CUHtmlText( "            OR to narrow down your results, include any of the fields below:" ); txt2.setFontName(getDefaultFontName()); txt2.setIsBold(true); txt2.setFontSize("1"); txt2.addBreaks(1); getForm().add(txt2); getForm().add("<BR><BR>"); getForm().add(buildSearchFields()); getForm().add("<BR>"); getForm().add(getActionButtons(" Search ")); |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/servlets/PtCoiReportServlet.java | 60 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportHazMatServlet.java | 99 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportLoggedInServlet.java | 63 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportLoggedOutServlet.java | 141 |
edu/columbia/rascal/presentation/propTrak/servlets/PtReportWithdrawnServlet.java | 62 |
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptAndLocationServlet.java | 212 |
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptFilterByJobCodeServlet.java | 190 |
edu/columbia/rascal/presentation/tc/servlets/TCReportByDeptServlet.java | 203 |
rows.setColumnNames(new String[] { "", "TrakId", "Name", "Role", "Project" }); rows.sortByColumn(sortBy.replace('+', ' ')); } else { sortBy = ""; } boolean printable = false; boolean downloadable = false; String printableString = getLineParameter("printable"); String downloadableString = getLineParameter("downloadable"); if ((printableString != null) && (!printableString.equals(""))) { printable = printableString.equalsIgnoreCase("true"); } if ((downloadableString != null) && (!downloadableString.equals(""))) { downloadable = downloadableString.equalsIgnoreCase("true"); } view = new PtCoiReportView(rows, printable, sortBy, downloadable); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 695 |
edu/columbia/rascal/presentation/tc/jdbc/TCCourseQuery.java | 763 |
row.put("firstName", (res.getString(3) == null) ? "" : res.getString(3)); row.put("userId", (res.getString(1) == null) ? "" : res.getString(1)); email = res.getString(5); if (email == null) row.put("emailPreferred", res.getString(1) + "@columbia.edu"); else row.put("emailPreferred", email); row.put("userDept", (res.getString(6) == null) ? "" : res.getString(6)); row.put("datePassed", res.getDate(7)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCCourseOverviewServlet.java | 29 |
edu/columbia/rascal/presentation/tc/servlets/TCCourseStudyContentServlet.java | 30 |
edu/columbia/rascal/presentation/tc/servlets/TCCourseTestServlet.java | 39 |
public TCCourseOverviewServlet() { super(); setIsEdit(true); } //~ Methods ------------------------------------------------------------------------------------ /** @see edu.columbia.rascal.presentation.tc.servlets.TCAbstractServlet#getPage() */ @Override public TCHtmlView getPage() { String courseId = getLineParameter("courseId"); TccourseHeader tch = null; Long oid = null; if (courseId != null) { try { oid = Long.parseLong(courseId); } catch (Exception e) { } } if (oid != null) tch = ServiceLocator.getTccourseHeaderService().getById(oid); if (tch == null) { return new TCMessageView("Invalid Course ID: " + courseId); } else { setCourseHeader(tch); return new TCCourseOverviewView(tch, getUser()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 484 |
edu/columbia/rascal/presentation/tc/views/TCReportEHSExceptionByTestView.java | 386 |
onClick.append(getServletName()); onClick.append("','columnNamesList"); onClick.append(queueName); onClick.append("','"); onClick.append(queueName); onClick.append("')"); elements.addElement(new CUHtmlPushButton("BUTTON", "BUTTON", "Sort", onClick.toString())); aHeaderTable.addRowFor(elements); aHeaderTable.getCell(0, 0).setWidth("15%"); aHeaderTable.getCell(0, 1).setWidth("30%"); aHeaderTable.getCell(0, 2).setWidth("10%"); return aHeaderTable; } /** * Insert the method's description here. Creation date: (10/31/01 4:51:16 PM) * * @return java.lang.String */ public java.lang.String getTestLocation() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 248 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 330 |
edu/columbia/rascal/presentation/agenda/jdbc/IrbAgendaReportQuery.java | 758 |
.executeQuery(getAgendaInfoForSql(event)); while (res.next()) { row.put("AgendaOid", (((Integer.valueOf((new Float(res.getFloat(1))).intValue())) == null) ? "" : Integer.valueOf((new Float(res.getFloat(1))).intValue()) .toString()) ); // agendaoid row.put("AgendaNumber", (res.getString(2) == null) ? "" : res.getString(2)); |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaEventAbstractEntryView.java | 155 |
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaOtherTopicEntryView.java | 158 |
edu/columbia/rascal/presentation/consent/pages/ConsentFormNewView.java | 308 |
aTable.getCell(row, 0).add(getRowLabelFor("Comments", "irbempty.html")); aTable.getCell(row, 1).setColumnsToSpan(4); row++; } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", "Save"); CUHtmlTableCell aCell = aTable.getCell(0, 0); aCell.add(pb1); } return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbAgendaMessageView.java | 150 |
edu/columbia/rascal/presentation/consent/pages/ConsentMessageView.java | 113 |
setOnLoad(getRefreshLink()); setPageTitle("RASCAL Message"); CUHtmlText title = new CUHtmlText("Information Message"); title.setHeaderLevel("2"); CUHtmlMultiLineText message = new CUHtmlMultiLineText(aMessage); message.setFgColor("red"); message.addBreaks(2); message.setFontSize("+1"); message.setFontName("Comic Sans MS"); CUHtmlForm aForm = new CUHtmlForm(); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "Return", "Return", refreshMain + ";" + refreshLink ); pb.addBreaks(2); add(title); add(message); aForm.add(pb); add(aForm); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/servlets/IrbAgendaAbstractServlet.java | 127 |
edu/columbia/rascal/presentation/consent/servlets/ConsentAbstractServlet.java | 124 |
edu/columbia/rascal/presentation/user/servlets/CURascalUserAbstractServlet.java | 88 |
edu/columbia/rascal/presentation/user/servlets/RuAbstractServlet.java | 120 |
(new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.irb.servlets.IrbAbstractServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { // even though i am passing the req and res to my servlets, // there is some stuff in the tx framework that requires these to be set setRequest(req); setResponse(res); setRedirectUrl(null); // clear the line parameters getLineParameters().clear(); setLineParameters(req.getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 1475 |
edu/columbia/rascal/presentation/appendix/jdbc/AppendixWorkListQueryFormat.java | 2857 |
fromWhere1.append(" iph.currentStatus in('Hold', '" + KEY_ACTION_DISTRIBUTE + "','" + KEY_ACTION_SUBMIT + "','" + KEY_ACTION_REQ_FULL_REVIEW + "','" + KEY_ACTION_REJECT + "','" + KEY_ACTION_PREAPPROVE + "')" ); // fromWhere1.append(" AND iph.primarySite in ").append(memberSites); // construct WHERE statement after the first variable StringBuilder fromWhere2 = new StringBuilder(300); fromWhere2.append(" AND exists (Select tracker.oid"); fromWhere2.append(" FROM AppendixTracking tracker"); fromWhere2.append(" WHERE iph.oid = tracker.ownerOid"); fromWhere2.append(" AND '"); fromWhere2.append(ANIMAL_CARE_OWNER); fromWhere2.append("' = tracker.ownerType"); // construct the remainder of the WHERE statement after the second variable StringBuilder moreWhere = new StringBuilder(300); moreWhere.append(" = tracker.appendixType"); moreWhere.append(" AND NOT EXISTS (SELECT * "); moreWhere.append(" FROM AppendixApproval"); moreWhere.append(" WHERE tracker.oid = fk_tracking_id"); moreWhere.append(" AND approvalRole = '"); moreWhere.append(SAFETY_OFFICE_TYPE); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixFView.java | 210 |
edu/columbia/rascal/presentation/appendix/pages/AppendixGView.java | 208 |
log.error("Exception while creating Appendix F view.", e); } add(getForm()); } /** * This method was created in VisualAge. * * @param defaultValue TODO: DOCUMENT ME! * * @throws Exception TODO: DOCUMENT ME! */ protected void addGeneralFields(boolean defaultValue) throws Exception { CUHtmlTable aTable = utilGetHtmlTable("100%", 0, 1); aTable.setCellSpacing(0); aTable.setCellPadding(0); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = utilGetHtmlTableCell(getRowLabelLeftFor(TITLE_TITLE + " "), "200", "left" ); CUHtmlTableCell aCell2 = utilGetHtmlTableCell(fieldGet_ShortTitle("title", defaultValue), "500", "left" ); aRow.add(aCell1); aRow.add(aCell2); aTable.add(aRow); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 853 |
edu/columbia/rascal/presentation/appendix/pages/AppendixHtmlView.java | 944 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 857 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 913 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 971 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixCopyServlet.java | 235 |
switch (appendixType.charAt(0)) { case 'A': servletName = AppendixAServlet.class.getName(); break; case 'B': servletName = AppendixBServlet.class.getName(); break; case 'C': servletName = AppendixCServlet.class.getName(); break; case 'D': servletName = AppendixDServlet.class.getName(); break; case 'E': servletName = AppendixEServlet.class.getName(); break; case 'F': servletName = AppendixFServlet.class.getName(); break; case 'G': servletName = AppendixGServlet.class.getName(); break; case 'H': |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 145 |
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 194 |
public AppendixMessageView(String aMessage, String refreshMain, String refreshLink) { super(); setPageTitle("RASCAL Message"); setBgColor("WHITE"); if ((refreshLink != null) && (refreshLink.trim().length() > 0)) { setOnLoad(refreshLink); } CUHtmlText title = new CUHtmlText("Information Message"); title.setHeaderLevel("2"); title.setFontName(getDefaultFontName()); CUHtmlMultiLineText message = new CUHtmlMultiLineText(aMessage); message.setFgColor("red"); message.addBreaks(2); message.setFontSize("+1"); message.setFontName(getDefaultFontName()); message.setMaxChar(80); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixSearchView.java | 278 |
edu/columbia/rascal/presentation/consent/pages/ConsentProtocolSearchView.java | 156 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaReportStatusDateRangeView.java | 287 |
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 261 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 340 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 260 |
edu/columbia/rascal/presentation/lab/pages/HzAppendixHeaderSearchView.java | 158 |
CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", " Search "); v.add(pb1); v.addElement(space); CUHtmlTable aTable = new CUHtmlTable(); aTable.addRowFor((Vector) v.clone()); aTable.setBorderWidth(0); aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("60%"); aTable.getCell(0, 1).setAlign("RIGHT"); // aTable.getCell(0,2).setWidth("40%"); aTable.getCell(0, 1).setAlign("LEFT"); aTable.addBreaks(2); return aTable; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAbstractServlet.java | 299 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractServlet.java | 160 |
edu/columbia/rascal/presentation/irb/servlets/IrbAbstractServlet.java | 126 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 167 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractPopupServlet.java | 76 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 133 |
(new CURascalErrorMessageView(e, "doGet() " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * @see edu.columbia.rascal.presentation.common.CURascalVapServlet#doPost(javax.servlet.http.HttpServletRequest, * javax.servlet.http.HttpServletResponse) */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { setRequest(req); setResponse(res); setRedirectUrl(null); getLineParameters().clear(); setLineParameters(getRequest().getQueryString()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAcknowledgementServlet.java | 196 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixReleaseServlet.java | 156 |
default: return true; } } /** * @2005 Copyright Columbia University - RASCAL. All Rights Reserved. * * @param anAppendixLetter TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getAppendixEditServletName(String anAppendixLetter) { switch (anAppendixLetter.charAt(0)) { case 'A': return AppendixAServlet.class.getName(); case 'B': return AppendixBServlet.class.getName(); case 'C': return AppendixCServlet.class.getName(); case 'D': return AppendixDServlet.class.getName(); case 'E': return AppendixEServlet.class.getName(); case 'F': return AppendixFServlet.class.getName(); case 'G': return AppendixGServlet.class.getName(); |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixDeleteServlet.java | 177 |
edu/columbia/rascal/presentation/user/servlets/CURascalUserAbstractServlet.java | 137 |
} catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2002 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ @Override public CURascalHtmlView getPage() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixIContrSubsEntryServlet.java | 255 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixLocationEntryServlet.java | 195 |
PrintWriter out = null; try { out = getResponse().getWriter(); } catch (IOException io) { log.error(io); } out.println("<html> <body"); out.println("onLoad=\"opener.location.href=opener.location.href;window.close();\">"); out.println("</body> </html>)"); out.close(); } private String classNameWithoutPrefix() { String fullClassName = getAppendix().getClass().getName(); int index = fullClassName.lastIndexOf("Rascal"); String className = fullClassName.substring(index + "Rascal".length()); return className; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/common/CURascalServlet.java | 347 |
edu/columbia/rascal/presentation/common/views/CURascalHtmlView.java | 781 |
} /** * TODO: DOCUMENT ME! * * @param aString TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getMethodNameFrom(String aString) { String methodName = ""; StringTokenizer st = new StringTokenizer(aString); int i = 0; while (st.hasMoreTokens()) { String ct = st.nextToken(); i = i + 1; if (i == 1) { methodName = ct.toLowerCase(); } else { String word = ct.substring(0, 1).toUpperCase() + ct.substring(1).toLowerCase(); methodName = methodName + word; } } return methodName; } /** * This method constructs a string to be passed as line parameters in a redirect to this * servlet. * * <p>The following request parameters (from hidden fields in the form) are referenced: * "targetpage" - main frame servlet to execute "linkframe" - link frame servlet execute * "newwindowscript" - Javascript to execute "newname" - window name when * "newwindowscript"="openNew" "newparms" - window parms when "newwindowscript"="openNew" * "windowmessage" - message to display when "newwindowscript"="rascalConfirmWindow"</p> * * <p>created: 11/12/03 bw</p> * * @return TODO: DOCUMENT ME! */ public String getParmStringForLinkFrame() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentControlEntryView.java | 263 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaControlEntryView.java | 232 |
ConsentAccessControl cc = ServiceLocator.getConsentAccessControlService().findById(Long .parseLong(theOid) ); return getSingleSelectWidgetFor(list, cc.getEditView()); } } /** * TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getOid() { return theOid; } /** * This method was created in VisualAge. * * @return boolean */ public boolean getPassKerberos() { return passKerberos; } /** * TODO: DOCUMENT ME! * * @param aUni TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getRascalUniWidget(String aUni) { CUHtmlText t = new CUHtmlText(aUni); t.setFontName(getDefaultFontName()); t.setIsBold(true); return t; } /** * TODO: DOCUMENT ME! * * @param newValue TODO: DOCUMENT ME! */ public void setOid(String newValue) { this.theOid = newValue; } /** * This method was created in VisualAge. * * @param newValue boolean */ public void setPassKerberos(boolean newValue) { this.passKerberos = newValue; } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/consent/pages/ConsentLogoFrameView.java | 89 |
edu/columbia/rascal/presentation/user/views/CUInfoLogoFrameView.java | 96 |
); add("<a href=\"" + HipaaMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">HIPAA Forms</font></a>\n| " ); add("<a href=\"" + AppendixMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">Haz Mats</font></a>\n| " ); add("<a href=\"" + AdminMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">Administration</font></a>\n| " ); add("<a href=\"" + TCMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">Training Center</font></a>\n| " ); add("<a href=\"" + "/coi" + "\" target=\"_top\"><font color=\"#0000FF\">Conflict of Interest</font></a>\n| " ); add("<a href=\"" + MyRascalMainServlet.class.getName() + "\" target=\"_top\"><font color=\"#0000FF\">My Rascal</font></a>\n" ); add("</font>\n</td>\n</tr>\n"); add("</tbody>\n</table>\n"); add("</td>\n</tr>\n"); add("</table>\n\n"); add("<script src=\"/javascript/sessionTimersFrames.js\" type=\"text/javascript\"></script>"); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/iacuc/IacucApprovedProtocolWithPainRptController.java | 115 |
edu/columbia/rascal/presentation/controller/iacuc/IacucApprovedProtocolWithPainRptController.java | 128 |
if (locs.size()==0){ Map<String, Object> map = new HashMap<String, Object>(); map.put("protocolNumber", one.getProtocolNumberForDisplay()); map.put("headerOid", one.getId().toString()); map.put("title", one.getProtocolTitle()); map.put("dept", one.getSponsorDeptName()); map.put("species", one.getSpeciesName()); map.put("painCategory", one.getMaximumPain()); map.put("location", ""); |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/irb/IrbPrintMenuController.java | 655 |
edu/columbia/rascal/presentation/controller/irb/IrbProtocolHipaaController.java | 111 |
List<HipaaHeader> hipaaHeaderList = hipaaHeaderService.findByIrbProtocolOid(protocol.getId()); for (HipaaHeader hipaaHeader : hipaaHeaderList) { Map<String, Object> map = new HashMap<String, Object>(); HipaaHeaderForm form = hipaaHeader.getHipaaHeaderForm(); map.put("id", hipaaHeader.getId()); map.put("hipaaType", form.getTemplateName()); map.put("title", hipaaHeader.getTitle()); map.put("status", hipaaHeader.getCurrentStatus()); map.put("hipaaNumberDisplay", hipaaHeader.getHipaaNumber()); jsonDataList.add(map); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/controller/pt/PtBudgetController.java | 76 |
edu/columbia/rascal/presentation/controller/pt/PtGeneralInformationController.java | 86 |
@Resource private RascalUserService rascalUserService; // ~ Methods ------------------------------------------------------------------------------------ private String checkApprovers(PtProposalHeader proposal) { int count = 0; int size = 0; if (proposal != null && proposal.getId() != null) { final Set<PtApproval> ptApprovals = proposal.getPtApprovals(); for (final PtApproval ptApproval : ptApprovals) { if (ptApproval != null && ptApproval.getApprovedOn() != null) { count++; } } size = ptApprovals.size(); } if (count > 0 && count == size) return "All Approvers Have Signed<br/>"; else return ""; } /** * TODO: DOCUMENT ME! * * @param model id TODO: DOCUMENT ME! * @param trakId TODO: DOCUMENT ME! * @return TODO: DOCUMENT ME! */ @ModelAttribute("ptBudget") |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormEmbeddedQuestionEntryView.java | 177 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionEntryView.java | 172 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionChildEntryView.java | 162 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionEntryView.java | 171 |
((CUHtmlRadioButton) (radioGroup.elementAt(3))).setChecked(true); break; } default: { break; } } // radio button group label columns.setElementAt(radioGroup.elementAt(0), 1); aTable.addRowFor(columns); aTable.getCell(row, 0).add(getRowLabelFor("Format of the intended answer ")); aTable.getCell(row, 1).setColumnsToSpan(3); row++; columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } /* * // No Answer (default) * columns.setElementAt((CUHtmlRadioButton)radioGroup.elementAt(1),1); * aTable.addRowFor(columns); aTable.getCell(row,1).setColumnsToSpan(3); row++; */ // Short String columns.setElementAt(radioGroup.elementAt(0), 1); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaFormQuestionView.java | 184 |
edu/columbia/rascal/presentation/hipaa/pages/HipaaHeaderFormQuestionSetUpView.java | 212 |
aTable.setCellSpacing(2); aTable.setAlign("center"); // Add general fields: addGeneralRows(aTable); getForm().add("<BR>"); getForm().add(aTable); getForm().add("<BR>"); addDivisionRows(); getForm().add("<BR>"); add(getForm()); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! */ public void addGeneralRows(CUHtmlTable aTable) { Vector columns = new Vector(2); for (int c = 0; c < 2; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaHeaderCreateServlet.java | 150 |
edu/columbia/rascal/presentation/hipaa/servlets/HipaaHeaderCreateServlet.java | 213 |
templateQuestion = (HipaaQuestionLookup) topLevelQuestionList.nextElement(); headerQuestion = headerForm.newQuestion(); headerQuestion.setAnswerable(templateQuestion.getAnswerable()); headerQuestion.setAnswerFormat(templateQuestion.getAnswerFormat()); headerQuestion.setAnswerRequired(templateQuestion.getAnswerRequired()); headerQuestion.setHelpFileName(templateQuestion.getHelpFileName()); headerQuestion.setNotQuestion(templateQuestion.getNotQuestion()); headerQuestion.setQuestionEditable(templateQuestion.getQuestionEditable()); headerQuestion.setQuestionPrompt(templateQuestion.getQuestionPrompt()); headerQuestion.setQuestionText(templateQuestion.getQuestionText()); headerQuestion.setSequenceNo(templateQuestion.getSequenceNo()); |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/tools/HipaaGeneralEmailMessage.java | 61 |
edu/columbia/rascal/presentation/irb/tools/IrbGeneralEmailMessage.java | 66 |
public HipaaGeneralEmailMessage(String toName, String toAddress, String fromName, String subjectLine, String message, String dbLocation ) { super(toName, toAddress, fromName, FROM_EMAIL, subjectLine, message + EMAIL_STANDARD_FOOTER_TEXT ); if (!dbLocation.equals("was_rascal")) { setMessage(TEST_MESSAGE_TEXT + getMessage()); } else { setMessage("\n" + getMessage()); } } //~ Methods ------------------------------------------------------------------------------------ /** * IrbEmailMessage constructor comment. * * @param toName TODO: DOCUMENT ME! * @param toAddress TODO: DOCUMENT ME! * @param toUni TODO: DOCUMENT ME! * @param subjectLine TODO: DOCUMENT ME! * @param message TODO: DOCUMENT ME! * @param dbLocation TODO: DOCUMENT ME! */ public static void sendEmail(String toName, String toAddress, String toUni, String subjectLine, String message, String dbLocation ) { CURascalEmailMessage email = null; try { email = new HipaaGeneralEmailMessage(toName, toAddress, subjectLine, message, dbLocation |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 2162 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 1218 |
} /** @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getRuler() */ @Override public CUHtmlRuler getRuler() { return new CUHtmlRuler(); } /** * TODO: DOCUMENT ME! * * @param items TODO: DOCUMENT ME! * @param selectedItem TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public Object getSingleSelectWidgetFor(EVector items, String selectedItem) { EVector v = null; if (selectedItem.equals("") || (selectedItem == null)) { return new CUHtmlList(items, getLabelName(), "1", false); } else { v = new EVector(1); v.add(selectedItem); return new CUHtmlList(items, getLabelName(), "1", false, v); } } /** * @see edu.columbia.rascal.presentation.common.views.CURascalHtmlView#getSingleSelectWidgetFor(java.util.Vector, * int) */ @Override public Object getSingleSelectWidgetFor(Vector items, int selectedIndex) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionStatusView.java | 284 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsStatusView.java | 292 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDepartmentStatusView.java | 328 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportStatusView.java | 388 |
} /** * This method was created in VisualAge. * * @return boolean */ public boolean getDownloadable() { return downloadable; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return java.lang.String */ public String getEndDate() { return endDate; } /** * This method was created in VisualAge. * * @param columns TODO: DOCUMENT ME! * * @return Vector */ public Vector getKeywordListForColumns(Vector columns) { Vector keyList = new Vector(15); keyList.addElement(""); for (int i = 0; i < columns.size(); i++) { keyList.addElement(columns.elementAt(i)); } return keyList; } /** * getPrintable. * * @return getPrintable. */ public boolean getPrintable() { return printable; } /** * getPrintable. * * @return getPrintable. */ public String getSortBy() { if (sortBy == null) sortBy = ""; return sortBy; } /** * TODO: DOCUMENT ME! * * @param queueName TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public String getUrlToPrintReport(String queueName) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/pages/HzAppendixViewCorrespondenceView.java | 271 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceCreateView.java | 255 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceDispositionView.java | 345 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceToReviewView.java | 218 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("2"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("100%"); t.getCell(0, 0).setAlign("right"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * Insert the method's description here. Creation date: (1/5/2006 2:55:58 PM) * * @param newAppendixHeader TODO: DOCUMENT ME! */ public void setAppendixHeader(HzAppendixHeader newAppendixHeader) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterMemberView.java | 137 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterView.java | 150 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedInView.java | 133 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportLoggedOutView.java | 137 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportSignoffView.java | 180 |
if (!getPrintable()) { CUHtmlTable bTable = getTable(1, 1); bTable.setBorderWidth(0); bTable.setAlign("center"); bTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton( "BUTTON", "BUTTON", "Return", "parent.frames[2].location='" + PtReportAdministrativeMenuServlet.class.getName() + "';" ); getForm().add("<BR>"); getForm().add("<BR>"); bTable.add(pb1); getForm().add(bTable); } add(getForm()); render(); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @param rows TODO: DOCUMENT ME! */ public void addGeneralInformation(Vector rows) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCAccessControlServlet.java | 30 |
edu/columbia/rascal/presentation/tc/servlets/TCAddTestScoresServlet.java | 41 |
edu/columbia/rascal/presentation/tc/servlets/TCDivisionServlet.java | 30 |
edu/columbia/rascal/presentation/tc/servlets/TCReferenceServlet.java | 30 |
edu/columbia/rascal/presentation/tc/servlets/TCRequiredCourseServlet.java | 30 |
public TCAccessControlServlet() { super(); setIsEdit(true); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * <p>@2000 Copyright Columbia University - RASCAL. All Rights Reserved.</p> * * @return java.lang.String */ @Override public TCHtmlView getPage() { TccourseHeader tch = null; String courseId = getLineParameter("courseId"); Long oid = null; if (courseId != null) { try { oid = Long.parseLong(courseId); } catch (Exception e) { } if (oid != null) tch = ServiceLocator.getTccourseHeaderService().getById(oid); if (tch == null) { return new TCMessageView("Invalid Course ID: " + courseId); } else { setCourseHeader(tch); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportByDeptAndLocationView.java | 162 |
edu/columbia/rascal/presentation/tc/views/TCReportByDeptView.java | 158 |
edu/columbia/rascal/presentation/tc/views/TCReportEHSExceptionByTestView.java | 158 |
TCReportDeptSelectionForTestLocationServlet.class.getName() + "'" ); bTable.add(pb1); getForm().add(bTable); } setBgColor("white"); add(getForm()); } //~ Methods ------------------------------------------------------------------------------------ /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText addDate() { String today = new java.util.Date().toString(); CUHtmlText date = new CUHtmlText(today); date.setFontSize("-1"); date.setIsBold(true); date.setAlignment("center"); date.setFontName(getDefaultFontName()); return date; } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. */ @Override public void addHeader() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/administration/views/AdminHtmlView.java | 585 |
edu/columbia/rascal/presentation/user/views/CuHtmlView.java | 244 |
} /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlText getSubTitle() { subTitle.setFontName(getDefaultFontName()); return subTitle; } /** * This method was created in VisualAge. * * @param rows int - the number of required rows * @param cells int - the number of cell within each row * * @return edu.columbia.rascal.presentation.fo.alertService.html.CUHtmlTable */ @Override public CUHtmlTable getTable(int rows, int cells) { int rowsCounter; Vector v = new Vector(); for (rowsCounter = 1; rowsCounter <= rows; rowsCounter++) { CUHtmlTableRow aRow = new CUHtmlTableRow(); int cellCounter; for (cellCounter = 1; cellCounter <= cells; cellCounter++) { aRow.add(new CUHtmlTableCell()); } v.addElement(aRow); } return (new CUHtmlTable(v)); } /** * This method was created in VisualAge. * * @param data String * * @return CUHtmlText */ public CUHtmlText getTableCellData(String data) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/agenda/pages/IrbMeetingAttendantEntryView.java | 216 |
edu/columbia/rascal/presentation/consent/pages/ConsentContactEntryView.java | 240 |
edu/columbia/rascal/presentation/consent/pages/ConsentControlEntryView.java | 204 |
public void addMessageRows() { } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); if (getAllowEdit()) { String addOrEdit = "Save"; if (theOid == null) addOrEdit = "Add"; CUHtmlPushButton pb2 = new CUHtmlPushButton("BUTTON", "SUBMIT", addOrEdit, "submitForm(this.form)" ); CUHtmlTableCell aCell2 = aTable.getCell(0, 0); aCell2.add(pb2); } return aTable; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return edu.columbia.rascal.presentation.presentation.tools.htmlGen.CUHtmlForm */ public final CUHtmlForm getAForm() { return aForm; } /** * This method was created in VisualAge. @1999 Copyright Columbia University - RASCAL. All * Rights Reserved. * * @return this method was created in VisualAge. */ public CURascalNavigationBarView getNavigationBar() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixLabCorrespondenceCreateView.java | 384 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceRespondView.java | 657 |
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceReturnOrApproveCreateView.java | 524 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceDispositionView.java | 345 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceRespondView.java | 335 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceToReviewView.java | 218 |
Vector v = new Vector(2); CUHtmlText txt = new CUHtmlText(aLabel); txt.setFontName(getDefaultFontName()); txt.setFontSize("2"); txt.setIsBold(true); txt.setAlignment("right"); v.addElement(txt); v.addElement(getHelpFor(source)); // get the CUHtmlImage and link t.addRowFor(v); t.getCell(0, 0).setWidth("100%"); t.getCell(0, 0).setAlign("right"); t.setCellSpacing(0); t.setCellPading(0); return t; } /** * TODO: DOCUMENT ME! * * @param aSubHeader TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public CUHtmlText getSubHeader(String aSubHeader) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 254 |
edu/columbia/rascal/presentation/appendix/pages/AppendixMessageView.java | 300 |
((CUHtmlMultiLineText) message).setMaxChar(80); } else { message = new CUHtmlText(aMessage); } message.setFgColor("navy"); message.addBreaks(2); // message.setFontSize("+1"); message.setFontName(getDefaultFontName()); setForm(new CUHtmlForm("Form1", AppendixMessageServlet.class.getName(), "GET")); CUHtmlPushButton pb = new CUHtmlPushButton("BUTTON", "Return", "Return", "JavaScript:history.back()" ); pb.addBreaks(2); add(title); add(message); getForm().add(pb); add(getForm()); } /** * FoasUnimplementedMessageView constructor comment. * * @param aMessage TODO: DOCUMENT ME! * @param isUsingMultiLineText TODO: DOCUMENT ME! * @param maximumChars TODO: DOCUMENT ME! */ public AppendixMessageView(String aMessage, boolean isUsingMultiLineText, int maximumChars) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/appendix/servlets/AppendixAccessControlRemoveServlet.java | 81 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixAuthorizedPersonRemoveServlet.java | 84 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixChemicalRemoveServlet.java | 114 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixIsotopeRemoveServlet.java | 87 |
edu/columbia/rascal/presentation/appendix/servlets/AppendixLocationRemoveServlet.java | 95 |
edu/columbia/rascal/presentation/common/RascalStaticSubmitFormServlet.java | 100 |
edu/columbia/rascal/presentation/lab/servlets/HzAppendixHeaderCheckSubmitServlet.java | 161 |
edu/columbia/rascal/presentation/lookup/servlets/RascalLookupAbstractServlet.java | 90 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 90 |
edu/columbia/rascal/presentation/user/servlets/CURascalUserAbstractServlet.java | 83 |
} else ts.setRollbackOnly(); } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/pages/HipaaNotesView.java | 124 |
edu/columbia/rascal/presentation/irb/pages/IrbNotesView.java | 202 |
edu/columbia/rascal/presentation/irb/pages/IrbRemoveExemptView.java | 178 |
public void addNewNote(CUHtmlTable bTable, int numCells) { Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = bTable.elements.size(); Object aWidget; String newNotes = ""; aWidget = getRowLabelLeftFor("New Notes"); columns.setElementAt(aWidget, 0); bTable.addRowFor(columns); row++; aWidget = getMultilineTextWidgetFor("", "newNotes"); columns.setElementAt(aWidget, 0); bTable.addRowFor(columns); } |
File | Line |
---|---|
edu/columbia/rascal/presentation/hipaa/servlets/HipaaAbstractPopUpServlet.java | 87 |
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 162 |
ts.setRollbackOnly(); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 3264 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4062 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 4445 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5365 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5452 |
edu/columbia/rascal/presentation/irb/jdbc/IrbQueueQuery.java | 5747 |
aBuffer.append(") Order by e.statusDate "); CURascalJdbcAccessorService acc = ServiceLocator.getCURascalJdbcAccessorService(); try { java.sql.ResultSet res = acc.executeQuery(aBuffer.toString()); while (res.next()) { // this row /* (1) protocol header oid * (2) protocolNumber (3) title (4) PI last name (5) statud date * (6) protocol oid (7) committee name (8) times in count (9) * originating department (10) exempt flag */ row.addElement(Integer.valueOf((new Float(res.getFloat(1))).intValue()).toString()); // oid row.addElement(res.getString(2)); // protocol number row.addElement(res.getString(3)); // protocol title row.addElement(res.getString(4)); // PI name last |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/HzAttestationSearchView.java | 74 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 89 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolAdminChairSearchView.java | 149 |
edu/columbia/rascal/presentation/irb/pages/IrbProtocolSearchView.java | 73 |
CUHtmlText txt1 = new CUHtmlText( "To retrieve all protocols that you have access to, simply press" ); txt1.setFontName(getDefaultFontName()); txt1.setIsBold(true); txt1.setFontSize("2"); getAForm().add(txt1); CUHtmlPushButton pb1 = new CUHtmlPushButton("SUBMIT", "SUBMIT", " Search "); getAForm().add(pb1); CUHtmlText txt2 = new CUHtmlText( "                OR to narrow down your results, include any of the fields below:" ); txt2.setFontName(getDefaultFontName()); txt2.setFontSize("-2"); txt2.addBreaks(2); getAForm().add(txt2); getAForm().add("<BR> <BR>"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbConfirmView.java | 60 |
edu/columbia/rascal/presentation/propTrak/pages/PtConfirmView.java | 164 |
public CUHtmlTable getActionButtons(String refreshLink) { CUHtmlTable aTable = getTable(1, 2); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("30%"); CUHtmlPushButton pb1 = new CUHtmlPushButton("BUTTON", "Proceed", "Proceed", refreshLink); CUHtmlTableCell aCell1 = aTable.getCell(0, 0); aCell1.add(pb1); CUHtmlPushButton pb2 = new CUHtmlPushButton("BUTTON", "Cancel", "Cancel", "JavaScript:history.back()" ); CUHtmlTableCell aCell2 = aTable.getCell(0, 1); aCell2.add(pb2); return aTable; } |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbCorrespondenceDispositionView.java | 688 |
edu/columbia/rascal/presentation/propTrak/pages/PtCorrespondenceDispositionView.java | 523 |
i.setOnClick("return openNew('" + IrbCorrespondenceRespondServlet.class.getName() + "?correspondenceOid=" + getCorrespondence().getId() + "&&recipientOid=" + theRecipientOid + "&&" + lineParams + "','AddRespondCorrespondence','toolbar=no,scrollbars=yes,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,width=600,height=450')"); CUHtmlTableCell cell2 = new CUHtmlTableCell(); cell2.add(i); cell2.setAlign("center"); aRow.add(cell2); CUHtmlTableCell cell3 = new CUHtmlTableCell(); cell3.add(getRowLabelLeftFor("(will remove from queue)")); aRow.add(cell3); setOnLoad(""); aTable.getCell(0, 0).setWidth("40%"); aTable.getCell(0, 1).setWidth("5%"); aTable.getCell(0, 2).setWidth("55%"); aTable.add(aRow); } /** * TODO: DOCUMENT ME! * * @param aTable TODO: DOCUMENT ME! * @param rowLabel TODO: DOCUMENT ME! * @param lineParams TODO: DOCUMENT ME! */ public void setRespondLinkForAdmin(CUHtmlTable aTable, String rowLabel, String lineParams) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbHtmlView.java | 82 |
edu/columbia/rascal/presentation/propTrak/pages/PtHtmlView.java | 73 |
public IrbHtmlView() { super(); } //~ Methods ------------------------------------------------------------------------------------ /** * TODO: DOCUMENT ME! * * @param aString TODO: DOCUMENT ME! * * @return TODO: DOCUMENT ME! */ public static String replaceHtmlTagsForControls(String aString) { if (aString != null) { StringBuffer aBuffer = new StringBuffer(); int strLength = aString.length(); for (int i = 0; i < strLength; i++) { char aChar = aString.charAt(i); if (aChar == '<') { aBuffer = aBuffer.append("<"); } else { aBuffer = aBuffer.append(aChar); } } return aBuffer.toString(); } return ""; } /** TODO: DOCUMENT ME! */ public void addFontString() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerForChairView.java | 369 |
edu/columbia/rascal/presentation/irb/pages/IrbQueueReviewerForChairView.java | 541 |
aRow = new CUHtmlTableRow(columns.clone()); aRow.setBgColor(getQueueGeneratedRowColor(i)); aTable.add(aRow); columns = new Vector(11); // clear out the values.... } } aTable.getCell(0, 1).setWidth("10"); aTable.getCell(0, 2).setWidth("10"); aTable.getCell(0, 3).setWidth("10"); aTable.getCell(0, 7).setVAlign("top"); aTable.getCell(0, 8).setVAlign("top"); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsDateRangeView.java | 117 |
edu/columbia/rascal/presentation/irb/pages/IrbReportClinicalTrialsFirstSubmissionDateRangeView.java | 113 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportDeptDateRangeView.java | 152 |
public void addGeneralRows(CUHtmlTable aTable, int numCells) { Calendar start = Calendar.getInstance(); start.add(Calendar.MONTH, -6); // Go back 6 months String startDate = CalendarTransformer.toString(start); String endDate = CalendarTransformer.toString(Calendar.getInstance()); Vector columns = new Vector(numCells); for (int c = 0; c < numCells; c++) { columns.addElement(""); } int row = aTable.elements.size(); Object aWidget; aTable.setCellSpacing(15); aWidget = getWidgetFor("You may select a date range of up to 6 months in length."); |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/pages/IrbReportDeviceStudyView.java | 459 |
edu/columbia/rascal/presentation/irb/pages/IrbReportDrugDeviceStudyView.java | 465 |
Vector columns = keyList.getColumnNames(); StringBuilder html = new StringBuilder(0); Hashtable hash = null; for (int i = 3; i < size; i++) { newRow = false; hash = (Hashtable) aPackage.elementAt(i); if (!used.contains(hash.get(keyList.elementAt(1)))) { counter++; html.append( "<table cellspacing=\"0\" width=\"98%\">\n<tbody>\n<tr><td bgcolor=\"#ffffff\" align=\"right\" valign=\"top\" width=\"0%\">" ); html.append("<font face=\"Verdana\"><b>").append(counter).append(".)</b></font>"); html.append( "</td><td bgcolor=\"#ffffff\" align=\"left\" valign=\"top\" width=\"100%\"><table bgcolor=\"#9999ff\" cellspacing=\"1\" width=\"100%\">\n<thead>\n<tr>" ); for (int j = 0; j < columns.size(); j++) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/irb/servlets/IrbCorrespondenceReturnOrApproveCreateServlet.java | 1259 |
edu/columbia/rascal/presentation/irb/servlets/IrbNotesServlet.java | 355 |
NOT_HUMAN_SUBJECTS_RESEARCH_UNDER45CFR46); } /** * todo: DOCUMENT ME! * * @param aName * todo: DOCUMENT ME! * @param aOid * todo: DOCUMENT ME! */ protected void setReturn(String aName, String aOid) { // save status IrbStatus tracking = getParentObject(aName, aOid).newStatus(); tracking.setWhoRid(getUser().getId()); tracking.setStatusToday(); // set status tracking.setStatusReturned(); ServiceLocator.getIrbStatusService().save(tracking); // set all approval date to null if (aName.equals(IrbNameConstants.PROTOCOL_HEADER)) { IrbProtocolHeader header = ServiceLocator .getIrbProtocolHeaderService().findById( Long.parseLong(aOid)); ServiceLocator.getIrbProtocolHeaderService() .clearApprovalsForReturnOrPend(header); } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/lab/servlets/HzAbstractServlet.java | 162 |
edu/columbia/rascal/presentation/user/servlets/CUInfoAbstractServlet.java | 145 |
edu/columbia/rascal/presentation/user/servlets/RuAbstractServlet.java | 115 |
ts.setRollbackOnly(); } } catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, "Exception " + getClassName())).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } /** * This method was created in VisualAge. @2000 Copyright Columbia University - RASCAL. All * Rights Reserved. * * <p>Override the doGet in CURascalVAPServlet and CURascalServlet. I am not happy with the * behavior implemented in those classes</p> * * <p>hh 3/2/00</p> * * <p>sometime in the future, those superclassed methods will be reworked, but i need to get * around them NOW!</p> * * @param req TODO: DOCUMENT ME! * @param res TODO: DOCUMENT ME! */ @Override public void doPost(HttpServletRequest req, HttpServletResponse res) { |
File | Line |
---|---|
edu/columbia/rascal/presentation/lookup/pages/RascalActivityTypeLookupInputView.java | 78 |
edu/columbia/rascal/presentation/lookup/pages/RascalDepartmentLookupInputView.java | 94 |
CUHtmlEntryField aCodeEntryField = new CUHtmlEntryField("codeID", "4", "4"); aCodeEntryField.setOnKeyPress("return restrictFieldToAlphaNumericCharacters(event)"); rowVector.setElementAt(aCodeEntryField, 1); anInputTable.addRowFor(rowVector); getForm().add(aHeader); getForm().add(anInputTable); getForm().add(getActionButtons()); add(getForm()); } /** * This method was created in VisualAge. * * @return this method was created in VisualAge. */ public CUHtmlTable getActionButtons() { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("0"); if (getAllowEdit()) { CUHtmlPushButton pb2 = new CUHtmlPushButton("BUTTON", "SearchBtn", "Search", |
File | Line |
---|---|
edu/columbia/rascal/presentation/myRascal/servlets/MyRascalProposalSearchServlet.java | 83 |
edu/columbia/rascal/presentation/propTrak/servlets/PtProposalSearchServlet.java | 186 |
} catch (IOException ex) { } return; } if ((results != null) && (!results.isEmpty())) { getSession().setAttribute("searchResults", results); if (results.size() < range) view = new PtProposalResultsDisplayView(results, 1, results.size()); else view = new PtProposalResultsDisplayView(results, offset, range ); } else view = new PtProposalResultsDisplayView(new Vector<Object>()); view.draw(getResponse()); } /** @see edu.columbia.rascal.presentation.common.CURascalServlet#validateGet() */ @Override protected boolean validateGet() { |
File | Line |
---|---|
edu/columbia/rascal/presentation/propTrak/pages/PtCoiReportView.java | 88 |
edu/columbia/rascal/presentation/propTrak/pages/PtReportCancerCenterView.java | 87 |
form.add("<br>"); } if (!getPrintable()) { CUHtmlTable aTable = getTable(1, 1); aTable.setBorderWidth(0); aTable.setAlign("center"); aTable.setWidth("100%"); CUHtmlTableRow aRow = new CUHtmlTableRow(); CUHtmlTableCell aCell1 = new CUHtmlTableCell(); aCell1.setColumnsToSpan(2); aCell1.add(getInstruction(instruction)); aRow.add(aCell1); aTable.add(aRow); aRow = new CUHtmlTableRow(); aCell1 = new CUHtmlTableCell(); aCell1.add( getSortHeaderForColumnNames(getKeywordListForColumns(), "A", getSortBy()) |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 129 |
edu/columbia/rascal/presentation/tc/servlets/TCAbstractServlet.java | 184 |
} catch (Exception e) { ts.setRollbackOnly(); log.error("Got Exception", e); (new CURascalErrorMessageView(e, req.getMethod() + " " + getClassName() )).draw(getResponse()); } finally { if (!ts.isCompleted()) { if (ts.isRollbackOnly()) { log.info("transaction is marked for rollback"); tm.rollback(ts); } else tm.commit(ts); } else { log.error("transaction has already completed."); } } } |
File | Line |
---|---|
edu/columbia/rascal/presentation/tc/views/TCReportCourseAdminView.java | 235 |
edu/columbia/rascal/presentation/tc/views/TCReportTestQuestionStatsView.java | 219 |
Hashtable<String, Object> currentRow; Vector<Object> dataRow = new Vector<Object>(); Vector<Object> columnHeader = ((CUSortVector) rows).getColumnNames(); for (int n = 0; n < columnHeader.size(); n++) { String column = (String) columnHeader.elementAt(n); if (!column.trim().equals("")) dataRow.addElement(getWidgetFor(column)); } t.addRowFor(dataRow); for (int n = 0; n < rows.size(); n++) { |