コード例 #1
0
 @Override
 public void showAddDlg() {
   XfglGeneralDlg dlg = new XfglGeneralDlg(this, Constants.ADD_TYPE);
   if (ksdz) {
     dlg.ENUM_DZFS_comboBox.setSelectedItem(
         KasaEnumFactory.getEnumByName(TableNameConstants.XYXFGL, "ENUM_DZFS", "KSDZ"));
   } else {
     dlg.ENUM_DZFS_comboBox.setSelectedItem(
         KasaEnumFactory.getEnumByName(TableNameConstants.XYXFGL, "ENUM_DZFS", "PTDZ"));
   }
   dlg.pack();
   dlg.setLocationRelativeTo(StorageModule.getMainFrame());
   dlg.setVisible(true);
 }
コード例 #2
0
  public SsfcxMainPane(boolean wlfs_xj) {
    super(
        TableNameConstants.XJSSSF,
        Constants.PROPERTY_FILE_BASE_PATH + "fms/xjgl/ssfcx/NXjsssf_filter.properties",
        Constants.PROPERTY_FILE_BASE_PATH + "fms/xjgl/ssfcx/NXjsssf_table.properties",
        null,
        null,
        null);
    this.wlfs_xj = wlfs_xj;

    List<Condition> filterList = new ArrayList<Condition>();

    Condition condition = new Condition();
    condition.fieldName = "CLRQ";
    condition.fieldDesc = "处理日期";
    condition.operator = Operator.equal.id;
    condition.value.data = new Date();
    condition.isDefault = false;
    filterList.add(condition);

    if (true == this.wlfs_xj) {
      condition = new Condition();
      condition.fieldName = "ENUM_WLFS";
      condition.fieldDesc = "往来方式";
      condition.operator = Operator.equal.id;
      condition.value.data =
          KasaEnumFactory.getEnumByName(
              TableNameConstants.XJSSSF, "ENUM_WLFS", "XJ"); // NXjsssfEnum.ENUM_WLFS.XJ;
      condition.isDefault = true;
      filterList.add(condition);
    }

    this.appendFilterConditon(filterList);

    this.getManagePane().setPageControlButtonsVisible(false);
    this.getManagePane().setPageComboBoxVisible(false);

    List<FieldOrder> fieldOrderList = new ArrayList<FieldOrder>();

    FieldOrder fieldOrder = new FieldOrder();
    fieldOrder.fieldName = "CLRQ";
    fieldOrder.direction = FieldOrder.ASC;

    fieldOrderList.add(fieldOrder);

    fieldOrder = new FieldOrder();
    fieldOrder.fieldName = "CLSJ";
    fieldOrder.direction = FieldOrder.ASC;

    fieldOrderList.add(fieldOrder);

    this.setFieldOrderList(fieldOrderList);

    tablePane.setQueryType(true);
    QUERY_CMDCODE = StorageCmdCode.SSFCX;
  }
コード例 #3
0
  public YskhfyMainPane() {
    super(
        TableNameConstants.YSKH,
        Constants.PROPERTY_FILE_BASE_PATH + "fms/ksdz/xyfy/yskhfy/NYskh_filter.properties",
        Constants.PROPERTY_FILE_BASE_PATH + "fms/ksdz/xyfy/yskhfy/NYskh_table.properties",
        null,
        null,
        null);

    List<Condition> filterList = new ArrayList<Condition>();

    Condition condition = new Condition();
    condition.fieldName = "KHRQ";
    condition.fieldDesc = "考核日期";
    condition.operator = Operator.equal.id;
    condition.value.data = new Date(System.currentTimeMillis());
    condition.isDefault = false;
    filterList.add(condition);

    this.appendFilterConditon(filterList);

    List<OrCondition> orFilterList = new ArrayList<OrCondition>();

    OrCondition orConditon = new OrCondition();
    orConditon.fieldName1 = "ENUM_DZFS";
    orConditon.fieldDesc1 = "对账方式";
    orConditon.operator1 = Operator.equal.id;
    orConditon.value1.data = null; // NULL;

    orConditon.fieldName2 = "ENUM_DZFS";
    orConditon.fieldDesc2 = "对账方式";
    orConditon.operator2 = Operator.equal.id;
    orConditon.value2.data =
        KasaEnumFactory.getEnumByName(
            TableNameConstants.YSKH, "ENUM_DZFS", "KSDZ"); // NYskhEnum.ENUM_DZFS.KSDZ;
    orFilterList.add(orConditon);

    this.appendOrCondition(orFilterList);

    List<FieldOrder> fieldOrderList = new ArrayList<FieldOrder>();

    FieldOrder fieldOrder = new FieldOrder();
    fieldOrder.fieldName = "KHRQ";
    fieldOrder.direction = FieldOrder.DESC;

    fieldOrderList.add(fieldOrder);

    this.setFieldOrderList(fieldOrderList);
  }