Ext.define('KfCgHead', { extend: 'Ext.data.Model', idProperty: 'BillNo', fields: [ { name: 'BillNo', type: 'string' }, { name: 'LrDate', type: 'string' }, { name: 'LrTime', type: 'string' }, { name: 'RzDate', type: 'string' }, { name: 'RzTime', type: 'string' }, { name: 'JzDate', type: 'string' }, { name: 'UserCode', type: 'string' }, { name: 'UserName', type: 'string' }, { name: 'TimeMark', type: 'float' }, { name: 'OrgCode', type: 'string' }, { name: 'OrgName', type: 'string' }, { name: 'CkCode', type: 'string' }, { name: 'CkName', type: 'string' }, { name: 'PluType', type: 'string' }, { name: 'PluType_Ref', type: 'string' }, { name: 'CgDate', type: 'string' }, { name: 'CgyCode', type: 'string' }, { name: 'CgyCode_Ref', type: 'string' }, { name: 'CgyName', type: 'string' }, { name: 'CgCount', type: 'float' }, { name: 'CgTotal', type: 'float' }, { name: 'SdCount', type: 'float' }, { name: 'ZxFlag', type: 'string' }, { name: 'ZxFlag_Ref', type: 'string' }, { name: 'Remark', type: 'string' } ] }); Ext.define('KfCgBody', { extend: 'Ext.data.Model', idProperty: 'BillNo,SerialNo', fields: [ { name: 'BillNo', type: 'string' }, { name: 'SerialNo', type: 'float' }, { name: 'PluCode', type: 'string' }, { name: 'PluCode_Ref', type: 'string' }, { name: 'PluName', type: 'string' }, { name: 'Spec', type: 'string' }, { name: 'Unit', type: 'string' }, { name: 'Price', type: 'float' }, { name: 'CgCount', type: 'float' }, { name: 'CgTotal', type: 'float' }, { name: 'SdCount', type: 'float' }, { name: 'Remark', type: 'string' } ] });