公司OMS中前台Grid使用到的代码记录

function setGritCellValue(cell) {
if (cell instanceof jQuery) {
if (cell.length > 0) {
var TextValue = cell[0].innerText + '%';
$(cell).find(".f-grid-cell-inner").text(TextValue);
}
}
}

function huatu(values) {
var grid = F.ui.Grid1;
var merDate = grid.getMergedData();
var selectMonth = F.ui.FindTimeStart.value;//选择的月份
var jsonArray = [];
$.each(merDate, function (index, item) {
var index = item.index;
var id = item.id;
if (index == 2) {

var oneCell = grid.getCellEl(index, "One");
setGritCellValue(oneCell);

oneCell = grid.getCellEl(index, "Two");
setGritCellValue(oneCell);

 

}
});
var rowcount = merDate.length;//总行数

RefreshEcharts(values);

}
F.ready(function () {
//RefreshEcharts('{\"jfdnfd\":\"fdfd\"}');
var dateYar = getCurrentMonthLast("2020-05");
var start = dateYar.replace(new RegExp('/', 'g'), "-"); //把2018/8/31 替换成2018-8-31

});

 

 

 

 

var iframeWindowUrl = '@Url.Action("index","RealYieldShow", new { area = "Quote" })';
F.ui.Window1.show(iframeUrl, title, 800, 600);

 

F.doPostBack({
url: '@Url.Action("btnForce_Click")',
params: {
Grid2_SelectRows: F.ui.Grid2.getSelectedRows()
},
// 不显示页面加载动画
enableAjaxLoading: false,
complete: function (data) {
F.doPostBack({
url: '@Url.Action("Grid1_Changed")',
fields: "Grid1,MainPanel",
// 显示页面加载动画
enableAjaxLoading: false,
});
F.doPostBack({
url: '@Url.Action("Grid2_Changed")',
fields: "Grid2,MainPanel",
// 显示页面加载动画
enableAjaxLoading: false,
});
}
});

 

posted @ 2020-05-15 08:29  咖啡无眠  阅读(202)  评论(0编辑  收藏  举报