+++ /dev/null
-{
- "name" : "Pman.Dialog.BAdminProject",
- "parent" : "",
- "title" : "",
- "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Dialog.BAdminProject.bjs",
- "permname" : "",
- "modOrder" : "001",
- "strings" : {
- "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
- "adcd03ae20497ceeaae58901f1e67b53" : "Add / Edit Project",
- "ae3a26601c99fb65404a473134b81b38" : "Job No / Code",
- "577d7068826de925ea2aec01dbadf5e4" : "Client",
- "3ec365dd533ddb7ef3d1c111186ce872" : "Details",
- "ea4788705e6873b424c65e91c2846b19" : "Cancel",
- "ac848fa228f49ba2b8a5fbd76596817d" : "Team",
- "d9c693d3309dbee7de27e00f5ffa3993" : "Permission Group (only members of this group can view/edit)",
- "49ee3087348e8d44e1feda1917443987" : "Name",
- "bbbabdbe1b262f75d99d62880b953be1" : "Role",
- "245fe794333c2b0d5c513129b346b93f" : "Project Type",
- "c9cc8cce247e49bae79f15173ce97354" : "Save"
- },
- "named_strings" : {
- "email_placeholder" : "ce8ae9da5b7cd6c3df2929543a9af92d",
- "name_placeholder" : "49ee3087348e8d44e1feda1917443987",
- "role_fieldLabel" : "245fe794333c2b0d5c513129b346b93f",
- "name_fieldLabel" : "ae3a26601c99fb65404a473134b81b38",
- "role_placeholder" : "bbbabdbe1b262f75d99d62880b953be1",
- "phone_fieldLabel" : "d9c693d3309dbee7de27e00f5ffa3993",
- "email_fieldLabel" : "577d7068826de925ea2aec01dbadf5e4"
- },
- "items" : [
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.dialog = this;\n}"
- },
- "String cls" : "add-user-dialog",
- "String size" : "xl",
- "string fit_content" : true,
- "xtype" : "Modal",
- "int max_width" : 650,
- "string max_height" : 680,
- "$ xns" : "Roo.bootstrap",
- "String title" : "Add / Edit Project",
- "items" : [
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.layout = _self;\n}"
- },
- "xtype" : "Border",
- "$ xns" : "Roo.bootstrap.layout",
- "items" : [
- {
- "xtype" : "Region",
- "Boolean hideTabs" : true,
- "$ xns" : "Roo.bootstrap.layout",
- "* prop" : "center"
- },
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.detail_tab = _self;\n}"
- },
- "id" : "DetailPanel",
- "Boolean fitContainer" : true,
- "xtype" : "Content",
- "Boolean fitToFrame" : true,
- "$ xns" : "Roo.bootstrap.panel",
- "String region" : "center",
- "String title" : "Details",
- "Boolean autoScroll" : true,
- "Boolean background" : false,
- "items" : [
- {
- "String cls" : "col-md-12",
- "xtype" : "Container",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "listeners" : {
- "actioncomplete" : "function (_self, action)\n{\n if(action.type == 'setdata'){\n \n \n _this.dialog.resize();\n \n return;\n }\n \n if (action.type == 'load') {\n \n _this.data = action.result.data;\n \n \n return;\n }\n \n if (action.type == 'submit') { // only submitted here if we are \n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(this, action.result.data);\n }\n \n return;\n }\n}",
- "render" : "function (_self)\n{\n _this.form = this;\n}"
- },
- "$ url" : "baseURL + '/Roo/core_person' ",
- "String cls" : "p-4",
- "xtype" : "Form",
- "style" : "margin-top: 20px;",
- "String labelAlign" : "top",
- "$ xns" : "Roo.bootstrap",
- "string errorMask" : true,
- "items" : [
- {
- "String name" : "name",
- "xtype" : "Input",
- "string placeholder" : "Name",
- "String labelAlign" : "left",
- "string fieldLabel" : "Job No / Code",
- "$ xns" : "Roo.bootstrap",
- "Number labelWidth" : 150
- },
- {
- "String name" : "role",
- "xtype" : "Input",
- "string placeholder" : "Role",
- "string fieldLabel" : "Name",
- "String labelAlign" : "left",
- "$ xns" : "Roo.bootstrap",
- "Number labelWidth" : 150
- },
- {
- "String name" : "role",
- "xtype" : "Input",
- "string placeholder" : "Role",
- "string fieldLabel" : "Project Type",
- "String labelAlign" : "left",
- "$ xns" : "Roo.bootstrap",
- "Number labelWidth" : 150
- },
- {
- "String name" : "email",
- "xtype" : "Input",
- "string placeholder" : "Email",
- "String labelAlign" : "left",
- "string fieldLabel" : "Client",
- "$ xns" : "Roo.bootstrap",
- "Number labelWidth" : 150
- },
- {
- "String name" : "phone",
- "xtype" : "Input",
- "string fieldLabel" : "Team",
- "String labelAlign" : "left",
- "$ xns" : "Roo.bootstrap",
- "Number labelWidth" : 150
- },
- {
- "String name" : "phone",
- "xtype" : "Input",
- "string fieldLabel" : "Permission Group (only members of this group can view/edit)",
- "String labelAlign" : "top",
- "$ xns" : "Roo.bootstrap",
- "Number labelWidth" : 150
- },
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.userID = _self;\n}"
- },
- "String name" : "id",
- "xtype" : "Input",
- "String labelAlign" : "left",
- "String inputType" : "hidden",
- "$ xns" : "Roo.bootstrap"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "listeners" : {
- "click" : "function (_self, e)\n{\n _this.dialog.hide(); \n}"
- },
- "xtype" : "Button",
- "$ xns" : "Roo.bootstrap",
- "String html" : "Cancel",
- "* prop" : "buttons[]"
- },
- {
- "listeners" : {
- "click" : "function (_self, e)\n{\n if(!_this.form.isValid()){\n //Roo.bootstrap.MessageBox.alert('Error', 'Please Correct all the errors in red');\n return;\n }\n \n var myID = _this.form.findField('id').getValue() * 1;\n var myName = _this.form.findField('name').getValue();\n\n if (_this.form.findField('company_id') && !_this.form.findField('company_id').getValue()) {\n Roo.bootstrap.MessageBox.alert(\"Error\", \"Select a Company\");\n return;\n }\n \n // validate password match (only needed if we are not using generated one..\n if (_this.form.findField('passwd1') \n && _this.form.findField('passwd1').getValue().length > 0 \n && _this.form.findField('passwd1').inputEl().dom.type == \"password\") {\n \n var p1 = _this.form.findField('passwd1').getValue();\n var p2 = _this.form.findField('passwd2').getValue();\n \n \n if (Pman.Login.authUser.id < 0 && !p1.length) {\n Roo.bootstrap.MessageBox.alert(\"Error\", \"You must create a password for the admin account\");\n return;\n }\n \n \n if (p1.length || p2.length) {\n if (p1 != p2) {\n Roo.bootstrap.MessageBox.alert(\"Error\", \"Passwords do not match\");\n return;\n }\n }\n \n \n }\n \n // get the list of record with tick\n \n _this.form.doAction(\"submit\");\n \n return;\n\n}"
- },
- "String weight" : "primary",
- "xtype" : "Button",
- "$ xns" : "Roo.bootstrap",
- "String html" : "Save",
- "* prop" : "buttons[]"
- }
- ]
- }
- ]
-}
\ No newline at end of file
+++ /dev/null
-{
- "name" : "Pman.Tab.BAdminProject",
- "parent" : "Pman.Tab.BAdmin",
- "title" : "",
- "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Tab.BAdminProject.bjs",
- "permname" : "",
- "modOrder" : "300",
- "strings" : {
- "54e1d44609e3abed11f6e1eb6ae54988" : "Projects",
- "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
- "e57c636e4888ae64d98a590c6d530f25" : "Job No.",
- "bfa40db99e13ed2fe413ea8f1507cda9" : "Permission Group",
- "1a11b1adc359c03db0ca798a00e2632c" : "Opened",
- "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
- "49ee3087348e8d44e1feda1917443987" : "Name",
- "dec0281615951933174d1bad72eeb180" : "Office / Team"
- },
- "items" : [
- {
- "xtype" : "Nest",
- "String region" : "center",
- "$ xns" : "Roo.bootstrap.panel",
- "String title" : "Projects",
- "items" : [
- {
- "xtype" : "Border",
- "$ xns" : "Roo.bootstrap.layout",
- "* prop" : "layout",
- "items" : [
- {
- "xtype" : "Region",
- "$ xns" : "Roo.bootstrap.layout",
- "* prop" : "center"
- },
- {
- "xtype" : "Region",
- "Number height" : 50,
- "$ xns" : "Roo.bootstrap.layout",
- "* prop" : "north"
- },
- {
- "xtype" : "Content",
- "$ xns" : "Roo.bootstrap.panel",
- "String region" : "north",
- "items" : [
- {
- "String type" : "pills",
- "xtype" : "NavSimplebar",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "String cls" : "mr-md-auto",
- "xtype" : "Form",
- "String align" : "right",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "xtype" : "Input",
- "$ xns" : "Roo.bootstrap"
- },
- {
- "String weight" : "primary",
- "xtype" : "Button",
- "String fa" : "search",
- "$ xns" : "Roo.bootstrap"
- }
- ]
- },
- {
- "String type" : "pills",
- "bool pilltype" : false,
- "xtype" : "NavGroup",
- "String align" : "right",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "String button_weight" : "danger",
- "String cls" : "ml-3 mr-0",
- "xtype" : "NavItem",
- "bool button_outline" : false,
- "String fa" : "trash",
- "$ xns" : "Roo.bootstrap",
- "String html" : "Delete"
- },
- {
- "listeners" : {
- "click" : "function (e)\n{\n Pman.Dialog.BAdminProject.show({});\n}"
- },
- "String button_weight" : "warning",
- "String cls" : "ml-3 mr-0",
- "xtype" : "NavItem",
- "bool button_outline" : false,
- "String fa" : "plus",
- "$ xns" : "Roo.bootstrap",
- "String html" : "Add"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "listeners" : {
- "activate" : "function (_self)\n{\n this.grid.ds.load({});\n}"
- },
- "xtype" : "Grid",
- "$ xns" : "Roo.bootstrap.panel",
- "String region" : "center",
- "items" : [
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.grid = this;\n}",
- "rowclick" : "function (_self, el, rowIndex, e)\n{\n Pman.Dialog.BAdminProject.show({});\n}"
- },
- "boolean striped" : true,
- "xtype" : "Table",
- "Boolean rowSelection" : true,
- "$ xns" : "Roo.bootstrap",
- "* prop" : "grid",
- "items" : [
- {
- "listeners" : {
- "selectionchange" : "function (_self)\n{\n \n}"
- },
- "Boolean singleSelect" : true,
- "xtype" : "RowSelectionModel",
- "$ xns" : "Roo.bootstrap.Table",
- "* prop" : "sm"
- },
- {
- "boolean isLocal" : true,
- "$ Array fields" : "[ 'filter' , 'value' ]",
- "$ Array data" : "[\n [ 'Project:', '' ],\n [ 'ER No.:', '' ],\n [ 'School Code:', '' ],\n [ 'District:', '' ] \n]",
- "xtype" : "SimpleStore",
- "$ xns" : "Roo.data",
- "* prop" : "store"
- },
- {
- "String header" : "Job No.",
- "String dataIndex" : "fname",
- "xtype" : "ColumnModel",
- "$ xns" : "Roo.grid",
- "* prop" : "cm[]",
- "Number sm" : 1
- },
- {
- "String header" : "Name",
- "String dataIndex" : "fname",
- "xtype" : "ColumnModel",
- "$ xns" : "Roo.grid",
- "* prop" : "cm[]",
- "Number sm" : 5
- },
- {
- "String header" : "Office / Team",
- "String dataIndex" : "fname",
- "xtype" : "ColumnModel",
- "$ xns" : "Roo.grid",
- "* prop" : "cm[]",
- "Number sm" : 2
- },
- {
- "String header" : "Opened",
- "String dataIndex" : "fname",
- "xtype" : "ColumnModel",
- "$ xns" : "Roo.grid",
- "* prop" : "cm[]",
- "Number sm" : 2
- },
- {
- "String header" : "Permission Group",
- "String dataIndex" : "fname",
- "xtype" : "ColumnModel",
- "$ xns" : "Roo.grid",
- "* prop" : "cm[]",
- "Number sm" : 2
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
-}
\ No newline at end of file
+++ /dev/null
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Tab');
-
-Pman.Tab.BAdminProject = new Roo.XComponent({
-
- _strings : {
- '54e1d44609e3abed11f6e1eb6ae54988' :"Projects",
- 'ec211f7c20af43e742bf2570c3cb84f9' :"Add",
- 'e57c636e4888ae64d98a590c6d530f25' :"Job No.",
- 'bfa40db99e13ed2fe413ea8f1507cda9' :"Permission Group",
- '1a11b1adc359c03db0ca798a00e2632c' :"Opened",
- 'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
- '49ee3087348e8d44e1feda1917443987' :"Name",
- 'dec0281615951933174d1bad72eeb180' :"Office / Team"
- },
-
- part : ["BAdmin", "Project" ],
- order : '300-Pman.Tab.BAdminProject',
- region : 'center',
- parent : 'Pman.Tab.BAdmin',
- name : "unnamed module",
- disabled : false,
- permname : '',
- _tree : function(_data)
- {
- var _this = this;
- var MODULE = this;
- return {
- xtype : 'Nest',
- region : 'center',
- title : _this._strings['54e1d44609e3abed11f6e1eb6ae54988'] /* Projects */,
- xns : Roo.bootstrap.panel,
- '|xns' : 'Roo.bootstrap.panel',
- layout : {
- xtype : 'Border',
- xns : Roo.bootstrap.layout,
- '|xns' : 'Roo.bootstrap.layout',
- center : {
- xtype : 'Region',
- xns : Roo.bootstrap.layout,
- '|xns' : 'Roo.bootstrap.layout'
- },
- north : {
- xtype : 'Region',
- height : 50,
- xns : Roo.bootstrap.layout,
- '|xns' : 'Roo.bootstrap.layout'
- },
- items : [
- {
- xtype : 'Content',
- region : 'north',
- xns : Roo.bootstrap.panel,
- '|xns' : 'Roo.bootstrap.panel',
- items : [
- {
- xtype : 'NavSimplebar',
- type : 'pills',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'Form',
- align : 'right',
- cls : 'mr-md-auto',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'Input',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- },
- {
- xtype : 'Button',
- fa : 'search',
- weight : 'primary',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- }
- ]
- },
- {
- xtype : 'NavGroup',
- align : 'right',
- pilltype : false,
- type : 'pills',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'NavItem',
- button_outline : false,
- button_weight : 'danger',
- cls : 'ml-3 mr-0',
- fa : 'trash',
- html : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- },
- {
- xtype : 'NavItem',
- button_outline : false,
- button_weight : 'warning',
- cls : 'ml-3 mr-0',
- fa : 'plus',
- html : _this._strings['ec211f7c20af43e742bf2570c3cb84f9'] /* Add */,
- listeners : {
- click : function (e)
- {
- Pman.Dialog.BAdminProject.show({});
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- }
- ]
- }
- ]
- }
- ]
- },
- {
- xtype : 'Grid',
- region : 'center',
- listeners : {
- activate : function (_self)
- {
- this.grid.ds.load({});
- }
- },
- xns : Roo.bootstrap.panel,
- '|xns' : 'Roo.bootstrap.panel',
- grid : {
- xtype : 'Table',
- rowSelection : true,
- striped : true,
- listeners : {
- render : function (_self)
- {
- _this.grid = this;
- },
- rowclick : function (_self, el, rowIndex, e)
- {
- Pman.Dialog.BAdminProject.show({});
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- store : {
- xtype : 'SimpleStore',
- data : [
- [ 'Project:', '' ],
- [ 'ER No.:', '' ],
- [ 'School Code:', '' ],
- [ 'District:', '' ]
- ],
- fields : [ 'filter' , 'value' ],
- isLocal : true,
- xns : Roo.data,
- '|xns' : 'Roo.data'
- },
- sm : {
- xtype : 'RowSelectionModel',
- singleSelect : true,
- listeners : {
- selectionchange : function (_self)
- {
-
- }
- },
- xns : Roo.bootstrap.Table,
- '|xns' : 'Roo.bootstrap.Table'
- },
- cm : [
- {
- xtype : 'ColumnModel',
- dataIndex : 'fname',
- header : _this._strings['e57c636e4888ae64d98a590c6d530f25'] /* Job No. */,
- sm : 1,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'fname',
- header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
- sm : 5,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'fname',
- header : _this._strings['dec0281615951933174d1bad72eeb180'] /* Office / Team */,
- sm : 2,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'fname',
- header : _this._strings['1a11b1adc359c03db0ca798a00e2632c'] /* Opened */,
- sm : 2,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'fname',
- header : _this._strings['bfa40db99e13ed2fe413ea8f1507cda9'] /* Permission Group */,
- sm : 2,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- }
- ]
- }
- }
- ]
- }
- }; }
-});