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/Account/Viewsjs/Chfee_invoiceapplication/ChInvoiceapplicationAudit.js

1717 lines
62 KiB
JavaScript

2 years ago
Ext.namespace('Shipping');
Shipping.ChInvoiceapplicationAudit = function (config) {
Ext.applyIf(this, config);
this.initUIComponents();
window.Shipping.ChInvoiceapplicationAudit.superclass.constructor.call(this);
};
Ext.extend(Shipping.ChInvoiceapplicationAudit, Ext.Panel, {
PageSize: 15,
OprationStatus: null, //仅当弹出界面时使用
SelectedRecord: null,
isAudit: '',
billno: '',
sqlcontext: '',
initUIComponents: function () {
//定义数据集
this.formname = "ChInvoiceapplicationAudit"
this.billno = '';
this.sqlcontext = '';
_this = this;
Ext.Ajax.timeout = 1200000;
this.storeList = Ext.create('Ext.data.Store', {
pageSize: this.PageSize,
model: 'MsChInvoiceapplication',
remoteSort: true,
proxy: {
type: 'ajax',
url: '/Account/Chfee_invoiceapplication/GetAuditDataList',
reader: {
id: 'BILLNO',
root: 'data',
totalProperty: 'totalCount'
}
}
});
//定义Grid
var _this = this;
this.Pagenum = Ext.create('Ext.form.field.Number', {
name: 'bottles',
1 year ago
fieldLabel: Zi.LAN.NumberOfpage,
2 years ago
labelAlign: 'right',
value: this.PageSize,
maxValue: 100000,
width: 180,
minValue: 0,
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
});
this.GridCheckBoxModel = Ext.create('Ext.selection.CheckboxModel');
this.initgirdcolums = [{
sortable: true,
dataIndex: 'BILLNO',
1 year ago
header: Zi.LAN.BILLNO ,
2 years ago
width: 120
}, {
sortable: true,
dataIndex: 'BILLSTATUSREF',
1 year ago
header: Zi.LAN.status,
2 years ago
width: 80
}, {
sortable: true,
dataIndex: 'CUSTOMERNAME',
1 year ago
header: Zi.LAN.CUSTOMERNAME,
2 years ago
width: 120
}, {
sortable: true,
dataIndex: 'INVOICECUSTNAME',
1 year ago
header: Zi.LAN.INVOICECUSTNAME,
2 years ago
width: 160
}, {
sortable: true,
dataIndex: 'CURRENCY',
1 year ago
header: Zi.LAN.Currency,
2 years ago
width: 60
}, {
sortable: true,
dataIndex: 'APPLYAMOUNT',
1 year ago
header: Zi.LAN.APPLYAMOUNT,
2 years ago
align: 'right',
width: 100,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, {
sortable: true,
dataIndex: 'INVAMOUNT',
1 year ago
header: Zi.LAN.INVAMOUNT ,
2 years ago
align: 'right',
width: 100,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, {
sortable: true,
dataIndex: 'RECVCURR',
1 year ago
header: Zi.LAN.RECVCURR,
2 years ago
width: 60
}, {
sortable: true,
dataIndex: 'FEEAMOUNT',
1 year ago
header: Zi.LAN.FEEAMOUNT,
2 years ago
width: 120,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, {
sortable: true,
dataIndex: 'APPLYTIME',
1 year ago
header: Zi.LAN.APPLYTIME,
2 years ago
width: 100
}, {
sortable: true,
dataIndex: 'APPLICANTNAME',
1 year ago
header: Zi.LAN.APPLICANTNAME,
2 years ago
width: 100
}, {
sortable: true,
dataIndex: 'OPERATETIME',
1 year ago
header: Zi.LAN.OPERATETIME,
2 years ago
width: 100
}, {
sortable: true,
dataIndex: 'INVOICECATEGORYREF',
1 year ago
header: Zi.LAN.INVOICECATEGORYREF,
2 years ago
width: 100
}, {
sortable: true,
dataIndex: 'RATE',
1 year ago
header: Zi.LAN.RATE,
2 years ago
width: 100
}, {
sortable: true,
dataIndex: 'INVOICENO',
1 year ago
header: Zi.LAN.INVOICENO,
2 years ago
width: 120
}, {
sortable: true,
dataIndex: 'REMARK',
1 year ago
header: Zi.LAN.REMARK,
2 years ago
width: 360
}, {
sortable: true,
dataIndex: 'SHENREMARK',
1 year ago
header: Zi.LAN.SHENREMARK ,
2 years ago
width: 360
}, {
sortable: true,
dataIndex: 'PAYCOMPANYREF',
1 year ago
header: Zi.LAN.COMPANYNAME,
2 years ago
width: 120
}
];
this.girdcolums = this.initgirdcolums;
this.gridList = new Ext.grid.GridPanel({
store: this.storeList,
enableHdMenu: false,
height: 180,
region: 'north',
split: true,
1 year ago
loadMask: { msg: Zi.LAN.LoadData},
2 years ago
trackMouseOver: true,
disableSelection: false,
selModel: this.GridCheckBoxModel,
columns: this.girdcolums ,
// paging bar on the bottom
bbar: [Ext.create('Ext.PagingToolbar', {
store: this.storeList,
1 year ago
displayInfo: true,
1 year ago
displayMsg: Zi.LAN.FenYe,
emptyMsg: Zi.LAN.Nodata
1 year ago
}), this.Pagenum]
2 years ago
});
2 years ago
this.gridList.addListener('itemdblclick', function (dataview, record, item, index, e, b) {
this.SelectedRecord = record;
this.OprationStatus = 'edit';
DsOpenEditWin('/Account/Chfee_invoiceapplication/BLEdit');
}, this);
2 years ago
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);
//#region formSearch
//#region formSearch枚举参照相关
//#endregion
this.storeAddDCType = Ext.create('Ext.data.Store', {
fields: ['DC', 'NAME']
});
1 year ago
this.storeAddDCType.add({ "DC": "", "NAME": Zi.LAN.All});
this.storeAddDCType.add({ "DC": "1", "NAME": Zi.LAN.NOAUDIT });
this.storeAddDCType.add({ "DC": "2", "NAME": Zi.LAN.AUDIT});
2 years ago
this.comboxaddDCType = Ext.create('DsExt.ux.RefTableCombox', {
1 year ago
fieldLabel: Zi.LAN.AUDITSTATUS,
2 years ago
store: this.storeAddDCType,
valueField: 'DC',
displayField: 'NAME',
forceSelection: true,
name: 'DC',
value: '1'
});
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.CustomInvRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetCustomInvRefListRm' }
});
// this.storeCust.load({ params: { condition: ""} });
this.comboxCust = Ext.create('DsExt.ux.RefTableCombox', {
1 year ago
fieldLabel: Zi.LAN.CUSTOMERNAME,
2 years ago
store: this.storeCustCode,
queryMode: 'remote',
minChars: 1,
queryParam: 'CODENAME',
// forceSelection: true,
name: 'CustName',
valueField: 'CustName',
displayField: 'CodeAndName',
enableKeyEvents: true,
listeners: {
keyup: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
});
//人员信息加载
this.storeOpCode = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.UserRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetUserRefList' }
});
this.storeOpCode.load();
//
this.comboxAPPLICANT = Ext.create('DsExt.ux.RefTableCombox', {
1 year ago
fieldLabel: Zi.LAN.APPLICANTNAME,
2 years ago
store: this.storeOpCode,
forceSelection: true,
name: 'APPLICANT',
valueField: 'GID',
displayField: 'CodeAndName'
});
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: [{
1 year ago
fieldLabel: Zi.LAN.BILLNO ,
2 years ago
name: 'BsNo',
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}, this.comboxCust, {
1 year ago
fieldLabel: Zi.LAN.APPLYTIMEFM,
2 years ago
format: 'Y-m-d',
xtype: 'datefield',
name: 'ExpDateBgn',
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}, {
1 year ago
fieldLabel: Zi.LAN.APPLYTIMETO,
2 years ago
format: 'Y-m-d',
xtype: 'datefield',
name: 'ExpDateEnd',
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}, this.comboxAPPLICANT, this.comboxaddDCType
]
}
]//end items(fieldset 1)
}//end fieldset 1
]//end root items
});
this.storeDetailList = Ext.create('Ext.data.Store', {
model: 'MsChInvoiceDetail',
remoteSort: true,
proxy: {
type: 'ajax',
url: '/Account/Chfee_invoiceapplication/GetDetailList',
reader: {
id: 'GID',
root: 'data',
totalProperty: 'totalCount'
}
}
});
this.gridDetailList = new Ext.grid.GridPanel({
store: this.storeDetailList,
enableHdMenu: false,
region: 'center',
1 year ago
loadMask: { msg: Zi.LAN.LoadData },
2 years ago
trackMouseOver: true,
disableSelection: false,
features: [{
ftype: 'summary'//Ext.grid.feature.Summary表格汇总特性
}],
columns: [{
sortable: true,
dataIndex: 'GID',
header: 'GID',
hidden: true,
width: 100
}, {
sortable: true,
dataIndex: 'PID',
header: 'PID',
hidden: true,
width: 100
}, {
sortable: true,
dataIndex: 'SERIALNO',
header: 'SERIALNO',
hidden: true,
width: 100
}, {
sortable: false,
dataIndex: 'GOODSNAMEREF',
1 year ago
header: Zi.LAN.GOODSNAMEREF,
2 years ago
summaryType: 'count',
width: 120
}, {
sortable: false,
dataIndex: 'SPEC',
1 year ago
header: Zi.LAN.SPEC,
2 years ago
width: 120
}, {
sortable: false,
dataIndex: 'UNIT',
1 year ago
header: Zi.LAN.UNIT,
2 years ago
width: 100
}, {
sortable: false,
dataIndex: 'PKGS',
1 year ago
header: Zi.LAN.PKGS,
2 years ago
width: 80
}, {
sortable: false,
dataIndex: 'TAXPRICE',
1 year ago
header: Zi.LAN.TAXPRICE,
2 years ago
summaryType: 'sum',
summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
value = usMoney(value, 2, '', true);
return value;
},
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, {
sortable: false,
dataIndex: 'PRICE',
1 year ago
header: Zi.LAN.PRICE,
2 years ago
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, {
sortable: false,
dataIndex: 'AMOUNT',
summaryType: 'sum',
1 year ago
header: Zi.LAN.AMOUNT,
2 years ago
summaryType: 'sum',
summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
value = usMoney(value, 2, '', true);
return value;
},
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, {
sortable: false,
dataIndex: 'TAXRATE',
1 year ago
header: Zi.LAN.TAXRATE,
2 years ago
width: 80
}, {
sortable: false,
dataIndex: 'TAX',
1 year ago
header: Zi.LAN.TAX,
2 years ago
summaryType: 'sum',
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}, summaryType: 'sum',
summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
value = usMoney(value, 2, '', true);
return value;
},
}
]
});
this.storeBodyListdetail = Ext.create('Ext.data.Store', {
model: 'Chfee_do_detail',
remoteSort: true,
proxy: {
type: 'ajax',
url: '/Account/Chfee_invoiceapplication/GetBillList',
reader: {
id: 'BSNO,FEEDOID',
root: 'data',
totalProperty: 'totalCount'
}
}
});
2 years ago
this.initgirdbillcolums = [{
sortable: true,
dataIndex: 'BILLNO',
header: 'BILL',
hidden: true,
width: 100
}, {
sortable: true,
dataIndex: 'BSNO',
header: 'BSNO',
hidden: true,
width: 100
}, {
sortable: true,
dataIndex: 'FEEDOID',
header: 'FEEDOID',
hidden: true,
width: 100
}, {
sortable: true,
dataIndex: 'CUSTNO',
1 year ago
header: Zi.LAN.CUSTNO,
2 years ago
width: 120
}, {
sortable: true,
dataIndex: 'MBLNO',
1 year ago
header: Zi.LAN.MBLNO ,
2 years ago
width: 120
}, {
sortable: true,
dataIndex: 'CUSTOMERNAME',
1 year ago
header: Zi.LAN.CUSTOMERNAME,
2 years ago
width: 100
}, {
sortable: true,
dataIndex: 'ETD',
1 year ago
header: Zi.LAN.ETD ,
2 years ago
renderer: Ext.util.Format.dateRenderer('Y-m-d'),
width: 80
}, {
sortable: true,
dataIndex: 'BSSOURCE',
1 year ago
header: Zi.LAN.BSSOURCE,
2 years ago
width: 80
}, {
sortable: true,
dataIndex: 'FEENAME',
1 year ago
header: Zi.LAN.FEENAME ,
2 years ago
width: 80
}, {
sortable: true,
dataIndex: 'FEETYPEREF',
1 year ago
header: Zi.LAN.FEETYPEREF,
2 years ago
width: 40
}, {
sortable: true,
dataIndex: 'AMOUNT',
1 year ago
header: Zi.LAN.APPLYAMOUNT,
2 years ago
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
2 years ago
}
2 years ago
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, {
sortable: true,
dataIndex: 'ORIGCURRENCY',
1 year ago
header: Zi.LAN.ORIGCURRENCY,
2 years ago
width: 80
}, {
sortable: true,
dataIndex: 'ORIGEXCHANGERATE',
1 year ago
header: Zi.LAN.ORIGEXCHANGERATE,
2 years ago
width: 80
}, {
sortable: true,
dataIndex: 'EXCHANGERATE',
1 year ago
header: Zi.LAN.EXCHANGERATE,
2 years ago
width: 80
}, {
sortable: true,
dataIndex: 'ORIGAMOUNT',
1 year ago
header: Zi.LAN.ORIGAMOUNT,
2 years ago
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
2 years ago
}
}
2 years ago
else {
2 years ago
return value;
}
2 years ago
}
catch (e) {
2 years ago
return value;
}
2 years ago
return value;
}
}, {
sortable: true,
dataIndex: 'SALE',
1 year ago
header: Zi.LAN.SALE,
2 years ago
width: 80
}, {
sortable: true,
dataIndex: 'SALECORP',
1 year ago
header: Zi.LAN.SALECORP,
2 years ago
width: 80
}, {
sortable: true,
dataIndex: 'ORDERNO',
1 year ago
header: Zi.LAN.ORDERNO,
2 years ago
width: 80
}, {
sortable: true,
dataIndex: 'TaxUnitPrice',
1 year ago
header: Zi.LAN.PRICE,
2 years ago
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
2 years ago
}
2 years ago
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, {
sortable: true,
dataIndex: 'Quantity',
1 year ago
header: Zi.LAN.PKGS ,
2 years ago
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
2 years ago
}
}
2 years ago
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, {
sortable: true,
dataIndex: 'TaxRate',
1 year ago
header: Zi.LAN.TAXRATE,
2 years ago
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
2 years ago
return value;
}
2 years ago
}
catch (e) {
2 years ago
return value;
}
2 years ago
return value;
}
}, {
sortable: true,
dataIndex: 'Tax',
1 year ago
header: Zi.LAN.TAX ,
2 years ago
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
2 years ago
}
2 years ago
catch (e) {
return value;
}
return value;
}
}
];
this.girdbillcolums = this.initgirdbillcolums;
this.gridListdetail = new Ext.grid.GridPanel({
store: this.storeBodyListdetail,
enableHdMenu: false,
region: 'center',
1 year ago
loadMask: { msg: Zi.LAN.LoadData },
2 years ago
trackMouseOver: true,
disableSelection: false,
tbar: [{
1 year ago
text:Zi.LAN.Saveliststyle, //保存列表样式
2 years ago
id: "btntestbody",
menu: [
{
1 year ago
text:Zi.LAN.Save, //保存
2 years ago
handler: function (button, event) {
_this.girdbillcolums = DsTruck.SaveGridPanel(USERID, _this.formname + 'bill', _this.gridListdetail.columns, _this.girdbillcolums, 1, true);
}
}, {
1 year ago
text: Zi.LAN.Initialization, //初始化
2 years ago
handler: function (menu, event) {
_this.girdbillcolums = DsTruck.SaveGridPanel(USERID, _this.formname + 'bill', _this.gridListdetail.columns, _this.initgirdbillcolums, 1, true);
}
}],
scope: this
}],
columns: this.girdbillcolums
2 years ago
});
this.gridListdetail.addListener('itemdblclick', function (dataview, record, item, index, e, b) {
2 years ago
2 years ago
var openSet = "height=700, width=1024, toolbar=no, menubar=no,scrollbars=1, resizable=1,location=no, status=no,Top= " + (screen.height - 750) / 2 + ",Left= " + (screen.width - 1100) / 2
var openType = "_blank";
var openUrl = "";
openUrl = "../../MvcShipping/MsOpBill/MsOpFeeView?handle=check&bsno=" + record.data.BSNO;
window.open(openUrl, openType, openSet);
// DsOpenEditWin("/TruckMng/MsWlPc/Edit");
}, this);
2 years ago
this.girdbillcolums = DsTruck.GetGridPanel(USERID, this.formname + 'bill', this.girdbillcolums, 1); //使用者id表名中间column数组跳过一开始的几列
this.girdbillcolums.unshift(new Ext.grid.RowNumberer());
this.gridListdetail.reconfigure(this.storeBodyListdetail, this.girdbillcolums);
2 years ago
this.storeBodyListdetail.on('beforeload', function (store) {
var sql = " BILLNO='" + this.billno + "'";
Ext.apply(store.proxy.extraParams, { condition: sql });
}, this);
this.storeBodySum = Ext.create('Ext.data.Store', {
model: 'Chfee_do_sum',
remoteSort: true,
proxy: {
type: 'ajax',
url: '/Account/Chfee_invoiceapplication/GetBillSum',
reader: {
root: 'data',
totalProperty: 'totalCount'
}
}
});
this.gridSum = new Ext.grid.GridPanel({
store: this.storeBodySum,
enableHdMenu: false,
region: 'center',
1 year ago
loadMask: { msg: Zi.LAN.LoadData },
2 years ago
trackMouseOver: true,
disableSelection: false,
tbar: [{
xtype: 'label',
width: 120,
height: 22,
1 year ago
text: Zi.LAN.SHENAMOUNTTOTAL
2 years ago
}],
columns: [{
sortable: true,
dataIndex: 'FEETYPEREF',
1 year ago
header: Zi.LAN.FEETYPEREF,
2 years ago
width: 40
}, {
sortable: true,
dataIndex: 'CURRENCY',
1 year ago
header: Zi.LAN.Currency,
2 years ago
width: 80
}, {
sortable: true,
dataIndex: 'AMOUNT',
1 year ago
header: Zi.LAN.AMOUNT ,
2 years ago
width: 80,
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}
]
});
//#endregion formSearch
//查询工具条
this.panelBtn = new Ext.Panel({
region: "north",
tbar: [
{
1 year ago
text: Zi.LAN.ExecuteQuery,
2 years ago
iconCls: "btnrefresh",
handler: function (button, event) {
this.onRefreshClick(button, event);
},
scope: this
},
{
1 year ago
text: Zi.LAN.ResetCondition ,
2 years ago
iconCls: "btnreset",
handler: function (button, event) {
this.onClearSql(button, event);
},
scope: this
}, '-', {
1 year ago
text: Zi.LAN.SHENHETONGGUO ,
2 years ago
iconCls: "btnadd",
handler: function (button, event) {
this.onAuditPassClick();
},
scope: this
},
'-',
{
1 year ago
text: Zi.LAN.BUHUITIJIAO ,
2 years ago
iconCls: "btndelete",
handler: function (button, event) {
this.onAuditBackClick();
},
scope: this
}, '-', {
xtype: 'button',
width: 90,
1 year ago
text: Zi.LAN.AdvancedSearch,
2 years ago
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
}, '-', {
1 year ago
text: Zi.LAN.Saveliststyle,
2 years ago
id: "btntest",
menu: [
{
1 year ago
text: Zi.LAN.Save,
2 years ago
handler: function (button, event) {
this.girdcolums = DsTruck.SaveGridPanel(USERID, _this.formname, _this.gridList.columns, _this.girdcolums, 1, true);
}
}, {
1 year ago
text: Zi.LAN.Initialization,
2 years ago
handler: function (menu, event) {
_this.girdcolums = DsTruck.SaveGridPanel(USERID, _this.formname, _this.gridList.columns, _this.initgirdcolums, 1, true);
}
}],
scope: this
}, '-',
{
1 year ago
text: Zi.LAN.SetNoPrint, //打印
2 years ago
handler: function (button, event) {
this.SetNoPrint();
},
scope: this
}
]
});
this.storeCompany = Ext.create('DsExt.ux.RefTableStore', {
model: 'companymb', proxy: { url: '/CommMng/BasicDataRef/GetcompanyList' }
});
this.storeCompany.load({ params: { condition: ""} });
this.comboxCompany = Ext.create('DsExt.ux.RefTableCombox', {
1 year ago
fieldLabel: Zi.LAN.PAYCOMPANYREF,
2 years ago
labelWidth: 78,
forceSelection: true,
store: this.storeCompany,
id: 'PAYCOMPANYID',
name: 'PAYCOMPANYID',
valueField: 'gid',
displayField: 'name'
});
this.formEdit = Ext.widget('form', {
region: 'north',
height: 120,
frame: true,
bodyPadding: 3,
trackResetOnLoad: true,
// autoScroll: true,
fieldDefaults: {
margins: '2 2 2 2',
labelAlign: 'right',
flex: 1,
labelWidth: 70,
msgTarget: 'qtip'
},
items: [{
xtype: 'container',//fieldset
defaultType: 'textfield',
layout: 'hbox',
defaults: {
anchor: '100%'
},
items: [{
xtype: 'container',
layout: 'anchor',
flex: 3,
defaultType: 'textfield',
items: [
{
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [{
1 year ago
fieldLabel: Zi.LAN.INVOICECUSTNAME,
2 years ago
labelWidth: 90,
readOnly: true,
name: 'INVOICECUSTNAME'
}]
}, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [{
1 year ago
fieldLabel: Zi.LAN.CUSTRATENO,
2 years ago
labelWidth: 90,
readOnly: true,
name: 'CUSTRATENO'
}]
}, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [{
1 year ago
fieldLabel: Zi.LAN.CUSTADDRTEL,
2 years ago
labelWidth: 90,
readOnly: true,
name: 'CUSTADDRTEL'
}]
}, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [{
1 year ago
fieldLabel: Zi.LAN.CUSTBANK,
2 years ago
labelWidth: 90,
readOnly: true,
name: 'CUSTBANK'
}]
}
]
}, {
xtype: 'fieldset',
defaultType: 'textfield',
flex: 5,
layout: 'anchor',
defaults: {
anchor: '100%'
},
items: [{
xtype: 'container',
layout: 'hbox',
flex: 1,
defaultType: 'textfield',
items: [{
1 year ago
fieldLabel: Zi.LAN.INVOICECATEGORYREF,
2 years ago
labelWidth: 60,
readOnly: true,
name: 'INVOICECATEGORYREF'
}, {
1 year ago
fieldLabel: Zi.LAN.RECVCURR,
2 years ago
labelWidth: 60,
readOnly: true,
name: 'RECVCURR'
}, {
1 year ago
fieldLabel: Zi.LAN.INVOICENO,
2 years ago
readOnly: true,
name: 'INVOICENO'
}, {
1 year ago
fieldLabel: Zi.LAN.CUSTOMERNAME ,
2 years ago
readOnly: true,
name: 'CUSTOMERNAME'
}, {
1 year ago
fieldLabel: Zi.LAN.ACTUALCUSTOMERNAME,
2 years ago
readOnly: true,
name: 'ACTUALCUSTOMERNAME'
}]
}, {
xtype: 'container',
layout: 'hbox',
flex: 1,
defaultType: 'textfield',
items: [{
1 year ago
fieldLabel: Zi.LAN.Currency,
2 years ago
labelWidth: 60,
// flex: 0.5,
readOnly: true,
name: 'CURRENCY'
}, {
1 year ago
fieldLabel: Zi.LAN.RATE,
2 years ago
readOnly: true,
labelWidth: 40,
// flex: 0.5,
name: 'RATE'
}, {
1 year ago
fieldLabel: Zi.LAN.APPLYAMOUNT,
2 years ago
readOnly: true,
name: 'APPLYAMOUNT',
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, {
1 year ago
fieldLabel: Zi.LAN.INVAMOUNT ,
2 years ago
readOnly: true,
name: 'INVAMOUNT',
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
try {
var lsValue = usMoney(value, 2, '', false);
if (lsValue != "NaN") {
value = lsValue; if (parseFloat(lsValue) < 0) {
return '<SPAN style="COLOR: red">' + lsValue + '</SPAN>';
}
}
else {
return value;
}
}
catch (e) {
return value;
}
return value;
}
}, this.comboxCompany]
}
, {
xtype: 'container',
layout: 'hbox',
flex: 2,
defaultType: 'textfield',
items: [{
xtype: 'textareafield',
grow: true,
labelWidth: 60,
name: 'REMARK',
1 year ago
fieldLabel: Zi.LAN.REMARK ,
2 years ago
anchor: '100%'
}]
}
]
}
]//end items(fieldset 2)
}
]//end root items
}); //end this.formEdit
//#region 附件信息
Ext.define('FeeFileModel', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'BillNo', type: 'string' },
{ name: 'File_Type', type: 'number' },
{ name: 'UpdateTime', type: 'string' },
{ name: 'Operator', type: 'string' },
{ name: 'File_Path', type: 'string' },
{ name: 'File_Name', type: 'string' },
{ name: 'File_OriginalName', type: 'string' }
]
});
this.storeChfeeFile = Ext.create('Ext.data.Store', {
model: 'FeeFileModel',
remoteSort: false,
proxy: {
type: 'ajax',
url: '/Account/Chfee_payapplication/GetFileList',
reader: {
id: 'GID',
root: 'data',
totalProperty: 'totalCount'
}
}
});
//表格
this.FeeFileColumns = [
{
sortable: true, hidden: true,
dataIndex: 'GID', readOnly: true,
header: 'GID',
width: 80
}, {
sortable: true, hidden: false,
dataIndex: 'File_OriginalName', readOnly: true,
1 year ago
header: Zi.LAN.FileName,
2 years ago
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: 180
}, {
sortable: true, hidden: false,
dataIndex: 'UpdateTime', readOnly: true,
1 year ago
header: Zi.LAN.FileDate,
2 years ago
width: 80
}, {
sortable: true, hidden: false,
dataIndex: 'Operator', readOnly: true,
1 year ago
header: Zi.LAN.FilePerson,
2 years ago
width: 80
}, {
sortable: true, hidden: true,
dataIndex: 'File_Name', readOnly: true,
1 year ago
header: Zi.LAN.FileName ,
2 years ago
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'File_Path',
header: 'File_Path',
width: 80
}, {
xtype: 'actioncolumn',
width: 50,
1 year ago
text: Zi.LAN.Operating ,
2 years ago
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');
//var imgView = new Shipping.FileView({ filePath: filePath });
//imgView.show();
DsOpenEditWin("/Account/Chfee_payapplication/FileView?path=" + filePath, "", "650", "1250");
}
}]
}
];
var selCertModel = Ext.create('Ext.selection.CheckboxModel');
this.fileGrid = new Ext.grid.GridPanel({
store: this.storeChfeeFile,
enableHdMenu: false,
layout: 'border',
region: 'center',
1 year ago
loadMask: { msg: Zi.LAN.LoadData },
2 years ago
trackMouseOver: true,
disableSelection: false,
selModel: selCertModel,
singleSelect: true,
selType: 'rowmodel',
columns: this.FeeFileColumns
});
this.page_2 = new Ext.Panel({
id: "page_2",
1 year ago
title: Zi.LAN.filefujina,
2 years ago
// autoScroll: true,
layout: "border",
region: 'center',
//closable:true,
items: [this.fileGrid]
});
//#endregion
this.panelTop = new Ext.Panel({
layout: "border",
region: "north",
height: 80,
items: [this.formSearch, this.panelBtn]
});
this.panelSum = new Ext.Panel({
layout: "border",
region: 'east',
width: 260,
split: true,
margin: '2 2',
items: [this.gridSum]
});
this.paneldetail = new Ext.Panel({
1 year ago
title: Zi.LAN.INVFEEDETAIL,
2 years ago
layout: "border",
region: "center",
height: 420,
items: [
this.gridListdetail, this.panelSum
]
});
this.panelInvDetail = new Ext.Panel({
1 year ago
title: Zi.LAN.InvDetail ,
2 years ago
layout: "border",
region: "center",
margin: '2 2',
items: [this.formEdit, this.gridDetailList]
});
this.tabpanel = new Ext.TabPanel
({
activeTab: 0,
autoWidth: true,
border: false,
frame: false,
region: 'center',
id: "TabPanelID",
enableTabScroll: true,
split: true,
items:
[
this.panelInvDetail,
this.paneldetail,
this.page_2
]
});
Ext.apply(this, {
items: [this.panelTop, this.gridList, this.tabpanel]
});
this.storeList.on('beforeload', function (store) {
// var sql = this.getCondition();
Ext.apply(store.proxy.extraParams, { condition: _this.sqlcontext, isaudit: _this.isAudit });
}, this);
this.onRefreshClick();
this.storeList.on('load', function (store, records) {
if (store.getCount() > 0) {
this.gridList.getSelectionModel().select(0);
}
}, this);
_this = this;
this.gridList.getSelectionModel().on('select', function (model, record, index) {
this.billno = record.data.BILLNO;
var GID = record.data.GID;
var sql = "";
sql = " BILLNO='" + this.billno + "'";
_this.formEdit.getForm().loadRecord(record);
_this.storeBodyListdetail.load({ params: { condition: sql} });
_this.storeBodySum.load({ params: { condition: sql} });
_this.storeDetailList.load({ params: { condition: " PID='" + GID + "'"} });
_this.storeChfeeFile.load({ params: { start: 0, limit: 9999, BillNo: _this.billno} });
}, this);
}, //end initUIComponents
onAuditPassClick: function () {
var selections = this.gridList.getSelectionModel().getSelection();
if (selections.length == 0) {
1 year ago
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: Zi.LAN.SelectDanju , icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
2 years ago
return;
}
var bodyAddDatas = [];
var j = 0;
for (var i = 0; i < selections.length; i++) {
var rec = selections[i];
var BILLSTATUS = rec.data.BILLSTATUS;
var IsAudit = rec.data.IsAudit;
if (BILLSTATUS == '2' || BILLSTATUS == '4') {
if (IsAudit == 0) {
1 year ago
Ext.Msg.show({
title: Zi.LAN.Prompt,
msg: Zi.LAN.NOSHENHEQUANXIAN,
2 years ago
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
});
} else {
bodyAddDatas.push(rec);
j = j + 1;
}
} else {
1 year ago
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: Zi.LAN.STATUSNOAUDIT, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
2 years ago
return;
};
}
if (j == 0) {
1 year ago
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: Zi.LAN.NODATATOAUDIT, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
2 years ago
return;
}
var PAYCOMPANYID = this.formEdit.getForm().findField('PAYCOMPANYID').getValue();
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
_this = this;
1 year ago
Ext.MessageBox.confirm(Zi.LAN.Prompt, Zi.LAN.QUESHIYAOSHENHEXUANZHONG, function (btn) {
2 years ago
if (btn == 'yes') {
1 year ago
Ext.Msg.wait(Zi.LAN.ZHENGZAISHENHE);
2 years ago
Ext.Ajax.request({
1 year ago
waitMsg: Zi.LAN.ZHENGZAISHENHE,
2 years ago
timeout: 1200000,
url: '/Account/Chfee_invoiceapplication/AuditList',
params: {
data: jsonbodyAddDatas,
PAYCOMPANYID: PAYCOMPANYID
},
callback: function (options, success, response) {
if (success) {
var jsonresult = Ext.JSON.decode(response.responseText);
if (jsonresult.Success) {
_this.onRefreshClick();
Ext.Msg.hide();
// Ext.Msg.show({ title: '提示', msg: '审核成功!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
}
else {
1 year ago
Ext.Msg.show({ title: Zi.LAN.Error, msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
2 years ago
}
}
},
failure: function (response, options) {
1 year ago
Ext.Msg.show({ title: Zi.LAN.Caveat, msg: Zi.LAN.FuWuQiError, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
2 years ago
},
success: function (response, options) {
},
scope: this
}); //end Ext.Ajax.request
}
}, this);
},
onAuditBackClick: function () {
var selections = this.gridList.getSelectionModel().getSelection();
if (selections.length == 0) {
1 year ago
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: Zi.LAN.SelectDanju , icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
2 years ago
return;
}
var bodyAddDatas = [];
for (var i = 0; i < selections.length; i++) {
var rec = selections[i];
var BILLSTATUS = rec.data.BILLSTATUS;
if (BILLSTATUS == '2' || BILLSTATUS == '0') {
bodyAddDatas.push(rec);
} else {
1 year ago
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: Zi.LAN.STATUSNOBOHUI, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
2 years ago
return;
};
}
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
_this = this;
Ext.MessageBox.show({
1 year ago
title: Zi.LAN.BOHUIYUANYIN,
msg: Zi.LAN.BOHUIYUANYIN,
2 years ago
width: 300,
buttons: Ext.MessageBox.OKCANCEL,
multiline: true,
fn: function (btn, text) {
if (btn == "ok") {
Ext.Ajax.request({
1 year ago
waitMsg: Zi.LAN.ZHENGZAIBOHUI ,
2 years ago
url: '/Account/Chfee_invoiceapplication/AuditBackList',
params: {
data: jsonbodyAddDatas,
reason: text
},
callback: function (options, success, response) {
if (success) {
var jsonresult = Ext.JSON.decode(response.responseText);
if (jsonresult.Success) {
_this.storeList.reload();
1 year ago
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: Zi.LAN.BOHUICHENGGONG , icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
2 years ago
}
else {
1 year ago
Ext.Msg.show({ title: Zi.LAN.Error, msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
2 years ago
}
}
},
failure: function (response, options) {
1 year ago
Ext.Msg.show({ title: Zi.LAN.Caveat, msg: Zi.LAN.FuWuQiError, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
2 years ago
},
success: function (response, options) {
},
scope: this
}); //end Ext.Ajax.request
}
}
});
//Ext.MessageBox.confirm('提示', '确定驳回选中的业务吗?', function (btn) {
// if (btn == 'yes') {
// Ext.Msg.wait('正在驳回数据...');
// Ext.Ajax.request({
// waitMsg: '正在驳回数据...',
// url: '/Account/Chfee_invoiceapplication/AuditBackList',
// params: {
// data: jsonbodyAddDatas
// },
// callback: function (options, success, response) {
// if (success) {
// var jsonresult = Ext.JSON.decode(response.responseText);
// if (jsonresult.Success) {
// _this.onRefreshClick();
// Ext.Msg.show({ title: '提示', msg: '驳回成功!', 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);
},
SetNoPrint: function () {
var selections = this.gridList.getSelectionModel().getSelection();
if (selections.length == 0) {
1 year ago
Ext.Msg.show({ title: '', msg: Zi.LAN.SelectDanju, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
2 years ago
return;
}
var feeGidSql = '';
for (var i = 0; i < selections.length; i++) {
var record = selections[i];
var feeGId = "'" + record.get('BILLNO') + "'";
if (feeGidSql == '') {
feeGidSql = feeGId;
} else {
feeGidSql = feeGidSql + "," + feeGId;
}
}
Ext.Ajax.request({
waitMsg: '',
url: '/Account/Chfee_invoiceapplication/UpdateNoPrint',
params: {
billnos: feeGidSql
},
callback: function (options, success, response) {
if (success) {
var result = Ext.JSON.decode(response.responseText);
if (!result.Success) {
Ext.Msg.show({//提示
1 year ago
title: Zi.LAN.Prompt,
2 years ago
msg: result.Message,
icon: Ext.MessageBox.ERROR,
buttons: Ext.Msg.OK
});
return;
} else {
1 year ago
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
2 years ago
_this.storeList.reload();
}
} else {//请求出现错误,请重试
Ext.MessageBox.alert('服务器错误', response.responseText);
}
},
scope: this
});
},
onClearSql: function () {
var form = this.formSearch.getForm();
form.reset();
}, //onDeleteClick
onRefreshClick: function (button, event) {
var sql = this.getCondition();
this.PageSize = this.Pagenum.getValue();
this.sqlcontext = sql;
this.storeList.pageSize = this.PageSize;
this.storeList.load({
params: { start: 0, limit: this.PageSize, sort: '', condition: sql, isaudit: this.isAudit },
1 year ago
waitMsg: Zi.LAN.NowSelect,
2 years ago
callback: function (r, options, success) {
if (success) {
if (r.length == 0) {
var sql = " BILLNO='11111111' ";
this.formEdit.getForm().reset();
this.storeBodyListdetail.load({ params: { condition: sql} });
this.storeBodySum.load({ params: { condition: sql} });
this.storeDetailList.load({ params: { condition: " PID='11'"} });
}
}
},
scope: this
});
},
onDsQuery: function (button, event) {
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, isaudit: this.isAudit },
1 year ago
waitMsg: Zi.LAN.NowSelect,
2 years ago
callback: function (r, options, success) {
if (success) {
if (r.length == 0) {
var sql = " BILLNO='11111111' ";
this.formEdit.getForm().reset();
this.storeBodyListdetail.load({ params: { condition: sql} });
this.storeBodySum.load({ params: { condition: sql} });
this.storeDetailList.load({ params: { condition: " PID='11'"} });
}
}
},
scope: this
});
},
getCondition: function () {
var form = this.formSearch.getForm();
if (!form.isValid()) {
1 year ago
Ext.Msg.alert(Zi.LAN.Prompt, Zi.LAN.SelectError);
2 years ago
return '';
}
var sql = '';
var customNo = form.findField('BsNo').getValue();
sql = sql + getAndConSql(sql, customNo, "BILLNO like '%" + customNo + "%'");
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, "APPLYTIME >='" + expDateBgn + "'");
var expDateEnd = form.findField('ExpDateEnd').getRawValue();
sql = sql + getAndConSql(sql, expDateEnd, "APPLYTIME <='" + expDateEnd + "'");
var APPLICANT = form.findField('APPLICANT').getValue();
sql = sql + getAndConSql(sql, APPLICANT, "APPLICANT like '%" + APPLICANT + "%'");
this.isAudit = form.findField('DC').getValue();
return sql;
2 years ago
},
OprationSwap: function () {
var ret = new Array();
ret[0] = this.OprationStatus;
ret[1] = this.storeList;
ret[2] = this.SelectedRecord;
ret[3] = INVOICEPORT;
return ret;
2 years ago
}
});