// 期望盈利率表格 protected void genExpRateTable(Table table) { GMUser user = (GMUser)Session["user"]; table.GridLines = GridLines.Both; TableRow tr = new TableRow(); table.Rows.Add(tr); int i = 0; for (; i < s_head.Length; i++) { TableCell td = new TableCell(); tr.Cells.Add(td); td.Text = s_head[i]; } OpRes res = user.doQuery(null, QueryType.queryTypeShcdParam); List <ResultShcdParam> qresult = (List <ResultShcdParam>)user.getQueryResult(QueryType.queryTypeShcdParam); for (i = 0; i < qresult.Count; i++) { ResultShcdParam item = qresult[i]; m_content[0] = StrName.s_shcdRoomName[item.m_roomId]; m_content[1] = item.m_expRate.ToString(); m_content[2] = item.m_totalIncome.ToString(); m_content[3] = item.m_totalOutlay.ToString(); m_content[4] = item.getDelta().ToString(); m_content[5] = item.getFactExpRate().ToString(); m_content[6] = item.getLevelName(); m_content[7] = item.m_jokerCount.ToString(); m_content[8] = item.m_cheatSE; m_content[9] = item.m_curPlayerCount.ToString(); m_content[10] = Tool.getCheckBoxHtml("roomList", item.m_roomId.ToString(), false); tr = new TableRow(); table.Rows.Add(tr); for (int j = 0; j < s_head.Length; j++) { TableCell td = new TableCell(); tr.Cells.Add(td); td.Text = m_content[j]; } } }
// 期望盈利率表格 protected void genExpRateTable(Table table) { GMUser user = (GMUser)Session["user"]; table.GridLines = GridLines.Both; TableRow tr = new TableRow(); table.Rows.Add(tr); int i = 0; for (; i < s_head.Length; i++) { TableCell td = new TableCell(); tr.Cells.Add(td); td.Text = s_head[i]; } OpRes res = user.doQuery(null, QueryType.queryTypeShcdParam); List <ResultShcdParam> qresult = (List <ResultShcdParam>)user.getQueryResult(QueryType.queryTypeShcdParam); for (i = 0; i < qresult.Count; i++) { ResultShcdParam item = qresult[i]; m_content[0] = StrName.s_roomName[item.m_roomId - 1]; m_content[1] = item.m_expRate.ToString(); m_content[2] = ItemHelp.showMoneyValue(item.m_totalIncome).ToString(); m_content[3] = ItemHelp.showMoneyValue(item.m_totalOutlay).ToString(); m_content[4] = ItemHelp.showMoneyValue(item.getDelta()).ToString(); m_content[5] = item.getFactExpRate().ToString(); tr = new TableRow(); table.Rows.Add(tr); for (int j = 0; j < s_head.Length; j++) { TableCell td = new TableCell(); tr.Cells.Add(td); td.Text = m_content[j]; } } }