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.

122 lines
5.8 KiB
JavaScript

11 months ago
Ext.define('MsCwVouchersModel', {
extend: 'Ext.data.Model',
idProperty: 'ORDNO',
fields: [
{name: 'ORDNO', type: 'string' }, //唯一编码GID
{name: 'VOUNO', type: 'string' }, //自动生成编号,月初清零
{name: 'VKNO', type: 'string' }, //凭证字
{name: 'EXPVOUNO', type: 'string' }, //
//{name: 'VOUDATE', type: 'DateTime' }, //凭证日期
{name: 'VOUDATE', type: 'string' }, //凭证日期
{name: 'ACCYEAR', type: 'string' }, //年
{name: 'ACCMONTH', type: 'string' }, //月
{name: 'ATTACHS', type: 'int' }, //附件(单据)数
{name: 'AMTDR', type: 'decimal' }, //本位币借方
{name: 'AMTCR', type: 'decimal' }, //本位币贷方
{name: 'FCY', type: 'string' }, //是否含有外币科目
{name: 'QTY', type: 'string' }, //是否含有数量科目
{name: 'VOUPROP', type: 'string' }, //凭证属性
{name: 'PREPARED', type: 'string' }, //制单人
{name: 'CHECKED', type: 'string' }, //审核人GID
{name: 'ENTERED', type: 'string' }, //记账人
{name: 'ERRMSG', type: 'string' }, //错误信息
{name: 'ISDELETE', type: 'bool' }, //是否废除
{name: 'DELETEUSER', type: 'string' }, //废除操作人
{name: 'DELETETIME', type: 'DateTime' }, //废除时间
{name: 'VOUALLNO', type: 'string' }, //年+月+自动生成编号=凭证号
{name: 'ISEXPORT', type: 'bool'}, //是否导出凭证
{name: 'ISCHECKED', type: 'bool' }, //是否审核
{name: 'CHECKEDTIME', type: 'DateTime'}, //审核时间
{name: 'CHECKEDNAME', type: 'string' }, //审核人名称
{name: 'MODIFIEDUSER', type: 'string'} //制单人
]
});
Ext.define('MsCwVouitemsModel', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{name: 'GID', type: 'string' }, //唯一编码
{name: 'ORDNO', type: 'string' }, //关联cw_vouchers
{name: 'ITEMNO', type: 'int' }, //行号
{name: 'ACCID', type: 'string' }, //科目代码
//{name: 'PACCID', type: 'string' }, //父级科目代码
{name: 'ACCNAME', type: 'string' }, //科目名称
//{name: 'PROPERTY', type: 'int' }, //科目属性
//{name: 'GRADE', type: 'int' }, //科目级别
//{name: 'DC', type: 'string' }, //借贷方向
{name: 'AMTDR', type: 'decimal' }, //本位币借方金额(互斥)
{name: 'AMTCR', type: 'decimal' }, //本位币贷方金额(互斥)
//{name: 'ISFCY', type: 'bool' }, //是否外币
{name: 'FCYNO', type: 'string' }, //外币编号usd
{name: 'FCYEXRATE', type: 'decimal' }, //汇率
//{name: 'FCYDR', type: 'decimal' }, //外币借方金额
//{name: 'FCYCR', type: 'decimal' }, //外币贷方金额
//{name: 'QTYUNIT', type: 'string' }, //数量包装单位
//{name: 'QTYDR', type: 'decimal' }, //借方数量
//{name: 'QTYCR', type: 'decimal' }, //贷方数量
{name: 'EXPLAN', type: 'string' }, //摘要,规则生成
//{name: 'ISDEPTACC', type: 'bool' }, //核算部门,按规则设置生成
//{name: 'ISEMPLACC', type: 'bool' }, //核算人员,按规则设置生成
//{name: 'ISCORPACC', type: 'bool' }, //核算客户,按规则设置生成
//{name: 'ISITEMACC', type: 'bool' }, //核算项目,按规则设置生成
{name: 'DEPTID', type: 'string' }, //部门(系统)
{name: 'EMPLID', type: 'string' }, //人员(系统)
{name: 'CORPID', type: 'string' }, //客户(系统)
//{name: 'PITEMID', type: 'int' }, //父级项目编号
{name: 'ITEMID', type: 'string' }, //项目编号
//{name: 'FIELD10', type: 'string' }, //预留字段1
//{name: 'FIELD9', type: 'string' }, //预留字段1
//{name: 'FIELD8', type: 'string' }, //预留字段1
//{name: 'FIELD7', type: 'string' }, //预留字段1
//{name: 'FIELD6', type: 'string' }, //预留字段1
//{name: 'FIELD5', type: 'string' }, //预留字段1
//{name: 'FIELD4', type: 'string' }, //预留字段1
//{name: 'FIELD3', type: 'string' }, //预留字段1
//{name: 'FIELD2', type: 'string' }, //预留字段1
//{name: 'FIELD1', type: 'string' }, //预留字段1
//{name: 'ISSYS', type: 'bool' }, //是否手动录入
//{name: 'FSETTLCODE', type: 'string' }, //结算方式
//{name: 'FSETTLENO', type: 'string' }, //财务辅助编号
//{name: 'MODIFIEDUSER', type: 'string' }, //最后一次更新操作人
//{name: 'MODIFIEDTIME', type: 'DateTime' }, //最后一次更新操作时间
{name: 'VOUDATE', type: 'string' }, //凭证日期
{name: 'CUSTOMERNAME', type: 'string' }, //CUSTOMERNAME
{name: 'SALE', type: 'string' },
{name: 'BLNO', type: 'string' },
{name: 'ITEMGID', type: 'string' },
{name: 'DEPTGID', type: 'string' },
{name: 'ACCALL', type: 'string' },
{name: 'FCYAMT', type: 'decimal' },
{name: 'DEPTNAME', type: 'decimal' },
{name: 'ITEMNAME', type: 'decimal' }
]
});
Ext.define('MsCwVVModel', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{name: 'GID', type: 'string' }, //唯一编码
{name: 'VOUNO', type: 'string' }, //自动生成编号,月初清零
{name: 'VKNO', type: 'string' }, //凭证字
{name: 'EXPVOUNO', type: 'string' }, //
{name: 'VOUDATE', type: 'string' }, //凭证日期
{name: 'EXPLAN', type: 'string' }, //摘要,规则生成
{name: 'ACCALL', type: 'string' },
{name: 'AMTDR', type: 'decimal' }, //本位币借方
{name: 'AMTCR', type: 'decimal' }, //本位币贷方
{name: 'FCYDR', type: 'decimal' }, //外币借方
{name: 'FCYCR', type: 'decimal' }, //外币贷方
{name: 'QTYDR', type: 'decimal' }, //综合本位币借方
{name: 'QTYCR', type: 'decimal' }, //综合本位币贷方
{name: 'PREPARED', type: 'string' }, //制单人
{name: 'VOUALLNO', type: 'string' }, //年+月+自动生成编号=凭证号
{name: 'ISEXPORT', type: 'bool'}, //是否导出凭证
{name: 'ORDNO', type: 'string' } //唯一编码GID
//{name: 'CHECKED', type: 'string' }, //审核人GID
//{name: 'ISCHECKED', type: 'bool' }, //是否审核
//{name: 'CHECKEDTIME', type: 'DateTime'} //审核时间
]
});