コード例 #1
0
ファイル: Logic.java プロジェクト: HobbesFNM/openMAXIMS
 private void initializeDynamicGrid() {
   form.dyngrdProcedures().clear();
   form.dyngrdProcedures().controlCanFire(true);
   DynamicGridColumn cabColumn = form.dyngrdProcedures().getColumns().newColumn(COLUMN_PROC);
   cabColumn.setCaption("Procedure");
   cabColumn.setIdentifier(COLUMN_PROC);
   cabColumn.setWidth(-1);
   cabColumn.setVisible(true);
 }
コード例 #2
0
  private void createDynamicGridResults() {

    form.dyngrdResults().setSelectable(true);

    // Get default patient identifier
    PatIdType dispIdType =
        PatIdType.getNegativeInstance(ConfigFlag.UI.DISPLAY_PATID_TYPE.getValue());

    DynamicGridColumn column =
        form.dyngrdResults().getColumns().newColumn("Patient Name", COLUMN_PATIENT_NAME);

    column.setWidth(130);
    column.setAlignment(Alignment.LEFT);
    column.setReadOnly(true);
    column.setCanGrow(true);
    column.setSortMode(SortMode.AUTOMATIC);

    column = form.dyngrdResults().getColumns().newColumn(dispIdType.getText(), COLUMN_IDENTIFIER);

    column.setWidth(90);
    column.setAlignment(Alignment.LEFT);
    column.setReadOnly(true);
    column.setCanGrow(true);
    column.setSortMode(SortMode.AUTOMATIC);

    column = form.dyngrdResults().getColumns().newColumn("Urgency", COLUMN_URGENCY);

    column.setWidth(100);
    column.setAlignment(Alignment.LEFT);
    column.setReadOnly(true);
    column.setCanGrow(true);
    column.setSortMode(SortMode.AUTOMATIC);

    column = form.dyngrdResults().getColumns().newColumn("Date on List", COLUMN_DATE_ON_LIST);

    column.setWidth(90);
    column.setAlignment(Alignment.LEFT);
    column.setReadOnly(true);
    column.setCanGrow(true);
    column.setSortMode(SortMode.AUTOMATIC);

    column = form.dyngrdResults().getColumns().newColumn("RTT Breach", COLUMN_RTT_BREACH);

    column.setWidth(90);
    column.setAlignment(Alignment.LEFT);
    column.setReadOnly(true);
    column.setCanGrow(true);
    column.setSortMode(SortMode.AUTOMATIC);

    column = form.dyngrdResults().getColumns().newColumn("Procedure", COLUMN_PROCEDURE);

    column.setWidth(145);
    column.setAlignment(Alignment.LEFT);
    column.setReadOnly(true);
    column.setCanGrow(true);
    column.setSortMode(SortMode.AUTOMATIC);

    column = form.dyngrdResults().getColumns().newColumn("Comments", COLUMN_COMMENTS);
    column.setWidth(-1);
    column.setAlignment(Alignment.LEFT);
    column.setReadOnly(true);
    column.setCanGrow(true);
    column.setSortMode(SortMode.AUTOMATIC);
  }
