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

META-INF.resources.modules.sys.userinfo.ctrl.userinfo.baseinfo.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 UserAll = Page.extend(function () {

    // @override
    this.load = function (panel, data) {
      this.data = data;

      var form = panel.find('form');

      Core.ajax(Config.ContextPath + 'system/userinfo/' + data.userCode, {
        method: 'get'
      }).then(function (data) {
        form.form('disableValidation').form('load', data.userInfo)
          .form('readonly', ['userName', 'loginName', 'regCellPhone', 'regEmail', 'userDesc'])
          .form('focus');
      });
    };

  });

  return UserAll;
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy