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