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.

916 lines
29 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* 校验只要是数字包含正负整数0以及正负浮点数就返回true
**/
function isNumber(val) {
if (parseFloat(val).toString() == "NaN") {
return false;
} else {
return true;
}
}
Ext.define('DsShipping.ux.CangDanCountry', {
extend: 'Ext.data.Model',
fields: [
{ name: 'c_code_id', type: 'string' },
{ name: 'CountryName', type: 'string' },
{ name: 'CountryNameEn', type: 'string' },
{ name: 'CountryCode', type: 'string' },
{ name: 'CompanyCodeType', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
Ext.define('DsShipping.ux.MsOpSeaeEdiTemplate', {
extend: 'Ext.data.Model',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'TEMPLATENAME', type: 'string' },
{ name: 'COMPANYID', type: 'string' },
{ name: 'USERID', type: 'string' },
{ name: 'TYPE', type: 'string' },
{ name: 'NAME', type: 'string' },
{ name: 'ADDRESS', type: 'string' },
{ name: 'COUNTRY', type: 'string' },
{ name: 'CODETYPE', type: 'string' },
{ name: 'CODE', type: 'string' },
{ name: 'TEL', type: 'string' },
{ name: 'CreateTime', type: 'string' },
{ name: 'DisplayName', type: 'string' }
]
});
Ext.define('PERIOD', {
extend: 'Ext.data.Model',
fields: [
{ name: 'PERIOD', type: 'string' },
{ name: 'PYEAR', type: 'string' },
{ name: 'PMONTH', type: 'string' },
{ name: 'FDAY', type: 'string' },
{ name: 'TDAY', type: 'string' },
{ name: 'CLOSED', type: 'string' },
{ name: 'CLOSEUSER', type: 'string' },
{ name: 'CLOSEUSERREF', type: 'string' },
{ name: 'CLOSEDATE', type: 'string' },
{ name: 'CLOSEDATETYPE', type: 'string' },
{ name: 'CLOSEDAY', type: 'string' },
{ name: 'CLOSEPERIOD', type: 'string' },
{ name: 'COMPANYID', type: 'string' }
]
});
//用户参照Model
Ext.define('DsShipping.ux.UserRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'UserCode', type: 'string' },
{ name: 'UserName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'CORPID', type: 'string' },
{ name: 'DEPTGID', type: 'string' },
{ name: 'DEPTNAME', type: 'string' }
]
});
Ext.define('DsShipping.ux.UserLinkRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'UserCode', type: 'string' },
{ name: 'UserName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'Tel', type: 'string' },
{ name: 'Fax', type: 'string' },
{ name: 'Email', type: 'string' }
]
});
Ext.define('DsShipping.ux.DeptModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'Deptno', type: 'string' },
{ name: 'DeptName', type: 'string' },
{ name: 'Manage1', type: 'string' }
]
});
Ext.define('DsShipping.ux.UserBaseModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'USERID', type: 'string' },
{ name: 'COMPANYNAME', type: 'string' },
{ name: 'DEPTNAME', type: 'string' }
]
});
//船名航次参照Model(95003-vMsTruckVoyInfo)
Ext.define('DsShipping.ux.VoyRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'VoyCode', type: 'string' },
{ name: 'VoyName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'EDICODE', type: 'string' }
]
});
Ext.define('DsShipping.ux.VesselModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'VSID', type: 'string' },
{ name: 'VESSEL', type: 'string' },
{ name: 'CNAME', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'CARRIER', type: 'string' },
{ name: 'EDICODE', type: 'string' }
]
});
Ext.define('DsShipping.ux.VoyNoModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'VSID', type: 'string' },
{ name: 'VOYNO', type: 'string' },
{ name: 'PORTLOAD', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' },
{ name: 'ETD', type: 'string' },
{ name: 'CLOSINGDATE', type: 'string' },
{ name: 'ETA', type: 'string' },
{ name: 'ATD', type: 'string' }
]
});
Ext.define('DsShipping.ux.Lane', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'LANEID', type: 'string' },
{ name: 'LANE', type: 'string' },
{ name: 'LANEEN', type: 'string' },
{ name: 'EDICODE', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'DOC', type: 'string' }
]
});
//客户资料参照Model(95004-vMsTruckClient)
Ext.define('DsShipping.ux.CustomRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GId', type: 'string' },
{ name: 'CustCode', type: 'string' },
{ name: 'CustName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'DESCRIPTION', type: 'string' },
{ name: 'SALE', type: 'string' },
{ name: 'SALECORPID', type: 'string' },
{ name: 'BSSOURCE', type: 'string' },
{ name: 'FEEFRT', type: 'string' },
{ name: 'EMAIL', type: 'string' },
{ name: 'TEL', type: 'string' }
]
});
Ext.define('DsShipping.ux.CustomYardRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GId', type: 'string' },
{ name: 'CustCode', type: 'string' },
{ name: 'CustName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'ADDR', type: 'string' }
]
});
Ext.define('DsShipping.ux.CustomInvRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GId', type: 'string' },
{ name: 'CustCode', type: 'string' },
{ name: 'CustName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'BillRises1', type: 'string' },
{ name: 'RMBBillRises', type: 'string' },
{ name: 'RMBBank', type: 'string' },
{ name: 'RMBAccount', type: 'string' },
{ name: 'USDBillRises', type: 'string' },
{ name: 'USDBank', type: 'string' },
{ name: 'USDAccount', type: 'string' },
{ name: 'INVADDRTEL', type: 'string' },
{ name: 'TaxNo', type: 'string' },
{ name: 'Addr', type: 'string' },
{ name: 'Tel', type: 'string' }
]
});
Ext.define('DsShipping.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('DsShipping.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('DsShipping.ux.PortRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'PORTID', type: 'string' },
{ name: 'PORT', type: 'string' },
{ name: 'CNAME', type: 'string' },
{ name: 'PORTANDNAME', type: 'string' }
]
});
Ext.define('DsShipping.ux.GoodsRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GOODCODE', type: 'string' },
{ name: 'GOODNAME', type: 'string' },
{ name: 'CODEANDNAME', type: 'string' }
]
});
Ext.define('DsShipping.ux.CustomerRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GId', type: 'string' },
{ name: 'CustCode', type: 'string' },
{ name: 'CustName', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'REGISTRATIONNO', type: 'string' },
{ name: 'DESCRIPTION', type: 'string' },
{ name: 'RegAndDesc', type: 'string' }
]
});
Ext.define('DsShipping.ux.CustomACCOUNTModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'BANKNAME', type: 'string' },
{ name: 'ACCOUNT', type: 'string' },
{ name: 'BANKNAME_ACCOUNT', type: 'string' }
]
});
Ext.define('DsShipping.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('DsShipping.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('DsShipping.ux.CtnRefModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'CtnCode', type: 'string' },
{ name: 'CtnName', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
//费用类型参照Model
Ext.define('DsShipping.ux.FeeTypeRefModel', {
extend: 'Ext.data.Model',
idProperty: 'Name',
fields: [
{ name: 'FeeCode', type: 'string' },
{ name: 'Name', type: 'string' },
{ name: 'DefaultCurr', type: 'string' },
{ name: 'Description', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'DefaultDebit', type: 'string' },
{ name: 'DefaultCredit', type: 'string' },
{ name: 'DefaultDebitRef', type: 'string' },
{ name: 'DefaultCreditRef', type: 'string' },
{ name: 'DefaultUnit', type: 'string' },
{ name: 'FEETYPE', type: 'string' },
{ name: 'FEEFRT', type: 'string' },
{ name: 'TAXRATE', type: 'number' },
{ name: 'ISADVANCEDPAY', type: 'string' }
]
});
//配料参照 Model
Ext.define('DsShipping.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('DsShipping.ux.UserRightRangeModel', {
extend: 'Ext.data.Model',
idProperty: 'PluCode',
fields: [
{ name: 'RightName', type: 'string' },
{ name: 'HasRight', type: 'boolean' }
]
});
Ext.define('DsShipping.ux.SourceModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'SourceID', type: 'string' },
{ name: 'SourceName', type: 'string' },
{ name: 'CorpID', type: 'string' }
]
});
Ext.define('DsShipping.ux.SourceDetailModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'SourceDetailID', type: 'string' },
{ name: 'SourceID', type: 'string' },
{ name: 'SourceDetail', type: 'string' }
]
});
Ext.define('DsShipping.ux.ModuleModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'id', type: 'string' },
{ name: 'NAME', type: 'string' },
{ name: 'DESCRIPTION', type: 'string' },
{ name: 'MODULEURL', type: 'string' },
{ name: 'SORT', type: 'number' },
{ name: 'PARENTID', type: 'string' },
{ name: 'PARENTNAME', type: 'string' },
{ name: 'TYPE', type: 'number' },
{ name: 'leaf', type: 'bool' },
{ name: 'expanded', type: 'bool' }
]
});
Ext.define('MsOP', {
extend: 'Ext.data.Model',
idProperty: 'OPID',
fields: [
{ name: 'OPID', type: 'string' }
]
});
//键值维护表 crm_key_code
Ext.define('DsShipping.ux.CrmKeyCodeModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'KEYVALUE', type: 'string' }
]
});
//品名
Ext.define('DsShipping.ux.CodeGoodsModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'GOODNAME', type: 'string' },
{ name: 'GOODCODE', type: 'string' },
{ name: 'GoodsTypeGID', type: 'string' },
{ name: 'GoodsTypeName', type: 'string' }
]
});
//品名明细表
Ext.define('DsShipping.ux.CodeGoodsDetailModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' }, //惟一编号
{ name: 'LINKGID', type: 'string' }, //品名GID
{ name: 'GOODSDETAILNAME', type: 'string' }, //品牌名称
{ name: 'REMARK', type: 'string' }, //备注
{ name: 'GOODSDETAILPKGS', type: 'decimal' }, //规格件数
{ name: 'GOODNAME', type: 'string' }
]
});
//新版键值维护表_运输类型//报关业务类型96004
Ext.define('DsShipping.ux.TSysEnumValueDataModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'EnumValueID', type: 'string' },
{ name: 'EnumValueName', type: 'string' },
{ name: 'CodeAndName', type: 'string' }//需求编号SR2017081100003
]
});
//国际港口(进口装货港、出口卸货港)
Ext.define('DsShipping.ux.CodeDisportModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'PORT', type: 'string' },
{ name: 'CNAME', type: 'string' },
{ name: 'EDICODE', type: 'string' },
{ name: 'CodeAndName', type: 'string' },
{ name: 'LANE', type: 'string' },
{ name: 'COUNTRYID', type: 'string' }
]
});
//国内港口(出口装货港、进口卸货港)
Ext.define('DsShipping.ux.CodeLoadportModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'PORT', type: 'string' },
{ name: 'CNAME', type: 'string' },
{ name: 'EDICODE', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
//品名类型
Ext.define('DsShipping.ux.CodeGoodsTypeModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GoodsTypeCode', type: 'string' },
{ name: 'GoodsTypeName', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
//件数包装
Ext.define('DsShipping.ux.CodePackageModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'PKGS', type: 'string' }
]
});
//箱型
Ext.define('DsShipping.ux.CodeCtnModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'CTN', type: 'string' },
{ name: 'DLIKGS', type: 'float' }
]
});
//集装箱显示
Ext.define('DsShipping.ux.CtnDispModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'CNT1', type: 'string' },
{ name: 'CNT2', type: 'string' },
{ name: 'CNT3', type: 'string' },
{ name: 'CNT4', type: 'string' },
{ name: 'CNT5', type: 'string' },
{ name: 'CNT6', type: 'string' },
{ name: 'CNT7', type: 'string' },
{ name: 'CNT8', type: 'string' },
{ name: 'CNT9', type: 'string' },
{ name: 'CNT10', type: 'string' },
{ name: 'ID', type: 'string' },
{ name: 'CORPID', type: 'string' }
]
});
//币别
Ext.define('DsShipping.ux.CodeCurrencyModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'CODENAME', type: 'string' }
]
});
//委托单位_联系人
Ext.define('DsShipping.ux.InfoClientContactModel', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'SHOWNAME', type: 'string' },
{ name: 'EMAIL', type: 'string' },
{ name: 'TEL', type: 'string' },
{ name: 'FAX', type: 'string' }
]
});
//科目名称
Ext.define('DsShipping.ux.CwAccitemsModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'ACCID', type: 'string' },
{ name: 'ACCNAME', type: 'string' },
{ name: 'ACCIDNAME', type: 'string' },
{ name: 'DC', type: 'string' },
{ name: 'ISFCY', type: 'bool' },
{ name: 'ISDEPTACC', type: 'bool' }, //核算部门,按规则设置生成
{ name: 'ISEMPLACC', type: 'bool' }, //核算人员,按规则设置生成
{ name: 'ISCORPACC', type: 'bool' }, //核算客户,按规则设置生成
{ name: 'ISITEMACC', type: 'bool' } //核算项目,按规则设置生成
]
});
//银行名称
Ext.define('DsShipping.ux.SysBankModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'gid', type: 'string' },
{ name: 'bankname', type: 'string' },
{ name: 'codename', type: 'string' },
{ name: 'FINANCESOFTCODE', type: 'string' }
]
});
Ext.define('DsShipping.ux.OpDefValue', {
extend: 'Ext.data.Model',
fields: [
{ name: 'FIELDNAME', type: 'string' },
{ name: 'DEFVALUE', type: 'string' },
{ name: 'ISMUST', type: 'string' },
{ name: 'ISCOLOR', type: 'string' },
{ name: 'ISREADONLY', type: 'string' }
]
});
//项目名称
Ext.define('DsShipping.ux.CwItemModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'ITEMCODE', type: 'string' },
{ name: 'ITEMNAME', type: 'string' },
{ name: 'CodeAndName', type: 'string' }
]
});
//币别选项
Ext.define('DsShipping.ux.CwAccitemsCurrencyModel', {
extend: 'Ext.data.Model',
idProperty: 'CURRENCY',
fields: [
{ name: 'CURRENCY', type: 'string' } //币别
]
});
//业务类型
Ext.define('DsShipping.ux.OPLBModel', {
extend: 'Ext.data.Model',
idProperty: 'OPLB',
fields: [
{ name: 'OPLB', type: 'string' },
{ name: 'OPLBNAME', type: 'string' }
]
});
//总账科目名称
Ext.define('DsShipping.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('DsShipping.ux.MsCtExplanDetailModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' }, //唯一编码
{ name: 'LINKGID', type: 'string' }, //摘要GID
{ name: 'EXPLAN', type: 'string' }, //内容
{ name: 'MODIFIEDUSER', type: 'string' }, //更改操作人gid
//{ name: 'MODIFIEDTIME', type: 'DateTime' }, //更改操作时间
{ name: 'MODIFIEDUSERNAME', type: 'string' }
]
});
///通用查询方法 后台方法 commMng GeneralSelect1 /2
Ext.define('DsTruckMng.ux.GeneralValue', {
extend: 'Ext.data.Model',
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('DsShipping.ux.CodeServiceModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'SERVICE', type: 'string' }
]
});
Ext.define('DsShipping.ux.MsCodeAirPort', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'PORTID', type: 'string' },
{ name: 'PORTENAME', type: 'string' },
{ name: 'PORTCNAME', type: 'string' },
{ name: 'CODEANDNAME', type: 'string' },
{ name: 'CODEANDCNAME', type: 'string' },
{ name: 'COUNTRY', type: 'string' },
{ name: 'CITY', type: 'string' }
]
});
Ext.define('DsShipping.ux.WorkLogmb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'OPDATE', type: 'string' },
{ name: 'ACTNAME', type: 'string' },
{ name: 'ACTRESULT', type: 'string' },
{ name: 'REMARK', type: 'string' }
]
});
//InfoClass管理分类表
Ext.define('DsShipping.ux.MsInfoClassModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'ID', type: 'int' }, //id
{ name: 'PARENTID', type: 'string' }, //parentID
{ name: 'CLASSID', type: 'string' }, //classID
{ name: 'CLASSNAMEENG', type: 'string' }, //classNameEng
{ name: 'CLASSNAME', type: 'string' }, //className
{ name: 'CLASSICON', type: 'string' }, //classIcon
{ name: 'CLASSKEY', type: 'string' }, //classKey
{ name: 'CLASSLOCATION', type: 'int' }, //classLocation
{ name: 'CLASSATTRIB', type: 'int' }, //classAttrib
{ name: 'HASCHILD', type: 'bool' }, //hasChild
{ name: 'ISUSED', type: 'bool' }, //isUsed
{ name: 'ISSORT', type: 'bool' }, //isSort
{ name: 'SORTATTRIB', type: 'bool' }, //sortAttrib
{ name: 'SORTID', type: 'int' }, //sortID
{ name: 'AUTHOR', type: 'string' }, //author
{ name: 'CREATEDATE', type: 'DateTime' }, //createDate
{ name: 'LASTMODIFYDATE', type: 'DateTime' }, //lastModifyDate
{ name: 'DEL_SIGN', type: 'bool' }, //del_sign
]
});
//客户子项目
Ext.define('DsShipping.ux.MsInfoClientItemModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'GID', type: 'string' }, //惟一值
{ name: 'LINKGID', type: 'string' }, //客户GID
{ name: 'ITEMNAME', type: 'string' }, //项目名称
{ name: 'STARTTIME', type: 'DateTime' }, //起始时间
{ name: 'ENDTIME', type: 'DateTime' }, //结束时间
{ name: 'CREATEUSER', type: 'string' }, //创建人gid
{ name: 'CREATETIME', type: 'DateTime' }, //创建时间
{ name: 'MODIFIEDUSER', type: 'string' }, //更改操作人gid
{ name: 'MODIFIEDTIME', type: 'DateTime' }, //最后一次更改时间
]
});
//
Ext.define('DsShipping.ux.VALUEModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'VALUEFIELD', type: 'string' }
]
});
Ext.define('DsShipping.ux.DICModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'KEYFIELD', type: 'string' },
{ name: 'VALUEFIELD', type: 'string' }
]
});
var _bstypelist = [
{ key: '0', title: '舱单申报' },
{ key: '1', title: 'VGM申报' },
{ key: '2', title: '拼箱申请单申报' },
{ key: '3', title: 'Maersk Spot运价订阅' },
{ key: '4', title: 'Maersk Spot订舱' },
{ key: '5', title: '提箱小票(按量)' },
{ key: '6', title: '提箱小票链接' },
{ key: '7', title: '账单中心账单处理费' },
{ key: '8', title: 'CMA运价订阅' },
{ key: '9', title: 'CMA自动化DRAFT包干' },
{ key: '91', title: 'CMA-DRAFT(包干减小票)' },
{ key: '1001', title: '账单中心账单处理费(补扣)' },
{ key: '10', title: '起运港运踪订阅费' },
{ key: '11', title: '目的港运踪订阅费' },
{ key: '12', title: '账单自动下载' },
{ key: '13', title: '大简云报关' },
{ key: '14', title: '提箱小票自动刷小票' },
{ key: '15', title: 'AMS申报' },
{ key: '16', title: 'ISF申报' },
{ key: '17', title: '报表推送' },
{ key: '18', title: '入货通知' },
{ key: '19', title: '下货纸' },
{ key: '20', title: 'DRAFT下载' },
{ key: '21', title: '正本提单下载' },
{ key: '22', title: '进口运踪' },
{ key: '23', title: '报关平台使用费' },
];
//获取bytype键值 1数字转名字 2 名字转数字
function _getbstype(val, type = 1) {
let rsval = '';
for (var item of _bstypelist) {
if (type == 1) {
if (val == item.key) {
rsval = item.title
break;
}
} else if (type == 2) {
if (val == item.title) {
rsval = item.key
break;
}
}
}
return rsval;
}
//计费规则sendtype数据列表
var _sendtypelist = [
{ key: '0', title: '新增', showtitle: '新增' },
{ key: '1', title: '有成本修改', showtitle: '修改' },
{ key: '2', title: '无成本修改', showtitle: '修改' },
{ key: '3', title: '导出', showtitle: '导出' },
{ key: '4', title: '船代直发', showtitle: '新增' },
{ key: '5', title: '删除', showtitle: '删除' },
{ key: '6', title: '舱单直发接口', showtitle: '舱单直发接口' },
{ key: '7', title: '舱单直发修改', showtitle: '修改' },
{ key: '8', title: '舱单直发删除', showtitle: '删除' },
{ key: '1001', title: 'CMA', showtitle: 'CMA' },
{ key: '1002', title: 'ONE', showtitle: 'ONE' },
{ key: '1003', title: 'OOCL', showtitle: 'OOCL' },
{ key: '1004', title: 'YWCMA', showtitle: 'YWCMA' },
{ key: '1005', title: 'PIL', showtitle: 'PIL' },
{ key: '1006', title: 'HMM', showtitle: '现代' },
{ key: '1007', title: 'CMA_TXG', showtitle: 'CMA天津' },
{ key: '1701', title: '销售欠费报表', showtitle: '销售欠费报表' },
{ key: '1702', title: '票结未开票', showtitle: '票结未开票' },
{ key: '1703', title: '超期欠费周报', showtitle: '超期欠费周报' }
];
//获取sendtype键值 1数字转名字 2 名字转数字
function _getsendtype(val, type = 1) {
let rsval = '';
for (var item of _sendtypelist) {
if (type == 1) {
if (val == item.key) {
rsval = item.title
break;
}
} else if (type == 2) {
if (val == item.title) {
rsval = item.key
break;
}
}
}
return rsval;
}
function get_StoreFSLX() {
var StoreFSLX = Ext.create('Ext.data.Store', {
fields: ['VALUE', 'TEXT']
});
for (var item of _sendtypelist) {
StoreFSLX.add({ "VALUE": item.key, "TEXT": item.title });
}
//StoreFSLX.add({ "VALUE": "0", "TEXT": "新增" });
//StoreFSLX.add({ "VALUE": "1", "TEXT": "有成本修改" });
//StoreFSLX.add({ "VALUE": "2", "TEXT": "无成本修改" });
//StoreFSLX.add({ "VALUE": "3", "TEXT": "导出" });
//StoreFSLX.add({ "VALUE": "4", "TEXT": "船代直发" });
//StoreFSLX.add({ "VALUE": "5", "TEXT": "删除" });
return StoreFSLX;
}
function get_YTPORT() {
StoreYTPort = Ext.create('Ext.data.Store', {
fields: ['PORT', 'NAME']
});
StoreYTPort.add({ "PORT": "OTHERPORT", "NAME": "非上海码头" });
StoreYTPort.add({ "PORT": "778059556b", "NAME": "上海国际港务(集团)股份有限公司宜东集装箱码头分公司" });
StoreYTPort.add({ "PORT": "13220793-5", "NAME": "上海浦东国际集装箱码头有限公司" });
StoreYTPort.add({ "PORT": "775786045", "NAME": "上海盛东国际集装箱码头有限公司" });
StoreYTPort.add({ "PORT": "778078730b", "NAME": "上海国际港务(集团)股份有限公司罗泾分公司(散货)" });
StoreYTPort.add({ "PORT": "wgq2", "NAME": "上海国际港务(集团)股份有限公司振东集装箱码头分公司" });
StoreYTPort.add({ "PORT": "662445084", "NAME": "上海冠东国际集装箱码头有限公司" });
StoreYTPort.add({ "PORT": "wgq5", "NAME": "上海明东集装箱码头有限公司" });
StoreYTPort.add({ "PORT": "74212819-3", "NAME": "上海沪东集装箱码头管理有限公司" });
StoreYTPort.add({ "PORT": "MA1FL3AGX", "NAME": "上海国际港务(集团)股份有限公司尚东集装箱码头分公司" });
return StoreYTPort;
}
Ext.define('DsShipping.ux.CompanyNewSelectModel', {
extend: 'Ext.data.Model',
fields: [
{ name: 'CompId', type: 'string' },
{ name: 'CompName', type: 'string' }
]
});