diff --git a/DSWeb/Areas/Account/Controllers/Chfee_lockController.cs b/DSWeb/Areas/Account/Controllers/Chfee_lockController.cs index 8531a797..880a759b 100644 --- a/DSWeb/Areas/Account/Controllers/Chfee_lockController.cs +++ b/DSWeb/Areas/Account/Controllers/Chfee_lockController.cs @@ -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.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(",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"); diff --git a/DSWeb/Areas/Account/Viewsjs/Chfee_invoice_HangXin/ChInvoiceIndex.js b/DSWeb/Areas/Account/Viewsjs/Chfee_invoice_HangXin/ChInvoiceIndex.js index 4283a014..22cb45fe 100644 --- a/DSWeb/Areas/Account/Viewsjs/Chfee_invoice_HangXin/ChInvoiceIndex.js +++ b/DSWeb/Areas/Account/Viewsjs/Chfee_invoice_HangXin/ChInvoiceIndex.js @@ -12,6 +12,8 @@ Ext.extend(Shipping.MsChInvoiceIndex, Ext.Panel, { OprationStatus: null, //仅当弹出界面时使用 SelectedRecord: null, sqlcontext: '', + sortfield: '', + sortdire: '', 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.unshift(new Ext.grid.RowNumberer()); 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 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 () { _this = this; if (this.storeList.getCount() == 0) { return; } + var sortstr = ' OPERATETIME DESC '; + + if (this.sortfield != '' && this.sortdire != '') { + + sortstr = this.sortfield + ' ' + this.sortdire; + } + Ext.Msg.wait('正在组织数据, 请稍侯..'); Ext.Ajax.request({ waitMsg: '正在组织数据...', - url: '/Account/Chfee_invoice_HangXin/GetDataListStr', + url: '/Account/Chfee_invoice/GetDataListStr', //(int start, int limit, string sort, string condition, int billtype) scope: this, params: { start: 0, limit: 10000000, - sort: "", - condition: _this.sqlcontext, - billtype:0 + billtype: 1, + sort: sortstr, + condition: _this.sqlcontext }, callback: function (options, success, response) { 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 }); } } else { - Ext.Msg.show({ title: '请重试', + Ext.Msg.show({ + title: '请重试', msg: '服务器响应出错', icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK }); @@ -1870,8 +1932,6 @@ Ext.extend(Shipping.MsChInvoiceIndex, Ext.Panel, { } }); }, - - PrintSelect: function () { var selections = this.gridList.getSelectionModel().getSelection(); diff --git a/DSWeb/Areas/Account/Viewsjs/Chfee_lock/Chfee_lock.js b/DSWeb/Areas/Account/Viewsjs/Chfee_lock/Chfee_lock.js index 8b06efd4..cadeeec8 100644 --- a/DSWeb/Areas/Account/Viewsjs/Chfee_lock/Chfee_lock.js +++ b/DSWeb/Areas/Account/Viewsjs/Chfee_lock/Chfee_lock.js @@ -81,6 +81,7 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, { { name: 'OP', type: 'string' }, { name: 'DOC', type: 'string' }, { name: 'CUSTSERVICE', type: 'string' }, + { name: 'FRCUSTSERVICE', type: 'string' }, { name: 'PORTLOAD', type: 'string' }, { name: 'PORTDISCHARGE', type: 'string' }, { name: 'CUSTOMNO', type: 'string' }, @@ -551,7 +552,12 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, { dataIndex: 'CUSTSERVICE', header: '客服', width: 80 - }, { + }, { + sortable: true, + dataIndex: 'FRCUSTSERVICE', + header: '海外客服', + width: 80 + }, { sortable: true, dataIndex: 'PORTLOAD', header: '起运港', diff --git a/DSWeb/Areas/MvcContainer/Viewsjs/MsOpCtnr/MsOpCtnrSellEdit.js b/DSWeb/Areas/MvcContainer/Viewsjs/MsOpCtnr/MsOpCtnrSellEdit.js index 5f143121..f783f7ad 100644 --- a/DSWeb/Areas/MvcContainer/Viewsjs/MsOpCtnr/MsOpCtnrSellEdit.js +++ b/DSWeb/Areas/MvcContainer/Viewsjs/MsOpCtnr/MsOpCtnrSellEdit.js @@ -129,28 +129,14 @@ Ext.extend(Shipping.MsOpCtnrSellEdit, Ext.Panel, { - //箱源 - Ext.define('CNTRSOURCEmb', { - 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.storeCNTRSOURCE = Ext.create('DsExt.ux.RefEnumStore', {}); + this.storeCNTRSOURCE.load({ params: { enumTypeId: 97015 } }); this.comboxCNTRSOURCE = Ext.create('DsExt.ux.RefEnumCombox', { - fieldLabel: '箱源', - forceSelection: true, store: this.storeCNTRSOURCE, + fieldLabel: '箱源', name: 'CNTRSOURCE', - // allowBlank: false, - valueField: 'CNTRSOURCE', - displayField: 'CNTRSOURCE' + valueField: 'EnumValueName', + displayField: 'EnumValueName' }); this.comboxCNTRSOURCEDetail = Ext.create('DsExt.ux.RefEnumCombox', { diff --git a/DSWeb/Areas/MvcShipping/Controllers/MsRptInvTotalController.cs b/DSWeb/Areas/MvcShipping/Controllers/MsRptInvTotalController.cs index 9f0370f9..a695c733 100644 --- a/DSWeb/Areas/MvcShipping/Controllers/MsRptInvTotalController.cs +++ b/DSWeb/Areas/MvcShipping/Controllers/MsRptInvTotalController.cs @@ -97,7 +97,7 @@ namespace DSWeb.MvcShipping.Controllers } 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") { @@ -105,11 +105,11 @@ namespace DSWeb.MvcShipping.Controllers } 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)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)' + }); + + this.panelOcr.on({ + hide: function () { + mainform.tabtree.show(); + }, + scope: this + }); this.panelbill = new Ext.Panel({ layout: "border", @@ -2451,7 +2493,7 @@ Ext.extend(Shipping.MsOpBillLSEdit, Ext.Panel, { Ext.apply(this, { - items: [this.panelBtn, this.panellist, this.panelpage] + items: [this.panelBtn, this.panellist, this.panelpage, this.panelOcr] }); //#endregion diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeFeeIndex.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeFeeIndex.js index db496783..2f130be2 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeFeeIndex.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeFeeIndex.js @@ -8649,9 +8649,9 @@ Ext.extend(Shipping.MsOpSeaeFeeIndex, Ext.Panel, { //到港日期 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(); - sql = sql + getAndConSql(sql, ETDend, "B.ETD <='" + ETDend + "'"); + sql = sql + getAndConSql(sql, ETDend, "B.ATD <='" + ETDend + "'"); //操作人