Example #1
0
 // +-----------------------------------------------------------------------------------+
 // |								  Serialization										  |
 // +-----------------------------------------------------------------------------------+
 // UPGRADE_TODO: Class 'java.io.ObjectOutputStream' was converted to 'System.IO.BinaryWriter'
 // which has a different behavior.
 // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioObjectOutputStream'"
 public void save(System.IO.BinaryWriter out_Renamed) throws Exception {
   try {
     out_Renamed.Write(m_groups.size());
     for (int i = 0; i < m_groups.size(); i++) {
       // UPGRADE_TODO: Method 'java.io.ObjectOutputStream.writeObject' was converted to
       // 'SupportClass.Serialize' which has a different behavior.
       // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioObjectOutputStreamwriteObject_javalangObject'"
       SupportClass.serialize(out_Renamed, (BoardSetupGroup) m_groups.get(i));
     }
     // UPGRADE_TODO: Method 'java.io.ObjectOutputStream.writeObject' was converted to
     // 'SupportClass.Serialize' which has a different behavior.
     // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioObjectOutputStreamwriteObject_javalangObject'"
     SupportClass.serialize(out_Renamed, m_notes == null ? "" : m_notes);
   } catch (Exception e) {
     throw m_engine.createException(e);
   }
 }
Example #2
0
 // UPGRADE_TODO: Class 'java.io.ObjectInputStream' was converted to 'System.IO.BinaryReader' which
 // has a different behavior.
 // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioObjectInputStream'"
 public void load(System.IO.BinaryReader in_Renamed) throws Exception {
   try {
     int size = in_Renamed.Read();
     for (int i = 0; i < size; i++) {
       // UPGRADE_WARNING: Method 'java.io.ObjectInputStream.readObject' was converted to
       // 'SupportClass.Deserialize' which may throw an exception.
       // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1101'"
       m_groups.add((BoardSetupGroup) SupportClass.deserialize(in_Renamed));
     }
     // UPGRADE_WARNING: Method 'java.io.ObjectInputStream.readObject' was converted to
     // 'SupportClass.Deserialize' which may throw an exception.
     // "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1101'"
     m_notes = ((String) SupportClass.deserialize(in_Renamed));
   } catch (Exception e) {
     throw m_engine.createException(e);
   }
 }
Example #3
0
  public String getNotes() throws Exception {
    if (m_notes == null) m_notes = m_engine.getSetupNotes();

    return m_notes;
  }
  public void populateData() throws Exception {
    int groupSize = 1;
    // m_mlsEngine.getPropertyFieldGroups().Length;
    MLSCmaFields mlsCmaFields = m_engine.getCmaFields();
    String caption = "";
    String displayName = "";
    String typeID = "2";
    String displayRule = "";
    int[] resultFiled = getResultFields();
    for (int x = 0; x < resultFiled.length; x++) {
      CmaField cmaField = mlsCmaFields.getStdField(resultFiled[x]);
      if (cmaField != null) {
        if (resultFiled[x] != Tcs.Mls.TCSStandardResultFields.STDF_DEFTYPE_NODEFNAME)
          caption = cmaField.getCaption();
        else caption = "DEF type";
        displayName = cmaField.getDisplayName();
        if (StringSupport.isNullOrEmpty(displayName)) {
          displayName = Tcs.Mls.TCSStandardResultFields.getXmlName(resultFiled[x]);
          if (resultFiled[x] == Tcs.Mls.TCSStandardResultFields.STDF_STDFLASTMOD) {
            displayName = "Last Modified Date Time";
          }
        }

        if (StringSupport.isNullOrEmpty(displayName)) displayName = StringSupport.Trim(caption);

        typeID = String.valueOf(cmaField.type);
        displayRule = cmaField.getDisplayRule();
        if (StringSupport.isNullOrEmpty(displayRule)) {
          displayRule = Tcs.Mls.TCSStandardResultFields.getDisplayRule(resultFiled[x]);
          if (resultFiled[x] == Tcs.Mls.TCSStandardResultFields.STDF_STDFLASTMOD
              || resultFiled[x] == Tcs.Mls.TCSStandardResultFields.STDF_STDFSTATUSDATE)
            displayRule = "5";
        }

        if (StringSupport.isNullOrEmpty(displayRule)) displayRule = "4";

      } else {
        displayName = Tcs.Mls.TCSStandardResultFields.getXmlName(resultFiled[x]);
        typeID =
            String.valueOf(
                PropertyClass.getDataTypeID(
                    Tcs.Mls.TCSStandardResultFields.getDataType(resultFiled[x])));
        displayRule = Tcs.Mls.TCSStandardResultFields.getDisplayRule(resultFiled[x]);
        if (resultFiled[x] == Tcs.Mls.TCSStandardResultFields.STDF_STDFLASTMOD) {
          displayRule = "5";
          displayName = "Last Modified Date Time";
        }

        if (resultFiled[x] == Tcs.Mls.TCSStandardResultFields.STDF_STDFSTATUSDATE) {
          displayRule = "5";
        }
      }
      if (resultFiled[x] == Tcs.Mls.TCSStandardResultFields.STDF_STDFLASTMOD) {
        typeID = "7";
      }

      if (resultFiled[x] == Tcs.Mls.TCSStandardResultFields.STDF_STDFSTATUSDATE) {
        typeID = "3";
      }

      DataAggResultFieldType resultFieldType = new DataAggResultFieldType();
      resultFieldType.setSystemName(Tcs.Mls.TCSStandardResultFields.getXmlName(resultFiled[x]));
      resultFieldType.setReferenceName(resultFieldType.getSystemName().toUpperCase());
      resultFieldType.setDisplayName(displayName);
      resultFieldType.setDataTypeID(typeID);
      resultFieldType.setDataTypeDescription(
          PropertyClass.getDataTypeDescription(Integer.valueOf(typeID)));
      // if (x != TCSStandardResultFields.STDF_CMAFEATURE && x !=
      // TCSStandardResultFields.STDF_STDFROOMDIM)
      resultFieldType.setIsStandard("1");
      // else
      //    resultFieldType.IsStandard = "0";
      // resultFieldType.VisibleFlag = caption.Length == 0 ? "N" : "Y";
      resultFieldType.setDisplayRule(displayRule);
      resultFieldType.setRetsLongName(((cmaField != null) ? cmaField.retsLongName : ""));
      addToResultTable(resultFieldType);
    }
  }