{
 "hidden": false,
 "children": [{
  "configs": {
   "tagConfigs": "m?xwl=AGIlogBaseData/S_Code/S_PARM",
   "itemId": "module"
  },
  "expanded": true,
  "children": [
   {
    "configs": {
     "layout": "absolute",
     "itemId": "editWin",
     "dialog": "true",
     "closeAction": "hide",
     "autoReset": "true",
     "width": "552",
     "height": "200"
    },
    "expanded": true,
    "children": [
     {
      "configs": {
       "allowBlank": "false",
       "itemId": "ID",
       "hidden": "true",
       "labelAlign": "right",
       "fieldLabel": "id",
       "width": "312",
       "x": "8",
       "y": "192",
       "labelWidth": "90",
       "height": "22"
      },
      "expanded": false,
      "children": [],
      "type": "text"
     },
     {
      "configs": {
       "itemId": "NOTES",
       "labelAlign": "right",
       "fieldLabel": "备注",
       "width": "472",
       "x": "8",
       "y": "74",
       "labelWidth": "90",
       "height": "65"
      },
      "expanded": false,
      "children": [],
      "type": "textarea"
     },
     {
      "configs": {
       "itemId": "PARAM_VALUE",
       "labelAlign": "right",
       "fieldLabel": "参数值",
       "x": "-1",
       "width": "240",
       "y": "40",
       "height": "22"
      },
      "expanded": false,
      "children": [],
      "type": "text"
     },
     {
      "configs": {
       "itemId": "PARAM_CODE",
       "labelAlign": "right",
       "fieldLabel": "参数类别",
       "x": "-1",
       "width": "240",
       "y": "8",
       "height": "22"
      },
      "expanded": false,
      "children": [],
      "type": "text"
     },
     {
      "configs": {
       "itemId": "PARAM_NAME",
       "labelAlign": "right",
       "fieldLabel": "参数名称",
       "x": "239",
       "width": "240",
       "y": "8",
       "height": "22"
      },
      "expanded": false,
      "children": [],
      "type": "text"
     }
    ],
    "type": "window",
    "events": {"ok": "var values = Wb.getValue(app.editWin);\
  Wb.requestAg({\
    params: {\
      //  scode: 'C_VESSEL_PLAN',\
      paneldata: Wb.getValue(app.editWin),\
      //表单数据\
      bean: \"sParmControl\",\
      //spring中的bean名字\
      method: \"saveMethod\" //业务方法名 \
    },\
    success: function(resp) {\
      if (resp.responseText == 'fail') {\
        Wb.warn(\"插入失败\");\
      } else {\
  \
        var data = Wb.decode(resp.responseText)[0];\
         console.info(data);\
        win.close();\
        Wb.tip('保存成功');\
        app.sParmGrid.store.reload();\
      }\
    }\
  });\
"}
   },
   {
    "configs": {
     "layout": "fit",
     "itemId": "viewport1"
    },
    "expanded": true,
    "children": [{
     "configs": {
      "itemId": "sParmGrid",
      "selType": "checkboxmodel"
     },
     "expanded": true,
     "children": [
      {
       "configs": {
        "itemId": "store",
        "autoLoad": "true",
        "url": "m?xwl=common/S_Code/S_ParmEdit/select"
       },
       "expanded": false,
       "children": [],
       "type": "store"
      },
      {
       "configs": {"itemId": "tbar"},
       "expanded": true,
       "children": [
        {
         "configs": {
          "itemId": "cod",
          "labelAlign": "right",
          "fieldLabel": "参数类别",
          "isUpperCase": "true",
          "labelWidth": "60"
         },
         "expanded": false,
         "children": [],
         "type": "text"
        },
        {
         "configs": {
          "itemId": "name",
          "labelAlign": "right",
          "fieldLabel": "参数名称",
          "labelWidth": "60"
         },
         "expanded": false,
         "children": [],
         "type": "text"
        },
        {
         "configs": {
          "itemId": "findMenu",
          "text": "查询",
          "iconCls": "seek_icon"
         },
         "expanded": false,
         "children": [],
         "type": "item",
         "events": {"click": "app.sParmGrid.store.load({\
  params:{\
    COD:app.cod.getValue(),\
    NAME:app.name.getValue()\
  }\
});"}
        },
        {
         "configs": {
          "itemId": "addMenu",
          "text": "新增",
          "iconCls": "record_add_icon"
         },
         "expanded": false,
         "children": [],
         "type": "item",
         "events": {"click": "app.editWin.setTitle('添加 - 系统参数' );\
app.editWin.setIconCls('record_add_icon');\
app.editWin.show();\
app.isEdit = false; //标识是否为添加或修改状态，在editWin的ok事件中用到此属性"}
        },
        {
         "configs": {
          "itemId": "editBtn",
          "text": "修改",
          "iconCls": "db_edit_icon"
         },
         "expanded": false,
         "children": [],
         "type": "item",
         "events": {"click": "var rec = app.sParmGrid.getSelection()[0];\
if(!rec){\
Wb.warn('请选择一条修改记录');\
  return;\
}\
var sParmWin=new Ext.window.Window(app._editWin);\
Wb.setValue(app.editWin, rec.data);\
sParmWin.show();\
\
"}
        },
        {
         "configs": {
          "itemId": "delMenu",
          "text": "删除",
          "iconCls": "record_delete_icon"
         },
         "expanded": false,
         "children": [],
         "type": "item",
         "events": {"click": "Wb.del(app.sParmGrid, {\
  url: 'm?xwl=common/S_Code/S_ParmEdit/delete',\
  titleField: 'PARAM_NAME'\
});"}
        }
       ],
       "type": "toolbar"
      },
      {
       "configs": {"itemId": "columns"},
       "expanded": true,
       "children": [
        {
         "configs": {
          "itemId": "rowNumCol",
          "xtype": "rownumberer"
         },
         "expanded": false,
         "children": [],
         "type": "column"
        },
        {
         "configs": {
          "itemId": "sysCategoryCol",
          "dataIndex": "PARAM_CODE",
          "width": "180",
          "text": "参数类别"
         },
         "expanded": true,
         "children": [],
         "type": "column"
        },
        {
         "configs": {
          "itemId": "sysNameCol",
          "dataIndex": "PARAM_NAME",
          "width": "180",
          "text": "参数名称"
         },
         "expanded": true,
         "children": [],
         "type": "column"
        },
        {
         "configs": {
          "itemId": "PARAM_VALUE",
          "dataIndex": "PARAM_VALUE",
          "width": "180",
          "text": "参数值"
         },
         "expanded": true,
         "children": [],
         "type": "column"
        },
        {
         "configs": {
          "itemId": "notesCol",
          "dataIndex": "NOTES",
          "width": "240",
          "text": "备注"
         },
         "expanded": true,
         "children": [],
         "type": "column"
        },
        {
         "configs": {
          "itemId": "createdBy",
          "dataIndex": "CREATED_BY",
          "width": "120",
          "text": "创建人"
         },
         "expanded": true,
         "children": [],
         "type": "column"
        },
        {
         "configs": {
          "itemId": "createdOn",
          "dataIndex": "CREATED_ON",
          "width": "120",
          "text": "创建时间"
         },
         "expanded": true,
         "children": [],
         "type": "column"
        },
        {
         "configs": {
          "itemId": "updatedBy",
          "dataIndex": "UPDATED_BY",
          "width": "120",
          "text": "修改人"
         },
         "expanded": true,
         "children": [],
         "type": "column"
        },
        {
         "configs": {
          "itemId": "updatedOn",
          "dataIndex": "UPDATED_ON",
          "width": "120",
          "text": "修改时间"
         },
         "expanded": true,
         "children": [],
         "type": "column"
        },
        {
         "configs": {
          "itemId": "id",
          "hidden": "true",
          "dataIndex": "ID",
          "text": "ID"
         },
         "expanded": false,
         "children": [{
          "configs": {"itemId": "editor"},
          "expanded": false,
          "children": [],
          "type": "text"
         }],
         "type": "column"
        }
       ],
       "type": "array"
      }
     ],
     "type": "grid"
    }],
    "type": "viewport"
   }
  ],
  "type": "module"
 }],
 "roles": {"default": 1},
 "title": "系统参数",
 "iconCls": "",
 "inframe": false,
 "pageLink": ""
}