| | |
| | | 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 |
| | |
| | | } |
| | | 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 |
| | |
| | | } |
| | | 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 = { |