public string GetTable(NumberClass nc) { string tz = "onclick=\"window.location.href='GraphNet.aspx?EndNumber=" + ViewState["ky"] + "&Number=" + nc.Number + "&qs=" + DDLQs.SelectedValue + "'\""; string str = @" <table class='wlttab2' cellspacing='0' cellpadding='0'> <tr> <td colspan='3' style='background-image:url(Images/shop-lingBg.png);background-position:-5px 0px;color:white;font-weight:bold;cursor:pointer;' " + tz + @"> " + nc.Number + @" </td> </tr> <tr> <td colspan='3'> " + nc.Level + @" </td> </tr> <tr> <td style='background-color:rgb(238,239,243)'> </td> <td style='background-color:rgb(238,239,243)'> " + GetTran("007545", " 左区") + @" </td> <td style='background-color:rgb(238,239,243)'> " + GetTran("007546", " 右区") + @" </td> </tr> <tr> <td style='background-color:rgb(238,239,243)'> " + GetTran("007324", "总") + @" </td> <td> " + WTreeBLL.GetYj("TotalNetRecord", DDLQs.SelectedValue, "1", nc.Number).ToString("0.00") + @" </td> <td> " + WTreeBLL.GetYj("TotalNetRecord", DDLQs.SelectedValue, "2", nc.Number).ToString("0.00") + @" </td> </tr> <tr> <td style='background-color:rgb(238,239,243)'> " + GetTran("007325", "新") + @" </td> <td> " + WTreeBLL.GetYj("CurrentOneMark", DDLQs.SelectedValue, "1", nc.Number).ToString("0.00") + @" </td> <td> " + WTreeBLL.GetYj("CurrentOneMark", DDLQs.SelectedValue, "2", nc.Number).ToString("0.00") + @" </td> </tr> <tr> <td style='background-color:rgb(238,239,243)'> " + GetTran("007326", "余") + @" </td> <td> " + WTreeBLL.GetYj("syyj", DDLQs.SelectedValue, "1", nc.Number).ToString("0.00") + @" </td> <td> " + WTreeBLL.GetYj("syyj", DDLQs.SelectedValue, "2", nc.Number).ToString("0.00") + @" </td> </tr> </table>" ; return(str); }
public string GetTable(NumberClass nc) { string tz = "onclick=\"window.location.href='GraphNet.aspx?EndNumber=" + ViewState["ky"] + "&Number=" + nc.Number + "&qs=" + DDLQs.SelectedValue + "'\""; string str = @" <table class='wlttab2' cellspacing='0' cellpadding='0' style='font-size:12px' > <tr> <td colspan='3' style='font-size:12px;background-image:url(Images/blue_25.png);background-position:-5px 0px;color:" + (nc.MemberState == "1" ? "white" : "rgb(163,163,163)") + ";font-weight:bold;cursor:pointer;' " + tz + @"> " + nc.Number + "(" + nc.PetName + ")" + @" </td> </tr> <!--<tr> <td colspan='3'> " + nc.PetName + @" </td> </tr>--> <tr> <td colspan='3'> " + nc.Level + @" </td> </tr> <tr> <td style='background-color:rgb(238,239,243);font-size:12px;'> </td> <td style='background-color:rgb(238,239,243);font-size:12px;'> 左区 </td> <td style='background-color:rgb(238,239,243);font-size:12px;'> 右区 </td> </tr> <tr> <td style='background-color:rgb(238,239,243);font-size:12px;'> 总 </td> <td> " + WTreeBLL.GetYj("TotalNetRecord", DDLQs.SelectedValue, "1", nc.Number).ToString("0.00") + @" </td> <td> " + WTreeBLL.GetYj("TotalNetRecord", DDLQs.SelectedValue, "2", nc.Number).ToString("0.00") + @" </td> </tr> <tr> <td style='background-color:rgb(238,239,243);font-size:12px;'> 新 </td> <td> " + WTreeBLL.GetYj("CurrentOneMark", DDLQs.SelectedValue, "1", nc.Number).ToString("0.00") + @" </td> <td> " + WTreeBLL.GetYj("CurrentOneMark", DDLQs.SelectedValue, "2", nc.Number).ToString("0.00") + @" </td> </tr> <tr> <td style='background-color:rgb(238,239,243);font-size:12px;'> 余 </td> <td> " + WTreeBLL.GetYj("syyj", DDLQs.SelectedValue, "1", nc.Number).ToString("0.00") + @" </td> <td> " + WTreeBLL.GetYj("syyj", DDLQs.SelectedValue, "2", nc.Number).ToString("0.00") + @" </td> </tr> </table>" ; return(str); }