YingHang
hanxuntao 9 months ago
commit 42493f530e

@ -33,6 +33,8 @@ Ext.extend(Shipping.MsChPayAppSettlementEdit, Ext.Panel, {
this.sqlcontext = ''; this.sqlcontext = '';
this.formname = "MsChPayAppSettlementEdit"; //页面名称 this.formname = "MsChPayAppSettlementEdit"; //页面名称
parentWin = window.parent.opener;
mainWin = getMainForm(parentWin);
this.storeMustBe = Ext.create('Ext.data.Store', { this.storeMustBe = Ext.create('Ext.data.Store', {
model: 'DsShipping.ux.OpDefValue', model: 'DsShipping.ux.OpDefValue',
@ -1311,6 +1313,39 @@ Ext.extend(Shipping.MsChPayAppSettlementEdit, Ext.Panel, {
this.girdfeecolums = this.initgirdfeecolums; this.girdfeecolums = this.initgirdfeecolums;
var addDetailMenu = [
{
text: Zi.LAN.AllApplyAmount,
handler: function (menu, event) {
_this.onAddDetailClick(menu, event, '');
}
}
];
var CurrList = mainWin.GetPubStore("SelectCurr").data;
CurrList.each(function (record) {
//jsonArray.push(record.get('ORGID'));
//alert(strLANGUAGES);//zh-cn
var data = record.data;
var text = data.EnumValueName;
if (strLANGUAGES == "en-us") {
text = data.EnumValueName_2
}
var curr = data.EnumValueId;
if (curr != "") {
addDetailMenu.push(
{
text: text,
handler: function (menu, event) {
_this.onAddDetailClick(menu, event, curr);
}
}
)
}
});
this.gridAddFeeList = new Ext.grid.GridPanel({ this.gridAddFeeList = new Ext.grid.GridPanel({
store: this.storeAddFeeList, store: this.storeAddFeeList,
enableHdMenu: false, enableHdMenu: false,
@ -1329,20 +1364,23 @@ Ext.extend(Shipping.MsChPayAppSettlementEdit, Ext.Panel, {
text: Zi.LAN.AddApplyDetail, text: Zi.LAN.AddApplyDetail,
id: "btnadddetail", id: "btnadddetail",
iconCls: 'btnadddetail', iconCls: 'btnadddetail',
menu: [ menu: addDetailMenu,
{ text: Zi.LAN.AllApplyAmount,
handler: function (menu, event) { // [
_this.onAddDetailClick(menu, event, ''); // { text: Zi.LAN.AllApplyAmount,
} // handler: function (menu, event) {
}, { text: Zi.LAN.OnlyRMBApplyAmount, // _this.onAddDetailClick(menu, event, '');
handler: function (menu, event) { // }
_this.onAddDetailClick(menu, event, 'RMB'); // }, { text: Zi.LAN.OnlyRMBApplyAmount,
} // handler: function (menu, event) {
}, { text: Zi.LAN.OnlyUSDApplyAmount, // _this.onAddDetailClick(menu, event, 'RMB');
handler: function (menu, event) { // }
_this.onAddDetailClick(menu, event, 'USD'); // }, { text: Zi.LAN.OnlyUSDApplyAmount,
} // handler: function (menu, event) {
}], // _this.onAddDetailClick(menu, event, 'USD');
// }
// }
//],
scope: this scope: this
}, '-', { }, '-', {

@ -33,6 +33,9 @@ Ext.extend(Shipping.MsChRecvAppSettlementEdit, Ext.Panel, {
this.sqlcontext = ''; this.sqlcontext = '';
this.formname = "MsChRecvAppSettlementEdit"; //页面名称 this.formname = "MsChRecvAppSettlementEdit"; //页面名称
parentWin = window.parent.opener;
mainWin = getMainForm(parentWin);
this.storeMustBe = Ext.create('Ext.data.Store', { this.storeMustBe = Ext.create('Ext.data.Store', {
model: 'DsShipping.ux.OpDefValue', model: 'DsShipping.ux.OpDefValue',
remoteSort: true, remoteSort: true,
@ -1100,6 +1103,39 @@ Ext.extend(Shipping.MsChRecvAppSettlementEdit, Ext.Panel, {
this.girdfeecolums = this.initgirdfeecolums; this.girdfeecolums = this.initgirdfeecolums;
var addDetailMenu = [
{
text: Zi.LAN.AllApplyAmount,
handler: function (menu, event) {
_this.onAddDetailClick(menu, event, '');
}
}
];
var CurrList = mainWin.GetPubStore("SelectCurr").data;
CurrList.each(function (record) {
//jsonArray.push(record.get('ORGID'));
//alert(strLANGUAGES);//zh-cn
var data = record.data;
var text = data.EnumValueName;
if (strLANGUAGES == "en-us") {
text = data.EnumValueName_2
}
var curr = data.EnumValueId;
if (curr != "") {
addDetailMenu.push(
{
text: text,
handler: function (menu, event) {
_this.onAddDetailClick(menu, event, curr);
}
}
)
}
});
this.gridAddFeeList = new Ext.grid.GridPanel({ this.gridAddFeeList = new Ext.grid.GridPanel({
store: this.storeAddFeeList, store: this.storeAddFeeList,
enableHdMenu: false, enableHdMenu: false,
@ -1118,20 +1154,22 @@ Ext.extend(Shipping.MsChRecvAppSettlementEdit, Ext.Panel, {
text: Zi.LAN.AddApplyDetail , text: Zi.LAN.AddApplyDetail ,
id: "btnadddetail", id: "btnadddetail",
iconCls: 'btnadddetail', iconCls: 'btnadddetail',
menu: [ menu: addDetailMenu,
{ text: Zi.LAN.AllApplyAmount,
handler: function (menu, event) { //[
_this.onAddDetailClick(menu, event, ''); // { text: Zi.LAN.AllApplyAmount,
} // handler: function (menu, event) {
}, { text: Zi.LAN.OnlyRMBApplyAmount, // _this.onAddDetailClick(menu, event, '');
handler: function (menu, event) { // }
_this.onAddDetailClick(menu, event, 'RMB'); // }, { text: Zi.LAN.OnlyRMBApplyAmount,
} // handler: function (menu, event) {
}, { text: Zi.LAN.OnlyUSDApplyAmount, // _this.onAddDetailClick(menu, event, 'RMB');
handler: function (menu, event) { // }
_this.onAddDetailClick(menu, event, 'USD'); // }, { text: Zi.LAN.OnlyUSDApplyAmount,
} // handler: function (menu, event) {
}], // _this.onAddDetailClick(menu, event, 'USD');
// }
// }],
scope: this scope: this
}, '-', { }, '-', {

@ -1877,7 +1877,7 @@ namespace DSWeb.Areas.Dispatch.Controllers
//{ //{
// "中石油","中石化","金盾","大象" // "中石油","中石化","金盾","大象"
//}; //};
var jyzlistList = cdc.tSysEnumValue.Where(x => x.EnumTypeID == 7001).ToList(); var jyzlistList = cdc.tSysEnumValue.Where(x => x.EnumTypeID == 7001).OrderBy(o=>o.DispIndex).ThenBy(o=>o.EnumValueID).ToList();
var jyzlist = jyzlistList.Select(s => s.EnumValueID).ToArray(); var jyzlist = jyzlistList.Select(s => s.EnumValueID).ToArray();

@ -1048,6 +1048,9 @@ Ext.extend(Shipping.MainForm, Ext.Panel, {
}); });
this.PubStore_OpCode.load(); this.PubStore_OpCode.load();
this.PubStore_SelectCurr = Ext.create('DsExt.ux.RefEnumStore', {});
this.PubStore_SelectCurr.load({ params: { enumTypeId: 45 } });
//this.LoadPubStore("INFOCLIENT_ISCONTROLLER"); //this.LoadPubStore("INFOCLIENT_ISCONTROLLER");
////var StoreStatusTask = { //Ext的定时器每隔30秒刷新store。 ////var StoreStatusTask = { //Ext的定时器每隔30秒刷新store。
@ -1271,6 +1274,10 @@ Ext.extend(Shipping.MainForm, Ext.Panel, {
result = this.PubStore_OpCode; result = this.PubStore_OpCode;
} }
if (STORENAME == "SelectCurr") {
result = this.PubStore_SelectCurr;
}
return result; return result;
//if ((result != "") && (result.getCount() == 0) ) { //if ((result != "") && (result.getCount() == 0) ) {

@ -75,7 +75,7 @@ $('#table_1').bootstrapTable({
queryParams: QueryParams, //额外传递参数(* queryParams: QueryParams, //额外传递参数(*
sidePagination: "server", //分页方式client客户端分页server服务端分页* sidePagination: "server", //分页方式client客户端分页server服务端分页*
pageNumber: 1, //初始化加载第一页,默认第一页 pageNumber: 1, //初始化加载第一页,默认第一页
pageSize: 10, //每页的记录行数(* pageSize: 100, //每页的记录行数(*
pageList: [10, 20, 50, 100, "All"], //可供选择的每页的行数(* pageList: [10, 20, 50, 100, "All"], //可供选择的每页的行数(*
//showPaginationSwitch:true, //showPaginationSwitch:true,
showColumns: false, //是否显示的列控制按钮 showColumns: false, //是否显示的列控制按钮

@ -65,6 +65,7 @@
</script> </script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/BasicDataRefModel.js"></script> <script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/Comm/BasicDataRefModel.js"></script>
<script type="text/javascript" src="../../../../Areas/CommMng/Viewsjs/Comm/DsExtjsEx.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/MainForm/MainForm.js"></script> <script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/MainForm/MainForm.js"></script>
<script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/MainForm/Main.js"></script> <script type="text/javascript" src="../../../../Areas/MvcShipping/Viewsjs/MainForm/Main.js"></script>

Loading…
Cancel
Save