公司老外说要做的画面要漂亮 要炫丽
找了一下网上资料 发现qwikioffice 不错 下载个中文版 接过发现很多东西做吧不全
我花了一个晚上的时间去看代码 试验 总结。
自己添加了一个modules 成功总结了一下 ,action还没做 呵呵。
首先在modules文件夹下新建一个文件夹,我试验中建立一个test的文件夹
然后里面建立一个
test-win.js
test-win.css
test-win-override.js
一.如果添加modules?
解决:
1.首先在数据表qo_modules添加所相应的模块资料
2.在qo_members_has_module_launchers添加模块关联
3.在qo_modules_files添加模块所使用到的文件file资料
4.在qo_modules_actions添加模块中所需要的动作action
5.在角色qo_domains_has_modules表中添加关联信息
最后,中文标题的解决
在xml中加入
Java代码
1. <txtTestWindow>测试模块</txtTestWindow>
<txtTestWindow>测试模块</txtTestWindow>
然后在test-win.js中
Java代码
1. QoDesk.TestWindow = Ext.extend(Ext.app.Module, {
2. moduleType : 'demo',
3. moduleId : 'demo-test',
4. menuPath : 'StartMenu',
5. launcher : {
6. iconCls: 'grid-icon',
7. shortcutIconCls: 'demo-grid-shortcut',
8. text: txtTestWindow,
9. tooltip: '<b>testmodel</b><br />A window with a grid'
10. }
11. });
QoDesk.TestWindow = Ext.extend(Ext.app.Module, {
moduleType : 'demo',
moduleId : 'demo-test',
menuPath : 'StartMenu',
launcher : {
iconCls: 'grid-icon',
shortcutIconCls: 'demo-grid-shortcut',
text: txtTestWindow,
tooltip: '<b>testmodel</b><br />A window with a grid'
}
});
其中txtTestWindow就是中文名称了,其他用到的地方替换成这个就可以用中文
唉,懒得贴了
把代码共享吧
明天再看看action的处理。妈的,以前没搞过ext,还挺多东西学的。
http://kenter1643.iteye.com/blog/362443
找了一下网上资料 发现qwikioffice 不错 下载个中文版 接过发现很多东西做吧不全
我花了一个晚上的时间去看代码 试验 总结。
自己添加了一个modules 成功总结了一下 ,action还没做 呵呵。
首先在modules文件夹下新建一个文件夹,我试验中建立一个test的文件夹
然后里面建立一个
test-win.js
test-win.css
test-win-override.js
一.如果添加modules?
解决:
1.首先在数据表qo_modules添加所相应的模块资料
2.在qo_members_has_module_launchers添加模块关联
3.在qo_modules_files添加模块所使用到的文件file资料
4.在qo_modules_actions添加模块中所需要的动作action
5.在角色qo_domains_has_modules表中添加关联信息
最后,中文标题的解决
在xml中加入
Java代码
1. <txtTestWindow>测试模块</txtTestWindow>
<txtTestWindow>测试模块</txtTestWindow>
然后在test-win.js中
Java代码
1. QoDesk.TestWindow = Ext.extend(Ext.app.Module, {
2. moduleType : 'demo',
3. moduleId : 'demo-test',
4. menuPath : 'StartMenu',
5. launcher : {
6. iconCls: 'grid-icon',
7. shortcutIconCls: 'demo-grid-shortcut',
8. text: txtTestWindow,
9. tooltip: '<b>testmodel</b><br />A window with a grid'
10. }
11. });
QoDesk.TestWindow = Ext.extend(Ext.app.Module, {
moduleType : 'demo',
moduleId : 'demo-test',
menuPath : 'StartMenu',
launcher : {
iconCls: 'grid-icon',
shortcutIconCls: 'demo-grid-shortcut',
text: txtTestWindow,
tooltip: '<b>testmodel</b><br />A window with a grid'
}
});
其中txtTestWindow就是中文名称了,其他用到的地方替换成这个就可以用中文
唉,懒得贴了
把代码共享吧
明天再看看action的处理。妈的,以前没搞过ext,还挺多东西学的。
http://kenter1643.iteye.com/blog/362443