Dialog/Yuan.aspx.cs

(完整代码) 1KB

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 Dialog_Yuan : System.Web.UI.Page
{
    private DataSet ds_Yuan;
    protected void Page_Load(object sender, EventArgs e)
    {
        Yuan yuan = new Yuan();
        ds_Yuan = yuan.GetDataSet("");
        GV_Yuan.DataSource = ds_Yuan.Tables["T_Yuan"];
        GV_Yuan.DataBind();

        publicFunction pFunction = new publicFunction();
        int intRowCount = GV_Yuan.Rows.Count;
        for (int intIndex = 0; intIndex < intRowCount; intIndex++)
            GV_Yuan.Rows[intIndex].Cells[2].Text = pFunction.GetSex(GV_Yuan.Rows[intIndex].Cells[2].Text);
    }
    protected void GV_Yuan_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            int intRowIndex = e.Row.RowIndex;
            e.Row.Attributes.Add("onclick", "ReKey('" + ds_Yuan.Tables["T_Yuan"].Rows[intRowIndex]["Yuan_ID"].ToString() + "','" + ds_Yuan.Tables["T_Yuan"].Rows[intRowIndex]["Yuan_Name"].ToString() + "','" + ds_Yuan.Tables["T_Yuan"].Rows[intRowIndex]["Yuan_Laborage"].ToString() + "')");
        }
    }
}

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

AI 解读

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

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