Pman.Tab.AdminContactsGroupRight.bjs
authoredward <edward@roojs.com>
Tue, 12 Dec 2017 05:51:57 +0000 (13:51 +0800)
committeredward <edward@roojs.com>
Tue, 12 Dec 2017 05:51:57 +0000 (13:51 +0800)
Pman.Tab.AdminContactsGroupRight.js

Pman.Tab.AdminContactsGroupRight.bjs
Pman.Tab.AdminContactsGroupRight.js

index 52ac81d..c29060f 100644 (file)
@@ -7,10 +7,10 @@
  "modOrder" : "001",
  "strings" : {
   "8444e81d652b084d70c71cd7d19ac0cf" : "Displaying Person{0} - {1} of {2}",
-  "72670177480da92f72dc55e4aaff219b" : "Rights",
   "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
   "7dce122004969d56ae2e0245cb754d35" : "Edit",
   "4110db87ce3ac86d603d03d691616b1e" : "Drag person to add or remove from group",
+  "5a8c80de72d885c60b252e8888e7f1da" : "Rights???",
   "4d2d6b41cd520fa711073fffbfe81076" : "List/View",
   "6a0483c116671f74ffb653d4c85c4f55" : "Print/Export",
   "f1174ecbbc232f948717979daf04cf08" : "No Person found",
     "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
    },
    "autoScroll" : true,
-   "background" : true,
    "fitToframe" : true,
+   "background" : true,
    "region" : "center",
-   "title" : "Rights",
+   "title" : "Rights???",
    "xtype" : "GridPanel",
    "fitContainer" : true,
    "$ xns" : "Roo",
    "items" : [
     {
      "listeners" : {
-      "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n        _this.dataUpdate = typeof(_this.dataUpdate) =='undefined' ?  {} : _this.dataUpdate;\n        \n        var di = this.colModel.getDataIndex(columnIndex);\n        var i = di.split('_').shift();\n        var k = di.split('_').pop();\n        if (i != 'accessmask') {\n            return;\n        }\n        var rec = _this.grid.ds.getAt(rowIndex);\n        var fm = rec.data.FullMask.split('');        \n        if(k == 'AA'){\n\n            Roo.each(fm, function(e){\n                rec.set(i+'_'+e, rec.data[i+'_'+k] ? 0 : 1);\n            });\n        } \n        rec.set(i+'_'+k, rec.data[i+'_'+k] ? 0 : 1);\n        \n        var newmask = '';\n        Roo.each(fm, function(e) {\n            if (rec.data[i+'_'+e] === 1) {\n        \n                newmask += e;\n            }\n        \n        });        \n        \n        //rec.data.accessmask = rec.data.accessmask + rec\n        //Roo.log(rec);\n        _this.dataUpdate[rec.data.id] = newmask;\n\n        //rec.commit();\n         \n        \n}",
-      "|render" : "function() \n{\n    _this.grid = this; \n    if (!_this.dialog) {\n        _this.dialog = Pman.Dialog.PersonEdit;\n        \n    }\n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
+      "|render" : "function() \n{\n    _this.grid = this; \n    if (!_this.dialog) {\n        _this.dialog = Pman.Dialog.PersonEdit;\n        \n    }\n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
+      "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n        _this.dataUpdate = typeof(_this.dataUpdate) =='undefined' ?  {} : _this.dataUpdate;\n        \n        var di = this.colModel.getDataIndex(columnIndex);\n        var i = di.split('_').shift();\n        var k = di.split('_').pop();\n        if (i != 'accessmask') {\n            return;\n        }\n        var rec = _this.grid.ds.getAt(rowIndex);\n        var fm = rec.data.FullMask.split('');        \n        if(k == 'AA'){\n\n            Roo.each(fm, function(e){\n                rec.set(i+'_'+e, rec.data[i+'_'+k] ? 0 : 1);\n            });\n        } \n        rec.set(i+'_'+k, rec.data[i+'_'+k] ? 0 : 1);\n        \n        var newmask = '';\n        Roo.each(fm, function(e) {\n            if (rec.data[i+'_'+e] === 1) {\n        \n                newmask += e;\n            }\n        \n        });        \n        \n        //rec.data.accessmask = rec.data.accessmask + rec\n        //Roo.log(rec);\n        _this.dataUpdate[rec.data.id] = newmask;\n\n        //rec.commit();\n         \n        \n}"
      },
      "xtype" : "Grid",
-     "enableDrag" : true,
      "ddGroup" : "groupDD",
+     "enableDrag" : true,
      "loadMask" : true,
      "$ xns" : "Roo.grid",
      "* prop" : "grid",
@@ -61,8 +61,8 @@
        "items" : [
         {
          "$ url" : "baseURL + '/Admin/GroupRights.php'",
-         "xtype" : "HttpProxy",
          "method" : "GET",
+         "xtype" : "HttpProxy",
          "$ xns" : "Roo.data",
          "* prop" : "proxy"
         },
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "Add",
        "width" : 75,
+       "header" : "Add",
        "$ renderer" : "function(v) {  \n    if (v < 0) {\n        return '';\n    }\n    var state = v> 0 ?  '-checked' : '';\n\n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n                \n }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "Edit",
        "width" : 75,
+       "header" : "Edit",
        "$ renderer" : "function(v) {  \n   if (v < 0) {\n        return '';\n    }\n    var state = v> 0 ?  '-checked' : '';\n\n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n                \n }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "Delete",
        "width" : 75,
+       "header" : "Delete",
        "$ renderer" : "function(v) {  \n    if (v < 0) {\n        return '';\n    }\n    var state = v> 0 ?  '-checked' : '';\n\n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n                \n }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "List/View",
        "width" : 75,
+       "header" : "List/View",
        "$ renderer" : "function(v) {  \n    \n    if (v < 0) {\n        return '';\n    }\n    var state = v> 0 ?  '-checked' : '';\n\n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n                \n }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
       },
       {
        "xtype" : "ColumnModel",
-       "header" : "Print/Export",
        "width" : 75,
+       "header" : "Print/Export",
        "$ renderer" : "function(v,x,r) {  \n    \n    \n    if (v < 0) {\n        return '';\n    }\n    var state = v> 0 ?  '-checked' : '';\n\n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n                \n }",
        "$ xns" : "Roo.grid",
        "* prop" : "colModel[]",
index 8d466cf..93fee5e 100644 (file)
@@ -8,10 +8,10 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
 
  _strings : {
   '8444e81d652b084d70c71cd7d19ac0cf' :"Displaying Person{0} - {1} of {2}",
-  '72670177480da92f72dc55e4aaff219b' :"Rights",
   'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
   '7dce122004969d56ae2e0245cb754d35' :"Edit",
   '4110db87ce3ac86d603d03d691616b1e' :"Drag person to add or remove from group",
+  '5a8c80de72d885c60b252e8888e7f1da' :"Rights???",
   '4d2d6b41cd520fa711073fffbfe81076' :"List/View",
   '6a0483c116671f74ffb653d4c85c4f55' :"Print/Export",
   'f1174ecbbc232f948717979daf04cf08' :"No Person found",
@@ -41,7 +41,7 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({
    fitToframe : true,
    region : 'center',
    tableName : 'Person',
-   title : _this._strings['72670177480da92f72dc55e4aaff219b'] /* Rights */,
+   title : _this._strings['5a8c80de72d885c60b252e8888e7f1da'] /* Rights??? */,
    listeners : {
     activate : function() {
          _this.panel = this;