Pman.Dialog.CoreCompanies.bjs
authorChris <chris@roojs.com>
Wed, 12 Sep 2012 06:08:08 +0000 (14:08 +0800)
committerChris <chris@roojs.com>
Wed, 12 Sep 2012 06:08:08 +0000 (14:08 +0800)
Pman.Dialog.CoreCompanies.js

Pman.Dialog.CoreCompanies.bjs
Pman.Dialog.CoreCompanies.js

index b313a58..330659d 100644 (file)
                                             "width": 100,
                                             "xtype": "TextField",
                                             "|xns": "Roo.form"
+                                        },
+                                        {
+                                            "allowBlank": false,
+                                            "displayField": "desc",
+                                            "editable": false,
+                                            "emptyText": "Select Type",
+                                            "fieldLabel": "Type",
+                                            "hiddenName": "comptype",
+                                            "listWidth": 250,
+                                            "name": "comptype_name",
+                                            "qtip": "Select Company type",
+                                            "selectOnFocus": true,
+                                            "triggerAction": "all",
+                                            "typeAhead": false,
+                                            "valueField": "val",
+                                            "width": 200,
+                                            "xtype": "ComboBox",
+                                            "|xns": "Roo.form",
+                                            "items": [
+                                                {
+                                                    "*prop": "store",
+                                                    "data": "[ 'CONSULTANT', \"Consultant\" ],[ 'CLIENT'    ,  \"Client\" ],[ 'CONTRACTOR' , \"Contractor\" ]",
+                                                    "fields": "['val', 'desc']",
+                                                    "xtype": "SimpleStore",
+                                                    "|xns": "Roo.data"
+                                                }
+                                            ]
+                                        },
+                                        {
+                                            "allowBlank": true,
+                                            "fieldLabel": "Company Name",
+                                            "name": "name",
+                                            "qtip": "Enter Company Name",
+                                            "width": 300,
+                                            "xtype": "TextField",
+                                            "|xns": "Roo.form"
+                                        },
+                                        {
+                                            "allowBlank": true,
+                                            "fieldLabel": "Phone",
+                                            "name": "tel",
+                                            "qtip": "Enter Phone Number",
+                                            "width": 300,
+                                            "xtype": "TextField",
+                                            "|xns": "Roo.form"
+                                        },
+                                        {
+                                            "allowBlank": true,
+                                            "fieldLabel": "Fax",
+                                            "name": "fax",
+                                            "qtip": "Enter Fax Number",
+                                            "width": 300,
+                                            "xtype": "TextField",
+                                            "|xns": "Roo.form"
                                         }
                                     ]
                                 }
index a2d14dc..a9b50e1 100644 (file)
@@ -196,6 +196,57 @@ Pman.Dialog.CoreCompanies = {
                                             name : 'code',
                                             qtip : "Enter code",
                                             width : 100
+                                        },
+                                        {
+                                            xtype: 'ComboBox',
+                                            xns: Roo.form,
+                                            allowBlank : false,
+                                            displayField : 'desc',
+                                            editable : false,
+                                            emptyText : "Select Type",
+                                            fieldLabel : 'Type',
+                                            hiddenName : 'comptype',
+                                            listWidth : 250,
+                                            name : 'comptype_name',
+                                            qtip : "Select Company type",
+                                            selectOnFocus : true,
+                                            triggerAction : 'all',
+                                            typeAhead : false,
+                                            valueField : 'val',
+                                            width : 200,
+                                            store : {
+                                                xtype: 'SimpleStore',
+                                                xns: Roo.data,
+                                                data : '[ \'CONSULTANT\', "Consultant" ],[ \'CLIENT\'    ,  "Client" ],[ \'CONTRACTOR\' , "Contractor" ]',
+                                                fields : '[\'val\', \'desc\']'
+                                            }
+                                        },
+                                        {
+                                            xtype: 'TextField',
+                                            xns: Roo.form,
+                                            allowBlank : true,
+                                            fieldLabel : 'Company Name',
+                                            name : 'name',
+                                            qtip : "Enter Company Name",
+                                            width : 300
+                                        },
+                                        {
+                                            xtype: 'TextField',
+                                            xns: Roo.form,
+                                            allowBlank : true,
+                                            fieldLabel : 'Phone',
+                                            name : 'tel',
+                                            qtip : "Enter Phone Number",
+                                            width : 300
+                                        },
+                                        {
+                                            xtype: 'TextField',
+                                            xns: Roo.form,
+                                            allowBlank : true,
+                                            fieldLabel : 'Fax',
+                                            name : 'fax',
+                                            qtip : "Enter Fax Number",
+                                            width : 300
                                         }
                                     ]
                                 }