| | |
| | | |
| | | attrTypeIsString: function(type) { |
| | | if (type == '字符串' || type == '可变长字符串' || type == 'char' || type == 'varchar') { |
| | | return false |
| | | return true |
| | | } |
| | | return true |
| | | return false |
| | | }, |
| | | attrTypeIsNumber: function(type) { |
| | | if (type == '整数' || type == '浮点数' || type == 'int' || type == 'float') { |
| | | return false |
| | | return true |
| | | } |
| | | return true |
| | | return false |
| | | }, |
| | | attrTypeIsDict: function(type) { |
| | | if (type == '字典' || type == '字典-字符串' || type == '字典-整数' || type == 'dict' || type == 'dict-char' || |
| | | type == 'dict-int') { |
| | | return false |
| | | return true |
| | | } |
| | | return true |
| | | return false |
| | | }, |
| | | attrTypeIsDate: function(type) { |
| | | if (type == '日期' || type == '时间' || type == 'date' || type == 'datetime') { |
| | | return false |
| | | return true |
| | | } |
| | | return true |
| | | return false |
| | | }, |
| | | attrTypeIsObjRefMulti: function(type) { |
| | | if (type == '引用对象(多个)' || type == 'obj-ref-multi') { |
| | | return false |
| | | return true |
| | | } |
| | | return true |
| | | return false |
| | | }, |
| | | attrTypeIsRegion: function(type) { |
| | | if (type == '省市区' || type == 'region') { |
| | | return false |
| | | return true |
| | | } |
| | | return true |
| | | return false |
| | | }, |
| | | attrTypeIsBool: function(type) { |
| | | if (type == '布尔值' || type == 'bool') { |
| | | return false |
| | | return true |
| | | } |
| | | return true |
| | | return false |
| | | }, |
| | | |
| | | attrTypeIsUser: function(type) { |
| | | if (type == '引用人员' || type == 'user') { |
| | | return false |
| | | return true |
| | | } |
| | | return true |
| | | return false |
| | | }, |
| | | attrTypeIsProject: function(type) { |
| | | if (type == '引用项目' || type == 'project') { |
| | | return false |
| | | return true |
| | | } |
| | | return true |
| | | return false |
| | | }, |
| | | |
| | | } |