EasyShop/Pay/Pay_UserJiFen.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using MyModels;
using BLL;
namespace EasyShop.Pay
{
public partial class Pay_UserJiFen : Base_Page
{
public string jsString = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(Login_UserId))
{
string reurl = Request.RawUrl.ToString();
System.Web.HttpContext.Current.Response.Redirect("/login.aspx?ReturnUrl=" + reurl + "");
}
if (!IsPostBack)
{
LoadData();
}
}
public void LoadData()
{
string userid = conn.MyCookie.getCookie("UserID");
if (!string.IsNullOrEmpty(userid))
{
float jfye = 0;
float order_jf = 0;
TB_MC_User tmu = new TB_MC_User();
DataSet ds = tmu.GetList(" Id=" + userid + "");
int num = ds.Tables[0].Rows.Count;
for (int i = 0; i < num; i++)
{
lb_ShowJiFen.Text = ds.Tables[0].Rows[i]["Point"].ToString();
jfye = float.Parse(ds.Tables[0].Rows[i]["Point"].ToString());
}
string orderid = Common.GetMes.GetRequestQuery(Request, "order_id");
TB_MC_OrderMore tmm = new TB_MC_OrderMore();
DataSet tds = tmm.GetDataSetbyOrderID(" OrderId=" + orderid + " and tp=3");//tp=3 是积分支付 积分支付不需要邮费
int tnum = ds.Tables[0].Rows.Count;
for (int i = 0; i < tnum; i++)
{
string AllPrice = tds.Tables[0].Rows[i]["allPrice"].ToString();
//string TransportPrice = tds.Tables[0].Rows[i]["TransportPrice"].ToString();
//string LastPayPrice = tds.Tables[0].Rows[i]["LastPayPrice"].ToString();
//string UseTicketEndPrice = tds.Tables[0].Rows[i]["UseTicketEndPrice"].ToString();
if (!string.IsNullOrEmpty(AllPrice))
{
lb_orderJiFen.Text = AllPrice;
}
else
{
lb_orderJiFen.Text = "0";
后面还有 61 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。