|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/6b11be23/e503b68d/ |
?#pragma checksum "D:\wwwroot\keman\wwwroot\zxly.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "C9E9041C11EC26D597B448AF06DA3468"
#line 1 "D:\wwwroot\keman\wwwroot\zxly.aspx.cs"
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using CoreClass;
using System.Data.OleDb;
public partial class zxly : System.Web.UI.Page
{
#region 界说
public string newsHtml;
public DBCommon DB = new DBCommon();
public PublicFunction pubfun = new PublicFunction();
yingshi dy = new yingshi();
yingshi bs = new yingshi();
public int classid = 0;
public int channelid = 0;
protected CoreClass.DBCommon dbc = new DBCommon();
#endregion
public string qsid = "";
public string L_nr = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["kd7djej"] != null && Session["kd7djej"].ToString() == "sf34fs!s5df!gdfg")
{
dy.bingding("select top 50 * from downinfo order by id desc ", DropDownList1, "id", "title1");
dy.bingding("select top 50 * from downinfo order by id desc ", DropDownList2, "title10", "title1");
Button2.Visible = false;
}
else
{
Response.Redirect("gl.aspx");
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
if (name1.Text != null && name1.Text != "")
{
DataSet dt42127 = new DataSet();
dt42127 = dy.chaxun("select top 1 * from downinfo where title1='" + name1.Text + "' order by id desc ");
if (dt42127.Tables[0].Rows.Count > 0)
{
pubfun.Location(Page, "失败--汇报编号沉复!", Request.Url.AbsoluteUri);
}
else
{
if (Session["kd7djej"] != null && Session["kd7djej"].ToString() == "sf34fs!s5df!gdfg")
{
dy.user("Insert into downinfo(title1,title2,title3,title4,title5,title6,title10) values('" + name1.Text + "','" + name2.Text + "','" + name3.Text + "','" + name4.Text + "','" + name5.Text + "','" + name6.Text + "','" + Guid.NewGuid().ToString() + "')");
pubfun.Location(Page, "提交成功!", Request.Url.AbsoluteUri);
}
else
{
Response.Redirect("gl.aspx");
}
}
}
else
{
pubfun.Location(Page, "内容1不能为空", Request.Url.AbsoluteUri);
}
}
protected void Button2_Click(object sender, EventArgs e)
{
//if (Request["id"] != null)
//{
if (Session["kd7djej"] != null && Session["kd7djej"].ToString() == "sf34fs!s5df!gdfg")
{
dy.user("update downinfo set title1='" + name1.Text + "',title2='" + name2.Text + "',title3='" + name3.Text + "',title4='" + name4.Text + "',title5='" + name5.Text + "',title6='" + name6.Text + "' where id= " + DropDownList1.SelectedValue.ToString());
pubfun.Location(Page, "批改成功!", Request.Url.AbsoluteUri);
}
else
{
Response.Redirect("gl.aspx");
}
//}
}
protected void Button3_Click(object sender, EventArgs e)
{
//if (name7.Text != "")
//{
DataSet dt7 = new DataSet();
dt7 = dy.chaxun("select top 1 * from downinfo where title1='" + DropDownList1.SelectedItem.Text.ToString() + "' order by id desc ");
if (dt7.Tables[0].Rows.Count > 0)
{
Button2.Visible = true;
name1.Text = dt7.Tables[0].Rows[0]["title1"].ToString();
name2.Text = dt7.Tables[0].Rows[0]["title2"].ToString();
name3.Text = dt7.Tables[0].Rows[0]["title3"].ToString();
name4.Text = dt7.Tables[0].Rows[0]["title4"].ToString();
name5.Text = dt7.Tables[0].Rows[0]["title5"].ToString();
name6.Text = dt7.Tables[0].Rows[0]["title6"].ToString();
}
else
{
name1.Text = "";
name2.Text = "";
name3.Text = "";
name4.Text = "";
name5.Text = "";
name6.Text = "";
Button2.Visible = false;
}
//}
//else
//{
// name1.Text ="";
// name2.Text = "";
// name3.Text = "";
// name4.Text = "";
// name5.Text = "";
// name6.Text = "";
//}
}
protected void Button4_Click(object sender, EventArgs e)
{
name1.Text = "";
name2.Text = "";
name3.Text = "";
name4.Text = "";
name5.Text = "";
name6.Text = "";
Button2.Visible = false;
}
protected void Button5_Click(object sender, EventArgs e)
{
Response.Redirect("index.aspx?IDSDS=" + DropDownList2.SelectedValue.ToString());
}
protected void Button6_Click(object sender, EventArgs e)
{
//if (Request["id"] != null)
//{
if (Session["kd7djej"] != null && Session["kd7djej"].ToString() == "sf34fs!s5df!gdfg")
{
dy.user("delete from downinfo where id= " + DropDownList1.SelectedValue.ToString());
pubfun.Location(Page, "删除成功!", Request.Url.AbsoluteUri);
}
else
{
Response.Redirect("gl.aspx");
}
//}
}
}
#line default
#line hidden