コード例 #3
0
ファイル: Logic.java プロジェクト: HobbesFNM/openMAXIMS
  private void populateDemoData() {

    DynamicGridColumn columnDescription =
        form.lyrPain()
            .tabPagePainAssessment()
            .dyngrdPain()
            .getColumns()
            .newColumn("Pain Nurse Check", new Integer(1));
    columnDescription.setWidth(350);
    DynamicGridColumn columnDate1 =
        form.lyrPain()
            .tabPagePainAssessment()
            .dyngrdPain()
            .getColumns()
            .newColumn("20/02/2010", new Integer(2));
    columnDate1.setWidth(80);
    DynamicGridColumn columnDate2 =
        form.lyrPain()
            .tabPagePainAssessment()
            .dyngrdPain()
            .getColumns()
            .newColumn("17/03/2010", new Integer(3));
    columnDate2.setWidth(80);
    DynamicGridColumn columnDate3 =
        form.lyrPain()
            .tabPagePainAssessment()
            .dyngrdPain()
            .getColumns()
            .newColumn("30/03/2010", new Integer(4));
    columnDate3.setWidth(80);
    // DynamicGridColumn columnDate4 =
    // form.lyrPain().tabPagePainAssessment().dyngrdPain().getColumns().newColumn("Datix Report",new
    // Integer(4));
    // columnDate3.setWidth(80);

    DynamicGridRow newRow = form.lyrPain().tabPagePainAssessment().dyngrdPain().getRows().newRow();
    newRow.setSelectable(false);
    newRow.setExpanded(true);
    DynamicGridCell newCell = newRow.getCells().newCell(columnDescription, DynamicCellType.STRING);
    newCell.setValue("Problems");
    DynamicGridRow newChild = newRow.getRows().newRow();
    newChild.setSelectable(false);
    newCell = newChild.getCells().newCell(columnDescription, DynamicCellType.STRING);
    newCell.setValue("Nausea/Vomiting");
    newCell.setTooltip("Nausea comment 1");
    newCell = newChild.getCells().newCell(columnDate1, DynamicCellType.BOOL);
    newCell.setValue(true);
    newCell.setTooltip("Nausea comment 1");
    newCell = newChild.getCells().newCell(columnDate2, DynamicCellType.BOOL);
    newCell = newChild.getCells().newCell(columnDate3, DynamicCellType.BOOL);

    newChild = newRow.getRows().newRow();
    newChild.setSelectable(false);
    newCell = newChild.getCells().newCell(columnDescription, DynamicCellType.STRING);
    newCell.setValue("Hypotension");
    newCell = newChild.getCells().newCell(columnDate1, DynamicCellType.BOOL);

    newCell = newChild.getCells().newCell(columnDate2, DynamicCellType.BOOL);
    newCell.setValue(true);
    newCell = newChild.getCells().newCell(columnDate3, DynamicCellType.BOOL);
    newCell.setValue(true);

    newRow = form.lyrPain().tabPagePainAssessment().dyngrdPain().getRows().newRow();
    newRow.setSelectable(false);
    newCell = newRow.getCells().newCell(columnDescription, DynamicCellType.STRING);
    newCell.setValue("Interventions");

    newChild = newRow.getRows().newRow();
    newChild.setSelectable(false);
    newCell = newChild.getCells().newCell(columnDescription, DynamicCellType.STRING);
    newCell.setValue("Antiemetic");
    newCell = newChild.getCells().newCell(columnDate1, DynamicCellType.BOOL);
    newCell.setValue(true);
    newCell = newChild.getCells().newCell(columnDate2, DynamicCellType.BOOL);
    newCell.setValue(true);
    newCell = newChild.getCells().newCell(columnDate3, DynamicCellType.BOOL);

    /*newRow = form.lyrPain().tabPagePainAssessment().dyngrdPain().getRows().newRow();
    newRow.setSelectable(false);
    newCell = newRow.getCells().newCell(columnDescription,DynamicCellType.STRING);
    newCell.setValue("Pain Nurse Checks");

    newChild = newRow.getRows().newRow();
    newChild.setSelectable(false);
    newCell = newChild.getCells().newCell(columnDescription, DynamicCellType.STRING);
    newCell.setValue("Datix Report");
    newCell = newChild.getCells().newCell(columnDate1,DynamicCellType.BOOL);
    newCell.setValue(true);
    newCell = newChild.getCells().newCell(columnDate2,DynamicCellType.BOOL);
    newCell.setValue(true);
    newCell = newChild.getCells().newCell(columnDate3,DynamicCellType.BOOL);*/

    form.lyrPain().tabPageACutePainRefDet().chklistPcaMorphine().newRow("1", "Pca Morphine 1");
    form.lyrPain().tabPageACutePainRefDet().chklistPcaMorphine().newRow("2", "Pca Morphine 2");
    form.lyrPain().tabPageACutePainRefDet().chklistPcaMorphine().newRow("3", "Pca Morphine 3");

    form.lyrPain().tabPagePainAssessment().cmbSelected().newRow("20/02/2010", "20/02/2010");
    form.lyrPain().tabPagePainAssessment().cmbSelected().newRow("17/03/2010", "17/03/2010");
    form.lyrPain().tabPagePainAssessment().cmbSelected().newRow("30/03/2010", "30/03/2010");
  }
コード例 #4
0
  public void initializeGrid() {
    this.grid.clear();
    this.grid.setSelectable(true);

    int do_width = 35;
    int med_dats_width = 50;
    int check_width = 30;
    int offset = hasDischargeInfo() ? do_width + med_dats_width : 0;
    offset = this.checkColumn ? offset + check_width : offset;

    DynamicGridColumn column = this.grid.getColumns().newColumn("Medication / Doses");
    column.setIdentifier(COL_MED_DESC_OR_DOSE);
    // offset/2 + offset/4 + offset/4 = offset -> distribute evenly the width of newly created
    // columns when exists
    column.setWidth(210 - offset / 2);

    column = this.grid.getColumns().newColumn("Route");
    column.setIdentifier(COL_MED_DESC_OR_ROUTE);
    // WDEV-21114
    //		column.setWidth(130 - offset/4);
    column.setWidth(100 - offset / 4);

    column = this.grid.getColumns().newColumn("Frequency/Times");
    column.setIdentifier(COL_MED_FREQ_OR_TIMES);
    column.setWidth(130);

    if (hasDischargeInfo()) {
      column = this.grid.getColumns().newColumn("D.O.");
      column.setIdentifier(COL_MED_DO);
      column.setWidth(do_width);

      column = this.grid.getColumns().newColumn("Days");
      column.setIdentifier(COL_MED_DAYS);
      column.setWidth(med_dats_width);
    }

    column = this.grid.getColumns().newColumn("Commenced By (HCP)");
    column.setIdentifier(COL_MED_COMMENCED_BY);
    column.setWidth(150 - offset / 4);

    column = this.grid.getColumns().newColumn("Commenced Date");
    column.setIdentifier(COL_MED_COMMENCED_DATE);
    column.setWidth(115);

    if (this.checkColumn) {
      column = this.grid.getColumns().newColumn("Copy");
      column.setIdentifier(COL_COPY);
      column.setWidth(check_width);
    }

    column = this.grid.getColumns().newColumn("");
    column.setIdentifier(COL_AUDIT);
    //		column.setWidth(-1);
    column.setWidth(check_width);

    // WDEV-20591
    column = this.grid.getColumns().newColumn("Comment");
    column.setIdentifier(COL_MED_COMMENT);
    column.setWidth(-1);
  }