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/CommMng/Viewsjs/Comm/BasicDataRefModel.js

379 lines
12 KiB
JavaScript

3 years ago
//用户参照Model
Ext.define('DsTruckMng.ux.UserRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'UserCode', type: 'string' },
{ name: 'UserName', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
//船名航次参照Model(95003-vMsTruckVoyInfo)
Ext.define('DsTruckMng.ux.VoyRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'VoyCode', type: 'string' },
{ name: 'VoyName', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
//客户资料参照Model(95004-vMsTruckClient)
Ext.define('DsTruckMng.ux.CustomRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GId', type: 'string' },
{ name: 'CustCode', type: 'string' },
{ name: 'CustName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'CodeAndFull', type: 'string' },
{ name: 'UNITPRICE', type: 'string' },
//{ name: 'DESCRIPTION', type: 'string' },
{ name: 'KFCodename', type: 'string' },
{ name: 'ISSTOP', type: 'string' }
]
});
Ext.define('DsTruckMng.ux.CustomContactRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'LinkId', type: 'string' },
{ name: 'Code', type: 'string' },
{ name: 'Name', type: 'string' },
{ name: 'Tel', type: 'string' }
]
});
Ext.define('DsTruckMng.ux.CustomVIPModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GId', type: 'string' },
{ name: 'CustCode', type: 'string' },
{ name: 'CustName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'UNITPRICE', type: 'string' },
//{ name: 'DESCRIPTION', type: 'string' },
{name: 'KFCodename', type: 'string' },
{ name: 'ISSTOP', type: 'string' },
{ name: 'ISVIP', type: 'string' },
{ name: 'VIPDJ', type: 'string' },
{ name: 'VIPDP', type: 'string' }
]
});
Ext.define('DsTruckMng.ux.AirLinesModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GId', type: 'string' },
{ name: 'CustCode', type: 'string' },
{ name: 'CustName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'UNITPRICE', type: 'string' },
//{ name: 'DESCRIPTION', type: 'string' },
{name: 'KFCodename', type: 'string' },
{ name: 'ISSTOP', type: 'string' },
{ name: 'ISAGENTCN', type: 'string' }
]
});
Ext.define('DsTruckMng.ux.CustomVIPModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GId', type: 'string' },
{ name: 'CustCode', type: 'string' },
{ name: 'CustName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'UNITPRICE', type: 'string' },
//{ name: 'DESCRIPTION', type: 'string' },
{name: 'KFCodename', type: 'string' },
{ name: 'ISSTOP', type: 'string' },
{ name: 'ISVIP', type: 'string' },
{ name: 'VIPDJ', type: 'string' },
{ name: 'VIPDP', type: 'string' }
]
});
//箱型参照Model(95005-vMsTruckCtn)
Ext.define('DsTruckMng.ux.CtnRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'CtnCode', type: 'string' },
{ name: 'CtnName', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
//费用类型参照Model
Ext.define('DsTruckMng.ux.FeeTypeRefModel', {
extend: 'Ext.data.Model',
idProperty: 'FeeCode',
fields: [
{ name: 'FeeCode', type: 'string' },
{ name: 'Name', type: 'string' },
{ name: 'DefaultCurr', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
//配料参照 Model
Ext.define('DsTruckMng.ux.PluRefModel', {
extend: 'Ext.data.Model',
idProperty: 'PluCode',
fields: [
{ name: 'PluCode', type: 'string' },
{ name: 'PluName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'Unit', type: 'string' },
{ name: 'Price', type: 'number' },
{ name: 'Spec', type: 'string' }
]
});
//用户Range权限
Ext.define('DsTruckMng.ux.UserRightRangeModel', {
extend: 'Ext.data.Model',
idProperty: 'PluCode',
fields: [
{ name: 'RightName', type: 'string' },
{ name: 'HasRight', type: 'boolean' }
]
});
//部门参照Model
Ext.define('DsTruckMng.ux.DEPTRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'Deptno', type: 'string' },
{ name: 'DeptName', type: 'string' }
]
});
//键值维护表 crm_key_code
Ext.define('DsTruckMng.ux.CrmKeyCodeModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'KEYVALUE', type: 'string' }
]
});
//品名
Ext.define('DsTruckMng.ux.CodeGoodsModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'GOODNAME', type: 'string' },
{ name: 'GoodsTypeGID', type: 'string' },
{ name: 'GoodsTypeName', type: 'string' }
]
});
//国际港口(进口装货港、出口卸货港)
Ext.define('DsTruckMng.ux.CodeDisportModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'PORT', type: 'string' },
{ name: 'CNAME', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'EDICODE', type: 'string' }
]
});
//国内港口(出口装货港、进口卸货港)
Ext.define('DsTruckMng.ux.CodeLoadportModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'PORT', type: 'string' },
{ name: 'CNAME', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'EDICODE', type: 'string' }
]
});
//品名类型
Ext.define('DsTruckMng.ux.CodeGoodsTypeModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GoodsTypeCode', type: 'string' },
{ name: 'GoodsTypeName', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
//件数包装
Ext.define('DsTruckMng.ux.CodePackageModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'PKGS', type: 'string' }
]
});
//箱型
Ext.define('DsTruckMng.ux.CodeCtnModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'CTN', type: 'string' }
]
});
//币别
Ext.define('DsTruckMng.ux.CodeCurrencyModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'CODENAME', type: 'string' }
]
});
//委托单位_联系人
Ext.define('DsTruckMng.ux.InfoClientContactModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'SHOWNAME', type: 'string' },
{ name: 'EMAIL', type: 'string' },
{ name: 'TEL', type: 'string' },
{ name: 'FAX', type: 'string' }
]
});
//科目名称
Ext.define('DsTruckMng.ux.CwAccitemsModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'ACCID', type: 'string' },
{ name: 'ACCNAME', type: 'string' },
{ name: 'ACCIDNAME', type: 'string' }
]
});
//分公司名称
Ext.define('DsTruckMng.ux.CompanyModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'code', type: 'string' },
{ name: 'name', type: 'string' }
]
});
//币别选项
Ext.define('DsTruckMng.ux.CwAccitemsCurrencyModel', {
extend: 'Ext.data.Model',
idProperty: 'CURRENCY',
fields: [
{name: 'CURRENCY', type: 'string' } //币别
]
});
//业务类型
Ext.define('DsTruckMng.ux.OPLBModel', {
extend: 'Ext.data.Model',
idProperty: 'OPLB',
fields: [
{ name: 'OPLB', type: 'string' },
{ name: 'OPLBNAME', type: 'string' }
]
});
//总账科目名称
Ext.define('DsTruckMng.ux.CwAccitemsGlModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'ACCID', type: 'string' },
{ name: 'ACCNAME', type: 'string' },
{ name: 'ACCIDNAME', type: 'string' },
{ name: 'DETAILED', type: 'bool' },
{ name: 'DC', type: 'string' },
{ name: 'ISFCY', type: 'bool' },
{ name: 'ISDEPTACC', type: 'bool' }, //核算部门,按规则设置生成
{name: 'ISEMPLACC', type: 'bool' }, //核算人员,按规则设置生成
{name: 'ISCORPACC', type: 'bool' }, //核算客户,按规则设置生成
{name: 'ISITEMACC', type: 'bool' }, //核算项目,按规则设置生成
{name: 'REMARKS', type: 'string' },
{ name: 'YEAR', type: 'string' },
{ name: 'MONTH', type: 'string' },
{ name: 'PACCGID', type: 'string' },
{ name: 'ACCATTRIBUTE', type: 'string' }, //科目属性(资产、负债、共同、权益、成本、损益)
//{ name: 'ISENABLE', type: 'bool' },
{name: 'id', type: 'string' },
{ name: 'NAME', type: 'string' },
{ name: 'ACCTYPE', type: 'string' }, //科目类别
{name: 'leaf', type: 'bool' },
{ name: 'expanded', type: 'bool' },
{ name: 'DR', type: 'decimal' },
{ name: 'CR', type: 'decimal' },
{ name: 'PACCNAME', type: 'string' }
]
});
//充值卡
Ext.define('DsTruckMng.ux.CardModel', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'CARDNO', type: 'string' },
{ name: 'CARDTYPE', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'OWNGID', type: 'string' },
{ name: 'ISDELETE', type: 'string' },
{ name: 'REMAIN', type: 'string' }
]
});
//充值卡使用
Ext.define('DsTruckMng.ux.CardUseModel', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'CARDGID', type: 'string' },
{ name: 'CARDNO', type: 'string' },
{ name: 'BILLNO', type: 'string' },
{ name: 'OPERATE', type: 'string' },
{ name: 'INNUM', type: 'string' },
{ name: 'OUTNUM', type: 'string' },
{ name: 'OPTIME', type: 'date' },
{ name: 'REMARK', type: 'string' }
]
});
Ext.define('DsTruckMng.ux.GeneralValue', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'GVALUE', type: 'string' }
]
});
Ext.define('companymb', {
extend: 'Ext.data.Model',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'name', type: 'string' },
{ name: 'isdisable', type: 'string' }
]
});
Ext.define('MsFeeCurr', {
extend: 'Ext.data.Model',
idProperty: 'CURR',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'CURR', type: 'string' },
{ name: 'DEFRATE', type: 'number' }
]
});