Java Architect

导航

<2007年7月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

统计

常用链接

留言簿(2)

随笔档案

搜索

最新评论

阅读排行榜

评论排行榜

2007年7月27日 #

关于SAAS平台的一点想法

最近研究了几个ERP,CRM的产品 象Sales force, Compeire, sugarCRM,觉得SAAS平台无非需要提供以下可以高度定制的功能。

  1.  GUI
    • CSS
    • resources
    • menu/link
    • message i18n
    • form
    • GUI EventListener
  2. Business Object
    • business logic or call back
    • email
    • report charts
    • job scheduler
    • business rule
    • work flow
    • access control
    • asynchronous request.
  3. Database
 
我觉得这里面最难的应属GUI的高度可定制化。本人正在想用GWT来做一个基于上面想法的SASS平台,届时软件可真正实现快速按需打造。欢迎JAVA界的同仁多提宝贵建议。






posted @ 2008-06-19 05:54 zrq 阅读(1051) | 评论 (0)编辑 收藏

sql statement

  Select obj
 
from CommDeductionType obj
  
where 1=1
    #
if($obj)
     
and obj.deductionTypeCode = #{obj.deductionTypeCode}
    #
end

posted @ 2007-09-08 02:50 zrq 阅读(137) | 评论 (0)编辑 收藏

Open laszlo


Datapointers are not bound to views like datapaths are, but they do have a place in the view hierarchy—that is, they "know about" parents and children.
 1 
 2 <datapointer xpath="myData:/" ondata="processData()">
 3     <method name="processData">
 4       this.selectChild(2); 
 5       do {
 6         if (this.xpathQuery( '@show' ) == 'south park') {
 7             Debug.write(this.xpathQuery('firstName/text()'));
 8         }
 9       } while (this.selectNext()); 
10     </method>
11   </datapointer>
12 
13 

Create data set at runtime

LzDataset: var dset = new LzDataset(null, {name: 'mydset'})

$path{} limitations
A limitation of the $path{} constraint is that the expression it contains is evaluated only at the initialization time, that is, an expression such as $path{'mynode[' + i + ']/@attr'} will behave like a $once{} constraint.Custome

Customize the data binding
1 <view name="swatch" width="200" height="30" 
2   datapath="colors:/value[1]/text()">
3     <method name="applyData" args="v">
4       setBGColor(eval(v))
5       display.setText(v)
6     </method>
7   </view>

$path{}


datapath.setdatapointer

<canvas height="150">
<dataset name="phonebook" src="resources/phonebook.xml"/>
<simplelayout axis="x" spacing="20"/>

<view name="contacts" height="150" width="100">
<view bgcolor="0xe0e0e0" datapath="phonebook:/contacts/contact"
onmouseover="setBGColor(0xc0c0c0)" onmouseout="setBGColor(0xe0e0e0)"
onclick="details.datapath.setPointer(this.datapath.p)">
<simplelayout axis="x" spacing="5"/>
<text datapath="@firstName" resize="true"/>
<text datapath="@lastName" resize="true"/>
</view>
<simplelayout spacing="5"/>
</view>

<view id="details" width="150" height="150" bgcolor="0xe0e0e0" fgcolor="blue">
<datapath/>
<text datapath="@firstName"/>
<text datapath="@lastName"/>
<text datapath="@phone"/>
<text datapath="@email"/>
<simplelayout spacing="5"/>
</view>
</canvas>



posted @ 2007-07-27 03:18 zrq 阅读(177) | 评论 (0)编辑 收藏