zcfz_modify.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 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 zcfz_modify : System.Web.UI.Page
{
    public static string id = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        id = Request.QueryString["delid"].ToString().Trim();;
        if (!IsPostBack)
        {
           string sql1 = "select * from  Customer";
            ID_QYNameList.DataSource = new SqlHelper().GetDataReader(sql1);
            ID_QYNameList.DataTextField = "Name";
            ID_QYNameList.DataValueField = "id";
            ID_QYNameList.DataBind();

            string sql = "select * from ZCFZ ";
            sql += " where ID= '" + id + "'";
            DataSet result = new DataSet();
            result = new SqlHelper().hsggetdata(sql);
            if (result != null)
            {
                if (result.Tables[0].Rows.Count > 0)
                {
                    ID_QYNameList.SelectedValue = result.Tables[0].Rows[0]["QYName"].ToString().Trim();
                    ID_Time.Text = result.Tables[0].Rows[0]["Time"].ToString().Trim();
                    ID_LDZJ.Text = result.Tables[0].Rows[0]["LDZJ"].ToString().Trim();
                    ID_HBZJ.Text = result.Tables[0].Rows[0]["HBZJ"].ToString().Trim();
                    ID_DQTZ.Text = result.Tables[0].Rows[0]["DQTZ"].ToString().Trim();
                    ID_YSZK.Text = result.Tables[0].Rows[0]["YSZK"].ToString().Trim();
                    ID_QTSK.Text = result.Tables[0].Rows[0]["QTSK"].ToString().Trim();
                    ID_CQTZ.Text = result.Tables[0].Rows[0]["CQTZ"].ToString().Trim();
                    ID_GDZC.Text = result.Tables[0].Rows[0]["GDZC"].ToString().Trim();
                    ID_LDFZ.Text = result.Tables[0].Rows[0]["LDFZ"].ToString().Trim();
                    ID_CQFZ.Text = result.Tables[0].Rows[0]["CQFZ"].ToString().Trim();
                    ID_GDSY.Text = result.Tables[0].Rows[0]["GDSY"].ToString().Trim();
                    ID_RegTime.Text = result.Tables[0].Rows[0]["RegTime"].ToString().Trim();
                    ID_Other.Text = result.Tables[0].Rows[0]["Other"].ToString().Trim();
                    ID_JLR.Text = result.Tables[0].Rows[0]["JLR"].ToString().Trim();
                    ID_SDS.Text = result.Tables[0].Rows[0]["SDS"].ToString().Trim();
                    ID_LXFY.Text = result.Tables[0].Rows[0]["LXFY"].ToString().Trim();
                    ID_ZYYWSR.Text = result.Tables[0].Rows[0]["ZYYWSR"].ToString().Trim();
                }
                else
                {
                    Response.Write("<script>javascript:alert('查询信息出错');history.back();</script>");
                }
            }
            else
            {
                Response.Write("<script>javascript:alert('对不起,系统错误,请不要越权操作!');</script>");
后面还有 30 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。