103 lines
2.0 KiB
Plaintext
103 lines
2.0 KiB
Plaintext
|
{
|
||
|
"widgettype":"VBox",
|
||
|
"options":{
|
||
|
"width":"100%",
|
||
|
"height":"100%",
|
||
|
"overflow":"auto"
|
||
|
},
|
||
|
"subwidgets":[
|
||
|
{
|
||
|
"widgettype":"Title4",
|
||
|
"options":{
|
||
|
"i18n":true,
|
||
|
"dynsize":true,
|
||
|
"wrap":true,
|
||
|
"halign":"left",
|
||
|
"otext":"Codes maintainment"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"widgettype":"Filler",
|
||
|
"options":{},
|
||
|
"subwidgets":[
|
||
|
{
|
||
|
"id":"codelist",
|
||
|
"widgettype":"DynamicAccordion",
|
||
|
"options":{
|
||
|
"editable":{
|
||
|
"form_cheight":4,
|
||
|
"delete_icon":"{{entire_url('/imgs/delete.png')}}",
|
||
|
"update_icon":"{{entire_url('/imgs/update.png')}}",
|
||
|
"new_data_url":"{{entire_url('add_code.dspy')}}",
|
||
|
"delete_data_url":"{{entire_url('delete_code.dspy')}}",
|
||
|
"update_data_url":"{{entire_url('update_code.dspy')}}"
|
||
|
},
|
||
|
"fields":[
|
||
|
{
|
||
|
"name":"name",
|
||
|
"lable":"CodeName",
|
||
|
"uitype":"str"
|
||
|
},
|
||
|
{
|
||
|
"name":"hierarchy_flg",
|
||
|
"lable":"isHierarchy",
|
||
|
"uitype":"code",
|
||
|
"textField":"text",
|
||
|
"valueField":"value",
|
||
|
"defaultvalue":"0",
|
||
|
"data":[
|
||
|
{
|
||
|
"value":"0",
|
||
|
"text":"No"
|
||
|
},
|
||
|
{
|
||
|
|
||
|
"value":"1",
|
||
|
"text":"Yes"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"data_url":"{{entire_url('get_codes.dspy')}}",
|
||
|
"record_view":{
|
||
|
"widgettype":"HBox",
|
||
|
"options":{
|
||
|
"cheight":1.4
|
||
|
},
|
||
|
"subwidgets":[
|
||
|
{
|
||
|
"widgettype":"Text",
|
||
|
"options":{
|
||
|
"text":"${name}",
|
||
|
"cwidth":10,
|
||
|
"dynsize":true,
|
||
|
"wrap":true,
|
||
|
|
||
|
"halign":"left"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"widgettype":"Text",
|
||
|
"options":{
|
||
|
"text":"${hierarchy_flg}",
|
||
|
"cwidth":1,
|
||
|
"dynsize":true,
|
||
|
"wrap":true,
|
||
|
"halign":"left"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"content_view":{
|
||
|
"widgettype":"urlwidget",
|
||
|
"options":{
|
||
|
"url":"{{entire_url('codekv.ui')}}"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|