{ "name" : "Pman.Dialog.CoreProject", "parent" : "", "title" : "", "path" : "/home/alan/gitlive/Pman.Core/Pman.Dialog.CoreProject.bjs", "permname" : "", "modOrder" : "001", "strings" : { "99b344c8ae43e3e7213862b8f35c4e51" : "Select Company", "231bc72756b5e6de492aaaa1577f61b1" : "Remarks", "577d7068826de925ea2aec01dbadf5e4" : "Client", "ca528d836417871a349312db705a1951" : "Open date", "ddb016a244ff2b895e69d25fb3b5f780" : "Edit / Create Projects", "b5b20a9df20ea61c1cc0485f5e83891e" : "Select Project Type", "1243daf593fa297e07ab03bf06d925af" : "Searching...", "ea4788705e6873b424c65e91c2846b19" : "Cancel", "9675747b5ab12d05f18518761e68a533" : "Select Companies", "ac848fa228f49ba2b8a5fbd76596817d" : "Team", "24f9e53eb92c0995d04433c1f7a4c9c0" : "File location", "d1847fa47ea6bc047b413947463262ab" : "Enter Project Name", "340c2ee497b85d5954b01c64de7f44f6" : "Select Person", "1a11b1adc359c03db0ca798a00e2632c" : "Opened", "8e3a42158ee70b67cf55b33e2789a9e5" : "Project Name", "ca0dbad92a874b2f69b549293387925e" : "Code", "245fe794333c2b0d5c513129b346b93f" : "Project Type", "ab83ccde6764ca581702f38d79834615" : "Select Team", "c9cc8cce247e49bae79f15173ce97354" : "Save", "223aad18ce30620a724d8a97021ce26e" : "Open by" }, "named_strings" : { "name_qtip" : "d1847fa47ea6bc047b413947463262ab", "client_id_name_emptyText" : "99b344c8ae43e3e7213862b8f35c4e51", "client_id_name_fieldLabel" : "577d7068826de925ea2aec01dbadf5e4", "type_desc_emptyText" : "b5b20a9df20ea61c1cc0485f5e83891e", "type_desc_fieldLabel" : "245fe794333c2b0d5c513129b346b93f", "type_desc_qtip" : "b5b20a9df20ea61c1cc0485f5e83891e", "client_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af", "code_fieldLabel" : "ca0dbad92a874b2f69b549293387925e", "open_by_name_qtip" : "340c2ee497b85d5954b01c64de7f44f6", "name_fieldLabel" : "8e3a42158ee70b67cf55b33e2789a9e5", "team_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af", "remarks_fieldLabel" : "231bc72756b5e6de492aaaa1577f61b1", "open_by_name_emptyText" : "340c2ee497b85d5954b01c64de7f44f6", "open_by_name_fieldLabel" : "223aad18ce30620a724d8a97021ce26e", "team_id_name_fieldLabel" : "ac848fa228f49ba2b8a5fbd76596817d", "open_date_fieldLabel" : "ca528d836417871a349312db705a1951", "team_id_name_qtip" : "ab83ccde6764ca581702f38d79834615", "team_id_name_emptyText" : "ab83ccde6764ca581702f38d79834615", "file_location_fieldLabel" : "24f9e53eb92c0995d04433c1f7a4c9c0", "open_by_name_loadingText" : "1243daf593fa297e07ab03bf06d925af", "type_desc_loadingText" : "1243daf593fa297e07ab03bf06d925af", "client_id_name_qtip" : "9675747b5ab12d05f18518761e68a533" }, "items" : [ { "Boolean modal" : true, "collapsible" : false, "xtype" : "LayoutDialog", "title" : "Edit / Create Projects", "width" : 470, "$ xns" : "Roo", "closable" : false, "resizable" : false, "height" : 450, "items" : [ { "xtype" : "LayoutRegion", "$ xns" : "Roo", "* prop" : "center" }, { "region" : "center", "xtype" : "ContentPanel", "$ xns" : "Roo", "items" : [ { "listeners" : { "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n if (_this.data.id) {\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n }\n return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n \n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n", "|rendered" : "function (form)\n{\n _this.form= form;\n}\n" }, "$ url" : "baseURL + '/Roo/core_project'", "method" : "POST", "xtype" : "Form", "style" : "margin:10px;", "$ xns" : "Roo.form", "items" : [ { "fieldLabel" : "Code", "xtype" : "TextField", "width" : 150, "$ xns" : "Roo.form", "name" : "code" }, { "fieldLabel" : "Project Name", "xtype" : "TextField", "width" : 300, "$ xns" : "Roo.form", "qtip" : "Enter Project Name", "name" : "name" }, { "listWidth" : 400, "triggerAction" : "all", "fieldLabel" : "Project Type", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "desc", "emptyText" : "Select Project Type", "hiddenName" : "type", "minChars" : 2, "valueField" : "code", "xtype" : "ComboBox", "allowBlank" : false, "typeAhead" : true, "editable" : false, "width" : 200, "$ xns" : "Roo.form", "name" : "type_desc", "qtip" : "Select Project Type", "queryParam" : "query[name]", "tpl" : "
{desc}
", "loadingText" : "Searching...", "items" : [ { "xtype" : "SimpleStore", "$ data" : "[ [ 'U' , \"Project (Unconfirmed)\" ],\n[ 'P' , \"Project\" ],\n[ 'C' , \"Project (Closed)\" ],\n[ 'N' , \"Non-Project\" ],\n[ 'X' , \"Non-Project (Closed)\" ]\n]", "$ fields" : " [ 'code', 'desc' ]", "$ xns" : "Roo.data", "* prop" : "store" } ] }, { "listeners" : { "add" : "function (combo)\n{\n Pman.Dialog.Companies.show( { id: 0 }, function(data) {\n _this.form.setValues({ \n client_id : data.id,\n client_id_name : data.name\n });\n }); \n}" }, "listWidth" : 400, "triggerAction" : "all", "fieldLabel" : "Client", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "name", "emptyText" : "Select Company", "hiddenName" : "client_id", "minChars" : 2, "valueField" : "id", "xtype" : "ComboBox", "allowBlank" : false, "typeAhead" : true, "editable" : false, "width" : 300, "$ xns" : "Roo.form", "name" : "client_id_name", "qtip" : "Select Companies", "queryParam" : "query[name]", "tpl" : "
{name}
", "loadingText" : "Searching...", "items" : [ { "listeners" : { "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n \n o.params.type = 1;\n o.params['query[group_pulldown]'] = 1;\n}\n" }, "xtype" : "Store", "remoteSort" : true, "$ sortInfo" : "{ direction : 'ASC', field: 'name' }", "$ xns" : "Roo.data", "* prop" : "store", "items" : [ { "$ url" : "baseURL + '/Roo/core_company'", "xtype" : "HttpProxy", "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, { "id" : "id", "root" : "data", "xtype" : "JsonReader", "$ xns" : "Roo.data", "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"code\",\"type\":\"string\"}]", "* prop" : "reader", "totalProperty" : "total" } ] } ] }, { "listWidth" : 400, "triggerAction" : "all", "fieldLabel" : "Team", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "name", "emptyText" : "Select Team", "hiddenName" : "team_id", "minChars" : 2, "valueField" : "id", "xtype" : "ComboBox", "allowBlank" : false, "typeAhead" : true, "editable" : false, "width" : 300, "$ xns" : "Roo.form", "name" : "team_id_name", "qtip" : "Select Team", "queryParam" : "query[name]", "tpl" : "
{name}
", "loadingText" : "Searching...", "items" : [ { "listeners" : { "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n" }, "xtype" : "Store", "remoteSort" : true, "$ xns" : "Roo.data", "$ sortInfo" : "{ direction : 'ASC', field: 'id' }", "* prop" : "store", "items" : [ { "$ url" : "baseURL + '/Roo/Groups.php'", "xtype" : "HttpProxy", "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, { "id" : "id", "root" : "data", "xtype" : "JsonReader", "$ xns" : "Roo.data", "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]", "* prop" : "reader", "totalProperty" : "total" } ] } ] }, { "fieldLabel" : "File location", "xtype" : "TextField", "width" : 300, "$ xns" : "Roo.form", "name" : "file_location" }, { "fieldLabel" : "Remarks", "xtype" : "TextArea", "width" : 300, "$ xns" : "Roo.form", "name" : "remarks", "height" : 100 }, { "legend" : "Opened", "xtype" : "FieldSet", "$ xns" : "Roo.form", "items" : [ { "format" : "d/m/Y", "fieldLabel" : "Open date", "xtype" : "DateField", "width" : 100, "$ xns" : "Roo.form", "altFormats" : "Y-m-d|d/m/Y", "name" : "open_date" }, { "listWidth" : 400, "triggerAction" : "all", "forceSelection" : true, "selectOnFocus" : true, "fieldLabel" : "Open by", "pageSize" : 20, "xtype" : "ComboBox", "emptyText" : "Select Person", "minChars" : 2, "valueField" : "id", "displayField" : "name", "hiddenName" : "open_by", "allowBlank" : false, "typeAhead" : true, "editable" : false, "$ xns" : "Roo.form", "width" : 300, "qtip" : "Select Person", "tpl" : "
{name}
", "queryParam" : "query[name]", "name" : "open_by_name", "loadingText" : "Searching...", "items" : [ { "listeners" : { "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n" }, "xtype" : "Store", "remoteSort" : true, "$ xns" : "Roo.data", "$ sortInfo" : "{ direction : 'ASC', field: 'id' }", "* prop" : "store", "items" : [ { "$ url" : "baseURL + '/Roo/core_person'", "xtype" : "HttpProxy", "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, { "id" : "id", "root" : "data", "xtype" : "JsonReader", "$ xns" : "Roo.data", "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]", "* prop" : "reader", "totalProperty" : "total" } ] } ] } ] }, { "xtype" : "Hidden", "$ xns" : "Roo.form", "name" : "id" } ] } ] }, { "listeners" : { "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}" }, "text" : "Cancel", "xtype" : "Button", "$ xns" : "Roo", "* prop" : "buttons[]" }, { "listeners" : { "click" : "function (_self, e)\n{\n // do some checks?\n \n \n \n _this.form.doAction(\"submit\");\n\n}" }, "text" : "Save", "xtype" : "Button", "$ xns" : "Roo", "* prop" : "buttons[]" } ] } ] }