|
|
Ext.namespace('Shipping');
|
|
|
|
|
|
Shipping.MsOpApplyIndex = function (config) {
|
|
|
Ext.applyIf(this, config);
|
|
|
this.initUIComponents();
|
|
|
window.Shipping.MsOpApplyIndex.superclass.constructor.call(this);
|
|
|
};
|
|
|
|
|
|
Ext.extend(Shipping.MsOpApplyIndex, Ext.Panel, {
|
|
|
PageSize: 30,
|
|
|
|
|
|
OprationStatus: null, //仅当弹出界面时使用
|
|
|
SelectedRecord: null,
|
|
|
selectbsno: '',
|
|
|
sqlcontext: '',
|
|
|
sortfield: '',
|
|
|
sortdire: '',
|
|
|
|
|
|
initUIComponents: function () {
|
|
|
//定义数据集
|
|
|
|
|
|
this.formname = "formMsOpApplyIndex"; //页面名称
|
|
|
|
|
|
this.storecodeservice = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'MsCodeOpService',
|
|
|
proxy: { url: '/MvcShipping/MsCodeOpService/GetDataList' }
|
|
|
});
|
|
|
|
|
|
this.storePLList = Ext.create('Ext.data.Store', {
|
|
|
model: 'MsOpApply'
|
|
|
});
|
|
|
|
|
|
this.storeList = Ext.create('Ext.data.Store', {
|
|
|
pageSize: this.PageSize,
|
|
|
model: 'MsOpApply',
|
|
|
remoteSort: true,
|
|
|
proxy: {
|
|
|
type: 'ajax',
|
|
|
url: '/MvcShipping/MsOpApply/GetDataList',
|
|
|
reader: {
|
|
|
id: 'BSNO',
|
|
|
root: 'data',
|
|
|
totalProperty: 'totalCount'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
Ext.define('Ext.grid.column.Actiontextcolumn', {
|
|
|
extend: 'Ext.grid.column.Column',
|
|
|
alias: ['widget.actiontextcolumn'],
|
|
|
|
|
|
defaultRenderer: function (value) {
|
|
|
var me = this;
|
|
|
prefix = Ext.baseCSSPrefix;
|
|
|
scope = me.origScope || me;
|
|
|
// if (value == "") {
|
|
|
|
|
|
// }
|
|
|
// else
|
|
|
value = value + '<img role="button" src="' + (me.icon || Ext.BLANK_IMAGE_URL)
|
|
|
+ '" class="' + this.iconCls + ' x-action-col-icon"/>';
|
|
|
// value = '<label class="x-action-col-icon">' + value + '</label><img role="button" src="' + (me.icon || Ext.BLANK_IMAGE_URL)
|
|
|
// + '" class="' + this.iconCls + ' x-action-col-icon"/>';
|
|
|
return value;
|
|
|
},
|
|
|
|
|
|
|
|
|
processEvent: function (type, view, cell, recordIndex, cellIndex, e, record, row) {
|
|
|
var me = this;
|
|
|
if (type == 'click') {
|
|
|
me.handler.call(me.scope || me.origScope || me, view, recordIndex, cellIndex, e, record, row);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
this.Pagenum = Ext.create('Ext.form.field.Number', {
|
|
|
name: 'bottles',
|
|
|
fieldLabel: '每页记录数',
|
|
|
labelAlign: 'right',
|
|
|
value: this.PageSize,
|
|
|
maxValue: 100000,
|
|
|
width: 180,
|
|
|
minValue: 0,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
Ext.grid.RowNumberer = Ext.extend(Ext.grid.RowNumberer, {
|
|
|
width: 50
|
|
|
});
|
|
|
|
|
|
this.girdcolums = [{
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSNO',
|
|
|
header: '业务编号',
|
|
|
hidden: true,
|
|
|
width: 150
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTNO',
|
|
|
header: '委托编号',
|
|
|
width: 130
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMNO',
|
|
|
header: '报关单号',
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ISCLEAR',
|
|
|
header: '已通关',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '1')
|
|
|
return '是';
|
|
|
else
|
|
|
return '否';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMTYPE',
|
|
|
header: '报关类型',
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSDATE',
|
|
|
header: '录入日期',
|
|
|
width: 90
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSCUSTNO',
|
|
|
header: '自理编号',
|
|
|
width: 130
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSCUSTOMNO',
|
|
|
header: '关联报关单号',
|
|
|
width: 120
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ISCUSTOMEND',
|
|
|
header: '报关完结',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '1')
|
|
|
return '是';
|
|
|
else
|
|
|
return '否';
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
sortable: true,
|
|
|
id: '',
|
|
|
dataIndex: 'BSSTATUSREF',
|
|
|
header: '业务锁定',
|
|
|
align: 'center',
|
|
|
width: 60,
|
|
|
renderer: function (value, cellmeta) {
|
|
|
if (value == '锁定') {
|
|
|
return "<img src='../../../../TruckMng/Content/Images/Lock.png' />";
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
sortable: true,
|
|
|
id: '',
|
|
|
dataIndex: 'FEESTATUSREF',
|
|
|
header: '费用锁定',
|
|
|
align: 'center',
|
|
|
width: 60,
|
|
|
renderer: function (value, cellmeta) {
|
|
|
if (value == '锁定') {
|
|
|
return "<img src='../../../../TruckMng/Content/Images/Lock.png' />";
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
sortable: true,
|
|
|
id: '',
|
|
|
dataIndex: 'DRFEESTATUS',
|
|
|
header: '应收费用',
|
|
|
align: 'center',
|
|
|
width: 60,
|
|
|
renderer: function (value, meta) {
|
|
|
|
|
|
if (value == '审核通过') {
|
|
|
meta.tdCls = 'feestatus_pass';
|
|
|
} else if (value == '录入状态') {
|
|
|
|
|
|
} else if (value == '提交审核') {
|
|
|
meta.tdCls = 'feestatus_refer';
|
|
|
} else if (value == '部分结算') {
|
|
|
meta.tdCls = 'feestatus_refer';
|
|
|
} else if (value == '结算完毕') {
|
|
|
meta.tdCls = 'feestatus_settle';
|
|
|
} else if (value == '未录入') {
|
|
|
} else if (value == '部分结算') {
|
|
|
meta.tdCls = 'feestatus_settle';
|
|
|
} else if (value == '部分审核') {
|
|
|
meta.tdCls = 'feestatus_pass';
|
|
|
} else if (value == '部分提交') {
|
|
|
meta.tdCls = 'feestatus_refer';
|
|
|
}
|
|
|
return value;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
sortable: true,
|
|
|
id: '',
|
|
|
dataIndex: 'CRFEESTATUS',
|
|
|
header: '应付费用',
|
|
|
align: 'center',
|
|
|
width: 60,
|
|
|
renderer: function (value, meta) {
|
|
|
if (value == '审核通过') {
|
|
|
meta.tdCls = 'feestatus_pass';
|
|
|
} else if (value == '录入状态') {
|
|
|
|
|
|
} else if (value == '提交审核') {
|
|
|
meta.tdCls = 'feestatus_refer';
|
|
|
} else if (value == '部分结算') {
|
|
|
meta.tdCls = 'feestatus_refer';
|
|
|
} else if (value == '结算完毕') {
|
|
|
meta.tdCls = 'feestatus_settle';
|
|
|
} else if (value == '未录入') {
|
|
|
} else if (value == '部分结算') {
|
|
|
meta.tdCls = 'feestatus_settle';
|
|
|
} else if (value == '部分审核') {
|
|
|
meta.tdCls = 'feestatus_pass';
|
|
|
} else if (value == '部分提交') {
|
|
|
meta.tdCls = 'feestatus_refer';
|
|
|
}
|
|
|
return value;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
sortable: true,
|
|
|
id: '',
|
|
|
dataIndex: 'DRINVSTATUS',
|
|
|
header: '应收开票',
|
|
|
align: 'center',
|
|
|
width: 60,
|
|
|
renderer: function (value, meta) {
|
|
|
|
|
|
if (value == '已开票') {
|
|
|
meta.tdCls = 'feestatus_pass';
|
|
|
} else if (value == '部分开票') {
|
|
|
meta.tdCls = 'feestatus_refer';
|
|
|
}
|
|
|
return value;
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
|
|
|
text: '舱单状态',
|
|
|
align: 'center',
|
|
|
width: 130,
|
|
|
menuDisabled: true,
|
|
|
sortable: false,
|
|
|
dataIndex: 'MANIFESTSTATUS',
|
|
|
icon: '../../../../TruckMng/Content/Images/search.png',
|
|
|
xtype: 'actiontextcolumn',
|
|
|
handler: function (grid, rowIndex, colIndex) {
|
|
|
var rec = grid.getStore().getAt(rowIndex);
|
|
|
// alert(rec.get('BSNO'));
|
|
|
_this.onCustomStatusClick(rec);
|
|
|
}
|
|
|
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSTYPEREF',
|
|
|
header: '运输类型',
|
|
|
width: 90
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ACCDATE',
|
|
|
header: '会计期间',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'OPDATE',
|
|
|
header: '业务日期',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'MBLNO',
|
|
|
header: '提单号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'HBLNO',
|
|
|
header: '分提单号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMERNAME',
|
|
|
header: '委托单位',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ENTERP',
|
|
|
header: '经营单位',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSTYPE',
|
|
|
header: '业务类型',
|
|
|
hidden: true,
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'VESSEL',
|
|
|
header: '船名',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'VOYNO',
|
|
|
header: '航次',
|
|
|
width: 40
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ETD',
|
|
|
header: '开船日期',
|
|
|
width: 90
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ETA',
|
|
|
header: '到港日期',
|
|
|
width: 90
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PORTLOAD',
|
|
|
header: '装货港',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PORTDISCHARGE',
|
|
|
header: '卸货港',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'OP',
|
|
|
header: '操作',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SALE',
|
|
|
header: '销售',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMSER',
|
|
|
header: '报关行',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSSOURCE',
|
|
|
header: '业务来源',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSSOURCEDETAIL',
|
|
|
header: '来源明细',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'PKGS',
|
|
|
header: '件数',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'KGS',
|
|
|
header: '重量',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'NETWEIGHT',
|
|
|
header: '净重',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CBM',
|
|
|
header: '尺码',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMDATE',
|
|
|
header: '报关日期',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'INSPECTIONNO',
|
|
|
header: '商检单号',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'INSPECTIONDATE',
|
|
|
header: '商检日期',
|
|
|
hidden: true,
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'INVNO',
|
|
|
header: '发票号',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CONTRACTNO',
|
|
|
header: '合同号',
|
|
|
width: 160
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ARCOUNTRY',
|
|
|
header: '货源国别',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'GOODSOURCE',
|
|
|
header: '货源地',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'DOCNO',
|
|
|
header: '批准文号',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BOOKNO',
|
|
|
header: '手册号',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'TRADETYPE',
|
|
|
header: '贸易方式',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'BSSTATUS',
|
|
|
header: '业务锁定',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'FEESTATUS',
|
|
|
header: '费用锁定',
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'REMARK',
|
|
|
header: '备注',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMSNUM',
|
|
|
header: '报关项数',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'ISPRINTPR',
|
|
|
header: '打印核算单',
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '1')
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE1',
|
|
|
header: '服务项目1',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE2',
|
|
|
header: '服务项目2',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE3',
|
|
|
header: '服务项目3',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE4',
|
|
|
header: '服务项目4',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE5',
|
|
|
header: '服务项目5',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE6',
|
|
|
header: '服务项目6',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE7',
|
|
|
header: '服务项目7',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE8',
|
|
|
header: '服务项目8',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE9',
|
|
|
header: '服务项目9',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE10',
|
|
|
header: '服务项目10',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE11',
|
|
|
header: '服务项目11',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE12',
|
|
|
header: '服务项目12',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE13',
|
|
|
header: '服务项目13',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE14',
|
|
|
header: '服务项目14',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE15',
|
|
|
header: '服务项目15',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'SERVICE16',
|
|
|
header: '服务项目16',
|
|
|
hidden: true,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == '未完成') {
|
|
|
meta.tdCls = 'nopass';
|
|
|
}
|
|
|
return value;
|
|
|
},
|
|
|
width: 100
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE1',
|
|
|
header: '服务项目1',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE2',
|
|
|
header: '服务项目2',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE3',
|
|
|
header: '服务项目3',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE4',
|
|
|
header: '服务项目4',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE5',
|
|
|
header: '服务项目5',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE6',
|
|
|
header: '服务项目6',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE7',
|
|
|
header: '服务项目7',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE8',
|
|
|
header: '服务项目8',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE9',
|
|
|
header: '服务项目9',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE10',
|
|
|
header: '服务项目10',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE11',
|
|
|
header: '服务项目11',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE12',
|
|
|
header: '服务项目12',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE13',
|
|
|
header: '服务项目13',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE14',
|
|
|
header: '服务项目14',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE15',
|
|
|
header: '服务项目15',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'IsSERVICE16',
|
|
|
header: '服务项目16',
|
|
|
hidden: true,
|
|
|
width: 100,
|
|
|
renderer: function (value, meta, record) {
|
|
|
if (value == true)
|
|
|
return '√';
|
|
|
else
|
|
|
return '';
|
|
|
}
|
|
|
}
|
|
|
];
|
|
|
|
|
|
this.GridCheckBoxModel = Ext.create('Ext.selection.CheckboxModel');
|
|
|
|
|
|
//定义Grid
|
|
|
this.gridList = new Ext.grid.GridPanel({
|
|
|
store: this.storeList,
|
|
|
enableHdMenu: false,
|
|
|
region: 'center',
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
trackMouseOver: true,
|
|
|
disableSelection: false,
|
|
|
columns: this.girdcolums,
|
|
|
selModel: this.GridCheckBoxModel,
|
|
|
viewConfig: {
|
|
|
enableTextSelection: true, //允许复制数据
|
|
|
autoFill: true
|
|
|
},
|
|
|
// paging bar on the bottom
|
|
|
bbar: [Ext.create('Ext.PagingToolbar', {
|
|
|
store: this.storeList,
|
|
|
displayInfo: true,
|
|
|
displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录',
|
|
|
emptyMsg: "没有数据"
|
|
|
}), this.Pagenum]
|
|
|
});
|
|
|
|
|
|
/////////////以下部分为获取存储的gridpanel显示样式
|
|
|
this.girdcolums = DsTruck.GetGridPanel(USERID, this.formname, this.girdcolums, 1); //使用者id,表名,中间column数组,跳过一开始的几列
|
|
|
this.gridList.reconfigure(this.storeList, this.girdcolums);
|
|
|
this.gridList.columns[0] = new Ext.grid.RowNumberer();
|
|
|
////////////////////////////////////////////////
|
|
|
|
|
|
this.gridList.addListener('itemdblclick', function (dataview, record, item, index, e, b) {
|
|
|
this.SelectedRecord = record;
|
|
|
this.OprationStatus = 'edit';
|
|
|
DsOpenEditWin('/MvcShipping/MsOpApply/Edit');
|
|
|
}, this);
|
|
|
|
|
|
this.gridList.addListener('sortchange', function (ct, column, direction, eOpts) {
|
|
|
this.sortfield = column.dataIndex;
|
|
|
this.sortdire = direction;
|
|
|
}, this);
|
|
|
|
|
|
//#region formSearch
|
|
|
|
|
|
//#region formSearch枚举参照相关
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
_this = this;
|
|
|
|
|
|
this.StoreOpRange = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'MsOP',
|
|
|
proxy: { url: '/MvcShipping/MsBaseInfo/GetOpRang' }
|
|
|
});
|
|
|
|
|
|
this.StoreOpRange.load({ params: { optype: "modOpApplyOpwt"} });
|
|
|
|
|
|
this.storeBsType = Ext.create('DsExt.ux.RefEnumStore', {});
|
|
|
this.storeBsType.load({ params: { enumTypeId: 96004} });
|
|
|
|
|
|
this.comboxBsType = Ext.create('DsExt.ux.RefEnumCombox', {
|
|
|
fieldLabel: '运输类型',
|
|
|
store: this.storeBsType,
|
|
|
name: 'BsType',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
this.StoreFeeStatus = Ext.create('Ext.data.Store', {
|
|
|
fields: ['FeeStatus', 'Id']
|
|
|
});
|
|
|
this.StoreFeeStatus.add({ "FeeStatus": "没录入收费业务", "Id": "1" });
|
|
|
this.StoreFeeStatus.add({ "FeeStatus": "没录入付费业务", "Id": "2" });
|
|
|
this.StoreFeeStatus.add({ "FeeStatus": "没录入费用业务", "Id": "3" });
|
|
|
this.StoreFeeStatus.add({ "FeeStatus": "没提交费用业务", "Id": "4" });
|
|
|
this.StoreFeeStatus.add({ "FeeStatus": "被驳回费用业务", "Id": "5" });
|
|
|
this.StoreFeeStatus.add({ "FeeStatus": "未审核费用业务", "Id": "6" });
|
|
|
this.StoreFeeStatus.add({ "FeeStatus": "未结算费用业务", "Id": "7" });
|
|
|
|
|
|
|
|
|
this.comboxFeeStatus = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '费用状态',
|
|
|
store: this.StoreFeeStatus,
|
|
|
forceSelection: true,
|
|
|
name: 'PS_FEESTATUS',
|
|
|
valueField: 'Id',
|
|
|
displayField: 'FeeStatus',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
this.storeEnterpCode = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
fields: [
|
|
|
{ name: 'CUSTOMER', type: 'string' },
|
|
|
{ name: 'ENTERPID', type: 'string' }
|
|
|
],
|
|
|
proxy: { url: '/MvcShipping/MsOpApply/GetENTERPLIST' }
|
|
|
});
|
|
|
this.storeEnterpCode.load();
|
|
|
|
|
|
this.comboxEnterp = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '经营单位',
|
|
|
store: this.storeEnterpCode,
|
|
|
name: 'ENTERP',
|
|
|
valueField: 'CUSTOMER',
|
|
|
displayField: 'CUSTOMER',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
//客户加载_委托单位
|
|
|
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
model: 'DsShipping.ux.CustomRefModel',
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefList' }
|
|
|
});
|
|
|
this.storeCustCode.load({ params: { condition: "ISCONTROLLER='1'"} });
|
|
|
//委托单位
|
|
|
this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
fieldLabel: '委托单位',
|
|
|
store: this.storeCustCode,
|
|
|
forceSelection: true,
|
|
|
name: 'CustName',
|
|
|
valueField: 'CustName',
|
|
|
displayField: 'CodeAndName',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
this.formSearch = Ext.widget('form', {
|
|
|
frame: true,
|
|
|
region: 'center',
|
|
|
bodyPadding: 5,
|
|
|
fieldDefaults: {
|
|
|
margins: '2 2 2 2',
|
|
|
labelAlign: 'right',
|
|
|
flex: 1,
|
|
|
labelWidth: 90,
|
|
|
msgTarget: 'qtip'
|
|
|
},
|
|
|
|
|
|
items: [
|
|
|
{//fieldset 1
|
|
|
xtype: 'container',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
defaults: {
|
|
|
anchor: '100%'
|
|
|
},
|
|
|
items: [{
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '编号',
|
|
|
name: 'CustNo',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
fieldLabel: '从报关日期',
|
|
|
format: 'Y-m-d',
|
|
|
xtype: 'datefield',
|
|
|
name: 'ExpDateBgn',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
fieldLabel: '到报关日期',
|
|
|
format: 'Y-m-d',
|
|
|
xtype: 'datefield',
|
|
|
name: 'ExpDateEnd',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, this.comboxCustCode, this.comboxBsType, this.comboxFeeStatus, {
|
|
|
xtype: 'button',
|
|
|
width: 90,
|
|
|
text: "执行查询",
|
|
|
iconCls: "btnrefresh",
|
|
|
handler: function (button, event) {
|
|
|
this.onRefreshClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
fieldLabel: '报关单号',
|
|
|
name: 'PS_CUSTOMNO',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, this.comboxEnterp, {
|
|
|
fieldLabel: '从会计期间',
|
|
|
xtype: 'monthfield',
|
|
|
name: 'PS_ACCDATEBGN',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
fieldLabel: '至会计期间',
|
|
|
xtype: 'monthfield',
|
|
|
name: 'PS_ACCDATEEND',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
fieldLabel: '提单号',
|
|
|
name: 'MblNo',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
fieldLabel: '手册号',
|
|
|
name: 'BookNo',
|
|
|
enableKeyEvents: true,
|
|
|
listeners: {
|
|
|
specialkey: function (field, e) {
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
_this.onRefreshClick();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
xtype: 'button',
|
|
|
width: 90,
|
|
|
text: "高级查询",
|
|
|
iconCls: "btnmore",
|
|
|
handler: function (button, event) {
|
|
|
var sql = this.getCondition();
|
|
|
var winAccess = new Shipping.DsQuery({
|
|
|
|
|
|
});
|
|
|
winAccess.StoreList = this.storeList;
|
|
|
winAccess.formname = this.formname;
|
|
|
winAccess.condition = sql;
|
|
|
winAccess.show();
|
|
|
return;
|
|
|
},
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]//end items(fieldset 1)
|
|
|
}//end fieldset 1
|
|
|
]//end root items
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
//#endregion formSearch
|
|
|
|
|
|
//查询工具条
|
|
|
this.panelBtn = new Ext.Panel({
|
|
|
region: "north",
|
|
|
tbar: [
|
|
|
{
|
|
|
text: "新建",
|
|
|
iconCls: "btnadd",
|
|
|
handler: function (button, event) {
|
|
|
this.OprationStatus = 'add';
|
|
|
DsOpenEditWin('/MvcShipping/MsOpApply/Edit');
|
|
|
},
|
|
|
scope: this
|
|
|
|
|
|
},
|
|
|
{
|
|
|
text: "删除",
|
|
|
iconCls: "btndelete",
|
|
|
handler: function (button, event) {
|
|
|
this.onDeleteClick(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
},
|
|
|
'-',
|
|
|
{
|
|
|
text: "重置条件",
|
|
|
iconCls: "btnreset",
|
|
|
handler: function (button, event) {
|
|
|
this.onClearSql(button, event);
|
|
|
},
|
|
|
scope: this
|
|
|
}, '-', {
|
|
|
text: "保存列表样式",
|
|
|
id: "btntest",
|
|
|
handler: function (button, event) {
|
|
|
this.girdcolums = DsTruck.SaveGridPanel(USERID, this.formname, this.gridList.columns, this.girdcolums, 1, true);
|
|
|
},
|
|
|
scope: this
|
|
|
}, '-',
|
|
|
{
|
|
|
text: "打印",
|
|
|
iconCls: 'btnprint',
|
|
|
menu: [
|
|
|
{ text: "全部",
|
|
|
handler: function (menu, event) {
|
|
|
_this.Print();
|
|
|
}
|
|
|
}, { text: "选择打印",
|
|
|
handler: function (menu, event) {
|
|
|
_this.PrintSelect();
|
|
|
}
|
|
|
}],
|
|
|
|
|
|
scope: this
|
|
|
}
|
|
|
, '-', {
|
|
|
text: "EDI报文导出",
|
|
|
menu: [{
|
|
|
text: "易航线",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onCreateELineEDIClick(menu, event);
|
|
|
}
|
|
|
}],
|
|
|
scope: this
|
|
|
}
|
|
|
, '-', {
|
|
|
text: "其他操作",
|
|
|
menu: [
|
|
|
{ text: "批量状态更新",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onUpOpStatusClick(menu, event, 1);
|
|
|
}
|
|
|
}, { text: "费用编辑",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onFeeEditClick(menu, event);
|
|
|
}
|
|
|
}, { text: "批量费用提交",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onPiLiangSubmitClick(menu, event, 1);
|
|
|
}
|
|
|
}, { text: "服务模板费用",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onPiLiangServiceFeeClick(menu, event);
|
|
|
}
|
|
|
}, { text: "刷新舱单状态",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onCustomRefreshStatusClick(menu, event);
|
|
|
}
|
|
|
}, { text: "烟台码头状态",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onYanTaiYardStatusClick(menu, event);
|
|
|
}
|
|
|
}, { text: "QQCT|QQCTU海关放行",
|
|
|
handler: function (menu, event) {
|
|
|
_this.onQQCTQQCTUBILLClick(menu, event);
|
|
|
}
|
|
|
}],
|
|
|
scope: this
|
|
|
}
|
|
|
]
|
|
|
});
|
|
|
|
|
|
|
|
|
//#region 合计列表
|
|
|
|
|
|
this.SumField = [
|
|
|
{ name: 'NOBILL', type: 'number' },
|
|
|
{ name: 'CUSTOMSNUM', type: 'number' }
|
|
|
];
|
|
|
|
|
|
this.storeSumList = Ext.create('Ext.data.Store', {
|
|
|
pageSize: this.PageSize,
|
|
|
fields: this.SumField,
|
|
|
remoteSort: true,
|
|
|
proxy: {
|
|
|
type: 'ajax',
|
|
|
url: '/MvcShipping/MsOpApply/GetDataListSum',
|
|
|
reader: {
|
|
|
id: '',
|
|
|
root: 'data',
|
|
|
totalProperty: 'totalCount'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
this.girdcolumsSum = [{
|
|
|
sortable: true,
|
|
|
dataIndex: 'NOBILL',
|
|
|
header: '票数',
|
|
|
align: 'right',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMSNUM',
|
|
|
header: '报关项数',
|
|
|
align: 'right',
|
|
|
width: 80
|
|
|
}
|
|
|
|
|
|
];
|
|
|
|
|
|
this.gridListSum = new Ext.grid.GridPanel({
|
|
|
store: this.storeSumList,
|
|
|
enableHdMenu: false,
|
|
|
region: 'center',
|
|
|
loadMask: { msg: "数据加载中,请稍等..." },
|
|
|
trackMouseOver: true,
|
|
|
disableSelection: false,
|
|
|
columns: this.girdcolumsSum
|
|
|
});
|
|
|
|
|
|
this.panelSum = new Ext.Panel({
|
|
|
// title: '合 计',
|
|
|
layout: "border",
|
|
|
height: 70,
|
|
|
region: 'south',
|
|
|
margin: '0 0',
|
|
|
frame: true,
|
|
|
items: [this.gridListSum]
|
|
|
});
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
this.panelTop = new Ext.Panel({
|
|
|
layout: "border",
|
|
|
region: "north",
|
|
|
height: 108,
|
|
|
items: [this.formSearch, this.panelBtn]
|
|
|
});
|
|
|
|
|
|
Ext.apply(this, {
|
|
|
items: [this.panelTop, this.gridList, this.panelSum]
|
|
|
});
|
|
|
|
|
|
this.InitGrid();
|
|
|
_this = this;
|
|
|
var myDate = new Date();
|
|
|
var mydatestr = Ext.util.Format.date(myDate, 'Y-m');
|
|
|
this.sqlcontext = " ACCDATE='" + mydatestr + "'";
|
|
|
|
|
|
this.storeList.load({
|
|
|
params: { start: 0, limit: this.PageSize, sort: '', condition: _this.sqlcontext },
|
|
|
waitMsg: "正在查询数据...",
|
|
|
scope: this
|
|
|
});
|
|
|
this.onRefreshSumClick(_this.sqlcontext);
|
|
|
this.storeList.on('beforeload', function (store) {
|
|
|
// var sql = this.getCondition();
|
|
|
Ext.apply(store.proxy.extraParams, { condition: _this.sqlcontext });
|
|
|
}, this);
|
|
|
|
|
|
//#region EDI报文导出
|
|
|
|
|
|
//#region 下载窗体
|
|
|
this.formDownloadShow = Ext.widget('form', {
|
|
|
frame: true,
|
|
|
region: 'center',
|
|
|
height: 100,
|
|
|
bodyPadding: 5,
|
|
|
fieldDefaults: {
|
|
|
margins: '2 2 2 2',
|
|
|
labelAlign: 'right',
|
|
|
flex: 1,
|
|
|
labelWidth: 90,
|
|
|
msgTarget: 'qtip'
|
|
|
},
|
|
|
items: [{//fieldset 1
|
|
|
xtype: 'container',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
id: 'downloadfile',
|
|
|
defaults: {
|
|
|
anchor: '100%'
|
|
|
},
|
|
|
items: [{
|
|
|
xtype: 'label',
|
|
|
html: '',
|
|
|
width: 120,
|
|
|
text: ''
|
|
|
}]//end items(fieldset 1)
|
|
|
}]//end root items
|
|
|
});
|
|
|
|
|
|
me = this;
|
|
|
this.winDownloadShow = Ext.create('Ext.window.Window', {
|
|
|
title: "下载文件",
|
|
|
width: 450,
|
|
|
height: 120,
|
|
|
//plain : true,
|
|
|
iconCls: "addicon",
|
|
|
resizable: false,
|
|
|
// 是否可以拖动
|
|
|
// draggable:false,
|
|
|
collapsible: true, // 允许缩放条
|
|
|
closeAction: 'close',
|
|
|
closable: true,
|
|
|
modal: 'true',
|
|
|
buttonAlign: "center",
|
|
|
bodyStyle: "padding:0 0 0 0",
|
|
|
items: [this.formDownloadShow],
|
|
|
buttons: [{
|
|
|
text: "关闭",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
me.winDownloadShow.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
//#endregion
|
|
|
|
|
|
//#region 易航线
|
|
|
this.formELineEDIShow = Ext.widget('form', {
|
|
|
frame: true,
|
|
|
region: 'center',
|
|
|
bodyPadding: 5,
|
|
|
fieldDefaults: {
|
|
|
margins: '2 2 2 2',
|
|
|
labelAlign: 'right',
|
|
|
flex: 1,
|
|
|
labelWidth: 90,
|
|
|
msgTarget: 'qtip'
|
|
|
},
|
|
|
items: [{
|
|
|
xtype: 'container',
|
|
|
defaultType: 'textfield',
|
|
|
layout: 'anchor',
|
|
|
defaults: { anchor: '100%' },
|
|
|
items: [{
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
xtype: 'radiogroup',
|
|
|
fieldLabel: '报文类型',
|
|
|
id: 'ELineFILETYPE',
|
|
|
defaults: { flex: 1 },
|
|
|
layout: 'hbox',
|
|
|
items: [{
|
|
|
boxLabel: '订舱',
|
|
|
name: 'FILETYPE',
|
|
|
checked: true,
|
|
|
inputValue: 'B'
|
|
|
}
|
|
|
, {
|
|
|
boxLabel: '确认',
|
|
|
name: 'FILETYPE',
|
|
|
inputValue: 'E'
|
|
|
}
|
|
|
]
|
|
|
}]
|
|
|
}, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
xtype: 'radiogroup',
|
|
|
fieldLabel: '文件功能',
|
|
|
id: 'ELineFILEROLE',
|
|
|
defaults: { flex: 1 },
|
|
|
layout: 'hbox',
|
|
|
items: [{
|
|
|
boxLabel: '原始',
|
|
|
name: 'FILEROLE',
|
|
|
inputValue: 'NEW',
|
|
|
checked: true
|
|
|
}, {
|
|
|
boxLabel: '更新',
|
|
|
name: 'FILEROLE',
|
|
|
inputValue: 'UPD'
|
|
|
}, {
|
|
|
boxLabel: '删除',
|
|
|
name: 'FILEROLE',
|
|
|
inputValue: 'CAN'
|
|
|
}]
|
|
|
}]
|
|
|
}
|
|
|
, {
|
|
|
xtype: 'container',
|
|
|
layout: 'hbox',
|
|
|
defaultType: 'textfield',
|
|
|
items: [{
|
|
|
xtype: 'radiogroup',
|
|
|
fieldLabel: '船公司',
|
|
|
columns: 2,
|
|
|
vertical: true,
|
|
|
id: 'ELineCARRIER',
|
|
|
items: [{
|
|
|
boxLabel: '中远COSCO',
|
|
|
name: 'CARRIER',
|
|
|
inputValue: 'COSU',
|
|
|
checked: true
|
|
|
}]
|
|
|
}]
|
|
|
}
|
|
|
]//end items(fieldset 1)
|
|
|
}]//end root items
|
|
|
});
|
|
|
me = this;
|
|
|
this.winELineEDIShow = Ext.create('Ext.window.Window', {
|
|
|
title: "生成易航线EDI报文",
|
|
|
width: 450,
|
|
|
//height : 120,
|
|
|
//plain : true,
|
|
|
iconCls: "addicon",
|
|
|
resizable: false,
|
|
|
// 是否可以拖动
|
|
|
// draggable:false,
|
|
|
collapsible: true, // 允许缩放条
|
|
|
closeAction: 'close',
|
|
|
closable: true,
|
|
|
modal: 'true',
|
|
|
buttonAlign: "center",
|
|
|
bodyStyle: "padding:0 0 0 0",
|
|
|
//items: [this.formELineEDIShow],
|
|
|
buttons: [{
|
|
|
text: "上传EDI",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
var cgFILETYPE = ""; //Ext.getCmp('ELineFILETYPE');
|
|
|
var FILETYPE = ""; //cgFILETYPE.getValue();
|
|
|
var cgFILEROLE = ""; //Ext.getCmp('ELineFILEROLE');
|
|
|
var FILEROLE = ""; //cgFILEROLE.getValue();
|
|
|
var CARRIER = ""; // Ext.getCmp('ELineCARRIER').getValue();
|
|
|
var IsBill = 0;
|
|
|
me.onSendELineEDI(FILETYPE.FILETYPE, FILEROLE.FILEROLE, IsBill, CARRIER.CARRIER);
|
|
|
}
|
|
|
}, {
|
|
|
text: "保存EDI文件",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
var cgFILETYPE = ""; //Ext.getCmp('ELineFILETYPE');
|
|
|
var FILETYPE = ""; //cgFILETYPE.getValue();
|
|
|
var cgFILEROLE = ""; //Ext.getCmp('ELineFILEROLE');
|
|
|
var FILEROLE = ""; //cgFILEROLE.getValue();
|
|
|
var CARRIER = ""; //Ext.getCmp('ELineCARRIER').getValue();
|
|
|
var IsBill = 0;
|
|
|
me.onSaveELineEDI(FILETYPE.FILETYPE, FILEROLE.FILEROLE, IsBill, CARRIER.CARRIER);
|
|
|
}
|
|
|
}, {
|
|
|
text: "关闭",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
me.winELineEDIShow.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
//#endregion
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
}, //end initUIComponents
|
|
|
|
|
|
InitGrid: function () {
|
|
|
|
|
|
// var agirdcolums = Ext.clone(this.gridList.columns);
|
|
|
var agirdcolums = this.girdcolums;
|
|
|
|
|
|
|
|
|
this.storecodeservice.load({ params: { condition: "OPTYPE='5'" },
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
if (r.length != 0) {
|
|
|
|
|
|
for (i = 0; i < this.storecodeservice.getCount(); i += 1) {
|
|
|
var itemindex = i + 1;
|
|
|
var memberyf = this.storecodeservice.getAt(i);
|
|
|
for (var j = 0; j < agirdcolums.length; j++) {
|
|
|
if (agirdcolums[j].dataIndex == memberyf.data.OPField) {
|
|
|
agirdcolums[j].header = memberyf.data.SERVICENAME + '(状态)';
|
|
|
agirdcolums[j].hidden = false;
|
|
|
|
|
|
} else if (agirdcolums[j].dataIndex == 'Is' + memberyf.data.OPField) {
|
|
|
agirdcolums[j].header = memberyf.data.SERVICENAME;
|
|
|
agirdcolums[j].hidden = false;
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
}
|
|
|
this.gridList.reconfigure(this.storeList, agirdcolums);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
onRefreshClick: function (button, event) {
|
|
|
// var girdcolums = this.gridList.getColumnMode();
|
|
|
|
|
|
var sql = this.getCondition();
|
|
|
this.sqlcontext = sql;
|
|
|
this.PageSize = this.Pagenum.getValue();
|
|
|
this.storeList.pageSize = this.PageSize;
|
|
|
this.storeList.load({
|
|
|
params: { start: 0, limit: this.PageSize, sort: '', condition: sql },
|
|
|
waitMsg: "正在查询数据...",
|
|
|
scope: this
|
|
|
});
|
|
|
this.onRefreshSumClick(sql);
|
|
|
},
|
|
|
|
|
|
onDsQuery: function () {
|
|
|
//var girdcolums = this.gridList.getColumnMode();
|
|
|
var sql = this.sqlcontext;
|
|
|
this.PageSize = this.Pagenum.getValue();
|
|
|
this.storeList.pageSize = this.PageSize;
|
|
|
this.storeList.load({
|
|
|
params: { start: 0, limit: this.PageSize, sort: '', condition: sql },
|
|
|
waitMsg: "正在查询数据...",
|
|
|
scope: this
|
|
|
});
|
|
|
this.onRefreshSumClick(sql);
|
|
|
},
|
|
|
|
|
|
onRefreshSumClick: function (sql) {
|
|
|
|
|
|
this.SumField = [
|
|
|
{ name: 'NOBILL', type: 'number' },
|
|
|
{ name: 'CUSTOMSNUM', type: 'number' }
|
|
|
];
|
|
|
|
|
|
|
|
|
this.girdcolumsSum = [{
|
|
|
sortable: true,
|
|
|
dataIndex: 'NOBILL',
|
|
|
header: '票数',
|
|
|
align: 'right',
|
|
|
width: 80
|
|
|
}, {
|
|
|
sortable: true,
|
|
|
dataIndex: 'CUSTOMSNUM',
|
|
|
header: '报关项数',
|
|
|
align: 'right',
|
|
|
width: 80
|
|
|
}
|
|
|
|
|
|
];
|
|
|
|
|
|
_this = this;
|
|
|
this.storecodeservice.load({ params: { condition: "OPTYPE='5'" },
|
|
|
callback: function (r, options, success) {
|
|
|
if (success) {
|
|
|
if (r.length != 0) {
|
|
|
for (i = 0; i < _this.storecodeservice.getCount(); i += 1) {
|
|
|
var itemindex = i + 1;
|
|
|
var memberyf = _this.storecodeservice.getAt(i);
|
|
|
_this.SumField.push({ name: memberyf.data.OPField, type: 'number' });
|
|
|
_this.girdcolumsSum.push({
|
|
|
sortable: true,
|
|
|
dataIndex: memberyf.data.OPField,
|
|
|
header: memberyf.data.SERVICENAME,
|
|
|
width: 80
|
|
|
});
|
|
|
|
|
|
};
|
|
|
}
|
|
|
|
|
|
|
|
|
_this.storeSumList = Ext.create('Ext.data.Store', {
|
|
|
pageSize: this.PageSize,
|
|
|
fields: _this.SumField,
|
|
|
remoteSort: true,
|
|
|
proxy: {
|
|
|
type: 'ajax',
|
|
|
url: '/MvcShipping/MsOpApply/GetDataListSum',
|
|
|
reader: {
|
|
|
id: '',
|
|
|
root: 'data',
|
|
|
totalProperty: 'totalCount'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
_this.gridListSum.reconfigure(_this.storeSumList, _this.girdcolumsSum);
|
|
|
_this.storeSumList.load({
|
|
|
params: { condition: sql },
|
|
|
waitMsg: "正在查询数据...",
|
|
|
scope: this
|
|
|
});
|
|
|
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
onDeleteClick: function (button, event) {
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var record = selections[0];
|
|
|
|
|
|
if (record.data.BSSTATUS == '1') {
|
|
|
Ext.Msg.show({ title: '警告', msg: '业务已锁定,不允许删除!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (record.data.FEESTATUS == '1') {
|
|
|
Ext.Msg.show({ title: '警告', msg: '费用已锁定,不允许删除!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (this.StoreOpRange.getCount() == 0) {
|
|
|
Ext.Msg.show({ title: '警告', msg: '权限不足,不允许删除!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
var op = record.data.OP;
|
|
|
var inputby = record.data.INPUTBY;
|
|
|
var records = DsStoreQueryBy(this.StoreOpRange, 'OPID', op);
|
|
|
if (records.getCount() > 0) {
|
|
|
} else {
|
|
|
var recordins = DsStoreQueryBy(this.StoreOpRange, 'OPID', inputby);
|
|
|
if (recordins.getCount() > 0) {
|
|
|
} else {
|
|
|
canedit = false;
|
|
|
Ext.Msg.show({ title: '警告', msg: '权限不足,不允许删除!', icon: Ext.Msg.WARNING, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
Ext.MessageBox.confirm('提示', '确定删除该记录吗?', function (btn) {
|
|
|
if (btn == 'yes') {
|
|
|
Ext.Msg.wait('正在删除数据...');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在删除数据...',
|
|
|
url: '/MvcShipping/MsOpApply/Delete',
|
|
|
params: {
|
|
|
data: Ext.JSON.encode(record.data)
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
this.storeList.remove(record);
|
|
|
Ext.Msg.show({ title: '提示', msg: jsonresult.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
failure: function (response, options) {
|
|
|
Ext.Msg.show({ title: '警告', msg: '服务器响应出错,请重试', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
},
|
|
|
success: function (response, options) {
|
|
|
},
|
|
|
scope: this
|
|
|
}); //end Ext.Ajax.request
|
|
|
}
|
|
|
}, this);
|
|
|
},
|
|
|
|
|
|
onUpOpStatusClick: function (menu, event, type) {
|
|
|
|
|
|
var selections = this.GridCheckBoxModel.selected.items;
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要更新的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var BSNOStr = '';
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
var BSNO = "'" + rec.data.BSNO + "'";
|
|
|
if (BSNOStr == '')
|
|
|
BSNOStr = BSNO;
|
|
|
else {
|
|
|
|
|
|
BSNOStr = BSNOStr + ',' + BSNO;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if (BSNOStr == '') {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要更新的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.selectbsno = " BSNO IN (" + BSNOStr + ")";
|
|
|
|
|
|
window.open('/MvcShipping/MsOpStatus/PiLiang', "PILIANGOPSTATUS", 'width=1200,height=600,top=0,left=0,resizable=yes,status=yes,menubar=no,scrollbars=yes');
|
|
|
}
|
|
|
|
|
|
|
|
|
},
|
|
|
onPiLiangSubmitClick: function (menu, event, type) {
|
|
|
|
|
|
var selections = this.GridCheckBoxModel.selected.items;
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要更新的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var BSNOStr = '';
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
var BSNO = "'" + rec.data.BSNO + "'";
|
|
|
if (BSNOStr == '')
|
|
|
BSNOStr = BSNO;
|
|
|
else {
|
|
|
|
|
|
BSNOStr = BSNOStr + ',' + BSNO;
|
|
|
}
|
|
|
}
|
|
|
this.storePLList.removeAll();
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
|
|
|
if (BSNOStr == '') {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要更新的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.selectbsno = " BSNO IN (" + BSNOStr + ")";
|
|
|
|
|
|
window.open('/Account/Chfee_Audit/PiLiangSubmit', "PILIANGSUBMIT", 'width=1200,height=600,top=0,left=0,resizable=yes,status=yes,menubar=no,scrollbars=yes');
|
|
|
}
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
onFeeEditClick: function (menu, event) {
|
|
|
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var record = selections[0];
|
|
|
|
|
|
this.SelectedRecord = record;
|
|
|
this.OprationStatus = 'edit';
|
|
|
DsOpenEditWin('/MvcShipping/MsOpApply/PiLiangFeeEdit');
|
|
|
|
|
|
|
|
|
},
|
|
|
//#region 舱单状态
|
|
|
onCustomRefreshStatusClick: function (button, event) {
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要刷新的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
if (rec.data.MANIFESTSTATUS != '装载放行') {
|
|
|
bodyAddDatas.push(rec);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
_this = this;
|
|
|
if (bodyAddDatas.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要刷新的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.wait('正在提取数据...');
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在锁定...',
|
|
|
url: '/MvcShipping/MsOpApply/Refresh56CDCSTATUSList',
|
|
|
params: {
|
|
|
data: jsonbodyAddDatas
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({
|
|
|
title: '提示',
|
|
|
msg: result.Message,
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
buttons: Ext.Msg.OK
|
|
|
});
|
|
|
return;
|
|
|
} else {
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
_this.onRefreshClick();
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
onCustomStatusClick: function (rec) {
|
|
|
var bsno = rec.get('BSNO');
|
|
|
var mblno = rec.get('MBLNO')
|
|
|
|
|
|
Ext.Msg.wait('正在提取数据...');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在提取数据...',
|
|
|
url: '/MvcShipping/MsOpApply/Get56CDCSTATUSList',
|
|
|
params: {
|
|
|
mblno: mblno,
|
|
|
bsno: bsno
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
|
|
|
var statusdata = jsonresult.data;
|
|
|
var boxitems = "";
|
|
|
|
|
|
|
|
|
formCustomDataShow = Ext.widget('form', {
|
|
|
region: 'center',
|
|
|
autoScroll: true, height: 380,
|
|
|
border: false,
|
|
|
bodyPadding: 0,
|
|
|
html: jsonresult.data
|
|
|
});
|
|
|
|
|
|
me = this;
|
|
|
winCustomDataShow = Ext.create('Ext.window.Window', {
|
|
|
title: "",
|
|
|
closeAction: 'hide',
|
|
|
width: 750,
|
|
|
height: 400,
|
|
|
layout: 'fit',
|
|
|
resizable: true,
|
|
|
modal: true,
|
|
|
closable: false,
|
|
|
items: [formCustomDataShow],
|
|
|
buttons: [{
|
|
|
text: "关闭",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
winCustomDataShow.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
winCustomDataShow.show();
|
|
|
rec.set('MANIFESTSTATUS', jsonresult.Message);
|
|
|
rec.commit();
|
|
|
Ext.Msg.hide();
|
|
|
|
|
|
}
|
|
|
else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
failure: function (response, options) {
|
|
|
Ext.Msg.show({ title: '警告', msg: '服务器响应出错,请重试', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
},
|
|
|
success: function (response, options) { },
|
|
|
scope: this
|
|
|
}); //end Ext.Ajax.request
|
|
|
|
|
|
},
|
|
|
//#endregion
|
|
|
|
|
|
//#region 批量模板费用
|
|
|
|
|
|
onPiLiangServiceFeeClick: function (button, event) {
|
|
|
var GidStr = '';
|
|
|
var records = this.GridCheckBoxModel.selected.items;
|
|
|
if (records.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要更新的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
this.storePLList.removeAll();
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var rec = records[i];
|
|
|
this.storePLList.add(rec.data);
|
|
|
}
|
|
|
|
|
|
|
|
|
_this = this;
|
|
|
if (this.storePLList.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要更新的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
DsOpenEditWin('/MvcShipping/MsOpApply/PiLiangServiceFeeEdit');
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
//#region QQCT、QQCTU海关放行查询
|
|
|
onQQCTQQCTUBILLClick: function (button, event) {
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var record = selections[0];
|
|
|
var mblno = record.data.MBLNO;
|
|
|
if (mblno == "") {
|
|
|
Ext.Msg.show({ title: '提示', msg: '提单号不能为空!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
Ext.Msg.wait('正在提取数据...');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在提取数据...',
|
|
|
url: '/MvcShipping/MsOpApply/GetQQCTQQCTUBILL',
|
|
|
params: {
|
|
|
mblno: mblno,
|
|
|
bsno: ''
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
var statusdata = jsonresult.data;
|
|
|
var boxitems = "";
|
|
|
formCustomDataShow = Ext.widget('form', {
|
|
|
region: 'center',
|
|
|
autoScroll: true, height: 460,
|
|
|
bodyPadding: 0,
|
|
|
html: jsonresult.data
|
|
|
});
|
|
|
me = this;
|
|
|
winCustomDataShow = Ext.create('Ext.window.Window', {
|
|
|
title: "",
|
|
|
width: 1100,
|
|
|
height: 500,
|
|
|
layout: 'fit',
|
|
|
resizable: true,
|
|
|
modal: true,
|
|
|
closeAction: 'close',
|
|
|
closable: true,
|
|
|
items: [formCustomDataShow],
|
|
|
buttons: [{
|
|
|
text: "关闭",
|
|
|
minWidth: 70,
|
|
|
handler: function () {
|
|
|
winCustomDataShow.close();
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
winCustomDataShow.show();
|
|
|
Ext.Msg.hide();
|
|
|
}
|
|
|
else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
failure: function (response, options) {
|
|
|
Ext.Msg.show({ title: '警告', msg: '服务器响应出错,请重试', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
},
|
|
|
success: function (response, options) { },
|
|
|
timeout: 5000000, //30秒
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
//#endregion
|
|
|
|
|
|
//#region EDI报文导出
|
|
|
|
|
|
//#region 易航线
|
|
|
onCreateELineEDIClick: function (menu, event) {
|
|
|
this.winELineEDIShow.show();
|
|
|
},
|
|
|
|
|
|
onSendELineEDI: function (filetype, filerole, isbill, carrier) {
|
|
|
var GidStr = '';
|
|
|
var selections = this.GridCheckBoxModel.selected.items;
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: "提示", msg: "请先选择要操作的业务!", icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var BSNOStr = '';
|
|
|
var j = 0;
|
|
|
var Mblno = '';
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
Mblno = rec.data.MBLNO;
|
|
|
var BSNO = rec.data.BSNO;
|
|
|
if (BSNOStr == '')
|
|
|
BSNOStr = BSNO;
|
|
|
else {
|
|
|
BSNOStr = BSNOStr + ',' + BSNO;
|
|
|
}
|
|
|
}
|
|
|
if (BSNOStr == '') {
|
|
|
Ext.Msg.show({ title: "提示", msg: "没有要操作的业务!", icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
} else {
|
|
|
Ext.Msg.wait("正在操作数据, 请稍侯...");
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: "正在操作数据, 请稍侯...",
|
|
|
url: '/MvcShipping/MsOpApply/CreateELineEDIList',
|
|
|
params: {
|
|
|
bsnos: BSNOStr,
|
|
|
mblno: Mblno,
|
|
|
filetype: filetype,
|
|
|
filerole: filerole,
|
|
|
isbill: isbill,
|
|
|
carrier: carrier
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({ title: "提示", msg: result.Message, icon: Ext.MessageBox.ERROR, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
} else {
|
|
|
Ext.Msg.show({ title: "提示", msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
onSaveELineEDI: function (filetype, filerole, isbill, carrier) {
|
|
|
var GidStr = '';
|
|
|
var selections = this.GridCheckBoxModel.selected.items;
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: "提示", msg: "请先选择要操作的业务!", icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
var BSNOStr = '';
|
|
|
var j = 0;
|
|
|
var Mblno = '';
|
|
|
for (var i = 0; i < selections.length; i++) {
|
|
|
var rec = selections[i];
|
|
|
Mblno = rec.data.MBLNO;
|
|
|
var BSNO = rec.data.BSNO;
|
|
|
if (BSNOStr == '')
|
|
|
BSNOStr = BSNO;
|
|
|
else {
|
|
|
BSNOStr = BSNOStr + ',' + BSNO;
|
|
|
}
|
|
|
}
|
|
|
if (BSNOStr == '') {
|
|
|
Ext.Msg.show({ title: "提示", msg: "没有要操作的业务!", icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
} else {
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: "Changing...",
|
|
|
url: '/MvcShipping/MsOpApply/SaveELineEDIList',
|
|
|
params: {
|
|
|
bsnos: BSNOStr,
|
|
|
mblno: Mblno,
|
|
|
filetype: filetype,
|
|
|
filerole: filerole,
|
|
|
isbill: isbill,
|
|
|
carrier: carrier
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
if (!result.Success) {
|
|
|
Ext.Msg.show({ title: "提示", msg: result.Message, icon: Ext.MessageBox.ERROR, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
} else {
|
|
|
var downloadfile = Ext.getCmp('downloadfile');
|
|
|
var children = downloadfile.items;
|
|
|
if (children) {
|
|
|
for (var i = 0, len = children.length; i < len; i++) {
|
|
|
downloadfile.remove(children.items[i], true);
|
|
|
}
|
|
|
}
|
|
|
//
|
|
|
var urlAll = result.Data.toString().split("&");
|
|
|
var filenameAll = result.Message.toString().split("&");
|
|
|
var downloadfiles = '';
|
|
|
for (var i = 0; i < urlAll.length; i++) {
|
|
|
downloadfiles += '<a href="' + urlAll[i].toString() + '" style=' + '"text-decoration:none"' + '>' + filenameAll[i].toString() + '</a><br/>';
|
|
|
}
|
|
|
//var downloadfiles = '<a href="' + result.Data + '" style=' + '"text-decoration:none"' + '>' + result.Message + '</a>';
|
|
|
var htmla = Ext.widget('label', {
|
|
|
html: downloadfiles,
|
|
|
width: 120,
|
|
|
text: ''
|
|
|
});
|
|
|
downloadfile.items.add(htmla);
|
|
|
this.winDownloadShow.show();
|
|
|
}
|
|
|
} else {
|
|
|
Ext.MessageBox.alert('The Server Response Error, Please Try Again', response.responseText);
|
|
|
}
|
|
|
},
|
|
|
scope: this
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
//#endregion
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
onYanTaiYardStatusClick: function (button, event) {
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var record = selections[0];
|
|
|
var mblno = record.data.MBLNO;
|
|
|
|
|
|
if (mblno == "") {
|
|
|
Ext.Msg.show({ title: '提示', msg: '没有要刷新查看的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
var yantaiyardview = new Shipping.YantaiYardView({
|
|
|
|
|
|
});
|
|
|
yantaiyardview.mblno = mblno;
|
|
|
yantaiyardview.show();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
onClearSql: function () {
|
|
|
var form = this.formSearch.getForm();
|
|
|
form.reset();
|
|
|
}, //onDeleteClick
|
|
|
getCondition: function () {
|
|
|
var form = this.formSearch.getForm();
|
|
|
if (!form.isValid()) {
|
|
|
Ext.Msg.alert('提示', '查询条件赋值错误,请检查。');
|
|
|
return '';
|
|
|
}
|
|
|
|
|
|
var sql = '';
|
|
|
|
|
|
var billNo = form.findField('CustNo').getValue();
|
|
|
sql = sql + getAndConSql(sql, billNo, " CustNo like '%" + billNo + "%'");
|
|
|
|
|
|
var CustomNo = form.findField('PS_CUSTOMNO').getValue();
|
|
|
sql = sql + getAndConSql(sql, CustomNo, " CUSTOMNO like '%" + CustomNo + "%' ");
|
|
|
|
|
|
|
|
|
|
|
|
var BsType = form.findField('BsType').getValue();
|
|
|
sql = sql + getAndConSql(sql, BsType, "BsType= '" + BsType + "'");
|
|
|
|
|
|
|
|
|
var MblNo = form.findField('MblNo').getValue();
|
|
|
sql = sql + getAndConSql(sql, MblNo, " (MblNo like '%" + MblNo + "%' or Hblno like '%" + MblNo + "%')");
|
|
|
|
|
|
// var HblNo = form.findField('HblNo').getValue();
|
|
|
// sql = sql + getAndConSql(sql, HblNo, "HblNo like '%" + HblNo + "%'");
|
|
|
|
|
|
var BookNo = form.findField('BookNo').getValue();
|
|
|
sql = sql + getAndConSql(sql, BookNo, "BOOKNO like '%" + BookNo + "%'");
|
|
|
|
|
|
var custName = form.findField('CustName').getValue();
|
|
|
sql = sql + getAndConSql(sql, custName, "CUSTOMERNAME like '%" + custName + "%'");
|
|
|
|
|
|
var expDateBgn = form.findField('ExpDateBgn').getRawValue();
|
|
|
sql = sql + getAndConSql(sql, expDateBgn, "CUSTOMDATE >='" + expDateBgn + "'");
|
|
|
|
|
|
var expDateEnd = form.findField('ExpDateEnd').getRawValue();
|
|
|
sql = sql + getAndConSql(sql, expDateEnd, "CUSTOMDATE <='" + expDateEnd + "'");
|
|
|
|
|
|
var accDate_Min = form.findField('PS_ACCDATEBGN').getRawValue();
|
|
|
sql = sql + getAndConSql(sql, accDate_Min, " ACCDATE>='" + accDate_Min + "'");
|
|
|
|
|
|
var accDate_Max = form.findField('PS_ACCDATEEND').getRawValue();
|
|
|
sql = sql + getAndConSql(sql, accDate_Max, " ACCDATE<='" + accDate_Max + "'");
|
|
|
|
|
|
// var opDateBgn = form.findField('OpDateBgn').getRawValue();
|
|
|
// sql = sql + getAndConSql(sql, opDateBgn, "OPDATE >='" + opDateBgn + "'");
|
|
|
|
|
|
// var opDateEnd = form.findField('OpDateEnd').getRawValue();
|
|
|
// sql = sql + getAndConSql(sql, opDateEnd, "OPDATE <='" + opDateEnd + "'");
|
|
|
|
|
|
var ENTERP = form.findField('ENTERP').getValue();
|
|
|
sql = sql + getAndConSql(sql, ENTERP, "ENTERP like '%" + ENTERP + "%'");
|
|
|
|
|
|
var FEESTATUS = form.findField('PS_FEESTATUS').getValue();
|
|
|
if (FEESTATUS == 1) {
|
|
|
sql = sql + getAndConSql(sql, FEESTATUS, " BSNO NOT IN (Select distinct BSNO from ch_fee where feetype=1) ");
|
|
|
} if (FEESTATUS == 2) {
|
|
|
sql = sql + getAndConSql(sql, FEESTATUS, " BSNO NOT IN (Select distinct BSNO from ch_fee where feetype=2) ");
|
|
|
} if (FEESTATUS == 3) {
|
|
|
sql = sql + getAndConSql(sql, FEESTATUS, " BSNO NOT IN (Select distinct BSNO from ch_fee ) ");
|
|
|
} if (FEESTATUS == 4) {
|
|
|
sql = sql + getAndConSql(sql, FEESTATUS, " BSNO IN (Select distinct BSNO from ch_fee where feestatus=1) ");
|
|
|
} if (FEESTATUS == 5) {
|
|
|
sql = sql + getAndConSql(sql, FEESTATUS, " BSNO IN (Select distinct BSNO from ch_fee where feestatus=6) ");
|
|
|
} if (FEESTATUS == 6) {
|
|
|
sql = sql + getAndConSql(sql, FEESTATUS, " BSNO IN (Select distinct BSNO from ch_fee where feestatus in (1,2,6)) ");
|
|
|
} if (FEESTATUS == 7) {
|
|
|
sql = sql + getAndConSql(sql, FEESTATUS, " BSNO IN (Select distinct BSNO from ch_fee where feestatus<>9 ");
|
|
|
}
|
|
|
|
|
|
return sql;
|
|
|
},
|
|
|
OprationSwap: function () {
|
|
|
var ret = new Array();
|
|
|
ret[0] = this.OprationStatus;
|
|
|
ret[1] = this.storeList;
|
|
|
ret[2] = this.SelectedRecord;
|
|
|
ret[3] = this.selectbsno;
|
|
|
ret[4] = 'op_apply';
|
|
|
ret[5] = this.storePLList;
|
|
|
|
|
|
return ret;
|
|
|
},
|
|
|
|
|
|
Print: function () {
|
|
|
|
|
|
_this = this;
|
|
|
if (this.storeList.getCount() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var bsno = '11111';
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length != 0) {
|
|
|
var record = selections[0];
|
|
|
bsno = record.data.BSNO;
|
|
|
}
|
|
|
|
|
|
|
|
|
var sortstr = '[{\"property\":\"BSDATE\",\"direction\":\"DESC\"}]';
|
|
|
|
|
|
if (this.sortfield != '' && this.sortdire != '') {
|
|
|
|
|
|
sortstr = this.sortfield + ' ' + this.sortdire;
|
|
|
}
|
|
|
|
|
|
Ext.Msg.wait('正在组织数据, 请稍侯..');
|
|
|
Ext.Ajax.request({
|
|
|
waitMsg: '正在组织数据...',
|
|
|
url: '/MvcShipping/MsOpApply/GetDataListStr',
|
|
|
scope: this,
|
|
|
params: {
|
|
|
condition: _this.sqlcontext,
|
|
|
printstr: 'true',
|
|
|
sort: sortstr
|
|
|
},
|
|
|
callback: function (options, success, response) {
|
|
|
if (success) {
|
|
|
Ext.MessageBox.hide();
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
if (jsonresult.Success) {
|
|
|
var returnstr = jsonresult.data;
|
|
|
var printType = 'MSOPAPPLYLIST';
|
|
|
var sql1 = returnstr;
|
|
|
var sql2 = "select * from op_apply where BSNO='" + bsno + "'";
|
|
|
var sql3 = "";
|
|
|
var sql4 = "";
|
|
|
var sql5 = "";
|
|
|
var sql6 = "";
|
|
|
|
|
|
PrintComm(printType, sql1, sql2, sql3, sql4, sql5, sql6);
|
|
|
|
|
|
} else {
|
|
|
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
}
|
|
|
} else {
|
|
|
Ext.Msg.show({ title: '请重试',
|
|
|
msg: '服务器响应出错',
|
|
|
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
|
|
|
PrintSelect: function () {
|
|
|
|
|
|
_this = this;
|
|
|
if (this.storeList.getCount() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
var selectedRecords = [];
|
|
|
var storeadd = null;
|
|
|
selectedRecords = this.GridCheckBoxModel.selected.items;
|
|
|
|
|
|
|
|
|
if (selectedRecords.length == 0) {
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要打印的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
var sortstr = 'BsDate desc';
|
|
|
|
|
|
if (this.sortfield != '' && this.sortdire != '') {
|
|
|
|
|
|
sortstr = this.sortfield + ' ' + this.sortdire;
|
|
|
}
|
|
|
|
|
|
var feeGidSql = '';
|
|
|
for (var i = 0; i < selectedRecords.length; i++) {
|
|
|
var record = selectedRecords[i];
|
|
|
var feeGId = "'" + record.get('BSNO') + "'";
|
|
|
if (feeGidSql == '') {
|
|
|
feeGidSql = feeGId;
|
|
|
} else {
|
|
|
feeGidSql = feeGidSql + "," + feeGId;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var bsno = '11111';
|
|
|
var selections = this.gridList.getSelectionModel().getSelection();
|
|
|
if (selections.length != 0) {
|
|
|
var record = selections[0];
|
|
|
bsno = record.data.BSNO;
|
|
|
}
|
|
|
|
|
|
var printType = 'MSOPAPPLYLISTSELECT';
|
|
|
var sql1 = "select *,(SELECT TOP 1 STATUS FROM OP_STATUS WHERE BSNO=op_apply.BSNO ORDER BY COMPTIME DESC,INPUTTIME DESC) as OPSTATUS from op_apply WHERE BSNO IN (" + feeGidSql + ") order by " + sortstr;
|
|
|
var sql2 = "select *,(SELECT TOP 1 STATUS FROM OP_STATUS WHERE BSNO=op_apply.BSNO ORDER BY COMPTIME DESC,INPUTTIME DESC) as OPSTATUS from op_apply where BSNO='" + bsno + "'";
|
|
|
var sql3 = "";
|
|
|
var sql4 = "";
|
|
|
var sql5 = "";
|
|
|
var sql6 = "";
|
|
|
|
|
|
PrintComm(printType, sql1, sql2, sql3, sql4, sql5, sql6);
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|