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/MvcShipping/Viewsjs/MsOpPrice/MsOpPriceHistryIndex.js

1887 lines
64 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.

Ext.namespace('Shipping');
Shipping.MsOpPriceHistryIndex = function (config) {
Ext.applyIf(this, config);
this.initUIComponents();
window.Shipping.MsOpPriceHistryIndex.superclass.constructor.call(this);
};
Ext.extend(Shipping.MsOpPriceHistryIndex, Ext.Panel, {
PageSize: 30,
OprationStatus: null, //仅当弹出界面时使用
SelectedRecord: null,
sqlcontext: '',
selectbsno: '',
sortfield: '',
sortdire: '',
billno: '',
pstoreCtnList:null,
pstoreOtherList:null,
initUIComponents: function () {
this.formname = "MsOpPriceHistryIndex"; //页面名称
this.ORDNO = getUrlParam('ORDNO');
this.ISXJ = getUrlParam('ISXJ');
_thisPriceHistry = this;
//定义数据集
this.StoreOpRange = Ext.create('DsExt.ux.RefTableStore', {
model: 'MsOP',
proxy: { url: '/MvcShipping/MsBaseInfo/GetOpRang' }
});
this.StoreOpRange.load({ params: { optype: "modOpPriceList" } });
this.storeList = Ext.create('Ext.data.Store', {
pageSize: this.PageSize,
model: 'MsOpPrice',
remoteSort: true,
proxy: {
type: 'ajax',
url: '/MvcShipping/MsOpPrice/GetDataList',
reader: {
id: 'GID',
root: 'data',
totalProperty: 'totalCount'
}
}
});
Ext.grid.RowNumberer = Ext.extend(Ext.grid.RowNumberer, {
width: 50
});
_thisPriceHistry = this;
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) {
_thisPriceHistry.onRefreshClick();
}
}
}
});
this.initgirdcolums = [{
sortable: true,
dataIndex: 'GID',
header: '业务编号',
hidden: true,
width: 80
},
{
sortable: true,
dataIndex: 'BILLSTATUSREF',
header: '报价单状态',
align: 'center',
width: 60
},
{
sortable: true,
dataIndex: 'PRICETYPE',
header: '报价单类型',
align: 'center',
width: 60
}, {
sortable: true,
dataIndex: 'BILLNO',
header: '报价单号',
width: 80
}, {
sortable: true,
dataIndex: 'CUSTOMERNAME',
header: '委托单位',
width: 80
}, {
sortable: true,
dataIndex: 'SALE',
header: '揽货人',
width: 80
}, {
sortable: true,
dataIndex: 'ORDNO',
header: '订舱编号',
width: 80
}, {
sortable: true,
dataIndex: 'PORTLOAD',
header: '装货港',
width: 80
}, {
sortable: true,
dataIndex: 'PORTDISCHARGE',
header: '卸货港',
width: 80
}, {
sortable: true,
dataIndex: 'CARRIER',
header: '船公司',
width: 80
}, {
sortable: true,
dataIndex: 'FORWARDER',
header: '供应商',
width: 80
}, {
sortable: true,
dataIndex: 'VIA',
header: '中转港',
width: 80
}, {
sortable: true,
dataIndex: 'ETD',
header: '开船日期',
width: 80
}, {
sortable: true,
dataIndex: 'TT',
header: '航程',
width: 80
}, {
sortable: true,
dataIndex: 'TTLFREIGHT',
header: '运费总价',
width: 80
}, {
sortable: true,
dataIndex: 'RMBOT',
header: '国内杂费',
width: 80
}, {
sortable: true,
dataIndex: 'USDOT',
header: '国外杂费美金',
width: 80
}, {
sortable: true,
dataIndex: 'OTHEROT',
header: '其他币别杂费',
width: 80
}, {
sortable: true,
dataIndex: 'SELLTTLFREIGHT',
header: '卖价运费总价',
width: 80
}, {
sortable: true,
dataIndex: 'SELLRMBOT',
header: '卖价国内杂费',
width: 80
}, {
sortable: true,
dataIndex: 'SELLUSDOT',
header: '卖价国外杂费美金',
width: 80
}, {
sortable: true,
dataIndex: 'SELLOTHEROT',
header: '卖价其他币别杂费',
width: 80
}, {
sortable: true,
dataIndex: 'CREATEUSER',
header: '录入人',
width: 80
}, {
sortable: true,
dataIndex: 'CREATETIME',
header: '录入日期',
width: 80
}, {
sortable: true,
dataIndex: 'MODIFIEDUSER',
header: '修改人',
width: 80
}, {
sortable: true,
dataIndex: 'MODIFIEDTIME',
header: '修改日期',
width: 80
}, {
sortable: true,
dataIndex: 'PQENDDATE',
header: '询价截止时间',
width: 80
}, {
sortable: true,
dataIndex: 'EFFECTIVEDATE',
header: '生效日期',
width: 80
}, {
sortable: true,
dataIndex: 'VALIDDATE',
header: '失效日期',
width: 80
}, {
sortable: true,
dataIndex: 'REMARK',
header: '备注',
width: 80
}];
this.girdcolums = this.initgirdcolums;
//定义Grid
this.GridCheckBoxModel = Ext.create('Ext.selection.CheckboxModel');
_thisPriceHistry = this;
this.gridList = new Ext.grid.GridPanel({
store: this.storeList,
enableHdMenu: false,
region: 'center',
loadMask: { msg: "数据加载中,请稍等..." },
trackMouseOver: true,
disableSelection: false,
selModel: this.GridCheckBoxModel,
columns: this.girdcolums,
viewConfig: {
enableTextSelection: true, //允许复制数据
autoFill: true,
getRowClass: function (record, rowIndex, rowParams, store) {
var PRICETYPE = record.get('PRICETYPE');
if (PRICETYPE == '报价')
return 'feestatus_pass';
}
},
tbar: [{
text: '确定引入',
tooltip: '确定引入',
iconCls: "btnadddetail",
id: "btnadddetailprice",
handler: function (button, event) {
if (this.ORDNO != undefined) {
this.onAddOrderClick(button, event);
} else {
this.onAddClick(button, event);
}
},
scope: this
}, {
text: '生成客户报价单',
tooltip: '生成客户报价单',
iconCls: "btnadddetail",
id: "btncreateprice",
handler: function (button, event) {
this.onCreateSellClick(button, event);
},
scope: this
}],
viewConfig: {
autoFill: true,
enableTextSelection: true
},
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';
if (record.data.PRICETYPE == '报价')
DsOpenEditWin('/MvcShipping/MsOpPrice/SellEdit', record.data.BILLNO);
else
DsOpenEditWin('/MvcShipping/MsOpPrice/Edit', record.data.BILLNO);
}, this);
this.gridList.addListener('sortchange', function (ct, column, direction, eOpts) {
this.sortfield = column.dataIndex;
this.sortdire = direction;
}, this);
//#region formSearch 查询条件
_thisPriceHistry = this;
//人员信息加载
this.storeSaleCode = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.UserRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetUserLinkRefListRm' }
});
this.storeSaleCode.load();
//操 作
this.comboxSALE = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '揽货人',
store: this.storeSaleCode,
forceSelection: true,
name: 'SALE',
queryMode: 'remote',
//flex: 0.5,
minChars: 0,
queryParam: 'CODENAME',
valueField: 'UserName',
displayField: 'CodeAndName',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
});
//客户加载_委托单位
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.CustomRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefListController' }
});
// this.storeCustCode.load({ params: { condition: "ISCONTROLLER='1'"} });
//委托单位
this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '委托单位',
store: this.storeCustCode,
forceSelection: true,
queryMode: 'remote',
minChars: 1,
queryParam: 'CODENAME',
name: 'CUSTOMERNAME',
valueField: 'CustName',
displayField: 'CodeAndName',
enableKeyEvents: true,
listeners: {
//specialkey: function (field, e) {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
});
//客户加载_船公司
this.storeCARRIER = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.CustomRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefListCARRIER' }
});
//船公司
this.comboxCARRIER = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '船公司', //'船公司',
store: this.storeCARRIER,
//forceSelection: true,
queryMode: 'remote',
minChars: 0,
queryParam: 'CODENAME',
name: 'CARRIER',
valueField: 'CustName',
displayField: 'CodeAndName',
enableKeyEvents: true,
listeners: {
//specialkey: function (field, e) {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
});
//客户加载_订舱代理
this.storeFORWARDER = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.CustomRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefListFORWARDER' }
});
//船公司
this.comboxFORWARDER = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '供应商', //'订舱代理',
store: this.storeFORWARDER,
forceSelection: true,
queryMode: 'remote',
minChars: 0,
queryParam: 'CODENAME',
name: 'FORWARDER',
valueField: 'CustName',
displayField: 'CodeAndName',
enableKeyEvents: true,
listeners: {
//specialkey: function (field, e) {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
});
this.storeCodeLoadport = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.CodeLoadportModel',
proxy: { url: '/CommMng/BasicDataRef/GetCodeLoadportListRm' }
});
this.storeCodeLoadport.load();
this.comboxPORTLOAD = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '装货港',
store: this.storeCodeLoadport,
queryMode: 'remote',
minChars: 2,
queryParam: 'PORT',
name: 'PORTLOAD',
valueField: 'PORT',
displayField: 'CodeAndName',
enableKeyEvents: true,
listeners: {
//specialkey: function (field, e) {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
});
this.comboxPORTDISCHARGE = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '卸货港',
store: this.storeCodeDisport,
name: 'PORTDISCHARGE',
valueField: 'PORT',
queryMode: 'remote',
matchFieldWidth: false,
minChars: 1,
queryParam: 'PORT',
displayField: 'CodeAndName',
enableKeyEvents: true,
listeners: {
//specialkey: function (field, e) {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
});
//人员信息加载
this.storeINPUTBYCode = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.UserRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetUserLinkRefListRm' }
});
this.storeINPUTBYCode.load();
this.comboxINPUTBY = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '录入人', //'录入人',
store: this.storeINPUTBYCode,
forceSelection: true,
name: 'CREATEUSER',
valueField: 'GID',
displayField: 'CodeAndName',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
});
this.storeAddDCType = Ext.create('Ext.data.Store', {
fields: ['DC', 'NAME']
});
this.storeAddDCType.add({ "DC": "0", "NAME": '审核通过' });
this.storeAddDCType.add({ "DC": "1", "NAME": '未提交' });
this.storeAddDCType.add({ "DC": "2", "NAME": '已提交' });
this.storeAddDCType.add({ "DC": "", "NAME": '全部' });
this.comboxaddDCType = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '报价单状态',
store: this.storeAddDCType,
valueField: 'DC',
displayField: 'NAME',
forceSelection: true,
name: 'BILLSTATUS',
value: '',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.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: [{
xtype: 'container',
defaultType: 'textfield',
layout: 'anchor',
defaults: {
anchor: '100%'
},
items: [{
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [{
fieldLabel: '报价单号',
name: 'BILLNO',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
}, this.comboxFORWARDER, this.comboxCustCode, {
fieldLabel: '订舱编号',
name: 'ORDNO',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
}, this.comboxSALE, this.comboxCARRIER, {
xtype: 'button',
width: 90,
text: "查询",
iconCls: "btnrefresh",
handler: function (button, event) {
this.onRefreshClick(button, event);
},
scope: this
}]
}, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [this.comboxaddDCType, this.comboxPORTLOAD, this.comboxPORTDISCHARGE, {
fieldLabel: '从录入日期',
format: 'Y-m-d',
xtype: 'datefield',
name: 'ETDBgn',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
}, {
fieldLabel: '到录入日期',
format: 'Y-m-d',
xtype: 'datefield',
name: 'ETDEnd',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_thisPriceHistry.onRefreshClick();
}
}
}
}, this.comboxINPUTBY, {
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
}]
}]
}]
});
//#endregion formSearch
//查询工具条
this.panelBtn = new Ext.Panel({
region: "north",
tbar: [{
text: "保存列表样式",
id: "btntest",
menu: [
{
text: "保存",
handler: function (button, event) {
this.girdcolums = DsTruck.SaveGridPanel(USERID, _thisPriceHistry.formname, _thisPriceHistry.gridList.columns, _thisPriceHistry.girdcolums, 1, true);
}
}, {
text: "初始化",
handler: function (menu, event) {
_thisPriceHistry.girdcolums = DsTruck.SaveGridPanel(USERID, _thisPriceHistry.formname, _thisPriceHistry.gridList.columns, _thisPriceHistry.initgirdcolums, 1, true);
}
}],
scope: this
}, '-',
{
text: "打印",
iconCls: 'btnprint',
menu: [
{
text: "全部",
handler: function (menu, event) {
_thisPriceHistry.Print();
}
}, {
text: "选择打印",
handler: function (menu, event) {
_thisPriceHistry.PrintSelect();
}
}],
scope: this
}, '-', {
text: '导出EXCEL', //"EXCEL模板导出",
iconCls: "btnexportexcel",
handler: function (button, event) {
this.onExportClick(button, event);
},
scope: this
}, '-', {
text: '比价',
handler: function (button, event) {
this.onViewPriceClick(button, event);
},
scope: this
}]
});
this.panelTop = new Ext.Panel({
layout: "border",
region: "north",
height: 95,
items: [this.formSearch, this.panelBtn]
});
//#region 批量修改窗体
this.storeCtnList = Ext.create('Ext.data.Store', {
model: 'MsOpPriceFreight',
remoteSort: true,
proxy: {
type: 'ajax',
url: '/MvcShipping/MsOpPrice/GetPriceFreightList',
reader: {
id: 'ID',
root: 'data',
totalProperty: 'totalCount'
}
}
});
this.gridListCtn = new Ext.grid.GridPanel({
store: this.storeCtnList,
enableHdMenu: false,
title: '运费', //'集装箱信息',
region: 'west',
width: 520,
loadMask: { msg: "数据加载中,请稍等..." },
trackMouseOver: true,
disableSelection: false,
selType: 'cellmodel',
columns: [{
sortable: true,
dataIndex: 'ID',
header: '编号',
hidden: true,
width: 0
}, {
dataIndex: 'CTNALL',
header: '箱型', //'箱型',
width: 80
}, {
dataIndex: 'CTNNUM',
header: '箱量', //'箱量',
width: 100
}
, {
dataIndex: 'PRICE',
header: '运价', //'箱量',
width: 100
}, {
dataIndex: 'BASEPRICE',
header: '底价', //'箱量',
width: 100
}, {
dataIndex: 'SELLPRICE',
header: '报价', //'箱量',
width: 100
}
]
});
this.storeCtnList.on('beforeload', function (store) {
var billNo = _thisPriceHistry.billno;
var condition = "BSNO='" + billNo + "'";
Ext.apply(store.proxy.extraParams, { condition: condition });
}, this);
this.storeOtherList = Ext.create('Ext.data.Store', {
model: 'MsOpPriceOther',
remoteSort: true,
proxy: {
type: 'ajax',
url: '/MvcShipping/MsOpPrice/GetPriceOtherList',
reader: {
id: 'ID',
root: 'data',
totalProperty: 'totalCount'
}
}
});
this.gridListOther = new Ext.grid.GridPanel({
store: this.storeOtherList,
enableHdMenu: false,
title: '杂费', //'集装箱信息',
region: 'west',
width: 320,
loadMask: { msg: "数据加载中,请稍等..." },
trackMouseOver: true,
disableSelection: false,
selType: 'cellmodel',
columns: [{
sortable: true,
dataIndex: 'ID',
header: '编号',
hidden: true,
width: 0
}, {
dataIndex: 'FEENAME',
header: '费用名称', //'箱型',
width: 80
}, {
dataIndex: 'CURRENCY',
header: '币别', //'箱型',
width: 80
}, {
dataIndex: 'AMOUNT',
header: '金额', //'箱量',
width: 100
}
]
});
this.storeOtherList.on('beforeload', function (store) {
var billNo = _thisPriceHistry.billno;
var condition = "BSNO='" + billNo + "'";
Ext.apply(store.proxy.extraParams, { condition: condition });
}, this);
this.panelBody = new Ext.Panel({
layout: "border",
region: "south",
height: 200,
items: [this.gridListCtn, this.gridListOther]
});
//#endregion
Ext.apply(this, {
items: [this.panelTop, this.gridList, this.panelBody]
});
if (this.ORDNO != undefined) {
if (this.ISXJ == 1) {
_thisPriceHistry.sqlcontext = " b.ORDNO='" + this.ORDNO + "' and ((b.BILLSTATUS=0 and PRICETYPE='询价')) ";
var btnadddetailprice = Ext.getCmp('btnadddetailprice');
var btncreateprice = Ext.getCmp('btncreateprice');
btnadddetailprice.hide();
btncreateprice.hide();
} else {
_thisPriceHistry.sqlcontext = " b.ORDNO='" + this.ORDNO + "' and ((b.BILLSTATUS=0 and PRICETYPE='询价')or b.PRICETYPE='报价' ) ";
var btnadddetailprice = Ext.getCmp('btnadddetailprice');
var btncreateprice = Ext.getCmp('btncreateprice');
btnadddetailprice.show();
btncreateprice.show();
}
this.storeList.on('beforeload', function (store) {
Ext.apply(store.proxy.extraParams, { condition: _thisPriceHistry.sqlcontext });
}, this);
this.storeList.load({
params: { start: 0, limit: this.PageSize, sort: '', condition: _thisPriceHistry.sqlcontext },
waitMsg: "正在查询数据...",
scope: this
});
parentWin = window.parent.opener._thissaleorder;
} else {
parentWin = window.parent.opener._thisPriceEdit;
if (parentWin) {
this.pstoreCtnList = parentWin.storeCtnList;
this.pstoreOtherList = parentWin.storeOtherList;
}
}
this.gridList.getSelectionModel().on('select', function (model, record, index) {
_thisPriceHistry.billno = record.data.GID;
this.storeCtnList.load({ params: { condition: "BSNO='" + _thisPriceHistry.billno + "'" } });
this.storeOtherList.load({ params: { condition: "BSNO='" + _thisPriceHistry.billno + "'" } });
}, this);
this.storeChfeeFile1 = Ext.create('Ext.data.Store', {
model: 'FeeFileModel',
remoteSort: false,
proxy: {
type: 'ajax',
url: '/Account/Chfee_payapplication/GetFileList',
reader: {
id: 'GID',
root: 'data',
totalProperty: 'totalCount'
}
}
});
//表格
var selCertModel1 = Ext.create('Ext.selection.CheckboxModel');
this.fileGrid1 = new Ext.grid.GridPanel({
store: this.storeChfeeFile1,
title: '附件', //'集装箱信息',
enableHdMenu: false,
layout: 'border',
region: 'center',
height:90,
loadMask: { msg: '数据加载中,请稍等...' }, //数据加载中,请稍等...
trackMouseOver: true,
disableSelection: false,
selModel: selCertModel1,
singleSelect: true,
selType: 'rowmodel',
columns: [
{
sortable: true, hidden: true,
dataIndex: 'GID', readOnly: true,
header: 'GID',
width: 80
}, {
sortable: true, hidden: false,
dataIndex: 'File_OriginalName', readOnly: true,
header: '文件名称', //文件名称
renderer: function (value, p, record) {
return '<a href="' + "/Areas/Account/Files/" + record.data.BillNo + '/' + record.data.File_Name + '" target="_blank" style=' + '"text-decoration:none"' + ' >' + value + '</a>';
},
width: 120
}, {
xtype: 'actioncolumn',
width: 50,
text: '操作', //操作
items: [{
icon: '/images/icons/btnSearch.gif', // Use a URL in the icon config
tooltip: '预览',
handler: function (grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
var filePath = "/Areas/Account/Files/" + rec.get('BillNo') + '/' + rec.get('File_Name') + '?a=' + Math.random();
var imgView = new Shipping.FileView({ filePath: filePath });
imgView.show();
}
}]
}, {
sortable: true, hidden: false,
dataIndex: 'UpdateTime', readOnly: true,
header: '上传日期', //上传日期
width: 80
}, {
sortable: true, hidden: false,
dataIndex: 'Operator', readOnly: true,
header: '上传人', //上传者
width: 80
}, {
sortable: true, hidden: true,
dataIndex: 'File_Name', readOnly: true,
header: 'FFF', //文件物理名称
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'File_Path',
header: 'File_Path',
width: 80
}
]
});
this.PriceForm1 = Ext.widget('form', {
frame: true,
region: 'west',
width:230,
hidden: true,
title: '运价一',
autoScroll: true,
trackResetOnLoad: true,
bodyPadding: 5,
fieldDefaults: {
margins: '2 2 2 2',
labelAlign: 'right',
flex: 1,
msgTarget: 'qtip'
},
items: [
{//fieldset 1
xtype: 'container',
defaultType: 'textfield',
layout: 'anchor',
defaults: {
anchor: '100%'
},
items: [{
fieldLabel: '报价单号',
name: 'BILLNO'
}, {
fieldLabel: '供应商',
name: 'FORWARDER'
}, {
fieldLabel: '船公司',
name: 'CARRIER'
}, {
fieldLabel: '开船日期',
name: 'ETD'
}, {
fieldLabel: '中转港',
name: 'VIA'
}, {
fieldLabel: '航程',
name: 'TT'
}, {
fieldLabel: '运费总额',
name: 'TTLFREIGHT'
}, {
fieldLabel: '国内杂费',
name: 'RMBOT'
}, {
fieldLabel: '国外杂费美金',
name: 'USDOT'
}, {
fieldLabel: '备注', //备注
xtype: 'textareafield',
height: 45,
grow: true,
flex: 3,
name: 'REMARK'
}, this.fileGrid1
]//end items(fieldset 1)
}//end fieldset 1
]//end root items
});
this.storeChfeeFile2= Ext.create('Ext.data.Store', {
model: 'FeeFileModel',
remoteSort: false,
proxy: {
type: 'ajax',
url: '/Account/Chfee_payapplication/GetFileList',
reader: {
id: 'GID',
root: 'data',
totalProperty: 'totalCount'
}
}
});
//表格
var selCertModel2 = Ext.create('Ext.selection.CheckboxModel');
this.fileGrid2 = new Ext.grid.GridPanel({
store: this.storeChfeeFile2,
title: '附件', //'集装箱信息',
enableHdMenu: false,
layout: 'border',
region: 'center',
height: 90,
loadMask: { msg: '数据加载中,请稍等...' }, //数据加载中,请稍等...
trackMouseOver: true,
disableSelection: false,
selModel: selCertModel1,
singleSelect: true,
selType: 'rowmodel',
columns: [
{
sortable: true, hidden: true,
dataIndex: 'GID', readOnly: true,
header: 'GID',
width: 80
}, {
sortable: true, hidden: false,
dataIndex: 'File_OriginalName', readOnly: true,
header: '文件名称', //文件名称
renderer: function (value, p, record) {
return '<a href="' + "/Areas/Account/Files/" + record.data.BillNo + '/' + record.data.File_Name + '" target="_blank" style=' + '"text-decoration:none"' + ' >' + value + '</a>';
},
width: 120
}, {
xtype: 'actioncolumn',
width: 50,
text: '操作', //操作
items: [{
icon: '/images/icons/btnSearch.gif', // Use a URL in the icon config
tooltip: '预览',
handler: function (grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
var filePath = "/Areas/Account/Files/" + rec.get('BillNo') + '/' + rec.get('File_Name') + '?a=' + Math.random();
var imgView = new Shipping.FileView({ filePath: filePath });
imgView.show();
}
}]
}, {
sortable: true, hidden: false,
dataIndex: 'UpdateTime', readOnly: true,
header: '上传日期', //上传日期
width: 80
}, {
sortable: true, hidden: false,
dataIndex: 'Operator', readOnly: true,
header: '上传人', //上传者
width: 80
}, {
sortable: true, hidden: true,
dataIndex: 'File_Name', readOnly: true,
header: 'FFF', //文件物理名称
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'File_Path',
header: 'File_Path',
width: 80
}
]
});
this.PriceForm2 = Ext.widget('form', {
frame: true,
region: 'west',
width: 230,
hidden: true,
title: '运价二',
autoScroll: true,
trackResetOnLoad: true,
bodyPadding: 5,
fieldDefaults: {
margins: '2 2 2 2',
labelAlign: 'right',
flex: 1,
msgTarget: 'qtip'
},
items: [
{//fieldset 1
xtype: 'container',
defaultType: 'textfield',
layout: 'anchor',
defaults: {
anchor: '100%'
},
items: [{
fieldLabel: '报价单号',
name: 'BILLNO'
}, {
fieldLabel: '供应商',
name: 'FORWARDER'
}, {
fieldLabel: '船公司',
name: 'CARRIER'
}, {
fieldLabel: '开船日期',
name: 'ETD'
}, {
fieldLabel: '中转港',
name: 'VIA'
}, {
fieldLabel: '航程',
name: 'TT'
}, {
fieldLabel: '运费总额',
name: 'TTLFREIGHT'
}, {
fieldLabel: '国内杂费',
name: 'RMBOT'
}, {
fieldLabel: '国外杂费美金',
name: 'USDOT'
}, {
fieldLabel: '备注', //备注
xtype: 'textareafield',
height: 45,
grow: true,
flex: 3,
name: 'REMARK'
}, this.fileGrid2
]//end items(fieldset 1)
}//end fieldset 1
]//end root items
});
this.storeChfeeFile3= Ext.create('Ext.data.Store', {
model: 'FeeFileModel',
remoteSort: false,
proxy: {
type: 'ajax',
url: '/Account/Chfee_payapplication/GetFileList',
reader: {
id: 'GID',
root: 'data',
totalProperty: 'totalCount'
}
}
});
//表格
var selCertModel3 = Ext.create('Ext.selection.CheckboxModel');
this.fileGrid3= new Ext.grid.GridPanel({
store: this.storeChfeeFile3,
title: '附件', //'集装箱信息',
enableHdMenu: false,
layout: 'border',
region: 'center',
height: 90,
loadMask: { msg: '数据加载中,请稍等...' }, //数据加载中,请稍等...
trackMouseOver: true,
disableSelection: false,
selModel: selCertModel1,
singleSelect: true,
selType: 'rowmodel',
columns: [
{
sortable: true, hidden: true,
dataIndex: 'GID', readOnly: true,
header: 'GID',
width: 80
}, {
sortable: true, hidden: false,
dataIndex: 'File_OriginalName', readOnly: true,
header: '文件名称', //文件名称
renderer: function (value, p, record) {
return '<a href="' + "/Areas/Account/Files/" + record.data.BillNo + '/' + record.data.File_Name + '" target="_blank" style=' + '"text-decoration:none"' + ' >' + value + '</a>';
},
width: 120
}, {
xtype: 'actioncolumn',
width: 50,
text: '操作', //操作
items: [{
icon: '/images/icons/btnSearch.gif', // Use a URL in the icon config
tooltip: '预览',
handler: function (grid, rowIndex, colIndex) {
var rec = grid.getStore().getAt(rowIndex);
var filePath = "/Areas/Account/Files/" + rec.get('BillNo') + '/' + rec.get('File_Name') + '?a=' + Math.random();
var imgView = new Shipping.FileView({ filePath: filePath });
imgView.show();
}
}]
}, {
sortable: true, hidden: false,
dataIndex: 'UpdateTime', readOnly: true,
header: '上传日期', //上传日期
width: 80
}, {
sortable: true, hidden: false,
dataIndex: 'Operator', readOnly: true,
header: '上传人', //上传者
width: 80
}, {
sortable: true, hidden: true,
dataIndex: 'File_Name', readOnly: true,
header: 'FFF', //文件物理名称
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'File_Path',
header: 'File_Path',
width: 80
}
]
});
this.PriceForm3 = Ext.widget('form', {
frame: true,
region: 'west',
width: 230,
hidden: true,
title: '运价三',
autoScroll: true,
trackResetOnLoad: true,
bodyPadding: 5,
fieldDefaults: {
margins: '2 2 2 2',
labelAlign: 'right',
flex: 1,
msgTarget: 'qtip'
},
items: [
{//fieldset 1
xtype: 'container',
defaultType: 'textfield',
layout: 'anchor',
defaults: {
anchor: '100%'
},
items: [{
fieldLabel: '报价单号',
name: 'BILLNO'
}, {
fieldLabel: '供应商',
name: 'FORWARDER'
}, {
fieldLabel: '船公司',
name: 'CARRIER'
}, {
fieldLabel: '开船日期',
name: 'ETD'
}, {
fieldLabel: '中转港',
name: 'VIA'
}, {
fieldLabel: '航程',
name: 'TT'
}, {
fieldLabel: '运费总额',
name: 'TTLFREIGHT'
}, {
fieldLabel: '国内杂费',
name: 'RMBOT'
}, {
fieldLabel: '国外杂费美金',
name: 'USDOT'
}, {
fieldLabel: '备注', //备注
xtype: 'textareafield',
height: 45,
grow: true,
flex: 3,
name: 'REMARK'
}, this.fileGrid3
]//end items(fieldset 1)
}//end fieldset 1
]//end root items
});
this.winPriceShow = Ext.create('Ext.window.Window', {
title: "比价",
width: 710,
layout: "hbox",
height : 520,
//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.PriceForm1, this.PriceForm2, this.PriceForm3],
buttons: [ {
text: "关闭",
minWidth: 70,
handler: function () {
_thisPriceHistry.winPriceShow.close();
}
}]
});
}, //end initUIComponents
onViewPriceClick: 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;
}
if (selections.length>3) {
Ext.Msg.show({ title: '提示', msg: '最多选择三条原件', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
this.PriceForm1.getForm().reset();
this.PriceForm2.getForm().reset();
this.PriceForm3.getForm().reset();
for (var i = 0; i < selections.length; i++) {
var rec = selections[i];
if (i == 0) {
this.PriceForm1.getForm().setValues(rec.data);
this.PriceForm1.setVisible(true);
this.storeChfeeFile1.load({ params: { start: 0, limit: 9999, BillNo: rec.data.GID } });
}
if (i == 1) {
this.PriceForm2.getForm().setValues(rec.data);
this.PriceForm2.setVisible(true);
this.storeChfeeFile2.load({ params: { start: 0, limit: 9999, BillNo: rec.data.GID } });
}
if (i == 2) {
this.PriceForm3.getForm().setValues(rec.data);
this.PriceForm3.setVisible(true);
this.storeChfeeFile3.load({ params: { start: 0, limit: 9999, BillNo: rec.data.GID } });
}
}
this.winPriceShow.show();
},
onAddClick: 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 rec = selections[0];
for (var i = 0; i < this.storeCtnList.getCount(); i += 1) {
var memberyf = this.storeCtnList.getAt(i);
var isfind = false;
for (var Z = 0; Z < this.pstoreCtnList.getCount(); Z += 1) {
var memberbody = this.pstoreCtnList.getAt(Z);
if (memberbody.data.CTNALL == memberyf.data.CTNALL) {
isfind = true;
memberbody.data.PRICE = memberyf.data.PRICE;
}
}
if (!isfind) {
var record = Ext.create('MsOpPriceFreight', {
BSNO: '*',
CTNALL: memberyf.data.CTNALL,
CTNNUM: memberyf.data.CTNNUM,
PRICE: memberyf.data.PRICE,
BASEPRICE: 0,
SELLPRICE: 0
});
record.id = NewGuid();
record.internalId = NewGuid();
this.pstoreCtnList.add(record);
}
}
for (var i = 0; i < this.storeOtherList.getCount(); i += 1) {
var memberyf = this.storeOtherList.getAt(i);
var record = Ext.create('MsOpPriceOther', {
BSNO: '*',
FEENAME: memberyf.data.FEENAME,
CURRENCY: memberyf.data.CURRENCY,
AMOUNT: memberyf.data.AMOUNT
});
record.id = NewGuid();
record.internalId = NewGuid();
this.pstoreOtherList.add(record);
}
window.closeAction = 'destroy';
window.close();
},
onAddOrderClick: 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 rec = selections[0];
if (rec.data.BILLSTATUSREF!='审核通过') {
Ext.Msg.show({ title: '提示', msg: '审核通过才允许引入!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
Ext.Ajax.request({//正在添加数据..
waitMsg: '正在处理...',
url: '/MvcShipping/MsOpPrice/AddSeaeOrder',
params: {
GID: rec.data.GID,
ORDNO: _thisPriceHistry.ORDNO
},
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 condition = " ORDNO='" + _thisPriceHistry.ORDNO + "'";
parentWin.LoadData('edit', condition);
window.closeAction = 'destroy';
window.close();
}
} else {//请求出现错误,请重试'
Ext.MessageBox.alert('错误', response.responseText);
}
},
scope: this
});
},
onCreateSellClick: 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 rec = selections[0];
if (rec.data.PRICETYPE == '报价') {
Ext.Msg.show({ title: '提示', msg: '报价单不能生成报价单!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
Ext.Ajax.request({//正在添加数据..
waitMsg: '正在处理...',
url: '/MvcShipping/MsOpPrice/CreatePriceSell',
params: {
GID: rec.data.GID
},
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 {
DsOpenEditWin('/MvcShipping/MsOpPrice/SellEdit?GID=' + result.Data, "报价查看", "600", "940", "10", "10");
}
} else {//请求出现错误,请重试'
Ext.MessageBox.alert('错误', response.responseText);
}
},
scope: this
});
},
onRefreshClick: function (button, event) {
var sql = this.getCondition();
if (this.ORDNO != undefined) {
sql = " b.ORDNO='" + this.ORDNO + "' and ((b.BILLSTATUS=0 and PRICETYPE='询价')or b.PRICETYPE='报价' ) ";
}
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
});
},
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
});
},
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('BILLNO').getValue();
BILLNO = BILLNO.trim();
sql = sql + getAndConSql(sql, BILLNO, "BILLNO like '%" + BILLNO + "%'");
var BILLSTATUS = form.findField('BILLSTATUS').getValue();
sql = sql + getAndConSql(sql, BILLSTATUS, "BILLSTATUS= " + BILLSTATUS);
var ORDNO = form.findField('ORDNO').getValue();
sql = sql + getAndConSql(sql, ORDNO, "ORDNO like '%" + ORDNO + "%'");
var CUSTOMERNAME = form.findField('CUSTOMERNAME').getValue();
sql = sql + getAndConSql(sql, CUSTOMERNAME, "CUSTOMERNAME='" + CUSTOMERNAME + "'");
var FORWARDER = form.findField('FORWARDER').getValue();
sql = sql + getAndConSql(sql, FORWARDER, "FORWARDER= '" + FORWARDER + "'");
var SALE = form.findField('SALE').getValue();
sql = sql + getAndConSql(sql, SALE, "SALE= '" + SALE + "'");
var CREATEUSER = form.findField('CREATEUSER').getValue();
sql = sql + getAndConSql(sql, CREATEUSER, "CREATEUSER= '" + CREATEUSER + "'");
var CARRIER = form.findField('CARRIER').getValue();
sql = sql + getAndConSql(sql, CARRIER, "CARRIER= '" + CARRIER + "'");
var PORTDISCHARGE = form.findField('PORTDISCHARGE').getValue();
sql = sql + getAndConSql(sql, PORTDISCHARGE, "PORTDISCHARGE= '" + PORTDISCHARGE + "'");
var ETDBgn = form.findField('ETDBgn').getRawValue();
sql = sql + getAndConSql(sql, ETDBgn, "CONVERT(char(10), CREATETIME, 20) >='" + ETDBgn + "'");
var ETDEnd = form.findField('ETDEnd').getRawValue();
sql = sql + getAndConSql(sql, ETDEnd, "CONVERT(char(10), CREATETIME, 20) <='" + ETDEnd + "'");
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_other';
ret[5] = this.storePLList;
return ret;
},
onExportClick: function () {
_this = this;
if (this.storeList.getCount() == 0) {
return;
}
Ext.Msg.wait('正在组织数据, 请稍侯..');
Ext.Ajax.request({
waitMsg: '正在组织数据...',
url: '/MvcShipping/MsOpPrice/GetDataListStr',
scope: this,
params: {
condition: _thisPriceHistry.sqlcontext,
printstr: 'true'
},
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 = 'MSOPPRICELIST';
var sql1 = returnstr;
sql1 = sql1.replace(/\+/g, "@@@")
if (sql1 != '') {
GridExportBySql(sql1, this.formname, '报价业务列表.xls');
}
} 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
});
}
}
});
},
Print: function () {
_thisPriceHistry = this;
if (this.storeList.getCount() == 0) {
return;
}
Ext.Msg.wait('正在组织数据, 请稍侯..');
Ext.Ajax.request({
waitMsg: '正在组织数据...',
url: '/MvcShipping/MsOpPrice/GetDataListStr',
scope: this,
params: {
condition: _thisPriceHistry.sqlcontext,
printstr: 'true'
},
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 = 'MSOPPRICELIST';
var sql1 = returnstr;
var sql2 = "";
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 () {
_thisPriceHistry = 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 = '';
if (this.sortfield != '' && this.sortdire != '') {
sortstr = this.sortfield + ' ' + this.sortdire;
}
if (sortstr == "") sortstr = "CREATETIME desc"
var feeGidSql = '';
for (var i = 0; i < selectedRecords.length; i++) {
var record = selectedRecords[i];
var feeGId = "'" + record.get('GID') + "'";
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.GID;
}
var printType = 'MSOPPRICELISTSELECT';
var sql1 = "select * from op_price WHERE GID IN (" + feeGidSql + ") order by " + sortstr;
var sql2 = "";
var sql3 = "";
var sql4 = "";
var sql5 = "";
var sql6 = "";
PrintComm(printType, sql1, sql2, sql3, sql4, sql5, sql6);
},
//#region 2018年2月7日 李进举 鼎世 批量整票提交
onPiLiangZhengPiaoTiJiaoClick: function (type) {
var selections = this.GridCheckBoxModel.selected.items;
if (selections.length == 0) {
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: Zi.LAN.QingXianXuanZeYeWu, 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: Zi.LAN.TiShi, msg: Zi.LAN.MeiYouYaoGengXinDeYeWu, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
} else {
Ext.Ajax.request({
waitMsg: '正在查询主表数据...',
url: '/MvcShipping/MsOpSeae/PiLiangZhengPiaoTiJiao',
params: {
bsno: BSNOStr,
statusvalue: type
},
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 {
this.storeList.load({
params: { start: 0, limit: this.PageSize, sort: '', condition: _thisPriceHistry.sqlcontext, load: 'true' },
waitMsg: Zi.LAN.ZhengZaiChaXunShuJu, //"正在查询数据...",
scope: this
});
Ext.Msg.show({
title: '提示',
msg: result.Message,
icon: Ext.MessageBox.OK,
buttons: Ext.Msg.OK
});
}
} else {
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
}
},
scope: this
});
}
}
//#endregion
});