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.

1010 lines
35 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.MsOp_YAXIANGIndex = function (config) {
Ext.applyIf(this, config);
this.initUIComponents();
window.Shipping.MsOp_YAXIANGIndex.superclass.constructor.call(this);
};
Ext.extend(Shipping.MsOp_YAXIANGIndex, Ext.Panel, {
PageSize: 50,
OprationStatus: null, //仅当弹出界面时使用
SelectedRecord: null,
sqlcontext: '1=2',
initUIComponents: function () {
this.formname = "MsOp_YAXIANGIndex";
this.sqlcontext = '1=2';
/////////////////////////////////////////
//#region 主列表
this.storeList = Ext.create('Ext.data.Store', {
pageSize: this.PageSize,
model: 'YXmb',
remoteSort: false,
//groupField: 'GroupDate',
proxy: {
type: 'ajax',
//url: '/TruckMng/MsRptPcHeadOperate/QryData_ADL',
url: '/MvcShipping/MsOp_YAXIANG/GetDataList',
//this.storeList.proxy.url = '/TruckMng/MsRptPcHeadOperate/QryData_ADL';
reader: {
id: 'GID',
root: 'data',
totalProperty: 'totalCount'
}
}
});
this.column = [
{
sortable: true, hidden: true,
dataIndex: 'GID',
header: 'GID',
width: 80
},
{
sortable: true,
dataIndex: 'YXNO',
header: '押箱单号',
width: 80
},
{
sortable: true,
dataIndex: 'CUSTOMERNAME',
header: '押箱单位',
width: 80
},
{
sortable: true,
dataIndex: 'CUSTOMERBANKREF',
header: '押箱单位银行',
width: 100
},
{
sortable: true,hidden:true,
dataIndex: 'CUSTOMERBANK',
header: 'CUSTOMERBANK',
width: 100
},
{
sortable: true,
dataIndex: 'CUSTOMERACCOUNT',
header: '押箱单位账户',
width: 100
},
{
sortable: true,
dataIndex: 'YXDATE',
header: '押箱日期',
width: 80
},
{
sortable: true,
dataIndex: 'PATMENTDATE_EX',
header: '预计回款日期',
width: 80
},
{
sortable: true,
dataIndex: 'YXSTATE', hidden: true,
header: 'YXSTATE',
width: 80
},
{
sortable: true,
dataIndex: 'YXMONEY',
header: '押箱金额',
summaryType: 'sum', align: 'right',
width: 80,
summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
value = usMoney(value, 2, '', true);
return value;
},
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: 'CREATETIME',
header: '创建时间',
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'CREATEUSER',
header: 'CREATEUSER',
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'AUDITOR',
header: 'AUDITOR',
width: 80
},
{
sortable: true,
dataIndex: 'AUDITTIME',
header: '审核日期',
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'PAYMENTTYPE',
header: 'PAYMENTTYPE',
width: 80
},
{
sortable: true,
dataIndex: 'PAYMENTDATE',
header: '支付日期',
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'PAYMENTBANK',
header: 'PAYMENTBANK',
width: 80
},
{
sortable: true,
dataIndex: 'PAYMENTFINANCESOFTCODE',
header: '支付账号',
width: 80
},
{
sortable: true,
dataIndex: 'PAYMENTREMARK',
header: '支付备注',
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'RETURNTYPE',
header: 'RETURNTYPE',
width: 80
},
{
sortable: true,
dataIndex: 'RETURNDATE',
header: '回款日期',
width: 80
},
{
sortable: true,
dataIndex: 'RETURNMONEY',
header: '实际收回',
summaryType: 'sum', align: 'right',
width: 80,
summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
//value = usMoney(value, 2, '', true);
//return value;
var delvalu = sumFieldValue(_this.storeList,record,"YXSTATE","3005");
value = delvalu;
value = usMoney(value, 2, '', true);
return value;
//return value;
},
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: 'WSHJE',
header: '未收回金额',
summaryType: 'sum', align: 'right',
width: 80,
summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
var wshvalu = Cut(sumFieldValue(_this.storeList, "YXMONEY", "", ""), sumFieldValue(_this.storeList, "RETURNMONEY", "", ""));
value = usMoney(wshvalu, 2, '', true);
return value;
},
renderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
YXMONEY = parseFloat(record.data.YXMONEY);
RETURNMONEY = parseFloat(record.data.RETURNMONEY);
return usMoney(Cut(YXMONEY, RETURNMONEY), 2, '', false);
}
},
{
sortable: true, hidden: true,
dataIndex: 'RETURNBANK',
header: 'RETURNBANK',
width: 80
},
{
sortable: true,
dataIndex: 'RETURNFINANCESOFTCODE',
header: '收回账号',
width: 80
},
{
sortable: true,
dataIndex: 'RETURNREMARK',
header: '收回备注',
width: 80
},
{
sortable: true,
dataIndex: 'SPENDMONEY',
header: '总计扣款',
summaryType: 'sum', align: 'right',
width: 80,
summaryRenderer: function (value, cellmeta, record, rowIndex, columnIndex, store) {
value = usMoney(value, 2, '', true);
return value;
},
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, hidden: true,
dataIndex: 'COMPANYID',
header: 'COMPANYID',
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'DEPTID',
header: 'DEPTID',
width: 80
},
{
sortable: true, hidden: true,
dataIndex: 'TIMEMARK',
header: 'TIMEMARK',
width: 80
},
{
sortable: true,
dataIndex: 'YXSTATEREF',
header: '押箱单状态',
width: 80
},
{
sortable: true,
dataIndex: 'CREATEUSERREF',
header: '创建人',
width: 80
},
{
sortable: true,
dataIndex: 'AUDITORREF',
header: '审核人',
width: 80
},
{
sortable: true,
dataIndex: 'COMPANYIDREF',
header: '公司',
width: 80
},
{
sortable: true,
dataIndex: 'DEPTIDREF',
header: '部门',
width: 80
},
{
sortable: true,
dataIndex: 'PAYMENTTYPEREF',
header: '支付方式',
width: 80
},
{
sortable: true,
dataIndex: 'RETURNTYPEREF',
header: '回款方式',
width: 80
},
{
sortable: true,
dataIndex: 'PAYMENTBANKREF',
header: '支付银行',
width: 80
},
{
sortable: true,
dataIndex: 'RETURNBANKREF',
header: '收回银行',
width: 80
}
];
this.cellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
});
Ext.grid.RowNumberer = Ext.extend(Ext.grid.RowNumberer, {
width: 40
});
this.GridCheckBoxModel = Ext.create('Ext.selection.CheckboxModel');
this.gridList = new Ext.grid.GridPanel({
store: this.storeList,
enableHdMenu: false,
region: 'center',
loadMask: { msg: "数据加载中,请稍等..." },
trackMouseOver: true,
disableSelection: false,
selModel: this.GridCheckBoxModel,
//selModel: this.MainCB,
columns: this.column,
plugins: [
//this.cellEditing
],
features: [{
ftype: 'summary'//Ext.grid.feature.Summary表格汇总特性
}],
/*features: [{
id: 'group',
ftype: 'grouping',
groupHeaderTpl: '{name}',
hideGroupedHeader: true,
enableGroupingMenu: true
}],*/
viewConfig: {
enableTextSelection: true, //允许复制数据
autoFill: true,
getRowClass: function (record, rowIndex, rowParams, store) {
//var YXSTATE = record.get('YXSTATE');
//return Shipping.GetAuditClass(BLSTATUS);
}
},
bbar: Ext.create('Ext.PagingToolbar', {
store: this.storeList,
displayInfo: true,
displayMsg: '当前显示 {0} - {1}条记录 /共 {2}条记录',
emptyMsg: "没有数据"
})
});
/////////////以下部分为获取存储的gridpanel显示样式
this.column = DsTruck.GetGridPanel(USERID, this.formname, this.column);
//使用者id表名 中间column数组
this.column.unshift(new Ext.grid.RowNumberer());
this.gridList.reconfigure(this.storeList, this.column);
////////////////////////////
this.gridList.addListener('itemdblclick', function (dataview, record, item, index, e, b) {
// alert('0....' + dataview.toString() + ',' + record.toString() + ',' + item.toString() + ',' + index.toString() + ',' + e.toString() + ',' + b.toString());
this.SelectedRecord = record;
this.OprationStatus = 'edit';
DsOpenEditWin('/MvcShipping/MsOp_YAXIANG/Edit', record.data.YXNO, "700", "1100");
}, this);
//#endregion
//////////////////////////////////////////////////////////////
//#region formSearch
//#region formSearch枚举参照相关
//客户
this.storeCustCode = Ext.create('DsExt.ux.RefTableStore', {
model: 'DsShipping.ux.CustomRefModel',
proxy: { url: '/CommMng/BasicDataRef/GetCustomRefListController' }
});
this.storeCustCode.load({ params: { condition: "" } });
//押箱单位都是场站
this.comboxCustCode = Ext.create('DsExt.ux.RefTableCombox', {
fieldLabel: '押箱单位',
store: this.storeCustCode,
//queryMode: 'remote',
minChars: 1,
//queryParam: 'CODENAME',
name: 'CUSTOMERNAME',
valueField: 'CustName',
displayField: 'CodeAndName'
//,allowBlank: false
});
this.comboxYXSTATE = getTaskStateCombox({
LABEL: '押箱状态',
NAME: 'YXSTATE',
FLEX: 1,
PROP5: "MsOp_YAXIANG"
//,ALLOWBLANK: false
});
//#endregion
_this = this;
this.formSearch = Ext.widget('form', {
frame: true,
region: 'center',
bodyPadding: 5,
fieldDefaults: {
margins: '2 2 2 2',
labelAlign: 'right',
flex: 1,
labelWidth: 85,
msgTarget: 'qtip'
},
items: [
{//fieldset 1
xtype: 'container',
defaultType: 'textfield',
layout: 'anchor',
defaults: {
anchor: '100%'
},
items: [{
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [
this.comboxCustCode,
{
fieldLabel: '提单号',
//labelWidth: 110,
name: 'MBLNO',
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
},
{
fieldLabel: '箱号/押箱编号',
//labelWidth: 110,
name: 'CNTRNO',
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}, this.comboxYXSTATE,
{
fieldLabel: '从押箱日期',
format: 'Y-m-d',
xtype: 'datefield',
name: 'ETD_BGN',
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}, {
fieldLabel: '到押箱日期',
format: 'Y-m-d',
xtype: 'datefield',
name: 'ETD_END',
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}]
}, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [
]
}, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [
]
}
]//end items(fieldset 1)
}//end fieldset 1
]//end root items
});
//#endregion formSearch
this.panelBtn = new Ext.Panel({
region: "north",
tbar: [
{
text: "执行查询",
iconCls: "btnrefresh",
handler: function (button, event) {
this.onRefreshClick(button, event);
saveQuerySetting(this.formname, this.formSearch, true, true);
},
scope: this
}, '-', {
text: "新建", id: "btnadd", hidden: true,
iconCls: "btnadd",
handler: function (button, event) {
this.OprationStatus = 'add';
DsOpenEditWin('/MvcShipping/MsOp_BLISSUE/Edit', "编辑特殊放单申请");
},
scope: this
}, {
text: "删除", id: "btndelete",
iconCls: "btndelete",
handler: function (button, event) {
this.onDeleteClick(button, event);
},
scope: this
}, '-', {
text: "提交审核", id: "SP_Start",
handler: function (button, event) {
//this.PushState("3000");
this.Submit();
},
scope: this
}, {
text: "撤回提交", id: "SP_Back",
tooltip: '',
handler: function (button, event) {
//this.PushState("30011");
this.SubmitBack();
},
scope: this
}, '-', {
text: "审核通过", id: "SP_Audit",
//iconCls: "btnrefresh",
handler: function (button, event) {
this.PushState("3001");
},
scope: this
},
{
text: "审核驳回", id: "SP_AuditBack",
handler: function (button, event) {
//this.winAuditBackShow.show();
this.PushState("30011");
},
scope: this
}, '-', {
text: "导出Excel",
id: "btnExportExcel",
iconCls: 'btnexportexcel',
handler: function (button, event) {
this.onExportClick(button, event);
},
scope: this
}, {
text: "打印", id: "print",
tooltip: 'print',
handler: function (button, event) {
//this.PushState("30011");
this.Print();
},
scope: this
}, /*{
id: "btnFeeAuditReject",
text: '驳回提交费用业务',
tooltip: '驳回提交费用业务',
iconCls: "btnrefuse",
handler: function (button, event) {
this.onAuditRefuseClick(button, event);
},
scope: this
},*/
{
text: "保存列表样式",
id: "btntest",
handler: function (button, event) {
var formname = this.formname;
var tempcolumns = this.gridList.columns;
DsTruck.SaveGridPanel(USERID, formname, tempcolumns, this.column, 0, false);
},
scope: this
}
//,this.CB_EditMode
]
});
//#region 布局
this.panelTop = new Ext.Panel({
layout: "border",
region: "north",
height: 75,
items: [this.formSearch, this.panelBtn]
});
this.panelMain = new Ext.Panel({
//title: '',
layout: "border",
region: 'center',
height: 600,
margin: '1 2',
split: true,
items: [this.gridList]
});
Ext.apply(this, {
items: [this.panelTop, this.panelMain]
});
//#endregion
//#region 以下集中绑定事件
this.storeList.on('beforeload', function (store) {
var sql = this.getCondition();
Ext.apply(store.proxy.extraParams, { condition: sql });
}, this);
//#endregion
//this.LoadInitData();
}, //end initUIComponents
LoadInitData: function () {
//this.storeTruckNo.load({ params: { condition: " A.truckno not in (select DISTINCT truckno from tMsWlPcHead where isnull(isend,0)=0 ) "} });
},
onAuditRefuseClick: function (button, event) {
var sql = " A.GID in (select bsno from ch_fee where FEESTATUS=6)";
this.storeList.load({
params: { start: 0, limit: this.PageSize, condition: sql },
waitMsg: "正在查询数据...",
scope: this
});
},
onRefreshClick: function (button, event) {
//if (!this.checkSearchCondition())
// return;
var sql = this.getCondition();
this.sqlcontext = sql;
this.storeList.load({
params: { start: 0, limit: this.PageSize, condition: sql },
waitMsg: "正在查询数据...",
scope: this
});
//}
},
onDsQuery: function (button, event) {
var sql = this.sqlcontext;
this.storeList.load({
params: { start: 0, limit: this.PageSize, condition: sql },
waitMsg: "正在查询数据...",
scope: this
});
//}
},
onRefreshClick_Add: function (button, event) {
if (!this.checkSearchCondition())
return;
var sql = this.getCondition_Add();
this.storeList.load({
params: { start: 0, limit: this.PageSize, condition: sql },
waitMsg: "正在查询数据...",
scope: this
});
//}
},
onDeleteClick: 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 record = selections[0];
Ext.MessageBox.confirm('提示', '确定删除该记录吗?', function (btn) {
if (btn == 'yes') {
Ext.Msg.wait('正在删除数据...');
Ext.Ajax.request({
waitMsg: '正在删除数据...',
url: '/MvcShipping/MsOp_YAXIANG/Delete',
params: {
data: Ext.JSON.encode(record.data)
},
callback: function (options, success, response) {
if (success) {
var jsonresult = Ext.JSON.decode(response.responseText);
if (jsonresult.Success) {
this.storeList.remove(record);
Ext.Msg.show({ title: '提示', msg: jsonresult.Message, 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);
}, //onDeleteClick
getCondition: function () {
var form = this.formSearch.getForm();
var sql = '';
//20170309 增加逻辑
//
//只能看到“”
var MBLNO = form.findField('MBLNO').getValue();
sql = sql + getAndConSql(sql, MBLNO, " ( exists (select 1 from MsOp_YAXIANG_detail where yxno=MsOp_YAXIANG.YXNO and bsno in(select bsno from v_op_bill where mblno like '%" + MBLNO + "%')) ) ");
var CNTRNO = form.findField('CNTRNO').getValue();
sql = sql + getAndConSql(sql, CNTRNO, " (YXNO like '%" + CNTRNO + "%' or exists(select 1 from MsOp_YAXIANG_detail where yxno = MsOp_YAXIANG.YXNO and bsno in (select bsno from op_ctn where cntrno like '%" + CNTRNO + "%'))) ");
var CUSTOMERNAME = form.findField('CUSTOMERNAME').getValue();
sql = sql + getAndConSql(sql, CUSTOMERNAME, " CUSTOMERNAME like '%" + CUSTOMERNAME + "%' ");
var ETD_BGN = form.findField('ETD_BGN').getRawValue();
sql = sql + getAndConSql(sql, ETD_BGN, " YXDATE>='" + ETD_BGN + "'");
var ETD_END = form.findField('ETD_END').getRawValue();
sql = sql + getAndConSql(sql, ETD_END, " YXDATE<='" + ETD_END + " 23:59:59'");
var YXSTATE = form.findField('YXSTATE').getValue();
sql = sql + getAndConSql(sql, YXSTATE, " YXSTATE='" + YXSTATE + "'");
return sql;
},
OprationSwap: function () {
var ret = new Array();
ret[0] = this.OprationStatus;
ret[1] = this.storeList;
ret[2] = this.SelectedRecord;
if (this.OprationStatus == "add") {
ret[3] = "";
} else {
ret[3] = this.SelectedRecord.data.YXNO;
}
//将押箱单位列表带过
ret[4] = this.storeCustCode;
return ret;
},
onAddClick: function (button, event) {
this.OprationStatus = 'add';
DsOpenEditWin("/MvcShipping/MsOp_YAXIANG/Edit", "新建押箱单", "700", "1100");
} //onDeleteClick
, PushState: function (execution) {
var selectedRecords = this.gridList.selModel.getSelection();
Ext.MessageBox.confirm('提示', '确定吗?', function (btn) {
if (btn == 'yes') {
var Bodydatas = [];
for (var i = 0; i < selectedRecords.length; i++) {
var rec = selectedRecords[i];
Bodydatas.push(rec);
}
var jsonBody = ConvertRecordsToJsonAll(Bodydatas);
Ext.Msg.wait('正在保存数据, 请稍侯..');
Ext.Ajax.request({
waitMsg: '正在保存数据...',
url: '/MvcShipping/MsOp_YAXIANG/PushState_List',
scope: this,
params: {
dataList: jsonBody,
Execution: execution
},
callback: function (options, success, response) {
Ext.MessageBox.hide();
var jsonresult = Ext.JSON.decode(response.responseText);
if (jsonresult.Success) {
this.onRefreshClick();
} else {
Ext.Msg.show({
title: '请重试',
msg: jsonresult.Message,
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
});
}
}
});
}
}, this);
}
, Submit: function () {
this.Audit('SubmitAudit');
}
, SubmitBack: function () {
this.Audit('SubmitAuditBack');
}
, Audit: function (AuditType) {
var selectedRecords = this.gridList.selModel.getSelection();
Ext.MessageBox.confirm('提示', '确定吗?', function (btn) {
if (btn == 'yes') {
var Bodydatas = [];
for (var i = 0; i < selectedRecords.length; i++) {
var rec = selectedRecords[i];
Bodydatas.push(rec);
}
var jsonBody = ConvertRecordsToJsonAll(Bodydatas);
//var Head = "[" + Ext.JSON.encode(this.Editdata) + "]";
Ext.Msg.wait('正在保存数据, 请稍侯..');
Ext.Ajax.request({
waitMsg: '正在保存数据...',
url: '/MvcShipping/MsOp_YAXIANG/' + AuditType,
scope: this,
params: {
dataList: jsonBody
},
callback: function (options, success, response) {
if (success) {
Ext.MessageBox.hide();
var jsonresult = Ext.JSON.decode(response.responseText);
if (jsonresult.Success) {
condition = "YXNO='" + this.editRecord.get('YXNO') + "'";
this.LoadData(this.opStatus, condition);
} 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
});
}
}
});
}
});
}
,
onExportClick: function (button, event) {
GridExportExcelPage(this.gridList);
},
//#region 打印
Print: function () {
var selectedRecords = this.gridList.selModel.getSelection();
var YXNOList = "";
for (var i = 0; i < selectedRecords.length; i++) {
var rec = selectedRecords[i];
if (!isNullorEmpty(YXNOList)) YXNOList += "','";
YXNOList += rec.get("YXNO");
}
var printType = 'MSOP_YAXIANG';
var sql1 = "";
var sql2 = "";
var sql3 = "";
var sql4 = "";
var sql5 = "";
var sql6 = "";
Ext.Ajax.request({
waitMsg: '正在查询主表数据...',
url: '/MvcShipping/MsOp_YAXIANG/GetPrintSql',
params: {
printname: "Print1",
YXNOList: "'" + YXNOList + "'"
},
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;
}
//this.Editdata = result.data;
//this.LoadInit(data);
sql1 = result.Data.sql1;
sql2 = result.Data.sql2;
PrintComm(printType, sql1, sql2, sql3, sql4, sql5, sql6);
} else {
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
}
},
scope: this
});
}
//#endregion
});