交易系统用的代码
/// <summary>
/// 绑定最新成交信息
/// </summary>
private void bargain()
{
MinfoList = Mobj.GetListInfo(6, "State = '交易完成'", "");
var lowNums = from m in MinfoList
select new
{
m.ID,
Address = m.BuyAddress.Split(new Char[] { '-' })[0] + "-" + m.BuyAddress.Split(new Char[] { '-' })[1],
m.GoodsName,
m.Num,
m.Price,
m.CreateTime
};
this.GV3.DataSource = lowNums;
this.GV3.DataBind();
}
/// <summary>
/// 绑定买信息
/// </summary>
private void bindBuy()
{
HangListTb hObj = new HangListTb();
List<HangListTbInfo> HList = new List<HangListTbInfo>();
HList = hObj.GetListInfo(6, "Num>0 and State = '挂单' and (Mode='即期挂牌' or Mode='远期挂牌')", "");
UserTb uObj = new UserTb();
List<UserTbInfo> UinfoList = uObj.GetListInfo("Lega