标签:
1
后台界面使用<a>标签
eg:
sb.Append("<a href=‘/broker/tu/user-detail/tuid/" + instance.TU.ID + "‘ target=\"_blank\">详细信息</a>");
1 属性在""号中可以使用‘’
2 /broker/tu/user-detail表示网页的绝对路径
3 tuid/" + instance.TU.ID + "表示传入/broker/tu/user-detail页面时所带的返回值
4 在/broker/tu/user-detail页面接收tuid以这种方式:tuid = this.Request["tuid"];
2
要了解金融知识,居安思危,多思考
3 添加枚举类型数据
sb.Append("<td >");
var close_condition = "";
switch (instance.CloseCondition)
{
case Ari.Trade.OrderClosed.Enum_CloseCondition.Liquidation:
close_condition = "强制平仓";
break;
case Ari.Trade.OrderClosed.Enum_CloseCondition.Manual:
close_condition = "手动平仓";
break;
case Ari.Trade.OrderClosed.Enum_CloseCondition.SL:
close_condition = "止损平仓";
break;
case Ari.Trade.OrderClosed.Enum_CloseCondition.TP:
close_condition = "止盈平仓";
break;
}
sb.Append(close_condition);
sb.Append("</td>");
4 判断事件是否合法
sb.Append("<td >");
if (instance.PendingTime.Subtract(DateTime.MinValue).TotalSeconds < 1)
sb.Append("非挂单");
else
sb.Append(instance.PendingTime);
sb.Append(" </td>");
5 添加的数据是money类型
double precision = 1;
long price_digit = instance.Symbol.PriceDigit;
while (price_digit-- > 0)
{
precision /= 10;
}
sb.Append("<td>");
sb.Append(instance.PriceClose * precision);
sb.Append("</td>");
6 ctrl+R刷新缓存(清除浏览器缓存)
标签:
原文地址:http://www.cnblogs.com/lv-sally/p/4780401.html