dorado的笔记

investor:投资者
broker:经纪人
inverstment:合约

//用户代码
view-source:http://localhost:8080/CTP2/com.sfit.dorado.view.trademanagement.SuperUser.d

//获取交易ID
${dorado.getDataProvider(‘trade.traderAssignPR#queryDRIdentitiesID’).getResult()}

//得到Userenventype
${dorado.getDataProvider(‘dictionaryManager#loadStaticDict’).getResult(‘UserEventType’)}

//投资者代码下拉框
com.sfit.dorado.utils.InvestorCompent# groupStartInvestor/ 没有任何意思主要$groupStartInvestor一个名字,用来定位方法
*/

//合约者代码下拉框
stockopt.optInstrumentPR#loadOptProductAndInstrument

//交易中心下拉框
${dorado.getDataProvider(‘trade.traderAssignPR#queryDRIdentitiesID’).getResult()}

//用户类型下拉框
${dorado.getDataProvider(‘dictionaryManager#loadStaticDict’).getResult(‘UserEventType’)}

//dictonary的字典中UerEvnetType的设置
ArrayList userEventType = new ArrayList();
dicts.put(“UserEventType”, userEventType);
userEventType.add(new StaticDictionary(“UET_Login”, “UserEventType”,
“登录”, “1”));
userEventType.add(new StaticDictionary(“UET_Logout”, “UserEventType”,
“登出”, “2”));
userEventType.add(new StaticDictionary(“UET_Trading”, “UserEventType”,
“交易成功”, “3”));
userEventType.add(new StaticDictionary(“UET_TradingError”,
“UserEventType”, “交易失败”, “4”));
userEventType.add(new StaticDictionary(“UET_UpdatePassword”,
“UserEventType”, “修改密码”, “5”));
userEventType.add(new StaticDictionary(“UET_Authenticate”,
“UserEventType”, “客户端认证”, “6”));
userEventType.add(new StaticDictionary(“UET_Other”, “UserEventType”,
“其他”, “9”));

StaticDictionary的主要类型有下面几种
private String key;
private String value;
private String type;
private String id;

ArrayList userEventType=new ArrayList();
dicts.put(“UserEventType”,userEventType);
userEventType.add(new StaticDictionary(“UET_Login”,”UserEventType”,”登出”,”1”));

//如果错误代码的提示不能出来或许是因为在view的onready的时候没有加如下代码!我也不知道为啥
window.array = [];

ajaxAction.set(“parameter”,{investorID,investorID})
ajaxAction.execute(function(obj){
if(obj.errorCode!=0){
argr.result={
text:”该用户不存在”,
state:”error”
};
}else{
var investor =obj.serachObj();
var flag=false;
for(var i=0;i

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值