All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.modules.sys.unitinfo.ctrl.unitinfo.power.js Maven / Gradle / Ivy

There is a newer version: 5.0.2101
Show newest version
define(function(require) {
    var Config = require('config');
    var Core = require('core/core');
    var Page = require('core/page');
    var _ = require('lodash');


    var UnitInfoPower = Page.extend(function() {
        var _self = this;

        // @override
        this.load = function(panel, data) {
            var arry = _self.parent.dataMap.get(data.optCode);
            if(!arry)
                arry = new Array();
            var table = panel.find('table');
            table.datagrid({
                data:data.objData,
                onCheck:function(rowIndex,rowData){
                    var dataScopes = $(this).cdatagrid('getChecked').length;
                    if (dataScopes > 0){
                        $('#tree_unitinfo_power').tree('check',data.objTarget);
                    }
                    var i=0;
                    for(var j=0;j-1){
                    table.datagrid('checkRow', index);
                }
            });
        };
        this.submit=function(){

        };
    });

    return UnitInfoPower;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy