using LYFZ.WeixinServiceDate.DAL; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace LYFZ.WeixinServers.SMSPage { public partial class ShortMessageConfigList : System.Web.UI.Page { public string table = ""; public int totalCount = 0; public int pageIndex = 0; protected void Page_Load(object sender, EventArgs e) { pageIndex = string.IsNullOrEmpty(Request.QueryString["pageIndex"]) ? 1 : Convert.ToInt32(Request.QueryString["pageIndex"]); int pageSize = string.IsNullOrEmpty(Request.QueryString["pageSize"]) ? 20 : Convert.ToInt32(Request.QueryString["pageSize"]); DAL_ShortMessageConfig detailDAL = new DAL_ShortMessageConfig(); System.Data.DataTable logDt = detailDAL.GetShortMessageConfigList(pageIndex, pageSize); totalCount = detailDAL.GetShortMessageConfigCount(); foreach (System.Data.DataRow dr in logDt.Rows) { table += "<tr>"; table += " <td>" + dr["smc_EntID"] + "</td>"; table += " <td>" + dr["CompanyName"] + "</td>"; table += " <td>" + dr["smc_SMAccount"] + "</td>"; table += " <td>" + dr["smc_SMPwd"] + "</td>"; table += " <td><a class=\"layui-btn\" href=\"SetShortMessageConfig.aspx?entid=" + dr["smc_EntID"] + "&isadmin=true\">编辑</a></td>"; table += "</tr>"; } } } }