salary/Modify.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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 System.Text;
using System.Data.SqlClient;
public partial class salary_Modify : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
chushi();
}
}
/// <summary>
/// 初始化
/// </summary>
protected void chushi()
{
DataSet dstno = SqlHelper.ExecuteforDataSet("select tno,tname from teachers");
ddltno.DataSource = dstno;
ddltno.DataTextField = "tname";
ddltno.DataValueField = "tno";
ddltno.DataBind();
StringBuilder strSql = new StringBuilder();
strSql.Append(@"select * from salary where sid=" + Request.QueryString["id"] );
//根据编号得到相应的记录
DataSet ds = SqlHelper.ExecuteforDataSet(strSql.ToString());
if (ds.Tables[0].Rows.Count > 0)
{
ddltno.SelectedValue=ds.Tables[0].Rows[0]["tno"].ToString();
txt_basic.Text = ds.Tables[0].Rows[0]["basic"].ToString();
txt_buf.Text = ds.Tables[0].Rows[0]["buf"].ToString();
txt_jint.Text = ds.Tables[0].Rows[0]["jint"].ToString();
txt_suod.Text = ds.Tables[0].Rows[0]["suod"].ToString();
txt_yil.Text = ds.Tables[0].Rows[0]["yil"].ToString();
txt_yangl.Text = ds.Tables[0].Rows[0]["yangl"].ToString();
txt_shiy.Text = ds.Tables[0].Rows[0]["shiy"].ToString();
txt_gongs.Text = ds.Tables[0].Rows[0]["gongs"].ToString();
txt_shengy.Text = ds.Tables[0].Rows[0]["shengy"].ToString();
txt_zhuf.Text = ds.Tables[0].Rows[0]["zhuf"].ToString();
txt_yingk.Text = ds.Tables[0].Rows[0]["yingk"].ToString();
txt_shif.Text = ds.Tables[0].Rows[0]["shif"].ToString();
txt_yuef.Text = ds.Tables[0].Rows[0]["yuef"].ToString();
}
}
/// <summary>
后面还有 67 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。