Pman.Dialog.AdminEnumType.bjs
authorMicheal <micheal@roojs.com>
Fri, 16 Jan 2015 08:27:11 +0000 (16:27 +0800)
committerMicheal <micheal@roojs.com>
Fri, 16 Jan 2015 08:27:11 +0000 (16:27 +0800)
Pman.Dialog.AdminEnumType.js

Pman.Dialog.AdminEnumType.bjs
Pman.Dialog.AdminEnumType.js [new file with mode: 0644]

index 821b02d..e7c1f2f 100644 (file)
@@ -6,5 +6,9 @@
     "permname" : "",
     "modOrder" : "001",
     "items" : [
+        {
+            "xtype" : "LayoutDialog",
+            "$ xns" : "Roo"
+        }
     ]
 }
\ No newline at end of file
diff --git a/Pman.Dialog.AdminEnumType.js b/Pman.Dialog.AdminEnumType.js
new file mode 100644 (file)
index 0000000..23ccd3f
--- /dev/null
@@ -0,0 +1,38 @@
+//<script type="text/javascript">
+
+// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+
+Roo.namespace('Pman.Dialog');
+
+Pman.Dialog.AdminEnumType = {
+
+    dialog : false,
+    callback:  false,
+
+    show : function(data, cb)
+    {
+        if (!this.dialog) {
+            this.create();
+        }
+
+        this.callback = cb;
+        this.data = data;
+        this.dialog.show(this.data._el);
+        if (this.form) {
+           this.form.reset();
+           this.form.setValues(data);
+           this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
+        }
+
+    },
+
+    create : function()
+    {
+        var _this = this;
+        this.dialog = Roo.factory({
+            '|xns' : 'Roo',
+            xtype : 'LayoutDialog',
+            xns : Roo
+        });
+    }
+};