jsharmony-factory
Version:
Enterprise framework for jsHarmony
49 lines • 3.27 kB
JSON
{
"Base/Note": {
"title":"Note",
"table":"{schema}.note__tbl",
"actions":"BIUD",
"layout":"form",
"caption": [ "", "Note", "Notes" ],
"roles": {
"main":{"X_B":"B","X_X":"*"},
"client": {"CX_B":"B","CX_X":"*","CSYSADMIN":"*"}
},
"popup":[850,300],
"fields":[
{"name":"note_id","type":"bigint","key": 1,"datalock":{"cust_id":"note_id"},"control":"hidden"},
{"name":"note_scope_id","type":"bigint","actions":"BI","datalock":{"cust_id":"note_scope_id"},
"control": "hidden","default": "js:_GET['note_scope_id']","caption": ""},
{"control":"html","value":"<div style=\"font-size:18px;padding-bottom:12px;\">"},
{"name":"title_detail","type":"varchar","length":255,"control":"hidden","actions":"","caption":""},
{"control":"html","value":"</div>"},
{"name":"note_scope","type":"varchar","length":32,"actions":"BI","datalock":{"cust_id":"note_scope"},
"control":"dropdown_S","controlstyle":"width:95px;",
"lov": {"code_sys_prefix":"note_scope", "schema":"jsharmony", "blank": 1, "nodatalock":["cust_id"] },
"default": "js:_GET['note_scope']","readonly": 1,"caption":"Scope","captionstyle":"width:120px;text-align:right;"},
{"name":"note_type","type":"varchar","length":32,"actions":"BI","control":"dropdown_S","controlstyle":"width:95px;",
"lov": { "sql":"select code_val, code_txt from {schema}.code_note_type order by code_seq,code_txt", "nodatalock":["cust_id"], "blank": 1 },
"default": "js:_GET['note_type']","readonly": 1,"caption":"Type","captionstyle":"width:43px;text-align:right;"},
{"name":"note_sts","type":"varchar","length":32,"actions":"BI","control":"dropdown_S","controlstyle":"width:95px;","datalock":{"cust_id":"always"},
"lov":{"code_sys_prefix":"ac1", "schema":"jsharmony", "nodatalock":["cust_id"], "blank": 1 }, "default":"A",
"caption":"Status","captionstyle":"width:43px;text-align:right;"},
{"name":"cust_name_ext","type":"varchar","length":255,"actions":"","control":"hidden","nl":1},
{"name":"item_name","type":"varchar","length":255,"actions":"","control":"hidden","nl":1},
{"name":"note_body","type":"varchar","length":99999,"actions":"BIU","nl":1,"control":"textarea","controlstyle":"width:608px;height:50px;",
"caption":"Note","captionstyle":"width:120px;height:50px;vertical-align:top;padding-top:3px;text-align:right;"},
{"name":"note_etstmp","type":"datetime","length":7,"actions":"B","nl":1,"control":"textbox_tstmp","caption":"Entered"},
{"name":"note_euser_fmt","type":"varchar","length":120,"actions":"B","sqlselect":"({schema}.my_db_user_fmt(note_euser))",
"control":"textbox","controlstyle":"width:158px;","caption":""},
{"name":"note_mtstmp","type":"datetime","length":7,"actions":"B","nl":1,"control":"textbox_tstmp","caption":"Last Updated"},
{"name":"note_muser_fmt","type":"varchar","length":120,"actions":"B","sqlselect":"({schema}.my_db_user_fmt(note_muser))",
"control":"textbox","controlstyle":"width:158px;","caption":"","eol":1}
]
},
"Note__model": {
"inherits":"Base/Note"
},
"Note_Browse": {
"inherits": "Note__model",
"actions":"B"
}
}