You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/TruckMng/Viewsjs/MsKfWx/MsKfWxModel.js

102 lines
3.7 KiB
JavaScript

2 years ago
Ext.define('MsKfWxHead', {
extend: 'Ext.data.Model',
idProperty: 'BillNo',
fields: [
{ name: 'BillNo', type: 'string' },
{ name: 'LrDate', type: 'string' },
{ name: 'JzDate', type: 'string' },
{ name: 'UserCode', type: 'string' },
{ name: 'UserCode_Ref', type: 'string' },
{ name: 'UserName', type: 'string' },
{ name: 'TimeMark', type: 'number' },
{ name: 'TruckNo', type: 'string' },
{ name: 'TruckNo_Ref', type: 'string' },
{ name: 'PgDate', type: 'string' },
{ name: 'GzBgnDate', type: 'string' },
{ name: 'GzEndDate', type: 'string' },
{ name: 'OrgCode', type: 'string' },
{ name: 'OrgCode_Ref', type: 'string' },
{ name: 'OrgName', type: 'string' },
{ name: 'PlanEndDate', type: 'string' },
{ name: 'RealMil', type: 'number' },
{ name: 'Remark', type: 'string' },
{ name: 'REPAIRDAYS', type: 'string' },
{ name: 'REPAIRAMOUNT', type: 'string' },
{ name: 'MATERIALAMOUNT', type: 'string' },
{ name: 'WORKAMOUNT', type: 'string' },
{ name: 'TYREAMOUNT', type: 'string' },
{ name: 'ACCDATE', type: 'string' }
]
});
Ext.define('MsKfWxHeadRefMsWlTruck', {
extend: 'Ext.data.Model',
fields: [
{ name: 'TruckNo', type: 'string' },
{ name: 'TruckSpec', type: 'string' }
]
});
Ext.define('MsKfWxBody', {
extend: 'Ext.data.Model',
idProperty: 'BillNo,SerialNo',
fields: [
{ name: 'BillNo', type: 'string' },
{ name: 'SerialNo', type: 'number' },
{ name: 'WxLxCode', type: 'string' },
{ name: 'WxLxCode_Ref', type: 'string' },
{ name: 'WxItem', type: 'string' },
{ name: 'QuotaHours', type: 'number' },
{ name: 'RealHours', type: 'number' },
{ name: 'SkillUser', type: 'string' },
{ name: 'SkillUser_Ref', type: 'string' },
{ name: 'KfWxUser', type: 'string' },
{ name: 'KfWxUser_Ref', type: 'string' },
{ name: 'Remark', type: 'string' },
{ name: 'WORKAMOUNT', type: 'string' },
{ name: 'MATERIALAMOUNT', type: 'string' },
{ name: 'TYREAMOUNT', type: 'string' }
]
});
Ext.define('MsKfWxBodyRefMsKfBzWx', {
extend: 'Ext.data.Model',
fields: [
{ name: 'WxLxCode', type: 'string' },
{ name: 'WxLxName', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
Ext.define('MsKfWxPlu', {
extend: 'Ext.data.Model',
idProperty: '',
fields: [
{ name: 'BillNo', type: 'string' },
{ name: 'SerialNo', type: 'number' },
{ name: 'PluCode', type: 'string' },
{ name: 'PluCode_Ref', type: 'string' },
{ name: 'PluName', type: 'string' },
{ name: 'Spec', type: 'string' },
{ name: 'PcNo', type: 'string' },
{ name: 'TyreType', type: 'string' },
{ name: 'TyreType_Ref', type: 'string' },
{ name: 'TyrePos', type: 'string' },
{ name: 'TyrePos_Ref', type: 'string' },
{ name: 'Unit', type: 'string' },
{ name: 'Price', type: 'number' },
{ name: 'LyCount', type: 'number' },
{ name: 'Remark', type: 'string' },
{ name: 'PlanMil', type: 'number' }
]
});