bas/xxgl/Minixx.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data.SqlClient;
using System.Web.UI;
using haoke365;
namespace hkoa.oa.xxgl
{
public partial class Minixx : System.Web.UI.Page
{
protected void Page_Load(object Sender, EventArgs E)
{
mydb hkdb = new mydb();
hkdb.VeriSess("4");
if (!IsPostBack)
{
hkdb.PassTo("10101,1001", "0");
BindAttr();
if (Request.QueryString["lx"] == "g")
{
SqlDataReader dr = SqlHelper.ExecuteReader("SELECT TOP 1 UI_ID,UI_DESC FROM YH WHERE UI_GYS='" + Request.QueryString["id"] + "'");
if (dr.Read())
{
UserID.Text = dr["ui_id"].ToString();
UserName.Text = dr["ui_desc"].ToString();
dr.Close();
}
else
{
dr.Close();
ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('该供应商没有可用帐号,不能发送消息!');window.close();<" + "/script>");
}
}
else
{
if (!string.IsNullOrEmpty(Request.QueryString["id"]))
{
UserID.Text = Request.QueryString["id"];
UserName.Text = Request.QueryString["mc"];
}
}
}
}
public void BindAttr()
{
UserName.Attributes.Add("readonly", "readonly");
}
//发送程序
public void Send_Click(object sender, EventArgs e)
{
string upstr = nr.Text.Replace("'", "''");
SqlHelper.ExecuteSql("EXEC sp_Send_Mess 1,0,'" + this.Session["userid"] + "','" + UserID.Text.TrimEnd(',') + "','" + upstr + "'");
UserID.Text = "";
UserName.Text = "";
nr.Text = "";
后面还有 5 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
