|
|
@ -1447,7 +1447,7 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.comboxPORTLOAD = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
this.comboxPORTLOAD = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
//flex: 1.2,
|
|
|
|
//flex: 1.2,
|
|
|
|
labelWidth: 50,
|
|
|
|
//labelWidth: 50,
|
|
|
|
fieldLabel: Zi.LAN.PORTLOAD, //'装货港',
|
|
|
|
fieldLabel: Zi.LAN.PORTLOAD, //'装货港',
|
|
|
|
store: this.storeCodeLoadport,
|
|
|
|
store: this.storeCodeLoadport,
|
|
|
|
name: 'PORTLOAD',
|
|
|
|
name: 'PORTLOAD',
|
|
|
@ -1470,22 +1470,21 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeCodeDisport = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
this.storeCodeDisport2 = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
|
model: 'DsShipping.ux.CodeDisportModel',
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportListRm' }
|
|
|
|
proxy: { url: '/CommMng/BasicDataRef/GetCodeDisportListRm' }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// this.storeCodeDisport.loadData(mainWin.GetPubStore("CODE_PORTDISCHARGE").data.items);
|
|
|
|
// this.storeCodeDisport2.loadData(mainWin.GetPubStore("CODE_PORTDISCHARGE").data.items);
|
|
|
|
this.comboxPORTDISCHARGE = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
this.comboxDESTINATION = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
fieldLabel: Zi.LAN.PORTDISCHARGE, //'卸货港',
|
|
|
|
fieldLabel: Zi.LAN.DESTINATIONID, //'目的地',
|
|
|
|
store: this.storeCodeDisport,
|
|
|
|
store: this.storeCodeDisport2,
|
|
|
|
name: 'PORTDISCHARGEID',
|
|
|
|
//labelWidth: 60,
|
|
|
|
// labelWidth: 48,
|
|
|
|
//flex: 1,
|
|
|
|
// flex: 0.7,
|
|
|
|
name: 'DESTINATIONID',
|
|
|
|
// forceSelection: true,
|
|
|
|
|
|
|
|
valueField: 'EDICODE',
|
|
|
|
|
|
|
|
queryMode: 'remote',
|
|
|
|
queryMode: 'remote',
|
|
|
|
minChars: 2,
|
|
|
|
minChars: 2,
|
|
|
|
queryParam: 'PORT',
|
|
|
|
queryParam: 'PORT',
|
|
|
|
|
|
|
|
valueField: 'EDICODE',
|
|
|
|
displayField: 'CodeAndName',
|
|
|
|
displayField: 'CodeAndName',
|
|
|
|
enableKeyEvents: true,
|
|
|
|
enableKeyEvents: true,
|
|
|
|
listeners: {
|
|
|
|
listeners: {
|
|
|
@ -1496,8 +1495,8 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//beforequery: function (e) {
|
|
|
|
//beforequery: function (e) {
|
|
|
|
// return FilterCombox(e,2);//在beforequery使用此方法
|
|
|
|
// return FilterCombox(e,2);//在beforequery使用此方法
|
|
|
|
//}
|
|
|
|
//},
|
|
|
|
//,
|
|
|
|
|
|
|
|
specialkey: function (field, e) {
|
|
|
|
specialkey: function (field, e) {
|
|
|
|
//if (e.getKey() == e.ENTER) {
|
|
|
|
//if (e.getKey() == e.ENTER) {
|
|
|
|
// e.keyCode = 9;
|
|
|
|
// e.keyCode = 9;
|
|
|
@ -1505,9 +1504,9 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
|
|
|
|
if (e.keyCode == 9) {
|
|
|
|
if (e.keyCode == 9) {
|
|
|
|
|
|
|
|
|
|
|
|
if (field.value == null) {
|
|
|
|
if (field.value == null) {
|
|
|
|
_rec = _this.storeCodeDisport.getAt(0);
|
|
|
|
_rec = _this.storeCodeDisport2.getAt(0);
|
|
|
|
|
|
|
|
|
|
|
|
_this.formSearch.getForm().findField('PORTDISCHARGEID').setValue(_rec.data.EDICODE);
|
|
|
|
_this.formSearch.getForm().findField('DESTINATIONID').setValue(_rec.data.EDICODE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1524,7 +1523,7 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
|
|
|
|
fieldLabel: Zi.LAN.VESSEL, //'船 名',//'船名',
|
|
|
|
fieldLabel: Zi.LAN.VESSEL, //'船 名',//'船名',
|
|
|
|
store: this.storeVoyVeg,
|
|
|
|
store: this.storeVoyVeg,
|
|
|
|
name: 'VESSEL',
|
|
|
|
name: 'VESSEL',
|
|
|
|
labelWidth: 30,
|
|
|
|
//labelWidth: 30,
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
valueField: 'VESSEL',
|
|
|
|
valueField: 'VESSEL',
|
|
|
|
displayField: 'VESSEL',
|
|
|
|
displayField: 'VESSEL',
|
|
|
@ -1616,11 +1615,11 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
|
|
|
|
items: [
|
|
|
|
items: [
|
|
|
|
this.comboxCARRIER
|
|
|
|
this.comboxCARRIER
|
|
|
|
, this.comboxPORTLOAD
|
|
|
|
, this.comboxPORTLOAD
|
|
|
|
, this.comboxPORTDISCHARGE
|
|
|
|
, this.comboxDESTINATION
|
|
|
|
, this.comboxVoyVeg
|
|
|
|
, this.comboxVoyVeg
|
|
|
|
, {
|
|
|
|
, {
|
|
|
|
fieldLabel: Zi.LAN.VOYNO,
|
|
|
|
fieldLabel: Zi.LAN.VOYNO,
|
|
|
|
labelWidth: 40,
|
|
|
|
//labelWidth: 40,
|
|
|
|
flex: 1,
|
|
|
|
flex: 1,
|
|
|
|
name: 'VOYNO',
|
|
|
|
name: 'VOYNO',
|
|
|
|
enableKeyEvents: true,
|
|
|
|
enableKeyEvents: true,
|
|
|
@ -1644,7 +1643,7 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
, this.comboxISEI
|
|
|
|
|
|
|
|
, {
|
|
|
|
, {
|
|
|
|
xtype: 'button',
|
|
|
|
xtype: 'button',
|
|
|
|
flex: 0.4,
|
|
|
|
flex: 0.4,
|
|
|
@ -1725,9 +1724,10 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
, { xtype: 'hiddenfield', flex: 1 }
|
|
|
|
, this.comboxISEI
|
|
|
|
, { xtype: 'hiddenfield', flex: 1 }
|
|
|
|
, { xtype: 'hiddenfield', flex: 1 }
|
|
|
|
//, { xtype: 'hiddenfield', flex: 1 }
|
|
|
|
//, { xtype: 'hiddenfield', flex: 1 }
|
|
|
|
|
|
|
|
//, { xtype: 'hiddenfield', flex: 1 }
|
|
|
|
, { xtype: 'hiddenfield', flex: 0.39 }
|
|
|
|
, { xtype: 'hiddenfield', flex: 0.39 }
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2882,21 +2882,26 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
|
|
|
|
// var ACCDATE = form.findField('ACCDATE').getRawValue();
|
|
|
|
// var ACCDATE = form.findField('ACCDATE').getRawValue();
|
|
|
|
// sql = sql + getAndConSql(sql, ACCDATE, "B.ACCDATE='" + ACCDATE + "'");
|
|
|
|
// sql = sql + getAndConSql(sql, ACCDATE, "B.ACCDATE='" + ACCDATE + "'");
|
|
|
|
|
|
|
|
|
|
|
|
// //船名
|
|
|
|
//船名
|
|
|
|
// var VESSEL = form.findField('VESSEL').getValue();
|
|
|
|
var VESSEL = form.findField('VESSEL').getValue();
|
|
|
|
// sql = sql + getAndConSql(sql, VESSEL, "B.VESSEL like '%" + VESSEL + "%'");
|
|
|
|
sql = sql + getAndConSql(sql, VESSEL, "B.VESSEL like '%" + VESSEL + "%'");
|
|
|
|
|
|
|
|
|
|
|
|
// //航次
|
|
|
|
//航次
|
|
|
|
// var VOYNO = form.findField('VOYNO').getValue();
|
|
|
|
var VOYNO = form.findField('VOYNO').getValue();
|
|
|
|
// sql = sql + getAndConSql(sql, VOYNO, "B.VOYNO like '%" + VOYNO + "%'");
|
|
|
|
sql = sql + getAndConSql(sql, VOYNO, "B.VOYNO like '%" + VOYNO + "%'");
|
|
|
|
|
|
|
|
|
|
|
|
//装货港
|
|
|
|
//装货港
|
|
|
|
var PORTLOAD = form.findField('PORTLOAD').getValue();
|
|
|
|
var PORTLOAD = form.findField('PORTLOAD').getValue();
|
|
|
|
sql = sql + getAndConSql(sql, PORTLOAD, "B.PORTLOAD like '%" + PORTLOAD + "%'");
|
|
|
|
sql = sql + getAndConSql(sql, PORTLOAD, " (B.PORTLOADID+' '+B.PORTLOAD) like '%" + PORTLOAD + "%' ");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//卸货港
|
|
|
|
//目的港
|
|
|
|
var PORTDISCHARGE = form.findField('PORTDISCHARGE').getValue();
|
|
|
|
var DESTINATIONID = form.findField('DESTINATIONID').getValue();
|
|
|
|
sql = sql + getAndConSql(sql, PORTDISCHARGE, "B.PORTDISCHARGE like '%" + PORTDISCHARGE + "%'");
|
|
|
|
sql = sql + getAndConSql(sql, DESTINATIONID, "B.DESTINATIONID like '%" + DESTINATIONID + "%'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//揽货人
|
|
|
|
|
|
|
|
var SALE = form.findField('SALE').getValue();
|
|
|
|
|
|
|
|
sql = sql + getAndConSql(sql, SALE, "B.SALE='" + SALE + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//船公司
|
|
|
|
//船公司
|
|
|
@ -2922,99 +2927,7 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
|
|
|
|
var CNTRNO = form.findField('CNTRNO').getValue();
|
|
|
|
var CNTRNO = form.findField('CNTRNO').getValue();
|
|
|
|
sql = sql + getAndConSql(sql, CNTRNO, "exists(select 1 from op_ctn where bsno=B.bsno and cntrno like '%" + CNTRNO + "')");
|
|
|
|
sql = sql + getAndConSql(sql, CNTRNO, "exists(select 1 from op_ctn where bsno=B.bsno and cntrno like '%" + CNTRNO + "')");
|
|
|
|
|
|
|
|
|
|
|
|
// //代理
|
|
|
|
|
|
|
|
// var AGENTID = form.findField('AGENTID').getValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, AGENTID, "B.AGENTID='" + AGENTID + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //费用状态
|
|
|
|
|
|
|
|
// var FEESTATUS = form.findField('FEESTATUS').getValue();
|
|
|
|
|
|
|
|
// if (FEESTATUS != null) {
|
|
|
|
|
|
|
|
// if (FEESTATUS.toString().trim() == "锁定") {
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, FEESTATUS, "B.FEESTATUS=1");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// else if (FEESTATUS.toString().trim() == "未锁定") {
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, FEESTATUS, "B.FEESTATUS=0");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#endregion formSearch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#region formSearch2 隐藏查询面板
|
|
|
|
|
|
|
|
// //建单日期
|
|
|
|
|
|
|
|
// var CREATETIMEbgn = form2.findField('CREATETIMEbgn').getRawValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, CREATETIMEbgn, "B.CREATETIME >='" + CREATETIMEbgn + "'");
|
|
|
|
|
|
|
|
// var CREATETIMEend = form2.findField('CREATETIMEend').getRawValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, CREATETIMEend, "B.CREATETIME <='" + CREATETIMEend + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //接单日期
|
|
|
|
|
|
|
|
// var BSDATEbgn = form2.findField('BSDATEbgn').getRawValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, BSDATEbgn, "B.BSDATE >='" + BSDATEbgn + "'");
|
|
|
|
|
|
|
|
// var BSDATEend = form2.findField('BSDATEend').getRawValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, BSDATEend, "B.BSDATE <='" + BSDATEend + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //操作人
|
|
|
|
|
|
|
|
// var OP = form2.findField('OP').getValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, OP, "B.OP='" + OP + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //揽货人
|
|
|
|
|
|
|
|
// var SALE = form2.findField('SALE').getValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, SALE, "B.SALE='" + SALE + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// // //录入人
|
|
|
|
|
|
|
|
// // var INPUTBY = form2.findField('INPUTBY').getValue();
|
|
|
|
|
|
|
|
// // sql = sql + getAndConSql(sql, INPUTBY, "INPUTBY='" + INPUTBY + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// // //
|
|
|
|
|
|
|
|
// // var BSTYPE = form2.findField('BSTYPE').getValue();
|
|
|
|
|
|
|
|
// // sql = sql + getAndConSql(sql, BSTYPE, "BSTYPE='" + BSTYPE + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //牌号
|
|
|
|
|
|
|
|
// var CNTRTOTAL = form2.findField('CNTRTOTAL').getValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, CNTRTOTAL, "B.CNTRTOTAL like '%" + CNTRTOTAL + "%'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //业务状态
|
|
|
|
|
|
|
|
// var BSSTATUS = form2.findField('BSSTATUS').getValue();
|
|
|
|
|
|
|
|
// if (BSSTATUS != null) {
|
|
|
|
|
|
|
|
// if (BSSTATUS.toString().trim() == "锁定") {
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, BSSTATUS, "B.BSSTATUS=1");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// else if (BSSTATUS.toString().trim() == "未锁定") {
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, BSSTATUS, "B.BSSTATUS=0");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// // //车队
|
|
|
|
|
|
|
|
// // var TRUCKER = form2.findField('TRUCKER').getValue();
|
|
|
|
|
|
|
|
// // sql = sql + getAndConSql(sql, TRUCKER, "TRUCKER='" + TRUCKER + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// // //报关行
|
|
|
|
|
|
|
|
// // var CUSTOMSER = form2.findField('CUSTOMSER').getValue();
|
|
|
|
|
|
|
|
// // sql = sql + getAndConSql(sql, CUSTOMSER, "CUSTOMSER='" + CUSTOMSER + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //业务来源
|
|
|
|
|
|
|
|
// var BSSOURCE = form2.findField('BSSOURCE').getValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, BSSOURCE, "B.BSSOURCE='" + BSSOURCE + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //来源明细
|
|
|
|
|
|
|
|
// var BSSOURCEDETAIL = form2.findField('BSSOURCEDETAIL').getValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, BSSOURCEDETAIL, "B.BSSOURCEDETAIL='" + BSSOURCEDETAIL + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //装运方式
|
|
|
|
|
|
|
|
// var BLTYPE = form2.findField('BLTYPE').getValue();
|
|
|
|
|
|
|
|
// sql = sql + getAndConSql(sql, BLTYPE, "B.BLTYPE='" + BLTYPE + "'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// // //备注
|
|
|
|
|
|
|
|
// // var REMARK = form2.findField('REMARK').getValue();
|
|
|
|
|
|
|
|
// // sql = sql + getAndConSql(sql, REMARK, "B.REMARK like '%" + REMARK + "%'");
|
|
|
|
|
|
|
|
//#endregion formSearch2
|
|
|
|
//#endregion formSearch2
|
|
|
|
|
|
|
|
|
|
|
|
return sql;
|
|
|
|
return sql;
|
|
|
|