|
楼主 |
发表于 2014-6-13 16:09:55
|
显示全部楼层
本帖最后由 xuni2 于 2014-6-13 16:17 编辑
在JS中调用,我会写。常见模式就是加一个trigger,然后在onclick写调用ACTION。
现在我不明白的是calculate,怎么写。因为我现在没有trigger,自然不会自动生成onclick,也就不会有写调用ACTION。。是不是就不用写JS了,直接在calculat写call(getSalesPriceAction,data('masterData')/gProcessCode, data('masterData')/fCustomerID, data('detailData')/fMatID,'',data('detailData')/fIsInputPrice,data('detailData')/fBasePrice) 这样就可以了。还是说所有逻辑处理都自己写一个JS。mainActivity.getSalesPrice = function(event){}。。。然后在calculate写call(getSalesPrice),还是说怎样处理。能否说的更明白一下语法的位置。比如calculate写什么,JS的写什么。比如我已经在logic/action定义这样的ACTION,getSalesPrice(String gProcessCode, String fCustomerID, String fMatID, String fPriceType, Integer fIsInputPrice,BigDecimal fBasePrice)。返回DECIMAL值。。。那JS和CALL具体怎么写呢 |
|