DTcms.Web/admin/order/payment_list.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTcms.Common;
namespace DTcms.Web.admin.order
{
public partial class payment_list : Web.UI.ManagePage
{
protected string keywords = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ChkAdminLevel("order_payment", DTEnums.ActionEnum.View.ToString()); //检查权限
RptBind("id>0" + CombSqlTxt(keywords), "sort_id asc,id desc");
}
}
#region 数据绑定=================================
private void RptBind(string _strWhere, string _orderby)
{
txtKeywords.Text = this.keywords;
BLL.payment bll = new BLL.payment();
this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby);
this.rptList.DataBind();
}
#endregion
#region 组合SQL查询语句==========================
protected string CombSqlTxt(string _keywords)
{
StringBuilder strTemp = new StringBuilder();
_keywords = _keywords.Replace("'", "");
if (!string.IsNullOrEmpty(_keywords))
{
strTemp.Append(" and title like '%" + _keywords + "%'");
}
return strTemp.ToString();
}
#endregion
#region 返回设备支持=============================
protected string GetPaymentType(string oauthType)
{
string str = string.Empty;
switch (oauthType)
{
case "0":
str = "通用";
break;
case "1":
str = "电脑设备";
break;
后面还有 35 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。