tj/z_out.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class tj_z_out : System.Web.UI.Page
{
DataBase db = new DataBase();
String sql = "";
public float total;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["ano"] == null)
{
Response.Write("<script> javascript:alert('请先登录!'); </script>");
Response.Redirect("../login.aspx");
}
else
{
sql = "select * from mout,yp,ck,dw where mout.yno=yp.yno and mout.cno=ck.cno and mout.dno=dw.dno";
getdata(sql);
}
}
}
private void getdata(string sql)
{
DataSet result = db.Getdata(sql);
if (result != null)
{
if (result.Tables[0].Rows.Count > 0)
{
GridView1.DataSource = result.Tables[0];
GridView1.DataKeyNames = new string[] { "id" };
GridView1.DataBind();
gettotal();
}
else
{
Response.Write("<script> javascript:alert('没有相关记录'); </script>");
GridView1.DataSource = result.Tables[0];
GridView1.DataKeyNames = new string[] { "id" };
GridView1.DataBind();
Label2.Text = "0元";
}
}
}
private void gettotal()
{
for (int i = 0; i < GridView1.Rows.Count; i++)
total = total + float.Parse(GridView1.Rows[i].Cells[6].Text.ToString());
Label2.Text = "" + total + "元";
}
后面还有 27 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。