cuiqian2004
2024-11-04 de0f1b7995ee559f19e27ea07da0091d4ae189d5
js/utils.js
@@ -9,7 +9,19 @@
      return false
   },
   attrTypeIsNumber: function(type) {
      if (type == '整数' || type == '浮点数' || type == 'int' || type == 'float') {
      if (attrTypeIsInt(type) || attrTypeIsFloat(type)) {
         return true
      }
      return false
   },
   attrTypeIsFloat: function(type) {
      if (type == '浮点数' ||  type == 'float') {
         return true
      }
      return false
   },
   attrTypeIsInt: function(type) {
      if (type == '整数' || type == 'int') {
         return true
      }
      return false
@@ -21,14 +33,32 @@
      }
      return false
   },
   attrTypeIsDate: function(type) {
   attrTypeIsDateTime: function(type) {
      if (type == '日期' || type == '时间' || type == 'date' || type == 'datetime') {
         return true
      }
      return false
   },
   attrTypeIsDate: function(type) {
      if (type == '日期' ||  type == 'date' ) {
         return true
      }
      return false
   },
   attrTypeIsTime: function(type) {
      if (type == '时间'  || type == 'datetime') {
         return true
      }
      return false
   },
   attrTypeIsObjRefMulti: function(type) {
      if (type == '引用对象(多个)' || type == 'obj-ref-multi') {
         return true
      }
      return false
   },
   attrTypeIsObjRef: function(type) {
      if (type == '引用对象(单个)' || type == 'obj-ref') {
         return true
      }
      return false
@@ -58,6 +88,18 @@
      }
      return false
   },
   attrTypeIsCode: function(type) {
      if (type == '编码' || type == 'code') {
         return true
      }
      return false
   },
   attrTypeIsGuid: function(type) {
      if (type == 'GUID' || type == 'guid') {
         return true
      }
      return false
   },
}
var session = {