zoukankan      html  css  js  c++  java
  • 公司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,
    });
    }
    });

  • 相关阅读:
    node基础(2)
    node基础知识(1)
    面试题1
    HTML5中的表单属性
    H5中元素的拖放
    Niagara基于javascript的控件开发
    CSS居中
    2018-3-21 url 、href、src
    2018-3-7 色彩的一些知识
    JS基本数据类型
  • 原文地址:https://www.cnblogs.com/jiangyunfeng/p/12892741.html
Copyright © 2011-2022 走看看