SuLei.Web/admin/order/order_edit.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SuLei.Common;
namespace SuLei.Web.admin.order
{
public partial class order_edit : SuLei.UI.ManagePage
{
private int id = 0;
protected Model.orders model = new Model.orders();
protected void Page_Load(object sender, EventArgs e)
{
this.id = SLRequest.GetQueryInt("id");
if (this.id == 0)
{
JscriptMsg("传输参数不正确!", "back");
return;
}
if (!new BLL.orders().Exists(this.id))
{
JscriptMsg("记录不存在或已被删除!", "back");
return;
}
if (!Page.IsPostBack)
{
ChkAdminLevel("order_list", SLEnums.ActionEnum.View.ToString()); //检查权限
ShowInfo(this.id);
}
}
#region 赋值操作=================================
private void ShowInfo(int _id)
{
BLL.orders bll = new BLL.orders();
model = bll.GetModel(_id);
//绑定商品列表
this.rptList.DataSource = model.order_goods;
this.rptList.DataBind();
//获得会员信息
if (model.user_id > 0)
{
Model.sl_users user_info = new BLL.sl_users().GetModel(model.user_id);
if (user_info != null)
{
Model.user_groups group_info = new BLL.user_groups().GetModel(Convert.ToInt32( user_info.group_id));
if (group_info != null)
{
dlUserInfo.Visible = true;
lbUserName.Text = user_info.user_name;
lbUserGroup.Text = group_info.title;
lbUserDiscount.Text = group_info.discount.ToString() + " %";
lbUserAmount.Text = user_info.amount.ToString();
lbUserPoint.Text = user_info.point.ToString();
}
}
}
后面还有 57 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
