DS7Zhanhao
hanxuntao 2 years ago
parent 6626a76cf6
commit 8c0d5375a5

@ -122,7 +122,7 @@ namespace DSWeb.Areas.Account.Controllers
strSql.Append(",case B.ETD when '1900-01-01 00:00:00.000' then '' else CONVERT(varchar(100), B.ETD,23) end as ETD,B.ETA"); strSql.Append(",case B.ETD when '1900-01-01 00:00:00.000' then '' else CONVERT(varchar(100), B.ETD,23) end as ETD,B.ETA");
strSql.Append(",case B.OPDATE when '1900-01-01 00:00:00.000' then '' else CONVERT(varchar(100), B.OPDATE,23) end as OPDATE,B.ENTERP"); strSql.Append(",case B.OPDATE when '1900-01-01 00:00:00.000' then '' else CONVERT(varchar(100), B.OPDATE,23) end as OPDATE,B.ENTERP");
strSql.Append(",case B.CUSTOMDATE when '1900-01-01 00:00:00.000' then '' else CONVERT(varchar(100), B.CUSTOMDATE,23) end as CUSTOMDATE,B.CARGOID,B.DCLASS"); strSql.Append(",case B.CUSTOMDATE when '1900-01-01 00:00:00.000' then '' else CONVERT(varchar(100), B.CUSTOMDATE,23) end as CUSTOMDATE,B.CARGOID,B.DCLASS");
strSql.Append(",B.CUSTSERVICE, B.PORTLOAD, B.PORTDISCHARGE, B.CUSTOMNO, B.ACCDATE,B.CARRIER, B.BSSOURCE,B.BSSOURCEDETAIL, B.LANE, B.FORWARDER,B.NETWEIGHT,B.KGS,B.TEU,B.CNTRTOTAL,B.CORPID"); strSql.Append(",B.CUSTSERVICE,B.FRCUSTSERVICE, B.PORTLOAD, B.PORTDISCHARGE, B.CUSTOMNO, B.ACCDATE,B.CARRIER, B.BSSOURCE,B.BSSOURCEDETAIL, B.LANE, B.FORWARDER,B.NETWEIGHT,B.KGS,B.TEU,B.CNTRTOTAL,B.CORPID");
strSql.Append(",B.CNTR1,B.CNTR2,B.CNTR3,B.CNTR4,B.CNTR5,B.CNTR6,B.CNTR7,B.CNTR8,B.CNTR9,B.CNTR10,B.OTCNTR,B.TRADETYPE,B.GOODSNAME,B.ISPRINTPR,B.REMARK,B.REMARK2,B.YARD,B.SALEDEPT"); strSql.Append(",B.CNTR1,B.CNTR2,B.CNTR3,B.CNTR4,B.CNTR5,B.CNTR6,B.CNTR7,B.CNTR8,B.CNTR9,B.CNTR10,B.OTCNTR,B.TRADETYPE,B.GOODSNAME,B.ISPRINTPR,B.REMARK,B.REMARK2,B.YARD,B.SALEDEPT");

