EasyShop/Pay/Pay_UserYe.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 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_UserYe :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 ye = 0;
float orderje = 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_ShowYe.Text = ds.Tables[0].Rows[i]["Money_ye"].ToString();
ye = float.Parse(ds.Tables[0].Rows[i]["Money_ye"].ToString());
}
string orderid = Common.GetMes.GetRequestQuery(Request, "order_id");
TB_MC_Order tmo = new TB_MC_Order();
DataSet tds = tmo.GetDataList(" and a.Id=" + orderid + "");
int tnum = tds.Tables[0].Rows.Count;
for (int i = 0; i < tnum; i++)
{
string Price = tds.Tables[0].Rows[i]["OrderPrice"].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();
int count = 1;
int cn;
if (int.TryParse(tds.Tables[0].Rows[i]["Count"].ToString(), out cn))
{
count = int.Parse(tds.Tables[0].Rows[i]["Count"].ToString());
}
if (!string.IsNullOrEmpty(LastPayPrice))
后面还有 87 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。