Fix #5642 - Report designer - hebe
authorEdward <edward@roojs.com>
Mon, 7 Jan 2019 07:22:24 +0000 (15:22 +0800)
committerEdward <edward@roojs.com>
Mon, 7 Jan 2019 07:22:24 +0000 (15:22 +0800)
Pman.Tab.AdminEnum.bjs

index 0dc222c..700c9cb 100644 (file)
@@ -2,7 +2,7 @@
  "name" : "Pman.Tab.AdminEnum",
  "parent" : "Pman.Tab.Admin",
  "title" : "Pman.Tab.AdminEnum",
- "path" : "/home/benny/gitlive/web.MediaOutreach/Pman/Admin/Pman.Tab.AdminEnum.bjs",
+ "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminEnum.bjs",
  "permname" : "",
  "modOrder" : "500",
  "strings" : {
   "49ee3087348e8d44e1feda1917443987" : "Name",
   "d41d8cd98f00b204e9800998ecf8427e" : " "
  },
+ "named_strings" : {
+  "search_fieldLabel" : "13348442cc6a27032d2b4aa28b75a5d3"
+ },
  "items" : [
   {
    "xtype" : "NestedLayoutPanel",
-   "$ xns" : "Roo",
    "String region" : "center",
+   "$ xns" : "Roo",
    "String title" : "Pulldown Options",
    "items" : [
     {
@@ -64,8 +67,8 @@
         {
          "listeners" : {
           "beforeedit" : "function (e)\n{\n    if(e.field == 'name' && e.record.data.is_system_enum*1 == 1){\n        return false;\n    }\n}",
-          "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n        var di = this.colModel.getDataIndex(columnIndex);\n        if (di != 'active') {\n            return;\n        }\n         \n        var rec = _this.grid.ds.getAt(rowIndex);\n        \n        rec.set('active', rec.data.active ? 0 : 1);\n        rec.commit();\n         \n        \n}",
           "|render" : "function() \n{\n    _this.egrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.epanel.active) {\n       this.footer.onClick('first');\n    }\n}",
+          "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n        var di = this.colModel.getDataIndex(columnIndex);\n        if (di != 'active') {\n            return;\n        }\n         \n        var rec = _this.grid.ds.getAt(rowIndex);\n        \n        rec.set('active', rec.data.active ? 0 : 1);\n        rec.commit();\n         \n        \n}",
           "celldblclick" : "function (_self, rowIndex, columnIndex, e)\n{\n    var rec = _this.egrid.ds.getAt(rowIndex);\n    Pman.Dialog.AdminEnumType.show(rec.data,function(){\n        \n        _this.egrid.footer.onClick('first');\n    });\n}",
           "afteredit" : "function (e)\n{\n   e.record.commit();     \n}"
          },
@@ -89,8 +92,8 @@
            "items" : [
             {
              "$ url" : "baseURL + '/Roo/core_enum.php'",
-             "xtype" : "HttpProxy",
              "method" : "GET",
+             "xtype" : "HttpProxy",
              "$ xns" : "Roo.data",
              "* prop" : "proxy"
             },
           },
           {
            "xtype" : "ColumnModel",
-           "header" : "Pulldown",
            "width" : 200,
+           "header" : "Pulldown",
            "$ renderer" : "function(v,x,r) { \n\n\n    return String.format('<span qtip=\"{1}\">{0}</span>', (''+v).length ? v : r.data.name, r.data.name); \n}",
            "$ xns" : "Roo.grid",
            "* prop" : "colModel[]",
           },
           {
            "xtype" : "ColumnModel",
-           "header" : "Active",
            "width" : 50,
+           "header" : "Active",
            "$ renderer" : "function(v) {  \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[]",
        "listeners" : {
         "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
        },
+       "background" : false,
        "region" : "center",
        "fitToframe" : true,
-       "background" : false,
        "title" : "Pulldown Options",
        "xtype" : "GridPanel",
        "$ xns" : "Roo",
            "items" : [
             {
              "$ url" : "baseURL + '/Roo/core_enum.php'",
-             "method" : "GET",
              "xtype" : "HttpProxy",
+             "method" : "GET",
              "$ xns" : "Roo.data",
              "* prop" : "proxy"
             },
           },
           {
            "xtype" : "ColumnModel",
-           "width" : 75,
            "header" : "Internal #",
+           "width" : 75,
            "$ renderer" : "function(v,x,r) { \n    var fmt = '{0}';\n    if (r.selected) {\n        fmt = '<span style=\"color:orange;font-weight:bold;\">{0}</span>';\n    }\n    return String.format(fmt, v); }",
            "$ xns" : "Roo.grid",
            "Boolean sortable" : true,
           },
           {
            "xtype" : "ColumnModel",
-           "width" : 75,
            "header" : "Image",
+           "width" : 75,
            "$ renderer" : "function(v,x,r) { return String.format('<img src=\"{0}/Images/Thumb/25/{1}/{2}\" width=\"25\" height=\"25\">', baseURL, v, r.data.images_id_filename); }",
            "$ xns" : "Roo.grid",
            "* prop" : "colModel[]",
           },
           {
            "xtype" : "ColumnModel",
-           "header" : "Name",
            "width" : 200,
+           "header" : "Name",
            "$ renderer" : "function(v) { return String.format('{0}', v); }",
            "$ xns" : "Roo.grid",
            "Boolean sortable" : true,
           },
           {
            "xtype" : "ColumnModel",
-           "width" : 200,
            "header" : "Display Name",
+           "width" : 200,
            "$ renderer" : "function(v) { return String.format('{0}', v); }",
            "$ xns" : "Roo.grid",
            "Boolean sortable" : true,
           },
           {
            "xtype" : "ColumnModel",
-           "width" : 75,
            "header" : "Active",
+           "width" : 75,
            "$ renderer" : "function(v) {  \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",
            "Boolean sortable" : true,