@ -12,6 +12,8 @@ Ext.extend(Shipping.MsChInvoiceIndex, Ext.Panel, {
OprationStatus: null, //仅当弹出界面时使用 OprationStatus: null, //仅当弹出界面时使用
SelectedRecord: null, SelectedRecord: null,
sqlcontext: '', sqlcontext: '',
sortfield: '',
sortdire: '',
initUIComponents: function () { initUIComponents: function () {
@ -499,7 +501,10 @@ Ext.extend(Shipping.MsChInvoiceIndex, Ext.Panel, {
this.girdcolums = DsTruck.GetGridPanel(USERID, this.formname, this.girdcolums, 1); //使用者id表名中间column数组跳过一开始的几列 this.girdcolums = DsTruck.GetGridPanel(USERID, this.formname, this.girdcolums, 1); //使用者id表名中间column数组跳过一开始的几列
this.girdcolums.unshift(new Ext.grid.RowNumberer()); this.girdcolums.unshift(new Ext.grid.RowNumberer());
this.gridList.reconfigure(this.storeList, this.girdcolums); this.gridList.reconfigure(this.storeList, this.girdcolums);
this.gridList.addListener('sortchange', function (ct, column, direction, eOpts) {
this.sortfield = column.dataIndex;
this.sortdire = direction;
}, this);
//#region formSearch //#region formSearch
this.storeCompany = Ext.create('DsExt.ux.RefTableStore', { this.storeCompany = Ext.create('DsExt.ux.RefTableStore', {
@ -1822,25 +1827,81 @@ Ext.extend(Shipping.MsChInvoiceIndex, Ext.Panel, {
}); });
}, },
//Print: function () {
// _this = this;
// if (this.storeList.getCount() == 0) {
// return;
// }
// Ext.Msg.wait('正在组织数据, 请稍侯..');
// Ext.Ajax.request({
// waitMsg: '正在组织数据...',
// url: '/Account/Chfee_invoice_HangXin/GetDataListStr',
// //(int start, int limit, string sort, string condition, int billtype)
// scope: this,
// params: {
// start: 0,
// limit: 10000000,
// sort: "",
// condition: _this.sqlcontext,
// billtype:0
// },
// 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 = 'MSINVOICELIST';
// 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
// });
// }
// }
// });
//},
Print: function () { Print: function () {
_this = this; _this = this;
if (this.storeList.getCount() == 0) { if (this.storeList.getCount() == 0) {
return; return;
} }
var sortstr = ' OPERATETIME DESC ';
if (this.sortfield != '' && this.sortdire != '') {
sortstr = this.sortfield + ' ' + this.sortdire;
}
Ext.Msg.wait('正在组织数据, 请稍侯..'); Ext.Msg.wait('正在组织数据, 请稍侯..');
Ext.Ajax.request({ Ext.Ajax.request({
waitMsg: '正在组织数据...', waitMsg: '正在组织数据...',
url: '/Account/Chfee_invoice_HangXin/GetDataListStr', url: '/Account/Chfee_invoice/GetDataListStr',
//(int start, int limit, string sort, string condition, int billtype) //(int start, int limit, string sort, string condition, int billtype)
scope: this, scope: this,
params: { params: {
start: 0, start: 0,
limit: 10000000, limit: 10000000,
sort: "", billtype: 1,
condition: _this.sqlcontext, sort: sortstr,
billtype:0 condition: _this.sqlcontext
}, },
callback: function (options, success, response) { callback: function (options, success, response) {
if (success) { if (success) {
@ -1862,7 +1923,8 @@ Ext.extend(Shipping.MsChInvoiceIndex, Ext.Panel, {
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK }); Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
} }
} else { } else {
Ext.Msg.show({ title: '请重试', Ext.Msg.show({
title: '请重试',
msg: '服务器响应出错', msg: '服务器响应出错',
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
}); });
@ -1870,8 +1932,6 @@ Ext.extend(Shipping.MsChInvoiceIndex, Ext.Panel, {
} }
}); });
}, },
PrintSelect: function () { PrintSelect: function () {
var selections = this.gridList.getSelectionModel().getSelection(); var selections = this.gridList.getSelectionModel().getSelection();

@ -81,6 +81,7 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
{ name: 'OP', type: 'string' }, { name: 'OP', type: 'string' },
{ name: 'DOC', type: 'string' }, { name: 'DOC', type: 'string' },
{ name: 'CUSTSERVICE', type: 'string' }, { name: 'CUSTSERVICE', type: 'string' },
{ name: 'FRCUSTSERVICE', type: 'string' },
{ name: 'PORTLOAD', type: 'string' }, { name: 'PORTLOAD', type: 'string' },
{ name: 'PORTDISCHARGE', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' },
{ name: 'CUSTOMNO', type: 'string' }, { name: 'CUSTOMNO', type: 'string' },
@ -551,7 +552,12 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
dataIndex: 'CUSTSERVICE', dataIndex: 'CUSTSERVICE',
header: '客服', header: '客服',
width: 80 width: 80
}, { }, {
sortable: true,
dataIndex: 'FRCUSTSERVICE',
header: '海外客服',
width: 80
}, {
sortable: true, sortable: true,
dataIndex: 'PORTLOAD', dataIndex: 'PORTLOAD',
header: '起运港', header: '起运港',

@ -129,28 +129,14 @@ Ext.extend(Shipping.MsOpCtnrSellEdit, Ext.Panel, {
//箱源 this.storeCNTRSOURCE = Ext.create('DsExt.ux.RefEnumStore', {});
Ext.define('CNTRSOURCEmb', { this.storeCNTRSOURCE.load({ params: { enumTypeId: 97015 } });
extend: 'Ext.data.Model',
fields: [
{ name: 'CNTRSOURCE', type: 'string' }
]
});
var CNTRSOURCEData = [
{ "CNTRSOURCE": "自备箱" }, { "CNTRSOURCE": "长租箱" }, { "CNTRSOURCE": "短租箱" }, { "CNTRSOURCE": "租买箱" }, { "CNTRSOURCE": "ONEWAY" }];
this.storeCNTRSOURCE = Ext.create('Ext.data.Store', {
model: 'CNTRSOURCEmb',
data: CNTRSOURCEData
});
this.comboxCNTRSOURCE = Ext.create('DsExt.ux.RefEnumCombox', { this.comboxCNTRSOURCE = Ext.create('DsExt.ux.RefEnumCombox', {
fieldLabel: '箱源',
forceSelection: true,
store: this.storeCNTRSOURCE, store: this.storeCNTRSOURCE,
fieldLabel: '箱源',
name: 'CNTRSOURCE', name: 'CNTRSOURCE',
// allowBlank: false, valueField: 'EnumValueName',
valueField: 'CNTRSOURCE', displayField: 'EnumValueName'
displayField: 'CNTRSOURCE'
}); });
this.comboxCNTRSOURCEDetail = Ext.create('DsExt.ux.RefEnumCombox', { this.comboxCNTRSOURCEDetail = Ext.create('DsExt.ux.RefEnumCombox', {

@ -97,7 +97,7 @@ namespace DSWeb.MvcShipping.Controllers
} }
else if (feerang == "2") else if (feerang == "2")
{ {
strSql.Append(" and ISNULL(F.INVOICE,0)<>F.AMOUNT "); strSql.Append(" and ISNULL(F.INVOICE,0)<>F.AMOUNT and ISNULL(F.ISINVOICE,0)=0 ");
} }
else if (feerang == "3") else if (feerang == "3")
{ {
@ -105,11 +105,11 @@ namespace DSWeb.MvcShipping.Controllers
} }
else if (feerang == "4") else if (feerang == "4")
{ {
strSql.Append(" and ISNULL(F.SETTLEMENT,0)<>0 AND ((F.AMOUNT>0 and ISNULL(F.SETTLEMENT,0)>ISNULL(F.INVOICE,0)) or (F.AMOUNT<0 and ISNULL(F.SETTLEMENT,0)<ISNULL(F.INVOICE,0))) "); strSql.Append(" and ISNULL(F.SETTLEMENT,0)<>0 and ISNULL(F.ISINVOICE,0)=0 AND ((F.AMOUNT>0 and ISNULL(F.SETTLEMENT,0)>ISNULL(F.INVOICE,0)) or (F.AMOUNT<0 and ISNULL(F.SETTLEMENT,0)<ISNULL(F.INVOICE,0))) ");
} }
else if (feerang == "5") else if (feerang == "5")
{ {
strSql.Append(" and ISNULL(F.SETTLEMENT,0)=0 AND ISNULL(F.INVOICE,0)=0 and ISNULL(F.ORDERINVOICE,0)=0 and F.FEETYPE=1 "); strSql.Append(" and ISNULL(F.SETTLEMENT,0)=0 and ISNULL(F.ISINVOICE,0)=0 AND ISNULL(F.INVOICE,0)=0 and ISNULL(F.ORDERINVOICE,0)=0 and F.FEETYPE=1 ");
} }
else if (feerang == "6") else if (feerang == "6")
{ {
@ -117,7 +117,7 @@ namespace DSWeb.MvcShipping.Controllers
} }
else if (feerang == "7") else if (feerang == "7")
{ {
strSql.Append(" and ISNULL(F.SETTLEMENT,0)=0 AND ISNULL(F.INVOICE,0)=0 and F.FEETYPE=1 "); strSql.Append(" and ISNULL(F.SETTLEMENT,0)=0 AND ISNULL(F.INVOICE,0)=0 and ISNULL(F.ISINVOICE,0)=0 and F.FEETYPE=1 ");
} }
} }

@ -1854,7 +1854,29 @@ Ext.extend(Shipping.MsOpBillLSEdit, Ext.Panel, {
} }
], ],
scope: this scope: this
}] }, '-', {
text: 'OCR', //快速录入,
handler: function (button, event) {
if (this.panelOcr.isHidden()) {
mainform.tabtree.hide();
if (this.panelOcr.width < 2) {
var wSeaePanel = this.panelpage.getWidth();
this.panelOcr.setWidth(wSeaePanel * 0.6);
}
this.panelOcr.body.dom.children[0].src = "/MvcShipping/Ocr/UpOcrAuto";
this.panelOcr.show();
} else {
mainform.tabtree.show();
this.panelOcr.hide();
}
},
scope: this
}]
}); //end 按钮Toolbar }); //end 按钮Toolbar
//#endregion //#endregion
@ -2408,6 +2430,26 @@ Ext.extend(Shipping.MsOpBillLSEdit, Ext.Panel, {
}] }]
}); });
this.panelOcr = new Ext.Panel({
title: 'OCR',
id: 'panelbillOcr',
width: 0,
visible: false,
region: 'east',
animate: true,
autoScroll: true,
split: true,
closeAction: 'hide',
closable: true,
html: '<iframe src="" width="100%" height="100%"></iframe>'
});
this.panelOcr.on({
hide: function () {
mainform.tabtree.show();
},
scope: this
});
this.panelbill = new Ext.Panel({ this.panelbill = new Ext.Panel({
layout: "border", layout: "border",
@ -2451,7 +2493,7 @@ Ext.extend(Shipping.MsOpBillLSEdit, Ext.Panel, {
Ext.apply(this, { Ext.apply(this, {
items: [this.panelBtn, this.panellist, this.panelpage] items: [this.panelBtn, this.panellist, this.panelpage, this.panelOcr]
}); });
//#endregion //#endregion

@ -8649,9 +8649,9 @@ Ext.extend(Shipping.MsOpSeaeFeeIndex, Ext.Panel, {
//到港日期 //到港日期
var ETDbgn = form.findField('ETDbgn').getRawValue(); var ETDbgn = form.findField('ETDbgn').getRawValue();
sql = sql + getAndConSql(sql, ETDbgn, "B.ETD >='" + ETDbgn + "'"); sql = sql + getAndConSql(sql, ETDbgn, "B.ATD >='" + ETDbgn + "'");
var ETDend = form.findField('ETDend').getRawValue(); var ETDend = form.findField('ETDend').getRawValue();
sql = sql + getAndConSql(sql, ETDend, "B.ETD <='" + ETDend + "'"); sql = sql + getAndConSql(sql, ETDend, "B.ATD <='" + ETDend + "'");
//操作人 //操作人

Loading…
Cancel
Save