X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=resources%2FEditors%2FEditor.Roo.LayoutDialog.bjs;h=d37947769106200e9832f4874c1b272eab3a190f;hb=e04aeb76772bc13427ba03fddafc34a962c3ddd6;hp=ec6b923f93ef038d591c8231c5cafb4fad8e9a7e;hpb=8c97372348227d161e7f7a626e1930c89b9c66a3;p=app.Builder.js diff --git a/resources/Editors/Editor.Roo.LayoutDialog.bjs b/resources/Editors/Editor.Roo.LayoutDialog.bjs index ec6b923f9..d37947769 100644 --- a/resources/Editors/Editor.Roo.LayoutDialog.bjs +++ b/resources/Editors/Editor.Roo.LayoutDialog.bjs @@ -8,7 +8,7 @@ "strings" : { "b021df6aac4654c454f46c77646e745f" : "Label", "793548e77e782c209a78ed67f255b5e2" : "Display Field", - "0b6519e9da7898cdc668f6016026e71d" : "To JSON", + "040076bde7f6b3387448e32b66c2eee0" : "To BJS", "4ce58cbe362a5d7b156992a496d55bf3" : "Database Column", "189efd19c4153526994a6d7ea5f6f068" : "Field Type", "2f616612593df62aeed112de4f03110e" : "Edit a Grid", @@ -74,18 +74,22 @@ }, { "listeners" : { - "click" : "function (_self, e)\n{\n Roo.log(_this.ftype_combo);\n var data = { \n \"manage_scale_id\": {\n \"Field\": \"manage_scale_id\",\n \"Type\": \"int(11)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0\",\n \"Extra\": null,\n \"relates_to_table\": \"core_enum\",\n \"relates_to_col\": \"id\",\n \"relates_to_schema\": {\n \"id\": {\n \"Field\": \"id\",\n \"Type\": \"int(11)\",\n \"Null\": \"NO\",\n \"Key\": \"PRI\",\n \"Default\": null,\n \"Extra\": \"auto_increment\"\n },\n \"etype\": {\n \"Field\": \"etype\",\n \"Type\": \"varchar(32)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"name\": {\n \"Field\": \"name\",\n \"Type\": \"varchar(255)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"active\": {\n \"Field\": \"active\",\n \"Type\": \"int(2)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"1\",\n \"Extra\": null\n },\n \"seqid\": {\n \"Field\": \"seqid\",\n \"Type\": \"int(11)\",\n \"Null\": \"NO\",\n \"Key\": \"MUL\",\n \"Default\": \"0\",\n \"Extra\": null\n },\n \"seqmax\": {\n \"Field\": \"seqmax\",\n \"Type\": \"int(11)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0\",\n \"Extra\": null\n },\n \"display_name\": {\n \"Field\": \"display_name\",\n \"Type\": \"text\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"is_system_enum\": {\n \"Field\": \"is_system_enum\",\n \"Type\": \"int(2)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0\",\n \"Extra\": null\n }\n }\n },\n \"person_type\": {\n \"Field\": \"person_type\",\n \"Type\": \"text\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"employer_name\": {\n \"Field\": \"employer_name\",\n \"Type\": \"text\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"birth_date\": {\n \"Field\": \"birth_date\",\n \"Type\": \"date\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0000-00-00\",\n \"Extra\": null\n },\n \"employ_start_date\": {\n \"Field\": \"employ_start_date\",\n \"Type\": \"date\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0000-00-00\",\n \"Extra\": null\n },\n \"employ_end_date\": {\n \"Field\": \"employ_end_date\",\n \"Type\": \"date\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0000-00-00\",\n \"Extra\": null\n },\n \"hide_same_employer\": {\n \"Field\": \"hide_same_employer\",\n \"Type\": \"int(4)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0\",\n \"Extra\": null\n },\n \"salary_currency\": {\n \"Field\": \"salary_currency\",\n \"Type\": \"varchar(256)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"quota_currency\": {\n \"Field\": \"quota_currency\",\n \"Type\": \"varchar(256)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"created_dt\": {\n \"Field\": \"created_dt\",\n \"Type\": \"datetime\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0000-00-00 00:00:00\",\n \"Extra\": null\n },\n \"updated_dt\": {\n \"Field\": \"updated_dt\",\n \"Type\": \"datetime\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0000-00-00 00:00:00\",\n \"Extra\": null\n }\n };\n \n Roo.log('debuging...');\n _this.panel.loadData(data);\n\n}" + "click" : "function (_self, e)\n{\n var data = { \n \"manage_scale_id\": {\n \"Field\": \"manage_scale_id\",\n \"Type\": \"int(11)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0\",\n \"Extra\": null,\n \"relates_to_table\": \"core_enum\",\n \"relates_to_col\": \"id\",\n \"relates_to_schema\": {\n \"id\": {\n \"Field\": \"id\",\n \"Type\": \"int(11)\",\n \"Null\": \"NO\",\n \"Key\": \"PRI\",\n \"Default\": null,\n \"Extra\": \"auto_increment\"\n },\n \"etype\": {\n \"Field\": \"etype\",\n \"Type\": \"varchar(32)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"name\": {\n \"Field\": \"name\",\n \"Type\": \"varchar(255)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"active\": {\n \"Field\": \"active\",\n \"Type\": \"int(2)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"1\",\n \"Extra\": null\n },\n \"seqid\": {\n \"Field\": \"seqid\",\n \"Type\": \"int(11)\",\n \"Null\": \"NO\",\n \"Key\": \"MUL\",\n \"Default\": \"0\",\n \"Extra\": null\n },\n \"seqmax\": {\n \"Field\": \"seqmax\",\n \"Type\": \"int(11)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0\",\n \"Extra\": null\n },\n \"display_name\": {\n \"Field\": \"display_name\",\n \"Type\": \"text\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"is_system_enum\": {\n \"Field\": \"is_system_enum\",\n \"Type\": \"int(2)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0\",\n \"Extra\": null\n }\n }\n },\n \"person_type\": {\n \"Field\": \"person_type\",\n \"Type\": \"text\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"employer_name\": {\n \"Field\": \"employer_name\",\n \"Type\": \"text\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"birth_date\": {\n \"Field\": \"birth_date\",\n \"Type\": \"date\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0000-00-00\",\n \"Extra\": null\n },\n \"employ_start_date\": {\n \"Field\": \"employ_start_date\",\n \"Type\": \"date\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0000-00-00\",\n \"Extra\": null\n },\n \"employ_end_date\": {\n \"Field\": \"employ_end_date\",\n \"Type\": \"date\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0000-00-00\",\n \"Extra\": null\n },\n \"hide_same_employer\": {\n \"Field\": \"hide_same_employer\",\n \"Type\": \"int(4)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0\",\n \"Extra\": null\n },\n \"salary_currency\": {\n \"Field\": \"salary_currency\",\n \"Type\": \"varchar(256)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"quota_currency\": {\n \"Field\": \"quota_currency\",\n \"Type\": \"varchar(256)\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": null,\n \"Extra\": null\n },\n \"created_dt\": {\n \"Field\": \"created_dt\",\n \"Type\": \"datetime\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0000-00-00 00:00:00\",\n \"Extra\": null\n },\n \"updated_dt\": {\n \"Field\": \"updated_dt\",\n \"Type\": \"datetime\",\n \"Null\": \"NO\",\n \"Key\": null,\n \"Default\": \"0000-00-00 00:00:00\",\n \"Extra\": null\n }\n };\n \n Roo.log('Loading Data...');\n _this.panel.loadData(data);\n\n}" }, "xtype" : "Button", "String text" : "Load Data", "$ xns" : "Roo.Toolbar" }, + { + "xtype" : "Separator", + "$ xns" : "Roo.Toolbar" + }, { "listeners" : { - "click" : "function (_self, e)\n{\n \n Roo.log('Converting to JSON...');\n _this.panel.toJson();\n\n}" + "click" : "function (_self, e)\n{\n \n Roo.log('Converting to BJS...');\n _this.panel.toBJS();\n\n}" }, "xtype" : "Button", - "String text" : "To JSON", + "String text" : "To BJS", "$ xns" : "Roo.Toolbar" } ]