/**
  * 初始化评委
  *
  * @param dataDom
  * @addTime 2014-3-19 下午02:30:01
  * @author Libo
  */
 private void initEvalSel(DataDom dataDom) {
   Table table = dataDom.getTable("YXPBPFLIN");
   String PBPF_NO = table.getSafeRowColumnValue("PBPF_NO");
   String pfTyp = table.getSafeRowColumnValue("PF_TYP");
   String prjl_no = table.getSafeRowColumnValue("PRJL_NO");
   Select select = dataDom.getExtend().getSelect("evalSelector");
   select.getOptions().clear();
   if ("A".equals(pfTyp)) {
     select.addOption(new Option("无评委", "-1"));
   } else if ("B".equals(pfTyp)) {
     creatSel(
         select,
         "select EVAL_PERS_NAM,EVAL_PERS_NO from YXPJEVALPERSMST where EVAL_PERS_NO in(select EVAL_PERS_NO from YXHSPWLIN where PRJ_NO=(SELECT PRJ_NO FROM YXPBPFMST WHERE PBPF_NO = '"
             + PBPF_NO
             + "') and PRJL_NO='"
             + prjl_no
             + "' and EVAL_TYP='B')",
         false,
         false);
   }
 }
Exemple #2
0
 public void initData(DataDom dataDom, SessionInfo sessionInfo, ServiceRequest serviceRequest) {
   Table table = dataDom.getRootTable();
   Row row = table.getRow(0L);
   if (row == null) {
     row = new Row(false, 0, 0, "new");
     table.addRow(row);
   }
   String pkValue = table.getPkValue();
   if ((pkValue == null) || ("".equals(pkValue)) || ("-1".equals(pkValue))) {
     String STA = table.getSafeRowColumnValue("DBJY_STA");
     if ("".equals(STA)) {
       table.getSafeRow().addColumn("DBJY_EXT01", sessionInfo.getUserId());
       table.setSafeRowColumnValue("DBJY_STA", "00");
     }
   }
 }