shoufei/shoufeimod.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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 System.Xml.Linq;
using System.Text;
using System.Data.SqlClient;
//信息收费修改页面
public partial class shoufei_shoufeimod : System.Web.UI.Page
{
    string id = "";
    protected void Page_Load(object sender, EventArgs e)
    {
	 id = Request.QueryString["id"].ToString();
           if (!Page.IsPostBack)
        {
           (Master.FindControl("Label1") as Label).Text = "修改收费";
            ShowInfo();
        }
    }

      // 初始化 收费 信息
    protected void ShowInfo()
    {

        //设置查询Sql
        string sql = "select * from shoufei where sfid=" +id ;

        //根据编号得到相应的记录
        SqlDataReader sdr = SqlHelper.ExecuteReader(sql);
        if (sdr.Read())
        {
          	this.xm.Text= sdr["xm"].ToString();//项目
this.yz.Text= sdr["yz"].ToString();//业主
this.sj.Text= sdr["sj"].ToString();//时间
this.nd.Text= sdr["nd"].ToString();//年度
this.czr.Text= sdr["czr"].ToString();//操作人
this.czsj.Text= sdr["czsj"].ToString();//操作时间

        }
    }

    protected void btnSave_Click(object sender, EventArgs e)
    {
      string xm=this.xm.Text;//项目
string yz=this.yz.Text;//业主
string sj=this.sj.Text;//时间
string nd=this.nd.Text;//年度
string czr=this.czr.Text;//操作人
string czsj=this.czsj.Text;//操作时间

		if(xm.Length==0){
MessageBox.Show(this.Page,"项目不能为空");
后面还有 44 行代码,购买后查看完整代码

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

AI 解读 AI

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

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